{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rork/json-schema/rork-app-asset-library-ref-data-response-schema.json",
  "title": "AppAssetLibraryRefDataResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rork-appassetlibraryrefdata-api-openapi.yml#/components/schemas/AppAssetLibraryRefDataResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppAssetLibraryRefDatum"
      }
    },
    "links": {
      "$ref": "#/$defs/PagedDocumentLinks"
    },
    "meta": {
      "$ref": "#/$defs/PagingInformation"
    }
  },
  "required": [
    "data",
    "links"
  ],
  "$defs": {
    "AppAssetLibraryAssetCategory": {
      "type": "string",
      "enum": [
        "CREATIVE_ASSETS",
        "APP_SCREENSHOTS_AND_PREVIEWS"
      ]
    },
    "AppAssetLibraryDisplayClass": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "WATCH_ULTRA",
        "WATCH_SERIES_10",
        "WATCH_SERIES_7",
        "WATCH_SERIES_4",
        "WATCH_SERIES_3",
        "IPHONE_DUO",
        "IPHONE_DYNAMIC_ISLAND_LARGE_DISPLAY",
        "IPHONE_DYNAMIC_ISLAND_MEDIUM_DISPLAY",
        "IPHONE_FACE_ID_LARGE_DISPLAY",
        "IPHONE_FACE_ID_MEDIUM_DISPLAY",
        "IPHONE_HOME_BUTTON_LARGE_DISPLAY",
        "IPHONE_HOME_BUTTON_MEDIUM_DISPLAY",
        "IPHONE_HOME_BUTTON_40_DISPLAY",
        "IPHONE_HOME_BUTTON_35_DISPLAY",
        "IPAD_13_DISPLAY",
        "IPAD_11_DISPLAY",
        "IPAD_129_DISPLAY",
        "IPAD_105_DISPLAY",
        "IPAD_97_DISPLAY"
      ]
    },
    "AppAssetLibraryFeature": {
      "type": "string",
      "enum": [
        "APP_STORE_VERSIONS",
        "CUSTOM_PRODUCT_PAGES",
        "PRODUCT_PAGE_OPTIMIZATIONS",
        "IN_APP_EVENTS",
        "IN_APP_PURCHASES",
        "SUBSCRIPTIONS",
        "RETENTION_MESSAGING",
        "GAME_CENTER",
        "APP_CLIPS",
        "APPLE_ADS"
      ]
    },
    "AppAssetLibraryPlacementPlatform": {
      "type": "string",
      "enum": [
        "IPHONE_APP_STORE",
        "IPAD_APP_STORE",
        "WATCH_APP_STORE",
        "IMESSAGE_APP_STORE",
        "VISION_PRO_APP_STORE",
        "MAC_APP_STORE",
        "TV_APP_STORE",
        "ANY"
      ]
    },
    "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"
      ]
    },
    "AppAssetLibraryRefDatum": {
      "type": "object",
      "title": "AppAssetLibraryRefDatum",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "appAssetLibraryRefData"
          ]
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "features": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "featureId": {
                    "$ref": "#/$defs/AppAssetLibraryFeature"
                  },
                  "placementPolicies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "placementType": {
                          "$ref": "#/$defs/AppAssetLibraryPlacementType"
                        },
                        "groupLimits": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "groupIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "maxCount": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "placementProfileGroups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "placementProfileGroupId": {
                    "type": "string"
                  },
                  "platform": {
                    "$ref": "#/$defs/AppAssetLibraryPlacementPlatform"
                  },
                  "displayClassId": {
                    "$ref": "#/$defs/AppAssetLibraryDisplayClass"
                  }
                }
              }
            },
            "imageSpecs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "specId": {
                    "type": "string"
                  },
                  "shortName": {
                    "type": "string"
                  },
                  "dimensions": {
                    "type": "object",
                    "properties": {
                      "minWidth": {
                        "type": "integer"
                      },
                      "maxWidth": {
                        "type": "integer"
                      },
                      "minHeight": {
                        "type": "integer"
                      },
                      "maxHeight": {
                        "type": "integer"
                      }
                    }
                  },
                  "aspectRatio": {
                    "type": "string"
                  },
                  "compatiblePlacementTypes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/AppAssetLibraryPlacementType"
                    }
                  },
                  "alphaAllowed": {
                    "type": "boolean"
                  },
                  "fileExtensions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "maxFileSize": {
                    "type": "integer",
                    "format": "int64",
                    "maximum": 9007199254740991,
                    "minimum": 1
                  },
                  "mimeTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "universalAsset": {
                    "type": "boolean"
                  }
                }
              }
            },
            "videoSpecs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "specId": {
                    "type": "string"
                  },
                  "shortName": {
                    "type": "string"
                  },
                  "dimensions": {
                    "type": "object",
                    "properties": {
                      "minWidth": {
                        "type": "integer"
                      },
                      "maxWidth": {
                        "type": "integer"
                      },
                      "minHeight": {
                        "type": "integer"
                      },
                      "maxHeight": {
                        "type": "integer"
                      }
                    }
                  },
                  "aspectRatio": {
                    "type": "string"
                  },
                  "compatiblePlacementTypes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/AppAssetLibraryPlacementType"
                    }
                  },
                  "frameRates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "minFps": {
                          "type": "integer"
                        },
                        "maxFps": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "duration": {
                    "type": "object",
                    "properties": {
                      "min": {
                        "type": "string",
                        "format": "duration"
                      },
                      "max": {
                        "type": "string",
                        "format": "duration"
                      }
                    }
                  },
                  "audioRequired": {
                    "type": "boolean"
                  },
                  "fileExtensions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "maxFileSize": {
                    "type": "integer",
                    "format": "int64",
                    "maximum": 9007199254740991,
                    "minimum": 1
                  },
                  "mimeTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "universalAsset": {
                    "type": "boolean"
                  }
                }
              }
            },
            "placementTypes": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "placementTypeId": {
                    "$ref": "#/$defs/AppAssetLibraryPlacementType"
                  },
                  "acceptsAssetCategories": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/AppAssetLibraryAssetCategory"
                    }
                  },
                  "specMappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "placementGroupId": {
                          "type": "string"
                        },
                        "specs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "displayClasses": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "displayClassId": {
                    "$ref": "#/$defs/AppAssetLibraryDisplayClass"
                  },
                  "deviceFamily": {
                    "$ref": "#/$defs/DeviceFamily"
                  },
                  "screenDimensions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "links": {
          "$ref": "#/$defs/ResourceLinks"
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "DeviceFamily": {
      "type": "string",
      "enum": [
        "IPHONE",
        "IPAD",
        "APPLE_TV",
        "APPLE_WATCH",
        "MAC",
        "VISION"
      ]
    },
    "PagedDocumentLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        },
        "first": {
          "type": "string",
          "format": "uri-reference"
        },
        "next": {
          "type": "string",
          "format": "uri-reference"
        }
      },
      "required": [
        "self"
      ]
    },
    "PagingInformation": {
      "type": "object",
      "properties": {
        "paging": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "limit": {
              "type": "integer"
            },
            "nextCursor": {
              "type": "string"
            }
          },
          "required": [
            "limit"
          ]
        }
      },
      "required": [
        "paging"
      ]
    },
    "ResourceLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    }
  }
}