{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rork/json-schema/rork-app-asset-library-image-response-schema.json",
  "title": "AppAssetLibraryImageResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rork-appassetlibraryimages-api-openapi.yml#/components/schemas/AppAssetLibraryImageResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/AppAssetLibraryImage"
    },
    "included": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppAssetLibraryPlacement"
      }
    },
    "links": {
      "$ref": "#/$defs/DocumentLinks"
    }
  },
  "required": [
    "data",
    "links"
  ],
  "$defs": {
    "AppAssetLibraryAssetCategory": {
      "type": "string",
      "enum": [
        "CREATIVE_ASSETS",
        "APP_SCREENSHOTS_AND_PREVIEWS"
      ]
    },
    "AppAssetLibraryAssetState": {
      "type": "string",
      "enum": [
        "AWAITING_UPLOAD",
        "UPLOAD_COMPLETE",
        "FAILED",
        "COMPLETE",
        "PREPARE_FOR_SUBMISSION",
        "READY_FOR_REVIEW",
        "WAITING_FOR_REVIEW",
        "IN_REVIEW",
        "ACCEPTED",
        "APPROVED",
        "REJECTED",
        "ARCHIVED"
      ]
    },
    "AppAssetLibraryImage": {
      "type": "object",
      "title": "AppAssetLibraryImage",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "appAssetLibraryImages"
          ]
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "oneOf": [
            {
              "$ref": "#/$defs/AppAssetLibraryImageAwaitingUploadAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageUploadCompleteAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageFailedAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageReadyForReviewAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageWaitingForReviewAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageInReviewAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageAcceptedAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageApprovedAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageRejectedAttributes"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryImageArchivedAttributes"
            }
          ]
        },
        "relationships": {
          "type": "object",
          "properties": {
            "placements": {
              "type": "object",
              "properties": {
                "links": {
                  "$ref": "#/$defs/RelationshipLinks"
                },
                "meta": {
                  "$ref": "#/$defs/PagingInformation"
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "appAssetLibraryPlacements"
                        ]
                      },
                      "id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "type"
                    ]
                  }
                }
              }
            }
          }
        },
        "links": {
          "$ref": "#/$defs/ResourceLinks"
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "AppAssetLibraryImageAcceptedAttributes": {
      "title": "AppAssetLibraryImageAcceptedAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageApprovedAttributes": {
      "title": "AppAssetLibraryImageApprovedAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageArchivedAttributes": {
      "title": "AppAssetLibraryImageArchivedAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageAwaitingUploadAttributes": {
      "title": "AppAssetLibraryImageAwaitingUploadAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object",
          "properties": {
            "uploadOperations": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/UploadOperation"
              }
            }
          }
        }
      ]
    },
    "AppAssetLibraryImageCommonAttributes": {
      "type": "object",
      "title": "AppAssetLibraryImageCommonAttributes",
      "properties": {
        "category": {
          "$ref": "#/$defs/AppAssetLibraryAssetCategory"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "lastModifiedDate": {
          "type": "string",
          "format": "date-time"
        },
        "fileName": {
          "type": "string"
        },
        "fileSize": {
          "type": "integer",
          "format": "int64",
          "maximum": 9007199254740991,
          "minimum": 1
        },
        "imageAsset": {
          "$ref": "#/$defs/ImageAsset"
        },
        "referenceName": {
          "type": "string"
        },
        "specId": {
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/AppAssetLibraryAssetState"
        },
        "stateDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StateDetail"
          }
        }
      },
      "required": [
        "state"
      ]
    },
    "AppAssetLibraryImageFailedAttributes": {
      "title": "AppAssetLibraryImageFailedAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object",
          "properties": {
            "uploadOperations": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/UploadOperation"
              }
            }
          }
        }
      ]
    },
    "AppAssetLibraryImageInReviewAttributes": {
      "title": "AppAssetLibraryImageInReviewAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageReadyForReviewAttributes": {
      "title": "AppAssetLibraryImageReadyForReviewAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageRejectedAttributes": {
      "title": "AppAssetLibraryImageRejectedAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryImageUploadCompleteAttributes": {
      "title": "AppAssetLibraryImageUploadCompleteAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object",
          "properties": {
            "uploadOperations": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/UploadOperation"
              }
            }
          }
        }
      ]
    },
    "AppAssetLibraryImageWaitingForReviewAttributes": {
      "title": "AppAssetLibraryImageWaitingForReviewAttributes",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryImageCommonAttributes"
        },
        {
          "type": "object"
        }
      ]
    },
    "AppAssetLibraryMediaType": {
      "type": "string",
      "enum": [
        "IMAGE",
        "VIDEO"
      ]
    },
    "AppAssetLibraryPlacement": {
      "type": "object",
      "title": "AppAssetLibraryPlacement",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "appAssetLibraryPlacements"
          ]
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "mediaType": {
              "$ref": "#/$defs/AppAssetLibraryMediaType"
            },
            "placementType": {
              "$ref": "#/$defs/AppAssetLibraryPlacementType"
            },
            "placementGroup": {
              "type": "string"
            },
            "createdDate": {
              "type": "string",
              "format": "date-time"
            },
            "lastModifiedDate": {
              "type": "string",
              "format": "date-time"
            },
            "state": {
              "$ref": "#/$defs/AppAssetLibraryPlacementState"
            },
            "stateDetails": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/StateDetail"
              }
            }
          }
        },
        "relationships": {
          "oneOf": [
            {
              "$ref": "#/$defs/AppAssetLibraryPlacementImageRelationships"
            },
            {
              "$ref": "#/$defs/AppAssetLibraryPlacementVideoRelationships"
            }
          ]
        },
        "links": {
          "$ref": "#/$defs/ResourceLinks"
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "AppAssetLibraryPlacementCommonRelationships": {
      "type": "object",
      "title": "AppAssetLibraryPlacementCommonRelationships",
      "properties": {
        "appEventLocalization": {
          "type": "object",
          "properties": {
            "data": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "appEventLocalizations"
                  ]
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type"
              ]
            }
          }
        },
        "appStoreVersionLocalization": {
          "type": "object",
          "properties": {
            "data": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "appStoreVersionLocalizations"
                  ]
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type"
              ]
            }
          }
        },
        "appCustomProductPageLocalization": {
          "type": "object",
          "properties": {
            "data": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "appCustomProductPageLocalizations"
                  ]
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type"
              ]
            }
          }
        },
        "appStoreVersionExperimentTreatmentLocalization": {
          "type": "object",
          "properties": {
            "data": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "appStoreVersionExperimentTreatmentLocalizations"
                  ]
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "type"
              ]
            }
          }
        }
      }
    },
    "AppAssetLibraryPlacementImageRelationships": {
      "title": "AppAssetLibraryPlacementImageRelationships",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryPlacementCommonRelationships"
        },
        {
          "type": "object",
          "properties": {
            "image": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "appAssetLibraryImages"
                      ]
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type"
                  ]
                }
              }
            }
          }
        }
      ]
    },
    "AppAssetLibraryPlacementState": {
      "type": "string",
      "enum": [
        "ASSET_PROCESSING",
        "FAILED",
        "PARENT_PREPARE_FOR_SUBMISSION",
        "PARENT_READY_FOR_REVIEW",
        "PARENT_WAITING_FOR_REVIEW",
        "PARENT_IN_REVIEW",
        "PARENT_APPROVED"
      ]
    },
    "AppAssetLibraryPlacementType": {
      "type": "string",
      "enum": [
        "APP_SCREENSHOT",
        "IMESSAGE_APP_SCREENSHOT",
        "APP_PREVIEW",
        "PRODUCT_PAGE_HEADER_ASSET",
        "APP_STORE_SEARCH_RESULTS_ASSET",
        "SEARCH_RESULTS_ADS_ASSET",
        "TODAY_TAB_ADS_ASSET",
        "EVENT_CARD_ASSET",
        "EVENT_DETAILS_PAGE_ASSET",
        "RETENTION_MESSAGE_ASSET"
      ]
    },
    "AppAssetLibraryPlacementVideoRelationships": {
      "title": "AppAssetLibraryPlacementVideoRelationships",
      "allOf": [
        {
          "$ref": "#/$defs/AppAssetLibraryPlacementCommonRelationships"
        },
        {
          "type": "object",
          "properties": {
            "video": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "appAssetLibraryVideos"
                      ]
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type"
                  ]
                }
              }
            }
          }
        }
      ]
    },
    "DocumentLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        }
      },
      "required": [
        "self"
      ]
    },
    "HttpHeader": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "ImageAsset": {
      "type": "object",
      "properties": {
        "templateUrl": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        }
      }
    },
    "PagingInformation": {
      "type": "object",
      "properties": {
        "paging": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "limit": {
              "type": "integer"
            },
            "nextCursor": {
              "type": "string"
            }
          },
          "required": [
            "limit"
          ]
        }
      },
      "required": [
        "paging"
      ]
    },
    "RelationshipLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        },
        "related": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    },
    "ResourceLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    },
    "StateDetail": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "UploadOperation": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "requestHeaders": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HttpHeader"
          }
        }
      }
    }
  }
}