{"version":3,"file":"index.cjs","names":["status?: JobStatus","cause?: unknown"],"sources":["../src/mutator/custom-firefly-axios-instance.ts","../src/generated/image-generation-async-v3-client/image-generation-async-v3-client.ts","../src/generated/image-generation-async-v3-client/image-generation-async-v3-client.schemas.ts","../src/generated/image-generation-async-v3-client/index.ts","../src/generated/generate-similar-async-v3-client/generate-similar-async-v3-client.ts","../src/generated/generate-similar-async-v3-client/generate-similar-async-v3-client.schemas.ts","../src/generated/generate-similar-async-v3-client/index.ts","../src/generated/generate-object-composite-async-v3-client/generate-object-composite-async-v3-client.ts","../src/generated/generate-object-composite-async-v3-client/generate-object-composite-async-v3-client.schemas.ts","../src/generated/generate-object-composite-async-v3-client/index.ts","../src/generated/generative-expand-async-v3-client/generative-expand-async-v3-client.ts","../src/generated/generative-expand-async-v3-client/generative-expand-async-v3-client.schemas.ts","../src/generated/generative-expand-async-v3-client/index.ts","../src/generated/generative-fill-async-v3-client/generative-fill-async-v3-client.ts","../src/generated/generative-fill-async-v3-client/generative-fill-async-v3-client.schemas.ts","../src/generated/generative-fill-async-v3-client/index.ts","../src/generated/generate-video-api-client/generate-video-api-client.ts","../src/generated/generate-video-api-client/generate-video-api-client.schemas.ts","../src/generated/generate-video-api-client/index.ts","../src/generated/upload-image-client/upload-image-client.ts","../src/generated/upload-image-client/upload-image-client.schemas.ts","../src/generated/upload-image-client/index.ts","../src/generated/custom-models-listing-client/custom-models-listing-client.ts","../src/generated/custom-models-listing-client/custom-models-listing-client.schemas.ts","../src/generated/custom-models-listing-client/index.ts","../src/extension/firefly-job-polling-extension.ts"],"sourcesContent":["import Axios, { type AxiosRequestConfig } from 'axios';\n\nexport const FIREFLY_AXIOS_INSTANCE = Axios.create();\nFIREFLY_AXIOS_INSTANCE.defaults.baseURL = 'https://firefly-api.adobe.io';\n\n// add a second `options` argument here if you want to pass extra options to each generated query\nexport const customFireflyAxiosInstance = <T>(\n  config: AxiosRequestConfig,\n  options?: AxiosRequestConfig\n): Promise<T> => {\n  const source = Axios.CancelToken.source();\n\n  // For some strange reason the video generation API requires the x-model-version header to be set to video1_standard\n  // even though the docs dont explicitly mention it is required.\n  if (config.url?.includes('/videos/')) {\n    if (options) {\n      options.headers = {\n        ...options.headers,\n        'x-model-version': 'video1_standard',\n      };\n    }\n  }\n\n  const promise = FIREFLY_AXIOS_INSTANCE({\n    ...config,\n    ...options,\n    cancelToken: source.token,\n  }).then(({ data }) => data);\n\n  return promise;\n};\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly, for enterprise usage.\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateImagesV3Async,\n  CancelJobV3PathParameters,\n  GenerateImagesRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './image-generation-async-v3-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate images based on a text prompt. You may also include a reference image and Firefly will try to mimic the characteristics, such as color scheme, lighting, layout of objects in the image, etc.\n\nThis task is performed asynchronously, which means that a successful response returns a <code>jobID</code>. Use this ID with the Get Result endpoint to check the status of the job and get the processed image result or with the Cancel Job endpoint to cancel the job.\n * @summary Generate Images Async\n */\nexport const generateImagesV3Async = (\n  generateImagesV3AsyncBody: GenerateImagesRequestV3 | BodyGenerateImagesV3Async,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/generate-async`, method: 'POST', data: generateImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * Get the result of the job.\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<JobResultV3200>>\n) => {\n  return customFireflyAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * Cancel the asynchronous job.\n * @summary Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type GenerateImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly, for enterprise usage.\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\n/**\n * Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up). This setting is recommended for generating images with human subjects.\n */\nexport type GenerateImagesRequestV3UpsamplerType =\n  (typeof GenerateImagesRequestV3UpsamplerType)[keyof typeof GenerateImagesRequestV3UpsamplerType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GenerateImagesRequestV3UpsamplerType = {\n  default: 'default',\n  low_creativity: 'low_creativity',\n} as const;\n\nexport interface GenerateImagesRequestV3 {\n  /** Directs the style of a generated image to be photographic or like fine art. */\n  contentClass?: ContentClassV3;\n  /** Include the specific custom model ID when a custom model type is designated in the `x-model-version` header parameter. */\n  customModelId?: string;\n  /**\n   * A negative prompt of things Firefly will try to avoid generating in the image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * The number of variations to generate. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify `seeds`.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * A text prompt to support the generation of an image. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region (like en-US). When a locale is set, the prompt will be biased to generate more relevant content for that region. If not specified, the locale will be auto-detected based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with <code>numVariations</code>, the number of seeds provided must equal <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image, in pixels. Supported sizes for the output images with `image3` are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li>  <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>Widescreen (16:9) - width 2688px, height 1512px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(7:4)  - width 1344px, height 756px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> Supported sizes for the output images with `image4` are: <ul> <li>(1:1) - width 2048px, height 2048px</li> <li>(4:3) - width 2304px, height 1792px</li> <li>(3:4) - width 1792px, height 2304px</li> <li>(16:9) - width 2688px, height 1536px</li> <li>(9:16) - width 1440px, height 2560px</li> </ul>  */\n  size?: Size;\n  /** An object with the reference image details for structure. */\n  structure?: StructureReferenceV3;\n  /** An object with the reference image details for style. */\n  style?: StylesV3;\n  /** Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up). This setting is recommended for generating images with human subjects. */\n  upsamplerType?: GenerateImagesRequestV3UpsamplerType;\n  /**\n   * Adjust the overall intensity of your photo's characteristics, such as contrast, shadow, and hue. This is not supported with the model version `image4_custom`.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls.\n\nIf specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify `seeds`.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** The `uploadId` from the storage API response. */\n  uploadId?: string;\n  /**\n   * The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** The style presets. Specify an ID for a style of image to generate. */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide. 0 means no adherence. 100 means full adherence.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './image-generation-async-v3-client';\nexport * from './image-generation-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateSimilarImagesV3Async,\n  CancelJobV3PathParameters,\n  GenerateSimilarImagesRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generate-similar-async-v3-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate similar images based on a reference image that you provide as a parameter.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Generate Similar Images Async\n */\nexport const generateSimilarImagesV3Async = (\n  generateSimilarImagesV3AsyncBody:\n    | GenerateSimilarImagesRequestV3\n    | BodyGenerateSimilarImagesV3Async,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncAcceptResponseV3>(\n    {\n      url: `/v3/images/generate-similar-async`,\n      method: 'POST',\n      data: generateSimilarImagesV3AsyncBody,\n    },\n    options\n  );\n};\n\n/**\n * Get the result of a job that you submitted to the Generate Similar Images Async endpoint.\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<JobResultV3200>>\n) => {\n  return customFireflyAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * Cancel a job that you submitted to the Generate Similar Images Async endpoint.\n * @summary Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type GenerateSimilarImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateSimilarImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * The number of variations to generate. `numVariations` defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with `numVariations`, the number of seeds provided must equal `numVariations`.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image, in pixels. Supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>Widescreen (16:9) - width 1344px, height 756px </li> <li>Widescreen (16:9) - width 2688px, height 1512px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generate-similar-async-v3-client';\nexport * from './generate-similar-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyGenerateObjectCompositeV3Async,\n  CancelJobV3PathParameters,\n  GenerateObjectCompositeRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generate-object-composite-async-v3-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Combines your image and images generated by Firefly to create an image composite, or scene. The images that Firefly generates are based on a text prompt that you provide. You can upload an image with or without an image mask, such as a product photo.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Generate Object Composite Async - Model 3\n */\nexport const generateObjectCompositeV3Async = (\n  generateObjectCompositeV3AsyncBody:\n    | GenerateObjectCompositeRequestV3\n    | BodyGenerateObjectCompositeV3Async,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncAcceptResponseV3>(\n    {\n      url: `/v3/images/generate-object-composite-async`,\n      method: 'POST',\n      data: generateObjectCompositeV3AsyncBody,\n    },\n    options\n  );\n};\n\n/**\n * @summary Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<JobResultV3200>>\n) => {\n  return customFireflyAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type GenerateObjectCompositeV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof generateObjectCompositeV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generate-object-composite-async-v3-client';\nexport * from './generate-object-composite-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyExpandImagesV3Async,\n  CancelJobV3PathParameters,\n  ExpandImageRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generative-expand-async-v3-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Change the aspect ratio or size of an image and expand it. You can optionally provide a text prompt and Firefly generates additional filler image based on the prompt. For example, you can add a prompt to as Firefly to generate pine trees and a forest landscape which fills empty parts of the newly expanded image.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Expand Image Async - Model 3\n */\nexport const expandImagesV3Async = (\n  expandImagesV3AsyncBody: ExpandImageRequestV3 | BodyExpandImagesV3Async,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/expand-async`, method: 'POST', data: expandImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * @summary  Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<JobResultV3200>>\n) => {\n  return customFireflyAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type ExpandImagesV3AsyncResult = NonNullable<\n  Awaited<ReturnType<typeof expandImagesV3Async>>\n>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Pre-signed URL of an uploaded file. You can either use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generative-expand-async-v3-client';\nexport * from './generative-expand-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\nimport type {\n  AsyncAcceptResponseV3,\n  BodyFillImagesV3Async,\n  CancelJobV3PathParameters,\n  FillImageRequestV3,\n  JobResultV3200,\n  JobResultV3PathParameters,\n} from './generative-fill-async-v3-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Fills an area of an image based on images that Firefly generates based on your prompt. We call this part of an image an image, and this mask defines the area which should be filled. For example you can have an circular mask defined on an image and Firefly can generate the image of a planet in that area.\n\nPerforms this asynchronously, meaning you make your request and provide an image with your text prompt and on success, returns a <code>jobID</code>, status endpoint and endpoint to cancel the request. You can later poll the status endpoint to get updates on whether the job completes and to get the image.\n * @summary Fill Image Async - Model 3\n */\nexport const fillImagesV3Async = (\n  fillImagesV3AsyncBody: FillImageRequestV3 | BodyFillImagesV3Async,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncAcceptResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncAcceptResponseV3>(\n    { url: `/v3/images/fill-async`, method: 'POST', data: fillImagesV3AsyncBody },\n    options\n  );\n};\n\n/**\n * @summary  Get Result - Async\n */\nexport const jobResultV3 = (\n  { jobId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<JobResultV3200>>\n) => {\n  return customFireflyAxiosInstance<JobResultV3200>(\n    { url: `/v3/status/${jobId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * @summary  Cancel Job - Async\n */\nexport const cancelJobV3 = (\n  { jobId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type FillImagesV3AsyncResult = NonNullable<Awaited<ReturnType<typeof fillImagesV3Async>>>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V3\n */\n/**\n * An enumeration.\n */\nexport type AlignmentHorizontal = (typeof AlignmentHorizontal)[keyof typeof AlignmentHorizontal];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentHorizontal = {\n  center: 'center',\n  left: 'left',\n  right: 'right',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type AlignmentVertical = (typeof AlignmentVertical)[keyof typeof AlignmentVertical];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AlignmentVertical = {\n  center: 'center',\n  top: 'top',\n  bottom: 'bottom',\n} as const;\n\n/**\n * The error within the error response.\n */\nexport interface ApiError {\n  error_code: ColligoErrorCodeAsyncV3;\n  message?: string;\n  stack_trace?: string[];\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AsyncAcceptResponseV3 {\n  /** The URL to cancel the job. */\n  cancelUrl: string;\n  /** The ID of the job. */\n  jobId: string;\n  /** The URL to check the status of the job. */\n  statusUrl: string;\n}\n\nexport type AsyncApiErrorV3ErrorCode =\n  | string\n  | ColligoErrorCodeAsyncV3\n  | ColliogAsyncStatusErrorCodeV3\n  | ColligoAsyncCancelErrorCodeV3;\n\n/**\n * The error within the error response.\n */\nexport interface AsyncApiErrorV3 {\n  error_code?: AsyncApiErrorV3ErrorCode;\n  jobId?: string;\n  message?: string;\n  status?: string;\n  validation_errors?: ValidationErrorMessage[];\n}\n\n/**\n * The result of the job, if the job has completed.\n */\nexport type AsyncTaskResponseV3Result =\n  | GenerateImagesResponseV3\n  | GenerateSimilarImagesResponseV3\n  | ExpandImageResponseV3\n  | FillImageResponseV3\n  | GenerateObjectCompositeResponseV3;\n\n/**\n * The status of the job.\n */\nexport type AsyncTaskResponseV3Status =\n  (typeof AsyncTaskResponseV3Status)[keyof typeof AsyncTaskResponseV3Status];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskResponseV3Status = {\n  pending: 'pending',\n  running: 'running',\n  succeeded: 'succeeded',\n  failed: 'failed',\n  canceled: 'canceled',\n} as const;\n\nexport interface AsyncTaskResponseV3 {\n  /** The ID of async job. */\n  jobId: string;\n  progress?: number;\n  /** The result of the job, if the job has completed. */\n  result?: AsyncTaskResponseV3Result;\n  /** The status of the job. */\n  status: AsyncTaskResponseV3Status;\n}\n\nexport interface BaseInputImageV3 {\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BaseInputMaskV3 {\n  /** Original mask image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface BodyExpandImagesV3Async {\n  files: Blob[];\n  request: ExpandImageRequestV3;\n}\n\nexport interface BodyFillImagesV3Async {\n  files: Blob[];\n  request: FillImageRequestV3;\n}\n\nexport interface BodyGenerateImagesV3Async {\n  files: Blob[];\n  request: GenerateImagesRequestV3;\n}\n\nexport interface BodyGenerateObjectCompositeV3Async {\n  files: Blob[];\n  request: GenerateObjectCompositeRequestV3;\n}\n\nexport interface BodyGenerateSimilarImagesV3Async {\n  files: Blob[];\n  request: GenerateSimilarImagesRequestV3;\n}\n\n/**\n * An enumeration.\n */\nexport type ColligoAsyncCancelErrorCodeV3 =\n  (typeof ColligoAsyncCancelErrorCodeV3)[keyof typeof ColligoAsyncCancelErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoAsyncCancelErrorCodeV3 = {\n  job_timeout: 'job_timeout',\n  job_completed: 'job_completed',\n  unknown_job_id: 'unknown_job_id',\n  job_already_canceled: 'job_already_canceled',\n  job_cancel_failed: 'job_cancel_failed',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColligoErrorCodeAsyncV3 =\n  (typeof ColligoErrorCodeAsyncV3)[keyof typeof ColligoErrorCodeAsyncV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColligoErrorCodeAsyncV3 = {\n  validation_error: 'validation_error',\n  runtime_error: 'runtime_error',\n  timeout_error: 'timeout_error',\n  rate_limited: 'rate_limited',\n  access_error: 'access_error',\n  invalid_content_type: 'invalid_content_type',\n  empty_input_body: 'empty_input_body',\n  bad_request: 'bad_request',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ColliogAsyncStatusErrorCodeV3 =\n  (typeof ColliogAsyncStatusErrorCodeV3)[keyof typeof ColliogAsyncStatusErrorCodeV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ColliogAsyncStatusErrorCodeV3 = {\n  unknown_job_id: 'unknown_job_id',\n} as const;\n\n/**\n * An enumeration.\n */\nexport type ContentClassV3 = (typeof ContentClassV3)[keyof typeof ContentClassV3];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClassV3 = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\nexport interface ExpandImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Mask image which will be used to expand the given image. */\n  mask?: InputMaskV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly resizes it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The maximum size for the output images is 3999px by 3999px. */\n  size?: Size;\n}\n\nexport interface ExpandImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface FillImageRequestV3 {\n  /** The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask: InputMaskV3;\n  /**\n   * An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface FillImageResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateImagesRequestV3 {\n  /** Generate an image to being more photographic or more like art. Options include <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Firefly tries to avoid generating anything you specify in this text prompt.\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /** A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header. */\n  promptBiasingLocaleCode?: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  structure?: StructureReferenceV3;\n  style?: StylesV3;\n  /**\n   * Adjusts the overall intensity of your photo's characteristic, such as contrast, shadow and hue.\n   * @minimum 2\n   * @maximum 10\n   */\n  visualIntensity?: number;\n}\n\nexport interface GenerateImagesResponseV3 {\n  /** Generate an image to being more photographic or more like art. Either <code>photo</code> or <code>art</code>. */\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** The generated image does not comply to its full prompt if the prompt names artists that are blocked. */\n  promptHasBlockedArtists?: boolean;\n  /** The generated image does not comply to its full prompt if the prompt contains blocked words or descriptions. */\n  promptHasDeniedWords?: boolean;\n  size: Size;\n}\n\nexport interface GenerateObjectCompositeRequestV3 {\n  contentClass?: ContentClassV3;\n  /** The image to expand. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul> */\n  image: InputImageV3;\n  /** Required. Selected areas of a background image that Firefly uses to fill the source image. */\n  mask?: BaseInputMaskV3;\n  /**\n   * Generate this number of variations. Defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /** The position of the source image after Firefly adjusts it. The value describes the horizontal and vertical placement and dimensions of the image in the output. Note you cannot use placement for source images when you also apply a mask image. */\n  placement?: Placement;\n  /**\n   * An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n  style?: StylesV3;\n}\n\nexport interface GenerateObjectCompositeResponseV3 {\n  contentClass?: ContentClassV3;\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface GenerateSimilarImagesRequestV3 {\n  /** Firefly will create similar variations. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul> */\n  image: BaseInputImageV3;\n  /**\n   * Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.\n   * @minimum 1\n   * @maximum 4\n   */\n  numVariations?: number;\n  /**\n   * Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside with <code>numVariations</code>, the number of seeds must equal to <code>numVariations</code>.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The desired width and height for the final image in pixels. The supported sizes for the output images are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li> <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> */\n  size?: Size;\n}\n\nexport interface GenerateSimilarImagesResponseV3 {\n  /**\n   * Each image ID.\n   * @minItems 1\n   */\n  outputs: OutputImageV3[];\n  /** When you provide size as input, this value is the same. */\n  size: Size;\n}\n\nexport interface HTTPValidationError {\n  detail?: ValidationError[];\n}\n\nexport interface InputImageV3 {\n  /**\n   * This is a deprecated property. Use <code>mask</code> instead.\n   * @deprecated\n   */\n  mask?: PublicBinaryInputV3;\n  /** Source image that Firefly expands, fills or uses to generate similar images */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputMaskV3 {\n  /** Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it. */\n  invert?: boolean;\n  source: PublicBinaryInputV3;\n}\n\nexport interface OutputImageV3 {\n  image: PublicBinaryOutputV3;\n  seed: number;\n}\n\nexport interface Placement {\n  /** Specify horizontal and vertical alignment. Possible values for horizontal=(center|left|right) and for vertical=(center|top|bottom). */\n  alignment?: PlacementAlignment;\n  /** Margin values in target size */\n  inset?: PlacementInset;\n}\n\nexport interface PlacementAlignment {\n  horizontal?: AlignmentHorizontal;\n  vertical?: AlignmentVertical;\n}\n\nexport interface PlacementInset {\n  /** The space between bottom edge of the result image and bottom edge of the placed object image. */\n  bottom?: number;\n  /** The space between left edge of the result image and left edge of the placed object image. */\n  left?: number;\n  /** The space between right edge of the result image and right edge of the placed object image. */\n  right?: number;\n  /** The space between top edge of the result image and top edge of the placed object image. */\n  top?: number;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** This is the uploadId from storage API response. */\n  uploadId?: string;\n  /**\n   * Presigned URL of an uploaded file. You can either use a url or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains as input URL in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> </ul>\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface PublicBinaryOutputV3 {\n  /**\n   * This URL expires in one hour\n   * @minLength 1\n   * @maxLength 2083\n   */\n  url?: string;\n}\n\nexport interface Size {\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  height: number;\n  /**\n   * @minimum 1\n   * @maximum 4096\n   */\n  width: number;\n}\n\nexport interface StructureImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StructureReferenceV3 {\n  imageReference?: StructureImageReferenceV3;\n  /**\n   * Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.\n   * @minimum 0\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport interface StylesImageReferenceV3 {\n  source?: PublicBinaryInputV3;\n}\n\nexport interface StylesV3 {\n  imageReference?: StylesImageReferenceV3;\n  /** You can specify an ID for a style of image to generate */\n  presets?: string[];\n  /**\n   * How strictly Firefly should adhere to the style you provide.\n   * @maximum 100\n   */\n  strength?: number;\n}\n\nexport type ValidationErrorLocItem = string | number;\n\nexport interface ValidationError {\n  loc: ValidationErrorLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  ctx?: ValidationErrorMessageCtx;\n  loc: ValidationErrorMessageLocItem[];\n  msg: string;\n  type: string;\n}\n\nexport type JobResultV3PathParameters = {\n  jobId: string;\n};\nexport type JobResultV3200 = AsyncTaskResponseV3 | AsyncApiErrorV3;\n\nexport type CancelJobV3PathParameters = {\n  jobId: string;\n};\n","export * from './generative-fill-async-v3-client';\nexport * from './generative-fill-async-v3-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Generate Video API\n * Firefly Services Generate Video API allows you to use Firefly AI to generate videos from text.\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n  AsyncResponseV3,\n  CancelJobV3PathParameters,\n  GenerateVideoRequestV3,\n  GenerateVideoV3202,\n  JobResultV3PathParameters,\n} from './generate-video-api-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Generate a five second video using a text prompt.\n * @summary Generate video from text\n */\nexport const generateVideoV3 = (\n  generateVideoRequestV3: GenerateVideoRequestV3,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<GenerateVideoV3202>>\n) => {\n  return customFireflyAxiosInstance<GenerateVideoV3202>(\n    {\n      url: `/v3/videos/generate`,\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json' },\n      data: generateVideoRequestV3,\n    },\n    options\n  );\n};\n\n/**\n * After initiating an asyncronous job, use this endpoint to poll the status using the job URN or ID and retrieve the result when the job is complete.\n * @summary Get job status and result\n */\nexport const jobResultV3 = (\n  { jobUrnOrId }: JobResultV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<AsyncResponseV3>>\n) => {\n  return customFireflyAxiosInstance<AsyncResponseV3>(\n    { url: `/v3/status/${jobUrnOrId}`, method: 'GET' },\n    options\n  );\n};\n\n/**\n * After initiating an asyncronous job, use this endpoint to cancel the job using the job URN or ID.\n * @summary Cancel a running job\n */\nexport const cancelJobV3 = (\n  { jobUrnOrId }: CancelJobV3PathParameters,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<unknown>>\n) => {\n  return customFireflyAxiosInstance<unknown>(\n    { url: `/v3/cancel/${jobUrnOrId}`, method: 'PUT' },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type GenerateVideoV3Result = NonNullable<Awaited<ReturnType<typeof generateVideoV3>>>;\nexport type JobResultV3Result = NonNullable<Awaited<ReturnType<typeof jobResultV3>>>;\nexport type CancelJobV3Result = NonNullable<Awaited<ReturnType<typeof cancelJobV3>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Generate Video API\n * Firefly Services Generate Video API allows you to use Firefly AI to generate videos from text.\n * OpenAPI spec version: 1.0.0\n */\nexport interface AnchorPromptsKey {\n  anchor_prompt: string[];\n}\n\n/**\n * The error details within the error response.\n */\nexport interface ApiError {\n  /** Indicates the type of error that occurred. */\n  error_code: string;\n  /** A human-readable error message. */\n  message?: string;\n  /** Stack trace of the error for debugging purposes. */\n  stack_trace?: string[];\n  /** Detailed validation error messages. */\n  validation_errors?: ValidationErrorMessage[];\n}\n\nexport interface AssetUploadResponse {\n  /** @minItems 1 */\n  assets: PublicBinaryOutput[];\n}\n\nexport interface AsyncTaskLink {\n  href: string;\n}\n\nexport type AsyncTaskLinkType = (typeof AsyncTaskLinkType)[keyof typeof AsyncTaskLinkType];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AsyncTaskLinkType = {\n  cancel: 'cancel',\n  result: 'result',\n} as const;\n\nexport type AsyncTaskResponseLinks = { [key: string]: AsyncTaskLink };\n\nexport type AsyncTaskResponseProgress = number | null;\n\n/**\n * Response type for async requests\n */\nexport interface AsyncTaskResponse {\n  links: AsyncTaskResponseLinks;\n  progress?: AsyncTaskResponseProgress;\n}\n\nexport interface BodyGenExtendVideoV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: ExtendVideoRequest;\n}\n\nexport interface BodyGenExtendVideoV3 {\n  /** Files to be processed */\n  files: Blob[];\n  request: ExtendVideoRequestV3;\n}\n\nexport interface BodyGenerateVideoV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: GenerateVideoRequest;\n}\n\nexport interface BodyGenerateVideoV3 {\n  /** Files to be processed */\n  files: Blob[];\n  request: GenerateVideoRequestV3;\n}\n\nexport interface BodyPromptForgeFilixV2 {\n  /** Files to be processed */\n  files: Blob[];\n  request: PromptForgeRequest;\n}\n\nexport type CameraMotion = (typeof CameraMotion)[keyof typeof CameraMotion];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CameraMotion = {\n  camera_pan_left: 'camera pan left',\n  camera_pan_right: 'camera pan right',\n  camera_zoom_in: 'camera zoom in',\n  camera_zoom_out: 'camera zoom out',\n  camera_tilt_up: 'camera tilt up',\n  camera_tilt_down: 'camera tilt down',\n  camera_locked_down: 'camera locked down',\n  camera_handheld: 'camera handheld',\n} as const;\n\nexport interface ClinetoSize {\n  /**\n   * The height of the output image.\n   * @minimum 1\n   * @maximum 8192\n   */\n  height: number;\n  /**\n   * The width of the output image.\n   * @minimum 1\n   * @maximum 8192\n   */\n  width: number;\n}\n\nexport interface ClipRange {\n  /** The time stamp of a clip end position, in seconds */\n  end?: number;\n  /** The time stamp of a clip start position, in seconds */\n  start?: number;\n}\n\nexport interface ControlData {\n  structureData?: StructureReference;\n}\n\nexport interface CreateSessionResponse {\n  endpoint: string;\n  sessionId: string;\n  ttlSeconds: number;\n}\n\nexport interface DebiasedPrompt {\n  debiased_prompt: string;\n  seed: number;\n}\n\nexport interface DeleteSessionResponse {\n  sessionId: string;\n}\n\n/**\n * the place of reference range and the target range\n */\nexport type ExtendVideoRequestPlacement = Placement | null;\n\n/**\n * If specified alongside with n, the number of seeds must be the equal to n\n */\nexport type ExtendVideoRequestSeeds = number[] | null;\n\n/**\n * The size of the requested generations\n */\nexport type ExtendVideoRequestSizes = ClinetoSize[] | null;\n\nexport interface ExtendVideoRequest {\n  /** the constant rate factor for encoding video */\n  bitRateFactor?: unknown;\n  /** Model version to generate with. 'video1_8_standard' for the default model. */\n  modelVersion?: VideoModelVersion;\n  /** the place of reference range and the target range */\n  placement?: ExtendVideoRequestPlacement;\n  /** If specified alongside with n, the number of seeds must be the equal to n */\n  seeds?: ExtendVideoRequestSeeds;\n  /** The size of the requested generations */\n  sizes?: ExtendVideoRequestSizes;\n  video: InputVideo;\n}\n\nexport interface ExtendVideoRequestV3 {\n  /**\n   * The constant rate factor for encoding video. Can be omitted/empty.\n   * @minimum -1\n   * @maximum 64\n   */\n  bitRateFactor?: number;\n  /** The place of reference range and the target range. Can be omitted/empty. */\n  placement?: Placement;\n  /**\n   * If specified alongside with n, the number of seeds must be the equal to n. Can be omitted/empty.\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  /** The size of the requested generations. Can be omitted/empty. */\n  sizes?: ClinetoSize[];\n  video: InputVideoV3;\n}\n\n/**\n * the constant rate factor for encoding video\n */\nexport type GenerateVideoRequestBitRateFactor = number | null;\n\n/**\n * The controls for the video\n */\nexport type GenerateVideoRequestControlData = ControlData | null;\n\n/**\n * The image conditions for the video\n */\nexport type GenerateVideoRequestImage = InputImage | null;\n\n/**\n * The locale will be used to generate content that is more relevant for user's country and language\n */\nexport type GenerateVideoRequestLocale = string | null;\n\n/**\n * Inference will try to generate against this prompt\n */\nexport type GenerateVideoRequestNegativePrompt = string | null;\n\n/**\n * The prompt used to generate the image. The longer the prompt - the better\n */\nexport type GenerateVideoRequestPrompt = string | null;\n\n/**\n * If specified alongside with n, the number of seeds must be the equal to n\n */\nexport type GenerateVideoRequestSeeds = number[] | null;\n\n/**\n * The size of the requested generations\n */\nexport type GenerateVideoRequestSizes = ClinetoSize[] | null;\n\nexport type GenerateVideoRequestVideoSettings = VideoSettings | null;\n\nexport interface GenerateVideoRequest {\n  /** the constant rate factor for encoding video */\n  bitRateFactor?: GenerateVideoRequestBitRateFactor;\n  /** The controls for the video */\n  controlData?: GenerateVideoRequestControlData;\n  /** The image conditions for the video */\n  image?: GenerateVideoRequestImage;\n  /** The locale will be used to generate content that is more relevant for user's country and language */\n  locale?: GenerateVideoRequestLocale;\n  /** Model version to generate with. 'video1_8_standard' for the default model. */\n  modelVersion?: VideoModelVersion;\n  /** Inference will try to generate against this prompt */\n  negativePrompt?: GenerateVideoRequestNegativePrompt;\n  /** Output spec for the generated videos */\n  output?: VideoOutputSpec;\n  /** The prompt used to generate the image. The longer the prompt - the better */\n  prompt?: GenerateVideoRequestPrompt;\n  /** If specified alongside with n, the number of seeds must be the equal to n */\n  seeds?: GenerateVideoRequestSeeds;\n  /** The size of the requested generations */\n  sizes?: GenerateVideoRequestSizes;\n  videoSettings?: GenerateVideoRequestVideoSettings;\n}\n\nexport interface GenerateVideoRequestV3 {\n  /**\n   * The constant rate factor for encoding video. 0 indicates a lossless generation, with the highest quality and largest file size. 63 indicates the worst quality generation with the smallest file size. The suggested value range is 17-23.\n   * @minimum 0\n   * @maximum 63\n   */\n  bitRateFactor?: number;\n  /** The details of the image used as a keyframe for the generated video. Provided images are used as a first frame or final frame to guide the video generation. */\n  image?: InputImageV3;\n  /** The prompt used to generate the image. The longer the prompt, the better. */\n  prompt?: string;\n  /**\n   * The seed reference value. Currently only 1 seed is supported.\n   * @minItems 1\n   * @maxItems 1\n   */\n  seeds?: number[];\n  /** The dimensions of the generated video. Review the usage notes for [supported aspect ratios](/firefly-services/docs/firefly-api/guides/help/usage_notes/) and the sizes associated with them. */\n  sizes?: ClinetoSize[];\n  /** The camera and shot control settings. */\n  videoSettings?: VideoSettingsV3;\n}\n\nexport interface ImageCondition {\n  /** The placement of the condition image */\n  placement: PlacementStart;\n  /** The image of the condition */\n  source: PublicBinaryInput;\n}\n\nexport interface ImageConditionV3 {\n  /** Details about the timeline placement of the image. */\n  placement: PlacementStart;\n  /** The source details of the image. */\n  source: PublicBinaryInputV3;\n}\n\nexport interface InputImage {\n  /** The image conditions for the video */\n  conditions?: ImageCondition[];\n}\n\nexport interface InputImageV3 {\n  /** The details about the keyframe images used for the video generation. */\n  conditions?: ImageConditionV3[];\n}\n\nexport interface InputVideo {\n  source: PublicBinaryInput;\n}\n\nexport interface InputVideoV3 {\n  source: PublicBinaryInputV3;\n}\n\n/**\n * the position of generated clip\n */\nexport type PlacementInset = ClipRange | null;\n\n/**\n * the clip used as condition\n */\nexport type PlacementReference = ClipRange | null;\n\nexport interface Placement {\n  /** the position of generated clip */\n  inset?: PlacementInset;\n  /** the clip used as condition */\n  reference?: PlacementReference;\n}\n\nexport interface PlacementStart {\n  /**\n   * The position of the image on the timeline for the generated video, 0 being the first frame and 1 being the last frame.\n   * @minimum 0\n   * @maximum 1\n   */\n  position: number;\n}\n\nexport interface PromptForgeErrors {\n  is_blocked_class_artist?: boolean;\n  is_blocked_class_nsfw?: boolean;\n  is_denied?: boolean;\n  is_empty_prompt?: boolean;\n  is_not_supported_language?: boolean;\n  is_silent?: boolean;\n}\n\nexport interface PromptForgeOutput {\n  debiased_prompt: string;\n  debiased_prompts?: DebiasedPrompt[];\n  expanded_prompts?: string[];\n  output_prompt: string;\n}\n\nexport type PromptForgePipeline = (typeof PromptForgePipeline)[keyof typeof PromptForgePipeline];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const PromptForgePipeline = {\n  CME: 'CME',\n  CLIO: 'CLIO',\n  CLIO_NO_NSFW: 'CLIO_NO_NSFW',\n  DEV: 'DEV',\n  PEOPLE_BANLIST: 'PEOPLE_BANLIST',\n  NO_PEOPLE_BANLIST: 'NO_PEOPLE_BANLIST',\n  AUTOCOMPLETE: 'AUTOCOMPLETE',\n  NSFW_CLASSIFIER: 'NSFW_CLASSIFIER',\n  NSFW_PG13_CLASSIFIER: 'NSFW_PG13_CLASSIFIER',\n  T2V_PROMPT_REWRITE: 'T2V_PROMPT_REWRITE',\n} as const;\n\nexport type PromptForgeRequestInputExpanded = string[] | null;\n\nexport interface PromptForgeRequest {\n  age_debias_enbaled?: boolean;\n  check_language?: boolean;\n  debias_enabled?: boolean;\n  debug_enabled?: boolean;\n  expansion_enabled?: boolean;\n  input_expanded?: PromptForgeRequestInputExpanded;\n  input_tag_people?: boolean;\n  lang: string;\n  pipeline: PromptForgePipeline;\n  prompt: string;\n  seeds: number[];\n}\n\nexport type PromptForgeResponseContainRenderingText = boolean[] | null;\n\nexport type PromptForgeResponseDebugOutput = string[] | null;\n\nexport type PromptForgeResponseReforgedPrompts = string[] | null;\n\nexport interface PromptForgeResponse {\n  anchor_prompts: AnchorPromptsKey[];\n  atoms_ran: string[][];\n  contain_people: boolean[];\n  contain_rendering_text?: PromptForgeResponseContainRenderingText;\n  debug_output?: PromptForgeResponseDebugOutput;\n  errors: PromptForgeErrors[];\n  expandedOutput?: string[];\n  language_detected: string[];\n  output: PromptForgeOutput[];\n  pipeline: PromptForgePipeline[];\n  reforged_prompts?: PromptForgeResponseReforgedPrompts;\n}\n\n/**\n * Optional ID of the file in ACP. This has to be an ACP file assetID.\n */\nexport type PublicBinaryInputCreativeCloudFileId = string | null;\n\n/**\n * This is coming from other outputs\n */\nexport type PublicBinaryInputId = string | null;\n\nexport type PublicBinaryInputName = string | null;\n\n/**\n * This URL will expire in one hour\n */\nexport type PublicBinaryInputPresignedUrl = string | null;\n\n/**\n * In public HTTP APIs by convention we use this object to represent binary data (image, mesh, ...);\neven though for internal rquests we have different types.\n\nInputs (at least one should be provided):\n\n- id: If this object represents a file in our s3 temp storage system, the ID for that. This is usually\n  used when caller wants to send the image back to us.\n- presigned_url: If the object is stored as pre-signed URL.\n- creative_cloud_file_id: if the object is stored as as ACP file; id of the file.\n- name: This is used if the object is included in the request or response payload as form. This field will\n  be the name of the multi-part file. When accepting this file in the adapter, you don't need to use this field\n  directly, instead the _source (binary) and _mime_type (string) will be set for you.\n  When returning this type, tou don't need to set this field directly, instead set the bytes,\n  and the mime type, and inference platform takes care of converting to multi-part.\n    ```\n    binary = PublicBinary(); binary._source = ...;  binary._mime_type = ...\n    ```\n\nIt is also possible to set multiple fields; in case you want to return a file stored in various places\nto the user.\n */\nexport interface PublicBinaryInput {\n  /** Optional ID of the file in ACP. This has to be an ACP file assetID. */\n  creativeCloudFileId?: PublicBinaryInputCreativeCloudFileId;\n  /** This is coming from other outputs */\n  id?: PublicBinaryInputId;\n  name?: PublicBinaryInputName;\n  /** This URL will expire in one hour */\n  presignedUrl?: PublicBinaryInputPresignedUrl;\n}\n\n/**\n * Optional ID of the file in ACP. This has to be an ACP file assetID.\n */\nexport type PublicBinaryOutputCreativeCloudFileId = string | null;\n\n/**\n * This is coming from other outputs\n */\nexport type PublicBinaryOutputId = string | null;\n\nexport type PublicBinaryOutputName = string | null;\n\n/**\n * This URL will expire in one hour\n */\nexport type PublicBinaryOutputPresignedUrl = string | null;\n\n/**\n * In public HTTP APIS by convention we use this object to represent binary data (image, mesh, ...);\neven though for internal rquests we have different types.\n\nInputs (at least one should be provided):\n\n- id: If this object represents a file in our s3 temp storage system, the ID for that. This is usually\n  used when caller wants to send the image back to us.\n- presigned_url: If the object is stored as pre-signed URL.\n- creative_cloud_file_id: if the object is stored as as ACP file; id of the file.\n- name: This is used if the object is included in the request or response payload as form. This field will\n  be the name of the multi-part file. When accepting this file in the adapter, you don't need to use this field\n  directly, instead the _source (binary) and _mime_type (string) will be set for you.\n  When returning this type, tou don't need to set this field directly, instead set the bytes,\n  and the mime type, and inference platform takes care of converting to multi-part.\n    ```\n    binary = PublicBinary(); binary._source = ...;  binary._mime_type = ...\n    ```\n\nIt is also possible to set multiple fields; in case you want to return a file stored in various places\nto the user.\n */\nexport interface PublicBinaryOutput {\n  /** Optional ID of the file in ACP. This has to be an ACP file assetID. */\n  creativeCloudFileId?: PublicBinaryOutputCreativeCloudFileId;\n  /** This is coming from other outputs */\n  id?: PublicBinaryOutputId;\n  name?: PublicBinaryOutputName;\n  /** This URL will expire in one hour */\n  presignedUrl?: PublicBinaryOutputPresignedUrl;\n}\n\nexport interface PublicBinaryInputV3 {\n  /** The ID of the file in Adobe Creative Cloud. Has to be a Creative Cloud file asset ID. */\n  creativeCloudFileId?: string;\n  /** The internal ID for a storage item that is coming from other outputs. */\n  uploadId?: string;\n  /**\n   * The pre-signed URL for the input file.\n   * @minLength 1\n   * @maxLength 4096\n   */\n  url?: string;\n}\n\nexport type ShotAngle = (typeof ShotAngle)[keyof typeof ShotAngle];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ShotAngle = {\n  aerial_shot: 'aerial shot',\n  eye_level_shot: 'eye_level shot',\n  high_angle_shot: 'high angle shot',\n  low_angle_shot: 'low angle shot',\n  'top-down_shot': 'top-down shot',\n} as const;\n\nexport type ShotSize = (typeof ShotSize)[keyof typeof ShotSize];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ShotSize = {\n  'close-up_shot': 'close-up shot',\n  'extreme_close-up': 'extreme close-up',\n  medium_shot: 'medium shot',\n  long_shot: 'long shot',\n  extreme_long_shot: 'extreme long shot',\n} as const;\n\nexport interface StructureReference {\n  depthStrength?: number;\n  edgeStrength?: number;\n  referenceVideo: InputVideo;\n}\n\n/**\n * Additional context for the validation error.\n */\nexport type ValidationErrorMessageCtx = { [key: string]: unknown };\n\nexport type ValidationErrorMessageLocItem = number | string;\n\nexport interface ValidationErrorMessage {\n  /** Additional context for the validation error. */\n  ctx?: ValidationErrorMessageCtx;\n  /** Location of the validation error in the request. */\n  loc: ValidationErrorMessageLocItem[];\n  /** Validation error message. */\n  msg: string;\n  /** Type of validation error. */\n  type: string;\n}\n\nexport type VideoModelVersion = (typeof VideoModelVersion)[keyof typeof VideoModelVersion];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const VideoModelVersion = {\n  video15: 'video1.5',\n  video1_8_standard: 'video1_8_standard',\n} as const;\n\nexport interface VideoOutputSpec {\n  /** If `true`, Firefly and ACPC will store the output as a DCX composite which contains the input recipe information along with output content. If `false`, it will store it as plain content. */\n  storeInputs?: boolean;\n}\n\nexport type VideoPromptStyle = (typeof VideoPromptStyle)[keyof typeof VideoPromptStyle];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const VideoPromptStyle = {\n  anime: 'anime',\n  '3d': '3d',\n  fantasy: 'fantasy',\n  cinematic: 'cinematic',\n  claymation: 'claymation',\n  line_art: 'line art',\n  stop_motion: 'stop motion',\n  '2d': '2d',\n  vector_art: 'vector art',\n  black_and_white: 'black and white',\n} as const;\n\nexport interface VideoSettings {\n  /** The camera motion control */\n  cameraMotion?: CameraMotion;\n  /** The style of the generated video */\n  promptStyle?: VideoPromptStyle;\n  /** The shot angle control */\n  shotAngle?: ShotAngle;\n  /** The shot size control */\n  shotSize?: ShotSize;\n}\n\nexport interface VideoSettingsV3 {\n  /** The camera motion control. */\n  cameraMotion?: CameraMotion;\n  /** The style of the generated video. */\n  promptStyle?: VideoPromptStyle;\n  /** The shot angle control. */\n  shotAngle?: ShotAngle;\n  /** The shot size control. */\n  shotSize?: ShotSize;\n}\n\nexport interface VideoResult {\n  /** The pre-signed URL for the generated video file. */\n  url: string;\n}\n\nexport interface VideoOutput {\n  /** The seed value used for generating this video output. */\n  seed: number;\n  video: VideoResult;\n}\n\nexport interface AsyncResult {\n  size: ClinetoSize;\n  /** Array of generated video outputs. */\n  outputs: VideoOutput[];\n}\n\nexport interface AsyncResponseV3 {\n  /** A URL to cancel the job. */\n  cancelUrl?: unknown;\n  /** The ID for the asyncronous job. */\n  jobId: unknown;\n  /** The progress of the running job. The value is the percentage of the job that has been completed. */\n  progress?: number;\n  /** The result of the completed job. */\n  result?: AsyncResult;\n  /** The status of the job. */\n  status?: unknown;\n  /** A URL to show the status of the current job. */\n  statusUrl?: unknown;\n}\n\n/**\n * The headers of the message\n */\nexport type MessageResponseSchemaHeaders = { [key: string]: string };\n\n/**\n * This is a schema for the final message response that is sent to the client after async job completed.\nIt is used in OpenAPI schema docs.\nThe actual response is of type starlette.types.Message\n */\nexport interface MessageResponseSchema {\n  /** The body of the message */\n  body: unknown;\n  /** The headers of the message */\n  headers: MessageResponseSchemaHeaders;\n  /** The status code of the message */\n  status: number;\n  /** The status text of the message */\n  status_text: string;\n  /** The type of the message */\n  type: string;\n  /** The url of the message */\n  url: string;\n}\n\nexport type GenerateVideoV3202 = {\n  jobId: string;\n  statusUrl: string;\n  cancelUrl: string;\n};\n\nexport type JobResultV3PathParameters = {\n  jobUrnOrId: string;\n};\nexport type CancelJobV3PathParameters = {\n  jobUrnOrId: string;\n};\n","export * from './generate-video-api-client';\nexport * from './generate-video-api-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V2\n */\nimport type { StorageImageResponse } from './upload-image-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Upload source image or mask for image-to-image operations, such as fill, expand. This API returns an identifier that is used to refer to uploaded content. The uploaded assets will be valid for 7 days from the date you upload them.\n * @summary Upload\n */\nexport const storageImageV2 = (\n  storageImageV2Body: Blob,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<StorageImageResponse>>\n) => {\n  return customFireflyAxiosInstance<StorageImageResponse>(\n    {\n      url: `/v2/storage/image`,\n      method: 'POST',\n      headers: { 'Content-Type': 'image/jpeg' },\n      data: storageImageV2Body,\n    },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type StorageImageV2Result = NonNullable<Awaited<ReturnType<typeof storageImageV2>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise usage\n * OpenAPI spec version: V2\n */\nexport interface ImageGenerateRequest {\n  /**\n   * Text prompt for image generation.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt: string;\n  /**\n   * The model will avoid these words in the generated content.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  negativePrompt?: string;\n  contentClass?: ContentClass;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  size?: ImageGenerateSize;\n  photoSettings?: PhotoSettings;\n  styles?: Styles;\n  /**\n   * Adjusts the overall intensity of your photo's existing visual characteristics\n   * @minItems 2\n   * @maxItems 10\n   */\n  visualIntensity?: number;\n  /** A hyphen separated string, combining the ISO 639-1 language code and the ISO 3166-1 region, such as \"en-US\". When a locale is set, the prompt will be debiased to generated more relevant content to that region. If not specified, the locale will be auto detected, based on user's profile and Accept-Language header. */\n  locale?: string;\n}\n\n/**\n * Successful operation\n */\nexport interface ImageGenerateRespons {\n  /** Unique identifier indicating the model and pipeline version with which the images were generated. */\n  version?: string;\n  size?: ImageGenerateSize;\n  outputs?: ImageOutput[];\n}\n\n/**\n * Dimensions of the generated image\n  | Dimensions | Description | \n  | -----------| ----- |\n  | { \"width\": 2048, \"height\": 2048} | Square (1:1) |\n  | { \"width\": 2304, \"height\": 1792 } | Landscape (4:3) |\n  | { \"width\": 1792, \"height\": 2304 } | Portrait (3:4) | \n  | { \"width\": 2688, \"height\": 1536 } | Widescreen (16:9) |\n\n */\nexport interface ImageGenerateSize {\n  width?: number;\n  height?: number;\n}\n\n/**\n * Advanced settings that will be applied if the specified or detected contentClass is photo\n */\nexport interface PhotoSettings {\n  /**\n   * Aperture\n   * @minimum 1.2\n   * @maximum 22\n   */\n  aperture?: number;\n  /**\n   * Shutter speed (seconds)\n   * @minimum 0.0005\n   * @maximum 10\n   */\n  shutterSpeed?: number;\n  /**\n   * Field of view (millimeters)\n   * @minimum 14\n   * @maximum 300\n   */\n  fieldOfView?: number;\n}\n\n/**\n * The content class guides the overall image theme and styles can be applied on top of each content type. If no content type is specified, it is auto-detected. \n  | Value  |  Description\n  |:---------- |:------\n  | photo      | Photorealistic style\n  | art    | Artistic style\n\n */\nexport type ContentClass = (typeof ContentClass)[keyof typeof ContentClass];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ContentClass = {\n  photo: 'photo',\n  art: 'art',\n} as const;\n\n/**\n * Additional styles and reference image to be applied when generating variations.\n */\nexport interface Styles {\n  /** List of style presets (See \"Image Model Styles\" under \"Getting Started\" guides) that are applied to generated content */\n  presets?: unknown[];\n  referenceImage?: StorageImage;\n  /**\n   * Sets the intensity at which to apply the styles\n   * @minimum 1\n   * @maximum 100\n   */\n  strength?: number;\n}\n\n/**\n * A valid Storage Item containing both an internal ID and a pre-signed URL\n */\nexport type ImageOutputImage = {\n  /** Signed URL of the generated image.<br><strong>Note:</strong> This URL is valid for one hour. */\n  presignedUrl?: string;\n  /** Unique ID associated with the generated image.<br><strong>Note:</strong> The ID of the generated image will remain valid for 24 hours. */\n  id?: string;\n};\n\n/**\n * Array of objects with details on output images\n */\nexport interface ImageOutput {\n  /** A valid Storage Item containing both an internal ID and a pre-signed URL */\n  image?: ImageOutputImage;\n  /** seed used to generate the image */\n  seed?: number;\n}\n\n/**\n * storage response\n */\nexport interface StorageImageResponse {\n  /** Array of objects containing asset ID. */\n  images?: StorageImage[];\n}\n\n/**\n * Source image\n */\nexport interface StorageImage {\n  /** ID associated with the asset. The id will be valid for 7 days from the date of creation. Pre-signed URLs will be supported in the future. */\n  id: string;\n}\n\nexport interface ImageExpandRequest {\n  /**\n   * If provided, the expanded image will be rendered with content generated from prompt. If not provided, the expanded image will be rendered with content matching the existing style of the image.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  image?: StorageImage;\n  size?: ImageSize;\n}\n\n/**\n * gen-expand response\n */\nexport interface ImageGenerativeResponse {\n  /** Unique identifier indicating the model and pipeline version with which the images were generated. */\n  pipelineVersion?: string;\n  /** If provided, the masked area will be rendered with content generated from prompt. If not provided, the masked area will be rendered with content matching the existing style of the source image. */\n  prompt?: string;\n  /** Flag to indicate if denied words were detected in the prompt. */\n  promptHasDeniedWords?: boolean;\n  /** Flag to indicate if artist names were detected in the prompt. */\n  promptHasBlockedArtist?: boolean;\n  size?: ImageSize;\n  images?: ImageOutput[];\n}\n\n/**\n * Supported dimensions for the generated image.\n  | Dimensions | Description | \n  | -----------| ----- |\n  | { \"width\": 1024, \"height\": 1024} | Square (1:1) |\n  | { \"width\": 1408, \"height\": 1024 } | Landscape (4:3) |\n  | { \"width\": 1024, \"height\": 1408 } | Portrait (3:4) | \n  | { \"width\": 1792, \"height\": 1024 } | Widescreen (16:9) |\n\n */\nexport interface ImageSize {\n  /**\n   * @minimum 1024\n   * @maximum 1792\n   */\n  width: number;\n  /**\n   * @minimum 1024\n   * @maximum 1408\n   */\n  height: number;\n}\n\nexport interface ImageFillRequest {\n  /**\n   * If provided, the masked area will be rendered with content generated from prompt. If not provided, the masked area will be rendered with content matching the existing style of the source image.\n   * @minLength 1\n   * @maxLength 1024\n   */\n  prompt?: string;\n  /**\n   * The number of variations to generate. If seeds array is specified, \"n\" does not have to be specified.\n   * @minimum 1\n   * @maximum 4\n   */\n  n?: number;\n  /**\n   * Array of seed(s) that will provide generation stability across multiple API calls. E.g. You can use the same seed to generate a similar image with different styles. If \"n\" is specified, the number of elements in the array must be equal to \"n\".\n   * @minItems 1\n   * @maxItems 4\n   */\n  seeds?: number[];\n  size: ImageSize;\n  image: StorageImage;\n  mask: ImageFillMask;\n}\n\n/**\n * Custom mask that will be filled with generated content\n */\nexport interface ImageFillMask {\n  /** ID associated with the asset (generate this ID using the upload API). Pre-signed URLs will be supported in the future. */\n  id: string;\n}\n\nexport interface ErrorBody {\n  /** Error message */\n  message?: string;\n  /** Associated error code */\n  error_code?: string;\n}\n\nexport type AcceptTypes = (typeof AcceptTypes)[keyof typeof AcceptTypes];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AcceptTypes = {\n  'application/json': 'application/json',\n  'multipart/mixed': 'multipart/mixed',\n} as const;\n\nexport type AcceptMimeTypes = (typeof AcceptMimeTypes)[keyof typeof AcceptMimeTypes];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AcceptMimeTypes = {\n  'image/jpeg': 'image/jpeg',\n  'image/webp': 'image/webp',\n  'image/png': 'image/png',\n} as const;\n\nexport type XAcceptMimetypeParameter =\n  (typeof XAcceptMimetypeParameter)[keyof typeof XAcceptMimetypeParameter];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const XAcceptMimetypeParameter = {\n  'image/jpeg': 'image/jpeg',\n  'image/webp': 'image/webp',\n  'image/png': 'image/png',\n} as const;\n\nexport type XApiVariantParameter = (typeof XApiVariantParameter)[keyof typeof XApiVariantParameter];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const XApiVariantParameter = {\n  v1: 'v1',\n  v2: 'v2',\n} as const;\n\n/**\n * Optional unique identifier that can be attached to an API request.\n */\nexport type XRequestIdParameter = string;\n\nexport type XGwImsScopeParameter = string;\n\n/**\n * Optional identifier that can be provided to represent an unique browser session for an user.\n */\nexport type XSessionIdParameter = string;\n","export * from './upload-image-client';\nexport * from './upload-image-client.schemas';\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise use.\n * OpenAPI spec version: V3\n */\nimport type {\n  CustomModelsFF3pInfo,\n  GetCustomModelsParams,\n} from './custom-models-listing-client.schemas';\n\nimport { customFireflyAxiosInstance } from '../../mutator/custom-firefly-axios-instance';\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the custom models for a user.\n * @summary Retrieve custom models\n */\nexport const getCustomModels = (\n  params?: GetCustomModelsParams,\n  options?: SecondParameter<typeof customFireflyAxiosInstance<CustomModelsFF3pInfo>>\n) => {\n  return customFireflyAxiosInstance<CustomModelsFF3pInfo>(\n    { url: `/v3/custom-models`, method: 'GET', params },\n    options\n  );\n};\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\nexport type GetCustomModelsResult = NonNullable<Awaited<ReturnType<typeof getCustomModels>>>;\n","/**\n * Generated by orval v7.14.0 🍺\n * Do not edit manually.\n * Firefly API\n * REST API for Adobe Firefly for enterprise use.\n * OpenAPI spec version: V3\n */\nexport interface ErrorResponse {\n  /** The type of error that occurred. */\n  reason?: string;\n  /** A message describing the error. */\n  message?: string;\n}\n\nexport interface CustomModelsFF3pInfo {\n  /** Custom Models List */\n  custom_models?: CustomModelFF3pInfo[];\n  _links?: Links;\n  /** Total results for query */\n  total_count?: number;\n}\n\n/**\n * The [training mode of the model](../firefly-api-reference/custom-models.md#training-mode). When this is 'subject', the 'conceptId' must be mentioned in the prompt.\n */\nexport type CustomModelFF3pInfoTrainingMode =\n  (typeof CustomModelFF3pInfoTrainingMode)[keyof typeof CustomModelFF3pInfoTrainingMode];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CustomModelFF3pInfoTrainingMode = {\n  subject: 'subject',\n  style: 'style',\n} as const;\n\n/**\n * Status for the asset. The 'unpublished' value applies when an asset is published and then subsequently revoked.\n */\nexport type CustomModelFF3pInfoPublishedState =\n  (typeof CustomModelFF3pInfoPublishedState)[keyof typeof CustomModelFF3pInfoPublishedState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CustomModelFF3pInfoPublishedState = {\n  never: 'never',\n  published: 'published',\n  unpublished: 'unpublished',\n} as const;\n\n/**\n * Custom Model info\n */\nexport interface CustomModelFF3pInfo {\n  /** Custom Model version. */\n  version?: string;\n  /** Custom Model name. */\n  assetName?: string;\n  /** The storage amount used. */\n  size?: number;\n  /** An identifier for the specific version of the asset. */\n  etag?: string;\n  /** The [training mode of the model](../firefly-api-reference/custom-models.md#training-mode). When this is 'subject', the 'conceptId' must be mentioned in the prompt. */\n  trainingMode?: CustomModelFF3pInfoTrainingMode;\n  /** A unique identifier for the asset. */\n  assetId?: string;\n  /** The media type specific to the asset. */\n  mediaType?: string;\n  createdDate?: string;\n  modifiedDate?: string;\n  /** Status for the asset. The 'unpublished' value applies when an asset is published and then subsequently revoked. */\n  publishedState?: CustomModelFF3pInfoPublishedState;\n  /** The underlying GenAI model used to train the Custom Model. */\n  baseModel?: BaseModel;\n  /** Example string provided by the custom model's trainer */\n  samplePrompt?: string;\n  /** The asset name provided by the user, mapped from the name of the training set library. */\n  displayName?: string;\n  /** When 'trainingMode' is 'subject', this string specifies the subject for the prompt. */\n  conceptId?: string;\n}\n\nexport interface BaseModel {\n  name?: string;\n  version?: string;\n}\n\n/**\n * Collection of hypermedia links for pagination, navigation, etc.\n */\nexport interface Links {\n  page?: Link;\n  next?: Link;\n}\n\n/**\n * Standard representation of a hypermedia link.\n */\nexport interface Link {\n  /** Fully qualified URI or relative path for the link. */\n  href?: string;\n  /** Describes the relationship or function of the link (e.g. `next`, `page`, `self`). */\n  rel?: string;\n  /** Indicates whether or not the `href` supports URI template parameters. */\n  templated?: boolean;\n}\n\n/**\n * List Page\n */\nexport interface PageSpec {\n  /** List orderby */\n  orderBy?: string;\n  /** List start position */\n  start?: string;\n  /** List next position */\n  next?: string;\n  /** List page size */\n  count?: number;\n  /** List page type */\n  type?: string;\n  /** List page property */\n  property?: string;\n}\n\nexport type GetCustomModelsParams = {\n  /**\n   * A sorting option for the response list. For a reverse sort, use `-` (e.g., `-modifiedDate`). Multi-vector sorting is not currently supported.\n   */\n  sortBy?: GetCustomModelsSortBy;\n  /**\n   * The first result to include in a paginated response. Required if a `limit` is specified.\n   */\n  start?: string;\n  /**\n   * The number of custom models to return in a paginated response.\n   * @minimum 1\n   * @maximum 50\n   */\n  limit?: string;\n  /**\n   * This filters custom models by published state.\n   */\n  publishedState?: GetCustomModelsPublishedState;\n};\n\nexport type GetCustomModelsSortBy =\n  (typeof GetCustomModelsSortBy)[keyof typeof GetCustomModelsSortBy];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCustomModelsSortBy = {\n  assetName: 'assetName',\n  createdDate: 'createdDate',\n  modifiedDate: 'modifiedDate',\n} as const;\n\nexport type GetCustomModelsPublishedState =\n  (typeof GetCustomModelsPublishedState)[keyof typeof GetCustomModelsPublishedState];\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetCustomModelsPublishedState = {\n  all: 'all',\n  ready: 'ready',\n  published: 'published',\n  unpublished: 'unpublished',\n  queued: 'queued',\n  training: 'training',\n  failed: 'failed',\n  cancelled: 'cancelled',\n} as const;\n","export * from './custom-models-listing-client';\nexport * from './custom-models-listing-client.schemas';\n","import type {\n  GenerateSimilarClient,\n  ImageGenerationClient,\n  GenerateObjectCompositeClient,\n  GenerateVideoClient,\n  GenerativeExpandClient,\n  GenerativeFillClient,\n} from '..';\nimport { FIREFLY_AXIOS_INSTANCE } from '../mutator/custom-firefly-axios-instance';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * Polling utilities for async Firefly jobs\n */\n\nexport interface PollFireflyJobOptions<TResult = unknown> {\n  /**\n   * Authentication and other fetch options\n   */\n  axiosRequestConfig?: AxiosRequestConfig;\n  /**\n   * Interval between polling attempts in milliseconds\n   * @default 2000\n   */\n  intervalMs?: number;\n  /**\n   * Maximum number of polling attempts\n   * @default 60\n   */\n  maxAttempts?: number;\n  /**\n   * Callback for progress updates\n   */\n  onProgress?: (status: JobStatus<TResult>) => void;\n  /**\n   * Custom timeout in milliseconds (overrides maxAttempts)\n   */\n  timeoutMs?: number;\n}\n\nexport interface JobStatus<TResult = unknown> {\n  jobId: string;\n  status: 'pending' | 'running' | 'succeeded' | 'failed' | 'canceled';\n  progress?: number;\n  result?: TResult;\n}\n\nexport class PollingError extends Error {\n  constructor(\n    message: string,\n    public readonly status?: JobStatus,\n    public readonly cause?: unknown\n  ) {\n    super(message);\n    this.name = 'PollingError';\n  }\n}\n\nexport class PollingTimeoutError extends PollingError {\n  constructor(message: string, status?: JobStatus) {\n    super(message, status);\n    this.name = 'PollingTimeoutError';\n  }\n}\n\n/**\n * Polls a Firefly async job until completion\n *\n * @param jobResult - The job result containing a statusUrl from the initial async response\n * @param options - Polling configuration options\n * @returns The final job result when succeeded, with type automatically inferred from the job response\n * @throws {PollingTimeoutError} If max attempts or timeout is reached\n * @throws {PollingError} If the job fails or is canceled\n *\n * @example\n * ```typescript\n * // Type is automatically inferred as GenerateImagesResponseV3\n * const result = await pollJob(imageJob, { axiosRequestConfig: { headers } });\n *\n * // Type is automatically inferred as video result type\n * const videoResult = await pollJob(videoJob, { axiosRequestConfig: { headers } });\n * ```\n */\nexport async function pollFireflyJob<TResult>(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<TResult> = {}\n): Promise<TResult> {\n  const { statusUrl } = jobResult;\n  const {\n    axiosRequestConfig = {},\n    intervalMs = 2000,\n    maxAttempts = 60,\n    onProgress,\n    timeoutMs,\n  } = options;\n\n  const startTime = Date.now();\n  const effectiveTimeout = timeoutMs ?? maxAttempts * intervalMs;\n  let attempts = 0;\n\n  while (true) {\n    attempts++;\n\n    // Check timeout\n    const elapsed = Date.now() - startTime;\n    if (elapsed >= effectiveTimeout) {\n      throw new PollingTimeoutError(`Polling timeout after ${elapsed}ms (${attempts} attempts)`);\n    }\n\n    try {\n      const response = await FIREFLY_AXIOS_INSTANCE.get<JobStatus<TResult>>(\n        statusUrl,\n        axiosRequestConfig\n      );\n\n      const status = response.data;\n\n      // Call progress callback if provided\n      if (onProgress) {\n        onProgress(status);\n      }\n\n      // Check terminal states\n      if (status.status === 'succeeded') {\n        return status.result as TResult;\n      }\n\n      if (status.status === 'failed') {\n        throw new PollingError(`Job failed: ${JSON.stringify(status)}`, status);\n      }\n\n      if (status.status === 'canceled') {\n        throw new PollingError(`Job was canceled`, status);\n      }\n\n      // Job still running, wait before next poll\n      await sleep(intervalMs);\n    } catch (error) {\n      // Re-throw our custom errors\n      if (error instanceof PollingError) {\n        throw error;\n      }\n\n      // Wrap other errors\n      throw new PollingError(\n        `Failed to poll job status: ${error instanceof Error ? error.message : String(error)}`,\n        undefined,\n        error\n      );\n    }\n  }\n}\n\nexport async function pollGenerateSimilarJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<GenerateSimilarClient.GenerateSimilarImagesResponseV3>\n): Promise<GenerateSimilarClient.GenerateSimilarImagesResponseV3> {\n  return pollFireflyJob<GenerateSimilarClient.GenerateSimilarImagesResponseV3>(jobResult, options);\n}\n\nexport async function pollGenerateImagesJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<ImageGenerationClient.GenerateImagesResponseV3>\n): Promise<ImageGenerationClient.GenerateImagesResponseV3> {\n  return pollFireflyJob<ImageGenerationClient.GenerateImagesResponseV3>(jobResult, options);\n}\n\nexport async function pollGenerateObjectCompositeJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<GenerateObjectCompositeClient.GenerateObjectCompositeResponseV3>\n): Promise<GenerateObjectCompositeClient.GenerateObjectCompositeResponseV3> {\n  return pollFireflyJob<GenerateObjectCompositeClient.GenerateObjectCompositeResponseV3>(\n    jobResult,\n    options\n  );\n}\n\nexport async function pollGenerateVideoJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<GenerateVideoClient.AsyncResult>\n): Promise<GenerateVideoClient.AsyncResult> {\n  return pollFireflyJob<GenerateVideoClient.AsyncResult>(jobResult, options);\n}\n\nexport async function pollGenerateExpandJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<GenerativeExpandClient.ExpandImageResponseV3>\n): Promise<GenerativeExpandClient.ExpandImageResponseV3> {\n  return pollFireflyJob<GenerativeExpandClient.ExpandImageResponseV3>(jobResult, options);\n}\n\nexport async function pollGenerateFillJob(\n  jobResult: { statusUrl: string },\n  options: PollFireflyJobOptions<GenerativeFillClient.FillImageResponseV3>\n): Promise<GenerativeFillClient.FillImageResponseV3> {\n  return pollFireflyJob<GenerativeFillClient.FillImageResponseV3>(jobResult, options);\n}\n\n/**\n * Utility function to sleep for a given duration\n */\nfunction sleep(ms: number): Promise<void> {\n  return new Promise((resolve) => setTimeout(resolve, ms));\n}\n"],"mappings":"okBAEA,MAAa,EAAyB,EAAA,QAAM,QAAQ,CACpD,EAAuB,SAAS,QAAU,+BAG1C,MAAa,GACX,EACA,IACe,CACf,IAAM,EAAS,EAAA,QAAM,YAAY,QAAQ,CAmBzC,OAfI,EAAO,KAAK,SAAS,WAAW,EAC9B,IACF,EAAQ,QAAU,CAChB,GAAG,EAAQ,QACX,kBAAmB,kBACpB,EAIW,EAAuB,CACrC,GAAG,EACH,GAAG,EACH,YAAa,EAAO,MACrB,CAAC,CAAC,MAAM,CAAE,UAAW,EAAK,ECDhB,IACX,EACA,IAEO,EACL,CAAE,IAAK,4BAA6B,OAAQ,OAAQ,KAAM,EAA2B,CACrF,EACD,CAOU,IACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CAOU,IACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CChDU,GAAsB,CACjC,OAAQ,SACR,KAAM,OACN,MAAO,QACR,CAQY,GAAoB,CAC/B,OAAQ,SACR,IAAK,MACL,OAAQ,SACT,CAuDY,GAA4B,CACvC,QAAS,UACT,QAAS,UACT,UAAW,YACX,OAAQ,SACR,SAAU,WACX,CAsDY,EAAgC,CAC3C,YAAa,cACb,cAAe,gBACf,eAAgB,iBAChB,qBAAsB,uBACtB,kBAAmB,oBACpB,CASY,EAA0B,CACrC,iBAAkB,mBAClB,cAAe,gBACf,cAAe,gBACf,aAAc,eACd,aAAc,eACd,qBAAsB,uBACtB,iBAAkB,mBAClB,YAAa,cACd,CASY,EAAgC,CAC3C,eAAgB,iBACjB,CAQY,EAAiB,CAC5B,MAAO,QACP,IAAK,MACN,CA4FY,EAAuC,CAClD,QAAS,UACT,eAAgB,iBACjB,0UEnQD,MAAa,GACX,EAGA,IAEO,EACL,CACE,IAAK,oCACL,OAAQ,OACR,KAAM,EACP,CACD,EACD,CAOU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CAOU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CCtDU,EAAsB,CACjC,OAAQ,SACR,KAAM,OACN,MAAO,QACR,CAQY,EAAoB,CAC/B,OAAQ,SACR,IAAK,MACL,OAAQ,SACT,CAuDY,EAA4B,CACvC,QAAS,UACT,QAAS,UACT,UAAW,YACX,OAAQ,SACR,SAAU,WACX,CAsDY,EAAgC,CAC3C,YAAa,cACb,cAAe,gBACf,eAAgB,iBAChB,qBAAsB,uBACtB,kBAAmB,oBACpB,CASY,EAA0B,CACrC,iBAAkB,mBAClB,cAAe,gBACf,cAAe,gBACf,aAAc,eACd,aAAc,eACd,qBAAsB,uBACtB,iBAAkB,mBAClB,YAAa,cACd,CASY,EAAgC,CAC3C,eAAgB,iBACjB,CAQY,EAAiB,CAC5B,MAAO,QACP,IAAK,MACN,gSEpKD,MAAa,GACX,EAGA,IAEO,EACL,CACE,IAAK,6CACL,OAAQ,OACR,KAAM,EACP,CACD,EACD,CAMU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CAMU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CCpDU,EAAsB,CACjC,OAAQ,SACR,KAAM,OACN,MAAO,QACR,CAQY,EAAoB,CAC/B,OAAQ,SACR,IAAK,MACL,OAAQ,SACT,CAuDY,EAA4B,CACvC,QAAS,UACT,QAAS,UACT,UAAW,YACX,OAAQ,SACR,SAAU,WACX,CAsDY,EAAgC,CAC3C,YAAa,cACb,cAAe,gBACf,eAAgB,iBAChB,qBAAsB,uBACtB,kBAAmB,oBACpB,CASY,EAA0B,CACrC,iBAAkB,mBAClB,cAAe,gBACf,cAAe,gBACf,aAAc,eACd,aAAc,eACd,qBAAsB,uBACtB,iBAAkB,mBAClB,YAAa,cACd,CASY,EAAgC,CAC3C,eAAgB,iBACjB,CAQY,EAAiB,CAC5B,MAAO,QACP,IAAK,MACN,kSEpKD,MAAa,GACX,EACA,IAEO,EACL,CAAE,IAAK,0BAA2B,OAAQ,OAAQ,KAAM,EAAyB,CACjF,EACD,CAMU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CAMU,GACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CC9CU,EAAsB,CACjC,OAAQ,SACR,KAAM,OACN,MAAO,QACR,CAQY,EAAoB,CAC/B,OAAQ,SACR,IAAK,MACL,OAAQ,SACT,CAuDY,EAA4B,CACvC,QAAS,UACT,QAAS,UACT,UAAW,YACX,OAAQ,SACR,SAAU,WACX,CAsDY,EAAgC,CAC3C,YAAa,cACb,cAAe,gBACf,eAAgB,iBAChB,qBAAsB,uBACtB,kBAAmB,oBACpB,CASY,EAA0B,CACrC,iBAAkB,mBAClB,cAAe,gBACf,cAAe,gBACf,aAAc,eACd,aAAc,eACd,qBAAsB,uBACtB,iBAAkB,mBAClB,YAAa,cACd,CASY,EAAgC,CAC3C,eAAgB,iBACjB,CAQY,GAAiB,CAC5B,MAAO,QACP,IAAK,MACN,yREpKD,MAAa,IACX,EACA,IAEO,EACL,CAAE,IAAK,wBAAyB,OAAQ,OAAQ,KAAM,EAAuB,CAC7E,EACD,CAMU,IACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CAMU,IACX,CAAE,SACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAS,OAAQ,MAAO,CAC7C,EACD,CC9CU,GAAsB,CACjC,OAAQ,SACR,KAAM,OACN,MAAO,QACR,CAQY,GAAoB,CAC/B,OAAQ,SACR,IAAK,MACL,OAAQ,SACT,CAuDY,GAA4B,CACvC,QAAS,UACT,QAAS,UACT,UAAW,YACX,OAAQ,SACR,SAAU,WACX,CAsDY,GAAgC,CAC3C,YAAa,cACb,cAAe,gBACf,eAAgB,iBAChB,qBAAsB,uBACtB,kBAAmB,oBACpB,CASY,GAA0B,CACrC,iBAAkB,mBAClB,cAAe,gBACf,cAAe,gBACf,aAAc,eACd,aAAc,eACd,qBAAsB,uBACtB,iBAAkB,mBAClB,YAAa,cACd,CASY,GAAgC,CAC3C,eAAgB,iBACjB,CAQY,GAAiB,CAC5B,MAAO,QACP,IAAK,MACN,gSEvKD,MAAa,IACX,EACA,IAEO,EACL,CACE,IAAK,sBACL,OAAQ,OACR,QAAS,CAAE,eAAgB,mBAAoB,CAC/C,KAAM,EACP,CACD,EACD,CAOU,IACX,CAAE,cACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAc,OAAQ,MAAO,CAClD,EACD,CAOU,IACX,CAAE,cACF,IAEO,EACL,CAAE,IAAK,cAAc,IAAc,OAAQ,MAAO,CAClD,EACD,CC1BU,GAAoB,CAC/B,OAAQ,SACR,OAAQ,SACT,CA+CY,GAAe,CAC1B,gBAAiB,kBACjB,iBAAkB,mBAClB,eAAgB,iBAChB,gBAAiB,kBACjB,eAAgB,iBAChB,iBAAkB,mBAClB,mBAAoB,qBACpB,gBAAiB,kBAClB,CAkQY,GAAsB,CACjC,IAAK,MACL,KAAM,OACN,aAAc,eACd,IAAK,MACL,eAAgB,iBAChB,kBAAmB,oBACnB,aAAc,eACd,gBAAiB,kBACjB,qBAAsB,uBACtB,mBAAoB,qBACrB,CAwJY,GAAY,CACvB,YAAa,cACb,eAAgB,iBAChB,gBAAiB,kBACjB,eAAgB,iBAChB,gBAAiB,gBAClB,CAKY,GAAW,CACtB,gBAAiB,gBACjB,mBAAoB,mBACpB,YAAa,cACb,UAAW,YACX,kBAAmB,oBACpB,CA6BY,GAAoB,CAC/B,QAAS,WACT,kBAAmB,oBACpB,CAUY,GAAmB,CAC9B,MAAO,QACP,KAAM,KACN,QAAS,UACT,UAAW,YACX,WAAY,aACZ,SAAU,WACV,YAAa,cACb,KAAM,KACN,WAAY,aACZ,gBAAiB,kBAClB,oOE1jBD,MAAa,IACX,EACA,IAEO,EACL,CACE,IAAK,oBACL,OAAQ,OACR,QAAS,CAAE,eAAgB,aAAc,CACzC,KAAM,EACP,CACD,EACD,CC6EU,GAAe,CAC1B,MAAO,QACP,IAAK,MACN,CA6JY,GAAc,CACzB,mBAAoB,mBACpB,kBAAmB,kBACpB,CAKY,GAAkB,CAC7B,aAAc,aACd,aAAc,aACd,YAAa,YACd,CAMY,GAA2B,CACtC,aAAc,aACd,aAAc,aACd,YAAa,YACd,CAKY,GAAuB,CAClC,GAAI,KACJ,GAAI,KACL,6JEpRD,MAAa,IACX,EACA,IAEO,EACL,CAAE,IAAK,oBAAqB,OAAQ,MAAO,SAAQ,CACnD,EACD,CCEU,GAAkC,CAC7C,QAAS,UACT,MAAO,QACR,CASY,EAAoC,CAC/C,MAAO,QACP,UAAW,YACX,YAAa,cACd,CAsGY,GAAwB,CACnC,UAAW,YACX,YAAa,cACb,aAAc,eACf,CAMY,GAAgC,CAC3C,IAAK,MACL,MAAO,QACP,UAAW,YACX,YAAa,cACb,OAAQ,SACR,SAAU,WACV,OAAQ,SACR,UAAW,YACZ,qLEvHY,EAAb,cAAkC,KAAM,CACtC,YACE,EACA,EACA,EACA,CACA,MAAM,EAAQ,CAHE,KAAA,OAAA,EACA,KAAA,MAAA,EAGhB,KAAK,KAAO,iBAIH,EAAb,cAAyC,CAAa,CACpD,YAAY,EAAiB,EAAoB,CAC/C,MAAM,EAAS,EAAO,CACtB,KAAK,KAAO,wBAsBhB,eAAsB,EACpB,EACA,EAA0C,EAAE,CAC1B,CAClB,GAAM,CAAE,aAAc,EAChB,CACJ,qBAAqB,EAAE,CACvB,aAAa,IACb,cAAc,GACd,aACA,aACE,EAEE,EAAY,KAAK,KAAK,CACtB,EAAmB,GAAa,EAAc,EAChD,EAAW,EAEf,OAAa,CACX,IAGA,IAAM,EAAU,KAAK,KAAK,CAAG,EAC7B,GAAI,GAAW,EACb,MAAM,IAAI,EAAoB,yBAAyB,EAAQ,MAAM,EAAS,YAAY,CAG5F,GAAI,CAMF,IAAM,GALW,MAAM,EAAuB,IAC5C,EACA,EACD,EAEuB,KAQxB,GALI,GACF,EAAW,EAAO,CAIhB,EAAO,SAAW,YACpB,OAAO,EAAO,OAGhB,GAAI,EAAO,SAAW,SACpB,MAAM,IAAI,EAAa,eAAe,KAAK,UAAU,EAAO,GAAI,EAAO,CAGzE,GAAI,EAAO,SAAW,WACpB,MAAM,IAAI,EAAa,mBAAoB,EAAO,CAIpD,MAAM,GAAM,EAAW,OAChB,EAAO,CAOd,MALI,aAAiB,EACb,EAIF,IAAI,EACR,8BAA8B,aAAiB,MAAQ,EAAM,QAAU,OAAO,EAAM,GACpF,IAAA,GACA,EACD,GAKP,eAAsB,GACpB,EACA,EACgE,CAChE,OAAO,EAAsE,EAAW,EAAQ,CAGlG,eAAsB,GACpB,EACA,EACyD,CACzD,OAAO,EAA+D,EAAW,EAAQ,CAG3F,eAAsB,GACpB,EACA,EAC0E,CAC1E,OAAO,EACL,EACA,EACD,CAGH,eAAsB,GACpB,EACA,EAC0C,CAC1C,OAAO,EAAgD,EAAW,EAAQ,CAG5E,eAAsB,GACpB,EACA,EACuD,CACvD,OAAO,EAA6D,EAAW,EAAQ,CAGzF,eAAsB,GACpB,EACA,EACmD,CACnD,OAAO,EAAyD,EAAW,EAAQ,CAMrF,SAAS,GAAM,EAA2B,CACxC,OAAO,IAAI,QAAS,GAAY,WAAW,EAAS,EAAG,CAAC"}