{
  "service": "claid_ai",
  "displayName": "Claid AI",
  "categories": [
    "AI",
    "Design & Media"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "CLAID_API_KEY",
      "description": "Claid API key used with the Authorization Bearer header. Create or manage it from the Claid API Keys page: https://claid.ai/account/api",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://claid.ai",
  "actions": [
    {
      "id": "claid_ai.edit_image",
      "service": "claid_ai",
      "name": "edit_image",
      "description": "Edit one publicly accessible image with Claid's synchronous image editing API and return the processed image metadata.",
      "requiredScopes": [
        "image_editing"
      ],
      "providerPermissions": [
        "image_editing"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string",
            "description": "The public input image URL or Claid storage URI sent to Claid.",
            "format": "uri"
          },
          "operations": {
            "type": "object",
            "properties": {
              "restorations": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The restorations options sent to Claid."
              },
              "adjustments": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The adjustments options sent to Claid."
              },
              "background": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The background options sent to Claid."
              },
              "resizing": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The resizing options sent to Claid."
              },
              "privacy": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The privacy options sent to Claid."
              },
              "generative": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The generative options sent to Claid."
              }
            },
            "additionalProperties": true,
            "description": "The Claid image operations object."
          },
          "output": {
            "anyOf": [
              {
                "type": "string",
                "description": "The explicit output destination URL or storage URI.",
                "format": "uri"
              },
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "description": "The explicit output destination URL or storage URI.",
                    "format": "uri"
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "dpi": {
                        "type": "integer",
                        "description": "The output DPI value."
                      },
                      "color_space": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "RGB",
                              "CMYK"
                            ],
                            "description": "The simple color space enum."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "CMYK"
                                ],
                                "description": "The color space type."
                              },
                              "color_profile": {
                                "type": "string",
                                "enum": [
                                  "ISO_Coated",
                                  "ISO_Uncoated",
                                  "USWeb_Coated",
                                  "USWeb_Uncoated"
                                ],
                                "description": "The CMYK profile to apply."
                              }
                            },
                            "additionalProperties": false,
                            "description": "The detailed CMYK color space configuration."
                          }
                        ],
                        "description": "The color space configuration sent to Claid."
                      }
                    },
                    "additionalProperties": false,
                    "description": "The output metadata options accepted by Claid."
                  },
                  "format": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "jpeg",
                          "png",
                          "webp",
                          "avif",
                          "tiff"
                        ],
                        "description": "The simple output format."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "The output format type."
                          },
                          "quality": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "The compression quality value."
                          },
                          "compression": {
                            "description": "The compression configuration."
                          },
                          "progressive": {
                            "type": "boolean",
                            "description": "Whether progressive JPEG output should be used."
                          }
                        },
                        "additionalProperties": true,
                        "description": "The detailed output format configuration."
                      }
                    ],
                    "description": "The output format configuration accepted by Claid."
                  }
                },
                "additionalProperties": false,
                "description": "The detailed output configuration."
              }
            ],
            "description": "The output destination or options accepted by Claid."
          }
        },
        "additionalProperties": false,
        "required": [
          "input",
          "operations"
        ],
        "description": "The Claid image edit request payload."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "result": {
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "ext": {
                    "type": "string",
                    "description": "The file extension returned by Claid."
                  },
                  "mps": {
                    "type": "number",
                    "description": "The megapixel count returned by Claid."
                  },
                  "mime": {
                    "type": "string",
                    "description": "The MIME type returned by Claid."
                  },
                  "format": {
                    "type": "string",
                    "description": "The file format returned by Claid."
                  },
                  "width": {
                    "type": "integer",
                    "description": "The image width in pixels."
                  },
                  "height": {
                    "type": "integer",
                    "description": "The image height in pixels."
                  },
                  "tmp_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The temporary public output URL returned by Claid.",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_key": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_bucket": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_uri": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "claid_storage_uri": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "required": [
                  "ext",
                  "mps",
                  "mime",
                  "format",
                  "width",
                  "height"
                ],
                "description": "The Claid image metadata object returned for an input or output image."
              },
              "output": {
                "type": "object",
                "properties": {
                  "ext": {
                    "type": "string",
                    "description": "The file extension returned by Claid."
                  },
                  "mps": {
                    "type": "number",
                    "description": "The megapixel count returned by Claid."
                  },
                  "mime": {
                    "type": "string",
                    "description": "The MIME type returned by Claid."
                  },
                  "format": {
                    "type": "string",
                    "description": "The file format returned by Claid."
                  },
                  "width": {
                    "type": "integer",
                    "description": "The image width in pixels."
                  },
                  "height": {
                    "type": "integer",
                    "description": "The image height in pixels."
                  },
                  "tmp_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The temporary public output URL returned by Claid.",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_key": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_bucket": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "object_uri": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "claid_storage_uri": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "A string value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "required": [
                  "ext",
                  "mps",
                  "mime",
                  "format",
                  "width",
                  "height"
                ],
                "description": "The Claid image metadata object returned for an input or output image."
              },
              "profiling": {
                "description": "The optional profiling object returned by Claid."
              }
            },
            "additionalProperties": false,
            "required": [
              "input",
              "output"
            ],
            "description": "The normalized synchronous Claid edit result."
          }
        },
        "additionalProperties": false,
        "required": [
          "result"
        ],
        "description": "The normalized synchronous Claid edit response."
      }
    },
    {
      "id": "claid_ai.get_edit_task",
      "service": "claid_ai",
      "name": "get_edit_task",
      "description": "Poll one Claid async image editing task by ID and return its current status plus the finished result when available.",
      "requiredScopes": [
        "image_editing"
      ],
      "providerPermissions": [
        "image_editing"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "integer",
            "description": "The Claid async task identifier."
          }
        },
        "additionalProperties": false,
        "required": [
          "taskId"
        ],
        "description": "The Claid async task to retrieve."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "description": "The Claid async task identifier."
              },
              "status": {
                "type": "string",
                "enum": [
                  "ACCEPTED",
                  "WAITING",
                  "PROCESSING",
                  "DONE",
                  "ERROR",
                  "CANCELLED",
                  "PAUSED"
                ],
                "description": "The Claid async task status."
              },
              "result_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Claid result polling URL when returned.",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "description": "The task creation timestamp returned by Claid."
              },
              "request": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "string",
                    "description": "The input image URL or storage URI sent to Claid.",
                    "format": "uri"
                  },
                  "operations": {
                    "type": "object",
                    "properties": {
                      "restorations": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The restorations options sent to Claid."
                      },
                      "adjustments": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The adjustments options sent to Claid."
                      },
                      "background": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The background options sent to Claid."
                      },
                      "resizing": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The resizing options sent to Claid."
                      },
                      "privacy": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The privacy options sent to Claid."
                      },
                      "generative": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The generative options sent to Claid."
                      }
                    },
                    "additionalProperties": true,
                    "description": "The Claid image operations object."
                  },
                  "output": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The explicit output destination URL or storage URI.",
                        "format": "uri"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "destination": {
                            "type": "string",
                            "description": "The explicit output destination URL or storage URI.",
                            "format": "uri"
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "dpi": {
                                "type": "integer",
                                "description": "The output DPI value."
                              },
                              "color_space": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "RGB",
                                      "CMYK"
                                    ],
                                    "description": "The simple color space enum."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "CMYK"
                                        ],
                                        "description": "The color space type."
                                      },
                                      "color_profile": {
                                        "type": "string",
                                        "enum": [
                                          "ISO_Coated",
                                          "ISO_Uncoated",
                                          "USWeb_Coated",
                                          "USWeb_Uncoated"
                                        ],
                                        "description": "The CMYK profile to apply."
                                      }
                                    },
                                    "additionalProperties": false,
                                    "description": "The detailed CMYK color space configuration."
                                  }
                                ],
                                "description": "The color space configuration sent to Claid."
                              }
                            },
                            "additionalProperties": false,
                            "description": "The output metadata options accepted by Claid."
                          },
                          "format": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "jpeg",
                                  "png",
                                  "webp",
                                  "avif",
                                  "tiff"
                                ],
                                "description": "The simple output format."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "The output format type."
                                  },
                                  "quality": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 100,
                                    "description": "The compression quality value."
                                  },
                                  "compression": {
                                    "description": "The compression configuration."
                                  },
                                  "progressive": {
                                    "type": "boolean",
                                    "description": "Whether progressive JPEG output should be used."
                                  }
                                },
                                "additionalProperties": true,
                                "description": "The detailed output format configuration."
                              }
                            ],
                            "description": "The output format configuration accepted by Claid."
                          }
                        },
                        "additionalProperties": false,
                        "description": "The detailed output configuration."
                      }
                    ],
                    "description": "The output destination or options accepted by Claid."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "input",
                  "operations"
                ],
                "description": "The request object echoed by Claid async tasks."
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "The error text returned by Claid."
                    },
                    "created_at": {
                      "type": "string",
                      "description": "The timestamp when this error was created."
                    },
                    "input_object": {
                      "type": "object",
                      "properties": {
                        "ext": {
                          "type": "string",
                          "description": "The file extension returned by Claid."
                        },
                        "mps": {
                          "type": "number",
                          "description": "The megapixel count returned by Claid."
                        },
                        "mime": {
                          "type": "string",
                          "description": "The MIME type returned by Claid."
                        },
                        "format": {
                          "type": "string",
                          "description": "The file format returned by Claid."
                        },
                        "width": {
                          "type": "integer",
                          "description": "The image width in pixels."
                        },
                        "height": {
                          "type": "integer",
                          "description": "The image height in pixels."
                        },
                        "tmp_url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The temporary public output URL returned by Claid.",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_key": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_bucket": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_uri": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "claid_storage_uri": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "required": [
                        "ext",
                        "mps",
                        "mime",
                        "format",
                        "width",
                        "height"
                      ],
                      "description": "The Claid image metadata object returned for an input or output image."
                    }
                  },
                  "additionalProperties": true,
                  "description": "One async processing error returned by Claid."
                },
                "description": "The task errors returned by Claid."
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "input_object": {
                        "type": "object",
                        "properties": {
                          "ext": {
                            "type": "string",
                            "description": "The file extension returned by Claid."
                          },
                          "mps": {
                            "type": "number",
                            "description": "The megapixel count returned by Claid."
                          },
                          "mime": {
                            "type": "string",
                            "description": "The MIME type returned by Claid."
                          },
                          "format": {
                            "type": "string",
                            "description": "The file format returned by Claid."
                          },
                          "width": {
                            "type": "integer",
                            "description": "The image width in pixels."
                          },
                          "height": {
                            "type": "integer",
                            "description": "The image height in pixels."
                          },
                          "tmp_url": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "The temporary public output URL returned by Claid.",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_key": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_bucket": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "claid_storage_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "ext",
                          "mps",
                          "mime",
                          "format",
                          "width",
                          "height"
                        ],
                        "description": "The Claid image metadata object returned for an input or output image."
                      },
                      "output_object": {
                        "type": "object",
                        "properties": {
                          "ext": {
                            "type": "string",
                            "description": "The file extension returned by Claid."
                          },
                          "mps": {
                            "type": "number",
                            "description": "The megapixel count returned by Claid."
                          },
                          "mime": {
                            "type": "string",
                            "description": "The MIME type returned by Claid."
                          },
                          "format": {
                            "type": "string",
                            "description": "The file format returned by Claid."
                          },
                          "width": {
                            "type": "integer",
                            "description": "The image width in pixels."
                          },
                          "height": {
                            "type": "integer",
                            "description": "The image height in pixels."
                          },
                          "tmp_url": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "The temporary public output URL returned by Claid.",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_key": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_bucket": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "claid_storage_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "ext",
                          "mps",
                          "mime",
                          "format",
                          "width",
                          "height"
                        ],
                        "description": "The Claid image metadata object returned for an input or output image."
                      }
                    },
                    "additionalProperties": false,
                    "description": "The async task result returned by Claid."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "status",
              "created_at",
              "request"
            ],
            "description": "The current Claid async edit task state."
          }
        },
        "additionalProperties": false,
        "required": [
          "task"
        ],
        "description": "The normalized Claid async task response."
      },
      "asyncLifecycle": {
        "startActionId": "claid_ai.submit_edit_image",
        "statusActionId": "claid_ai.get_edit_task"
      }
    },
    {
      "id": "claid_ai.submit_edit_image",
      "service": "claid_ai",
      "name": "submit_edit_image",
      "description": "Submit one publicly accessible image to Claid's async image editing API and return the task handle for later polling.",
      "requiredScopes": [
        "image_editing"
      ],
      "providerPermissions": [
        "image_editing"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string",
            "description": "The public input image URL or Claid storage URI sent to Claid.",
            "format": "uri"
          },
          "operations": {
            "type": "object",
            "properties": {
              "restorations": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The restorations options sent to Claid."
              },
              "adjustments": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The adjustments options sent to Claid."
              },
              "background": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The background options sent to Claid."
              },
              "resizing": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The resizing options sent to Claid."
              },
              "privacy": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The privacy options sent to Claid."
              },
              "generative": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The generative options sent to Claid."
              }
            },
            "additionalProperties": true,
            "description": "The Claid image operations object."
          },
          "output": {
            "anyOf": [
              {
                "type": "string",
                "description": "The explicit output destination URL or storage URI.",
                "format": "uri"
              },
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "description": "The explicit output destination URL or storage URI.",
                    "format": "uri"
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "dpi": {
                        "type": "integer",
                        "description": "The output DPI value."
                      },
                      "color_space": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "RGB",
                              "CMYK"
                            ],
                            "description": "The simple color space enum."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "CMYK"
                                ],
                                "description": "The color space type."
                              },
                              "color_profile": {
                                "type": "string",
                                "enum": [
                                  "ISO_Coated",
                                  "ISO_Uncoated",
                                  "USWeb_Coated",
                                  "USWeb_Uncoated"
                                ],
                                "description": "The CMYK profile to apply."
                              }
                            },
                            "additionalProperties": false,
                            "description": "The detailed CMYK color space configuration."
                          }
                        ],
                        "description": "The color space configuration sent to Claid."
                      }
                    },
                    "additionalProperties": false,
                    "description": "The output metadata options accepted by Claid."
                  },
                  "format": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "jpeg",
                          "png",
                          "webp",
                          "avif",
                          "tiff"
                        ],
                        "description": "The simple output format."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "The output format type."
                          },
                          "quality": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "The compression quality value."
                          },
                          "compression": {
                            "description": "The compression configuration."
                          },
                          "progressive": {
                            "type": "boolean",
                            "description": "Whether progressive JPEG output should be used."
                          }
                        },
                        "additionalProperties": true,
                        "description": "The detailed output format configuration."
                      }
                    ],
                    "description": "The output format configuration accepted by Claid."
                  }
                },
                "additionalProperties": false,
                "description": "The detailed output configuration."
              }
            ],
            "description": "The output destination or options accepted by Claid."
          }
        },
        "additionalProperties": false,
        "required": [
          "input",
          "operations"
        ],
        "description": "The Claid image edit request payload."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "description": "The Claid async task identifier."
              },
              "status": {
                "type": "string",
                "enum": [
                  "ACCEPTED",
                  "WAITING",
                  "PROCESSING",
                  "DONE",
                  "ERROR",
                  "CANCELLED",
                  "PAUSED"
                ],
                "description": "The Claid async task status."
              },
              "result_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Claid result polling URL when returned.",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "description": "The task creation timestamp returned by Claid."
              },
              "request": {
                "type": "object",
                "properties": {
                  "input": {
                    "type": "string",
                    "description": "The input image URL or storage URI sent to Claid.",
                    "format": "uri"
                  },
                  "operations": {
                    "type": "object",
                    "properties": {
                      "restorations": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The restorations options sent to Claid."
                      },
                      "adjustments": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The adjustments options sent to Claid."
                      },
                      "background": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The background options sent to Claid."
                      },
                      "resizing": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The resizing options sent to Claid."
                      },
                      "privacy": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The privacy options sent to Claid."
                      },
                      "generative": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "The generative options sent to Claid."
                      }
                    },
                    "additionalProperties": true,
                    "description": "The Claid image operations object."
                  },
                  "output": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The explicit output destination URL or storage URI.",
                        "format": "uri"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "destination": {
                            "type": "string",
                            "description": "The explicit output destination URL or storage URI.",
                            "format": "uri"
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "dpi": {
                                "type": "integer",
                                "description": "The output DPI value."
                              },
                              "color_space": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "RGB",
                                      "CMYK"
                                    ],
                                    "description": "The simple color space enum."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "CMYK"
                                        ],
                                        "description": "The color space type."
                                      },
                                      "color_profile": {
                                        "type": "string",
                                        "enum": [
                                          "ISO_Coated",
                                          "ISO_Uncoated",
                                          "USWeb_Coated",
                                          "USWeb_Uncoated"
                                        ],
                                        "description": "The CMYK profile to apply."
                                      }
                                    },
                                    "additionalProperties": false,
                                    "description": "The detailed CMYK color space configuration."
                                  }
                                ],
                                "description": "The color space configuration sent to Claid."
                              }
                            },
                            "additionalProperties": false,
                            "description": "The output metadata options accepted by Claid."
                          },
                          "format": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "jpeg",
                                  "png",
                                  "webp",
                                  "avif",
                                  "tiff"
                                ],
                                "description": "The simple output format."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "The output format type."
                                  },
                                  "quality": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 100,
                                    "description": "The compression quality value."
                                  },
                                  "compression": {
                                    "description": "The compression configuration."
                                  },
                                  "progressive": {
                                    "type": "boolean",
                                    "description": "Whether progressive JPEG output should be used."
                                  }
                                },
                                "additionalProperties": true,
                                "description": "The detailed output format configuration."
                              }
                            ],
                            "description": "The output format configuration accepted by Claid."
                          }
                        },
                        "additionalProperties": false,
                        "description": "The detailed output configuration."
                      }
                    ],
                    "description": "The output destination or options accepted by Claid."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "input",
                  "operations"
                ],
                "description": "The request object echoed by Claid async tasks."
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "The error text returned by Claid."
                    },
                    "created_at": {
                      "type": "string",
                      "description": "The timestamp when this error was created."
                    },
                    "input_object": {
                      "type": "object",
                      "properties": {
                        "ext": {
                          "type": "string",
                          "description": "The file extension returned by Claid."
                        },
                        "mps": {
                          "type": "number",
                          "description": "The megapixel count returned by Claid."
                        },
                        "mime": {
                          "type": "string",
                          "description": "The MIME type returned by Claid."
                        },
                        "format": {
                          "type": "string",
                          "description": "The file format returned by Claid."
                        },
                        "width": {
                          "type": "integer",
                          "description": "The image width in pixels."
                        },
                        "height": {
                          "type": "integer",
                          "description": "The image height in pixels."
                        },
                        "tmp_url": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The temporary public output URL returned by Claid.",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_key": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_bucket": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "object_uri": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "claid_storage_uri": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "A string value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "required": [
                        "ext",
                        "mps",
                        "mime",
                        "format",
                        "width",
                        "height"
                      ],
                      "description": "The Claid image metadata object returned for an input or output image."
                    }
                  },
                  "additionalProperties": true,
                  "description": "One async processing error returned by Claid."
                },
                "description": "The task errors returned by Claid."
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "input_object": {
                        "type": "object",
                        "properties": {
                          "ext": {
                            "type": "string",
                            "description": "The file extension returned by Claid."
                          },
                          "mps": {
                            "type": "number",
                            "description": "The megapixel count returned by Claid."
                          },
                          "mime": {
                            "type": "string",
                            "description": "The MIME type returned by Claid."
                          },
                          "format": {
                            "type": "string",
                            "description": "The file format returned by Claid."
                          },
                          "width": {
                            "type": "integer",
                            "description": "The image width in pixels."
                          },
                          "height": {
                            "type": "integer",
                            "description": "The image height in pixels."
                          },
                          "tmp_url": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "The temporary public output URL returned by Claid.",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_key": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_bucket": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "claid_storage_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "ext",
                          "mps",
                          "mime",
                          "format",
                          "width",
                          "height"
                        ],
                        "description": "The Claid image metadata object returned for an input or output image."
                      },
                      "output_object": {
                        "type": "object",
                        "properties": {
                          "ext": {
                            "type": "string",
                            "description": "The file extension returned by Claid."
                          },
                          "mps": {
                            "type": "number",
                            "description": "The megapixel count returned by Claid."
                          },
                          "mime": {
                            "type": "string",
                            "description": "The MIME type returned by Claid."
                          },
                          "format": {
                            "type": "string",
                            "description": "The file format returned by Claid."
                          },
                          "width": {
                            "type": "integer",
                            "description": "The image width in pixels."
                          },
                          "height": {
                            "type": "integer",
                            "description": "The image height in pixels."
                          },
                          "tmp_url": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "The temporary public output URL returned by Claid.",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_key": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_bucket": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "object_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "claid_storage_uri": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "A string value."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "ext",
                          "mps",
                          "mime",
                          "format",
                          "width",
                          "height"
                        ],
                        "description": "The Claid image metadata object returned for an input or output image."
                      }
                    },
                    "additionalProperties": false,
                    "description": "The async task result returned by Claid."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "status",
              "created_at",
              "request"
            ],
            "description": "The current Claid async edit task state."
          }
        },
        "additionalProperties": false,
        "required": [
          "task"
        ],
        "description": "The normalized Claid async submit response."
      },
      "followUpActions": [
        "claid_ai.get_edit_task"
      ],
      "asyncLifecycle": {
        "startActionId": "claid_ai.submit_edit_image",
        "statusActionId": "claid_ai.get_edit_task"
      }
    }
  ]
}
