This commit is contained in:
relikd
2024-04-02 21:54:37 +02:00
commit 8f04d673d9
119 changed files with 20136 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import os
import os.path as path
import subprocess
curpath = path.dirname(__file__)
outpath = path.dirname(curpath)
for p in os.listdir(curpath):
if not p.endswith('.json'):
continue
#subprocess.call(["jsonschema2popo2", "--translate-properties", "--use-types", "-o", path.join(outpath, p.split('.')[0] + '.py'), path.join(curpath, p)])
print("Converting %s" % p)
subprocess.call(["jsonschema2popo2", "--use-types", "-o", path.join(outpath, p.split('.')[0] + '.py'), path.join(curpath, p)])

View File

@@ -0,0 +1,222 @@
{
"title": "iTunes Lookup Resp",
"type": "object",
"properties": {
"resultCount": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"appletvScreenshotUrls": {
"type": "array",
"items": {
"type": ["number","string","boolean","object","array", "null"]
}
},
"screenshotUrls": {
"type": "array",
"items": {
"type": "string"
}
},
"ipadScreenshotUrls": {
"type": "array",
"items": {
"type": "string"
}
},
"artworkUrl60": {
"type": "string"
},
"artworkUrl512": {
"type": "string"
},
"artworkUrl100": {
"type": "string"
},
"artistViewUrl": {
"type": "string"
},
"supportedDevices": {
"type": "array",
"items": {
"type": "string"
}
},
"advisories": {
"type": "array",
"items": {
"type": ["number","string","boolean","object","array", "null"]
}
},
"isGameCenterEnabled": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"features": {
"type": "array",
"items": {
"type": "string"
}
},
"minimumOsVersion": {
"type": "string"
},
"trackCensoredName": {
"type": "string"
},
"languageCodesISO2A": {
"type": "array",
"items": {
"type": "string"
}
},
"fileSizeBytes": {
"type": "string"
},
"formattedPrice": {
"type": "string"
},
"contentAdvisoryRating": {
"type": "string"
},
"averageUserRatingForCurrentVersion": {
"type": "number"
},
"userRatingCountForCurrentVersion": {
"type": "integer"
},
"averageUserRating": {
"type": "number"
},
"trackViewUrl": {
"type": "string"
},
"trackContentRating": {
"type": "string"
},
"releaseDate": {
"type": "string"
},
"genreIds": {
"type": "array",
"items": {
"type": "string"
}
},
"primaryGenreName": {
"type": "string"
},
"trackId": {
"type": "integer"
},
"trackName": {
"type": "string"
},
"sellerName": {
"type": "string"
},
"isVppDeviceBasedLicensingEnabled": {
"type": "boolean"
},
"currentVersionReleaseDate": {
"type": "string"
},
"releaseNotes": {
"type": "string"
},
"primaryGenreId": {
"type": "integer"
},
"currency": {
"type": "string"
},
"version": {
"type": "string"
},
"wrapperType": {
"type": "string"
},
"artistId": {
"type": "integer"
},
"artistName": {
"type": "string"
},
"genres": {
"type": "array",
"items": {
"type": "string"
}
},
"price": {
"type": "number"
},
"description": {
"type": "string"
},
"bundleId": {
"type": "string"
},
"userRatingCount": {
"type": "integer"
}
},
"required": [
"appletvScreenshotUrls",
"screenshotUrls",
"ipadScreenshotUrls",
"artworkUrl60",
"artworkUrl512",
"artworkUrl100",
"artistViewUrl",
"supportedDevices",
"advisories",
"isGameCenterEnabled",
"kind",
"features",
"minimumOsVersion",
"trackCensoredName",
"languageCodesISO2A",
"fileSizeBytes",
"formattedPrice",
"contentAdvisoryRating",
"averageUserRatingForCurrentVersion",
"userRatingCountForCurrentVersion",
"averageUserRating",
"trackViewUrl",
"trackContentRating",
"releaseDate",
"genreIds",
"primaryGenreName",
"trackId",
"trackName",
"sellerName",
"isVppDeviceBasedLicensingEnabled",
"currentVersionReleaseDate",
"releaseNotes",
"primaryGenreId",
"currency",
"version",
"wrapperType",
"artistId",
"artistName",
"genres",
"price",
"description",
"bundleId",
"userRatingCount"
]
}
}
},
"required": [
"resultCount",
"results"
]
}

View File

@@ -0,0 +1,37 @@
{
"title": "Store Authenticate Req",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"appleId": {
"type": "string"
},
"attempt": {
"type": "string"
},
"createSession": {
"type": "string"
},
"guid": {
"type": "string"
},
"password": {
"type": "string"
},
"rmp": {
"type": "string"
},
"why": {
"type": "string"
}
},
"required": [
"appleId",
"attempt",
"createSession",
"guid",
"password",
"rmp",
"why"
]
}

View File

@@ -0,0 +1,324 @@
{
"title": "Store Authenticate Resp",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pings": {
"type": "array",
"items": {
"type": ["number","string","boolean","object","array", "null"]
}
},
"cancel-purchase-batch": {
"type": "boolean"
},
"customerMessage": {
"type": "string"
},
"failureType": {
"type": "string"
},
"accountInfo": {
"type": "object",
"properties": {
"appleId": {
"type": "string"
},
"address": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
}
},
"required": [
"firstName",
"lastName"
]
}
},
"required": [
"appleId",
"address"
]
},
"passwordToken": {
"type": "string"
},
"clearToken": {
"type": "string"
},
"m-allowed": {
"type": "boolean"
},
"is-cloud-enabled": {
"type": "string"
},
"dsPersonId": {
"type": "string"
},
"creditDisplay": {
"type": "string"
},
"creditBalance": {
"type": "string"
},
"freeSongBalance": {
"type": "string"
},
"isManagedStudent": {
"type": "boolean"
},
"action": {
"type": "object",
"properties": {
"kind": {
"type": "string"
}
},
"required": [
"kind"
]
},
"subscriptionStatus": {
"type": "object",
"properties": {
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"latestTerms": {
"type": "integer"
},
"agreedToTerms": {
"type": "integer"
},
"source": {
"type": "string"
}
},
"required": [
"type",
"latestTerms",
"agreedToTerms",
"source"
]
}
},
"account": {
"type": "object",
"properties": {
"isMinor": {
"type": "boolean"
},
"suspectUnderage": {
"type": "boolean"
}
},
"required": [
"isMinor",
"suspectUnderage"
]
},
"family": {
"type": "object",
"properties": {
"hasFamily": {
"type": "boolean"
}
},
"required": [
"hasFamily"
]
}
},
"required": [
"terms",
"account",
"family"
]
},
"accountFlags": {
"type": "object",
"properties": {
"personalization": {
"type": "boolean"
},
"underThirteen": {
"type": "boolean"
},
"identityLastVerified": {
"type": "integer"
},
"verifiedExpirationDate": {
"type": "integer"
},
"retailDemo": {
"type": "boolean"
},
"autoPlay": {
"type": "boolean"
},
"isDisabledAccount": {
"type": "boolean"
},
"isRestrictedAccount": {
"type": "boolean"
},
"isManagedAccount": {
"type": "boolean"
},
"isInRestrictedRegion": {
"type": "boolean"
},
"accountFlagsVersion": {
"type": "integer"
},
"hasAgreedToTerms": {
"type": "boolean"
},
"hasAgreedToAppClipTerms": {
"type": "boolean"
},
"hasWatchHardwareOffer": {
"type": "boolean"
},
"isInFamily": {
"type": "boolean"
},
"hasSubscriptionFamilySharingEnabled": {
"type": "boolean"
}
},
"required": [
"personalization",
"underThirteen",
"identityLastVerified",
"verifiedExpirationDate",
"retailDemo",
"autoPlay",
"isDisabledAccount",
"isRestrictedAccount",
"isManagedAccount",
"isInRestrictedRegion",
"accountFlagsVersion",
"hasAgreedToTerms",
"hasAgreedToAppClipTerms",
"hasWatchHardwareOffer",
"isInFamily",
"hasSubscriptionFamilySharingEnabled"
]
},
"status": {
"type": "integer"
},
"download-queue-info": {
"type": "object",
"properties": {
"download-queue-item-count": {
"type": "integer"
},
"dsid": {
"type": "integer"
},
"is-auto-download-machine": {
"type": "boolean"
}
},
"required": [
"download-queue-item-count",
"dsid",
"is-auto-download-machine"
]
},
"privacyAcknowledgement": {
"type": "object",
"properties": {
"com.apple.onboarding.appstore": {
"type": "integer"
},
"com.apple.onboarding.applemusic": {
"type": "integer"
},
"com.apple.onboarding.videos": {
"type": "integer"
},
"com.apple.onboarding.itunesstore": {
"type": "integer"
},
"com.apple.onboarding.itunesu": {
"type": "integer"
},
"com.apple.onboarding.applearcade": {
"type": "integer"
}
},
"required": [
"com.apple.onboarding.appstore",
"com.apple.onboarding.applemusic",
"com.apple.onboarding.videos",
"com.apple.onboarding.itunesstore",
"com.apple.onboarding.itunesu",
"com.apple.onboarding.applearcade"
]
},
"dialog": {
"type": "object",
"properties": {
"m-allowed": {
"type": "boolean"
},
"message": {
"type": "string"
},
"explanation": {
"type": "string"
},
"defaultButton": {
"type": "string"
},
"okButtonString": {
"type": "string"
},
"initialCheckboxValue": {
"type": "boolean"
}
},
"required": [
"m-allowed",
"message",
"explanation",
"defaultButton",
"okButtonString",
"initialCheckboxValue"
]
}
},
"required": [
"pings",
"accountInfo",
"passwordToken",
"clearToken",
"m-allowed",
"is-cloud-enabled",
"dsPersonId",
"creditDisplay",
"creditBalance",
"freeSongBalance",
"isManagedStudent",
"action",
"subscriptionStatus",
"accountFlags",
"status",
"download-queue-info",
"privacyAcknowledgement",
"dialog"
]
}

View File

@@ -0,0 +1,120 @@
{
"title": "Store BuyProduct Req",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"ageCheck": {
"type": "string"
},
"appExtVrsId": {
"type": "string"
},
"guid": {
"type": "string"
},
"hasBeenAuthedForBuy": {
"type": "string"
},
"isInApp": {
"type": "string"
},
"kbsync": {
"type": "string"
},
"sbsync": {
"type": "string"
},
"afds": {
"type": "string"
},
"machineName": {
"type": "string"
},
"mtApp": {
"type": "string"
},
"mtClientId": {
"type": "string"
},
"mtEventTime": {
"type": "string"
},
"mtPageId": {
"type": "string"
},
"mtPageType": {
"type": "string"
},
"mtPrevPage": {
"type": "string"
},
"mtRequestId": {
"type": "string"
},
"mtTopic": {
"type": "string"
},
"needDiv": {
"type": "string"
},
"pg": {
"type": "string"
},
"price": {
"type": "string"
},
"pricingParameters": {
"type": "string"
},
"productType": {
"type": "string"
},
"salableAdamId": {
"type": "string"
},
"hasAskedToFulfillPreorder": {
"type": "string"
},
"buyWithoutAuthorization": {
"type": "string"
},
"hasDoneAgeCheck": {
"type": "string"
},
"hasConfirmedPaymentSheet": {
"type": "string"
},
"asn": {
"type": "string"
}
},
"required": [
"guid",
"kbsync",
"price",
"pricingParameters",
"productType",
"salableAdamId",
"appExtVrsId"
],
"optional": [
"ageCheck",
"hasBeenAuthedForBuy",
"hasConfirmedPaymentSheet",
"asn",
"isInApp",
"machineName",
"mtApp",
"mtClientId",
"mtEventTime",
"mtPageId",
"mtPageType",
"mtPrevPage",
"mtRequestId",
"mtTopic",
"needDiv",
"pg"
]
}

View File

@@ -0,0 +1,732 @@
{
"title": "Store BuyProduct Resp",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pings": {
"type": "array",
"items": {
"type": ["number","string","boolean","object","array", "null"]
}
},
"jingleDocType": {
"type": "string"
},
"jingleAction": {
"type": "string"
},
"status": {
"type": "integer"
},
"dsPersonId": {
"type": "string"
},
"creditDisplay": {
"type": "string"
},
"creditBalance": {
"type": "string"
},
"freeSongBalance": {
"type": "string"
},
"creditDisplayInternal": {
"type": "string"
},
"authorized": {
"type": "boolean"
},
"download-queue-item-count": {
"type": "integer"
},
"songList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"songId": {
"type": "integer"
},
"URL": {
"type": "string"
},
"downloadKey": {
"type": "string"
},
"artworkURL": {
"type": "string"
},
"artwork-urls": {
"type": "object",
"properties": {
"image-type": {
"type": "string"
},
"default": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
]
}
},
"required": [
"image-type",
"default"
]
},
"md5": {
"type": "string"
},
"chunks": {
"type": "object",
"properties": {
"chunkSize": {
"type": "integer"
},
"hashes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"chunkSize",
"hashes"
]
},
"isStreamable": {
"type": "boolean"
},
"uncompressedSize": {
"type": "integer"
},
"sinfs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"sinf": {
"type": "string"
}
},
"required": [
"id",
"sinf"
]
}
},
"purchaseDate": {
"type": "string"
},
"download-id": {
"type": "string"
},
"is-in-queue": {
"type": "boolean"
},
"asset-info": {
"type": "object",
"properties": {
"file-size": {
"type": "integer"
},
"flavor": {
"type": "string"
}
},
"required": [
"file-size",
"flavor"
]
},
"metadata": {
"type": "object",
"properties": {
"MacUIRequiredDeviceCapabilities": {
"type": "object",
"properties": {
"arm64": {
"type": "boolean"
}
},
"required": [
"arm64"
]
},
"UIRequiredDeviceCapabilities": {
"type": "object",
"properties": {
"arm64": {
"type": "boolean"
}
},
"required": [
"arm64"
]
},
"WKRunsIndependentlyOfCompanionApp": {
"type": "boolean"
},
"WKWatchOnly": {
"type": "boolean"
},
"appleWatchEnabled": {
"type": "boolean"
},
"artistId": {
"type": "integer"
},
"artistName": {
"type": "string"
},
"bundleDisplayName": {
"type": "string"
},
"bundleShortVersionString": {
"type": "string"
},
"bundleVersion": {
"type": "string"
},
"copyright": {
"type": "string"
},
"fileExtension": {
"type": "string"
},
"gameCenterEnabled": {
"type": "boolean"
},
"gameCenterEverEnabled": {
"type": "boolean"
},
"genre": {
"type": "string"
},
"genreId": {
"type": "integer"
},
"itemId": {
"type": "integer"
},
"itemName": {
"type": "string"
},
"kind": {
"type": "string"
},
"nameTranscriptions": {
"type": "object",
"properties": {
"zh-Hans-CN": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"zh-Hans-CN"
]
},
"playlistName": {
"type": "string"
},
"product-type": {
"type": "string"
},
"rating": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"label": {
"type": "string"
},
"rank": {
"type": "integer"
},
"system": {
"type": "string"
}
},
"required": [
"content",
"label",
"rank",
"system"
]
},
"releaseDate": {
"type": "string"
},
"requiresRosetta": {
"type": "boolean"
},
"runsOnAppleSilicon": {
"type": "boolean"
},
"runsOnIntel": {
"type": "boolean"
},
"s": {
"type": "integer"
},
"software-platform": {
"type": "string"
},
"softwareIcon57x57URL": {
"type": "string"
},
"softwareIconNeedsShine": {
"type": "boolean"
},
"softwareSupportedDeviceIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"softwareVersionBundleId": {
"type": "string"
},
"softwareVersionExternalIdentifier": {
"type": "integer"
},
"softwareVersionExternalIdentifiers": {
"type": "array",
"items": {
"type": "integer"
}
},
"vendorId": {
"type": "integer"
},
"drmVersionNumber": {
"type": "integer"
},
"versionRestrictions": {
"type": "integer"
},
"storeCohort": {
"type": "string"
},
"hasOrEverHasHadIAP": {
"type": "boolean"
}
},
"required": [
"MacUIRequiredDeviceCapabilities",
"UIRequiredDeviceCapabilities",
"WKRunsIndependentlyOfCompanionApp",
"WKWatchOnly",
"appleWatchEnabled",
"artistId",
"artistName",
"bundleDisplayName",
"bundleShortVersionString",
"bundleVersion",
"copyright",
"fileExtension",
"gameCenterEnabled",
"gameCenterEverEnabled",
"genre",
"genreId",
"itemId",
"itemName",
"kind",
"nameTranscriptions",
"playlistName",
"product-type",
"rating",
"releaseDate",
"requiresRosetta",
"runsOnAppleSilicon",
"runsOnIntel",
"s",
"software-platform",
"softwareIcon57x57URL",
"softwareIconNeedsShine",
"softwareSupportedDeviceIds",
"softwareVersionBundleId",
"softwareVersionExternalIdentifier",
"softwareVersionExternalIdentifiers",
"vendorId",
"drmVersionNumber",
"versionRestrictions",
"storeCohort",
"hasOrEverHasHadIAP"
]
}
},
"required": [
"songId",
"URL",
"downloadKey",
"artworkURL",
"artwork-urls",
"md5",
"chunks",
"isStreamable",
"uncompressedSize",
"sinfs",
"purchaseDate",
"download-id",
"is-in-queue",
"asset-info",
"metadata"
]
}
},
"download-queue-info": {
"type": "object",
"properties": {
"download-queue-item-count": {
"type": "integer"
},
"dsid": {
"type": "integer"
},
"is-auto-download-machine": {
"type": "boolean"
}
},
"required": [
"download-queue-item-count",
"dsid",
"is-auto-download-machine"
]
},
"metrics": {
"type": "object",
"properties": {
"itemIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"price": {
"type": "integer"
},
"priceType": {
"type": "string"
},
"productTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"mtApp": {
"type": "string"
},
"mtClientId": {
"type": "string"
},
"mtEventTime": {
"type": "string"
},
"mtPageId": {
"type": "string"
},
"mtPageType": {
"type": "string"
},
"mtPrevPage": {
"type": "string"
},
"mtRequestId": {
"type": "string"
},
"mtTopic": {
"type": "string"
},
"currency": {
"type": "string"
},
"exchangeRateToUSD": {
"type": "number"
},
"commerceEvent_purchase_priceType": {
"type": "string"
},
"commerceEvent_storeFrontId": {
"type": "string"
},
"commerceEvent_result_resultType": {
"type": "integer"
},
"commerceEvent_flowType": {
"type": "integer"
},
"commerceEvent_flowStep": {
"type": "integer"
},
"dialogId": {
"type": "string"
},
"message": {
"type": "string"
},
"messageCode": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "string"
}
},
"actionUrl": {
"type": "string"
},
"asnState": {
"type": "integer"
},
"eventType": {
"type": "string"
}
},
"required": [
"mtApp",
"mtClientId",
"mtEventTime",
"mtPageId",
"mtPageType",
"mtPrevPage",
"mtRequestId",
"mtTopic"
],
"optional": [
"itemIds",
"price",
"priceType",
"productTypes",
"currency",
"exchangeRateToUSD",
"commerceEvent_purchase_priceType",
"commerceEvent_storeFrontId",
"commerceEvent_result_resultType",
"commerceEvent_flowType",
"commerceEvent_flowStep",
"dialogId",
"message",
"messageCode",
"options",
"actionUrl",
"asnState",
"eventType"
]
},
"duAnonymousPings": {
"type": "array",
"items": {
"type": "string"
}
},
"subscriptionStatus": {
"type": "object",
"properties": {
"music": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"reason": {
"type": "string"
},
"isAdmin": {
"type": "boolean"
},
"isNotEligibleForFreeTrial": {
"type": "boolean"
}
},
"required": [
"status",
"reason",
"isAdmin",
"isNotEligibleForFreeTrial"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"latestTerms": {
"type": "integer"
},
"agreedToTerms": {
"type": "integer"
},
"source": {
"type": "string"
}
},
"required": [
"type",
"latestTerms",
"agreedToTerms",
"source"
]
}
},
"account": {
"type": "object",
"properties": {
"isMinor": {
"type": "boolean"
},
"suspectUnderage": {
"type": "boolean"
}
},
"required": [
"isMinor",
"suspectUnderage"
]
},
"family": {
"type": "object",
"properties": {
"hasFamily": {
"type": "boolean"
}
},
"required": [
"hasFamily"
]
}
},
"required": [
"music",
"terms",
"account",
"family"
]
},
"cancel-purchase-batch": {
"type": "boolean"
},
"failureType": {
"type": "string"
},
"customerMessage": {
"type": "string"
},
"m-allowed": {
"type": "boolean"
},
"dialog": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"m-allowed": {
"type": "boolean"
},
"use-keychain": {
"type": "boolean"
},
"isFree": {
"type": "boolean"
},
"message": {
"type": "string"
},
"explanation": {
"type": "string"
},
"defaultButton": {
"type": "string"
},
"okButtonString": {
"type": "string"
},
"okButtonAction": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"buyParams": {
"type": "string"
},
"itemName": {
"type": "string"
}
},
"required": [
"kind",
"buyParams",
"itemName"
]
},
"cancelButtonString": {
"type": "string"
},
"initialCheckboxValue": {
"type": "boolean"
}
},
"required": [
"kind",
"m-allowed",
"use-keychain",
"isFree",
"message",
"explanation",
"defaultButton",
"okButtonString",
"okButtonAction",
"cancelButtonString",
"initialCheckboxValue"
]
}
},
"required": [
"pings",
"metrics"
],
"optional": [
"jingleDocType",
"jingleAction",
"status",
"dsPersonId",
"creditDisplay",
"creditBalance",
"freeSongBalance",
"creditDisplayInternal",
"authorized",
"download-queue-item-count",
"songList",
"download-queue-info",
"duAnonymousPings",
"subscriptionStatus",
"failureType",
"customerMessage",
"m-allowed",
"dialog",
"cancel-purchase-batch"
]
}

View File

@@ -0,0 +1,24 @@
{
"title": "Store Download Req",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"creditDisplay": {
"type": "string"
},
"guid": {
"type": "string"
},
"salableAdamId": {
"type": "string"
},
"appExtVrsId": {
"type": "string"
}
},
"required": [
"creditDisplay",
"guid",
"salableAdamId"
]
}

View File

@@ -0,0 +1,497 @@
{
"title": "Store Download Resp",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pings": {
"type": "array",
"items": {
"type": ["number","string","boolean","object","array", "null"]
}
},
"cancel-purchase-batch": {
"type": "boolean"
},
"customerMessage": {
"type": "string"
},
"failureType": {
"type": "string"
},
"jingleDocType": {
"type": "string"
},
"jingleAction": {
"type": "string"
},
"status": {
"type": "integer"
},
"dsPersonId": {
"type": "string"
},
"creditDisplay": {
"type": "string"
},
"creditBalance": {
"type": "string"
},
"freeSongBalance": {
"type": "string"
},
"authorized": {
"type": "boolean"
},
"download-queue-item-count": {
"type": "integer"
},
"songList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"songId": {
"type": "integer"
},
"URL": {
"type": "string"
},
"downloadKey": {
"type": "string"
},
"artworkURL": {
"type": "string"
},
"artwork-urls": {
"type": "object",
"properties": {
"image-type": {
"type": "string"
},
"default": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
]
}
},
"required": [
"image-type",
"default"
]
},
"md5": {
"type": "string"
},
"chunks": {
"type": "object",
"properties": {
"chunkSize": {
"type": "integer"
},
"hashes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"chunkSize",
"hashes"
]
},
"isStreamable": {
"type": "boolean"
},
"uncompressedSize": {
"type": "string"
},
"sinfs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"sinf": {
"type": "string"
}
},
"required": [
"id",
"sinf"
]
}
},
"purchaseDate": {
"type": "string"
},
"download-id": {
"type": "string"
},
"is-in-queue": {
"type": "boolean"
},
"asset-info": {
"type": "object",
"properties": {
"file-size": {
"type": "integer"
},
"flavor": {
"type": "string"
}
},
"required": [
"file-size",
"flavor"
]
},
"metadata": {
"type": "object",
"properties": {
"MacUIRequiredDeviceCapabilities": {
"type": "object",
"properties": {
"arm64": {
"type": "boolean"
},
"gamekit": {
"type": "boolean"
},
"metal": {
"type": "boolean"
}
},
"required": [
"arm64",
"gamekit",
"metal"
]
},
"UIRequiredDeviceCapabilities": {
"type": "object",
"properties": {
"arm64": {
"type": "boolean"
},
"gamekit": {
"type": "boolean"
},
"metal": {
"type": "boolean"
}
},
"required": [
"arm64",
"gamekit",
"metal"
]
},
"artistId": {
"type": "integer"
},
"artistName": {
"type": "string"
},
"bundleDisplayName": {
"type": "string"
},
"bundleShortVersionString": {
"type": "string"
},
"bundleVersion": {
"type": "string"
},
"copyright": {
"type": "string"
},
"fileExtension": {
"type": "string"
},
"gameCenterEnabled": {
"type": "boolean"
},
"gameCenterEverEnabled": {
"type": "boolean"
},
"genre": {
"type": "string"
},
"genreId": {
"type": "integer"
},
"itemId": {
"type": "integer"
},
"itemName": {
"type": "string"
},
"kind": {
"type": "string"
},
"playlistName": {
"type": "string"
},
"product-type": {
"type": "string"
},
"rating": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"label": {
"type": "string"
},
"rank": {
"type": "integer"
},
"system": {
"type": "string"
}
},
"required": [
"content",
"label",
"rank",
"system"
]
},
"releaseDate": {
"type": "string"
},
"requiresRosetta": {
"type": "boolean"
},
"runsOnAppleSilicon": {
"type": "boolean"
},
"runsOnIntel": {
"type": "boolean"
},
"s": {
"type": "integer"
},
"software-platform": {
"type": "string"
},
"softwareIcon57x57URL": {
"type": "string"
},
"softwareIconNeedsShine": {
"type": "boolean"
},
"softwareSupportedDeviceIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"softwareVersionBundleId": {
"type": "string"
},
"softwareVersionExternalIdentifier": {
"type": "integer"
},
"softwareVersionExternalIdentifiers": {
"type": "array",
"items": {
"type": "integer"
}
},
"subgenres": {
"type": "array",
"items": {
"type": "object",
"properties": {
"genre": {
"type": "string"
},
"genreId": {
"type": "integer"
}
},
"required": [
"genre",
"genreId"
]
}
},
"vendorId": {
"type": "integer"
},
"drmVersionNumber": {
"type": "integer"
},
"versionRestrictions": {
"type": "integer"
}
},
"required": [
"MacUIRequiredDeviceCapabilities",
"UIRequiredDeviceCapabilities",
"artistId",
"artistName",
"bundleDisplayName",
"bundleShortVersionString",
"bundleVersion",
"copyright",
"fileExtension",
"gameCenterEnabled",
"gameCenterEverEnabled",
"genre",
"genreId",
"itemId",
"itemName",
"kind",
"playlistName",
"product-type",
"rating",
"releaseDate",
"requiresRosetta",
"runsOnAppleSilicon",
"runsOnIntel",
"s",
"software-platform",
"softwareIcon57x57URL",
"softwareIconNeedsShine",
"softwareSupportedDeviceIds",
"softwareVersionBundleId",
"softwareVersionExternalIdentifier",
"softwareVersionExternalIdentifiers",
"subgenres",
"vendorId",
"drmVersionNumber",
"versionRestrictions"
]
}
},
"required": [
"songId",
"URL",
"downloadKey",
"artworkURL",
"artwork-urls",
"md5",
"chunks",
"isStreamable",
"uncompressedSize",
"sinfs",
"purchaseDate",
"download-id",
"is-in-queue",
"asset-info",
"metadata"
]
}
},
"metrics": {
"type": "object",
"properties": {
"itemIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"currency": {
"type": "string"
},
"exchangeRateToUSD": {
"type": "number"
}
},
"required": [
"itemIds",
"currency",
"exchangeRateToUSD"
]
},
"subscriptionStatus": {
"type": "object",
"properties": {
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"latestTerms": {
"type": "integer"
},
"agreedToTerms": {
"type": "integer"
},
"source": {
"type": "string"
}
},
"required": [
"type",
"latestTerms",
"agreedToTerms",
"source"
]
}
},
"account": {
"type": "object",
"properties": {
"isMinor": {
"type": "boolean"
},
"suspectUnderage": {
"type": "boolean"
}
},
"required": [
"isMinor",
"suspectUnderage"
]
},
"family": {
"type": "object",
"properties": {
"hasFamily": {
"type": "boolean"
}
},
"required": [
"hasFamily"
]
}
},
"required": [
"terms",
"account",
"family"
]
}
},
"required": [
"pings",
"jingleDocType",
"jingleAction",
"status",
"dsPersonId",
"creditDisplay",
"creditBalance",
"freeSongBalance",
"authorized",
"download-queue-item-count",
"songList",
"metrics",
"subscriptionStatus"
]
}