{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://huggingbay.xyz/api/schemas","title":"Hugging Bay Public API Schemas","$defs":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"message":{"type":"string"},"required":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"MirrorLimits":{"type":"object","required":["maxFileBytes","maxTotalBytes","maxFiles","maxRuntimeFiles","scanSampleBytes","policy"],"properties":{"maxFileBytes":{"type":"number"},"maxTotalBytes":{"type":"number"},"maxFiles":{"type":"number"},"maxRuntimeFiles":{"type":"number"},"scanSampleBytes":{"type":"number"},"policy":{"type":"string"}},"additionalProperties":false},"Principal":{"type":"object","required":["id","role","allowedOwners"],"properties":{"id":{"type":"string"},"role":{"type":"string","enum":["visitor","reader","publisher","admin"]},"allowedOwners":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"FacetCounts":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["value","count"],"properties":{"value":{"type":"string"},"count":{"type":"number"}}}}},"ArtifactSummary":{"type":"object","required":["id","owner","name","repo","type","license","visibility","hostingStatus","fileCount"],"properties":{"id":{"type":"string"},"owner":{"type":"string"},"name":{"type":"string"},"repo":{"type":"string"},"type":{"type":"string"},"summary":{"type":"string"},"publisher":{"type":"string"},"sourceUrl":{"type":"string"},"license":{"type":"string"},"visibility":{"type":"string"},"verificationStatus":{"type":"string"},"scanStatus":{"type":"string"},"cardCompleteness":{"type":"number"},"tags":{"type":"array","items":{"type":"string"}},"task":{"type":["string","null"]},"modality":{"type":["string","null"]},"framework":{"type":["string","null"]},"formats":{"type":"array","items":{"type":"string"}},"worksWith":{"type":"array","items":{"type":"string"}},"sizeBytes":{"type":"number"},"mirrorCount":{"type":"number"},"downloadCount":{"type":"number"},"stars":{"type":"number"},"citations":{"type":"number"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"upstream":{"type":["object","null"],"additionalProperties":true},"hosting":{"type":["object","null"],"additionalProperties":true},"hostingStatus":{"type":"string"},"fileCount":{"type":"number"},"hostedFileCount":{"type":"number"},"externalFileCount":{"type":"number"},"sampleFiles":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactFile"}}},"additionalProperties":true},"ArtifactPage":{"type":"object","required":["rows","total","limit","cursor","nextCursor","generatedAt"],"properties":{"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactSummary"}},"total":{"type":"number"},"limit":{"type":"number"},"cursor":{"type":"string"},"nextCursor":{"type":["string","null"]},"facets":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/FacetCounts"},"generatedAt":{"type":"string"}}},"ArtifactFile":{"type":"object","required":["path"],"properties":{"path":{"type":"string"},"sizeBytes":{"type":"number"},"format":{"type":["string","null"]},"sha256":{"type":["string","null"]},"risk":{"type":["string","null"]},"sourceKind":{"type":["string","null"]},"downloadPolicy":{"type":["string","null"]},"storageKey":{"type":["string","null"]},"externalUrl":{"type":["string","null"]},"toolCommands":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ToolCommand"}}},"additionalProperties":true},"ToolCommand":{"type":"object","required":["id","label","command"],"properties":{"id":{"type":"string"},"tool":{"type":"string"},"label":{"type":"string"},"command":{"type":"string"},"detail":{"type":"string"},"description":{"type":"string"},"safe":{"type":"boolean"},"requiresHostedFiles":{"type":"boolean"},"docsUrl":{"type":"string"},"copyable":{"type":"boolean"}},"additionalProperties":true},"ArtifactMetadata":{"type":"object","required":["schemaVersion","id","repo","canonicalUrl","apiUrl","filesUrl","license","hosting","agentUse"],"properties":{"schemaVersion":{"const":"hugging-bay.artifact-metadata.v1"},"id":{"type":"string"},"repo":{"type":"string"},"canonicalUrl":{"type":"string"},"apiUrl":{"type":"string"},"filesUrl":{"type":"string"},"manifestUrl":{"type":"string"},"license":{"type":"object","additionalProperties":true},"safety":{"type":"object","additionalProperties":true},"provenance":{"type":"object","additionalProperties":true},"hosting":{"type":"object","additionalProperties":true},"metrics":{"type":"object","additionalProperties":true},"agentUse":{"type":"object","additionalProperties":true}},"additionalProperties":true},"ArtifactCard":{"type":"object","required":["schemaVersion","generatedAt","artifact","actions"],"properties":{"schemaVersion":{"const":"hugging-bay.artifact-card.v1"},"generatedAt":{"type":"string"},"artifact":{"type":"object","additionalProperties":true},"previewableFiles":{"type":"array","items":{"type":"object","additionalProperties":true}},"actions":{"type":"object","additionalProperties":true}},"additionalProperties":true},"CompareArtifacts":{"type":"object","required":["schemaVersion","generatedAt","rows","columns","guidance"],"properties":{"schemaVersion":{"const":"hugging-bay.compare.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"count":{"type":"number"},"missing":{"type":"array","items":{"type":"string"}},"strongest":{"type":"object","additionalProperties":true},"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"object","additionalProperties":true}},"guidance":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"FilePreview":{"type":"object","required":["schemaVersion","artifactId","repo","filePath","renderHint","text","truncated"],"properties":{"schemaVersion":{"const":"hugging-bay.file-preview.v1"},"generatedAt":{"type":"string"},"artifactId":{"type":"string"},"repo":{"type":"string"},"filePath":{"type":"string"},"format":{"type":"string"},"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"bytesRead":{"type":"number"},"truncated":{"type":"boolean"},"renderHint":{"type":"string","enum":["markdown","json","jsonl","csv","tsv","yaml","toml","text"]},"sha256":{"type":"string"},"text":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{}},"urls":{"type":"object","additionalProperties":true}},"additionalProperties":true},"DownloadableFileRow":{"type":"object","required":["artifactId","repo","filePath","sha256","sourceKind","downloadUrl","manifestUrl"],"properties":{"artifactId":{"type":"string"},"owner":{"type":"string"},"name":{"type":"string"},"repo":{"type":"string"},"type":{"type":"string"},"license":{"type":"string"},"summary":{"type":"string"},"filePath":{"type":"string"},"sizeBytes":{"type":"number"},"storageSizeBytes":{"type":"number"},"sha256":{"type":"string"},"sourceKind":{"type":"string"},"storageProvider":{"type":"string"},"hostingStatus":{"type":"string"},"downloadUrl":{"type":"string"},"manifestUrl":{"type":"string"},"manifestKeyUrl":{"type":"string"},"verifyCommand":{"type":"string"},"trust":{"type":"object","properties":{"verified":{"type":"boolean"},"hashAlgorithm":{"type":"string"},"manifestRequired":{"type":"boolean"},"preferredCommand":{"type":"string"},"directDownloadTrustBoundary":{"type":"string"}},"additionalProperties":true},"toolCommands":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ToolCommand"}},"updatedAt":{"type":"string"}},"additionalProperties":true},"DownloadableFilesResponse":{"type":"object","required":["stats","rows","generatedAt"],"properties":{"stats":{"type":"object","required":["hostedArtifacts","hostedFiles","hostedBytes"],"additionalProperties":true},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/DownloadableFileRow"}},"generatedAt":{"type":"string"}},"additionalProperties":true},"MirrorPackSummary":{"type":"object","required":["slug","title","description","artifactCount","hostedArtifacts"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"artifactCount":{"type":"number"},"hostedArtifacts":{"type":"number"}},"additionalProperties":true},"MirrorPackDetail":{"type":"object","required":["slug","title","description","artifactCount","hostedArtifacts","rows"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"artifactCount":{"type":"number"},"hostedArtifacts":{"type":"number"},"rows":{"type":"array","items":{"type":"object","required":["id","repo","type","license","hostedFiles","hostingStatus"],"additionalProperties":true}},"generatedAt":{"type":"string"}},"additionalProperties":true},"MirrorDemandRow":{"type":"object","required":["id","repo","type","license","status","eligible","requestCount","tractionScore"],"properties":{"id":{"type":"string"},"repo":{"type":"string"},"type":{"type":"string"},"license":{"type":"string"},"status":{"type":"string"},"eligible":{"type":"boolean"},"requestCount":{"type":"number"},"smallSafeFiles":{"type":"number"},"smallSafeBytes":{"type":"number"},"usefulFiles":{"type":"number"},"usefulBytes":{"type":"number"},"usefulFileScore":{"type":"number"},"runtimeFileCount":{"type":"number"},"supportFileCount":{"type":"number"},"largeSkipped":{"type":"number"},"autoMirrorReady":{"type":"boolean"},"worksWith":{"type":"array","items":{"type":"string"}},"downloads":{"type":"number"},"stars":{"type":"number"},"tractionScore":{"type":"number"},"mirrorTier":{"type":"string"},"reviewStatus":{"type":"string"},"reviewReason":{"type":"string"},"why":{"type":"array","items":{"type":"string"}},"riskFlags":{"type":"array","items":{"type":"string"}},"topicSlugs":{"type":"array","items":{"type":"string"}},"readiness":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorReadiness"}},"additionalProperties":true},"MirrorReadiness":{"type":"object","required":["score","level","action","recommendedFiles","blockers"],"properties":{"score":{"type":"number"},"level":{"type":"string","enum":["hosted","ready","reviewable","blocked","needs-detail"]},"action":{"type":"string"},"worksWith":{"type":"array","items":{"type":"string"}},"toolUse":{"type":"array","items":{"type":"object","additionalProperties":true}},"safeFormats":{"type":"array","items":{"type":"string"}},"recommendedFiles":{"type":"array","items":{"type":"object","additionalProperties":true}},"blockers":{"type":"array","items":{"type":"string"}},"positives":{"type":"array","items":{"type":"string"}},"autoMirrorReady":{"type":"boolean"},"runtimeFileCount":{"type":"number"},"supportFileCount":{"type":"number"},"usefulFiles":{"type":"number"},"usefulBytes":{"type":"number"},"usefulFileScore":{"type":"number"},"largeSkipped":{"type":"number"},"hostedFiles":{"type":"number"},"externalFiles":{"type":"number"},"totalFiles":{"type":"number"},"limits":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorLimits"},"userCommand":{"type":"string"},"selectedMirrorCommand":{"type":"string"}},"additionalProperties":true},"MirrorReadinessResponse":{"type":"object","required":["schemaVersion","generatedAt","summary","rows"],"properties":{"schemaVersion":{"const":"hugging-bay.mirror-readiness.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"summary":{"type":"object","additionalProperties":true},"policy":{"type":"object","additionalProperties":true},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorDemandRow"}},"agentUse":{"type":"object","additionalProperties":true}},"additionalProperties":true},"UploadedSourceFile":{"type":"object","required":["path","sizeBytes","contentType","contentBase64"],"properties":{"path":{"type":"string"},"sizeBytes":{"type":"number"},"contentType":{"type":"string"},"contentBase64":{"type":"string","description":"Strict base64 file payload. Placeholder values are rejected."}},"additionalProperties":false},"PublishDraft":{"type":"object","required":["owner","name","type","summary","sourceUrl","license","visibility","provenance"],"properties":{"owner":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"},"sourceUrl":{"type":"string"},"license":{"type":"string"},"visibility":{"type":"string","enum":["public","private","gated"]},"tags":{"type":"string"},"task":{"type":"string"},"framework":{"type":"string"},"sizeGb":{"type":"string"},"provenance":{"type":"string"},"sourceFiles":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/UploadedSourceFile"}},"largeUploadManifestId":{"type":"string","description":"Completed upload session id for large releases. Mutually exclusive with sourceFiles."}},"additionalProperties":true},"PublisherApplication":{"type":"object","required":["namespace","displayName","contact","sourceUrl","artifactTypes","intendedUse","provenancePlan","acceptedTerms"],"properties":{"namespace":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{2,39}$"},"displayName":{"type":"string","minLength":2,"maxLength":120},"contact":{"type":"string","minLength":5,"maxLength":160},"website":{"type":"string","pattern":"^(https://|$)","maxLength":240},"sourceUrl":{"type":"string","pattern":"^https://"},"artifactTypes":{"type":"array","minItems":1,"items":{"type":"string","enum":["llm","embedding","audio","vision","agent","dataset","app","tool","eval"]}},"intendedUse":{"type":"string","minLength":30,"maxLength":1200},"provenancePlan":{"type":"string","minLength":30,"maxLength":1200},"expectedUploads":{"type":"string","maxLength":400},"acceptedTerms":{"const":true}},"additionalProperties":false},"PublisherWorkflow":{"type":"object","required":["schemaVersion","generatedAt","baseUrl","access","apiFlow","cliFlow","mcpTools","draftRequirements","safety"],"properties":{"schemaVersion":{"const":"hugging-bay.publisher-workflow.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"access":{"type":"object","additionalProperties":true},"apiFlow":{"type":"array","items":{"type":"object","additionalProperties":true}},"cliFlow":{"type":"array","items":{"type":"string"}},"mcpTools":{"type":"array","items":{"type":"string"}},"draftRequirements":{"type":"array","items":{"type":"string"}},"safety":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"UploadSessionFile":{"type":"object","required":["path","sizeBytes","sha256"],"properties":{"path":{"type":"string"},"sizeBytes":{"type":"number"},"sha256":{"type":"string"},"contentType":{"type":"string"},"storageKey":{"type":"string"},"upload":{"type":"object","additionalProperties":true},"uploaded":{"type":"boolean"}},"additionalProperties":true},"UploadSession":{"type":"object","required":["schemaVersion","id","owner","name","status","files","draftPatch"],"properties":{"schemaVersion":{"const":"hugging-bay.upload-session.v1"},"id":{"type":"string"},"owner":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["created","pending","completed","canceled","expired"]},"storageProvider":{"type":"string"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"completedAt":{"type":["string","null"]},"files":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/UploadSessionFile"}},"draftPatch":{"type":"object","additionalProperties":true},"links":{"type":"object","additionalProperties":true},"urls":{"type":"object","additionalProperties":true}},"additionalProperties":true},"TrafficSummary":{"type":"object","required":["schemaVersion","generatedAt","available","windows"],"properties":{"schemaVersion":{"const":"hugging-bay.traffic-summary.v1"},"generatedAt":{"type":"string"},"persistence":{"type":"string"},"available":{"type":"boolean"},"reason":{"type":"string"},"instrumentation":{"type":"object","additionalProperties":true},"windows":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"HfDetailExpansion":{"type":"object","required":["schemaVersion","generatedAt","dryRun","targetCount","rows"],"properties":{"schemaVersion":{"const":"hugging-bay.hf-detail-expansion.v1"},"generatedAt":{"type":"string"},"startedAt":{"type":"string"},"completedAt":{"type":"string"},"dryRun":{"type":"boolean"},"requested":{"type":"number"},"selected":{"type":"number"},"targetCount":{"type":"number"},"fetched":{"type":"number"},"processed":{"type":"number"},"deferred":{"type":"number"},"timedOut":{"type":"boolean"},"maxRuntimeMs":{"type":"number"},"timeoutMs":{"type":"number"},"retries":{"type":"number"},"errors":{"type":"array","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","additionalProperties":true},"imported":{"type":"number"},"created":{"type":"number"},"updated":{"type":"number"},"blocked":{"type":"number"},"touched":{"type":"array","items":{"type":"string"}},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}},"rows":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"ArtifactAgentBundle":{"type":"object","required":["schemaVersion","generatedAt","id","repo","metadata","card","trustBundle","mirrorReadiness"],"properties":{"schemaVersion":{"const":"hugging-bay.agent-artifact-bundle.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"id":{"type":"string"},"repo":{"type":"string"},"metadata":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactMetadata"},"card":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactCard"},"trustBundle":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/TrustBundle"},"mirrorReadiness":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorReadiness"},"downloadableFiles":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/DownloadableFileRow"}},"recommendedNextActions":{"type":"array","items":{"type":"string"}},"urls":{"type":"object","additionalProperties":true}},"additionalProperties":true},"Topic":{"type":"object","required":["slug","label","artifactCount"],"properties":{"slug":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"},"artifactCount":{"type":"number"},"hfImports":{"type":"number"},"hostedFiles":{"type":"number"},"downloads":{"type":"number"},"stars":{"type":"number"}},"additionalProperties":true},"RecommendationSummary":{"type":"object","required":["generatedAt","thesis","totals","packs"],"properties":{"generatedAt":{"type":"string"},"thesis":{"type":"string"},"totals":{"type":"object","additionalProperties":true},"packs":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorPackSummary"}},"mirrorSignals":{"type":"object","additionalProperties":true},"topMirrorCandidates":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorDemandRow"}}},"additionalProperties":true},"Ranking":{"type":"object","required":["schemaVersion","generatedAt","slug","title","description","webUrl","rows"],"properties":{"schemaVersion":{"const":"hugging-bay.ranking.v1"},"generatedAt":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"webUrl":{"type":"string"},"rows":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"StackIndex":{"type":"object","required":["schemaVersion","generatedAt","webUrl","stacks"],"properties":{"schemaVersion":{"const":"hugging-bay.stack-index.v1"},"generatedAt":{"type":"string"},"webUrl":{"type":"string"},"stacks":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"StackPack":{"type":"object","required":["schemaVersion","generatedAt","slug","title","audience","description","webUrl","apiUrl","searchUrl","rows"],"properties":{"schemaVersion":{"const":"hugging-bay.stack-pack.v1"},"generatedAt":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"audience":{"type":"string"},"description":{"type":"string"},"webUrl":{"type":"string"},"apiUrl":{"type":"string"},"searchUrl":{"type":"string"},"rankingUrl":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactSummary"}}},"additionalProperties":true},"OpenSourceRadar":{"type":"object","required":["schemaVersion","generatedAt","webUrl","apiUrl","totals","sourceBreakdown","sections","policy"],"properties":{"schemaVersion":{"const":"hugging-bay.open-source-radar.v1"},"generatedAt":{"type":"string"},"webUrl":{"type":"string"},"apiUrl":{"type":"string"},"totals":{"type":"object","additionalProperties":true},"sourceBreakdown":{"type":"array","items":{"type":"object","additionalProperties":true}},"sections":{"type":"array","items":{"type":"object","required":["id","title","description","searchUrl","rows"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"searchUrl":{"type":"string"},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/ArtifactSummary"}}},"additionalProperties":true}},"policy":{"type":"object","additionalProperties":true}},"additionalProperties":true},"ManifestSigningKey":{"type":"object","required":["algorithm","keyId"],"additionalProperties":true},"TrustBundle":{"type":"object","required":["bundle_version","artifact","trust","files","generated_at"],"additionalProperties":true},"AgentBriefing":{"type":"object","required":["schemaVersion","generatedAt","product","scale","entrypoints","safeWorkflow"],"properties":{"schemaVersion":{"const":"hugging-bay.agent-briefing.v1"},"generatedAt":{"type":"string"},"product":{"type":"object","additionalProperties":true},"scale":{"type":"object","additionalProperties":true},"entrypoints":{"type":"object","additionalProperties":{"type":"string"}},"safeWorkflow":{"type":"array","items":{"type":"string"}},"highValueQueries":{"type":"array","items":{"type":"object","additionalProperties":true}},"packs":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorPackSummary"}},"topTopics":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/Topic"}},"mirrorCandidates":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/MirrorDemandRow"}},"hostedDownloads":{"type":"object","additionalProperties":true},"trafficGuidance":{"type":"object","additionalProperties":true}},"additionalProperties":true},"AgentTasks":{"type":"object","required":["schemaVersion","generatedAt","baseUrl","tasks","guidance"],"properties":{"schemaVersion":{"const":"hugging-bay.agent-tasks.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"tasks":{"type":"array","items":{"type":"object","required":["id","label","description","webUrl","apiUrl","nextSteps"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"webUrl":{"type":"string"},"apiUrl":{"type":"string"},"searchUrl":{"type":"string"},"actions":{"type":"array","items":{"type":"object","required":["id","method","url"],"properties":{"id":{"type":"string"},"method":{"type":"string"},"url":{"type":"string"},"mcpTool":{"type":"string"},"arguments":{"type":"object","additionalProperties":true}},"additionalProperties":true}},"nextSteps":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"guidance":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"CatalogSource":{"type":"object","required":["id","name","status","ingestMode","metadataUse","mirrorPolicy"],"additionalProperties":true},"CatalogSources":{"type":"object","required":["schemaVersion","rows"],"properties":{"schemaVersion":{"const":"hugging-bay.catalog-sources.v1"},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/CatalogSource"}}},"additionalProperties":true},"SourceCoverage":{"type":"object","required":["schemaVersion","generatedAt","source","sourceId","counts","rollups","topArtifacts","policy"],"properties":{"schemaVersion":{"const":"hugging-bay.source-coverage.v1"},"generatedAt":{"type":"string"},"source":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/CatalogSource"},"sourceId":{"type":"string"},"webUrl":{"type":"string"},"apiUrl":{"type":"string"},"counts":{"type":"object","additionalProperties":true},"rollups":{"type":"object","additionalProperties":true},"topArtifacts":{"type":"array","items":{"type":"object","additionalProperties":true}},"policy":{"type":"object","additionalProperties":true}},"additionalProperties":true},"IndexingUrl":{"type":"object","required":["kind","id","url"],"properties":{"kind":{"type":"string","enum":["static","ranking","stack","intent","source","topic","artifact","downloadable","agent-doc"]},"id":{"type":"string"},"url":{"type":"string"},"apiUrl":{"type":"string"},"lastmod":{"type":["string","null"]}},"additionalProperties":true},"IndexingStatus":{"type":"object","required":["schemaVersion","generatedAt","baseUrl","sitemapIndexUrl","totals","sitemaps","urlKinds"],"properties":{"schemaVersion":{"const":"hugging-bay.indexing-status.v1"},"generatedAt":{"type":"string"},"baseUrl":{"type":"string"},"robotsUrl":{"type":"string"},"sitemapIndexUrl":{"type":"string"},"llmsTxtUrl":{"type":"string"},"openapiUrl":{"type":"string"},"agentManifestUrl":{"type":"string"},"urlBatchEndpoint":{"type":"string"},"totals":{"type":"object","additionalProperties":true},"sitemaps":{"type":"array","items":{"type":"object","additionalProperties":true}},"urlKinds":{"type":"array","items":{"type":"string"}},"guidance":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"IndexingUrlBatch":{"type":"object","required":["schemaVersion","generatedAt","kind","rows","total","limit","cursor","nextCursor"],"properties":{"schemaVersion":{"const":"hugging-bay.indexing-url-batch.v1"},"generatedAt":{"type":"string"},"kind":{"type":"string"},"rows":{"type":"array","items":{"$ref":"https://huggingbay.xyz/api/schemas#/$defs/IndexingUrl"}},"total":{"type":"number"},"limit":{"type":"number"},"cursor":{"type":"string"},"nextCursor":{"type":["string","null"]}},"additionalProperties":true}}}