sync unspecced lexicons with bsky

This commit is contained in:
Samuel Newman
2026-08-05 22:53:11 +03:00
parent 78aa562825
commit 40ab91846b
13 changed files with 263 additions and 58 deletions
+3 -11
View File
@@ -11,15 +11,10 @@
"type": "object", "type": "object",
"required": [], "required": [],
"properties": { "properties": {
"checkEmailConfirmed": { "checkEmailConfirmed": { "type": "boolean" },
"type": "boolean"
},
"liveNow": { "liveNow": {
"type": "array", "type": "array",
"items": { "items": { "type": "ref", "ref": "#liveNowConfig" }
"type": "ref",
"ref": "#liveNowConfig"
}
} }
} }
} }
@@ -29,10 +24,7 @@
"type": "object", "type": "object",
"required": ["did", "domains"], "required": ["did", "domains"],
"properties": { "properties": {
"did": { "did": { "type": "string", "format": "did" },
"type": "string",
"format": "did"
},
"domains": { "domains": {
"type": "array", "type": "array",
"items": { "items": {
@@ -0,0 +1,42 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton",
"defs": {
"main": {
"type": "query",
"description": "Get a skeleton of suggested starterpacks for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getOnboardingSuggestedStarterPacks",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"default": 10
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["starterPacks"],
"properties": {
"starterPacks": {
"type": "array",
"items": {
"type": "string",
"format": "at-uri"
}
}
}
}
}
}
}
}
@@ -0,0 +1,54 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton",
"defs": {
"main": {
"type": "query",
"description": "Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
},
"category": {
"type": "string",
"description": "Category of users to get suggestions for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 25
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["dids"],
"properties": {
"dids": {
"type": "array",
"items": {
"type": "string",
"format": "did"
}
},
"recId": {
"type": "string",
"description": "DEPRECATED: use recIdStr instead."
},
"recIdStr": {
"type": "string",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
}
}
}
}
@@ -14,12 +14,8 @@
"maximum": 100, "maximum": 100,
"default": 50 "default": 50
}, },
"cursor": { "cursor": { "type": "string" },
"type": "string" "query": { "type": "string" }
},
"query": {
"type": "string"
}
} }
}, },
"output": { "output": {
@@ -28,9 +24,7 @@
"type": "object", "type": "object",
"required": ["feeds"], "required": ["feeds"],
"properties": { "properties": {
"cursor": { "cursor": { "type": "string" },
"type": "string"
},
"feeds": { "feeds": {
"type": "array", "type": "array",
"items": { "items": {
@@ -0,0 +1,46 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton",
"defs": {
"main": {
"type": "query",
"description": "Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 25
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["dids"],
"properties": {
"dids": {
"type": "array",
"items": {
"type": "string",
"format": "did"
}
},
"recIdStr": {
"type": "string",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
}
}
}
}
@@ -0,0 +1,50 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton",
"defs": {
"main": {
"type": "query",
"description": "Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
},
"category": {
"type": "string",
"description": "Category of users to get suggestions for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 25
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["dids"],
"properties": {
"dids": {
"type": "array",
"items": {
"type": "string",
"format": "did"
}
},
"recIdStr": {
"type": "string",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
}
}
}
}
@@ -0,0 +1,50 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton",
"defs": {
"main": {
"type": "query",
"description": "Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore",
"parameters": {
"type": "params",
"properties": {
"viewer": {
"type": "string",
"format": "did",
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
},
"category": {
"type": "string",
"description": "Category of users to get suggestions for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 25
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["dids"],
"properties": {
"dids": {
"type": "array",
"items": {
"type": "string",
"format": "did"
}
},
"recIdStr": {
"type": "string",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
}
}
}
}
}
}
}
@@ -19,9 +19,7 @@
"maximum": 100, "maximum": 100,
"default": 50 "default": 50
}, },
"cursor": { "cursor": { "type": "string" },
"type": "string"
},
"relativeToDid": { "relativeToDid": {
"type": "string", "type": "string",
"format": "did", "format": "did",
@@ -35,9 +33,7 @@
"type": "object", "type": "object",
"required": ["actors"], "required": ["actors"],
"properties": { "properties": {
"cursor": { "cursor": { "type": "string" },
"type": "string"
},
"actors": { "actors": {
"type": "array", "type": "array",
"items": { "items": {
@@ -30,17 +30,12 @@
"type": "object", "type": "object",
"required": ["tag", "subjectType", "subject"], "required": ["tag", "subjectType", "subject"],
"properties": { "properties": {
"tag": { "tag": { "type": "string" },
"type": "string"
},
"subjectType": { "subjectType": {
"type": "string", "type": "string",
"knownValues": ["actor", "feed"] "knownValues": ["actor", "feed"]
}, },
"subject": { "subject": { "type": "string", "format": "uri" }
"type": "string",
"format": "uri"
}
} }
} }
} }
@@ -33,6 +33,10 @@
"type": "ref", "type": "ref",
"ref": "app.bsky.unspecced.defs#skeletonTrend" "ref": "app.bsky.unspecced.defs#skeletonTrend"
} }
},
"recIdStr": {
"type": "string",
"description": "Snowflake for this recommendation, use when submitting recommendation events."
} }
} }
} }
@@ -34,15 +34,9 @@
} }
}, },
"errors": [ "errors": [
{ { "name": "InvalidEmail" },
"name": "InvalidEmail" { "name": "DidTooLong" },
}, { "name": "InvalidInitiation" }
{
"name": "DidTooLong"
},
{
"name": "InvalidInitiation"
}
] ]
} }
} }
@@ -40,9 +40,7 @@
"type": "object", "type": "object",
"required": ["actors"], "required": ["actors"],
"properties": { "properties": {
"cursor": { "cursor": { "type": "string" },
"type": "string"
},
"hitsTotal": { "hitsTotal": {
"type": "integer", "type": "integer",
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits." "description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
@@ -57,11 +55,7 @@
} }
} }
}, },
"errors": [ "errors": [{ "name": "BadQueryString" }]
{
"name": "BadQueryString"
}
]
} }
} }
} }
@@ -83,9 +83,7 @@
"type": "object", "type": "object",
"required": ["posts"], "required": ["posts"],
"properties": { "properties": {
"cursor": { "cursor": { "type": "string" },
"type": "string"
},
"hitsTotal": { "hitsTotal": {
"type": "integer", "type": "integer",
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits." "description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."
@@ -100,11 +98,7 @@
} }
} }
}, },
"errors": [ "errors": [{ "name": "BadQueryString" }]
{
"name": "BadQueryString"
}
]
} }
} }
} }