{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rork/json-schema/rork-app-asset-library-placement-ordering-request-response-schema.json",
  "title": "AppAssetLibraryPlacementOrderingRequestResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rork-appassetlibraryplacementorderingrequests-api-openapi.yml#/components/schemas/AppAssetLibraryPlacementOrderingRequestResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/AppAssetLibraryPlacementOrderingRequest"
    },
    "included": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppAssetLibraryPlacement"
      }
    },
    "links": {
      "$ref": "#/$defs/DocumentLinks"
    }
  },
  "required": [
    "data",
    "links"
  ],
  "$defs": {
    "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"
                  ]
                }
              }
            }
          }
        }
      ]
    },
    "AppAssetLibraryPlacementOrderingRequest": {
      "type": "object",
      "title": "AppAssetLibraryPlacementOrderingRequest",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "appAssetLibraryPlacementOrderingRequests"
          ]
        },
        "id": {
          "type": "string"
        },
        "relationships": {
          "type": "object",
          "properties": {
            "orderedPlacements": {
              "type": "object",
              "properties": {
                "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"
      ]
    },
    "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"
      ]
    },
    "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"
        }
      }
    },
    "StateDetail": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    }
  }
}