{"openapi":"3.1.1","info":{"title":"Blue Jetty Publisher and Discovery API","termsOfService":"https://bluejetty.ai/machine-use","version":"0.2.0","description":"Submit publisher-authorized app manifests and selection-level entities, inspect ingestion, and retrieve the public app index. Account creation and API-key issuance require a human sign-in; an authorized integration can operate with the resulting bearer key.","contact":{"email":"legal@bluejettyai.com"}},"externalDocs":{"description":"Publisher API quickstart","url":"https://bluejetty.ai/developers"},"tags":[{"name":"Publisher","description":"Authenticated publisher ingestion and lifecycle operations."},{"name":"Public index","description":"Unauthenticated app/entity discovery and feeds."},{"name":"Operations","description":"Service health and contract discovery."}],"components":{"securitySchemes":{"agencyApiKey":{"type":"http","scheme":"bearer","description":"Expiring agy_ agency key, bound to its agency workspace and explicit scopes. Never accepted by publisher APIs. Agency availability is controlled separately."},"bearerApiKey":{"type":"http","scheme":"bearer","description":"One-time-display API key created by a signed-in business user. Keep it secret."}},"headers":{"RequestId":{"description":"Opaque support identifier for this request.","schema":{"type":"string"}},"IdempotencyReplayed":{"description":"Whether the response was replayed from a completed request with the same key and body.","schema":{"type":"string","enum":["true","false"]}},"RetryAfter":{"description":"Seconds before another submission should be attempted.","schema":{"type":"integer"}},"LastModified":{"description":"Newest indexed record update represented by this public feed.","schema":{"type":"string"}}},"schemas":{"AppIndexV2":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","name","stores","provenance","updatedAt"],"properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":240},"websiteUrl":{"type":"string","format":"uri","maxLength":2048},"packetUrl":{"type":"string","format":"uri","maxLength":2048},"htmlUrl":{"type":"string","format":"uri","maxLength":2048},"attribution":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["name","url","licenseInformationUrl","changes"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"url":{"type":"string","format":"uri","maxLength":2048},"licenseInformationUrl":{"type":"string","format":"uri","maxLength":2048},"changes":{"type":"string","minLength":1,"maxLength":500}}}},"offersTruncated":{"const":true},"offers":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","required":["id","title","description"],"properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"code":{"type":"string","minLength":1},"endsAt":{"type":"string","format":"date-time"},"handoff":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":true}},"additionalProperties":false}},"provenance":{"enum":["publisher_authorized","public_source"]},"sourceObservedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"stores":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["platform","url"],"properties":{"platform":{"enum":["ios","android"]},"url":{"type":"string","format":"uri","maxLength":2048},"deviceEvidence":{"type":"object","additionalProperties":false,"required":["scope","observedAt","sourceId","sourceUrl"],"properties":{"scope":{"enum":["phone","phone_and_tablet","ipad_only"]},"observedAt":{"type":"string","format":"date-time"},"sourceId":{"enum":["apple-itunes-search","google-play-public-page"]},"sourceUrl":{"type":"string","format":"uri","maxLength":2048}}}}}}},"allOf":[{"if":{"properties":{"provenance":{"const":"public_source"}}},"then":{"not":{"anyOf":[{"required":["packetUrl"]},{"required":["offers"]}]}}}]}},"meta":{"type":"object","additionalProperties":false,"required":["format","count","limit","next","snapshot","updatedAt","freshnessScope"],"properties":{"format":{"const":"bluejetty.app_index/2"},"count":{"type":"integer","minimum":0,"maximum":100},"limit":{"type":"integer","minimum":1,"maximum":100},"next":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]},"snapshot":{"type":"string","pattern":"^idx_[a-f0-9]{32}$"},"updatedAt":{"type":"string","format":"date-time"},"lastCheckedAt":{"type":"string","format":"date-time"},"freshnessScope":{"const":"daily_chart_discovery"}}}}},"AppIndexV3":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","name","stores","provenance","updatedAt","blueJettyId","jsonUrl"],"properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":240},"websiteUrl":{"type":"string","format":"uri","maxLength":2048},"packetUrl":{"type":"string","format":"uri","maxLength":2048},"htmlUrl":{"type":"string","format":"uri","maxLength":2048},"attribution":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["name","url","licenseInformationUrl","changes"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"url":{"type":"string","format":"uri","maxLength":2048},"licenseInformationUrl":{"type":"string","format":"uri","maxLength":2048},"changes":{"type":"string","minLength":1,"maxLength":500}}}},"offersTruncated":{"const":true},"offers":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","required":["id","title","description"],"properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"code":{"type":"string","minLength":1},"endsAt":{"type":"string","format":"date-time"},"handoff":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":true}},"additionalProperties":false}},"provenance":{"enum":["publisher_authorized","public_source"]},"sourceObservedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"stores":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["platform","url"],"properties":{"platform":{"enum":["ios","android"]},"url":{"type":"string","format":"uri","maxLength":2048},"deviceEvidence":{"type":"object","additionalProperties":false,"required":["scope","observedAt","sourceId","sourceUrl"],"properties":{"scope":{"enum":["phone","phone_and_tablet","ipad_only"]},"observedAt":{"type":"string","format":"date-time"},"sourceId":{"enum":["apple-itunes-search","google-play-public-page"]},"sourceUrl":{"type":"string","format":"uri","maxLength":2048}}}}}},"blueJettyId":{"type":"string","pattern":"^[0-9]{8}$"},"jsonUrl":{"type":"string","format":"uri","maxLength":2048}},"allOf":[{"if":{"properties":{"provenance":{"const":"public_source"}}},"then":{"not":{"anyOf":[{"required":["packetUrl"]},{"required":["offers"]}]}}}]}},"meta":{"type":"object","additionalProperties":false,"required":["format","count","limit","next","snapshot","updatedAt","freshnessScope"],"properties":{"format":{"const":"bluejetty.app_index/3"},"count":{"type":"integer","minimum":0,"maximum":100},"limit":{"type":"integer","minimum":1,"maximum":100},"next":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]},"snapshot":{"type":"string","pattern":"^idx_[a-f0-9]{32}$"},"updatedAt":{"type":"string","format":"date-time"},"lastCheckedAt":{"type":"string","format":"date-time"},"freshnessScope":{"const":"daily_chart_discovery"},"updatedAtScope":{"const":"membership_snapshot"},"recordUpdatedAtScope":{"const":"published_record_content"},"sourceObservedAtScope":{"const":"upstream_source_observation"},"lastCheckedAtScope":{"const":"apple_us_free_and_paid_charts_only"}}}}},"AppConfiguration":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"specVersion":{"type":"string","const":"0.2"},"basicInstructions":{"type":"string","minLength":1,"maxLength":1000},"canonicalUrl":{"type":"string","maxLength":2048,"format":"uri"},"capabilities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500}},"required":["id","name","summary"],"additionalProperties":false}},"intents":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"type":"string","minLength":1,"maxLength":500},"capabilityIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["id","description","capabilityIds","destinationId"],"additionalProperties":false}},"destinations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500},"entityIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"executions":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"platform":{"type":"string","enum":["ios","android","web"]},"kind":{"type":"string","enum":["universal_link","android_app_link","web","app_store","attribution_link"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"attribution":{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"}},"required":["provider","campaign"],"additionalProperties":false},"installState":{"default":"any","type":"string","enum":["installed","uninstalled","any"]}},"required":["id","platform","kind","url"],"additionalProperties":false}}},"required":["id","name","summary","executions"],"additionalProperties":false}},"platformDefaults":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android","web"]},"attribution":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"}},"required":["provider","campaign"],"additionalProperties":false},{"type":"null"}]}},"required":["platform","attribution"],"additionalProperties":false}},"advancedInstructions":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"instruction":{"type":"string","minLength":1,"maxLength":1000},"intentId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"campaign":{"type":"string","minLength":1,"maxLength":100}},"required":["id","instruction"],"additionalProperties":false}},"promotions":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"publicCode":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["active","inactive"]}},"required":["id","title","description","destinationId","startsAt","endsAt","status"],"additionalProperties":false}}},"required":["specVersion","basicInstructions","canonicalUrl","capabilities","intents","destinations"],"additionalProperties":false},{"type":"object","properties":{"specVersion":{"type":"string","const":"0.3"},"basicInstructions":{"type":"string","minLength":1,"maxLength":1000},"canonicalUrl":{"type":"string","maxLength":2048,"format":"uri"},"capabilities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500}},"required":["id","name","summary"],"additionalProperties":false}},"intents":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"type":"string","minLength":1,"maxLength":500},"capabilityIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["id","description","capabilityIds","destinationId"],"additionalProperties":false}},"destinations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500},"entityIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"executions":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"platform":{"type":"string","enum":["ios","android","web"]},"kind":{"type":"string","enum":["universal_link","android_app_link","web","app_store","attribution_link"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"attribution":{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},"installState":{"default":"any","type":"string","enum":["installed","uninstalled","any"]}},"required":["id","platform","kind","url"],"additionalProperties":false}},"handoffPreference":{"type":"string","enum":["attribution_first","native_first"]}},"required":["id","name","summary","executions"],"additionalProperties":false}},"platformDefaults":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android","web"]},"attribution":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},{"type":"null"}]}},"required":["platform","attribution"],"additionalProperties":false}},"advancedInstructions":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"instruction":{"type":"string","minLength":1,"maxLength":1000},"intentId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"campaign":{"type":"string","minLength":1,"maxLength":100}},"required":["id","instruction"],"additionalProperties":false}},"promotions":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"publicCode":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["active","inactive"]}},"required":["id","title","description","destinationId","startsAt","endsAt","status"],"additionalProperties":false}},"defaultDestinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["specVersion","basicInstructions","canonicalUrl","capabilities","intents","destinations"],"additionalProperties":false},{"type":"object","properties":{"specVersion":{"type":"string","const":"0.4"},"basicInstructions":{"type":"string","minLength":1,"maxLength":1000},"canonicalUrl":{"type":"string","maxLength":2048,"format":"uri"},"capabilities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500}},"required":["id","name","summary"],"additionalProperties":false}},"intents":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"type":"string","minLength":1,"maxLength":500},"capabilityIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["id","description","capabilityIds","destinationId"],"additionalProperties":false}},"destinations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500},"entityIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"executions":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"platform":{"type":"string","enum":["ios","android","web"]},"kind":{"type":"string","enum":["universal_link","android_app_link","web","app_store","attribution_link"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"attribution":{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},"installState":{"default":"any","type":"string","enum":["installed","uninstalled","any"]},"linkRecipe":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"format":{"type":"string","enum":["native_https","appsflyer_onelink"]},"summary":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"publisherReviewed":{"type":"boolean","const":true},"inputs":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"description":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"required":{"type":"boolean"},"default":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"values":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"value":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[\\p{L}\\p{N} _~-]+$"}},"required":["id","label","value"],"additionalProperties":false}}},"required":["id","description","required","values"],"additionalProperties":false}},"bindings":{"minItems":1,"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"input":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"location":{"type":"string","const":"query"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"}},"required":["input","location","key"],"additionalProperties":false},{"type":"object","properties":{"input":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"location":{"type":"string","const":"path_segment"},"index":{"type":"integer","minimum":0,"maximum":20}},"required":["input","location","index"],"additionalProperties":false}]}},"examples":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"object","properties":{"inputs":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"additionalProperties":{"type":"string","maxLength":80}},"outcome":{"type":"string","enum":["assembled","fallback"]},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["inputs","outcome","url"],"additionalProperties":false}}},"required":["id","format","summary","publisherReviewed","inputs","bindings","examples"],"additionalProperties":false}},"required":["id","platform","kind","url"],"additionalProperties":false}},"handoffPreference":{"type":"string","enum":["attribution_first","native_first"]}},"required":["id","name","summary","executions"],"additionalProperties":false}},"platformDefaults":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android","web"]},"attribution":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},{"type":"null"}]}},"required":["platform","attribution"],"additionalProperties":false}},"advancedInstructions":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"instruction":{"type":"string","minLength":1,"maxLength":1000},"intentId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"campaign":{"type":"string","minLength":1,"maxLength":100}},"required":["id","instruction"],"additionalProperties":false}},"promotions":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"publicCode":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["active","inactive"]}},"required":["id","title","description","destinationId","startsAt","endsAt","status"],"additionalProperties":false}},"defaultDestinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["specVersion","basicInstructions","canonicalUrl","capabilities","intents","destinations"],"additionalProperties":false},{"type":"object","properties":{"specVersion":{"type":"string","const":"0.5"},"canonicalUrl":{"type":"string","maxLength":2048,"format":"uri"},"capabilities":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500}},"required":["id","name","summary"],"additionalProperties":false}},"intents":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"type":"string","minLength":1,"maxLength":500},"capabilityIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["id","description","capabilityIds","destinationId"],"additionalProperties":false}},"destinations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"summary":{"type":"string","minLength":1,"maxLength":500},"entityIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"executions":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"platform":{"type":"string","enum":["ios","android","web"]},"kind":{"type":"string","enum":["universal_link","android_app_link","web","app_store","attribution_link"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"attribution":{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},"installState":{"default":"any","type":"string","enum":["installed","uninstalled","any"]},"linkRecipe":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"format":{"type":"string","enum":["native_https","appsflyer_onelink"]},"summary":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"publisherReviewed":{"type":"boolean","const":true},"inputs":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"description":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"required":{"type":"boolean"},"default":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"values":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^<>\\u0000-\\u001f]+$"},"value":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[\\p{L}\\p{N} _~-]+$"}},"required":["id","label","value"],"additionalProperties":false}}},"required":["id","description","required","values"],"additionalProperties":false}},"bindings":{"minItems":1,"maxItems":3,"type":"array","items":{"oneOf":[{"type":"object","properties":{"input":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"location":{"type":"string","const":"query"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"}},"required":["input","location","key"],"additionalProperties":false},{"type":"object","properties":{"input":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"location":{"type":"string","const":"path_segment"},"index":{"type":"integer","minimum":0,"maximum":20}},"required":["input","location","index"],"additionalProperties":false}]}},"examples":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"object","properties":{"inputs":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"additionalProperties":{"type":"string","maxLength":80}},"outcome":{"type":"string","enum":["assembled","fallback"]},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["inputs","outcome","url"],"additionalProperties":false}}},"required":["id","format","summary","publisherReviewed","inputs","bindings","examples"],"additionalProperties":false}},"required":["id","platform","kind","url"],"additionalProperties":false}},"handoffPreference":{"type":"string","enum":["attribution_first","native_first"]}},"required":["id","name","summary","executions"],"additionalProperties":false}},"platformDefaults":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android","web"]},"attribution":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"},"decoration":{"type":"string","enum":["preserve","append_missing"]},"linkFormat":{"type":"string","enum":["long","short"]}},"required":["provider","campaign"],"additionalProperties":false},{"type":"null"}]}},"required":["platform","attribution"],"additionalProperties":false}},"promotions":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":500},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"publicCode":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["active","inactive"]},"ongoing":{"type":"boolean","const":true},"audience":{"type":"string","minLength":1,"maxLength":300},"eligibility":{"type":"string","minLength":1,"maxLength":500},"codeBinding":{"type":"object","properties":{"executionId":{"type":"string","minLength":1,"maxLength":100},"parameter":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"publisherReviewed":{"type":"boolean","const":true}},"required":["executionId","parameter","publisherReviewed"],"additionalProperties":false}},"required":["id","title","description","destinationId","startsAt","status"],"additionalProperties":false}},"defaultDestinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"representation":{"type":"object","properties":{"summary":{"type":"string","minLength":1,"maxLength":1000},"recommendationEligibility":{"type":"string","enum":["when_relevant","not_requested"]},"preferences":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"statement":{"type":"string","minLength":1,"maxLength":1000},"intentId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"destinationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"campaign":{"type":"string","minLength":1,"maxLength":100}},"required":["id","statement"],"additionalProperties":false}}},"required":["summary"],"additionalProperties":false}},"required":["specVersion","canonicalUrl","capabilities","intents","destinations","representation"],"additionalProperties":false}],"description":"Configuration 0.5 describes publisher representation and scoped preferences alongside existing app maps and link recipes. Versions 0.2–0.4 remain accepted. Apply /developers/link-recipes.md semantic rules in addition to the portable schema. Recipes describe local consumer assembly; user selections are not submitted to Blue Jetty."},"PublisherAuthorization":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"unverified"},"method":{"type":"null"},"scope":{"type":"null"},"domain":{"type":"null"},"packetUrl":{"type":"null"},"identities":{"minItems":0,"maxItems":0,"type":"array","items":{"not":{}}},"evidenceSources":{"minItems":0,"maxItems":0,"type":"array","items":{"not":{}}},"relationshipEvidence":{"minItems":0,"maxItems":0,"type":"array","items":{"not":{}}},"verifiedAt":{"type":"null"},"checkedAt":{"type":"null"},"validUntil":{"type":"null"}},"required":["status","method","scope","domain","packetUrl","identities","evidenceSources","relationshipEvidence","verifiedAt","checkedAt","validUntil"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"verified"},"method":{"type":"string","const":"https_file_v1"},"scope":{"type":"string","const":"app_discovery_and_handoff"},"domain":{"type":"string"},"packetUrl":{"type":"string","format":"uri","description":"Exact URL bound into the ownership proof; an evidence identifier, not the preferred retrieval representation. Existing proofs bind the .md URL. For packet retrieval, use urls.packetJson by default or urls.packetMarkdown when supported."},"identities":{"minItems":1,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android"]},"identifier":{"type":"string"},"storeUrl":{"type":"string","format":"uri"}},"required":["platform","identifier","storeUrl"],"additionalProperties":false}},"evidenceSources":{"minItems":1,"type":"array","items":{"type":"string","format":"uri"}},"verifiedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"validUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"relationshipEvidence":{"minItems":1,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android"]},"method":{"type":"string","enum":["store_lookup","operator_review"]},"sourceUrl":{"type":"string","format":"uri"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"validUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["platform","method","sourceUrl","checkedAt","validUntil"],"additionalProperties":false}}},"required":["status","method","scope","domain","packetUrl","identities","evidenceSources","verifiedAt","checkedAt","validUntil","relationshipEvidence"],"additionalProperties":false}]},"Error":{"type":"object","additionalProperties":false,"required":["error","requestId"],"properties":{"error":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string","examples":["BJ_MANIFEST_INVALID"]},"message":{"type":"string"},"details":{"description":"Optional structured validation paths or limit context."}}},"requestId":{"type":"string"}}},"SubmissionRequest":{"type":"object","additionalProperties":false,"required":["manifest","publication"],"properties":{"manifest":{"$ref":"/schemas/v0.1/manifest.schema.json"},"feedId":{"type":"string","minLength":1,"maxLength":128,"description":"Required only when the manifest declares more than one feed."},"snapshot":{"$ref":"/schemas/v0.1/delivery.schema.json","description":"Required for a push feed; omitted when registering a pull feed."},"publication":{"description":"Choose public discovery or an owner-only sample hold. Sample records remain available through authenticated owner surfaces but are excluded from public pages, APIs, search, exports, feeds, and sitemaps.","oneOf":[{"type":"object","additionalProperties":false,"required":["publicSelectionMetadata"],"properties":{"publicSelectionMetadata":{"const":true},"visibility":{"const":"public"}}},{"type":"object","additionalProperties":false,"required":["publicSelectionMetadata","visibility"],"properties":{"publicSelectionMetadata":{"const":false},"visibility":{"const":"sample"}}}]}}},"OnboardingPreviewRequest":{"type":"object","additionalProperties":false,"required":["app"],"properties":{"app":{"type":"object","additionalProperties":false,"required":["name","developerName","publisherDomain","publisherWebsiteUrl"],"description":"Smallest publisher-authorized mobile app identity. Provide at least one native platform identifier.","properties":{"name":{"type":"string","minLength":1,"maxLength":240},"developerName":{"type":"string","minLength":1,"maxLength":240},"publisherId":{"type":"string","maxLength":253},"publisherDomain":{"type":"string","format":"hostname","maxLength":253},"publisherWebsiteUrl":{"type":"string","format":"uri","pattern":"^https://","maxLength":2048},"description":{"type":"string","minLength":1,"maxLength":1000},"iosBundleId":{"type":"string","minLength":1,"maxLength":512},"androidPackageName":{"type":"string","minLength":1,"maxLength":512},"storeUrls":{"type":"array","maxItems":4,"items":{"type":"string","format":"uri"}},"controlledDomains":{"type":"array","maxItems":20,"items":{"type":"string","format":"hostname"}}},"anyOf":[{"required":["iosBundleId"]},{"required":["androidPackageName"]}]},"discovery":{"type":"object","additionalProperties":false,"required":["sitemapUrl"],"properties":{"sitemapUrl":{"type":"string","format":"uri","pattern":"^https://","maxLength":2048},"maxPages":{"type":"integer","minimum":1,"maximum":50,"default":10}}},"records":{"type":"array","maxItems":1000,"items":{"$ref":"/schemas/v0.1/entity.schema.json"}}},"anyOf":[{"required":["discovery"]},{"required":["records"]}]},"IngestionResult":{"type":"object","required":["runId","rawCount","normalizedCount","insertedCount","updatedCount","deletedCount","duplicateCount","rejectedCount","fingerprint","warnings"],"properties":{"runId":{"type":"string"},"rawCount":{"type":"integer","minimum":0},"normalizedCount":{"type":"integer","minimum":0},"rejectedCount":{"type":"integer","minimum":0},"duplicateCount":{"type":"integer","minimum":0},"insertedCount":{"type":"integer","minimum":0},"updatedCount":{"type":"integer","minimum":0},"deletedCount":{"type":"integer","minimum":0},"fingerprint":{"type":"string"},"warnings":{"type":"array","items":{"type":"object"}}}},"SubmissionResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["appId","sourceId","runId","ingestion","publicationVersion","publicationRevisionId","publication","urls","nextAction"],"properties":{"appId":{"type":"string"},"sourceId":{"type":"string"},"agentInstructions":{"type":"object","description":"Read the current owner status and report completion to the publisher after submission.","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}},"publicationVersion":{"type":"integer","minimum":0},"publicationRevisionId":{"type":"string"},"runId":{"type":["string","null"]},"ingestion":{"oneOf":[{"$ref":"#/components/schemas/IngestionResult"},{"type":"null"}]},"publication":{"type":"object","required":["state","publiclyDiscoverable"],"properties":{"state":{"type":"string","enum":["public","sample"]},"publiclyDiscoverable":{"type":"boolean","description":"Current eligibility at commit: public intent, current publisher authorization, and a nonempty published corpus. Re-read status after changes or evidence expiry."},"nextCheck":{"type":"string","format":"uri"}}},"urls":{"type":"object","required":["app","status","feedJson","feedJsonl","aiPacket","aiPacketMarkdown","publisherLlmsSnippet","releaseStatus","refresh"],"properties":{"app":{"type":"string","format":"uri"},"status":{"type":"string","format":"uri"},"feedJson":{"type":"string","format":"uri"},"feedJsonl":{"type":"string","format":"uri"},"aiPacket":{"type":"string","format":"uri"},"aiPacketMarkdown":{"type":"string","format":"uri"},"publisherLlmsSnippet":{"type":"string","format":"uri"},"releaseStatus":{"type":"string","format":"uri"},"refresh":{"type":"string","format":"uri"}}},"nextAction":{"type":"string"}}}}},"AppSummary":{"type":"object","required":["id","slug","name","developerName"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"developerName":{"type":"string"},"publisherWebsiteUrl":{"type":["string","null"],"format":"uri"},"description":{"type":["string","null"]},"promotionBlurb":{"type":["string","null"],"maxLength":280,"description":"One optional publisher-provided promotion statement. It does not affect ranking or imply verified eligibility."},"promotionUpdatedAt":{"type":["string","null"],"format":"date-time"},"preferredRepresentation":{"$ref":"#/components/schemas/PreferredRepresentation"},"publisherAuthorization":{"$ref":"#/components/schemas/PublisherAuthorization"},"discovery":{"$ref":"#/components/schemas/AppConfiguration"},"releaseStatus":{"$ref":"#/components/schemas/ReleaseStatus"},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":true},"OnboardingState":{"type":"object","additionalProperties":false,"required":["status","criteria","reasons","lastSuccessfulUpdateAt"],"description":"Index-derived operational state. An app is onboarded only after it has a source, a successful update, and non-empty current inventory.","properties":{"status":{"enum":["added","onboarded"]},"criteria":{"type":"object","additionalProperties":false,"required":["hasSource","hasSuccessfulUpdate","hasCurrentInventory"],"properties":{"hasSource":{"type":"boolean"},"hasSuccessfulUpdate":{"type":"boolean"},"hasCurrentInventory":{"type":"boolean"}}},"reasons":{"type":"array","items":{"enum":["no_source","no_successful_update","empty_inventory"]}},"lastSuccessfulUpdateAt":{"type":["string","null"],"format":"date-time"}}},"OwnedAppSummary":{"allOf":[{"$ref":"#/components/schemas/AppSummary"},{"type":"object","required":["sourceCount","entityCount","onboarding","lastSuccessfulUpdateAt","sources"],"properties":{"sourceCount":{"type":"integer","minimum":0},"entityCount":{"type":"integer","minimum":0},"onboarding":{"$ref":"#/components/schemas/OnboardingState"},"website":{"type":"object","additionalProperties":true},"publisherOnboarding":{"type":"object","additionalProperties":true},"lastSuccessfulUpdateAt":{"type":["string","null"],"format":"date-time"},"crawlerActivity":{"anyOf":[{"$ref":"#/components/schemas/CrawlerActivity"},{"type":"null"}]},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}}}]},"Source":{"type":"object","required":["id","appId","sourceType","provenance"],"properties":{"id":{"type":"string"},"appId":{"type":"string"},"sourceType":{"enum":["json","jsonl","csv","http_json","sitemap_jsonld","manual"]},"sourceUri":{"type":["string","null"],"format":"uri"},"provenance":{"type":"string"},"refreshInterval":{"type":"string"}},"additionalProperties":true},"StatusResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["app","sources","latestRuns","counts","onboarding","lastSuccessfulUpdateAt"],"properties":{"app":{"$ref":"#/components/schemas/AppSummary"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"latestRuns":{"type":"array","items":{"type":"object","additionalProperties":true}},"counts":{"type":"object","properties":{"entities":{"type":"integer"},"destinations":{"type":"integer"},"publishedEntities":{"type":"integer","description":"Current non-deleted published entity count"}}},"onboarding":{"$ref":"#/components/schemas/OnboardingState"},"website":{"type":"object","additionalProperties":true},"publisherOnboarding":{"type":"object","additionalProperties":true},"completionReport":{"type":"object","description":"Agent-facing completion report. Report its remaining checks to the user; only fullyOnboarded=true permits the fully onboarded headline. Crawler pickup and device routing are separate evidence.","properties":{"fullyOnboarded":{"type":"boolean"},"headline":{"type":"string"},"publication":{"enum":["published","not_published"],"description":"Current authorized public packet eligibility, independent of website discovery"},"setup":{"enum":["complete","needs_attention"]},"checks":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"passed":{"type":"boolean"}}}},"completed":{"type":"array","items":{"type":"string"}},"remaining":{"type":"array","items":{"type":"string"}},"publishedEntityCount":{"type":"integer"},"lastSuccessfulUpdateAt":{"type":["string","null"],"format":"date-time"},"warnings":{"type":"array","items":{"type":"object","additionalProperties":true}},"nextAction":{"type":["object","null"],"additionalProperties":true},"agentInstructions":{"type":"object","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}}}},"lastSuccessfulUpdateAt":{"type":["string","null"],"format":"date-time"}}}}},"DeleteResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["appId","deletedAt","removed"],"properties":{"appId":{"type":"string"},"deletedAt":{"type":"string","format":"date-time"},"removed":{"type":"object","additionalProperties":{"type":"integer","minimum":0}}}}}},"HandoffConfig":{"type":["object","null"],"additionalProperties":false,"required":["instructions","preferredUrl"],"properties":{"instructions":{"type":"string","minLength":1,"maxLength":1000,"pattern":"^[^<>]*$"},"preferredUrl":{"type":"string","format":"uri","pattern":"^https://","maxLength":2048},"preferredAppStoreUrl":{"type":"string","format":"uri","pattern":"^https://","maxLength":2048},"attribution":{"type":"object","additionalProperties":false,"required":["provider","campaign"],"properties":{"provider":{"enum":["appsflyer","branch","adjust","kochava"]},"campaign":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._~-]+$"}}}}},"IndexedVersions":{"type":"object","minProperties":1,"additionalProperties":false,"properties":{"ios":{"$ref":"#/components/schemas/IndexedVersion"},"android":{"$ref":"#/components/schemas/IndexedVersion"}}},"IndexedVersion":{"type":"object","additionalProperties":false,"required":["version"],"properties":{"version":{"type":"string","minLength":1,"maxLength":64},"build":{"type":"string","minLength":1,"maxLength":64}}},"ExecutionEvidence":{"type":"object","required":["destinationId","executionId","revisionId","provider","publisherDeclared","linkObserved","directVerified","deferredVerified","attributionVerified"],"description":"Index-derived execution evidence, separate from publisher configuration and authorization. HTTP observations are revision-bound. Provider capabilities are potential features, not verified link behavior.","properties":{"destinationId":{"type":"string"},"executionId":{"type":"string"},"revisionId":{"type":["string","null"]},"provider":{"enum":["native","appsflyer","branch","adjust","kochava","singular","airbridge","other"]},"publisherDeclared":{"type":"boolean"},"linkObserved":{"type":"boolean"},"directVerified":{"const":false},"deferredVerified":{"const":false},"attributionVerified":{"const":false},"latestHttpObservation":{"type":["object","null"],"additionalProperties":true},"providerCapabilities":{"type":"object","additionalProperties":true},"linkInspection":{"type":"object","additionalProperties":true},"verificationScope":{"const":"publisher_declaration_and_revision_bound_http_only"}},"additionalProperties":false},"PreferredRepresentation":{"type":"object","additionalProperties":false,"required":["instructions","preferred","appStores","attribution","updatedAt"],"properties":{"instructions":{"type":"string"},"preferred":{"type":["object","null"],"additionalProperties":true},"appStores":{"type":"object","additionalProperties":true},"attribution":{"type":["object","null"],"additionalProperties":true},"executionEvidence":{"anyOf":[{"$ref":"#/components/schemas/ExecutionEvidence"},{"type":"null"}]},"updatedAt":{"type":["string","null"],"format":"date-time"}}},"ReleaseStatus":{"type":"object","required":["overall","platforms"],"properties":{"overall":{"enum":["current","out_of_date","ahead_of_store","unknown"]},"platforms":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"CrawlerActivity":{"type":"object","additionalProperties":false,"dependentRequired":{"history":["crawlers","trend"],"trend":["history"]},"required":["appId","window","totalHits"],"description":"Aggregate view contains only appId, window and totalHits. Detailed view also contains crawlers. History view adds UTC daily counts and a comparison of the last two complete seven-day periods when available. Declared identity is not provider-verified network evidence.","properties":{"discoveryLatency":{"type":"object","required":["days","since","coverage","identityConfidence","interpretation","limits","providers"],"description":"Detailed/history only. Revision first-public-eligibility to first origin-observed successful packet fetch/revalidation; private revisions excluded, rollout baselines labeled and excluded from medians. Retained 90 days; no claim of indexing or citation.","properties":{"days":{"type":"integer","minimum":1,"maximum":90},"since":{"type":"string","format":"date-time"},"coverage":{"const":"origin_observed_only"},"identityConfidence":{"const":"declared_user_agent"},"interpretation":{"type":"string"},"limits":{"type":"object","properties":{"revisions":{"const":500},"observations":{"const":5000},"truncated":{"type":"boolean"}}},"providers":{"type":"array","items":{"type":"object","properties":{"provider":{"enum":["openai","anthropic","google","meta","xai","bing"]},"totalRevisions":{"type":"integer"},"observedRevisions":{"type":"integer"},"notYetObserved":{"type":"integer"},"medianSampleSize":{"type":"integer"},"rolloutBaselineRevisions":{"type":"integer"},"observedMedianSeconds":{"type":["number","null"]},"revisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer"},"publishedAt":{"type":"string","format":"date-time"},"basis":{"enum":["eligible_transition","rollout_baseline"]},"firstSeenAt":{"type":["string","null"],"format":"date-time"},"latencySeconds":{"type":["number","null"]},"observedFetches":{"type":"integer"}}}}}}}}},"appId":{"type":"string"},"window":{"type":"object","additionalProperties":false,"required":["days","from","through"],"properties":{"days":{"type":"integer","minimum":1,"maximum":90},"from":{"type":"string","format":"date-time"},"through":{"type":"string","format":"date-time"}}},"totalHits":{"type":"integer","minimum":0},"history":{"type":"object","additionalProperties":false,"required":["timezone","daily"],"properties":{"timezone":{"const":"UTC"},"daily":{"type":"array","minItems":1,"maxItems":90,"items":{"type":"object","additionalProperties":false,"required":["date","hitCount","complete"],"properties":{"date":{"type":"string","format":"date"},"hitCount":{"type":"integer","minimum":0},"complete":{"type":"boolean"}}}}}},"trend":{"anyOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["periodDays","current","previous","change","percentChange"],"properties":{"periodDays":{"const":7},"current":{"$ref":"#/components/schemas/CrawlerTrendPeriod"},"previous":{"$ref":"#/components/schemas/CrawlerTrendPeriod"},"change":{"type":"integer"},"percentChange":{"type":["number","null"]}}}]},"crawlers":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["provider","agent","purpose","verificationState","hitCount","firstSeenAt","lastSeenAt","surfaces"],"properties":{"provider":{"enum":["openai","anthropic","google","meta","xai","bing","other"]},"agent":{"type":"string"},"purpose":{"enum":["search","user","training","preview","unknown"]},"verificationState":{"enum":["declared","provider_verified"]},"hitCount":{"type":"integer","minimum":1},"firstSeenAt":{"type":"string","format":"date-time"},"lastSeenAt":{"type":"string","format":"date-time"},"surfaces":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["surface","hitCount"],"properties":{"surface":{"type":"string"},"hitCount":{"type":"integer","minimum":1}}}}}}}}},"CrawlerTrendPeriod":{"type":"object","additionalProperties":false,"required":["from","through","totalHits"],"properties":{"from":{"type":"string","format":"date"},"through":{"type":"string","format":"date"},"totalHits":{"type":"integer","minimum":0}}}}},"paths":{"/v1/publishers/{publisherId}/apps":{"get":{"operationId":"getPublisherAppDirectory","tags":["Public index"],"summary":"List independently authorized public apps on a shared publisher website","description":"No-store, maximum 50 entries per page. Exact workspace and HTTPS origin scope. Follow next even if an intermediate apps array is empty. No combined packet; membership never grants authority. Revocation, expiry, transfer and publication changes are evaluated on reads.","parameters":[{"name":"publisherId","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"website","in":"query","required":true,"schema":{"type":"string"},"description":"Exact HTTPS origin without trailing slash, credentials, port, query or fragment"},{"name":"after","in":"query","schema":{"type":"string","maxLength":200}},{"name":"appId","in":"query","schema":{"type":"string","maxLength":200},"description":"Optional exact app member filter"}],"responses":{"200":{"description":"Current publisher directory page","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"protocol":{"type":"string","const":"bluejetty.publisher-directory"},"version":{"type":"string","const":"1.0"},"publisher":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"websiteOrigin":{"type":"string","maxLength":2048}},"required":["id","websiteOrigin"],"additionalProperties":false},"apps":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"platforms":{"type":"array","items":{"type":"string","enum":["ios","android"]}},"packetJson":{"type":"string","format":"uri"},"packetMarkdown":{"type":"string","format":"uri"},"authority":{"type":"object","properties":{"status":{"type":"string","const":"verified"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"validUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["status","checkedAt","validUntil"],"additionalProperties":false}},"required":["id","name","url","platforms","packetJson","packetMarkdown","authority"],"additionalProperties":false}},"next":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["protocol","version","publisher","apps","next"],"additionalProperties":false}}}},"400":{"description":"Invalid publisher ID or query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agency/candidates":{"get":{"operationId":"listAgencyCandidates","description":"Scope agency.candidates.read. List live private candidates in this key's workspace. nextCursor is a candidate UUID for before; items are ordered newest first. Expired/deleted items are excluded. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"before","in":"query","schema":{"type":"string","format":"uuid"}}]},"post":{"operationId":"createAgencyCandidate","description":"Scope agency.candidates.manage and current agency owner required. Start one bounded website analysis, or return the existing-public-app access-request action. No invitation is sent and no app is published. Same idempotency key and normalized links replay the prior candidate without fetching again. Limits: 20 starts per rolling day, 100 retained active candidates, 3 concurrent starts per workspace, 30-day private retention. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"201":{"description":"Created private candidate; inspect result and nextAction"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 8192 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["publisherWebsiteUrl"],"anyOf":[{"required":["iosStoreUrl"]},{"required":["androidStoreUrl"]}],"properties":{"publisherWebsiteUrl":{"type":"string","format":"uri","maxLength":2048},"iosStoreUrl":{"type":"string","format":"uri","maxLength":2048},"androidStoreUrl":{"type":"string","format":"uri","maxLength":2048}}}}}}}},"/v1/agency/candidates/{candidateId}":{"get":{"operationId":"readAgencyCandidate","description":"Scope agency.candidates.read. Read one private candidate, its source-grounded draft or access-request/review/failure action. An interrupted execution requires a new analysis request; it is not silently retried. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]},"delete":{"operationId":"deleteAgencyCandidate","description":"Scope agency.candidates.manage and current agency owner required. Erase retained intake and analysis result immediately. A minimal request-key/hash tombstone remains for idempotency and quota enforcement. Cancellation prevents an in-flight result from restoring the candidate. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/agency/candidates/{candidateId}/review.md":{"get":{"operationId":"downloadAgencyCandidateReview","description":"Scope agency.candidates.read. Download the private app draft and agent-review instructions. Only available when analysis produced a review draft. Publisher approval, submission and verification remain separate actions. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Private downloadable agent review","content":{"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/agency/invitations":{"get":{"operationId":"listAgencyInvitations","description":"Returns data with id, email (null for internally resolved app-owner requests), appRequest, state, createdAt and expiresAt; nextCursor is null or the UUID to send as before. Newest-first keyset pagination. Requires current agency owner membership and agency.invitations.manage on an agy_ key. Workspace identity comes from the key. Agency keys cannot approve publisher consent or submit app packets. Rollout remains gated. Responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized invitation page"},"400":{"description":"Invalid command or workspace cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Current owner and scope required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invitation unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invitation resolved or app request must be refreshed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invitation limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"before","in":"query","schema":{"type":"string","format":"uuid"}}]},"post":{"operationId":"manageAgencyInvitations","description":"Invite, resend or cancel. Same 202 accepted acknowledgement for queued, suppressed and duplicate invitations; no registration or delivery assertion and no tokens returned. Recipient, sender and workspace limits/cooldowns apply across browser and API. Requires current agency owner membership and agency.invitations.manage on an agy_ key. Workspace identity comes from the key. Agency keys cannot approve publisher consent or submit app packets. Rollout remains gated. Responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized invitation page"},"202":{"description":"Request handled: data.accepted is true; delivery is independent"},"400":{"description":"Invalid command or workspace cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Current owner and scope required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invitation unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invitation resolved or app request must be refreshed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invitation limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["action","email"],"properties":{"action":{"const":"invite"},"email":{"type":"string","format":"email","maxLength":254}}},{"type":"object","additionalProperties":false,"required":["action","invitationId"],"properties":{"action":{"enum":["resend","cancel"]},"invitationId":{"type":"string","format":"uuid"}}}]}}}}}},"/v1/agency/candidates/{candidateId}/request-access":{"post":{"operationId":"requestAgencyAppAccess","description":"Also requires agency.candidates.read. Re-resolve the candidate's exact public app identity and current owner, then request approval. The owner email stays private. Request handling grants no access; the publisher approves exact app IDs. Requires current agency owner membership and agency.invitations.manage on an agy_ key. Workspace identity comes from the key. Agency keys cannot approve publisher consent or submit app packets. Rollout remains gated. Responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized invitation page"},"202":{"description":"Request received, already shared, client app approval required, or identity review needed; inspect data.status and data.message"},"400":{"description":"Invalid command or workspace cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Current owner and scope required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invitation unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invitation resolved or app request must be refreshed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invitation limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/agency/purchase-quotes":{"get":{"operationId":"readAgencyPurchaseOptions","description":"Sandbox release-gated. Requires current agency owner and agency.licenses.manage. Returns the existing enrollmentId (null if payer setup is pending), up to 500 sponsored platform choices, currentPlatformIds that must be retained for additions, and truncated. Payment dispatch eligibility is separate. Does not create payer accounts or purchases. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"prepareAgencyPurchaseQuote","description":"Sandbox release-gated. Requires current agency owner and agency.licenses.manage. Prepare a private server-priced quote from existing enrollmentId and platformIds. Returns data.state=review_required, private token/quoteHash and summary with quantity, exact currency minor-unit amounts due now and monthly, expiry, addition flag and named assignments. Token expires after five minutes and is owner-bound. Never put tokens in URLs or public packets. Agency keys cannot approve or dispatch payment; the owner must review and confirm through their authenticated account session. Requesting a quote creates no charge and reserves no coverage. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 32768 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["enrollmentId","platformIds"],"properties":{"enrollmentId":{"type":"string","format":"uuid"},"platformIds":{"type":"array","minItems":1,"maxItems":500,"uniqueItems":true,"items":{"type":"string","format":"uuid"}}}}}}}}},"/v1/agency/licenses":{"get":{"operationId":"listAgencySponsoredLicenses","description":"Sandbox release-gated. Requires agency.licenses.manage and current payer-owner membership; existing read/analytics keys gain no access. Returns up to 50 current payer-owned license assignments with licenseId, enrollmentId, appId, appName, platformId, platform, coverageEndsAt and canRequestTransfer. The latter is a hint; preview verifies current consent, funding and occupancy. No Stripe customer, invoice or payment-method data. nextCursor is a license ID. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"before","in":"query","schema":{"type":"string","minLength":1,"maxLength":100}}]}},"/v1/agency/handovers":{"get":{"operationId":"readAgencyPaymentHandovers","description":"Sandbox release-gated. Requires agency.licenses.manage and current payer-owner membership. Returns this workspace's incoming payment handovers and eligible source licenses whose outgoing renewal cancellation is scheduled. Responses include state, effectiveAt, platform, paidThrough and issueCode. Scheduled means a future arrangement, not paid coverage. Incoming payment approval requires an owner session in the dashboard; API keys cannot approve future spending. A separate subscription begins at the outgoing paid-through boundary, using the incoming payer's own payment method. Current app ownership and sponsorship permissions are independently checked. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agency/licenses/renewal":{"post":{"operationId":"cancelAgencyLicenseRenewal","description":"Sandbox release-gated. Requires agency.licenses.manage and current payer-owner membership. Explicitly cancel renewal of selected licenses on one enrollment at their existing paid-through boundary; remaining licenses retain funding. Read enrollmentRevision from GET /v1/agency/licenses and send it as expectedRevision. Requires confirmed=true after explaining the selected app/platform and coverage-end date. No charge or refund is created. A queued or needs_attention result means the intent is saved but Stripe scheduling is not confirmed; inspect renewalChangeStatus on the license listing. A 409 requires rereading current state, not a blind retry. A scheduled change may be extended to further licenses before the boundary, with a fresh revision and confirmation. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 64000 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["enrollmentId","licenseIds","expectedRevision","confirmed"],"properties":{"enrollmentId":{"type":"string","format":"uuid"},"licenseIds":{"type":"array","minItems":1,"maxItems":500,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":100}},"expectedRevision":{"type":"integer","minimum":0},"confirmed":{"const":true}}}}}}}},"/v1/agency/licenses/transfers":{"post":{"operationId":"manageAgencyLicenseTransfer","description":"Sandbox release-gated. Requires agency.licenses.manage and current payer-owner membership. Preview names the exact source and destination, explains immediate source-platform premium loss (including existing pilot fallback when applicable), remaining funded time and one transfer per funded period. Obtain explicit user confirmation before commit. No new charge. Token is private, bound to the actor and expires after five minutes; retain the exact token/hash for retry after an uncertain response. Same committed token replays once. A 409 requires a new preview and confirmation. At most 20 unexpired previews per enrollment. The license-control flag must also be enabled; otherwise 404. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Send application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["action","enrollmentId","licenseId","targetPlatformId"],"properties":{"action":{"const":"preview"},"enrollmentId":{"type":"string","format":"uuid"},"licenseId":{"type":"string","minLength":1,"maxLength":100},"targetPlatformId":{"type":"string","format":"uuid"}}},{"type":"object","additionalProperties":false,"required":["action","token","previewHash","confirmed"],"properties":{"action":{"const":"commit"},"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"previewHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"confirmed":{"const":true}}}]}}}}}},"/v1/agency/analytics":{"get":{"operationId":"readAgencyPortfolioAnalytics","description":"Scope agency.analytics.read; current agency owners and members may read. Up to 50 explicitly shared app rows per page; only beneficiary-eligible apps contribute data and totalHits. coverage.scope is page, with sharedApps, includedApps and excludedApps; totals are not a whole-portfolio total. Existing portfolio.read keys do not gain analytics access. App-wide observations combine platforms, and declared crawler identities are not verified provider adoption. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"name":"view","in":"query","schema":{"type":"string","enum":["aggregate","detailed"],"default":"detailed"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"before","in":"query","schema":{"type":"string","maxLength":100}}]}},"/v1/agency/apps/{appId}/crawler-activity":{"get":{"operationId":"readAgencyAppCrawlerActivity","description":"Scope agency.analytics.read. Current exact app consent and client paid/pilot analytics eligibility are checked before loading counts. Returns data with one app, coverage and totalHits; unshared/unknown apps return 404, shared but ineligible apps return 403. History includes UTC daily counts and complete-day trends. No publisher content or billing details returned. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string","maxLength":100}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"name":"view","in":"query","schema":{"type":"string","enum":["aggregate","detailed","history"],"default":"detailed"}}]}},"/v1/agency/portfolio":{"get":{"operationId":"listAgencyPortfolio","description":"Scope agency.portfolio.read; current agency members may read. Returns data containing explicitly consented app identities, client name, connection version, active-platform coverage and analytics eligibility. Beneficiary paid/pilot access applies; agency pilot access cannot qualify clients. No crawler counts or private packet contents returned. nextCursor is an app ID, descending stable ID order. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"before","in":"query","schema":{"type":"string","maxLength":100}}]}},"/v1/agency/clients":{"get":{"operationId":"listAgencyReviewClients","description":"Scope agency.portfolio.read and current agency owner. List active connected publishers eligible for draft sharing, including zero-app connections. Returns id (connection ID), publisherName, version and nextCursor. Maximum 50 per page in descending UUID order. No publisher emails, invoices or unshared app identities. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"before","in":"query","schema":{"type":"string","format":"uuid"}}]}},"/v1/agency/candidates/{candidateId}/revisions":{"get":{"operationId":"readAgencyCandidateRevision","description":"Scope agency.candidates.read. Read latest immutable review revision, or version 0 when no revision exists. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]},"post":{"operationId":"saveAgencyCandidateRevision","description":"Scope agency.candidates.manage and agency owner. Save a validated inline onboarding input, pinned to expectedVersion. Same previous version plus identical normalized input replays the result. Maximum 10 revisions and 256000 input bytes. Website and store identities must match the original intake. No app is created. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["expectedVersion","input"],"properties":{"expectedVersion":{"type":"integer","minimum":0},"input":{"type":"object","description":"Inline onboarding preview input; records required, discovery disallowed. See /v1/onboarding/preview. Original platform/store identities must be retained."}}}}}}}},"/v1/agency/candidates/{candidateId}/shares":{"post":{"operationId":"shareAgencyCandidateRevision","description":"Scope agency.candidates.manage and agency owner. Share an exact revision with an active publisher connection at its current consent version. Idempotent for that revision/connection/version. Candidate expiry applies; disconnect invalidates unapproved shares. Maximum 100 shares per candidate. Agency rollout is gated; returns 503 until enabled. Requires an expiring agy_ credential with the specified scope; publisher credentials are not accepted. All responses are private/no-store and noindex.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Authorized private candidate result"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Current agency key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope, role or legal acceptance required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace or candidate unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or no review draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Idempotency request expired or deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Candidate quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["revisionId","connectionId","expectedConnectionVersion"],"properties":{"revisionId":{"type":"string","format":"uuid"},"connectionId":{"type":"string","format":"uuid"},"expectedConnectionVersion":{"type":"integer","minimum":1}}}}}}}},"/v1/agency-reviews":{"get":{"operationId":"listPublisherAgencyReviews","description":"List up to 50 available shared-review metadata rows. nextCursor is null or a share UUID for before. Stable descending UUID order; list omits draft contents. Requires a current publisher-owner idx_ key and current legal acceptance. Agency keys cannot perform this action. Private/no-store and noindex; agency rollout flag applies.","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Private publisher review result"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Publisher API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review, draft or publisher workspace unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision or consent changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Draft expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Approval body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Publisher retained draft limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"before","in":"query","schema":{"type":"string","format":"uuid"}}]},"post":{"operationId":"adoptPublisherAgencyReview","description":"Explicitly approve the exact content hash and retain an independent publisher-owned draft for 30 days. Returns draftId and publisher_submission_required. This does not submit or publish an app or grant agency access to a future app. Repeated approval returns the same draft; up to 100 active drafts per publisher. Requires a current publisher-owner idx_ key and current legal acceptance. Agency keys cannot perform this action. Private/no-store and noindex; agency rollout flag applies.","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Private publisher review result"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Publisher API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review, draft or publisher workspace unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision or consent changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Draft expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Approval body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Publisher retained draft limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["shareId","expectedHash","approved"],"properties":{"shareId":{"type":"string","format":"uuid"},"expectedHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approved":{"const":true}}}}}}}},"/v1/agency-reviews/{shareId}":{"get":{"operationId":"readPublisherAgencyReview","description":"Inspect the exact proposed input, revision and hash before approving. Publisher approval is required even if an agency prepared the input. Requires a current publisher-owner idx_ key and current legal acceptance. Agency keys cannot perform this action. Private/no-store and noindex; agency rollout flag applies.","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Private publisher review result"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Publisher API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review, draft or publisher workspace unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision or consent changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Draft expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Approval body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Publisher retained draft limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"shareId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/publisher-drafts/{draftId}":{"get":{"operationId":"readPublisherAgencyDraft","description":"Download the adopted input, validated submission and provenance. Submit separately through publisher onboarding, preserving existing-app publication preconditions. Verify ownership and all website-discovery mechanisms; inspect completionReport. Agency deletion or disconnect does not erase this publisher-owned copy. Requires a current publisher-owner idx_ key and current legal acceptance. Agency keys cannot perform this action. Private/no-store and noindex; agency rollout flag applies.","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Private publisher review result"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Publisher API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review, draft or publisher workspace unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision or consent changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Draft expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Approval body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Publisher retained draft limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/publisher-drafts/{draftId}/onboarding.md":{"get":{"operationId":"downloadPublisherAgencyDraftGuide","description":"Private Markdown onboarding handoff with the exact approved submission, source revision/hash and current publisher submission, authorization, website-discovery and completion-report instructions. Requires a current publisher-owner idx_ key and current legal acceptance. Agency keys cannot perform this action. Private/no-store and noindex; agency rollout flag applies.","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Private onboarding Markdown","content":{"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Publisher API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Review, draft or publisher workspace unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision or consent changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Draft expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Approval body exceeds 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Publisher retained draft limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/agency/workspace":{"get":{"tags":["Operations"],"operationId":"getAgencyWorkspace","summary":"Read the agency workspace bound to an agency key","description":"Requires agency.workspace.read and current membership. Returns 503 while the agency rollout is disabled. Does not return client apps, analytics or publisher permissions.","security":[{"agencyApiKey":[]}],"responses":{"200":{"description":"Private workspace identity and current role/scopes","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","name","kind","role","scopes"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"kind":{"const":"agency"},"role":{"enum":["owner","member"]},"scopes":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Missing, expired, revoked or wrong-audience credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Required agency scope is missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Workspace is no longer available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Agency rollout is disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publication":{"get":{"operationId":"getOwnedPublication","tags":["Publisher"],"summary":"Read the current publication version, private app/source preview and history","description":"Returns version, etag (canonical If-Match token), revisionId, app, sources, current authorization, publicationEligible, retention.maxRevisions=100, and up to 20 immutable revision summaries. Public intent plus current authorization is necessary for publication; a nonempty corpus is also required by public catalog routes. Legacy records have version 0 and revisionId null until their first successful mutation records a baseline.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":100,"default":0}}],"responses":{"200":{"description":"Owner-only result; private, no-store. Publisher assertions and current observations are separate.","headers":{"X-BlueJetty-Publication-ETag":{"description":"Canonical publication token; copy this value into If-Match","schema":{"type":"string"}},"ETag":{"description":"Transport validator may be weakened by a CDN; use X-BlueJetty-Publication-ETag or data.etag for writes","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publication/revisions/{revisionId}":{"get":{"operationId":"getOwnedPublicationRevision","tags":["Publisher"],"summary":"Read historical publisher assertions, compare to active revision, or stream a complete export","description":"JSON returns id, appId, version, contentHash (SHA-256 of canonical assertions), parent/restored-from IDs, actorId, reason, createdAt, assertions.app, assertions.sources, active, and diffFromActive. Source references include immutable snapshotArchiveId. export=jsonl streams one publication_revision line followed by source_record lines containing sourceId, snapshotArchiveId and the raw profile record. Evidence, authority, billing and account state are excluded from restorable assertions.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"export","in":"query","schema":{"enum":["jsonl"]}}],"responses":{"200":{"description":"Owner-only result; private, no-store. Publisher assertions and current observations are separate.","headers":{"X-BlueJetty-Publication-ETag":{"description":"Canonical publication token; copy this value into If-Match","schema":{"type":"string"}},"ETag":{"description":"Transport validator may be weakened by a CDN; use X-BlueJetty-Publication-ETag or data.etag for writes","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publication/revisions/{revisionId}/restore":{"post":{"operationId":"restoreOwnedPublicationRevision","tags":["Publisher"],"summary":"Restore app assertions and source snapshots as a new complete revision","description":"Requires the current publication If-Match. Revalidates configuration, platform and capability access. Restores retained app metadata, configuration and full source contents atomically, including historical deletions. Preserves current account/billing and store observations; old verification evidence cannot become current. Identity changes revoke current authorization. A successful restore returns data.publication (version, revisionId, contentHash) and data.data (restoredFromRevisionId, configurationRevisionId, nextAction). After an ambiguous response, read history to confirm the result before retrying.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"responses":{"200":{"description":"Owner-only result; private, no-store. Publisher assertions and current observations are separate.","headers":{"X-BlueJetty-Publication-ETag":{"description":"Canonical publication token; copy this value into If-Match","schema":{"type":"string"}},"ETag":{"description":"Transport validator may be weakened by a CDN; use X-BlueJetty-Publication-ETag or data.etag for writes","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unavailable or unauthorized request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/configuration/preview":{"post":{"operationId":"previewOwnedConfigurationHandoff","tags":["Publisher"],"summary":"Preview a draft handoff without publishing or fetching a provider URL","description":"Owner-only, private/no-store, 256,000-byte maximum. Validates schema and semantic references and uses production selection/decoration. Does not activate, check platform registration, verify device behavior or inherit active-revision evidence.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["configuration","intent","platform"],"properties":{"configuration":{"$ref":"#/components/schemas/AppConfiguration"},"intent":{"type":"string","minLength":1,"maxLength":100},"platform":{"enum":["ios","android","web"]},"installState":{"enum":["installed","uninstalled","unknown"],"default":"unknown"},"consumer":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}}}}},"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/configuration/monitor":{"post":{"operationId":"monitorOwnedConfigurationExecution","tags":["Publisher"],"summary":"Record one bounded HTTP observation for an active execution","description":"HEAD only, DNS-pinned public address, no redirects, no body retention, 3-second request deadline. Up to 20 checks per app per minute. HTTP observations never imply installed-device, deferred-link, or attribution proof.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["destinationId","executionId","expectedActiveRevisionId"],"properties":{"destinationId":{"type":"string"},"executionId":{"type":"string"},"expectedActiveRevisionId":{"type":"string"}}}}}},"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/configuration":{"get":{"operationId":"getOwnedAppConfiguration","tags":["Publisher"],"summary":"Export the active managed configuration and revision ID","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/revisions":{"get":{"operationId":"listOwnedAppRevisions","tags":["Publisher"],"summary":"List immutable revision metadata","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}}],"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"stageOwnedAppRevision","tags":["Publisher"],"summary":"Validate and stage an immutable configuration (does not publish)","description":"Maximum 256,000 bytes. Cross-reference, unique-ID, safe-public-link and promotion-window semantics are enforced in addition to the portable schema. Idempotency-Key replay must have identical normalized content and expected revision.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["configuration","expectedActiveRevisionId"],"properties":{"configuration":{"$ref":"#/components/schemas/AppConfiguration"},"expectedActiveRevisionId":{"type":["string","null"],"description":"Last observed active revision ID; null before the first activation."}}}}}},"responses":{"201":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/revisions/{revisionId}":{"get":{"operationId":"getOwnedAppRevision","tags":["Publisher"],"summary":"Export a revision and its field-level diff from the current configuration","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"activateOrRestoreOwnedAppRevision","tags":["Publisher"],"summary":"Activate a staged revision or restore an old version as a new revision","description":"Activation atomically checks expectedActiveRevisionId. Restore requires Idempotency-Key and preserves history. This versions managed discovery configuration, not entity-feed inventory or app identity.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["action","expectedActiveRevisionId"],"properties":{"action":{"enum":["activate","restore"]},"expectedActiveRevisionId":{"type":["string","null"],"description":"Last observed active revision ID; null before the first activation."}}}}}},"responses":{"200":{"description":"Owner-only configuration or revision result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/handoff":{"get":{"operationId":"resolveAppIntentHandoff","tags":["Discovery"],"summary":"Resolve an intent to its publisher-approved platform destination","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"intent","in":"query","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","schema":{"enum":["ios","android","web"],"default":"web"}},{"name":"install_state","in":"query","schema":{"enum":["installed","uninstalled","unknown"],"default":"unknown"}},{"name":"consumer","in":"query","schema":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}],"responses":{"200":{"description":"Intent, semantic destination and preferred execution with declared attribution context"},"400":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, missing, stale, oversized, unsupported-platform, or rate-limited request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/playables/revisions/{revisionId}":{"get":{"operationId":"exportOwnedPlayableRevision","tags":["Publisher"],"summary":"Export the exact inspected package for private local review","description":"Authenticated JSON containing the original package as base64 and the server validation report. No executable response, public upload URL or automatic execution. Review in an isolated local environment; publisher confirmation still requires explicit human approval. Current ownership is checked before and after storage reads.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Owner-only result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/playable":{"get":{"operationId":"getPublicPlayable","tags":["Discovery"],"summary":"Check optional publisher demo availability without downloading game bytes","description":"Anonymous. Returns 404 for absent, disabled or ineligible demos. The independent descriptor leaves packet 0.1/0.2 bodies unchanged. A related Link header is an availability lookup, not evidence that a demo exists. Only the player follows current publisher-preferred download links, after explicit user action.","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Current approved demo; no-store","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"string","const":"0.1"},"appId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"revisionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"packageHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":1200},"playerUrl":{"type":"string","pattern":"^https:\\/\\/bluejetty\\.ai\\/playables\\/apps\\/[A-Za-z0-9_-]{1,200}$"},"controls":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["keyboard","pointer","touch"]}},"orientation":{"type":"string","enum":["responsive","portrait","landscape"]},"deviceSupport":{"type":"string","enum":["all","mobile_only"]},"validUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"provenance":{"type":"string","const":"publisher_authorized"}},"required":["version","appId","revisionId","packageHash","title","description","playerUrl","controls","orientation","deviceSupport","validUntil","provenance"],"additionalProperties":false}}}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/playables":{"delete":{"operationId":"withdrawOwnedPlayable","tags":["Publisher"],"summary":"Stop public demo delivery while retaining revision history","description":"Owner-authorized withdrawal remains available after Growth expiry. Supply the current publication version. This does not delete stored files or retract already downloaded bytes.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483646}},"required":["expectedVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Owner-only result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"getOwnedPlayableStatus","tags":["Publisher"],"summary":"Inspect playable revisions and processing jobs","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owner-only result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"uploadOwnedPlayable","tags":["Publisher"],"summary":"Queue an optional prepared HTML5 demo for inspection","description":"Requires current app authority and ongoing Growth or eligible independent pilot coverage. Maximum decoded upload 2,800,000 bytes; canonical base64 inside a JSON body of at most 3,800,000 bytes. HTML or ZIP only. A 202 response queues inspection and never publishes. Poll GET; review the exact revision before confirming. Independent approval remains required. Feature may return 404 while disabled.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["filename","contentBase64","idempotencyKey","expectedVersion"],"properties":{"filename":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,119}\\.(html|zip)$"},"contentBase64":{"type":"string","contentEncoding":"base64","minLength":4,"maxLength":3733336},"manifest":{},"idempotencyKey":{"type":"string","format":"uuid"},"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483646}}}}}},"responses":{"202":{"description":"Owner-only result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer","example":5}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/playables/reviews":{"post":{"operationId":"confirmOwnedPlayable","tags":["Publisher"],"summary":"Confirm rights, fidelity and exposure for an exact inspected revision","description":"Publisher confirmation does not create an independent approval or publish. Exact hash, distribution settings, current version and an idempotency key are required.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revisionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"packageHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483646},"idempotencyKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"distribution":{"type":"object","properties":{"arcade":{"type":"boolean"},"embedOrigins":{"maxItems":8,"type":"array","items":{"type":"string","maxLength":300}}},"required":["arcade","embedOrigins"],"additionalProperties":false},"previewedExactRevision":{"type":"boolean","const":true},"publicContentAccurate":{"type":"boolean","const":true},"rightsConfirmed":{"type":"boolean","const":true},"exposureApproved":{"type":"boolean","const":true},"gameplayRepresentative":{"type":"boolean","const":true}},"required":["revisionId","packageHash","expectedVersion","idempotencyKey","distribution","previewedExactRevision","publicContentAccurate","rightsConfirmed","exposureApproved","gameplayRepresentative"],"additionalProperties":false}}}},"responses":{"201":{"description":"Owner-only result; private, no-store","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object"}}}}}},"400":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Invalid, unauthorized, stale, over-limit or unavailable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/authorization":{"get":{"operationId":"getPublisherAuthorization","tags":["Publisher"],"summary":"Read current app authorization and audit summary","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owner-only safe status, reason, current version, challenge ID/expiry, recent audit events and publisherAuthorization. Does not return a token or digest.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"publisherAuthorization":{"$ref":"#/components/schemas/PublisherAuthorization"},"version":{"type":"integer","minimum":0,"maximum":2147483646},"status":{"enum":["verified","unverified"]},"reason":{"type":["string","null"]},"agentInstructions":{"type":"object","description":"Verification responses direct agents to read current owner status and deliver a completion report; verification success alone is not full onboarding.","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"401":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"403":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"404":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"409":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"413":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"422":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"429":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"}}},"post":{"operationId":"issuePublisherAuthorization","tags":["Publisher"],"summary":"Issue a scoped HTTPS designation for an owned app","description":"Requires current expectedVersion (0 before first issue). Returns one-time proof file, exact fileUrl, challengeId, version, expiresAt and instructions. Replaces prior proof; no token is recoverable from GET. Five issue/check operations per app per minute. Domain control and every platform's independent app-domain relationship must both pass.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["expectedVersion"],"properties":{"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483646}}}}}},"responses":{"201":{"description":"One-time designation JSON and fileUrl; save securely; private/no-store"},"400":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"401":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"403":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"404":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"409":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"413":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"422":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"429":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"}}},"delete":{"operationId":"revokePublisherAuthorization","tags":["Publisher"],"summary":"Revoke authorization and release this record's identity claims","description":"Requires current expectedVersion; preserves app data and revisions. A later claim requires fresh proof. No implicit reassignment from an expired check.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["expectedVersion"],"properties":{"expectedVersion":{"type":"integer","minimum":0,"maximum":2147483646}}}}}},"responses":{"200":{"description":"Owner-only safe status, reason, current version, challenge ID/expiry, recent audit events and publisherAuthorization. Does not return a token or digest.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"publisherAuthorization":{"$ref":"#/components/schemas/PublisherAuthorization"},"version":{"type":"integer","minimum":0,"maximum":2147483646},"status":{"enum":["verified","unverified"]},"reason":{"type":["string","null"]},"agentInstructions":{"type":"object","description":"Verification responses direct agents to read current owner status and deliver a completion report; verification success alone is not full onboarding.","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"401":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"403":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"404":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"409":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"413":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"422":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"429":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"}}}},"/v1/apps/{appId}/authorization/verify":{"post":{"operationId":"verifyPublisherAuthorization","tags":["Publisher"],"summary":"Verify or revalidate the exact current publisher designation","description":"Server fetches the HTTPS proof with pinned DNS, no redirects and bounded bytes/time; independently corroborates app-store identity to website. A website self-declaration alone remains unverified. Current authorization expires after 24 hours without successful revalidation. Every completed check advances the version; concurrent or stale checks return 409. A 422 response includes the safe status/reason for remediation.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["expectedVersion","challengeId"],"properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":2147483646},"challengeId":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"Owner-only safe status, reason, current version, challenge ID/expiry, recent audit events and publisherAuthorization. Does not return a token or digest.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"publisherAuthorization":{"$ref":"#/components/schemas/PublisherAuthorization"},"version":{"type":"integer","minimum":0,"maximum":2147483646},"status":{"enum":["verified","unverified"]},"reason":{"type":["string","null"]},"agentInstructions":{"type":"object","description":"Verification responses direct agents to read current owner status and deliver a completion report; verification success alone is not full onboarding.","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"401":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"403":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"404":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"409":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"413":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"},"422":{"description":"Owner-only safe status, reason, current version, challenge ID/expiry, recent audit events and publisherAuthorization. Does not return a token or digest.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"publisherAuthorization":{"$ref":"#/components/schemas/PublisherAuthorization"},"version":{"type":"integer","minimum":0,"maximum":2147483646},"status":{"enum":["verified","unverified"]},"reason":{"type":["string","null"]},"agentInstructions":{"type":"object","description":"Verification responses direct agents to read current owner status and deliver a completion report; verification success alone is not full onboarding.","properties":{"statusUrl":{"type":"string"},"authorizationUrl":{"type":"string"},"instruction":{"type":"string"}}}}}}}}}},"429":{"description":"Invalid, unauthorized, stale, unsupported, or rate-limited request; private/no-store"}}}},"/health":{"get":{"operationId":"getHealth","tags":["Operations"],"summary":"Check application, database, and API-key issuance readiness","responses":{"200":{"description":"Database connected, required schema ready, and API-key issuance configured"},"503":{"description":"Not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/onboarding/preview":{"post":{"operationId":"previewPublisherOnboarding","tags":["Publisher"],"summary":"Generate a no-write submission draft before an app exists","description":"Accepts the smallest mobile app identity plus either publisher-controlled sitemap discovery or existing profile entities. Returns a complete submission body and normalized validation preview without writing application data.","security":[{"bearerApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPreviewRequest"}}}},"responses":{"200":{"description":"Generated and validated draft; mutationPerformed is false"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Preview request exceeds the configured limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Discovery domain or generated contract is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/validate":{"post":{"operationId":"validatePublisherSubmission","tags":["Publisher"],"summary":"Validate and normalize-preview a submission without writing data","description":"Accepts the exact POST /v1/submissions body. Returns stable derived identifiers, per-record warnings, and up to 20 normalized selection records. It never creates or updates an app, source, or entity.","security":[{"bearerApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionRequest"}}}},"responses":{"200":{"description":"Valid submission preview; mutationPerformed is false"},"400":{"description":"Malformed JSON or request shape","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request or inline entity count exceeds the configured limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Manifest, feed selection, or snapshot is not conformant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/submissions":{"post":{"operationId":"submitPublisherCatalog","tags":["Publisher"],"summary":"Register a manifest and optionally ingest its first snapshot","description":"Idempotently resolves the owned app and selected manifest feed. A push feed requires an inline full snapshot; a pull feed may be refreshed separately. Set publication visibility to sample to retain a non-production catalog without exposing it to public discovery. Inline requests default to 4 MB and 1,000 entities, below Vercel's 4.5 MB Function payload ceiling. Updating an existing app requires If-Match; first creation and completed idempotency replay do not. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Use a new key for each intended mutation; safely reuse it only with the identical body.","schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._~-]+$"},"example":"my-app-initial-20260903"},{"name":"If-Match","in":"header","required":false,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionRequest"},"example":{"manifest":{"$schema":"https://bluejettyai.com/schemas/v0.1/manifest.schema.json","specVersion":"0.1","publisher":{"id":"com.example.harbor","name":"Example Harbor, Inc.","domain":"harbor.example"},"app":{"name":"Harbor Guide","publisherWebsiteUrl":"https://harbor.example/","identifiers":[{"platform":"ios","value":"com.example.harbor.guide"}]},"feeds":[{"id":"places","delivery":"push","mediaType":"application/json","mode":"snapshot","entitySchemaVersion":"0.1"}]},"snapshot":{"specVersion":"0.1","mode":"snapshot","snapshotId":"initial","generatedAt":"2026-09-03T18:00:00Z","records":[]},"publication":{"publicSelectionMetadata":true}}}}},"responses":{"201":{"description":"Pull source registered; call the returned refresh URL","headers":{"Idempotency-Replayed":{"$ref":"#/components/headers/IdempotencyReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResponse"}}}},"202":{"description":"Inline snapshot ingested","headers":{"Idempotency-Replayed":{"$ref":"#/components/headers/IdempotencyReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResponse"}}}},"400":{"description":"Malformed JSON or idempotency header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict or submission still processing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Body or inline entity count exceeds the configured limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Manifest, feed selection, or snapshot is not conformant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key submission rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/v1/apps":{"get":{"operationId":"listPublicApps","tags":["Public index"],"summary":"List compact app identities and packet URLs","description":"Read meta.format. The packet-only view is bluejetty.packet_index/1. Where enabled, the default and view=index use bluejetty.app_index/3 with public IDs, jsonUrl and explicit freshness scopes. format=2 retains bluejetty.app_index/2. Follow meta.next or HTTP Link rel=next. view=packets preserves legacy app-ID cursors; view=records preserves detailed offset pagination. Mixed pages are bounded to approximately 128 KiB. See /developers/app-index.md.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"format","in":"query","schema":{"type":"string","enum":["2","3"],"default":"3"},"description":"Mixed index format; 3 adds public IDs, JSON record links and explicit freshness scopes."},{"name":"after","in":"query","schema":{"type":"string"},"description":"Legacy packet-only app ID cursor"},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":512},"description":"Opaque version-2 snapshot cursor, obtained from meta.next"},{"name":"view","in":"query","schema":{"type":"string","enum":["records","packets","index"]},"description":"Explicit representation selection"},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0},"description":"Legacy records view only"}],"responses":{"200":{"description":"Paginated app pointers, meta.count/limit/next. Version 2 uses components/schemas/AppIndexV2.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid pagination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Requested mixed index not enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"BJ_INDEX_RESTART_REQUIRED: restart traversal without cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createAppLegacy","tags":["Publisher"],"summary":"Register an app using the lower-level workflow","description":"Prefer POST /v1/submissions for new integrations.","security":[{"bearerApiKey":[]}],"responses":{"201":{"description":"Created"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/changes":{"get":{"operationId":"listPublicAppChanges","tags":["Public index"],"security":[],"summary":"Read material public-record change observations since rollout","externalDocs":{"url":"https://bluejetty.ai/developers/app-changes.md"},"parameters":[{"name":"after","in":"query","schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,18})$","default":"0"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":20}}],"responses":{"200":{"description":"data: id, kind (observed/updated/removed), url, observedAt and optional recordUrl. meta.next advances; meta.poll retains end checkpoint. Initial observations are not newly added apps. Current permission checks may omit entries. No historical private payloads.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","maxItems":20,"items":{"type":"object","required":["id","kind","url","observedAt"],"properties":{"id":{"type":"string"},"kind":{"enum":["observed","updated","removed"]},"url":{"type":"string","format":"uri"},"observedAt":{"type":"string","format":"date-time"},"recordUrl":{"type":"string","format":"uri"}}}},"meta":{"type":"object"}}}}}},"304":{"description":"Unchanged currently public result; no response body"},"400":{"description":"Invalid or repeated parameter"},"503":{"description":"Temporary retrieval failure"}}}},"/v1/apps/filter":{"get":{"operationId":"filterPublicApps","tags":["Public index"],"security":[],"summary":"Retrieve apps by categories, platform and explicit name/description keywords","externalDocs":{"url":"https://bluejetty.ai/developers/filtered-app-retrieval.md","description":"Examples, lexical matching boundaries, source interpretation and pagination"},"description":"Provide at least one keyword, category or non-any platform. Keywords use English lexical normalization, not semantic inference. Words within each keyword must all occur; match controls how keyword parameters combine. Categories are ORed; filter types are ANDed. One listing or public experience must satisfy keyword conjunction. Commerce filters require the same exact platform identity; direct facts require the requested storefront, with a labeled historical app-level positive fallback for iap=true only. The current official store listing is the final authority. Sparse or empty pages may have continuation. Canonical app results include matching listing context; publisher context stays separate from source observations. Results are stable-identity ordered, not recommendations. Excerpts are at most 1000 UTF-16 code units; follow jsonUrl for full fields and evidence. Live keyset traversal may change during refreshes; it is not a snapshot. Existing name and entity searches are unchanged.","parameters":[{"name":"version","in":"query","schema":{"type":"string","enum":["1","2"],"default":"1"},"description":"Version 2 adds source-backed lexical matchEvidence and up to three matching public experiences. Conjunction must hold within one listing or one experience. Compact storeSignals retain independent field evidence dates. Default version 1 and its cursors remain unchanged."},{"name":"keywordMode","in":"query","schema":{"type":"string","enum":["lexical","phrase","near"],"default":"lexical"},"description":"Version 2 literal modes require ordered exact words; phrase is adjacent, near permits up to three intervening words per pair. Indexed English lexical prefilter still applies."},{"name":"downloadPriceMax","in":"query","schema":{"type":"number","minimum":0,"maximum":1000000},"description":"Version 2 and explicit platform required. Acquisition price ceiling with currency; unknown excluded. At most six decimal places. Zero download price does not establish payment-free access to the requested experience. Leave iap unset for ordinary free-app requests unless the user explicitly constrains in-app purchases."},{"name":"currency","in":"query","schema":{"type":"string","pattern":"^[A-Z]{3}$"},"description":"Required with downloadPriceMax. No conversion."},{"name":"iap","in":"query","schema":{"type":"string","enum":["true","false"]},"description":"Version 2 and explicit platform required. true permits an exact-identity historical AppGoblin positive fallback unless superseded by newer direct IAP evidence, including false. Fallback results expose dated iapMatchEvidence with unreported storefront scope. false requires direct store evidence; historical negatives and unknowns are excluded. The current official store listing is the final authority."},{"name":"storefront","in":"query","schema":{"type":"string","pattern":"^[a-z]{2}$","default":"us"},"description":"Commerce observation scope. Android also requires hl=en. Supply a price or IAP filter."},{"name":"keyword","in":"query","style":"form","explode":true,"schema":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":64}},"example":["reminders","friends"]},{"name":"category","in":"query","style":"form","explode":true,"schema":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":100}},"description":"Use category keys from /v1/apps/categories; OR matching. Source taxonomies remain distinct."},{"name":"match","in":"query","schema":{"type":"string","enum":["any","all"],"default":"all"}},{"name":"platform","in":"query","schema":{"type":"string","enum":["any","ios","android"],"default":"any"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":1024},"description":"Opaque filter-bound live keyset; follow meta.next unchanged"}],"responses":{"200":{"description":"Currently public records; no-store. Follow meta.next unchanged. Optional ETag supports conditional retrieval after live permission checks.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","maxItems":20,"items":{"type":"object","required":["id","blueJettyId","name","jsonUrl","provenance"],"properties":{"id":{"type":"string"},"blueJettyId":{"type":"string","pattern":"^[0-9]{8}$"},"name":{"type":"string"},"description":{"type":"string","maxLength":1000},"descriptionTruncated":{"type":"boolean"},"category":{"type":["string","null"]},"platforms":{"type":"array","items":{"type":"object"}},"jsonUrl":{"type":"string"},"canonicalPageUrl":{"type":"string"},"packetUrl":{"type":"string"},"provenance":{"enum":["public_source","publisher_authorized"]},"matchedListings":{"type":"array","items":{"type":"object"}},"matchEvidence":{"type":"array","description":"Version 2 same-query evidence for the selected keywordMode.","items":{"type":"object","properties":{"sourceId":{"type":"string"},"field":{"type":"string"},"matching":{"enum":["english_lexical","literal_phrase","literal_near"]},"matchedTerms":{"type":"array","maxItems":8,"items":{"type":"string"}},"matchedTermCount":{"type":"integer","minimum":0,"maximum":8},"excerpt":{"type":"string","maxLength":1200},"excerptMayBeTruncated":{"type":"boolean"}}}},"matchingExperiences":{"type":"array","maxItems":3,"items":{"type":"object"},"description":"Version 2 public entity previews; each independently satisfies the keywords. Configuration capabilities are inspected in the packet."},"storeSignals":{"type":"array","maxItems":2,"items":{"type":"object"},"description":"Compact independently dated publisher store observations; no full description."},"publisherContextAvailable":{"type":"boolean"},"playableDescriptorUrl":{"type":"string","description":"Availability discovery URL, not an assertion of an available playable; 404 is absent."},"identityLinkage":{"type":"object"}}}},"meta":{"type":"object","required":["format","count","limit","next","filters","order","traversal"],"properties":{"format":{"enum":["bluejetty.app_filter/1","bluejetty.app_filter/2"]},"count":{"type":"integer"},"limit":{"type":"integer","maximum":20},"next":{"type":["string","null"]},"filters":{"type":"object"},"order":{"const":"stable_identity"},"traversal":{"const":"live_keyset"}}}}}}}},"304":{"description":"Unchanged currently public result; no response body"},"400":{"description":"Invalid filters, stop-word-only keyword, unknown parameter or cursor/filter mismatch"},"503":{"description":"Query time or response budget exceeded. Retry-After on query timeout; never interpret as zero matches"}}},"head":{"operationId":"headFilteredPublicApps","tags":["Public index"],"security":[],"summary":"Headers for the currently public filtered result; no body","externalDocs":{"url":"https://bluejetty.ai/developers/filtered-app-retrieval.md","description":"Examples, lexical matching boundaries, source interpretation and pagination"},"description":"Provide at least one keyword, category or non-any platform. Keywords use English lexical normalization, not semantic inference. Words within each keyword must all occur; match controls how keyword parameters combine. Categories are ORed; filter types are ANDed. One listing or public experience must satisfy keyword conjunction. Commerce filters require the same exact platform identity; direct facts require the requested storefront, with a labeled historical app-level positive fallback for iap=true only. The current official store listing is the final authority. Sparse or empty pages may have continuation. Canonical app results include matching listing context; publisher context stays separate from source observations. Results are stable-identity ordered, not recommendations. Excerpts are at most 1000 UTF-16 code units; follow jsonUrl for full fields and evidence. Live keyset traversal may change during refreshes; it is not a snapshot. Existing name and entity searches are unchanged.","parameters":[{"name":"version","in":"query","schema":{"type":"string","enum":["1","2"],"default":"1"},"description":"Version 2 adds source-backed lexical matchEvidence and up to three matching public experiences. Conjunction must hold within one listing or one experience. Compact storeSignals retain independent field evidence dates. Default version 1 and its cursors remain unchanged."},{"name":"keywordMode","in":"query","schema":{"type":"string","enum":["lexical","phrase","near"],"default":"lexical"},"description":"Version 2 literal modes require ordered exact words; phrase is adjacent, near permits up to three intervening words per pair. Indexed English lexical prefilter still applies."},{"name":"downloadPriceMax","in":"query","schema":{"type":"number","minimum":0,"maximum":1000000},"description":"Version 2 and explicit platform required. Acquisition price ceiling with currency; unknown excluded. At most six decimal places. Zero download price does not establish payment-free access to the requested experience. Leave iap unset for ordinary free-app requests unless the user explicitly constrains in-app purchases."},{"name":"currency","in":"query","schema":{"type":"string","pattern":"^[A-Z]{3}$"},"description":"Required with downloadPriceMax. No conversion."},{"name":"iap","in":"query","schema":{"type":"string","enum":["true","false"]},"description":"Version 2 and explicit platform required. true permits an exact-identity historical AppGoblin positive fallback unless superseded by newer direct IAP evidence, including false. Fallback results expose dated iapMatchEvidence with unreported storefront scope. false requires direct store evidence; historical negatives and unknowns are excluded. The current official store listing is the final authority."},{"name":"storefront","in":"query","schema":{"type":"string","pattern":"^[a-z]{2}$","default":"us"},"description":"Commerce observation scope. Android also requires hl=en. Supply a price or IAP filter."},{"name":"keyword","in":"query","style":"form","explode":true,"schema":{"type":"array","maxItems":8,"items":{"type":"string","minLength":1,"maxLength":64}},"example":["reminders","friends"]},{"name":"category","in":"query","style":"form","explode":true,"schema":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":100}},"description":"Use category keys from /v1/apps/categories; OR matching. Source taxonomies remain distinct."},{"name":"match","in":"query","schema":{"type":"string","enum":["any","all"],"default":"all"}},{"name":"platform","in":"query","schema":{"type":"string","enum":["any","ios","android"],"default":"any"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":1024},"description":"Opaque filter-bound live keyset; follow meta.next unchanged"}],"responses":{"200":{"description":"Currently public records; no-store. Follow meta.next unchanged. Optional ETag supports conditional retrieval after live permission checks.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","maxItems":20,"items":{"type":"object","required":["id","blueJettyId","name","jsonUrl","provenance"],"properties":{"id":{"type":"string"},"blueJettyId":{"type":"string","pattern":"^[0-9]{8}$"},"name":{"type":"string"},"description":{"type":"string","maxLength":1000},"descriptionTruncated":{"type":"boolean"},"category":{"type":["string","null"]},"platforms":{"type":"array","items":{"type":"object"}},"jsonUrl":{"type":"string"},"canonicalPageUrl":{"type":"string"},"packetUrl":{"type":"string"},"provenance":{"enum":["public_source","publisher_authorized"]},"matchedListings":{"type":"array","items":{"type":"object"}},"matchEvidence":{"type":"array","description":"Version 2 same-query evidence for the selected keywordMode.","items":{"type":"object","properties":{"sourceId":{"type":"string"},"field":{"type":"string"},"matching":{"enum":["english_lexical","literal_phrase","literal_near"]},"matchedTerms":{"type":"array","maxItems":8,"items":{"type":"string"}},"matchedTermCount":{"type":"integer","minimum":0,"maximum":8},"excerpt":{"type":"string","maxLength":1200},"excerptMayBeTruncated":{"type":"boolean"}}}},"matchingExperiences":{"type":"array","maxItems":3,"items":{"type":"object"},"description":"Version 2 public entity previews; each independently satisfies the keywords. Configuration capabilities are inspected in the packet."},"storeSignals":{"type":"array","maxItems":2,"items":{"type":"object"},"description":"Compact independently dated publisher store observations; no full description."},"publisherContextAvailable":{"type":"boolean"},"playableDescriptorUrl":{"type":"string","description":"Availability discovery URL, not an assertion of an available playable; 404 is absent."},"identityLinkage":{"type":"object"}}}},"meta":{"type":"object","required":["format","count","limit","next","filters","order","traversal"],"properties":{"format":{"enum":["bluejetty.app_filter/1","bluejetty.app_filter/2"]},"count":{"type":"integer"},"limit":{"type":"integer","maximum":20},"next":{"type":["string","null"]},"filters":{"type":"object"},"order":{"const":"stable_identity"},"traversal":{"const":"live_keyset"}}}}}}}},"304":{"description":"Unchanged currently public result; no response body"},"400":{"description":"Invalid filters, stop-word-only keyword, unknown parameter or cursor/filter mismatch"},"503":{"description":"Query time or response budget exceeded. Retry-After on query timeout; never interpret as zero matches"}}}},"/v1/apps/categories":{"get":{"operationId":"listPublicAppCategories","tags":["Public index"],"security":[],"summary":"List normalized category keys represented by public records","description":"Case/spacing/punctuation normalization of source labels, not a merged Apple/Google taxonomy. No private category counts. Follow meta.next for more than 100 categories.","parameters":[{"name":"after","in":"query","schema":{"type":"string","maxLength":100},"description":"Use the supplied meta.next URL"}],"responses":{"200":{"description":"data contains category and representative source label; meta.next is null or a continuation URL","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","maxItems":100,"items":{"type":"object","required":["category","label"],"properties":{"category":{"type":"string"},"label":{"type":"string"}}}},"meta":{"type":"object"}}}}}},"304":{"description":"Unchanged currently public result; no response body"},"400":{"description":"Invalid filters, stop-word-only keyword, unknown parameter or cursor/filter mismatch"},"503":{"description":"Query time or response budget exceeded. Retry-After on query timeout; never interpret as zero matches"}}},"head":{"operationId":"headPublicAppCategories","tags":["Public index"],"security":[],"summary":"Headers for current category discovery; no body","parameters":[{"name":"after","in":"query","schema":{"type":"string","maxLength":100},"description":"Use the supplied meta.next URL"}],"responses":{"200":{"description":"Current category response headers, including ETag and terms/discovery/next links; no body"},"304":{"description":"Unchanged currently public result; no response body"},"400":{"description":"Invalid filters, stop-word-only keyword, unknown parameter or cursor/filter mismatch"},"503":{"description":"Query time or response budget exceeded. Retry-After on query timeout; never interpret as zero matches"}}}},"/v1/apps/lookup":{"get":{"operationId":"lookupPublicApp","tags":["Public index"],"summary":"Resolve one exact app identity before retrieving its inventory","description":"Provide exactly one app name, eight-digit Blue Jetty ID, Apple numeric store ID, iOS bundle ID, or Android package name. Resolve across eligible baseline and publisher records. Ambiguous names return 409. Baseline records link to JSON and HTML; publisher records may also supply packet URLs. No packet is fabricated for a baseline app.","parameters":[{"name":"blue_jetty_id","in":"query","schema":{"type":"string","pattern":"^[0-9]{8}$"}},{"name":"ios_store_id","in":"query","schema":{"type":"string","pattern":"^[0-9]+$"}},{"name":"name","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":240}},{"name":"ios_bundle_id","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"android_package_name","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"consumer","in":"query","required":false,"schema":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}],"responses":{"200":{"description":"One exact public app match plus canonical retrieval URLs","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Provide exactly one supported identity parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No public app matches","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"App name is ambiguous; use a platform identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me/apps":{"get":{"operationId":"listOwnedApps","tags":["Publisher"],"summary":"List apps and ingestion summaries owned by the current API key user","security":[{"bearerApiKey":[]}],"responses":{"200":{"description":"Owned app summaries with derived onboarding state and last successful update","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OwnedAppSummary"}}}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}":{"get":{"operationId":"getPublicApp","tags":["Public index"],"summary":"Read a published app","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"App","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateOwnedApp","tags":["Publisher"],"summary":"Update an owned app using the lower-level workflow","description":"Update app metadata, indexed versions, the complete preferred-handoff configuration, or one promotion blurb. Attribution presets never overwrite parameters already present in the publisher URL. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","minLength":1,"maxLength":240},"developerName":{"type":"string","minLength":1,"maxLength":240},"category":{"type":"string","minLength":1,"maxLength":100},"description":{"type":["string","null"],"maxLength":1000},"iosBundleId":{"type":["string","null"],"maxLength":255},"androidPackageName":{"type":["string","null"],"maxLength":255},"appStoreUrl":{"type":["string","null"],"format":"uri","maxLength":2048},"playStoreUrl":{"type":["string","null"],"format":"uri","maxLength":2048},"publisherWebsiteUrl":{"type":["string","null"],"format":"uri","pattern":"^https://","maxLength":2048},"controlledDomains":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":253}},"promotionBlurb":{"type":["string","null"],"minLength":1,"maxLength":280,"pattern":"^[^<>]*$"},"handoff":{"$ref":"#/components/schemas/HandoffConfig"},"indexedVersions":{"$ref":"#/components/schemas/IndexedVersions"}}}}}},"responses":{"200":{"description":"Updated"},"400":{"description":"Invalid patch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteOwnedApp","tags":["Publisher"],"summary":"Delete an owned app and submitted corpus","description":"Removes the app, sources, entities, destinations, and ingestion runs from active storage/publication. A minimal nonpublic deletion audit retains only opaque IDs, removal time, and counts. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/index-activity":{"get":{"operationId":"getOwnedAppIndexActivity","tags":["Publisher"],"security":[{"bearerApiKey":[]}],"summary":"Read publisher-owned app index activity","description":"Private, no-store reporting. HTML/JSON crawl observations, API record retrievals and Blue Jetty API search appearances are separate metrics. Record retrievals overlap JSON crawls and must not be added. Not unique users or appearances in AI answers. See /developers/index-activity.md for coverage and response fields.","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30},"description":"Aggregate-only access is limited to 30 days."},{"name":"view","in":"query","schema":{"type":"string","enum":["aggregate","detailed","history"]},"description":"Detailed/history require analytics.detailed; default follows entitlement."}],"responses":{"200":{"description":"App-scoped metrics, shared UTC window, first/last retained observations and explicit incomplete coverage. Detailed/history also include daily crawler series and provider counts.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["appId","window","metrics","coverage","interpretation"],"properties":{"appId":{"type":"string"},"window":{"type":"object"},"metrics":{"type":"object","required":["html","json","record","search_result"]},"coverage":{"type":"object"},"interpretation":{"type":"string"}}}}}}}},"400":{"description":"Invalid parameters or unavailable range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API key required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Analytics access unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Owned app not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Reporting unavailable; not zero activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/crawler-activity":{"get":{"operationId":"getOwnedAppCrawlerActivity","tags":["Publisher"],"summary":"Read known crawler activity for an owned app","description":"Returns owner-only activity without IPs, raw User-Agent strings, referrers, queries, cookies, or end-user identifiers. Defaults to detailed when authorized, otherwise aggregate. Aggregate-only access supports 1–30 days; detailed/history access supports 1–90. History includes zero-filled UTC daily buckets and a last-seven-complete-days versus preceding-seven trend when the window contains at least 15 days. Current-day counts are partial. All implemented views are available to active pilots. Known-company identities remain declared until separately verified; unrecognized bot-like clients share one Other bucket.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"name":"view","in":"query","required":false,"schema":{"type":"string","enum":["aggregate","detailed","history"]}}],"responses":{"200":{"description":"Crawler activity","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/CrawlerActivity"}}}}}},"400":{"description":"Invalid days/view or unavailable activity window","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Requested activity capability is unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/packet":{"get":{"operationId":"getPublicAppPacket","tags":["Public index"],"summary":"Read one app's publisher-preferred AI handoff packet as JSON","description":"Both packet formats support representation-specific ETags and If-None-Match, with authorization and current projection checked before 200/304. Cache-Control remains no-store; do not enable positive shared caching. Timestamp-only revalidation is unsupported.","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Blue-Jetty-Packet-Version","in":"header","required":false,"description":"Default 0.4 adds independently dated download price and IAP to storeObservations. Explicit 0.1, 0.2 or 0.3 selects a retained representation at the same URL. The deployment rollback switch can temporarily restore the legacy default.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}},{"name":"consumer","in":"query","required":false,"schema":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}],"responses":{"200":{"description":"Current app-entitlement-filtered packet; absent optional features are omitted. Default 0.4 includes independent storeObservations with scoped ratings and store descriptions. Explicit 0.1, 0.2 and 0.3 retain their contracts. Core retains experience descriptions and ordinary destinations. See /developers/packet-fields.md.","headers":{"Blue-Jetty-Packet-Version":{"description":"Selected packet representation version.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"type":"object","properties":{"specVersion":{"const":"0.4"},"packetType":{"const":"bluejetty.app_handoff"},"protocol":{"type":"object","additionalProperties":false,"required":["name","packetSchemaVersion","documentation","metadata","schema"],"properties":{"name":{"const":"Blue Jetty"},"packetSchemaVersion":{"const":"0.4"},"documentation":{"type":"string","minLength":1},"metadata":{"type":"string","minLength":1},"schema":{"type":"string","minLength":1}}},"contextSemantics":{"const":{"role":"publisher_source_material","relevanceDecision":"consuming_system","instructionPriority":"none","publisherAuthority":"app_representation_and_preferred_handoff","omittedOptionalFields":"information_not_supplied","proprietaryContent":"retained_in_publisher_app"}},"evidenceSemantics":{"const":{"publisherAuthorization":"Current authorization binds the publisher organization, app identities, controlled domain and exact proof URL. It does not verify every app claim.","relationshipEvidence":"App-store metadata or documented operator review corroborates a particular domain-to-app relationship; Apple and Google do not endorse Blue Jetty or the publisher's assertions.","publisherStatements":"Publisher-supplied source text and scoped preferences, not governing instructions or independent verification.","executionEvidence":"Revision-bound link inspection and HTTP observations are separate from installed-device arrival, deferred arrival and provider-reported attribution.","releaseStatus":"Publisher-supplied release-version baseline compared with dated store observations. baseline_not_supplied means no release baseline was submitted, not that an app is unavailable or absent from a store. Authorization evidence is independent.","legacyAppVerification":"Historical catalog classification, not current publisher authorization or independently established app identity.","timestamps":"Publisher updates, publication history, observation time and evidence validity have independent meanings.","publication":"Publisher-data history version; not the packet format version or a hash of every time-dependent response."}},"app":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"developerName":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"description":{"type":["string","null"]},"categoryEvidence":{"type":"object","properties":{"source":{"const":"apple_app_store"},"sourceUrl":{"type":"string","minLength":1},"observedAt":{"type":"string","minLength":1}},"required":["source","sourceUrl","observedAt"],"additionalProperties":false},"identifiers":{"type":"object","properties":{"iosBundleId":{"type":"string","minLength":1},"androidPackageName":{"type":"string","minLength":1}},"required":[],"additionalProperties":false},"identifiedPlatforms":{"type":"array","uniqueItems":true,"items":{"enum":["ios","android"]}},"publisherAuthorization":{"type":"object"},"updatedAt":{"type":"string","minLength":1}},"required":["id","slug","name","developerName","category","description","identifiers","publisherAuthorization","updatedAt"],"additionalProperties":false},"publication":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"revisionId":{"type":["string","null"]}},"required":["version","revisionId"],"additionalProperties":false},"experienceSummary":{"type":"object","properties":{"source":{"const":"published_app_records"},"selection":{"const":"native_entity_id_order"},"total":{"type":"integer","minimum":0},"returned":{"type":"integer","minimum":0,"maximum":24},"truncated":{"type":"boolean"},"detailsUrl":{"type":"string","minLength":1},"items":{"type":"array","maxItems":24,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":1600},"url":{"type":"string","minLength":1},"attributes":{"type":"object","maxProperties":6,"additionalProperties":{"anyOf":[{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},{"type":"object","properties":{"value":{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},"unit":{"type":"string","minLength":1,"maxLength":300},"vocabulary":{"type":"string","minLength":1,"maxLength":300},"language":{"type":"string","minLength":1,"maxLength":300}},"required":["value"],"additionalProperties":false}]}},"attributesTruncated":{"type":"boolean"},"sourceId":{"type":"string","minLength":1},"provenance":{"type":"string","minLength":1},"sourceUpdatedAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"textTruncated":{"type":"boolean"}},"required":["id","title","url","sourceId","provenance","updatedAt","textTruncated","attributesTruncated"],"additionalProperties":false}}},"required":["source","selection","total","returned","truncated","detailsUrl","items"],"additionalProperties":false},"provenanceSummary":{"type":"object","properties":{"publisherAuthorization":{"enum":["verified","unverified"]},"relationshipEvidenceMethods":{"type":"array","uniqueItems":true,"items":{"enum":["store_lookup","operator_review"]}},"publisherClaims":{"const":"publisher_supplied_unless_separately_evidenced"},"evidencePath":{"const":"app.publisherAuthorization"},"optionalInformation":{"const":"Omitted fields mean information was not supplied in this packet; they do not establish absence of a capability, offer, provider, or entitlement."}},"required":["publisherAuthorization","relationshipEvidenceMethods","publisherClaims","evidencePath","optionalInformation"],"additionalProperties":false},"handoffSummary":{"type":"object","properties":{"relevanceDecision":{"const":"consuming_system"},"status":{"enum":["destination_available","platform_required"]},"general":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"statusScope":{"const":"general_destination_selection_only"},"urlHandlingExplanation":{"const":"Returned URLs stay unchanged. Only an explicit link recipe permits its declared substitutions."},"byPlatform":{"type":"object","properties":{"ios":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"android":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false}},"additionalProperties":false},"specificExperience":{"type":"object","properties":{"intentHandoffTemplate":{"type":"string","minLength":1},"entityHandoffTemplate":{"type":"string","minLength":1}},"required":["intentHandoffTemplate","entityHandoffTemplate"],"additionalProperties":false},"urlHandling":{"const":"fixed_parameters_preserved_explicit_recipe_bindings_only"}},"required":["relevanceDecision","status","byPlatform","specificExperience","urlHandling"],"additionalProperties":false},"representationPreferences":{"type":"object","properties":{"source":{"const":"publisher"},"recommendationEligibility":{"enum":["when_relevant","not_requested"]},"publisherStatements":{"type":"array","minItems":1,"items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"const":"publisher"},"sourceField":{"enum":["basicInstructions","advancedInstructions","handoffInstructions","representation.summary","representation.preferences"]},"id":{"type":"string","minLength":1},"intentId":{"type":"string","minLength":1},"destinationId":{"type":"string","minLength":1},"campaign":{"type":"string","minLength":1}},"required":["text","source","sourceField"],"additionalProperties":false}}},"required":["source"],"additionalProperties":false},"preferredRepresentation":{"type":"object","properties":{"preferred":{"type":"object","properties":{"url":{"type":"string","minLength":1},"baseUrl":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1}},"required":["url","baseUrl","purpose"],"additionalProperties":false},"appStores":{"type":"object","additionalProperties":{"type":"string","minLength":1}},"attribution":{"type":"object"},"updatedAt":{"type":"string","minLength":1},"executionEvidence":{"type":["object","null"]},"linkRecipe":{"type":"object"},"publisherStatement":{"type":"object"},"selectionSource":{"type":"string","minLength":1},"urlSemantics":{"type":"object","properties":{"purpose":{"const":"user_handoff"},"fixedParameters":{"const":"preserved"},"clientParameterModification":{"enum":["unsupported","declared_recipe_bindings_only"]},"serviceDecoration":{"const":"publisher_authorized_supported_missing_parameters_only"},"shortLinkExpansion":{"const":"not_part_of_handoff_preparation"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"}},"required":["purpose","fixedParameters","clientParameterModification","serviceDecoration","shortLinkExpansion","automatedNavigation"],"additionalProperties":false}},"required":["appStores","urlSemantics"],"additionalProperties":false},"discovery":{"type":"object","properties":{"sourceConfigurationVersion":{"enum":["0.2","0.3","0.4","0.5"]},"canonicalUrl":{"type":"string","minLength":1},"capabilities":{"type":"array","items":{"type":"object"}},"defaultDestinationId":{"type":"string","minLength":1},"promotions":{"type":"array","items":{"type":"object"},"minItems":1},"destinations":{"type":"array","items":{"type":"object"},"minItems":1},"intents":{"type":"array","items":{"type":"object"},"minItems":1},"platformDefaults":{"type":"array","items":{"type":"object"},"minItems":1}},"required":["sourceConfigurationVersion","canonicalUrl","capabilities"],"additionalProperties":false},"handoffSemantics":{"type":"object","properties":{"generalApp":{"const":"publisher_preferred_destination"},"specificExperience":{"const":"matching_intent_or_entity_destination"},"executionEligibility":{"const":["platform","install_state","current_publication_access"]},"executionPreference":{"const":"destination_handoffPreference_when_supplied"},"attributionFirst":{"const":"eligible_publisher_mmp_precedes_native_execution"},"fallback":{"const":"eligible_execution_then_canonical_website_or_store"},"consumerIdentity":{"const":"declared_context_not_authenticated_identity"},"attributionUrlPurpose":{"const":"user_handoff"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"},"providers":{"type":"array","items":{"type":"object"}},"linkRecipes":{"type":"object","properties":{"grammar":{"const":"bluejetty.enum-link/1"},"choices":{"const":"declared_input_and_value_ids_only"},"unresolvedRequiredChoice":{"const":"fallback_or_user_clarification"},"unsupportedGrammarOrUnknownChoice":{"const":"fallback"},"omittedInputs":{"const":"declared_defaults_else_omit_optional_query_binding"},"substitutions":{"const":"declared_whole_path_segments_and_absent_query_keys_in_binding_order"},"encoding":{"const":"encodeURIComponent_once_spaces_percent20"},"fixedUrlBytes":{"const":"preserved"},"maximumUrlLength":{"const":2048},"oversizeResult":{"const":"fallback"},"hostTrackingAndFallbackModification":{"const":"unsupported"},"personalDataAndRecursiveUrlInterpretation":{"const":"unsupported"},"evidenceScope":{"const":"publisher_reviewed_syntax_examples_only"},"guide":{"type":"string","minLength":1}},"required":["grammar","choices","unresolvedRequiredChoice","unsupportedGrammarOrUnknownChoice","omittedInputs","substitutions","encoding","fixedUrlBytes","maximumUrlLength","oversizeResult","hostTrackingAndFallbackModification","personalDataAndRecursiveUrlInterpretation","evidenceScope","guide"],"additionalProperties":false}},"required":["generalApp","specificExperience","executionEligibility","executionPreference","attributionFirst","fallback","consumerIdentity","attributionUrlPurpose","automatedNavigation"],"additionalProperties":false},"executionEvidence":{"type":"array","items":{"type":"object"}},"currentPromotion":{"type":"object","properties":{"blurb":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"required":["blurb"],"additionalProperties":false},"releaseStatus":{"type":"object"},"retrievalSemantics":{"type":"object","properties":{"defaultRepresentation":{"const":"json"},"alternativeRepresentation":{"const":"markdown"},"authorizationPacketUrl":{"const":"exact_proof_binding_not_format_preference"}},"required":["defaultRepresentation","alternativeRepresentation","authorizationPacketUrl"],"additionalProperties":false},"urls":{"type":"object","required":["packetJson","packetMarkdown","appRecord","entities"],"additionalProperties":{"type":"string","minLength":1}},"storeObservations":{"type":"array","maxItems":2,"items":{"type":"object","additionalProperties":false,"required":["source","platform","storefrontId","listingUrl","sourceUrl","observedAt","geography","ratingScope","availabilityScope"],"properties":{"source":{"enum":["apple_app_store","google_play"]},"platform":{"enum":["ios","android"]},"storefrontId":{"type":"string","minLength":1},"listingUrl":{"type":"string","minLength":1},"sourceUrl":{"type":"string","minLength":1},"observedAt":{"type":"string","minLength":1},"geography":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"developer":{"type":"string","minLength":1},"developerIdentifier":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"sourceUpdatedAt":{"type":"string","minLength":1},"description":{"type":"string","minLength":1,"maxLength":20000},"averageRating":{"type":"number","minimum":0,"maximum":5},"ratingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingScope":{"enum":["observed_apple_storefront","public_page_observation_not_verified_country_total"]},"deviceScope":{"enum":["phone_and_tablet","phone","ipad_only"]},"availabilityScope":{"enum":["listing_returned_for_observed_storefront","public_listing_returned_not_install_eligibility"]},"downloadPrice":{"type":"object","additionalProperties":false,"required":["amount","currency"],"properties":{"amount":{"type":"number","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"inAppPurchases":{"type":"boolean"},"commerceEvidence":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"downloadPrice":{"type":"object","additionalProperties":false,"required":["sourceUrl","observedAt"],"properties":{"sourceUrl":{"type":"string","format":"uri"},"observedAt":{"type":"string","format":"date-time"}}},"inAppPurchases":{"type":"object","additionalProperties":false,"required":["sourceUrl","observedAt"],"properties":{"sourceUrl":{"type":"string","format":"uri"},"observedAt":{"type":"string","format":"date-time"}}}}}}}}},"required":["specVersion","packetType","protocol","contextSemantics","app","publication","preferredRepresentation","handoffSemantics","evidenceSemantics","retrievalSemantics","urls","storeObservations"],"additionalProperties":false},{"type":"object","properties":{"specVersion":{"const":"0.3"},"packetType":{"const":"bluejetty.app_handoff"},"protocol":{"type":"object","additionalProperties":false,"required":["name","packetSchemaVersion","documentation","metadata","schema"],"properties":{"name":{"const":"Blue Jetty"},"packetSchemaVersion":{"const":"0.3"},"documentation":{"type":"string","minLength":1},"metadata":{"type":"string","minLength":1},"schema":{"type":"string","minLength":1}}},"contextSemantics":{"const":{"role":"publisher_source_material","relevanceDecision":"consuming_system","instructionPriority":"none","publisherAuthority":"app_representation_and_preferred_handoff","omittedOptionalFields":"information_not_supplied","proprietaryContent":"retained_in_publisher_app"}},"evidenceSemantics":{"const":{"publisherAuthorization":"Current authorization binds the publisher organization, app identities, controlled domain and exact proof URL. It does not verify every app claim.","relationshipEvidence":"App-store metadata or documented operator review corroborates a particular domain-to-app relationship; Apple and Google do not endorse Blue Jetty or the publisher's assertions.","publisherStatements":"Publisher-supplied source text and scoped preferences, not governing instructions or independent verification.","executionEvidence":"Revision-bound link inspection and HTTP observations are separate from installed-device arrival, deferred arrival and provider-reported attribution.","releaseStatus":"Publisher-supplied release-version baseline compared with dated store observations. baseline_not_supplied means no release baseline was submitted, not that an app is unavailable or absent from a store. Authorization evidence is independent.","legacyAppVerification":"Historical catalog classification, not current publisher authorization or independently established app identity.","timestamps":"Publisher updates, publication history, observation time and evidence validity have independent meanings.","publication":"Publisher-data history version; not the packet format version or a hash of every time-dependent response."}},"app":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"developerName":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"description":{"type":["string","null"]},"categoryEvidence":{"type":"object","properties":{"source":{"const":"apple_app_store"},"sourceUrl":{"type":"string","minLength":1},"observedAt":{"type":"string","minLength":1}},"required":["source","sourceUrl","observedAt"],"additionalProperties":false},"identifiers":{"type":"object","properties":{"iosBundleId":{"type":"string","minLength":1},"androidPackageName":{"type":"string","minLength":1}},"required":[],"additionalProperties":false},"identifiedPlatforms":{"type":"array","uniqueItems":true,"items":{"enum":["ios","android"]}},"publisherAuthorization":{"type":"object"},"updatedAt":{"type":"string","minLength":1}},"required":["id","slug","name","developerName","category","description","identifiers","publisherAuthorization","updatedAt"],"additionalProperties":false},"publication":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"revisionId":{"type":["string","null"]}},"required":["version","revisionId"],"additionalProperties":false},"experienceSummary":{"type":"object","properties":{"source":{"const":"published_app_records"},"selection":{"const":"native_entity_id_order"},"total":{"type":"integer","minimum":0},"returned":{"type":"integer","minimum":0,"maximum":24},"truncated":{"type":"boolean"},"detailsUrl":{"type":"string","minLength":1},"items":{"type":"array","maxItems":24,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":1600},"url":{"type":"string","minLength":1},"attributes":{"type":"object","maxProperties":6,"additionalProperties":{"anyOf":[{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},{"type":"object","properties":{"value":{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},"unit":{"type":"string","minLength":1,"maxLength":300},"vocabulary":{"type":"string","minLength":1,"maxLength":300},"language":{"type":"string","minLength":1,"maxLength":300}},"required":["value"],"additionalProperties":false}]}},"attributesTruncated":{"type":"boolean"},"sourceId":{"type":"string","minLength":1},"provenance":{"type":"string","minLength":1},"sourceUpdatedAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"textTruncated":{"type":"boolean"}},"required":["id","title","url","sourceId","provenance","updatedAt","textTruncated","attributesTruncated"],"additionalProperties":false}}},"required":["source","selection","total","returned","truncated","detailsUrl","items"],"additionalProperties":false},"provenanceSummary":{"type":"object","properties":{"publisherAuthorization":{"enum":["verified","unverified"]},"relationshipEvidenceMethods":{"type":"array","uniqueItems":true,"items":{"enum":["store_lookup","operator_review"]}},"publisherClaims":{"const":"publisher_supplied_unless_separately_evidenced"},"evidencePath":{"const":"app.publisherAuthorization"},"optionalInformation":{"const":"Omitted fields mean information was not supplied in this packet; they do not establish absence of a capability, offer, provider, or entitlement."}},"required":["publisherAuthorization","relationshipEvidenceMethods","publisherClaims","evidencePath","optionalInformation"],"additionalProperties":false},"handoffSummary":{"type":"object","properties":{"relevanceDecision":{"const":"consuming_system"},"status":{"enum":["destination_available","platform_required"]},"general":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"statusScope":{"const":"general_destination_selection_only"},"urlHandlingExplanation":{"const":"Returned URLs stay unchanged. Only an explicit link recipe permits its declared substitutions."},"byPlatform":{"type":"object","properties":{"ios":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"android":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false}},"additionalProperties":false},"specificExperience":{"type":"object","properties":{"intentHandoffTemplate":{"type":"string","minLength":1},"entityHandoffTemplate":{"type":"string","minLength":1}},"required":["intentHandoffTemplate","entityHandoffTemplate"],"additionalProperties":false},"urlHandling":{"const":"fixed_parameters_preserved_explicit_recipe_bindings_only"}},"required":["relevanceDecision","status","byPlatform","specificExperience","urlHandling"],"additionalProperties":false},"representationPreferences":{"type":"object","properties":{"source":{"const":"publisher"},"recommendationEligibility":{"enum":["when_relevant","not_requested"]},"publisherStatements":{"type":"array","minItems":1,"items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"const":"publisher"},"sourceField":{"enum":["basicInstructions","advancedInstructions","handoffInstructions","representation.summary","representation.preferences"]},"id":{"type":"string","minLength":1},"intentId":{"type":"string","minLength":1},"destinationId":{"type":"string","minLength":1},"campaign":{"type":"string","minLength":1}},"required":["text","source","sourceField"],"additionalProperties":false}}},"required":["source"],"additionalProperties":false},"preferredRepresentation":{"type":"object","properties":{"preferred":{"type":"object","properties":{"url":{"type":"string","minLength":1},"baseUrl":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1}},"required":["url","baseUrl","purpose"],"additionalProperties":false},"appStores":{"type":"object","additionalProperties":{"type":"string","minLength":1}},"attribution":{"type":"object"},"updatedAt":{"type":"string","minLength":1},"executionEvidence":{"type":["object","null"]},"linkRecipe":{"type":"object"},"publisherStatement":{"type":"object"},"selectionSource":{"type":"string","minLength":1},"urlSemantics":{"type":"object","properties":{"purpose":{"const":"user_handoff"},"fixedParameters":{"const":"preserved"},"clientParameterModification":{"enum":["unsupported","declared_recipe_bindings_only"]},"serviceDecoration":{"const":"publisher_authorized_supported_missing_parameters_only"},"shortLinkExpansion":{"const":"not_part_of_handoff_preparation"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"}},"required":["purpose","fixedParameters","clientParameterModification","serviceDecoration","shortLinkExpansion","automatedNavigation"],"additionalProperties":false}},"required":["appStores","urlSemantics"],"additionalProperties":false},"discovery":{"type":"object","properties":{"sourceConfigurationVersion":{"enum":["0.2","0.3","0.4","0.5"]},"canonicalUrl":{"type":"string","minLength":1},"capabilities":{"type":"array","items":{"type":"object"}},"defaultDestinationId":{"type":"string","minLength":1},"promotions":{"type":"array","items":{"type":"object"},"minItems":1},"destinations":{"type":"array","items":{"type":"object"},"minItems":1},"intents":{"type":"array","items":{"type":"object"},"minItems":1},"platformDefaults":{"type":"array","items":{"type":"object"},"minItems":1}},"required":["sourceConfigurationVersion","canonicalUrl","capabilities"],"additionalProperties":false},"handoffSemantics":{"type":"object","properties":{"generalApp":{"const":"publisher_preferred_destination"},"specificExperience":{"const":"matching_intent_or_entity_destination"},"executionEligibility":{"const":["platform","install_state","current_publication_access"]},"executionPreference":{"const":"destination_handoffPreference_when_supplied"},"attributionFirst":{"const":"eligible_publisher_mmp_precedes_native_execution"},"fallback":{"const":"eligible_execution_then_canonical_website_or_store"},"consumerIdentity":{"const":"declared_context_not_authenticated_identity"},"attributionUrlPurpose":{"const":"user_handoff"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"},"providers":{"type":"array","items":{"type":"object"}},"linkRecipes":{"type":"object","properties":{"grammar":{"const":"bluejetty.enum-link/1"},"choices":{"const":"declared_input_and_value_ids_only"},"unresolvedRequiredChoice":{"const":"fallback_or_user_clarification"},"unsupportedGrammarOrUnknownChoice":{"const":"fallback"},"omittedInputs":{"const":"declared_defaults_else_omit_optional_query_binding"},"substitutions":{"const":"declared_whole_path_segments_and_absent_query_keys_in_binding_order"},"encoding":{"const":"encodeURIComponent_once_spaces_percent20"},"fixedUrlBytes":{"const":"preserved"},"maximumUrlLength":{"const":2048},"oversizeResult":{"const":"fallback"},"hostTrackingAndFallbackModification":{"const":"unsupported"},"personalDataAndRecursiveUrlInterpretation":{"const":"unsupported"},"evidenceScope":{"const":"publisher_reviewed_syntax_examples_only"},"guide":{"type":"string","minLength":1}},"required":["grammar","choices","unresolvedRequiredChoice","unsupportedGrammarOrUnknownChoice","omittedInputs","substitutions","encoding","fixedUrlBytes","maximumUrlLength","oversizeResult","hostTrackingAndFallbackModification","personalDataAndRecursiveUrlInterpretation","evidenceScope","guide"],"additionalProperties":false}},"required":["generalApp","specificExperience","executionEligibility","executionPreference","attributionFirst","fallback","consumerIdentity","attributionUrlPurpose","automatedNavigation"],"additionalProperties":false},"executionEvidence":{"type":"array","items":{"type":"object"}},"currentPromotion":{"type":"object","properties":{"blurb":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"required":["blurb"],"additionalProperties":false},"releaseStatus":{"type":"object"},"retrievalSemantics":{"type":"object","properties":{"defaultRepresentation":{"const":"json"},"alternativeRepresentation":{"const":"markdown"},"authorizationPacketUrl":{"const":"exact_proof_binding_not_format_preference"}},"required":["defaultRepresentation","alternativeRepresentation","authorizationPacketUrl"],"additionalProperties":false},"urls":{"type":"object","required":["packetJson","packetMarkdown","appRecord","entities"],"additionalProperties":{"type":"string","minLength":1}},"storeObservations":{"type":"array","maxItems":2,"items":{"type":"object","additionalProperties":false,"required":["source","platform","storefrontId","listingUrl","sourceUrl","observedAt","geography","ratingScope","availabilityScope"],"properties":{"source":{"enum":["apple_app_store","google_play"]},"platform":{"enum":["ios","android"]},"storefrontId":{"type":"string","minLength":1},"listingUrl":{"type":"string","minLength":1},"sourceUrl":{"type":"string","minLength":1},"observedAt":{"type":"string","minLength":1},"geography":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"developer":{"type":"string","minLength":1},"developerIdentifier":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"version":{"type":"string","minLength":1},"sourceUpdatedAt":{"type":"string","minLength":1},"description":{"type":"string","minLength":1,"maxLength":20000},"averageRating":{"type":"number","minimum":0,"maximum":5},"ratingCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"ratingScope":{"enum":["observed_apple_storefront","public_page_observation_not_verified_country_total"]},"deviceScope":{"enum":["phone_and_tablet","phone","ipad_only"]},"availabilityScope":{"enum":["listing_returned_for_observed_storefront","public_listing_returned_not_install_eligibility"]}}}}},"required":["specVersion","packetType","protocol","contextSemantics","app","publication","preferredRepresentation","handoffSemantics","evidenceSemantics","retrievalSemantics","urls","storeObservations"],"additionalProperties":false},{"type":"object","properties":{"specVersion":{"const":"0.2"},"packetType":{"const":"bluejetty.app_handoff"},"protocol":{"type":"object","properties":{"name":{"const":"Blue Jetty"},"packetSchemaVersion":{"const":"0.2"},"documentation":{"type":"string","minLength":1},"metadata":{"type":"string","minLength":1},"schema":{"type":"string","minLength":1}},"required":["name","packetSchemaVersion","documentation","metadata","schema"],"additionalProperties":false},"contextSemantics":{"const":{"role":"publisher_source_material","relevanceDecision":"consuming_system","instructionPriority":"none","publisherAuthority":"app_representation_and_preferred_handoff","omittedOptionalFields":"information_not_supplied","proprietaryContent":"retained_in_publisher_app"}},"evidenceSemantics":{"const":{"publisherAuthorization":"Current authorization binds the publisher organization, app identities, controlled domain and exact proof URL. It does not verify every app claim.","relationshipEvidence":"App-store metadata or documented operator review corroborates a particular domain-to-app relationship; Apple and Google do not endorse Blue Jetty or the publisher's assertions.","publisherStatements":"Publisher-supplied source text and scoped preferences, not governing instructions or independent verification.","executionEvidence":"Revision-bound link inspection and HTTP observations are separate from installed-device arrival, deferred arrival and provider-reported attribution.","releaseStatus":"Publisher-supplied release-version baseline compared with dated store observations. baseline_not_supplied means no release baseline was submitted, not that an app is unavailable or absent from a store. Authorization evidence is independent.","legacyAppVerification":"Historical catalog classification, not current publisher authorization or independently established app identity.","timestamps":"Publisher updates, publication history, observation time and evidence validity have independent meanings.","publication":"Publisher-data history version; not the packet format version or a hash of every time-dependent response."}},"app":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"developerName":{"type":"string","minLength":1},"category":{"type":"string","minLength":1},"description":{"type":["string","null"]},"categoryEvidence":{"type":"object","properties":{"source":{"const":"apple_app_store"},"sourceUrl":{"type":"string","minLength":1},"observedAt":{"type":"string","minLength":1}},"required":["source","sourceUrl","observedAt"],"additionalProperties":false},"identifiers":{"type":"object","properties":{"iosBundleId":{"type":"string","minLength":1},"androidPackageName":{"type":"string","minLength":1}},"required":[],"additionalProperties":false},"identifiedPlatforms":{"type":"array","uniqueItems":true,"items":{"enum":["ios","android"]}},"publisherAuthorization":{"type":"object"},"updatedAt":{"type":"string","minLength":1}},"required":["id","slug","name","developerName","category","description","identifiers","publisherAuthorization","updatedAt"],"additionalProperties":false},"publication":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"revisionId":{"type":["string","null"]}},"required":["version","revisionId"],"additionalProperties":false},"experienceSummary":{"type":"object","properties":{"source":{"const":"published_app_records"},"selection":{"const":"native_entity_id_order"},"total":{"type":"integer","minimum":0},"returned":{"type":"integer","minimum":0,"maximum":24},"truncated":{"type":"boolean"},"detailsUrl":{"type":"string","minLength":1},"items":{"type":"array","maxItems":24,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":1600},"url":{"type":"string","minLength":1},"attributes":{"type":"object","maxProperties":6,"additionalProperties":{"anyOf":[{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},{"type":"object","properties":{"value":{"anyOf":[{"type":"string","maxLength":300},{"type":"number"},{"type":"boolean"}]},"unit":{"type":"string","minLength":1,"maxLength":300},"vocabulary":{"type":"string","minLength":1,"maxLength":300},"language":{"type":"string","minLength":1,"maxLength":300}},"required":["value"],"additionalProperties":false}]}},"attributesTruncated":{"type":"boolean"},"sourceId":{"type":"string","minLength":1},"provenance":{"type":"string","minLength":1},"sourceUpdatedAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"textTruncated":{"type":"boolean"}},"required":["id","title","url","sourceId","provenance","updatedAt","textTruncated","attributesTruncated"],"additionalProperties":false}}},"required":["source","selection","total","returned","truncated","detailsUrl","items"],"additionalProperties":false},"provenanceSummary":{"type":"object","properties":{"publisherAuthorization":{"enum":["verified","unverified"]},"relationshipEvidenceMethods":{"type":"array","uniqueItems":true,"items":{"enum":["store_lookup","operator_review"]}},"publisherClaims":{"const":"publisher_supplied_unless_separately_evidenced"},"evidencePath":{"const":"app.publisherAuthorization"},"optionalInformation":{"const":"Omitted fields mean information was not supplied in this packet; they do not establish absence of a capability, offer, provider, or entitlement."}},"required":["publisherAuthorization","relationshipEvidenceMethods","publisherClaims","evidencePath","optionalInformation"],"additionalProperties":false},"handoffSummary":{"type":"object","properties":{"relevanceDecision":{"const":"consuming_system"},"status":{"enum":["destination_available","platform_required"]},"general":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"statusScope":{"const":"general_destination_selection_only"},"urlHandlingExplanation":{"const":"Returned URLs stay unchanged. Only an explicit link recipe permits its declared substitutions."},"byPlatform":{"type":"object","properties":{"ios":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false},"android":{"type":"object","properties":{"url":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1},"selectionSource":{"enum":["publisher_destination","canonical_website_fallback","publisher_preference","platform_store_fallback","authorized_website_fallback"]}},"required":["url","purpose","selectionSource"],"additionalProperties":false}},"additionalProperties":false},"specificExperience":{"type":"object","properties":{"intentHandoffTemplate":{"type":"string","minLength":1},"entityHandoffTemplate":{"type":"string","minLength":1}},"required":["intentHandoffTemplate","entityHandoffTemplate"],"additionalProperties":false},"urlHandling":{"const":"fixed_parameters_preserved_explicit_recipe_bindings_only"}},"required":["relevanceDecision","status","byPlatform","specificExperience","urlHandling"],"additionalProperties":false},"representationPreferences":{"type":"object","properties":{"source":{"const":"publisher"},"recommendationEligibility":{"enum":["when_relevant","not_requested"]},"publisherStatements":{"type":"array","minItems":1,"items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"source":{"const":"publisher"},"sourceField":{"enum":["basicInstructions","advancedInstructions","handoffInstructions","representation.summary","representation.preferences"]},"id":{"type":"string","minLength":1},"intentId":{"type":"string","minLength":1},"destinationId":{"type":"string","minLength":1},"campaign":{"type":"string","minLength":1}},"required":["text","source","sourceField"],"additionalProperties":false}}},"required":["source"],"additionalProperties":false},"preferredRepresentation":{"type":"object","properties":{"preferred":{"type":"object","properties":{"url":{"type":"string","minLength":1},"baseUrl":{"type":"string","minLength":1},"purpose":{"type":"string","minLength":1}},"required":["url","baseUrl","purpose"],"additionalProperties":false},"appStores":{"type":"object","additionalProperties":{"type":"string","minLength":1}},"attribution":{"type":"object"},"updatedAt":{"type":"string","minLength":1},"executionEvidence":{"type":["object","null"]},"linkRecipe":{"type":"object"},"publisherStatement":{"type":"object"},"selectionSource":{"type":"string","minLength":1},"urlSemantics":{"type":"object","properties":{"purpose":{"const":"user_handoff"},"fixedParameters":{"const":"preserved"},"clientParameterModification":{"enum":["unsupported","declared_recipe_bindings_only"]},"serviceDecoration":{"const":"publisher_authorized_supported_missing_parameters_only"},"shortLinkExpansion":{"const":"not_part_of_handoff_preparation"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"}},"required":["purpose","fixedParameters","clientParameterModification","serviceDecoration","shortLinkExpansion","automatedNavigation"],"additionalProperties":false}},"required":["appStores","urlSemantics"],"additionalProperties":false},"discovery":{"type":"object","properties":{"sourceConfigurationVersion":{"enum":["0.2","0.3","0.4","0.5"]},"canonicalUrl":{"type":"string","minLength":1},"capabilities":{"type":"array","items":{"type":"object"}},"defaultDestinationId":{"type":"string","minLength":1},"promotions":{"type":"array","items":{"type":"object"},"minItems":1},"destinations":{"type":"array","items":{"type":"object"},"minItems":1},"intents":{"type":"array","items":{"type":"object"},"minItems":1},"platformDefaults":{"type":"array","items":{"type":"object"},"minItems":1}},"required":["sourceConfigurationVersion","canonicalUrl","capabilities"],"additionalProperties":false},"handoffSemantics":{"type":"object","properties":{"generalApp":{"const":"publisher_preferred_destination"},"specificExperience":{"const":"matching_intent_or_entity_destination"},"executionEligibility":{"const":["platform","install_state","current_publication_access"]},"executionPreference":{"const":"destination_handoffPreference_when_supplied"},"attributionFirst":{"const":"eligible_publisher_mmp_precedes_native_execution"},"fallback":{"const":"eligible_execution_then_canonical_website_or_store"},"consumerIdentity":{"const":"declared_context_not_authenticated_identity"},"attributionUrlPurpose":{"const":"user_handoff"},"automatedNavigation":{"const":"not_intended_as_user_click_or_install_evidence"},"providers":{"type":"array","items":{"type":"object"}},"linkRecipes":{"type":"object","properties":{"grammar":{"const":"bluejetty.enum-link/1"},"choices":{"const":"declared_input_and_value_ids_only"},"unresolvedRequiredChoice":{"const":"fallback_or_user_clarification"},"unsupportedGrammarOrUnknownChoice":{"const":"fallback"},"omittedInputs":{"const":"declared_defaults_else_omit_optional_query_binding"},"substitutions":{"const":"declared_whole_path_segments_and_absent_query_keys_in_binding_order"},"encoding":{"const":"encodeURIComponent_once_spaces_percent20"},"fixedUrlBytes":{"const":"preserved"},"maximumUrlLength":{"const":2048},"oversizeResult":{"const":"fallback"},"hostTrackingAndFallbackModification":{"const":"unsupported"},"personalDataAndRecursiveUrlInterpretation":{"const":"unsupported"},"evidenceScope":{"const":"publisher_reviewed_syntax_examples_only"},"guide":{"type":"string","minLength":1}},"required":["grammar","choices","unresolvedRequiredChoice","unsupportedGrammarOrUnknownChoice","omittedInputs","substitutions","encoding","fixedUrlBytes","maximumUrlLength","oversizeResult","hostTrackingAndFallbackModification","personalDataAndRecursiveUrlInterpretation","evidenceScope","guide"],"additionalProperties":false}},"required":["generalApp","specificExperience","executionEligibility","executionPreference","attributionFirst","fallback","consumerIdentity","attributionUrlPurpose","automatedNavigation"],"additionalProperties":false},"executionEvidence":{"type":"array","items":{"type":"object"}},"currentPromotion":{"type":"object","properties":{"blurb":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"required":["blurb"],"additionalProperties":false},"releaseStatus":{"type":"object"},"retrievalSemantics":{"type":"object","properties":{"defaultRepresentation":{"const":"json"},"alternativeRepresentation":{"const":"markdown"},"authorizationPacketUrl":{"const":"exact_proof_binding_not_format_preference"}},"required":["defaultRepresentation","alternativeRepresentation","authorizationPacketUrl"],"additionalProperties":false},"urls":{"type":"object","required":["packetJson","packetMarkdown","appRecord","entities"],"additionalProperties":{"type":"string","minLength":1}}},"required":["specVersion","packetType","protocol","contextSemantics","app","publication","preferredRepresentation","handoffSemantics","evidenceSemantics","retrievalSemantics","urls"],"additionalProperties":false},{"type":"object","required":["specVersion","packetType","app","publication","preferredRepresentation","urls"],"properties":{"specVersion":{"const":"0.1"},"packetType":{"const":"bluejetty.app_handoff"},"app":{"type":"object"},"publication":{"type":"object"},"urls":{"type":"object"},"currentPromotion":{"type":"object","required":["blurb"],"properties":{"blurb":{"type":"string","minLength":1},"updatedAt":{"type":"string"}}},"preferredRepresentation":{"type":"object","properties":{"preferred":{"type":"object"},"attribution":{"type":"object"},"updatedAt":{"type":"string"},"appStores":{"type":"object","additionalProperties":{"type":"string"}}}},"discovery":{"type":"object","properties":{"promotions":{"type":"array","minItems":1},"destinations":{"type":"array","minItems":1},"intents":{"type":"array","minItems":1},"platformDefaults":{"type":"array","minItems":1},"advancedInstructions":{"type":"array","minItems":1}}}},"description":"Optional unpublished values are omitted. Absence means no information supplied, not absence of a feature or offer. This entitlement-filtered publication is not a resubmittable configuration. Explicit evidence/revision unknowns retain their documented semantics.","additionalProperties":true}]}}}}}},"304":{"description":"Current authorized representation matches If-None-Match; no body","headers":{"Blue-Jetty-Packet-Version":{"description":"Selected packet representation version.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}}}},"400":{"description":"Unsupported packet version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/packet.md":{"get":{"operationId":"getPublicAppPacketMarkdown","tags":["Public index"],"summary":"Read one app's publisher-preferred AI handoff packet as Markdown","description":"Uses the same app-entitlement-filtered projection and optional-field omissions as JSON. Absence is not a negative feature claim. Supports representation-specific ETag/If-None-Match after current authorization checks; Cache-Control remains no-store. The JSON and Markdown validators are distinct. See /developers/packet-fields.md.","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Blue-Jetty-Packet-Version","in":"header","required":false,"description":"Default 0.4 adds independently dated download price and IAP to storeObservations. Explicit 0.1, 0.2 or 0.3 selects a retained representation at the same URL. The deployment rollback switch can temporarily restore the legacy default.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}},{"name":"consumer","in":"query","required":false,"schema":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}],"responses":{"200":{"description":"App handoff packet with the same semantics as the selected JSON version. Default 0.4 uses fenced source-data sections, including independent store observations.","headers":{"Blue-Jetty-Packet-Version":{"description":"Selected packet representation version.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Current authorized representation matches If-None-Match; no body","headers":{"Blue-Jetty-Packet-Version":{"description":"Selected packet representation version.","schema":{"type":"string","enum":["0.1","0.2","0.3","0.4"]}}}},"400":{"description":"Unsupported packet version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publisher-llms.txt":{"get":{"operationId":"getPublisherLlmsSnippet","tags":["Public index"],"summary":"Copy the app-specific section for the publisher website's llms.txt","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paste-ready llms.txt section","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publisher-site-instructions.md":{"get":{"operationId":"getOwnedPublisherSiteInstructions","tags":["Publisher"],"summary":"Download app-specific coding-agent instructions for publisher-site discovery","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"App-specific Markdown instructions","content":{"text/markdown":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/publisher-site-verification":{"post":{"operationId":"verifyOwnedPublisherSite","tags":["Publisher"],"summary":"Verify the official website and exact Blue Jetty packet link","description":"Version-4 bounded SSRF-safe checks independently cover the publisher page, robots.txt, both llms.txt packet links, initial HTML head/body references, HTTP packet Link headers, discovery 1.0 descriptor, live JSON/Markdown and source-content equivalence. Homepage discovery requires HTTP headers or the expected head references. Executable JavaScript in initial HTML additionally requires HTTP headers, including hydrated SSR pages; JSON-LD/data scripts are excluded. A readable initial-HTML body link to the selected JSON packet with describedby is strongly recommended, not required. packetDescribedby and llmsDescribedby also require exact targets/media types in initial HTML head or describedby headers on both GET and HEAD. First-party proxy delivery is strongly recommended especially with a CDN, but direct hosting remains valid. Returns data.checkVersion/checks/details/requiredChecks/javascriptPresent/failureCode and onboardingRun.id/notificationQueued/notificationPolicy. Reuse one Onboarding-Run-Id UUID across all checks, repairs and retries for an explicit onboarding run. A unique app/run event queues at most one confirmation after full completion; omitted IDs share the app's initial run. New IDs are for deliberately new onboarding runs, never polling or automatic refresh. The email names the verified website and actually detected paths. notificationQueued reports a newly inserted event, not delivery; false also covers duplicate or incomplete runs. Stores check metadata and a combined content hash, never fetched publisher content. Earlier checks require rechecking; authorization/publication remain independent.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Onboarding-Run-Id","in":"header","required":false,"description":"UUID saved once for this app's explicit onboarding run and reused across retries/repairs. Omission uses the app's stable initial run. Does not grant authorization or replay the verification response.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Publisher website is connected"},"400":{"description":"Invalid onboarding run ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Website or public app packet is not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Publisher website verification failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/release-status":{"get":{"operationId":"getPublicAppReleaseStatus","tags":["Public index"],"summary":"Compare the indexed app version with current store observations","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Release freshness","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"recordOwnedAppStoreVersions","tags":["Publisher"],"summary":"Record publisher-supplied production-store version observations","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["observations"],"properties":{"observations":{"type":"array","minItems":1,"maxItems":2,"items":{"type":"object","additionalProperties":false,"required":["platform","version","source","observedAt"],"properties":{"platform":{"enum":["ios","android"]},"version":{"type":"string","minLength":1,"maxLength":64},"build":{"type":"string","minLength":1,"maxLength":64},"source":{"enum":["app_store_connect","google_play_developer_api","manual"]},"observedAt":{"type":"string","format":"date-time"}}}}}}}}},"responses":{"200":{"description":"Updated release freshness"},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/sources":{"get":{"operationId":"listOwnedSources","tags":["Publisher"],"summary":"List private source configuration for an owned app","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sources","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createSourceLegacy","tags":["Publisher"],"summary":"Create an ingestion source using the lower-level workflow","description":"Prefer POST /v1/submissions for new integrations. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"responses":{"201":{"description":"Created"},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/entities":{"get":{"operationId":"listPublicAppEntities","tags":["Public index"],"summary":"List published entities for an app","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Entity list","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"post":{"operationId":"submitSnapshotLegacy","tags":["Publisher"],"summary":"Submit a full snapshot using the lower-level workflow","description":"Prefer POST /v1/submissions for initial onboarding. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"/schemas/v0.1/delivery.schema.json"}}}},"responses":{"202":{"description":"Ingestion completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionResult"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Snapshot rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/status":{"get":{"operationId":"getOwnedAppStatus","tags":["Publisher"],"summary":"Inspect an owned app, its sources, latest runs, and counts","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/discover":{"post":{"operationId":"previewOwnedAppSitemapDiscovery","tags":["Publisher"],"summary":"Preview bounded JSON-LD discovery from an owned app's sitemap","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["sitemapUrl"],"properties":{"sitemapUrl":{"type":"string","format":"uri","maxLength":2048},"maxPages":{"type":"integer","minimum":1,"maximum":50,"default":10}}}}}},"responses":{"200":{"description":"Discovery preview"},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/verify-destinations":{"post":{"operationId":"verifyOwnedAppDestinations","tags":["Publisher"],"summary":"Run bounded destination verification for an owned app","description":"Checks up to 25 least-recently checked destinations within a 20-second work deadline. The remaining boolean indicates additional work. App and workspace budgets apply.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Verification results including checked, live, dead, syntaxOnly and remaining"},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"An app check is already running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Work budget reached; honor Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/apps/{appId}/feed.json":{"get":{"operationId":"getAppJsonFeed","tags":["Public index"],"summary":"Read the public JSON app feed","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON feed","headers":{"Last-Modified":{"$ref":"#/components/headers/LastModified"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"Not modified since If-Modified-Since"}}}},"/v1/apps/{appId}/feed.jsonl":{"get":{"operationId":"streamAppJsonlFeed","tags":["Public index"],"summary":"Stream the public JSON Lines app feed","parameters":[{"name":"appId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON Lines feed","headers":{"Last-Modified":{"$ref":"#/components/headers/LastModified"}},"content":{"application/x-ndjson":{"schema":{"type":"string"}}}},"304":{"description":"Not modified since If-Modified-Since"}}}},"/v1/sources/{sourceId}/refresh":{"post":{"operationId":"refreshOwnedPullSource","tags":["Publisher"],"summary":"Fetch and ingest an owned pull source","security":[{"bearerApiKey":[]}],"parameters":[{"name":"sourceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"responses":{"202":{"description":"Refresh completed","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/IngestionResult"}}}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Source fetch or snapshot rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data."}},"/v1/sources/{sourceId}":{"get":{"operationId":"getOwnedSource","tags":["Publisher"],"summary":"Read one owned source configuration","security":[{"bearerApiKey":[]}],"parameters":[{"name":"sourceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owned source","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Source"}}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateOwnedSource","tags":["Publisher"],"summary":"Update an owned source URL, cadence, mapping, or provenance","description":"A failed future refresh preserves the last successful public corpus. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"sourceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"sourceUri":{"type":["string","null"],"format":"uri","maxLength":2048},"provenance":{"enum":["developer_authoritative","inferred","manual"],"description":"Publisher origin assertion. Independent corroboration is server-owned."},"refreshInterval":{"enum":["manual","daily"]},"mapping":{"type":["object","null"],"additionalProperties":true}}}}}},"responses":{"200":{"description":"Updated source"},"400":{"description":"Invalid patch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteOwnedSource","tags":["Publisher"],"summary":"Delete an owned source and its submitted entity corpus","description":"Cascades to the source's entities, destinations, evidence, and ingestion runs without deleting the app or its other sources. Publisher writes serialize per app and commit one complete publication revision. A full snapshot containing any invalid or duplicate record is rejected without changing the last successful data.","security":[{"bearerApiKey":[]}],"parameters":[{"name":"sourceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"description":"Canonical token from owner publication data.etag or X-BlueJetty-Publication-ETag. Do not copy a CDN-weakened standard ETag. Re-read and reconcile after 412. Independent authorization and configuration mutations retain their own expected-version fields.","schema":{"type":"string","pattern":"^\"bj-publication-[0-9]+\"$","example":"\"bj-publication-3\""}}],"responses":{"200":{"description":"Source and corpus deleted"},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not owned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"412":{"description":"Publication changed; no mutation committed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"If-Match is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/search":{"get":{"operationId":"searchPublicIndex","tags":["Public index"],"summary":"Search app names or published entities","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1}},{"name":"scope","in":"query","schema":{"type":"string","enum":["apps","entities"],"default":"entities"}},{"name":"view","in":"query","description":"Compact requires scope=apps and omits descriptions/listing details; follow jsonUrl for full evidence. Default full response is unchanged.","schema":{"type":"string","enum":["full","compact"],"default":"full"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}}],"responses":{"200":{"description":"Eligible results; scope=apps resolves canonical app records","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid query or view/scope combination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/index/apps/{publicId}":{"get":{"operationId":"getAppByPublicId","tags":["Public index"],"summary":"Resolve an eight-digit Blue Jetty app ID, including retained listing aliases","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{8}$"}}],"responses":{"200":{"description":"Current public app and platform-scoped listing facts","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"Unchanged current public representation"},"404":{"description":"Not public or unknown","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/directory/apps":{"get":{"operationId":"listPublicDiscoveryProfiles","tags":["Public index"],"summary":"List publication-eligible unclaimed app profiles","responses":{"200":{"description":"Discovery profile list"}}}},"/v1/directory/apps/{candidateId}":{"get":{"operationId":"getPublicDiscoveryProfile","tags":["Public index"],"summary":"Read a publication-eligible discovery profile","parameters":[{"name":"candidateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Discovery profile"},"404":{"description":"Not found or held","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/entities/{entityId}":{"get":{"operationId":"getPublicEntity","tags":["Public index"],"summary":"Read one published entity","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Entity","content":{"application/json":{"schema":{"$ref":"/schemas/v0.1/entity.schema.json"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/entities/{entityId}/handoff":{"get":{"operationId":"getPublicEntityHandoff","tags":["Public index"],"summary":"Resolve a publisher-preferred and consumer-attributed entity handoff","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"enum":["ios","android","web","any"],"default":"any"}},{"name":"install_state","in":"query","required":false,"schema":{"enum":["installed","uninstalled","unknown"],"default":"unknown"}},{"name":"region","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"consumer","in":"query","required":false,"schema":{"enum":["chatgpt","openai","claude","anthropic","google","meta","other"]}}],"responses":{"200":{"description":"Qualified handoff","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"404":{"description":"Entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/export.jsonl":{"get":{"operationId":"streamPublicIndex","tags":["Public index"],"summary":"Read a bounded public entity page as JSON Lines; follow Link rel=next","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":250}},{"name":"after","in":"query","schema":{"type":"string","maxLength":160,"pattern":"^[a-zA-Z0-9_-]+$"},"description":"Keyset identifier supplied by the previous next link. Membership is rechecked on every request."}],"responses":{"200":{"description":"Bounded JSON Lines page; no-store. Follow next until absent. No immutable-snapshot guarantee.","headers":{"Link":{"schema":{"type":"string"},"description":"Machine-use terms and next page when present"},"X-Export-Has-More":{"schema":{"type":"string","enum":["true","false"]}}},"content":{"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"description":"Invalid limit or after identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://bluejetty.ai"}]}