This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Rename org.latha.strata → org.latha.island

Lexicon namespace, source files, and generated types all updated.
Fixed hyphenated def IDs (web-search → webSearch, etc.) and
invalid schema types (json → unknown, inline object → ref).

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

author
nandi
co-author
Letta Code
date (May 15, 2026, 4:22 AM UTC) commit 2013d82e parent 6111c633
+1127 -6795
+4 -4
lex.config.js
··· 1 1 import { defineLexiconConfig } from "@atcute/lex-cli"; 2 2 3 3 export default defineLexiconConfig({ 4 - files: ["lexicons/custom/**/*.json", "lexicons/pulled/**/*.json", "lexicons/generated/**/*.json"], 4 + files: ["lexicons/org/**/*.json", "lexicons/pulled/**/*.json"], 5 5 outdir: "src/lexicon-types/", 6 6 imports: ["@atcute/atproto"], 7 7 pull: { ··· 17 17 "network.cosmik.connection", 18 18 "network.cosmik.defs", 19 19 "network.cosmik.follow", 20 - "org.latha.strata.citation", 21 - "org.latha.strata.entity", 22 - "org.latha.strata.reasoning" 20 + "org.latha.island.citation", 21 + "org.latha.island.entity", 22 + "org.latha.island.reasoning" 23 23 ], 24 24 }, 25 25 ],
-30
lexicons/generated/index.ts
··· 1 - // Auto-generated by @atmo-dev/contrail-lexicons. Do not edit. 2 - // Pass `lexicons` to `createWorker(config, { lexicons })` to expose them 3 - // at `/xrpc/<namespace>.lexicons` for consumer apps to typegen against. 4 - 5 - import _0 from "../pulled/app/bsky/actor/profile.json"; 6 - import _1 from "../pulled/network/cosmik/card.json"; 7 - import _2 from "../pulled/network/cosmik/collection.json"; 8 - import _3 from "../pulled/network/cosmik/connection.json"; 9 - import _4 from "../pulled/network/cosmik/follow.json"; 10 - import _5 from "./org/latha/strata/authFull.json"; 11 - import _6 from "./org/latha/strata/card/getRecord.json"; 12 - import _7 from "./org/latha/strata/card/listRecords.json"; 13 - import _8 from "./org/latha/strata/citation/getRecord.json"; 14 - import _9 from "./org/latha/strata/citation/listRecords.json"; 15 - import _10 from "./org/latha/strata/collection/getRecord.json"; 16 - import _11 from "./org/latha/strata/collection/listRecords.json"; 17 - import _12 from "./org/latha/strata/connection/getRecord.json"; 18 - import _13 from "./org/latha/strata/connection/listRecords.json"; 19 - import _14 from "./org/latha/strata/entity/getRecord.json"; 20 - import _15 from "./org/latha/strata/entity/listRecords.json"; 21 - import _16 from "./org/latha/strata/follow/getRecord.json"; 22 - import _17 from "./org/latha/strata/follow/listRecords.json"; 23 - import _18 from "./org/latha/strata/getCursor.json"; 24 - import _19 from "./org/latha/strata/getOverview.json"; 25 - import _20 from "./org/latha/strata/getProfile.json"; 26 - import _21 from "./org/latha/strata/notifyOfUpdate.json"; 27 - import _22 from "./org/latha/strata/reasoning/getRecord.json"; 28 - import _23 from "./org/latha/strata/reasoning/listRecords.json"; 29 - 30 - export const lexicons: object[] = [_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23];
-47
lexicons/generated/org/latha/strata/authFull.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.authFull", 4 - "defs": { 5 - "main": { 6 - "type": "permission-set", 7 - "title": "org.latha.strata", 8 - "description": "Full access to the org.latha.strata service", 9 - "permissions": [ 10 - { 11 - "type": "permission", 12 - "resource": "rpc", 13 - "aud": "*", 14 - "lxm": [ 15 - "org.latha.strata.card.getRecord", 16 - "org.latha.strata.card.listRecords", 17 - "org.latha.strata.citation.getRecord", 18 - "org.latha.strata.citation.listRecords", 19 - "org.latha.strata.collection.getRecord", 20 - "org.latha.strata.collection.listRecords", 21 - "org.latha.strata.connection.getRecord", 22 - "org.latha.strata.connection.listRecords", 23 - "org.latha.strata.entity.getRecord", 24 - "org.latha.strata.entity.listRecords", 25 - "org.latha.strata.follow.getRecord", 26 - "org.latha.strata.follow.listRecords", 27 - "org.latha.strata.getCursor", 28 - "org.latha.strata.getOverview", 29 - "org.latha.strata.getProfile", 30 - "org.latha.strata.notifyOfUpdate", 31 - "org.latha.strata.reasoning.getRecord", 32 - "org.latha.strata.reasoning.listRecords" 33 - ] 34 - }, 35 - { 36 - "type": "permission", 37 - "resource": "repo", 38 - "collection": [ 39 - "org.latha.strata.citation", 40 - "org.latha.strata.entity", 41 - "org.latha.strata.reasoning" 42 - ] 43 - } 44 - ] 45 - } 46 - } 47 - }
-218
lexicons/generated/org/latha/strata/card/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.card.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single network.cosmik.card record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - }, 23 - "hydrateParentCard": { 24 - "type": "boolean", 25 - "description": "Embed the referenced parentCard record" 26 - } 27 - } 28 - }, 29 - "output": { 30 - "encoding": "application/json", 31 - "schema": { 32 - "type": "object", 33 - "required": [ 34 - "uri", 35 - "value", 36 - "did", 37 - "collection", 38 - "rkey", 39 - "time_us" 40 - ], 41 - "properties": { 42 - "uri": { 43 - "type": "string", 44 - "format": "at-uri" 45 - }, 46 - "cid": { 47 - "type": "string", 48 - "format": "cid" 49 - }, 50 - "value": { 51 - "type": "ref", 52 - "ref": "network.cosmik.card#main" 53 - }, 54 - "did": { 55 - "type": "string", 56 - "format": "did" 57 - }, 58 - "collection": { 59 - "type": "string", 60 - "format": "nsid" 61 - }, 62 - "rkey": { 63 - "type": "string" 64 - }, 65 - "time_us": { 66 - "type": "integer" 67 - }, 68 - "parentCard": { 69 - "type": "ref", 70 - "ref": "#refParentCardRecord" 71 - }, 72 - "profiles": { 73 - "type": "array", 74 - "items": { 75 - "type": "ref", 76 - "ref": "#profileEntry" 77 - } 78 - } 79 - } 80 - } 81 - } 82 - }, 83 - "refParentCardRecord": { 84 - "type": "object", 85 - "required": [ 86 - "uri", 87 - "did", 88 - "collection", 89 - "rkey", 90 - "time_us" 91 - ], 92 - "properties": { 93 - "uri": { 94 - "type": "string", 95 - "format": "at-uri" 96 - }, 97 - "did": { 98 - "type": "string", 99 - "format": "did" 100 - }, 101 - "collection": { 102 - "type": "string", 103 - "format": "nsid" 104 - }, 105 - "rkey": { 106 - "type": "string" 107 - }, 108 - "cid": { 109 - "type": "string" 110 - }, 111 - "record": { 112 - "type": "ref", 113 - "ref": "network.cosmik.card#main" 114 - }, 115 - "time_us": { 116 - "type": "integer" 117 - } 118 - } 119 - }, 120 - "profileEntry": { 121 - "type": "object", 122 - "required": [ 123 - "did" 124 - ], 125 - "properties": { 126 - "did": { 127 - "type": "string", 128 - "format": "did" 129 - }, 130 - "handle": { 131 - "type": "string" 132 - }, 133 - "uri": { 134 - "type": "string", 135 - "format": "at-uri" 136 - }, 137 - "cid": { 138 - "type": "string", 139 - "format": "cid" 140 - }, 141 - "value": { 142 - "type": "ref", 143 - "ref": "#appBskyActorProfile" 144 - }, 145 - "collection": { 146 - "type": "string", 147 - "format": "nsid" 148 - }, 149 - "rkey": { 150 - "type": "string" 151 - } 152 - } 153 - }, 154 - "appBskyActorProfile": { 155 - "type": "object", 156 - "properties": { 157 - "avatar": { 158 - "type": "blob", 159 - "accept": [ 160 - "image/png", 161 - "image/jpeg" 162 - ], 163 - "maxSize": 1000000, 164 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 165 - }, 166 - "banner": { 167 - "type": "blob", 168 - "accept": [ 169 - "image/png", 170 - "image/jpeg" 171 - ], 172 - "maxSize": 1000000, 173 - "description": "Larger horizontal image to display behind profile view." 174 - }, 175 - "labels": { 176 - "refs": [ 177 - "com.atproto.label.defs#selfLabels" 178 - ], 179 - "type": "union", 180 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 181 - }, 182 - "website": { 183 - "type": "string", 184 - "format": "uri" 185 - }, 186 - "pronouns": { 187 - "type": "string", 188 - "maxLength": 200, 189 - "description": "Free-form pronouns text.", 190 - "maxGraphemes": 20 191 - }, 192 - "createdAt": { 193 - "type": "string", 194 - "format": "datetime" 195 - }, 196 - "pinnedPost": { 197 - "ref": "com.atproto.repo.strongRef", 198 - "type": "ref" 199 - }, 200 - "description": { 201 - "type": "string", 202 - "maxLength": 2560, 203 - "description": "Free-form profile description text.", 204 - "maxGraphemes": 256 205 - }, 206 - "displayName": { 207 - "type": "string", 208 - "maxLength": 640, 209 - "maxGraphemes": 64 210 - }, 211 - "joinedViaStarterPack": { 212 - "ref": "com.atproto.repo.strongRef", 213 - "type": "ref" 214 - } 215 - } 216 - } 217 - } 218 - }
-271
lexicons/generated/org/latha/strata/card/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.card.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query network.cosmik.card records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: content.url, content.text, content.metadata.title, content.metadata.description" 32 - }, 33 - "type": { 34 - "type": "string", 35 - "description": "Filter by type" 36 - }, 37 - "contentUrl": { 38 - "type": "string", 39 - "description": "Filter by content.url" 40 - }, 41 - "hydrateParentCard": { 42 - "type": "boolean", 43 - "description": "Embed the referenced parentCard record" 44 - }, 45 - "sort": { 46 - "type": "string", 47 - "knownValues": [ 48 - "type", 49 - "contentUrl" 50 - ], 51 - "description": "Field to sort by (default: time_us)" 52 - }, 53 - "order": { 54 - "type": "string", 55 - "knownValues": [ 56 - "asc", 57 - "desc" 58 - ], 59 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 60 - } 61 - } 62 - }, 63 - "output": { 64 - "encoding": "application/json", 65 - "schema": { 66 - "type": "object", 67 - "required": [ 68 - "records" 69 - ], 70 - "properties": { 71 - "records": { 72 - "type": "array", 73 - "items": { 74 - "type": "ref", 75 - "ref": "#record" 76 - } 77 - }, 78 - "cursor": { 79 - "type": "string" 80 - }, 81 - "profiles": { 82 - "type": "array", 83 - "items": { 84 - "type": "ref", 85 - "ref": "#profileEntry" 86 - } 87 - } 88 - } 89 - } 90 - } 91 - }, 92 - "record": { 93 - "type": "object", 94 - "required": [ 95 - "uri", 96 - "cid", 97 - "value", 98 - "did", 99 - "collection", 100 - "rkey", 101 - "time_us" 102 - ], 103 - "properties": { 104 - "uri": { 105 - "type": "string", 106 - "format": "at-uri" 107 - }, 108 - "cid": { 109 - "type": "string", 110 - "format": "cid" 111 - }, 112 - "value": { 113 - "type": "ref", 114 - "ref": "network.cosmik.card#main" 115 - }, 116 - "did": { 117 - "type": "string", 118 - "format": "did" 119 - }, 120 - "collection": { 121 - "type": "string", 122 - "format": "nsid" 123 - }, 124 - "rkey": { 125 - "type": "string" 126 - }, 127 - "time_us": { 128 - "type": "integer" 129 - }, 130 - "parentCard": { 131 - "type": "ref", 132 - "ref": "#refParentCardRecord" 133 - } 134 - } 135 - }, 136 - "refParentCardRecord": { 137 - "type": "object", 138 - "required": [ 139 - "uri", 140 - "did", 141 - "collection", 142 - "rkey", 143 - "time_us" 144 - ], 145 - "properties": { 146 - "uri": { 147 - "type": "string", 148 - "format": "at-uri" 149 - }, 150 - "did": { 151 - "type": "string", 152 - "format": "did" 153 - }, 154 - "collection": { 155 - "type": "string", 156 - "format": "nsid" 157 - }, 158 - "rkey": { 159 - "type": "string" 160 - }, 161 - "cid": { 162 - "type": "string" 163 - }, 164 - "record": { 165 - "type": "ref", 166 - "ref": "network.cosmik.card#main" 167 - }, 168 - "time_us": { 169 - "type": "integer" 170 - } 171 - } 172 - }, 173 - "profileEntry": { 174 - "type": "object", 175 - "required": [ 176 - "did" 177 - ], 178 - "properties": { 179 - "did": { 180 - "type": "string", 181 - "format": "did" 182 - }, 183 - "handle": { 184 - "type": "string" 185 - }, 186 - "uri": { 187 - "type": "string", 188 - "format": "at-uri" 189 - }, 190 - "cid": { 191 - "type": "string", 192 - "format": "cid" 193 - }, 194 - "value": { 195 - "type": "ref", 196 - "ref": "#appBskyActorProfile" 197 - }, 198 - "collection": { 199 - "type": "string", 200 - "format": "nsid" 201 - }, 202 - "rkey": { 203 - "type": "string" 204 - } 205 - } 206 - }, 207 - "appBskyActorProfile": { 208 - "type": "object", 209 - "properties": { 210 - "avatar": { 211 - "type": "blob", 212 - "accept": [ 213 - "image/png", 214 - "image/jpeg" 215 - ], 216 - "maxSize": 1000000, 217 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 218 - }, 219 - "banner": { 220 - "type": "blob", 221 - "accept": [ 222 - "image/png", 223 - "image/jpeg" 224 - ], 225 - "maxSize": 1000000, 226 - "description": "Larger horizontal image to display behind profile view." 227 - }, 228 - "labels": { 229 - "refs": [ 230 - "com.atproto.label.defs#selfLabels" 231 - ], 232 - "type": "union", 233 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 234 - }, 235 - "website": { 236 - "type": "string", 237 - "format": "uri" 238 - }, 239 - "pronouns": { 240 - "type": "string", 241 - "maxLength": 200, 242 - "description": "Free-form pronouns text.", 243 - "maxGraphemes": 20 244 - }, 245 - "createdAt": { 246 - "type": "string", 247 - "format": "datetime" 248 - }, 249 - "pinnedPost": { 250 - "ref": "com.atproto.repo.strongRef", 251 - "type": "ref" 252 - }, 253 - "description": { 254 - "type": "string", 255 - "maxLength": 2560, 256 - "description": "Free-form profile description text.", 257 - "maxGraphemes": 256 258 - }, 259 - "displayName": { 260 - "type": "string", 261 - "maxLength": 640, 262 - "maxGraphemes": 64 263 - }, 264 - "joinedViaStarterPack": { 265 - "ref": "com.atproto.repo.strongRef", 266 - "type": "ref" 267 - } 268 - } 269 - } 270 - } 271 - }
-225
lexicons/generated/org/latha/strata/citation/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.citation.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single org.latha.strata.citation record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - }, 23 - "hydrateReasoning": { 24 - "type": "integer", 25 - "minimum": 1, 26 - "maximum": 50, 27 - "description": "Number of reasoning records to embed" 28 - } 29 - } 30 - }, 31 - "output": { 32 - "encoding": "application/json", 33 - "schema": { 34 - "type": "object", 35 - "required": [ 36 - "uri", 37 - "value", 38 - "did", 39 - "collection", 40 - "rkey", 41 - "time_us" 42 - ], 43 - "properties": { 44 - "uri": { 45 - "type": "string", 46 - "format": "at-uri" 47 - }, 48 - "cid": { 49 - "type": "string", 50 - "format": "cid" 51 - }, 52 - "value": { 53 - "type": "unknown" 54 - }, 55 - "did": { 56 - "type": "string", 57 - "format": "did" 58 - }, 59 - "collection": { 60 - "type": "string", 61 - "format": "nsid" 62 - }, 63 - "rkey": { 64 - "type": "string" 65 - }, 66 - "time_us": { 67 - "type": "integer" 68 - }, 69 - "reasoningCount": { 70 - "type": "integer", 71 - "description": "Total reasoning count" 72 - }, 73 - "reasoning": { 74 - "type": "array", 75 - "items": { 76 - "type": "ref", 77 - "ref": "#hydrateReasoningRecord" 78 - } 79 - }, 80 - "profiles": { 81 - "type": "array", 82 - "items": { 83 - "type": "ref", 84 - "ref": "#profileEntry" 85 - } 86 - } 87 - } 88 - } 89 - } 90 - }, 91 - "hydrateReasoningRecord": { 92 - "type": "object", 93 - "required": [ 94 - "uri", 95 - "did", 96 - "collection", 97 - "rkey", 98 - "time_us" 99 - ], 100 - "properties": { 101 - "uri": { 102 - "type": "string", 103 - "format": "at-uri" 104 - }, 105 - "did": { 106 - "type": "string", 107 - "format": "did" 108 - }, 109 - "collection": { 110 - "type": "string", 111 - "format": "nsid" 112 - }, 113 - "rkey": { 114 - "type": "string" 115 - }, 116 - "cid": { 117 - "type": "string" 118 - }, 119 - "record": { 120 - "type": "unknown" 121 - }, 122 - "time_us": { 123 - "type": "integer" 124 - } 125 - } 126 - }, 127 - "profileEntry": { 128 - "type": "object", 129 - "required": [ 130 - "did" 131 - ], 132 - "properties": { 133 - "did": { 134 - "type": "string", 135 - "format": "did" 136 - }, 137 - "handle": { 138 - "type": "string" 139 - }, 140 - "uri": { 141 - "type": "string", 142 - "format": "at-uri" 143 - }, 144 - "cid": { 145 - "type": "string", 146 - "format": "cid" 147 - }, 148 - "value": { 149 - "type": "ref", 150 - "ref": "#appBskyActorProfile" 151 - }, 152 - "collection": { 153 - "type": "string", 154 - "format": "nsid" 155 - }, 156 - "rkey": { 157 - "type": "string" 158 - } 159 - } 160 - }, 161 - "appBskyActorProfile": { 162 - "type": "object", 163 - "properties": { 164 - "avatar": { 165 - "type": "blob", 166 - "accept": [ 167 - "image/png", 168 - "image/jpeg" 169 - ], 170 - "maxSize": 1000000, 171 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 172 - }, 173 - "banner": { 174 - "type": "blob", 175 - "accept": [ 176 - "image/png", 177 - "image/jpeg" 178 - ], 179 - "maxSize": 1000000, 180 - "description": "Larger horizontal image to display behind profile view." 181 - }, 182 - "labels": { 183 - "refs": [ 184 - "com.atproto.label.defs#selfLabels" 185 - ], 186 - "type": "union", 187 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 188 - }, 189 - "website": { 190 - "type": "string", 191 - "format": "uri" 192 - }, 193 - "pronouns": { 194 - "type": "string", 195 - "maxLength": 200, 196 - "description": "Free-form pronouns text.", 197 - "maxGraphemes": 20 198 - }, 199 - "createdAt": { 200 - "type": "string", 201 - "format": "datetime" 202 - }, 203 - "pinnedPost": { 204 - "ref": "com.atproto.repo.strongRef", 205 - "type": "ref" 206 - }, 207 - "description": { 208 - "type": "string", 209 - "maxLength": 2560, 210 - "description": "Free-form profile description text.", 211 - "maxGraphemes": 256 212 - }, 213 - "displayName": { 214 - "type": "string", 215 - "maxLength": 640, 216 - "maxGraphemes": 64 217 - }, 218 - "joinedViaStarterPack": { 219 - "ref": "com.atproto.repo.strongRef", 220 - "type": "ref" 221 - } 222 - } 223 - } 224 - } 225 - }
-288
lexicons/generated/org/latha/strata/citation/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.citation.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query org.latha.strata.citation records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: title, takeaway" 32 - }, 33 - "url": { 34 - "type": "string", 35 - "description": "Filter by url" 36 - }, 37 - "confidence": { 38 - "type": "string", 39 - "description": "Filter by confidence" 40 - }, 41 - "domain": { 42 - "type": "string", 43 - "description": "Filter by domain" 44 - }, 45 - "reasoningCountMin": { 46 - "type": "integer", 47 - "description": "Minimum total reasoning count" 48 - }, 49 - "hydrateReasoning": { 50 - "type": "integer", 51 - "minimum": 1, 52 - "maximum": 50, 53 - "description": "Number of reasoning records to embed per record" 54 - }, 55 - "sort": { 56 - "type": "string", 57 - "knownValues": [ 58 - "url", 59 - "confidence", 60 - "domain", 61 - "reasoningCount" 62 - ], 63 - "description": "Field to sort by (default: time_us)" 64 - }, 65 - "order": { 66 - "type": "string", 67 - "knownValues": [ 68 - "asc", 69 - "desc" 70 - ], 71 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 72 - } 73 - } 74 - }, 75 - "output": { 76 - "encoding": "application/json", 77 - "schema": { 78 - "type": "object", 79 - "required": [ 80 - "records" 81 - ], 82 - "properties": { 83 - "records": { 84 - "type": "array", 85 - "items": { 86 - "type": "ref", 87 - "ref": "#record" 88 - } 89 - }, 90 - "cursor": { 91 - "type": "string" 92 - }, 93 - "profiles": { 94 - "type": "array", 95 - "items": { 96 - "type": "ref", 97 - "ref": "#profileEntry" 98 - } 99 - } 100 - } 101 - } 102 - } 103 - }, 104 - "record": { 105 - "type": "object", 106 - "required": [ 107 - "uri", 108 - "cid", 109 - "value", 110 - "did", 111 - "collection", 112 - "rkey", 113 - "time_us" 114 - ], 115 - "properties": { 116 - "uri": { 117 - "type": "string", 118 - "format": "at-uri" 119 - }, 120 - "cid": { 121 - "type": "string", 122 - "format": "cid" 123 - }, 124 - "value": { 125 - "type": "unknown" 126 - }, 127 - "did": { 128 - "type": "string", 129 - "format": "did" 130 - }, 131 - "collection": { 132 - "type": "string", 133 - "format": "nsid" 134 - }, 135 - "rkey": { 136 - "type": "string" 137 - }, 138 - "time_us": { 139 - "type": "integer" 140 - }, 141 - "reasoningCount": { 142 - "type": "integer", 143 - "description": "Total reasoning count" 144 - }, 145 - "reasoning": { 146 - "type": "array", 147 - "items": { 148 - "type": "ref", 149 - "ref": "#hydrateReasoningRecord" 150 - } 151 - } 152 - } 153 - }, 154 - "hydrateReasoningRecord": { 155 - "type": "object", 156 - "required": [ 157 - "uri", 158 - "did", 159 - "collection", 160 - "rkey", 161 - "time_us" 162 - ], 163 - "properties": { 164 - "uri": { 165 - "type": "string", 166 - "format": "at-uri" 167 - }, 168 - "did": { 169 - "type": "string", 170 - "format": "did" 171 - }, 172 - "collection": { 173 - "type": "string", 174 - "format": "nsid" 175 - }, 176 - "rkey": { 177 - "type": "string" 178 - }, 179 - "cid": { 180 - "type": "string" 181 - }, 182 - "record": { 183 - "type": "unknown" 184 - }, 185 - "time_us": { 186 - "type": "integer" 187 - } 188 - } 189 - }, 190 - "profileEntry": { 191 - "type": "object", 192 - "required": [ 193 - "did" 194 - ], 195 - "properties": { 196 - "did": { 197 - "type": "string", 198 - "format": "did" 199 - }, 200 - "handle": { 201 - "type": "string" 202 - }, 203 - "uri": { 204 - "type": "string", 205 - "format": "at-uri" 206 - }, 207 - "cid": { 208 - "type": "string", 209 - "format": "cid" 210 - }, 211 - "value": { 212 - "type": "ref", 213 - "ref": "#appBskyActorProfile" 214 - }, 215 - "collection": { 216 - "type": "string", 217 - "format": "nsid" 218 - }, 219 - "rkey": { 220 - "type": "string" 221 - } 222 - } 223 - }, 224 - "appBskyActorProfile": { 225 - "type": "object", 226 - "properties": { 227 - "avatar": { 228 - "type": "blob", 229 - "accept": [ 230 - "image/png", 231 - "image/jpeg" 232 - ], 233 - "maxSize": 1000000, 234 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 235 - }, 236 - "banner": { 237 - "type": "blob", 238 - "accept": [ 239 - "image/png", 240 - "image/jpeg" 241 - ], 242 - "maxSize": 1000000, 243 - "description": "Larger horizontal image to display behind profile view." 244 - }, 245 - "labels": { 246 - "refs": [ 247 - "com.atproto.label.defs#selfLabels" 248 - ], 249 - "type": "union", 250 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 251 - }, 252 - "website": { 253 - "type": "string", 254 - "format": "uri" 255 - }, 256 - "pronouns": { 257 - "type": "string", 258 - "maxLength": 200, 259 - "description": "Free-form pronouns text.", 260 - "maxGraphemes": 20 261 - }, 262 - "createdAt": { 263 - "type": "string", 264 - "format": "datetime" 265 - }, 266 - "pinnedPost": { 267 - "ref": "com.atproto.repo.strongRef", 268 - "type": "ref" 269 - }, 270 - "description": { 271 - "type": "string", 272 - "maxLength": 2560, 273 - "description": "Free-form profile description text.", 274 - "maxGraphemes": 256 275 - }, 276 - "displayName": { 277 - "type": "string", 278 - "maxLength": 640, 279 - "maxGraphemes": 64 280 - }, 281 - "joinedViaStarterPack": { 282 - "ref": "com.atproto.repo.strongRef", 283 - "type": "ref" 284 - } 285 - } 286 - } 287 - } 288 - }
-227
lexicons/generated/org/latha/strata/collection/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.collection.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single network.cosmik.collection record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - }, 23 - "hydrateCards": { 24 - "type": "integer", 25 - "minimum": 1, 26 - "maximum": 50, 27 - "description": "Number of cards records to embed" 28 - } 29 - } 30 - }, 31 - "output": { 32 - "encoding": "application/json", 33 - "schema": { 34 - "type": "object", 35 - "required": [ 36 - "uri", 37 - "value", 38 - "did", 39 - "collection", 40 - "rkey", 41 - "time_us" 42 - ], 43 - "properties": { 44 - "uri": { 45 - "type": "string", 46 - "format": "at-uri" 47 - }, 48 - "cid": { 49 - "type": "string", 50 - "format": "cid" 51 - }, 52 - "value": { 53 - "type": "ref", 54 - "ref": "network.cosmik.collection#main" 55 - }, 56 - "did": { 57 - "type": "string", 58 - "format": "did" 59 - }, 60 - "collection": { 61 - "type": "string", 62 - "format": "nsid" 63 - }, 64 - "rkey": { 65 - "type": "string" 66 - }, 67 - "time_us": { 68 - "type": "integer" 69 - }, 70 - "cardsCount": { 71 - "type": "integer", 72 - "description": "Total cards count" 73 - }, 74 - "cards": { 75 - "type": "array", 76 - "items": { 77 - "type": "ref", 78 - "ref": "#hydrateCardsRecord" 79 - } 80 - }, 81 - "profiles": { 82 - "type": "array", 83 - "items": { 84 - "type": "ref", 85 - "ref": "#profileEntry" 86 - } 87 - } 88 - } 89 - } 90 - } 91 - }, 92 - "hydrateCardsRecord": { 93 - "type": "object", 94 - "required": [ 95 - "uri", 96 - "did", 97 - "collection", 98 - "rkey", 99 - "time_us" 100 - ], 101 - "properties": { 102 - "uri": { 103 - "type": "string", 104 - "format": "at-uri" 105 - }, 106 - "did": { 107 - "type": "string", 108 - "format": "did" 109 - }, 110 - "collection": { 111 - "type": "string", 112 - "format": "nsid" 113 - }, 114 - "rkey": { 115 - "type": "string" 116 - }, 117 - "cid": { 118 - "type": "string" 119 - }, 120 - "record": { 121 - "type": "ref", 122 - "ref": "network.cosmik.card#main" 123 - }, 124 - "time_us": { 125 - "type": "integer" 126 - } 127 - } 128 - }, 129 - "profileEntry": { 130 - "type": "object", 131 - "required": [ 132 - "did" 133 - ], 134 - "properties": { 135 - "did": { 136 - "type": "string", 137 - "format": "did" 138 - }, 139 - "handle": { 140 - "type": "string" 141 - }, 142 - "uri": { 143 - "type": "string", 144 - "format": "at-uri" 145 - }, 146 - "cid": { 147 - "type": "string", 148 - "format": "cid" 149 - }, 150 - "value": { 151 - "type": "ref", 152 - "ref": "#appBskyActorProfile" 153 - }, 154 - "collection": { 155 - "type": "string", 156 - "format": "nsid" 157 - }, 158 - "rkey": { 159 - "type": "string" 160 - } 161 - } 162 - }, 163 - "appBskyActorProfile": { 164 - "type": "object", 165 - "properties": { 166 - "avatar": { 167 - "type": "blob", 168 - "accept": [ 169 - "image/png", 170 - "image/jpeg" 171 - ], 172 - "maxSize": 1000000, 173 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 174 - }, 175 - "banner": { 176 - "type": "blob", 177 - "accept": [ 178 - "image/png", 179 - "image/jpeg" 180 - ], 181 - "maxSize": 1000000, 182 - "description": "Larger horizontal image to display behind profile view." 183 - }, 184 - "labels": { 185 - "refs": [ 186 - "com.atproto.label.defs#selfLabels" 187 - ], 188 - "type": "union", 189 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 190 - }, 191 - "website": { 192 - "type": "string", 193 - "format": "uri" 194 - }, 195 - "pronouns": { 196 - "type": "string", 197 - "maxLength": 200, 198 - "description": "Free-form pronouns text.", 199 - "maxGraphemes": 20 200 - }, 201 - "createdAt": { 202 - "type": "string", 203 - "format": "datetime" 204 - }, 205 - "pinnedPost": { 206 - "ref": "com.atproto.repo.strongRef", 207 - "type": "ref" 208 - }, 209 - "description": { 210 - "type": "string", 211 - "maxLength": 2560, 212 - "description": "Free-form profile description text.", 213 - "maxGraphemes": 256 214 - }, 215 - "displayName": { 216 - "type": "string", 217 - "maxLength": 640, 218 - "maxGraphemes": 64 219 - }, 220 - "joinedViaStarterPack": { 221 - "ref": "com.atproto.repo.strongRef", 222 - "type": "ref" 223 - } 224 - } 225 - } 226 - } 227 - }
-285
lexicons/generated/org/latha/strata/collection/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.collection.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query network.cosmik.collection records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: name, description" 32 - }, 33 - "name": { 34 - "type": "string", 35 - "description": "Filter by name" 36 - }, 37 - "accessType": { 38 - "type": "string", 39 - "description": "Filter by accessType" 40 - }, 41 - "cardsCountMin": { 42 - "type": "integer", 43 - "description": "Minimum total cards count" 44 - }, 45 - "hydrateCards": { 46 - "type": "integer", 47 - "minimum": 1, 48 - "maximum": 50, 49 - "description": "Number of cards records to embed per record" 50 - }, 51 - "sort": { 52 - "type": "string", 53 - "knownValues": [ 54 - "name", 55 - "accessType", 56 - "cardsCount" 57 - ], 58 - "description": "Field to sort by (default: time_us)" 59 - }, 60 - "order": { 61 - "type": "string", 62 - "knownValues": [ 63 - "asc", 64 - "desc" 65 - ], 66 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 67 - } 68 - } 69 - }, 70 - "output": { 71 - "encoding": "application/json", 72 - "schema": { 73 - "type": "object", 74 - "required": [ 75 - "records" 76 - ], 77 - "properties": { 78 - "records": { 79 - "type": "array", 80 - "items": { 81 - "type": "ref", 82 - "ref": "#record" 83 - } 84 - }, 85 - "cursor": { 86 - "type": "string" 87 - }, 88 - "profiles": { 89 - "type": "array", 90 - "items": { 91 - "type": "ref", 92 - "ref": "#profileEntry" 93 - } 94 - } 95 - } 96 - } 97 - } 98 - }, 99 - "record": { 100 - "type": "object", 101 - "required": [ 102 - "uri", 103 - "cid", 104 - "value", 105 - "did", 106 - "collection", 107 - "rkey", 108 - "time_us" 109 - ], 110 - "properties": { 111 - "uri": { 112 - "type": "string", 113 - "format": "at-uri" 114 - }, 115 - "cid": { 116 - "type": "string", 117 - "format": "cid" 118 - }, 119 - "value": { 120 - "type": "ref", 121 - "ref": "network.cosmik.collection#main" 122 - }, 123 - "did": { 124 - "type": "string", 125 - "format": "did" 126 - }, 127 - "collection": { 128 - "type": "string", 129 - "format": "nsid" 130 - }, 131 - "rkey": { 132 - "type": "string" 133 - }, 134 - "time_us": { 135 - "type": "integer" 136 - }, 137 - "cardsCount": { 138 - "type": "integer", 139 - "description": "Total cards count" 140 - }, 141 - "cards": { 142 - "type": "array", 143 - "items": { 144 - "type": "ref", 145 - "ref": "#hydrateCardsRecord" 146 - } 147 - } 148 - } 149 - }, 150 - "hydrateCardsRecord": { 151 - "type": "object", 152 - "required": [ 153 - "uri", 154 - "did", 155 - "collection", 156 - "rkey", 157 - "time_us" 158 - ], 159 - "properties": { 160 - "uri": { 161 - "type": "string", 162 - "format": "at-uri" 163 - }, 164 - "did": { 165 - "type": "string", 166 - "format": "did" 167 - }, 168 - "collection": { 169 - "type": "string", 170 - "format": "nsid" 171 - }, 172 - "rkey": { 173 - "type": "string" 174 - }, 175 - "cid": { 176 - "type": "string" 177 - }, 178 - "record": { 179 - "type": "ref", 180 - "ref": "network.cosmik.card#main" 181 - }, 182 - "time_us": { 183 - "type": "integer" 184 - } 185 - } 186 - }, 187 - "profileEntry": { 188 - "type": "object", 189 - "required": [ 190 - "did" 191 - ], 192 - "properties": { 193 - "did": { 194 - "type": "string", 195 - "format": "did" 196 - }, 197 - "handle": { 198 - "type": "string" 199 - }, 200 - "uri": { 201 - "type": "string", 202 - "format": "at-uri" 203 - }, 204 - "cid": { 205 - "type": "string", 206 - "format": "cid" 207 - }, 208 - "value": { 209 - "type": "ref", 210 - "ref": "#appBskyActorProfile" 211 - }, 212 - "collection": { 213 - "type": "string", 214 - "format": "nsid" 215 - }, 216 - "rkey": { 217 - "type": "string" 218 - } 219 - } 220 - }, 221 - "appBskyActorProfile": { 222 - "type": "object", 223 - "properties": { 224 - "avatar": { 225 - "type": "blob", 226 - "accept": [ 227 - "image/png", 228 - "image/jpeg" 229 - ], 230 - "maxSize": 1000000, 231 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 232 - }, 233 - "banner": { 234 - "type": "blob", 235 - "accept": [ 236 - "image/png", 237 - "image/jpeg" 238 - ], 239 - "maxSize": 1000000, 240 - "description": "Larger horizontal image to display behind profile view." 241 - }, 242 - "labels": { 243 - "refs": [ 244 - "com.atproto.label.defs#selfLabels" 245 - ], 246 - "type": "union", 247 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 248 - }, 249 - "website": { 250 - "type": "string", 251 - "format": "uri" 252 - }, 253 - "pronouns": { 254 - "type": "string", 255 - "maxLength": 200, 256 - "description": "Free-form pronouns text.", 257 - "maxGraphemes": 20 258 - }, 259 - "createdAt": { 260 - "type": "string", 261 - "format": "datetime" 262 - }, 263 - "pinnedPost": { 264 - "ref": "com.atproto.repo.strongRef", 265 - "type": "ref" 266 - }, 267 - "description": { 268 - "type": "string", 269 - "maxLength": 2560, 270 - "description": "Free-form profile description text.", 271 - "maxGraphemes": 256 272 - }, 273 - "displayName": { 274 - "type": "string", 275 - "maxLength": 640, 276 - "maxGraphemes": 64 277 - }, 278 - "joinedViaStarterPack": { 279 - "ref": "com.atproto.repo.strongRef", 280 - "type": "ref" 281 - } 282 - } 283 - } 284 - } 285 - }
-173
lexicons/generated/org/latha/strata/connection/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.connection.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single network.cosmik.connection record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - } 23 - } 24 - }, 25 - "output": { 26 - "encoding": "application/json", 27 - "schema": { 28 - "type": "object", 29 - "required": [ 30 - "uri", 31 - "value", 32 - "did", 33 - "collection", 34 - "rkey", 35 - "time_us" 36 - ], 37 - "properties": { 38 - "uri": { 39 - "type": "string", 40 - "format": "at-uri" 41 - }, 42 - "cid": { 43 - "type": "string", 44 - "format": "cid" 45 - }, 46 - "value": { 47 - "type": "ref", 48 - "ref": "network.cosmik.connection#main" 49 - }, 50 - "did": { 51 - "type": "string", 52 - "format": "did" 53 - }, 54 - "collection": { 55 - "type": "string", 56 - "format": "nsid" 57 - }, 58 - "rkey": { 59 - "type": "string" 60 - }, 61 - "time_us": { 62 - "type": "integer" 63 - }, 64 - "profiles": { 65 - "type": "array", 66 - "items": { 67 - "type": "ref", 68 - "ref": "#profileEntry" 69 - } 70 - } 71 - } 72 - } 73 - } 74 - }, 75 - "profileEntry": { 76 - "type": "object", 77 - "required": [ 78 - "did" 79 - ], 80 - "properties": { 81 - "did": { 82 - "type": "string", 83 - "format": "did" 84 - }, 85 - "handle": { 86 - "type": "string" 87 - }, 88 - "uri": { 89 - "type": "string", 90 - "format": "at-uri" 91 - }, 92 - "cid": { 93 - "type": "string", 94 - "format": "cid" 95 - }, 96 - "value": { 97 - "type": "ref", 98 - "ref": "#appBskyActorProfile" 99 - }, 100 - "collection": { 101 - "type": "string", 102 - "format": "nsid" 103 - }, 104 - "rkey": { 105 - "type": "string" 106 - } 107 - } 108 - }, 109 - "appBskyActorProfile": { 110 - "type": "object", 111 - "properties": { 112 - "avatar": { 113 - "type": "blob", 114 - "accept": [ 115 - "image/png", 116 - "image/jpeg" 117 - ], 118 - "maxSize": 1000000, 119 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 120 - }, 121 - "banner": { 122 - "type": "blob", 123 - "accept": [ 124 - "image/png", 125 - "image/jpeg" 126 - ], 127 - "maxSize": 1000000, 128 - "description": "Larger horizontal image to display behind profile view." 129 - }, 130 - "labels": { 131 - "refs": [ 132 - "com.atproto.label.defs#selfLabels" 133 - ], 134 - "type": "union", 135 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 136 - }, 137 - "website": { 138 - "type": "string", 139 - "format": "uri" 140 - }, 141 - "pronouns": { 142 - "type": "string", 143 - "maxLength": 200, 144 - "description": "Free-form pronouns text.", 145 - "maxGraphemes": 20 146 - }, 147 - "createdAt": { 148 - "type": "string", 149 - "format": "datetime" 150 - }, 151 - "pinnedPost": { 152 - "ref": "com.atproto.repo.strongRef", 153 - "type": "ref" 154 - }, 155 - "description": { 156 - "type": "string", 157 - "maxLength": 2560, 158 - "description": "Free-form profile description text.", 159 - "maxGraphemes": 256 160 - }, 161 - "displayName": { 162 - "type": "string", 163 - "maxLength": 640, 164 - "maxGraphemes": 64 165 - }, 166 - "joinedViaStarterPack": { 167 - "ref": "com.atproto.repo.strongRef", 168 - "type": "ref" 169 - } 170 - } 171 - } 172 - } 173 - }
-231
lexicons/generated/org/latha/strata/connection/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.connection.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query network.cosmik.connection records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: note" 32 - }, 33 - "source": { 34 - "type": "string", 35 - "description": "Filter by source" 36 - }, 37 - "target": { 38 - "type": "string", 39 - "description": "Filter by target" 40 - }, 41 - "connectionType": { 42 - "type": "string", 43 - "description": "Filter by connectionType" 44 - }, 45 - "sort": { 46 - "type": "string", 47 - "knownValues": [ 48 - "source", 49 - "target", 50 - "connectionType" 51 - ], 52 - "description": "Field to sort by (default: time_us)" 53 - }, 54 - "order": { 55 - "type": "string", 56 - "knownValues": [ 57 - "asc", 58 - "desc" 59 - ], 60 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 61 - } 62 - } 63 - }, 64 - "output": { 65 - "encoding": "application/json", 66 - "schema": { 67 - "type": "object", 68 - "required": [ 69 - "records" 70 - ], 71 - "properties": { 72 - "records": { 73 - "type": "array", 74 - "items": { 75 - "type": "ref", 76 - "ref": "#record" 77 - } 78 - }, 79 - "cursor": { 80 - "type": "string" 81 - }, 82 - "profiles": { 83 - "type": "array", 84 - "items": { 85 - "type": "ref", 86 - "ref": "#profileEntry" 87 - } 88 - } 89 - } 90 - } 91 - } 92 - }, 93 - "record": { 94 - "type": "object", 95 - "required": [ 96 - "uri", 97 - "cid", 98 - "value", 99 - "did", 100 - "collection", 101 - "rkey", 102 - "time_us" 103 - ], 104 - "properties": { 105 - "uri": { 106 - "type": "string", 107 - "format": "at-uri" 108 - }, 109 - "cid": { 110 - "type": "string", 111 - "format": "cid" 112 - }, 113 - "value": { 114 - "type": "ref", 115 - "ref": "network.cosmik.connection#main" 116 - }, 117 - "did": { 118 - "type": "string", 119 - "format": "did" 120 - }, 121 - "collection": { 122 - "type": "string", 123 - "format": "nsid" 124 - }, 125 - "rkey": { 126 - "type": "string" 127 - }, 128 - "time_us": { 129 - "type": "integer" 130 - } 131 - } 132 - }, 133 - "profileEntry": { 134 - "type": "object", 135 - "required": [ 136 - "did" 137 - ], 138 - "properties": { 139 - "did": { 140 - "type": "string", 141 - "format": "did" 142 - }, 143 - "handle": { 144 - "type": "string" 145 - }, 146 - "uri": { 147 - "type": "string", 148 - "format": "at-uri" 149 - }, 150 - "cid": { 151 - "type": "string", 152 - "format": "cid" 153 - }, 154 - "value": { 155 - "type": "ref", 156 - "ref": "#appBskyActorProfile" 157 - }, 158 - "collection": { 159 - "type": "string", 160 - "format": "nsid" 161 - }, 162 - "rkey": { 163 - "type": "string" 164 - } 165 - } 166 - }, 167 - "appBskyActorProfile": { 168 - "type": "object", 169 - "properties": { 170 - "avatar": { 171 - "type": "blob", 172 - "accept": [ 173 - "image/png", 174 - "image/jpeg" 175 - ], 176 - "maxSize": 1000000, 177 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 178 - }, 179 - "banner": { 180 - "type": "blob", 181 - "accept": [ 182 - "image/png", 183 - "image/jpeg" 184 - ], 185 - "maxSize": 1000000, 186 - "description": "Larger horizontal image to display behind profile view." 187 - }, 188 - "labels": { 189 - "refs": [ 190 - "com.atproto.label.defs#selfLabels" 191 - ], 192 - "type": "union", 193 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 194 - }, 195 - "website": { 196 - "type": "string", 197 - "format": "uri" 198 - }, 199 - "pronouns": { 200 - "type": "string", 201 - "maxLength": 200, 202 - "description": "Free-form pronouns text.", 203 - "maxGraphemes": 20 204 - }, 205 - "createdAt": { 206 - "type": "string", 207 - "format": "datetime" 208 - }, 209 - "pinnedPost": { 210 - "ref": "com.atproto.repo.strongRef", 211 - "type": "ref" 212 - }, 213 - "description": { 214 - "type": "string", 215 - "maxLength": 2560, 216 - "description": "Free-form profile description text.", 217 - "maxGraphemes": 256 218 - }, 219 - "displayName": { 220 - "type": "string", 221 - "maxLength": 640, 222 - "maxGraphemes": 64 223 - }, 224 - "joinedViaStarterPack": { 225 - "ref": "com.atproto.repo.strongRef", 226 - "type": "ref" 227 - } 228 - } 229 - } 230 - } 231 - }
-172
lexicons/generated/org/latha/strata/entity/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.entity.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single org.latha.strata.entity record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - } 23 - } 24 - }, 25 - "output": { 26 - "encoding": "application/json", 27 - "schema": { 28 - "type": "object", 29 - "required": [ 30 - "uri", 31 - "value", 32 - "did", 33 - "collection", 34 - "rkey", 35 - "time_us" 36 - ], 37 - "properties": { 38 - "uri": { 39 - "type": "string", 40 - "format": "at-uri" 41 - }, 42 - "cid": { 43 - "type": "string", 44 - "format": "cid" 45 - }, 46 - "value": { 47 - "type": "unknown" 48 - }, 49 - "did": { 50 - "type": "string", 51 - "format": "did" 52 - }, 53 - "collection": { 54 - "type": "string", 55 - "format": "nsid" 56 - }, 57 - "rkey": { 58 - "type": "string" 59 - }, 60 - "time_us": { 61 - "type": "integer" 62 - }, 63 - "profiles": { 64 - "type": "array", 65 - "items": { 66 - "type": "ref", 67 - "ref": "#profileEntry" 68 - } 69 - } 70 - } 71 - } 72 - } 73 - }, 74 - "profileEntry": { 75 - "type": "object", 76 - "required": [ 77 - "did" 78 - ], 79 - "properties": { 80 - "did": { 81 - "type": "string", 82 - "format": "did" 83 - }, 84 - "handle": { 85 - "type": "string" 86 - }, 87 - "uri": { 88 - "type": "string", 89 - "format": "at-uri" 90 - }, 91 - "cid": { 92 - "type": "string", 93 - "format": "cid" 94 - }, 95 - "value": { 96 - "type": "ref", 97 - "ref": "#appBskyActorProfile" 98 - }, 99 - "collection": { 100 - "type": "string", 101 - "format": "nsid" 102 - }, 103 - "rkey": { 104 - "type": "string" 105 - } 106 - } 107 - }, 108 - "appBskyActorProfile": { 109 - "type": "object", 110 - "properties": { 111 - "avatar": { 112 - "type": "blob", 113 - "accept": [ 114 - "image/png", 115 - "image/jpeg" 116 - ], 117 - "maxSize": 1000000, 118 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 119 - }, 120 - "banner": { 121 - "type": "blob", 122 - "accept": [ 123 - "image/png", 124 - "image/jpeg" 125 - ], 126 - "maxSize": 1000000, 127 - "description": "Larger horizontal image to display behind profile view." 128 - }, 129 - "labels": { 130 - "refs": [ 131 - "com.atproto.label.defs#selfLabels" 132 - ], 133 - "type": "union", 134 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 135 - }, 136 - "website": { 137 - "type": "string", 138 - "format": "uri" 139 - }, 140 - "pronouns": { 141 - "type": "string", 142 - "maxLength": 200, 143 - "description": "Free-form pronouns text.", 144 - "maxGraphemes": 20 145 - }, 146 - "createdAt": { 147 - "type": "string", 148 - "format": "datetime" 149 - }, 150 - "pinnedPost": { 151 - "ref": "com.atproto.repo.strongRef", 152 - "type": "ref" 153 - }, 154 - "description": { 155 - "type": "string", 156 - "maxLength": 2560, 157 - "description": "Free-form profile description text.", 158 - "maxGraphemes": 256 159 - }, 160 - "displayName": { 161 - "type": "string", 162 - "maxLength": 640, 163 - "maxGraphemes": 64 164 - }, 165 - "joinedViaStarterPack": { 166 - "ref": "com.atproto.repo.strongRef", 167 - "type": "ref" 168 - } 169 - } 170 - } 171 - } 172 - }
-225
lexicons/generated/org/latha/strata/entity/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.entity.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query org.latha.strata.entity records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: name, description" 32 - }, 33 - "entityType": { 34 - "type": "string", 35 - "description": "Filter by entityType" 36 - }, 37 - "name": { 38 - "type": "string", 39 - "description": "Filter by name" 40 - }, 41 - "sort": { 42 - "type": "string", 43 - "knownValues": [ 44 - "entityType", 45 - "name" 46 - ], 47 - "description": "Field to sort by (default: time_us)" 48 - }, 49 - "order": { 50 - "type": "string", 51 - "knownValues": [ 52 - "asc", 53 - "desc" 54 - ], 55 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 56 - } 57 - } 58 - }, 59 - "output": { 60 - "encoding": "application/json", 61 - "schema": { 62 - "type": "object", 63 - "required": [ 64 - "records" 65 - ], 66 - "properties": { 67 - "records": { 68 - "type": "array", 69 - "items": { 70 - "type": "ref", 71 - "ref": "#record" 72 - } 73 - }, 74 - "cursor": { 75 - "type": "string" 76 - }, 77 - "profiles": { 78 - "type": "array", 79 - "items": { 80 - "type": "ref", 81 - "ref": "#profileEntry" 82 - } 83 - } 84 - } 85 - } 86 - } 87 - }, 88 - "record": { 89 - "type": "object", 90 - "required": [ 91 - "uri", 92 - "cid", 93 - "value", 94 - "did", 95 - "collection", 96 - "rkey", 97 - "time_us" 98 - ], 99 - "properties": { 100 - "uri": { 101 - "type": "string", 102 - "format": "at-uri" 103 - }, 104 - "cid": { 105 - "type": "string", 106 - "format": "cid" 107 - }, 108 - "value": { 109 - "type": "unknown" 110 - }, 111 - "did": { 112 - "type": "string", 113 - "format": "did" 114 - }, 115 - "collection": { 116 - "type": "string", 117 - "format": "nsid" 118 - }, 119 - "rkey": { 120 - "type": "string" 121 - }, 122 - "time_us": { 123 - "type": "integer" 124 - } 125 - } 126 - }, 127 - "profileEntry": { 128 - "type": "object", 129 - "required": [ 130 - "did" 131 - ], 132 - "properties": { 133 - "did": { 134 - "type": "string", 135 - "format": "did" 136 - }, 137 - "handle": { 138 - "type": "string" 139 - }, 140 - "uri": { 141 - "type": "string", 142 - "format": "at-uri" 143 - }, 144 - "cid": { 145 - "type": "string", 146 - "format": "cid" 147 - }, 148 - "value": { 149 - "type": "ref", 150 - "ref": "#appBskyActorProfile" 151 - }, 152 - "collection": { 153 - "type": "string", 154 - "format": "nsid" 155 - }, 156 - "rkey": { 157 - "type": "string" 158 - } 159 - } 160 - }, 161 - "appBskyActorProfile": { 162 - "type": "object", 163 - "properties": { 164 - "avatar": { 165 - "type": "blob", 166 - "accept": [ 167 - "image/png", 168 - "image/jpeg" 169 - ], 170 - "maxSize": 1000000, 171 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 172 - }, 173 - "banner": { 174 - "type": "blob", 175 - "accept": [ 176 - "image/png", 177 - "image/jpeg" 178 - ], 179 - "maxSize": 1000000, 180 - "description": "Larger horizontal image to display behind profile view." 181 - }, 182 - "labels": { 183 - "refs": [ 184 - "com.atproto.label.defs#selfLabels" 185 - ], 186 - "type": "union", 187 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 188 - }, 189 - "website": { 190 - "type": "string", 191 - "format": "uri" 192 - }, 193 - "pronouns": { 194 - "type": "string", 195 - "maxLength": 200, 196 - "description": "Free-form pronouns text.", 197 - "maxGraphemes": 20 198 - }, 199 - "createdAt": { 200 - "type": "string", 201 - "format": "datetime" 202 - }, 203 - "pinnedPost": { 204 - "ref": "com.atproto.repo.strongRef", 205 - "type": "ref" 206 - }, 207 - "description": { 208 - "type": "string", 209 - "maxLength": 2560, 210 - "description": "Free-form profile description text.", 211 - "maxGraphemes": 256 212 - }, 213 - "displayName": { 214 - "type": "string", 215 - "maxLength": 640, 216 - "maxGraphemes": 64 217 - }, 218 - "joinedViaStarterPack": { 219 - "ref": "com.atproto.repo.strongRef", 220 - "type": "ref" 221 - } 222 - } 223 - } 224 - } 225 - }
-173
lexicons/generated/org/latha/strata/follow/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.follow.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single network.cosmik.follow record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - } 23 - } 24 - }, 25 - "output": { 26 - "encoding": "application/json", 27 - "schema": { 28 - "type": "object", 29 - "required": [ 30 - "uri", 31 - "value", 32 - "did", 33 - "collection", 34 - "rkey", 35 - "time_us" 36 - ], 37 - "properties": { 38 - "uri": { 39 - "type": "string", 40 - "format": "at-uri" 41 - }, 42 - "cid": { 43 - "type": "string", 44 - "format": "cid" 45 - }, 46 - "value": { 47 - "type": "ref", 48 - "ref": "network.cosmik.follow#main" 49 - }, 50 - "did": { 51 - "type": "string", 52 - "format": "did" 53 - }, 54 - "collection": { 55 - "type": "string", 56 - "format": "nsid" 57 - }, 58 - "rkey": { 59 - "type": "string" 60 - }, 61 - "time_us": { 62 - "type": "integer" 63 - }, 64 - "profiles": { 65 - "type": "array", 66 - "items": { 67 - "type": "ref", 68 - "ref": "#profileEntry" 69 - } 70 - } 71 - } 72 - } 73 - } 74 - }, 75 - "profileEntry": { 76 - "type": "object", 77 - "required": [ 78 - "did" 79 - ], 80 - "properties": { 81 - "did": { 82 - "type": "string", 83 - "format": "did" 84 - }, 85 - "handle": { 86 - "type": "string" 87 - }, 88 - "uri": { 89 - "type": "string", 90 - "format": "at-uri" 91 - }, 92 - "cid": { 93 - "type": "string", 94 - "format": "cid" 95 - }, 96 - "value": { 97 - "type": "ref", 98 - "ref": "#appBskyActorProfile" 99 - }, 100 - "collection": { 101 - "type": "string", 102 - "format": "nsid" 103 - }, 104 - "rkey": { 105 - "type": "string" 106 - } 107 - } 108 - }, 109 - "appBskyActorProfile": { 110 - "type": "object", 111 - "properties": { 112 - "avatar": { 113 - "type": "blob", 114 - "accept": [ 115 - "image/png", 116 - "image/jpeg" 117 - ], 118 - "maxSize": 1000000, 119 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 120 - }, 121 - "banner": { 122 - "type": "blob", 123 - "accept": [ 124 - "image/png", 125 - "image/jpeg" 126 - ], 127 - "maxSize": 1000000, 128 - "description": "Larger horizontal image to display behind profile view." 129 - }, 130 - "labels": { 131 - "refs": [ 132 - "com.atproto.label.defs#selfLabels" 133 - ], 134 - "type": "union", 135 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 136 - }, 137 - "website": { 138 - "type": "string", 139 - "format": "uri" 140 - }, 141 - "pronouns": { 142 - "type": "string", 143 - "maxLength": 200, 144 - "description": "Free-form pronouns text.", 145 - "maxGraphemes": 20 146 - }, 147 - "createdAt": { 148 - "type": "string", 149 - "format": "datetime" 150 - }, 151 - "pinnedPost": { 152 - "ref": "com.atproto.repo.strongRef", 153 - "type": "ref" 154 - }, 155 - "description": { 156 - "type": "string", 157 - "maxLength": 2560, 158 - "description": "Free-form profile description text.", 159 - "maxGraphemes": 256 160 - }, 161 - "displayName": { 162 - "type": "string", 163 - "maxLength": 640, 164 - "maxGraphemes": 64 165 - }, 166 - "joinedViaStarterPack": { 167 - "ref": "com.atproto.repo.strongRef", 168 - "type": "ref" 169 - } 170 - } 171 - } 172 - } 173 - }
-217
lexicons/generated/org/latha/strata/follow/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.follow.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query network.cosmik.follow records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "subject": { 30 - "type": "string", 31 - "description": "Filter by subject" 32 - }, 33 - "sort": { 34 - "type": "string", 35 - "knownValues": [ 36 - "subject" 37 - ], 38 - "description": "Field to sort by (default: time_us)" 39 - }, 40 - "order": { 41 - "type": "string", 42 - "knownValues": [ 43 - "asc", 44 - "desc" 45 - ], 46 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 47 - } 48 - } 49 - }, 50 - "output": { 51 - "encoding": "application/json", 52 - "schema": { 53 - "type": "object", 54 - "required": [ 55 - "records" 56 - ], 57 - "properties": { 58 - "records": { 59 - "type": "array", 60 - "items": { 61 - "type": "ref", 62 - "ref": "#record" 63 - } 64 - }, 65 - "cursor": { 66 - "type": "string" 67 - }, 68 - "profiles": { 69 - "type": "array", 70 - "items": { 71 - "type": "ref", 72 - "ref": "#profileEntry" 73 - } 74 - } 75 - } 76 - } 77 - } 78 - }, 79 - "record": { 80 - "type": "object", 81 - "required": [ 82 - "uri", 83 - "cid", 84 - "value", 85 - "did", 86 - "collection", 87 - "rkey", 88 - "time_us" 89 - ], 90 - "properties": { 91 - "uri": { 92 - "type": "string", 93 - "format": "at-uri" 94 - }, 95 - "cid": { 96 - "type": "string", 97 - "format": "cid" 98 - }, 99 - "value": { 100 - "type": "ref", 101 - "ref": "network.cosmik.follow#main" 102 - }, 103 - "did": { 104 - "type": "string", 105 - "format": "did" 106 - }, 107 - "collection": { 108 - "type": "string", 109 - "format": "nsid" 110 - }, 111 - "rkey": { 112 - "type": "string" 113 - }, 114 - "time_us": { 115 - "type": "integer" 116 - } 117 - } 118 - }, 119 - "profileEntry": { 120 - "type": "object", 121 - "required": [ 122 - "did" 123 - ], 124 - "properties": { 125 - "did": { 126 - "type": "string", 127 - "format": "did" 128 - }, 129 - "handle": { 130 - "type": "string" 131 - }, 132 - "uri": { 133 - "type": "string", 134 - "format": "at-uri" 135 - }, 136 - "cid": { 137 - "type": "string", 138 - "format": "cid" 139 - }, 140 - "value": { 141 - "type": "ref", 142 - "ref": "#appBskyActorProfile" 143 - }, 144 - "collection": { 145 - "type": "string", 146 - "format": "nsid" 147 - }, 148 - "rkey": { 149 - "type": "string" 150 - } 151 - } 152 - }, 153 - "appBskyActorProfile": { 154 - "type": "object", 155 - "properties": { 156 - "avatar": { 157 - "type": "blob", 158 - "accept": [ 159 - "image/png", 160 - "image/jpeg" 161 - ], 162 - "maxSize": 1000000, 163 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 164 - }, 165 - "banner": { 166 - "type": "blob", 167 - "accept": [ 168 - "image/png", 169 - "image/jpeg" 170 - ], 171 - "maxSize": 1000000, 172 - "description": "Larger horizontal image to display behind profile view." 173 - }, 174 - "labels": { 175 - "refs": [ 176 - "com.atproto.label.defs#selfLabels" 177 - ], 178 - "type": "union", 179 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 180 - }, 181 - "website": { 182 - "type": "string", 183 - "format": "uri" 184 - }, 185 - "pronouns": { 186 - "type": "string", 187 - "maxLength": 200, 188 - "description": "Free-form pronouns text.", 189 - "maxGraphemes": 20 190 - }, 191 - "createdAt": { 192 - "type": "string", 193 - "format": "datetime" 194 - }, 195 - "pinnedPost": { 196 - "ref": "com.atproto.repo.strongRef", 197 - "type": "ref" 198 - }, 199 - "description": { 200 - "type": "string", 201 - "maxLength": 2560, 202 - "description": "Free-form profile description text.", 203 - "maxGraphemes": 256 204 - }, 205 - "displayName": { 206 - "type": "string", 207 - "maxLength": 640, 208 - "maxGraphemes": 64 209 - }, 210 - "joinedViaStarterPack": { 211 - "ref": "com.atproto.repo.strongRef", 212 - "type": "ref" 213 - } 214 - } 215 - } 216 - } 217 - }
-27
lexicons/generated/org/latha/strata/getCursor.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.getCursor", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get the current cursor position", 8 - "output": { 9 - "encoding": "application/json", 10 - "schema": { 11 - "type": "object", 12 - "properties": { 13 - "time_us": { 14 - "type": "integer" 15 - }, 16 - "date": { 17 - "type": "string" 18 - }, 19 - "seconds_ago": { 20 - "type": "integer" 21 - } 22 - } 23 - } 24 - } 25 - } 26 - } 27 - }
-51
lexicons/generated/org/latha/strata/getOverview.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.getOverview", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get an overview of all indexed collections", 8 - "output": { 9 - "encoding": "application/json", 10 - "schema": { 11 - "type": "object", 12 - "required": [ 13 - "total_records", 14 - "collections" 15 - ], 16 - "properties": { 17 - "total_records": { 18 - "type": "integer" 19 - }, 20 - "collections": { 21 - "type": "array", 22 - "items": { 23 - "type": "ref", 24 - "ref": "#collectionStats" 25 - } 26 - } 27 - } 28 - } 29 - } 30 - }, 31 - "collectionStats": { 32 - "type": "object", 33 - "required": [ 34 - "collection", 35 - "records", 36 - "unique_users" 37 - ], 38 - "properties": { 39 - "collection": { 40 - "type": "string" 41 - }, 42 - "records": { 43 - "type": "integer" 44 - }, 45 - "unique_users": { 46 - "type": "integer" 47 - } 48 - } 49 - } 50 - } 51 - }
-138
lexicons/generated/org/latha/strata/getProfile.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.getProfile", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a user's profiles by DID or handle", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "actor" 12 - ], 13 - "properties": { 14 - "actor": { 15 - "type": "string", 16 - "format": "at-identifier", 17 - "description": "DID or handle of the user" 18 - } 19 - } 20 - }, 21 - "output": { 22 - "encoding": "application/json", 23 - "schema": { 24 - "type": "object", 25 - "required": [ 26 - "profiles" 27 - ], 28 - "properties": { 29 - "profiles": { 30 - "type": "array", 31 - "items": { 32 - "type": "ref", 33 - "ref": "#profileEntry" 34 - } 35 - } 36 - } 37 - } 38 - } 39 - }, 40 - "profileEntry": { 41 - "type": "object", 42 - "required": [ 43 - "did" 44 - ], 45 - "properties": { 46 - "did": { 47 - "type": "string", 48 - "format": "did" 49 - }, 50 - "handle": { 51 - "type": "string" 52 - }, 53 - "uri": { 54 - "type": "string", 55 - "format": "at-uri" 56 - }, 57 - "cid": { 58 - "type": "string", 59 - "format": "cid" 60 - }, 61 - "value": { 62 - "type": "ref", 63 - "ref": "#appBskyActorProfile" 64 - }, 65 - "collection": { 66 - "type": "string", 67 - "format": "nsid" 68 - }, 69 - "rkey": { 70 - "type": "string" 71 - } 72 - } 73 - }, 74 - "appBskyActorProfile": { 75 - "type": "object", 76 - "properties": { 77 - "avatar": { 78 - "type": "blob", 79 - "accept": [ 80 - "image/png", 81 - "image/jpeg" 82 - ], 83 - "maxSize": 1000000, 84 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 85 - }, 86 - "banner": { 87 - "type": "blob", 88 - "accept": [ 89 - "image/png", 90 - "image/jpeg" 91 - ], 92 - "maxSize": 1000000, 93 - "description": "Larger horizontal image to display behind profile view." 94 - }, 95 - "labels": { 96 - "refs": [ 97 - "com.atproto.label.defs#selfLabels" 98 - ], 99 - "type": "union", 100 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 101 - }, 102 - "website": { 103 - "type": "string", 104 - "format": "uri" 105 - }, 106 - "pronouns": { 107 - "type": "string", 108 - "maxLength": 200, 109 - "description": "Free-form pronouns text.", 110 - "maxGraphemes": 20 111 - }, 112 - "createdAt": { 113 - "type": "string", 114 - "format": "datetime" 115 - }, 116 - "pinnedPost": { 117 - "ref": "com.atproto.repo.strongRef", 118 - "type": "ref" 119 - }, 120 - "description": { 121 - "type": "string", 122 - "maxLength": 2560, 123 - "description": "Free-form profile description text.", 124 - "maxGraphemes": 256 125 - }, 126 - "displayName": { 127 - "type": "string", 128 - "maxLength": 640, 129 - "maxGraphemes": 64 130 - }, 131 - "joinedViaStarterPack": { 132 - "ref": "com.atproto.repo.strongRef", 133 - "type": "ref" 134 - } 135 - } 136 - } 137 - } 138 - }
-59
lexicons/generated/org/latha/strata/notifyOfUpdate.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.notifyOfUpdate", 4 - "defs": { 5 - "main": { 6 - "type": "procedure", 7 - "description": "Notify of a record change for immediate indexing. Fetches the record from the user's PDS and indexes (or deletes) it.", 8 - "input": { 9 - "encoding": "application/json", 10 - "schema": { 11 - "type": "object", 12 - "properties": { 13 - "uri": { 14 - "type": "string", 15 - "format": "at-uri", 16 - "description": "Single AT URI to fetch and index" 17 - }, 18 - "uris": { 19 - "type": "array", 20 - "items": { 21 - "type": "string", 22 - "format": "at-uri" 23 - }, 24 - "maxLength": 25, 25 - "description": "Batch of AT URIs to fetch and index (max 25)" 26 - } 27 - } 28 - } 29 - }, 30 - "output": { 31 - "encoding": "application/json", 32 - "schema": { 33 - "type": "object", 34 - "required": [ 35 - "indexed", 36 - "deleted" 37 - ], 38 - "properties": { 39 - "indexed": { 40 - "type": "integer", 41 - "description": "Number of records created or updated" 42 - }, 43 - "deleted": { 44 - "type": "integer", 45 - "description": "Number of records deleted (not found on PDS)" 46 - }, 47 - "errors": { 48 - "type": "array", 49 - "items": { 50 - "type": "string" 51 - }, 52 - "description": "Errors for individual URIs that could not be processed" 53 - } 54 - } 55 - } 56 - } 57 - } 58 - } 59 - }
-216
lexicons/generated/org/latha/strata/reasoning/getRecord.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.reasoning.getRecord", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Get a single org.latha.strata.reasoning record by AT URI", 8 - "parameters": { 9 - "type": "params", 10 - "required": [ 11 - "uri" 12 - ], 13 - "properties": { 14 - "uri": { 15 - "type": "string", 16 - "format": "at-uri", 17 - "description": "AT URI of the record" 18 - }, 19 - "profiles": { 20 - "type": "boolean", 21 - "description": "Include profile + identity info keyed by DID" 22 - }, 23 - "hydrateCitation": { 24 - "type": "boolean", 25 - "description": "Embed the referenced citation record" 26 - } 27 - } 28 - }, 29 - "output": { 30 - "encoding": "application/json", 31 - "schema": { 32 - "type": "object", 33 - "required": [ 34 - "uri", 35 - "value", 36 - "did", 37 - "collection", 38 - "rkey", 39 - "time_us" 40 - ], 41 - "properties": { 42 - "uri": { 43 - "type": "string", 44 - "format": "at-uri" 45 - }, 46 - "cid": { 47 - "type": "string", 48 - "format": "cid" 49 - }, 50 - "value": { 51 - "type": "unknown" 52 - }, 53 - "did": { 54 - "type": "string", 55 - "format": "did" 56 - }, 57 - "collection": { 58 - "type": "string", 59 - "format": "nsid" 60 - }, 61 - "rkey": { 62 - "type": "string" 63 - }, 64 - "time_us": { 65 - "type": "integer" 66 - }, 67 - "citation": { 68 - "type": "ref", 69 - "ref": "#refCitationRecord" 70 - }, 71 - "profiles": { 72 - "type": "array", 73 - "items": { 74 - "type": "ref", 75 - "ref": "#profileEntry" 76 - } 77 - } 78 - } 79 - } 80 - } 81 - }, 82 - "refCitationRecord": { 83 - "type": "object", 84 - "required": [ 85 - "uri", 86 - "did", 87 - "collection", 88 - "rkey", 89 - "time_us" 90 - ], 91 - "properties": { 92 - "uri": { 93 - "type": "string", 94 - "format": "at-uri" 95 - }, 96 - "did": { 97 - "type": "string", 98 - "format": "did" 99 - }, 100 - "collection": { 101 - "type": "string", 102 - "format": "nsid" 103 - }, 104 - "rkey": { 105 - "type": "string" 106 - }, 107 - "cid": { 108 - "type": "string" 109 - }, 110 - "record": { 111 - "type": "unknown" 112 - }, 113 - "time_us": { 114 - "type": "integer" 115 - } 116 - } 117 - }, 118 - "profileEntry": { 119 - "type": "object", 120 - "required": [ 121 - "did" 122 - ], 123 - "properties": { 124 - "did": { 125 - "type": "string", 126 - "format": "did" 127 - }, 128 - "handle": { 129 - "type": "string" 130 - }, 131 - "uri": { 132 - "type": "string", 133 - "format": "at-uri" 134 - }, 135 - "cid": { 136 - "type": "string", 137 - "format": "cid" 138 - }, 139 - "value": { 140 - "type": "ref", 141 - "ref": "#appBskyActorProfile" 142 - }, 143 - "collection": { 144 - "type": "string", 145 - "format": "nsid" 146 - }, 147 - "rkey": { 148 - "type": "string" 149 - } 150 - } 151 - }, 152 - "appBskyActorProfile": { 153 - "type": "object", 154 - "properties": { 155 - "avatar": { 156 - "type": "blob", 157 - "accept": [ 158 - "image/png", 159 - "image/jpeg" 160 - ], 161 - "maxSize": 1000000, 162 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 163 - }, 164 - "banner": { 165 - "type": "blob", 166 - "accept": [ 167 - "image/png", 168 - "image/jpeg" 169 - ], 170 - "maxSize": 1000000, 171 - "description": "Larger horizontal image to display behind profile view." 172 - }, 173 - "labels": { 174 - "refs": [ 175 - "com.atproto.label.defs#selfLabels" 176 - ], 177 - "type": "union", 178 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 179 - }, 180 - "website": { 181 - "type": "string", 182 - "format": "uri" 183 - }, 184 - "pronouns": { 185 - "type": "string", 186 - "maxLength": 200, 187 - "description": "Free-form pronouns text.", 188 - "maxGraphemes": 20 189 - }, 190 - "createdAt": { 191 - "type": "string", 192 - "format": "datetime" 193 - }, 194 - "pinnedPost": { 195 - "ref": "com.atproto.repo.strongRef", 196 - "type": "ref" 197 - }, 198 - "description": { 199 - "type": "string", 200 - "maxLength": 2560, 201 - "description": "Free-form profile description text.", 202 - "maxGraphemes": 256 203 - }, 204 - "displayName": { 205 - "type": "string", 206 - "maxLength": 640, 207 - "maxGraphemes": 64 208 - }, 209 - "joinedViaStarterPack": { 210 - "ref": "com.atproto.repo.strongRef", 211 - "type": "ref" 212 - } 213 - } 214 - } 215 - } 216 - }
-269
lexicons/generated/org/latha/strata/reasoning/listRecords.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.latha.strata.reasoning.listRecords", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "Query org.latha.strata.reasoning records with filters", 8 - "parameters": { 9 - "type": "params", 10 - "properties": { 11 - "limit": { 12 - "type": "integer", 13 - "minimum": 1, 14 - "maximum": 200, 15 - "default": 50 16 - }, 17 - "cursor": { 18 - "type": "string" 19 - }, 20 - "actor": { 21 - "type": "string", 22 - "format": "at-identifier", 23 - "description": "Filter by DID or handle (triggers on-demand backfill)" 24 - }, 25 - "profiles": { 26 - "type": "boolean", 27 - "description": "Include profile + identity info keyed by DID" 28 - }, 29 - "search": { 30 - "type": "string", 31 - "description": "Full-text search across: question, evidence" 32 - }, 33 - "method": { 34 - "type": "string", 35 - "description": "Filter by method" 36 - }, 37 - "confidence": { 38 - "type": "string", 39 - "description": "Filter by confidence" 40 - }, 41 - "hydrateCitation": { 42 - "type": "boolean", 43 - "description": "Embed the referenced citation record" 44 - }, 45 - "sort": { 46 - "type": "string", 47 - "knownValues": [ 48 - "method", 49 - "confidence" 50 - ], 51 - "description": "Field to sort by (default: time_us)" 52 - }, 53 - "order": { 54 - "type": "string", 55 - "knownValues": [ 56 - "asc", 57 - "desc" 58 - ], 59 - "description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)" 60 - } 61 - } 62 - }, 63 - "output": { 64 - "encoding": "application/json", 65 - "schema": { 66 - "type": "object", 67 - "required": [ 68 - "records" 69 - ], 70 - "properties": { 71 - "records": { 72 - "type": "array", 73 - "items": { 74 - "type": "ref", 75 - "ref": "#record" 76 - } 77 - }, 78 - "cursor": { 79 - "type": "string" 80 - }, 81 - "profiles": { 82 - "type": "array", 83 - "items": { 84 - "type": "ref", 85 - "ref": "#profileEntry" 86 - } 87 - } 88 - } 89 - } 90 - } 91 - }, 92 - "record": { 93 - "type": "object", 94 - "required": [ 95 - "uri", 96 - "cid", 97 - "value", 98 - "did", 99 - "collection", 100 - "rkey", 101 - "time_us" 102 - ], 103 - "properties": { 104 - "uri": { 105 - "type": "string", 106 - "format": "at-uri" 107 - }, 108 - "cid": { 109 - "type": "string", 110 - "format": "cid" 111 - }, 112 - "value": { 113 - "type": "unknown" 114 - }, 115 - "did": { 116 - "type": "string", 117 - "format": "did" 118 - }, 119 - "collection": { 120 - "type": "string", 121 - "format": "nsid" 122 - }, 123 - "rkey": { 124 - "type": "string" 125 - }, 126 - "time_us": { 127 - "type": "integer" 128 - }, 129 - "citation": { 130 - "type": "ref", 131 - "ref": "#refCitationRecord" 132 - } 133 - } 134 - }, 135 - "refCitationRecord": { 136 - "type": "object", 137 - "required": [ 138 - "uri", 139 - "did", 140 - "collection", 141 - "rkey", 142 - "time_us" 143 - ], 144 - "properties": { 145 - "uri": { 146 - "type": "string", 147 - "format": "at-uri" 148 - }, 149 - "did": { 150 - "type": "string", 151 - "format": "did" 152 - }, 153 - "collection": { 154 - "type": "string", 155 - "format": "nsid" 156 - }, 157 - "rkey": { 158 - "type": "string" 159 - }, 160 - "cid": { 161 - "type": "string" 162 - }, 163 - "record": { 164 - "type": "unknown" 165 - }, 166 - "time_us": { 167 - "type": "integer" 168 - } 169 - } 170 - }, 171 - "profileEntry": { 172 - "type": "object", 173 - "required": [ 174 - "did" 175 - ], 176 - "properties": { 177 - "did": { 178 - "type": "string", 179 - "format": "did" 180 - }, 181 - "handle": { 182 - "type": "string" 183 - }, 184 - "uri": { 185 - "type": "string", 186 - "format": "at-uri" 187 - }, 188 - "cid": { 189 - "type": "string", 190 - "format": "cid" 191 - }, 192 - "value": { 193 - "type": "ref", 194 - "ref": "#appBskyActorProfile" 195 - }, 196 - "collection": { 197 - "type": "string", 198 - "format": "nsid" 199 - }, 200 - "rkey": { 201 - "type": "string" 202 - } 203 - } 204 - }, 205 - "appBskyActorProfile": { 206 - "type": "object", 207 - "properties": { 208 - "avatar": { 209 - "type": "blob", 210 - "accept": [ 211 - "image/png", 212 - "image/jpeg" 213 - ], 214 - "maxSize": 1000000, 215 - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" 216 - }, 217 - "banner": { 218 - "type": "blob", 219 - "accept": [ 220 - "image/png", 221 - "image/jpeg" 222 - ], 223 - "maxSize": 1000000, 224 - "description": "Larger horizontal image to display behind profile view." 225 - }, 226 - "labels": { 227 - "refs": [ 228 - "com.atproto.label.defs#selfLabels" 229 - ], 230 - "type": "union", 231 - "description": "Self-label values, specific to the Bluesky application, on the overall account." 232 - }, 233 - "website": { 234 - "type": "string", 235 - "format": "uri" 236 - }, 237 - "pronouns": { 238 - "type": "string", 239 - "maxLength": 200, 240 - "description": "Free-form pronouns text.", 241 - "maxGraphemes": 20 242 - }, 243 - "createdAt": { 244 - "type": "string", 245 - "format": "datetime" 246 - }, 247 - "pinnedPost": { 248 - "ref": "com.atproto.repo.strongRef", 249 - "type": "ref" 250 - }, 251 - "description": { 252 - "type": "string", 253 - "maxLength": 2560, 254 - "description": "Free-form profile description text.", 255 - "maxGraphemes": 256 256 - }, 257 - "displayName": { 258 - "type": "string", 259 - "maxLength": 640, 260 - "maxGraphemes": 64 261 - }, 262 - "joinedViaStarterPack": { 263 - "ref": "com.atproto.repo.strongRef", 264 - "type": "ref" 265 - } 266 - } 267 - } 268 - } 269 - }
+5 -5
lexicons/org/latha/strata/analyze.json lexicons/org/latha/island/analyze.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.analyze", 3 + "id": "org.latha.island.analyze", 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure", 7 - "description": "Run strata analysis on an island. Cross-references the island's vertices and edges against vault and carry data, producing themes, connections, tensions, and a synthesis. Returns an org.latha.strata record ready to be written to PDS.", 7 + "description": "Run strata analysis on an island. Cross-references the island's vertices and edges against vault and carry data, producing themes, connections, tensions, and a synthesis. Returns an org.latha.island record ready to be written to PDS.", 8 8 "input": { 9 9 "encoding": "application/json", 10 10 "schema": { ··· 35 35 }, 36 36 "record": { 37 37 "type": "ref", 38 - "ref": "org.latha.strata#main", 39 - "description": "Complete org.latha.strata record ready to be written to PDS." 38 + "ref": "org.latha.island#main", 39 + "description": "Complete org.latha.island record ready to be written to PDS." 40 40 } 41 41 } 42 42 } ··· 132 132 "type": "array", 133 133 "items": { 134 134 "type": "ref", 135 - "ref": "org.latha.strata#connection" 135 + "ref": "org.latha.island#connection" 136 136 } 137 137 }, 138 138 "tensions": {
+4 -4
lexicons/org/latha/strata/citation.json lexicons/org/latha/island/citation.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.citation", 3 + "id": "org.latha.island.citation", 4 4 "description": "A research citation with structured metadata and takeaway, tracked in the Strata memory architecture.", 5 5 "defs": { 6 6 "main": { ··· 43 43 "confidence": { 44 44 "type": "string", 45 45 "enum": [ 46 - "org.latha.strata.defs#high", 47 - "org.latha.strata.defs#medium", 48 - "org.latha.strata.defs#low" 46 + "org.latha.island.defs#high", 47 + "org.latha.island.defs#medium", 48 + "org.latha.island.defs#low" 49 49 ], 50 50 "description": "Confidence level in the citation's relevance and accuracy." 51 51 },
+12 -12
lexicons/org/latha/strata/defs.json lexicons/org/latha/island/defs.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.defs", 4 - "description": "Shared type definitions for the org.latha.strata namespace — a three-layer memory architecture (Vault, Carry, MemFS).", 3 + "id": "org.latha.island.defs", 4 + "description": "Shared type definitions for the org.latha.island namespace — a three-layer memory architecture (Vault, Carry, MemFS).", 5 5 "defs": { 6 6 "claimRef": { 7 7 "type": "object", ··· 16 16 "layer": { 17 17 "type": "string", 18 18 "knownValues": [ 19 - "org.latha.strata.defs#vault", 20 - "org.latha.strata.defs#carry", 21 - "org.latha.strata.defs#memfs" 19 + "org.latha.island.defs#vault", 20 + "org.latha.island.defs#carry", 21 + "org.latha.island.defs#memfs" 22 22 ], 23 23 "description": "Which Strata layer holds the canonical copy." 24 24 } ··· 32 32 "method": { 33 33 "type": "string", 34 34 "knownValues": [ 35 - "org.latha.strata.defs#web-search", 36 - "org.latha.strata.defs#human-input", 37 - "org.latha.strata.defs#inference", 38 - "org.latha.strata.defs#carry-lookup" 35 + "org.latha.island.defs#webSearch", 36 + "org.latha.island.defs#humanInput", 37 + "org.latha.island.defs#inference", 38 + "org.latha.island.defs#carryLookup" 39 39 ], 40 40 "description": "How the claim was produced." 41 41 }, ··· 91 91 "type": "token", 92 92 "description": "Entity type: a software tool, service, or platform." 93 93 }, 94 - "web-search": { 94 + "webSearch": { 95 95 "type": "token", 96 96 "description": "Claim method: produced via web search." 97 97 }, 98 - "human-input": { 98 + "humanInput": { 99 99 "type": "token", 100 100 "description": "Claim method: directly provided by a human." 101 101 }, ··· 103 103 "type": "token", 104 104 "description": "Claim method: inferred by an agent from other evidence." 105 105 }, 106 - "carry-lookup": { 106 + "carryLookup": { 107 107 "type": "token", 108 108 "description": "Claim method: looked up from existing carry data." 109 109 }
+1 -1
lexicons/org/latha/strata/deriveIsland.json lexicons/org/latha/island/deriveIsland.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.deriveIsland", 3 + "id": "org.latha.island.deriveIsland", 4 4 "defs": { 5 5 "main": { 6 6 "type": "procedure",
+5 -5
lexicons/org/latha/strata/entity.json lexicons/org/latha/island/entity.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.entity", 3 + "id": "org.latha.island.entity", 4 4 "description": "A tracked entity — person, organization, concept, or tool — managed across Strata memory layers.", 5 5 "defs": { 6 6 "main": { ··· 19 19 "entityType": { 20 20 "type": "string", 21 21 "enum": [ 22 - "org.latha.strata.defs#person", 23 - "org.latha.strata.defs#org", 24 - "org.latha.strata.defs#concept", 25 - "org.latha.strata.defs#tool" 22 + "org.latha.island.defs#person", 23 + "org.latha.island.defs#org", 24 + "org.latha.island.defs#concept", 25 + "org.latha.island.defs#tool" 26 26 ], 27 27 "description": "Category of the entity." 28 28 },
+6 -6
lexicons/org/latha/strata/getIsland.json lexicons/org/latha/island/getIsland.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.getIsland", 3 + "id": "org.latha.island.getIsland", 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", ··· 11 11 "properties": { 12 12 "id": { 13 13 "type": "string", 14 - "description": "Island ID (truncated SHA-256 of lexmin vertex) or AT URI of an org.latha.strata record." 14 + "description": "Island ID (truncated SHA-256 of lexmin vertex) or AT URI of an org.latha.island record." 15 15 } 16 16 } 17 17 }, ··· 28 28 "recordUri": { 29 29 "type": "string", 30 30 "format": "at-uri", 31 - "description": "AT URI of the org.latha.strata record, if analyzed." 31 + "description": "AT URI of the org.latha.island record, if analyzed." 32 32 } 33 33 } 34 34 } ··· 54 54 "type": "array", 55 55 "items": { 56 56 "type": "ref", 57 - "ref": "org.latha.strata.deriveIsland#edge" 57 + "ref": "org.latha.island.deriveIsland#edge" 58 58 } 59 59 }, 60 60 "vertexMeta": { 61 - "type": "json", 61 + "type": "unknown", 62 62 "description": "Map of vertex URI to {title, description, type}." 63 63 }, 64 64 "summary": { ··· 66 66 "description": "Strata analysis title." 67 67 }, 68 68 "strata": { 69 - "type": "json", 69 + "type": "unknown", 70 70 "description": "Full strata analysis data (themes, connections, tensions, synthesis)." 71 71 } 72 72 }
+2 -2
lexicons/org/latha/strata/getIslands.json lexicons/org/latha/island/getIslands.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.getIslands", 3 + "id": "org.latha.island.getIslands", 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", ··· 66 66 "recordUri": { 67 67 "type": "string", 68 68 "format": "at-uri", 69 - "description": "AT URI of the org.latha.strata record, if analyzed." 69 + "description": "AT URI of the org.latha.island record, if analyzed." 70 70 } 71 71 } 72 72 }
+9 -9
lexicons/org/latha/strata/reasoning.json lexicons/org/latha/island/reasoning.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata.reasoning", 3 + "id": "org.latha.island.reasoning", 4 4 "description": "Provenance for a Strata claim — why we believe something, what method produced it, and what it justifies.", 5 5 "defs": { 6 6 "main": { ··· 19 19 "method": { 20 20 "type": "string", 21 21 "knownValues": [ 22 - "org.latha.strata.defs#web-search", 23 - "org.latha.strata.defs#human-input", 24 - "org.latha.strata.defs#inference", 25 - "org.latha.strata.defs#carry-lookup" 22 + "org.latha.island.defs#webSearch", 23 + "org.latha.island.defs#humanInput", 24 + "org.latha.island.defs#inference", 25 + "org.latha.island.defs#carryLookup" 26 26 ], 27 27 "description": "How the claim was produced. Open set — future methods can be added without schema changes." 28 28 }, 29 29 "justifies": { 30 30 "type": "string", 31 31 "format": "at-uri", 32 - "description": "AT-URI of the claim this reasoning supports (e.g. 'at://did:plc:.../org.latha.strata.citation/3tx...')." 32 + "description": "AT-URI of the claim this reasoning supports (e.g. 'at://did:plc:.../org.latha.island.citation/3tx...')." 33 33 }, 34 34 "confidence": { 35 35 "type": "string", 36 36 "enum": [ 37 - "org.latha.strata.defs#high", 38 - "org.latha.strata.defs#medium", 39 - "org.latha.strata.defs#low" 37 + "org.latha.island.defs#high", 38 + "org.latha.island.defs#medium", 39 + "org.latha.island.defs#low" 40 40 ], 41 41 "description": "Confidence level in the reasoning." 42 42 },
+35 -30
lexicons/org/latha/strata/strata.json lexicons/org/latha/island/island.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "org.latha.strata", 3 + "id": "org.latha.island", 4 4 "description": "A structured synthesis of an external source, cross-referenced with local knowledge (carry + vault). The stigmergic signal — a pheromone trail others can discover and build on.", 5 5 "defs": { 6 6 "main": { ··· 20 20 "type": "array", 21 21 "maxLength": 500, 22 22 "items": { 23 - "type": "object", 24 - "required": ["uri", "source", "target"], 25 - "properties": { 26 - "uri": { 27 - "type": "string", 28 - "format": "at-uri", 29 - "description": "AT URI of the connection record" 30 - }, 31 - "source": { 32 - "type": "string", 33 - "description": "Source vertex URI" 34 - }, 35 - "target": { 36 - "type": "string", 37 - "description": "Target vertex URI" 38 - }, 39 - "connectionType": { 40 - "type": "string", 41 - "description": "Type of connection (relates, supports, contradicts, etc.)" 42 - }, 43 - "note": { 44 - "type": "string", 45 - "maxGraphemes": 500, 46 - "description": "Optional note about the connection" 47 - } 48 - } 23 + "type": "ref", 24 + "ref": "#edge" 49 25 }, 50 26 "description": "The island's edges — connection records with their graph structure embedded. No lookups needed to render." 51 27 }, ··· 76 52 } 77 53 } 78 54 }, 55 + "edge": { 56 + "type": "object", 57 + "description": "A connection edge within the island.", 58 + "required": ["uri", "source", "target"], 59 + "properties": { 60 + "uri": { 61 + "type": "string", 62 + "format": "at-uri", 63 + "description": "AT URI of the connection record" 64 + }, 65 + "source": { 66 + "type": "string", 67 + "description": "Source vertex URI" 68 + }, 69 + "target": { 70 + "type": "string", 71 + "description": "Target vertex URI" 72 + }, 73 + "connectionType": { 74 + "type": "string", 75 + "description": "Type of connection (relates, supports, contradicts, etc.)" 76 + }, 77 + "note": { 78 + "type": "string", 79 + "maxGraphemes": 500, 80 + "description": "Optional note about the connection" 81 + } 82 + } 83 + }, 79 84 "sourceRef": { 80 85 "type": "object", 81 86 "description": "Reference to the source record that triggered the analysis.", ··· 157 162 "entityType": { 158 163 "type": "string", 159 164 "knownValues": [ 160 - "org.latha.strata.defs#claimRef", 161 - "org.latha.strata.defs#sourceRef" 165 + "org.latha.island.defs#claimRef", 166 + "org.latha.island.defs#sourceRef" 162 167 ], 163 168 "description": "Type of carry entity." 164 169 }, ··· 177 182 "description": "Summary of the carry entity." 178 183 } 179 184 } 180 - }, 185 + } 181 186 } 182 187 }
+6 -6
src/contrail.config.ts
··· 76 76 }; 77 77 78 78 export const config: ContrailConfig = { 79 - namespace: "org.latha.strata", 79 + namespace: "org.latha.island", 80 80 collections: { 81 81 // ── Semble records (indexed from the network) ────────────────── 82 82 ··· 144 144 // ── Strata analysis records (generated by this appview) ──────── 145 145 146 146 citation: { 147 - collection: "org.latha.strata.citation", 147 + collection: "org.latha.island.citation", 148 148 queryable: { 149 149 url: {}, 150 150 confidence: {}, ··· 161 161 }, 162 162 163 163 entity: { 164 - collection: "org.latha.strata.entity", 164 + collection: "org.latha.island.entity", 165 165 queryable: { 166 166 entityType: {}, 167 167 name: {}, ··· 170 170 }, 171 171 172 172 reasoning: { 173 - collection: "org.latha.strata.reasoning", 173 + collection: "org.latha.island.reasoning", 174 174 queryable: { 175 175 method: {}, 176 176 confidence: {}, ··· 187 187 // ── Strata synthesis: the stigmergic signal ──────────────────── 188 188 // 189 189 // When a user runs Strata analysis on a Semble card, the output 190 - // is an org.latha.strata record on their PDS. It's a pheromone 190 + // is an org.latha.island record on their PDS. It's a pheromone 191 191 // trail — others discover it, build on it, the network effect 192 192 // compounds. Carry stays local-first; only summaries go into 193 193 // the record unless explicitly published as companion records. 194 194 195 195 strata: { 196 - collection: "org.latha.strata", 196 + collection: "org.latha.island", 197 197 queryable: { 198 198 "source.uri": {}, 199 199 "source.collection": {},
+8 -8
src/frontend/app.ts
··· 4 4 * The knowledge graph is a set of islands (connected components). 5 5 * Each island is a cluster of linked URLs discovered via 6 6 * network.cosmik.connection records. Strata analysis runs on an 7 - * island and produces an org.latha.strata record. 7 + * island and produces an org.latha.island record. 8 8 */ 9 9 10 10 // ── Types ────────────────────────────────────────────────────────────────── ··· 559 559 // If vertexMeta is missing (summary mode), fetch full data 560 560 if (!island.vertexMeta || Object.keys(island.vertexMeta).length === 0) { 561 561 try { 562 - const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.strata.getIslands?limit=50"); 562 + const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.island.getIslands?limit=50"); 563 563 const full = data.islands?.find(i => i.id === islandId); 564 564 if (full) { 565 565 island = full; ··· 630 630 // If the ID is an AT URI, fetch from the strata record endpoint 631 631 if (islandId.startsWith("at://")) { 632 632 try { 633 - const data = await apiGet<{ island: Island; recordUri: string }>(`/xrpc/org.latha.strata.getRecord?uri=${encodeURIComponent(islandId)}`); 633 + const data = await apiGet<{ island: Island; recordUri: string }>(`/xrpc/org.latha.island.getRecord?uri=${encodeURIComponent(islandId)}`); 634 634 island = data.island; 635 635 island.recordUri = data.recordUri; 636 636 } catch { ··· 644 644 // If not in memory, fetch from API 645 645 if (!island) { 646 646 try { 647 - const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.strata.getIslands"); 647 + const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.island.getIslands"); 648 648 island = data.islands.find(i => i.id === islandId) || null; 649 649 if (island) islands = data.islands; 650 650 } catch {} ··· 852 852 853 853 try { 854 854 const analysis = collectAnalysis(); 855 - const res = await fetch("/xrpc/org.latha.strata.updateRecord", { 855 + const res = await fetch("/xrpc/org.latha.island.updateRecord", { 856 856 method: "PUT", 857 857 headers: { "Content-Type": "application/json" }, 858 858 body: JSON.stringify({ uri: island.recordUri, analysis }), ··· 880 880 regenBtn.setAttribute("disabled", "true"); 881 881 882 882 try { 883 - const res = await fetch("/xrpc/org.latha.strata.analyze", { 883 + const res = await fetch("/xrpc/org.latha.island.analyze", { 884 884 method: "POST", 885 885 headers: { "Content-Type": "application/json" }, 886 886 body: JSON.stringify({ ··· 1059 1059 // Try API first, fall back to server-rendered data 1060 1060 // Use summary mode — skip vertexMeta (saves ~250KB) 1061 1061 try { 1062 - const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.strata.getIslands?summary=true"); 1062 + const data = await apiGet<{ islands: Island[] }>("/xrpc/org.latha.island.getIslands?summary=true"); 1063 1063 islands = data.islands || []; 1064 1064 } catch { 1065 1065 const serverData = (window as any).__ISLANDS__; ··· 1105 1105 1106 1106 async function initAuth(): Promise<void> { 1107 1107 try { 1108 - const res = await fetch("/xrpc/org.latha.strata.getProfile", { 1108 + const res = await fetch("/xrpc/org.latha.island.getProfile", { 1109 1109 headers: { Authorization: "Bearer " + localStorage.getItem("stigmergic_at") }, 1110 1110 }); 1111 1111 if (res.ok) {
+1 -1
src/island-explore.ts
··· 1 1 /** 2 2 * island:explore <aturi> 3 3 * 4 - * Local-first island explorer that ingests an org.latha.strata record, identifies 4 + * Local-first island explorer that ingests an org.latha.island record, identifies 5 5 * fringe nodes, and emits endofunctor suggestions for re-attaching them to the island. 6 6 * 7 7 * Scoring is carry-backed: crawled page text is matched against the carry entity
+9 -18
src/lexicon-types/index.ts
··· 4 4 export * as NetworkCosmikConnection from "./types/network/cosmik/connection.js"; 5 5 export * as NetworkCosmikDefs from "./types/network/cosmik/defs.js"; 6 6 export * as NetworkCosmikFollow from "./types/network/cosmik/follow.js"; 7 - export * as OrgLathaStrataCardGetRecord from "./types/org/latha/strata/card/getRecord.js"; 8 - export * as OrgLathaStrataCardListRecords from "./types/org/latha/strata/card/listRecords.js"; 9 - export * as OrgLathaStrataCitationGetRecord from "./types/org/latha/strata/citation/getRecord.js"; 10 - export * as OrgLathaStrataCitationListRecords from "./types/org/latha/strata/citation/listRecords.js"; 11 - export * as OrgLathaStrataCollectionGetRecord from "./types/org/latha/strata/collection/getRecord.js"; 12 - export * as OrgLathaStrataCollectionListRecords from "./types/org/latha/strata/collection/listRecords.js"; 13 - export * as OrgLathaStrataConnectionGetRecord from "./types/org/latha/strata/connection/getRecord.js"; 14 - export * as OrgLathaStrataConnectionListRecords from "./types/org/latha/strata/connection/listRecords.js"; 15 - export * as OrgLathaStrataEntityGetRecord from "./types/org/latha/strata/entity/getRecord.js"; 16 - export * as OrgLathaStrataEntityListRecords from "./types/org/latha/strata/entity/listRecords.js"; 17 - export * as OrgLathaStrataFollowGetRecord from "./types/org/latha/strata/follow/getRecord.js"; 18 - export * as OrgLathaStrataFollowListRecords from "./types/org/latha/strata/follow/listRecords.js"; 19 - export * as OrgLathaStrataGetCursor from "./types/org/latha/strata/getCursor.js"; 20 - export * as OrgLathaStrataGetOverview from "./types/org/latha/strata/getOverview.js"; 21 - export * as OrgLathaStrataGetProfile from "./types/org/latha/strata/getProfile.js"; 22 - export * as OrgLathaStrataNotifyOfUpdate from "./types/org/latha/strata/notifyOfUpdate.js"; 23 - export * as OrgLathaStrataReasoningGetRecord from "./types/org/latha/strata/reasoning/getRecord.js"; 24 - export * as OrgLathaStrataReasoningListRecords from "./types/org/latha/strata/reasoning/listRecords.js"; 7 + export * as OrgLathaIsland from "./types/org/latha/island.js"; 8 + export * as OrgLathaIslandAnalyze from "./types/org/latha/island/analyze.js"; 9 + export * as OrgLathaIslandCitation from "./types/org/latha/island/citation.js"; 10 + export * as OrgLathaIslandDefs from "./types/org/latha/island/defs.js"; 11 + export * as OrgLathaIslandDeriveIsland from "./types/org/latha/island/deriveIsland.js"; 12 + export * as OrgLathaIslandEntity from "./types/org/latha/island/entity.js"; 13 + export * as OrgLathaIslandGetIsland from "./types/org/latha/island/getIsland.js"; 14 + export * as OrgLathaIslandGetIslands from "./types/org/latha/island/getIslands.js"; 15 + export * as OrgLathaIslandReasoning from "./types/org/latha/island/reasoning.js";
+239
src/lexicon-types/types/org/latha/island.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _carryCrossRefSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional( 7 + /*#__PURE__*/ v.literal("org.latha.island#carryCrossRef"), 8 + ), 9 + /** 10 + * AT Protocol URI for this carry entity (if published as companion record). 11 + */ 12 + atUri: /*#__PURE__*/ v.resourceUriString(), 13 + /** 14 + * Original carry entity ID for local correlation. 15 + */ 16 + carryId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 + /** 18 + * Type of carry entity. 19 + */ 20 + entityType: /*#__PURE__*/ v.string< 21 + | "org.latha.island.defs#claimRef" 22 + | "org.latha.island.defs#sourceRef" 23 + | (string & {}) 24 + >(), 25 + /** 26 + * Summary of the carry entity. 27 + * @maxGraphemes 500 28 + */ 29 + summary: /*#__PURE__*/ v.optional( 30 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 31 + /*#__PURE__*/ v.stringGraphemes(0, 500), 32 + ]), 33 + ), 34 + }); 35 + const _edgeSchema = /*#__PURE__*/ v.object({ 36 + $type: /*#__PURE__*/ v.optional( 37 + /*#__PURE__*/ v.literal("org.latha.island#edge"), 38 + ), 39 + /** 40 + * Type of connection (relates, supports, contradicts, etc.) 41 + */ 42 + connectionType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 43 + /** 44 + * Optional note about the connection 45 + * @maxGraphemes 500 46 + */ 47 + note: /*#__PURE__*/ v.optional( 48 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 49 + /*#__PURE__*/ v.stringGraphemes(0, 500), 50 + ]), 51 + ), 52 + /** 53 + * Source vertex URI 54 + */ 55 + source: /*#__PURE__*/ v.string(), 56 + /** 57 + * Target vertex URI 58 + */ 59 + target: /*#__PURE__*/ v.string(), 60 + /** 61 + * AT URI of the connection record 62 + */ 63 + uri: /*#__PURE__*/ v.resourceUriString(), 64 + }); 65 + const _mainSchema = /*#__PURE__*/ v.record( 66 + /*#__PURE__*/ v.tidString(), 67 + /*#__PURE__*/ v.object({ 68 + $type: /*#__PURE__*/ v.literal("org.latha.island"), 69 + /** 70 + * The structured analysis output. 71 + */ 72 + get analysis() { 73 + return structuredAnalysisSchema; 74 + }, 75 + /** 76 + * Carry entities cross-referenced in this analysis. Carry stays local-first — only summaries are included unless explicitly published as companion records. 77 + * @maxLength 20 78 + */ 79 + get carryRefs() { 80 + return /*#__PURE__*/ v.optional( 81 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(carryCrossRefSchema), [ 82 + /*#__PURE__*/ v.arrayLength(0, 20), 83 + ]), 84 + ); 85 + }, 86 + /** 87 + * The island's edges — connection records with their graph structure embedded. No lookups needed to render. 88 + * @maxLength 500 89 + */ 90 + get connections() { 91 + return /*#__PURE__*/ v.optional( 92 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(edgeSchema), [ 93 + /*#__PURE__*/ v.arrayLength(0, 500), 94 + ]), 95 + ); 96 + }, 97 + /** 98 + * When this synthesis was created. 99 + */ 100 + createdAt: /*#__PURE__*/ v.datetimeString(), 101 + /** 102 + * The source record that triggered this analysis. For islands, this is the lexmin vertex. 103 + */ 104 + get source() { 105 + return sourceRefSchema; 106 + }, 107 + /** 108 + * When this synthesis was last updated. 109 + */ 110 + updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 111 + }), 112 + ); 113 + const _sourceRefSchema = /*#__PURE__*/ v.object({ 114 + $type: /*#__PURE__*/ v.optional( 115 + /*#__PURE__*/ v.literal("org.latha.island#sourceRef"), 116 + ), 117 + /** 118 + * CID of the source record at time of analysis. 119 + */ 120 + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 121 + /** 122 + * NSID of the source collection (e.g. network.cosmik.card). 123 + */ 124 + collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 125 + /** 126 + * URI of the source. For island-level analysis, this is the lexmin vertex (canonical component reference) — can be an HTTP URL or AT URI. 127 + */ 128 + uri: /*#__PURE__*/ v.string(), 129 + }); 130 + const _structuredAnalysisSchema = /*#__PURE__*/ v.object({ 131 + $type: /*#__PURE__*/ v.optional( 132 + /*#__PURE__*/ v.literal("org.latha.island#structuredAnalysis"), 133 + ), 134 + /** 135 + * AT URIs of network.cosmik.connection records flagged as semantically significant by the analysis. Hot edges. 136 + * @maxLength 20 137 + */ 138 + highlights: /*#__PURE__*/ v.optional( 139 + /*#__PURE__*/ v.constrain( 140 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), 141 + [/*#__PURE__*/ v.arrayLength(0, 20)], 142 + ), 143 + ), 144 + /** 145 + * Questions raised by the analysis. 146 + * @maxLength 10 147 + */ 148 + openQuestions: /*#__PURE__*/ v.optional( 149 + /*#__PURE__*/ v.constrain( 150 + /*#__PURE__*/ v.array( 151 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 152 + /*#__PURE__*/ v.stringGraphemes(0, 500), 153 + ]), 154 + ), 155 + [/*#__PURE__*/ v.arrayLength(0, 10)], 156 + ), 157 + ), 158 + /** 159 + * Prose synthesis connecting the source to existing knowledge. 160 + * @maxLength 20000 161 + * @maxGraphemes 2000 162 + */ 163 + synthesis: /*#__PURE__*/ v.optional( 164 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 165 + /*#__PURE__*/ v.stringLength(0, 20000), 166 + /*#__PURE__*/ v.stringGraphemes(0, 2000), 167 + ]), 168 + ), 169 + /** 170 + * Tensions or contradictions with existing claims. 171 + * @maxLength 10 172 + */ 173 + tensions: /*#__PURE__*/ v.optional( 174 + /*#__PURE__*/ v.constrain( 175 + /*#__PURE__*/ v.array( 176 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 177 + /*#__PURE__*/ v.stringGraphemes(0, 500), 178 + ]), 179 + ), 180 + [/*#__PURE__*/ v.arrayLength(0, 10)], 181 + ), 182 + ), 183 + /** 184 + * Key themes identified in the source. 185 + * @maxLength 20 186 + */ 187 + themes: /*#__PURE__*/ v.constrain( 188 + /*#__PURE__*/ v.array( 189 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 190 + /*#__PURE__*/ v.stringGraphemes(0, 100), 191 + ]), 192 + ), 193 + [/*#__PURE__*/ v.arrayLength(0, 20)], 194 + ), 195 + /** 196 + * A concise sentence capturing the core argument or narrative arc of this analysis. 197 + * @maxGraphemes 300 198 + */ 199 + title: /*#__PURE__*/ v.optional( 200 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 201 + /*#__PURE__*/ v.stringGraphemes(0, 300), 202 + ]), 203 + ), 204 + }); 205 + 206 + type carryCrossRef$schematype = typeof _carryCrossRefSchema; 207 + type edge$schematype = typeof _edgeSchema; 208 + type main$schematype = typeof _mainSchema; 209 + type sourceRef$schematype = typeof _sourceRefSchema; 210 + type structuredAnalysis$schematype = typeof _structuredAnalysisSchema; 211 + 212 + export interface carryCrossRefSchema extends carryCrossRef$schematype {} 213 + export interface edgeSchema extends edge$schematype {} 214 + export interface mainSchema extends main$schematype {} 215 + export interface sourceRefSchema extends sourceRef$schematype {} 216 + export interface structuredAnalysisSchema extends structuredAnalysis$schematype {} 217 + 218 + export const carryCrossRefSchema = _carryCrossRefSchema as carryCrossRefSchema; 219 + export const edgeSchema = _edgeSchema as edgeSchema; 220 + export const mainSchema = _mainSchema as mainSchema; 221 + export const sourceRefSchema = _sourceRefSchema as sourceRefSchema; 222 + export const structuredAnalysisSchema = 223 + _structuredAnalysisSchema as structuredAnalysisSchema; 224 + 225 + export interface CarryCrossRef extends v.InferInput< 226 + typeof carryCrossRefSchema 227 + > {} 228 + export interface Edge extends v.InferInput<typeof edgeSchema> {} 229 + export interface Main extends v.InferInput<typeof mainSchema> {} 230 + export interface SourceRef extends v.InferInput<typeof sourceRefSchema> {} 231 + export interface StructuredAnalysis extends v.InferInput< 232 + typeof structuredAnalysisSchema 233 + > {} 234 + 235 + declare module "@atcute/lexicons/ambient" { 236 + interface Records { 237 + "org.latha.island": mainSchema; 238 + } 239 + }
+144
src/lexicon-types/types/org/latha/island/analyze.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + import * as OrgLathaIsland from "../island.js"; 5 + 6 + const _analysisResultSchema = /*#__PURE__*/ v.object({ 7 + $type: /*#__PURE__*/ v.optional( 8 + /*#__PURE__*/ v.literal("org.latha.island.analyze#analysisResult"), 9 + ), 10 + get connections() { 11 + return /*#__PURE__*/ v.optional( 12 + /*#__PURE__*/ v.array(OrgLathaIsland.connectionSchema), 13 + ); 14 + }, 15 + openQuestions: /*#__PURE__*/ v.optional( 16 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 17 + ), 18 + /** 19 + * Prose synthesis connecting the island to existing knowledge. 20 + */ 21 + synthesis: /*#__PURE__*/ v.string(), 22 + tensions: /*#__PURE__*/ v.optional( 23 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 24 + ), 25 + themes: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 26 + /** 27 + * Concise sentence capturing the core argument. 28 + * @maxGraphemes 300 29 + */ 30 + title: /*#__PURE__*/ v.optional( 31 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 32 + /*#__PURE__*/ v.stringGraphemes(0, 300), 33 + ]), 34 + ), 35 + }); 36 + const _edgeInfoSchema = /*#__PURE__*/ v.object({ 37 + $type: /*#__PURE__*/ v.optional( 38 + /*#__PURE__*/ v.literal("org.latha.island.analyze#edgeInfo"), 39 + ), 40 + connectionType: /*#__PURE__*/ v.string(), 41 + did: /*#__PURE__*/ v.didString(), 42 + handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 43 + note: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 44 + source: /*#__PURE__*/ v.string(), 45 + target: /*#__PURE__*/ v.string(), 46 + uri: /*#__PURE__*/ v.resourceUriString(), 47 + }); 48 + const _islandInputSchema = /*#__PURE__*/ v.object({ 49 + $type: /*#__PURE__*/ v.optional( 50 + /*#__PURE__*/ v.literal("org.latha.island.analyze#islandInput"), 51 + ), 52 + get edges() { 53 + return /*#__PURE__*/ v.array(edgeInfoSchema); 54 + }, 55 + get vertices() { 56 + return /*#__PURE__*/ v.array(vertexInfoSchema); 57 + }, 58 + }); 59 + const _mainSchema = /*#__PURE__*/ v.procedure("org.latha.island.analyze", { 60 + params: null, 61 + input: { 62 + type: "lex", 63 + schema: /*#__PURE__*/ v.object({ 64 + /** 65 + * DID of the user requesting analysis (used to look up vault/carry data). 66 + */ 67 + did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 68 + get island() { 69 + return islandInputSchema; 70 + }, 71 + }), 72 + }, 73 + output: { 74 + type: "lex", 75 + schema: /*#__PURE__*/ v.object({ 76 + get analysis() { 77 + return analysisResultSchema; 78 + }, 79 + /** 80 + * Complete org.latha.island record ready to be written to PDS. 81 + */ 82 + get record() { 83 + return /*#__PURE__*/ v.optional(OrgLathaIsland.mainSchema); 84 + }, 85 + }), 86 + }, 87 + }); 88 + const _vertexInfoSchema = /*#__PURE__*/ v.object({ 89 + $type: /*#__PURE__*/ v.optional( 90 + /*#__PURE__*/ v.literal("org.latha.island.analyze#vertexInfo"), 91 + ), 92 + /** 93 + * Resolved description. 94 + */ 95 + description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 96 + /** 97 + * Resolved title of the vertex. 98 + */ 99 + title: /*#__PURE__*/ v.string(), 100 + /** 101 + * Vertex type (url, card, collection, note, unknown). 102 + */ 103 + type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 104 + /** 105 + * Vertex URI (HTTP URL or AT URI). 106 + */ 107 + uri: /*#__PURE__*/ v.string(), 108 + }); 109 + 110 + type analysisResult$schematype = typeof _analysisResultSchema; 111 + type edgeInfo$schematype = typeof _edgeInfoSchema; 112 + type islandInput$schematype = typeof _islandInputSchema; 113 + type main$schematype = typeof _mainSchema; 114 + type vertexInfo$schematype = typeof _vertexInfoSchema; 115 + 116 + export interface analysisResultSchema extends analysisResult$schematype {} 117 + export interface edgeInfoSchema extends edgeInfo$schematype {} 118 + export interface islandInputSchema extends islandInput$schematype {} 119 + export interface mainSchema extends main$schematype {} 120 + export interface vertexInfoSchema extends vertexInfo$schematype {} 121 + 122 + export const analysisResultSchema = 123 + _analysisResultSchema as analysisResultSchema; 124 + export const edgeInfoSchema = _edgeInfoSchema as edgeInfoSchema; 125 + export const islandInputSchema = _islandInputSchema as islandInputSchema; 126 + export const mainSchema = _mainSchema as mainSchema; 127 + export const vertexInfoSchema = _vertexInfoSchema as vertexInfoSchema; 128 + 129 + export interface AnalysisResult extends v.InferInput< 130 + typeof analysisResultSchema 131 + > {} 132 + export interface EdgeInfo extends v.InferInput<typeof edgeInfoSchema> {} 133 + export interface IslandInput extends v.InferInput<typeof islandInputSchema> {} 134 + export interface VertexInfo extends v.InferInput<typeof vertexInfoSchema> {} 135 + 136 + export interface $params {} 137 + export interface $input extends v.InferXRPCBodyInput<mainSchema["input"]> {} 138 + export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 139 + 140 + declare module "@atcute/lexicons/ambient" { 141 + interface XRPCProcedures { 142 + "org.latha.island.analyze": mainSchema; 143 + } 144 + }
+95
src/lexicon-types/types/org/latha/island/citation.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.record( 6 + /*#__PURE__*/ v.tidString(), 7 + /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.literal("org.latha.island.citation"), 9 + /** 10 + * Author names. 11 + * @maxLength 20 12 + */ 13 + authors: /*#__PURE__*/ v.optional( 14 + /*#__PURE__*/ v.constrain( 15 + /*#__PURE__*/ v.array( 16 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 17 + /*#__PURE__*/ v.stringGraphemes(0, 200), 18 + ]), 19 + ), 20 + [/*#__PURE__*/ v.arrayLength(0, 20)], 21 + ), 22 + ), 23 + /** 24 + * Confidence level in the citation's relevance and accuracy. 25 + */ 26 + confidence: /*#__PURE__*/ v.literalEnum([ 27 + "org.latha.island.defs#high", 28 + "org.latha.island.defs#low", 29 + "org.latha.island.defs#medium", 30 + ]), 31 + /** 32 + * When this citation was recorded in Strata. 33 + */ 34 + createdAt: /*#__PURE__*/ v.datetimeString(), 35 + /** 36 + * Domain or discipline of the cited work (e.g. 'machine-learning', 'philosophy'). 37 + * @maxGraphemes 100 38 + */ 39 + domain: /*#__PURE__*/ v.optional( 40 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 41 + /*#__PURE__*/ v.stringGraphemes(0, 100), 42 + ]), 43 + ), 44 + /** 45 + * Publication date of the cited work. 46 + */ 47 + publishedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 48 + /** 49 + * Freeform topic tags. 50 + * @maxLength 20 51 + */ 52 + tags: /*#__PURE__*/ v.optional( 53 + /*#__PURE__*/ v.constrain( 54 + /*#__PURE__*/ v.array( 55 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 56 + /*#__PURE__*/ v.stringGraphemes(0, 100), 57 + ]), 58 + ), 59 + [/*#__PURE__*/ v.arrayLength(0, 20)], 60 + ), 61 + ), 62 + /** 63 + * Key insight, summary, or main finding from the cited work. 64 + * @maxGraphemes 2000 65 + */ 66 + takeaway: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 67 + /*#__PURE__*/ v.stringGraphemes(0, 2000), 68 + ]), 69 + /** 70 + * Title of the cited work. 71 + * @maxGraphemes 300 72 + */ 73 + title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 74 + /*#__PURE__*/ v.stringGraphemes(0, 300), 75 + ]), 76 + /** 77 + * Source URL of the cited work. 78 + */ 79 + url: /*#__PURE__*/ v.genericUriString(), 80 + }), 81 + ); 82 + 83 + type main$schematype = typeof _mainSchema; 84 + 85 + export interface mainSchema extends main$schematype {} 86 + 87 + export const mainSchema = _mainSchema as mainSchema; 88 + 89 + export interface Main extends v.InferInput<typeof mainSchema> {} 90 + 91 + declare module "@atcute/lexicons/ambient" { 92 + interface Records { 93 + "org.latha.island.citation": mainSchema; 94 + } 95 + }
+136
src/lexicon-types/types/org/latha/island/defs.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + 4 + const _carrySchema = /*#__PURE__*/ v.literal("org.latha.island.defs#carry"); 5 + const _carryLookupSchema = /*#__PURE__*/ v.literal( 6 + "org.latha.island.defs#carryLookup", 7 + ); 8 + const _claimRefSchema = /*#__PURE__*/ v.object({ 9 + $type: /*#__PURE__*/ v.optional( 10 + /*#__PURE__*/ v.literal("org.latha.island.defs#claimRef"), 11 + ), 12 + /** 13 + * Which Strata layer holds the canonical copy. 14 + */ 15 + layer: /*#__PURE__*/ v.optional( 16 + /*#__PURE__*/ v.string< 17 + | "org.latha.island.defs#carry" 18 + | "org.latha.island.defs#memfs" 19 + | "org.latha.island.defs#vault" 20 + | (string & {}) 21 + >(), 22 + ), 23 + /** 24 + * AT-URI of the referenced claim record. 25 + */ 26 + uri: /*#__PURE__*/ v.resourceUriString(), 27 + }); 28 + const _conceptSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#concept"); 29 + const _highSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#high"); 30 + const _humanInputSchema = /*#__PURE__*/ v.literal( 31 + "org.latha.island.defs#humanInput", 32 + ); 33 + const _inferenceSchema = /*#__PURE__*/ v.literal( 34 + "org.latha.island.defs#inference", 35 + ); 36 + const _lowSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#low"); 37 + const _mediumSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#medium"); 38 + const _memfsSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#memfs"); 39 + const _orgSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#org"); 40 + const _personSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#person"); 41 + const _sourceRefSchema = /*#__PURE__*/ v.object({ 42 + $type: /*#__PURE__*/ v.optional( 43 + /*#__PURE__*/ v.literal("org.latha.island.defs#sourceRef"), 44 + ), 45 + /** 46 + * DID of the agent that produced the claim. 47 + */ 48 + agentDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 49 + /** 50 + * How the claim was produced. 51 + */ 52 + method: /*#__PURE__*/ v.string< 53 + | "org.latha.island.defs#carryLookup" 54 + | "org.latha.island.defs#humanInput" 55 + | "org.latha.island.defs#inference" 56 + | "org.latha.island.defs#webSearch" 57 + | (string & {}) 58 + >(), 59 + /** 60 + * Source URL if the claim came from the web. 61 + */ 62 + url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 63 + }); 64 + const _toolSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#tool"); 65 + const _vaultSchema = /*#__PURE__*/ v.literal("org.latha.island.defs#vault"); 66 + const _webSearchSchema = /*#__PURE__*/ v.literal( 67 + "org.latha.island.defs#webSearch", 68 + ); 69 + 70 + type carry$schematype = typeof _carrySchema; 71 + type carryLookup$schematype = typeof _carryLookupSchema; 72 + type claimRef$schematype = typeof _claimRefSchema; 73 + type concept$schematype = typeof _conceptSchema; 74 + type high$schematype = typeof _highSchema; 75 + type humanInput$schematype = typeof _humanInputSchema; 76 + type inference$schematype = typeof _inferenceSchema; 77 + type low$schematype = typeof _lowSchema; 78 + type medium$schematype = typeof _mediumSchema; 79 + type memfs$schematype = typeof _memfsSchema; 80 + type org$schematype = typeof _orgSchema; 81 + type person$schematype = typeof _personSchema; 82 + type sourceRef$schematype = typeof _sourceRefSchema; 83 + type tool$schematype = typeof _toolSchema; 84 + type vault$schematype = typeof _vaultSchema; 85 + type webSearch$schematype = typeof _webSearchSchema; 86 + 87 + export interface carrySchema extends carry$schematype {} 88 + export interface carryLookupSchema extends carryLookup$schematype {} 89 + export interface claimRefSchema extends claimRef$schematype {} 90 + export interface conceptSchema extends concept$schematype {} 91 + export interface highSchema extends high$schematype {} 92 + export interface humanInputSchema extends humanInput$schematype {} 93 + export interface inferenceSchema extends inference$schematype {} 94 + export interface lowSchema extends low$schematype {} 95 + export interface mediumSchema extends medium$schematype {} 96 + export interface memfsSchema extends memfs$schematype {} 97 + export interface orgSchema extends org$schematype {} 98 + export interface personSchema extends person$schematype {} 99 + export interface sourceRefSchema extends sourceRef$schematype {} 100 + export interface toolSchema extends tool$schematype {} 101 + export interface vaultSchema extends vault$schematype {} 102 + export interface webSearchSchema extends webSearch$schematype {} 103 + 104 + export const carrySchema = _carrySchema as carrySchema; 105 + export const carryLookupSchema = _carryLookupSchema as carryLookupSchema; 106 + export const claimRefSchema = _claimRefSchema as claimRefSchema; 107 + export const conceptSchema = _conceptSchema as conceptSchema; 108 + export const highSchema = _highSchema as highSchema; 109 + export const humanInputSchema = _humanInputSchema as humanInputSchema; 110 + export const inferenceSchema = _inferenceSchema as inferenceSchema; 111 + export const lowSchema = _lowSchema as lowSchema; 112 + export const mediumSchema = _mediumSchema as mediumSchema; 113 + export const memfsSchema = _memfsSchema as memfsSchema; 114 + export const orgSchema = _orgSchema as orgSchema; 115 + export const personSchema = _personSchema as personSchema; 116 + export const sourceRefSchema = _sourceRefSchema as sourceRefSchema; 117 + export const toolSchema = _toolSchema as toolSchema; 118 + export const vaultSchema = _vaultSchema as vaultSchema; 119 + export const webSearchSchema = _webSearchSchema as webSearchSchema; 120 + 121 + export type Carry = v.InferInput<typeof carrySchema>; 122 + export type CarryLookup = v.InferInput<typeof carryLookupSchema>; 123 + export interface ClaimRef extends v.InferInput<typeof claimRefSchema> {} 124 + export type Concept = v.InferInput<typeof conceptSchema>; 125 + export type High = v.InferInput<typeof highSchema>; 126 + export type HumanInput = v.InferInput<typeof humanInputSchema>; 127 + export type Inference = v.InferInput<typeof inferenceSchema>; 128 + export type Low = v.InferInput<typeof lowSchema>; 129 + export type Medium = v.InferInput<typeof mediumSchema>; 130 + export type Memfs = v.InferInput<typeof memfsSchema>; 131 + export type Org = v.InferInput<typeof orgSchema>; 132 + export type Person = v.InferInput<typeof personSchema>; 133 + export interface SourceRef extends v.InferInput<typeof sourceRefSchema> {} 134 + export type Tool = v.InferInput<typeof toolSchema>; 135 + export type Vault = v.InferInput<typeof vaultSchema>; 136 + export type WebSearch = v.InferInput<typeof webSearchSchema>;
+78
src/lexicon-types/types/org/latha/island/deriveIsland.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _edgeSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional( 7 + /*#__PURE__*/ v.literal("org.latha.island.deriveIsland#edge"), 8 + ), 9 + connectionType: /*#__PURE__*/ v.string(), 10 + did: /*#__PURE__*/ v.didString(), 11 + handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + note: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + source: /*#__PURE__*/ v.string(), 14 + target: /*#__PURE__*/ v.string(), 15 + uri: /*#__PURE__*/ v.resourceUriString(), 16 + }); 17 + const _islandSchema = /*#__PURE__*/ v.object({ 18 + $type: /*#__PURE__*/ v.optional( 19 + /*#__PURE__*/ v.literal("org.latha.island.deriveIsland#island"), 20 + ), 21 + get edges() { 22 + return /*#__PURE__*/ v.array(edgeSchema); 23 + }, 24 + /** 25 + * Stable ID: truncated SHA-256 of the lexmin vertex. 26 + */ 27 + id: /*#__PURE__*/ v.string(), 28 + /** 29 + * Lexicographically smallest vertex in the component — the canonical reference. 30 + */ 31 + lexmin: /*#__PURE__*/ v.string(), 32 + vertices: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 33 + }); 34 + const _mainSchema = /*#__PURE__*/ v.procedure("org.latha.island.deriveIsland", { 35 + params: null, 36 + input: { 37 + type: "lex", 38 + schema: /*#__PURE__*/ v.object({ 39 + /** 40 + * Optional seed vertex. If provided, returns only the island containing this vertex. If omitted, returns all islands. 41 + */ 42 + seed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 43 + }), 44 + }, 45 + output: { 46 + type: "lex", 47 + schema: /*#__PURE__*/ v.object({ 48 + get islands() { 49 + return /*#__PURE__*/ v.array(islandSchema); 50 + }, 51 + }), 52 + }, 53 + }); 54 + 55 + type edge$schematype = typeof _edgeSchema; 56 + type island$schematype = typeof _islandSchema; 57 + type main$schematype = typeof _mainSchema; 58 + 59 + export interface edgeSchema extends edge$schematype {} 60 + export interface islandSchema extends island$schematype {} 61 + export interface mainSchema extends main$schematype {} 62 + 63 + export const edgeSchema = _edgeSchema as edgeSchema; 64 + export const islandSchema = _islandSchema as islandSchema; 65 + export const mainSchema = _mainSchema as mainSchema; 66 + 67 + export interface Edge extends v.InferInput<typeof edgeSchema> {} 68 + export interface Island extends v.InferInput<typeof islandSchema> {} 69 + 70 + export interface $params {} 71 + export interface $input extends v.InferXRPCBodyInput<mainSchema["input"]> {} 72 + export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 73 + 74 + declare module "@atcute/lexicons/ambient" { 75 + interface XRPCProcedures { 76 + "org.latha.island.deriveIsland": mainSchema; 77 + } 78 + }
+98
src/lexicon-types/types/org/latha/island/entity.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.record( 6 + /*#__PURE__*/ v.tidString(), 7 + /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.literal("org.latha.island.entity"), 9 + /** 10 + * Alternative names or handles for the entity. 11 + * @maxLength 10 12 + */ 13 + aliases: /*#__PURE__*/ v.optional( 14 + /*#__PURE__*/ v.constrain( 15 + /*#__PURE__*/ v.array( 16 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 17 + /*#__PURE__*/ v.stringGraphemes(0, 200), 18 + ]), 19 + ), 20 + [/*#__PURE__*/ v.arrayLength(0, 10)], 21 + ), 22 + ), 23 + /** 24 + * DID of the corresponding carry entity, linking this record to the structured claims layer. 25 + */ 26 + carryDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 27 + /** 28 + * When this entity was first tracked in Strata. 29 + */ 30 + createdAt: /*#__PURE__*/ v.datetimeString(), 31 + /** 32 + * Short description of the entity. 33 + * @maxGraphemes 1000 34 + */ 35 + description: /*#__PURE__*/ v.optional( 36 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 37 + /*#__PURE__*/ v.stringGraphemes(0, 1000), 38 + ]), 39 + ), 40 + /** 41 + * Category of the entity. 42 + */ 43 + entityType: /*#__PURE__*/ v.literalEnum([ 44 + "org.latha.island.defs#concept", 45 + "org.latha.island.defs#org", 46 + "org.latha.island.defs#person", 47 + "org.latha.island.defs#tool", 48 + ]), 49 + /** 50 + * Primary URL for the entity (personal site, org page, etc.). 51 + */ 52 + homepage: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 53 + /** 54 + * Display name of the entity. 55 + * @maxGraphemes 200 56 + */ 57 + name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 58 + /*#__PURE__*/ v.stringGraphemes(0, 200), 59 + ]), 60 + /** 61 + * Freeform tags describing the entity. 62 + * @maxLength 20 63 + */ 64 + tags: /*#__PURE__*/ v.optional( 65 + /*#__PURE__*/ v.constrain( 66 + /*#__PURE__*/ v.array( 67 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 68 + /*#__PURE__*/ v.stringGraphemes(0, 100), 69 + ]), 70 + ), 71 + [/*#__PURE__*/ v.arrayLength(0, 20)], 72 + ), 73 + ), 74 + /** 75 + * Relative path to the corresponding note in the Obsidian vault (e.g. 'people/Alice Smith.md'). 76 + * @maxGraphemes 500 77 + */ 78 + vaultPath: /*#__PURE__*/ v.optional( 79 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 80 + /*#__PURE__*/ v.stringGraphemes(0, 500), 81 + ]), 82 + ), 83 + }), 84 + ); 85 + 86 + type main$schematype = typeof _mainSchema; 87 + 88 + export interface mainSchema extends main$schematype {} 89 + 90 + export const mainSchema = _mainSchema as mainSchema; 91 + 92 + export interface Main extends v.InferInput<typeof mainSchema> {} 93 + 94 + declare module "@atcute/lexicons/ambient" { 95 + interface Records { 96 + "org.latha.island.entity": mainSchema; 97 + } 98 + }
+68
src/lexicon-types/types/org/latha/island/getIsland.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + import * as OrgLathaIslandDeriveIsland from "./deriveIsland.js"; 5 + 6 + const _islandDetailSchema = /*#__PURE__*/ v.object({ 7 + $type: /*#__PURE__*/ v.optional( 8 + /*#__PURE__*/ v.literal("org.latha.island.getIsland#islandDetail"), 9 + ), 10 + get edges() { 11 + return /*#__PURE__*/ v.array(OrgLathaIslandDeriveIsland.edgeSchema); 12 + }, 13 + id: /*#__PURE__*/ v.string(), 14 + lexmin: /*#__PURE__*/ v.string(), 15 + /** 16 + * Full strata analysis data (themes, connections, tensions, synthesis). 17 + */ 18 + strata: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 19 + /** 20 + * Strata analysis title. 21 + */ 22 + summary: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 23 + /** 24 + * Map of vertex URI to {title, description, type}. 25 + */ 26 + vertexMeta: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 27 + vertices: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 28 + }); 29 + const _mainSchema = /*#__PURE__*/ v.query("org.latha.island.getIsland", { 30 + params: /*#__PURE__*/ v.object({ 31 + /** 32 + * Island ID (truncated SHA-256 of lexmin vertex) or AT URI of an org.latha.island record. 33 + */ 34 + id: /*#__PURE__*/ v.string(), 35 + }), 36 + output: { 37 + type: "lex", 38 + schema: /*#__PURE__*/ v.object({ 39 + get island() { 40 + return islandDetailSchema; 41 + }, 42 + /** 43 + * AT URI of the org.latha.island record, if analyzed. 44 + */ 45 + recordUri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 46 + }), 47 + }, 48 + }); 49 + 50 + type islandDetail$schematype = typeof _islandDetailSchema; 51 + type main$schematype = typeof _mainSchema; 52 + 53 + export interface islandDetailSchema extends islandDetail$schematype {} 54 + export interface mainSchema extends main$schematype {} 55 + 56 + export const islandDetailSchema = _islandDetailSchema as islandDetailSchema; 57 + export const mainSchema = _mainSchema as mainSchema; 58 + 59 + export interface IslandDetail extends v.InferInput<typeof islandDetailSchema> {} 60 + 61 + export interface $params extends v.InferInput<mainSchema["params"]> {} 62 + export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 63 + 64 + declare module "@atcute/lexicons/ambient" { 65 + interface XRPCQueries { 66 + "org.latha.island.getIsland": mainSchema; 67 + } 68 + }
+78
src/lexicon-types/types/org/latha/island/getIslands.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _islandSummarySchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional( 7 + /*#__PURE__*/ v.literal("org.latha.island.getIslands#islandSummary"), 8 + ), 9 + edgeCount: /*#__PURE__*/ v.integer(), 10 + /** 11 + * Stable ID: truncated SHA-256 of the lexmin vertex. 12 + */ 13 + id: /*#__PURE__*/ v.string(), 14 + /** 15 + * Lexicographically smallest vertex — the canonical reference. 16 + */ 17 + lexmin: /*#__PURE__*/ v.string(), 18 + /** 19 + * AT URI of the org.latha.island record, if analyzed. 20 + */ 21 + recordUri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 22 + /** 23 + * Strata analysis title, if available. 24 + */ 25 + title: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 26 + vertexCount: /*#__PURE__*/ v.integer(), 27 + }); 28 + const _mainSchema = /*#__PURE__*/ v.query("org.latha.island.getIslands", { 29 + params: /*#__PURE__*/ v.object({ 30 + /** 31 + * Pagination cursor from a previous response. 32 + */ 33 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 34 + /** 35 + * Maximum number of islands to return. 36 + * @minimum 1 37 + * @maximum 100 38 + * @default 50 39 + */ 40 + limit: /*#__PURE__*/ v.optional( 41 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 42 + /*#__PURE__*/ v.integerRange(1, 100), 43 + ]), 44 + 50, 45 + ), 46 + }), 47 + output: { 48 + type: "lex", 49 + schema: /*#__PURE__*/ v.object({ 50 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 51 + get islands() { 52 + return /*#__PURE__*/ v.array(islandSummarySchema); 53 + }, 54 + }), 55 + }, 56 + }); 57 + 58 + type islandSummary$schematype = typeof _islandSummarySchema; 59 + type main$schematype = typeof _mainSchema; 60 + 61 + export interface islandSummarySchema extends islandSummary$schematype {} 62 + export interface mainSchema extends main$schematype {} 63 + 64 + export const islandSummarySchema = _islandSummarySchema as islandSummarySchema; 65 + export const mainSchema = _mainSchema as mainSchema; 66 + 67 + export interface IslandSummary extends v.InferInput< 68 + typeof islandSummarySchema 69 + > {} 70 + 71 + export interface $params extends v.InferInput<mainSchema["params"]> {} 72 + export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 73 + 74 + declare module "@atcute/lexicons/ambient" { 75 + interface XRPCQueries { 76 + "org.latha.island.getIslands": mainSchema; 77 + } 78 + }
+70
src/lexicon-types/types/org/latha/island/reasoning.ts
··· 1 + import type {} from "@atcute/lexicons"; 2 + import * as v from "@atcute/lexicons/validations"; 3 + import type {} from "@atcute/lexicons/ambient"; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.record( 6 + /*#__PURE__*/ v.tidString(), 7 + /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.literal("org.latha.island.reasoning"), 9 + /** 10 + * Confidence level in the reasoning. 11 + */ 12 + confidence: /*#__PURE__*/ v.literalEnum([ 13 + "org.latha.island.defs#high", 14 + "org.latha.island.defs#low", 15 + "org.latha.island.defs#medium", 16 + ]), 17 + /** 18 + * When this reasoning was recorded in Strata. 19 + */ 20 + createdAt: /*#__PURE__*/ v.datetimeString(), 21 + /** 22 + * Supporting evidence, reasoning chain, or explanation of why this method supports the claim. 23 + * @maxGraphemes 3000 24 + */ 25 + evidence: /*#__PURE__*/ v.optional( 26 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 27 + /*#__PURE__*/ v.stringGraphemes(0, 3000), 28 + ]), 29 + ), 30 + /** 31 + * AT-URI of the claim this reasoning supports (e.g. 'at://did:plc:.../org.latha.island.citation/3tx...'). 32 + */ 33 + justifies: /*#__PURE__*/ v.resourceUriString(), 34 + /** 35 + * How the claim was produced. Open set — future methods can be added without schema changes. 36 + */ 37 + method: /*#__PURE__*/ v.string< 38 + | "org.latha.island.defs#carryLookup" 39 + | "org.latha.island.defs#humanInput" 40 + | "org.latha.island.defs#inference" 41 + | "org.latha.island.defs#webSearch" 42 + | (string & {}) 43 + >(), 44 + /** 45 + * The question or claim being justified. 46 + * @maxGraphemes 500 47 + */ 48 + question: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 49 + /*#__PURE__*/ v.stringGraphemes(0, 500), 50 + ]), 51 + /** 52 + * URL of the source if the reasoning came from a web search. 53 + */ 54 + sourceUrl: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 55 + }), 56 + ); 57 + 58 + type main$schematype = typeof _mainSchema; 59 + 60 + export interface mainSchema extends main$schematype {} 61 + 62 + export const mainSchema = _mainSchema as mainSchema; 63 + 64 + export interface Main extends v.InferInput<typeof mainSchema> {} 65 + 66 + declare module "@atcute/lexicons/ambient" { 67 + interface Records { 68 + "org.latha.island.reasoning": mainSchema; 69 + } 70 + }
-186
src/lexicon-types/types/org/latha/strata/card/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikCard from "../../../../network/cosmik/card.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.card.getRecord#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.card.getRecord", { 86 - params: /*#__PURE__*/ v.object({ 87 - /** 88 - * Embed the referenced parentCard record 89 - */ 90 - hydrateParentCard: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 91 - /** 92 - * Include profile + identity info keyed by DID 93 - */ 94 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 95 - /** 96 - * AT URI of the record 97 - */ 98 - uri: /*#__PURE__*/ v.resourceUriString(), 99 - }), 100 - output: { 101 - type: "lex", 102 - schema: /*#__PURE__*/ v.object({ 103 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 104 - collection: /*#__PURE__*/ v.nsidString(), 105 - did: /*#__PURE__*/ v.didString(), 106 - get parentCard() { 107 - return /*#__PURE__*/ v.optional(refParentCardRecordSchema); 108 - }, 109 - get profiles() { 110 - return /*#__PURE__*/ v.optional( 111 - /*#__PURE__*/ v.array(profileEntrySchema), 112 - ); 113 - }, 114 - rkey: /*#__PURE__*/ v.string(), 115 - time_us: /*#__PURE__*/ v.integer(), 116 - uri: /*#__PURE__*/ v.resourceUriString(), 117 - get value() { 118 - return NetworkCosmikCard.mainSchema; 119 - }, 120 - }), 121 - }, 122 - }); 123 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 124 - $type: /*#__PURE__*/ v.optional( 125 - /*#__PURE__*/ v.literal("org.latha.strata.card.getRecord#profileEntry"), 126 - ), 127 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 128 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 129 - did: /*#__PURE__*/ v.didString(), 130 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 131 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 132 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 133 - get value() { 134 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 135 - }, 136 - }); 137 - const _refParentCardRecordSchema = /*#__PURE__*/ v.object({ 138 - $type: /*#__PURE__*/ v.optional( 139 - /*#__PURE__*/ v.literal( 140 - "org.latha.strata.card.getRecord#refParentCardRecord", 141 - ), 142 - ), 143 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 144 - collection: /*#__PURE__*/ v.nsidString(), 145 - did: /*#__PURE__*/ v.didString(), 146 - get record() { 147 - return /*#__PURE__*/ v.optional(NetworkCosmikCard.mainSchema); 148 - }, 149 - rkey: /*#__PURE__*/ v.string(), 150 - time_us: /*#__PURE__*/ v.integer(), 151 - uri: /*#__PURE__*/ v.resourceUriString(), 152 - }); 153 - 154 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 155 - type main$schematype = typeof _mainSchema; 156 - type profileEntry$schematype = typeof _profileEntrySchema; 157 - type refParentCardRecord$schematype = typeof _refParentCardRecordSchema; 158 - 159 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 160 - export interface mainSchema extends main$schematype {} 161 - export interface profileEntrySchema extends profileEntry$schematype {} 162 - export interface refParentCardRecordSchema extends refParentCardRecord$schematype {} 163 - 164 - export const appBskyActorProfileSchema = 165 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 166 - export const mainSchema = _mainSchema as mainSchema; 167 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 168 - export const refParentCardRecordSchema = 169 - _refParentCardRecordSchema as refParentCardRecordSchema; 170 - 171 - export interface AppBskyActorProfile extends v.InferInput< 172 - typeof appBskyActorProfileSchema 173 - > {} 174 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 175 - export interface RefParentCardRecord extends v.InferInput< 176 - typeof refParentCardRecordSchema 177 - > {} 178 - 179 - export interface $params extends v.InferInput<mainSchema["params"]> {} 180 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 181 - 182 - declare module "@atcute/lexicons/ambient" { 183 - interface XRPCQueries { 184 - "org.latha.strata.card.getRecord": mainSchema; 185 - } 186 - }
-235
src/lexicon-types/types/org/latha/strata/card/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikCard from "../../../../network/cosmik/card.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.card.listRecords#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.card.listRecords", { 86 - params: /*#__PURE__*/ v.object({ 87 - /** 88 - * Filter by DID or handle (triggers on-demand backfill) 89 - */ 90 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 91 - /** 92 - * Filter by content.url 93 - */ 94 - contentUrl: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 95 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 96 - /** 97 - * Embed the referenced parentCard record 98 - */ 99 - hydrateParentCard: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 100 - /** 101 - * @minimum 1 102 - * @maximum 200 103 - * @default 50 104 - */ 105 - limit: /*#__PURE__*/ v.optional( 106 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 107 - /*#__PURE__*/ v.integerRange(1, 200), 108 - ]), 109 - 50, 110 - ), 111 - /** 112 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 113 - */ 114 - order: /*#__PURE__*/ v.optional( 115 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 116 - ), 117 - /** 118 - * Include profile + identity info keyed by DID 119 - */ 120 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 121 - /** 122 - * Full-text search across: content.url, content.text, content.metadata.title, content.metadata.description 123 - */ 124 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 125 - /** 126 - * Field to sort by (default: time_us) 127 - */ 128 - sort: /*#__PURE__*/ v.optional( 129 - /*#__PURE__*/ v.string<"contentUrl" | "type" | (string & {})>(), 130 - ), 131 - /** 132 - * Filter by type 133 - */ 134 - type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 135 - }), 136 - output: { 137 - type: "lex", 138 - schema: /*#__PURE__*/ v.object({ 139 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 140 - get profiles() { 141 - return /*#__PURE__*/ v.optional( 142 - /*#__PURE__*/ v.array(profileEntrySchema), 143 - ); 144 - }, 145 - get records() { 146 - return /*#__PURE__*/ v.array(recordSchema); 147 - }, 148 - }), 149 - }, 150 - }); 151 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 152 - $type: /*#__PURE__*/ v.optional( 153 - /*#__PURE__*/ v.literal("org.latha.strata.card.listRecords#profileEntry"), 154 - ), 155 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 156 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 157 - did: /*#__PURE__*/ v.didString(), 158 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 159 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 160 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 161 - get value() { 162 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 163 - }, 164 - }); 165 - const _recordSchema = /*#__PURE__*/ v.object({ 166 - $type: /*#__PURE__*/ v.optional( 167 - /*#__PURE__*/ v.literal("org.latha.strata.card.listRecords#record"), 168 - ), 169 - cid: /*#__PURE__*/ v.cidString(), 170 - collection: /*#__PURE__*/ v.nsidString(), 171 - did: /*#__PURE__*/ v.didString(), 172 - get parentCard() { 173 - return /*#__PURE__*/ v.optional(refParentCardRecordSchema); 174 - }, 175 - rkey: /*#__PURE__*/ v.string(), 176 - time_us: /*#__PURE__*/ v.integer(), 177 - uri: /*#__PURE__*/ v.resourceUriString(), 178 - get value() { 179 - return NetworkCosmikCard.mainSchema; 180 - }, 181 - }); 182 - const _refParentCardRecordSchema = /*#__PURE__*/ v.object({ 183 - $type: /*#__PURE__*/ v.optional( 184 - /*#__PURE__*/ v.literal( 185 - "org.latha.strata.card.listRecords#refParentCardRecord", 186 - ), 187 - ), 188 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 189 - collection: /*#__PURE__*/ v.nsidString(), 190 - did: /*#__PURE__*/ v.didString(), 191 - get record() { 192 - return /*#__PURE__*/ v.optional(NetworkCosmikCard.mainSchema); 193 - }, 194 - rkey: /*#__PURE__*/ v.string(), 195 - time_us: /*#__PURE__*/ v.integer(), 196 - uri: /*#__PURE__*/ v.resourceUriString(), 197 - }); 198 - 199 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 200 - type main$schematype = typeof _mainSchema; 201 - type profileEntry$schematype = typeof _profileEntrySchema; 202 - type record$schematype = typeof _recordSchema; 203 - type refParentCardRecord$schematype = typeof _refParentCardRecordSchema; 204 - 205 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 206 - export interface mainSchema extends main$schematype {} 207 - export interface profileEntrySchema extends profileEntry$schematype {} 208 - export interface recordSchema extends record$schematype {} 209 - export interface refParentCardRecordSchema extends refParentCardRecord$schematype {} 210 - 211 - export const appBskyActorProfileSchema = 212 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 213 - export const mainSchema = _mainSchema as mainSchema; 214 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 215 - export const recordSchema = _recordSchema as recordSchema; 216 - export const refParentCardRecordSchema = 217 - _refParentCardRecordSchema as refParentCardRecordSchema; 218 - 219 - export interface AppBskyActorProfile extends v.InferInput< 220 - typeof appBskyActorProfileSchema 221 - > {} 222 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 223 - export interface Record extends v.InferInput<typeof recordSchema> {} 224 - export interface RefParentCardRecord extends v.InferInput< 225 - typeof refParentCardRecordSchema 226 - > {} 227 - 228 - export interface $params extends v.InferInput<mainSchema["params"]> {} 229 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 230 - 231 - declare module "@atcute/lexicons/ambient" { 232 - interface XRPCQueries { 233 - "org.latha.strata.card.listRecords": mainSchema; 234 - } 235 - }
-196
src/lexicon-types/types/org/latha/strata/citation/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.citation.getRecord#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _hydrateReasoningRecordSchema = /*#__PURE__*/ v.object({ 85 - $type: /*#__PURE__*/ v.optional( 86 - /*#__PURE__*/ v.literal( 87 - "org.latha.strata.citation.getRecord#hydrateReasoningRecord", 88 - ), 89 - ), 90 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 91 - collection: /*#__PURE__*/ v.nsidString(), 92 - did: /*#__PURE__*/ v.didString(), 93 - record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 94 - rkey: /*#__PURE__*/ v.string(), 95 - time_us: /*#__PURE__*/ v.integer(), 96 - uri: /*#__PURE__*/ v.resourceUriString(), 97 - }); 98 - const _mainSchema = /*#__PURE__*/ v.query( 99 - "org.latha.strata.citation.getRecord", 100 - { 101 - params: /*#__PURE__*/ v.object({ 102 - /** 103 - * Number of reasoning records to embed 104 - * @minimum 1 105 - * @maximum 50 106 - */ 107 - hydrateReasoning: /*#__PURE__*/ v.optional( 108 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 109 - /*#__PURE__*/ v.integerRange(1, 50), 110 - ]), 111 - ), 112 - /** 113 - * Include profile + identity info keyed by DID 114 - */ 115 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 116 - /** 117 - * AT URI of the record 118 - */ 119 - uri: /*#__PURE__*/ v.resourceUriString(), 120 - }), 121 - output: { 122 - type: "lex", 123 - schema: /*#__PURE__*/ v.object({ 124 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 125 - collection: /*#__PURE__*/ v.nsidString(), 126 - did: /*#__PURE__*/ v.didString(), 127 - get profiles() { 128 - return /*#__PURE__*/ v.optional( 129 - /*#__PURE__*/ v.array(profileEntrySchema), 130 - ); 131 - }, 132 - get reasoning() { 133 - return /*#__PURE__*/ v.optional( 134 - /*#__PURE__*/ v.array(hydrateReasoningRecordSchema), 135 - ); 136 - }, 137 - /** 138 - * Total reasoning count 139 - */ 140 - reasoningCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 141 - rkey: /*#__PURE__*/ v.string(), 142 - time_us: /*#__PURE__*/ v.integer(), 143 - uri: /*#__PURE__*/ v.resourceUriString(), 144 - value: /*#__PURE__*/ v.unknown(), 145 - }), 146 - }, 147 - }, 148 - ); 149 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 150 - $type: /*#__PURE__*/ v.optional( 151 - /*#__PURE__*/ v.literal("org.latha.strata.citation.getRecord#profileEntry"), 152 - ), 153 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 154 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 155 - did: /*#__PURE__*/ v.didString(), 156 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 157 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 158 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 159 - get value() { 160 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 161 - }, 162 - }); 163 - 164 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 165 - type hydrateReasoningRecord$schematype = typeof _hydrateReasoningRecordSchema; 166 - type main$schematype = typeof _mainSchema; 167 - type profileEntry$schematype = typeof _profileEntrySchema; 168 - 169 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 170 - export interface hydrateReasoningRecordSchema extends hydrateReasoningRecord$schematype {} 171 - export interface mainSchema extends main$schematype {} 172 - export interface profileEntrySchema extends profileEntry$schematype {} 173 - 174 - export const appBskyActorProfileSchema = 175 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 176 - export const hydrateReasoningRecordSchema = 177 - _hydrateReasoningRecordSchema as hydrateReasoningRecordSchema; 178 - export const mainSchema = _mainSchema as mainSchema; 179 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 180 - 181 - export interface AppBskyActorProfile extends v.InferInput< 182 - typeof appBskyActorProfileSchema 183 - > {} 184 - export interface HydrateReasoningRecord extends v.InferInput< 185 - typeof hydrateReasoningRecordSchema 186 - > {} 187 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 188 - 189 - export interface $params extends v.InferInput<mainSchema["params"]> {} 190 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 191 - 192 - declare module "@atcute/lexicons/ambient" { 193 - interface XRPCQueries { 194 - "org.latha.strata.citation.getRecord": mainSchema; 195 - } 196 - }
-257
src/lexicon-types/types/org/latha/strata/citation/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.citation.listRecords#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _hydrateReasoningRecordSchema = /*#__PURE__*/ v.object({ 85 - $type: /*#__PURE__*/ v.optional( 86 - /*#__PURE__*/ v.literal( 87 - "org.latha.strata.citation.listRecords#hydrateReasoningRecord", 88 - ), 89 - ), 90 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 91 - collection: /*#__PURE__*/ v.nsidString(), 92 - did: /*#__PURE__*/ v.didString(), 93 - record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 94 - rkey: /*#__PURE__*/ v.string(), 95 - time_us: /*#__PURE__*/ v.integer(), 96 - uri: /*#__PURE__*/ v.resourceUriString(), 97 - }); 98 - const _mainSchema = /*#__PURE__*/ v.query( 99 - "org.latha.strata.citation.listRecords", 100 - { 101 - params: /*#__PURE__*/ v.object({ 102 - /** 103 - * Filter by DID or handle (triggers on-demand backfill) 104 - */ 105 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 106 - /** 107 - * Filter by confidence 108 - */ 109 - confidence: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 110 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 111 - /** 112 - * Filter by domain 113 - */ 114 - domain: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 115 - /** 116 - * Number of reasoning records to embed per record 117 - * @minimum 1 118 - * @maximum 50 119 - */ 120 - hydrateReasoning: /*#__PURE__*/ v.optional( 121 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 122 - /*#__PURE__*/ v.integerRange(1, 50), 123 - ]), 124 - ), 125 - /** 126 - * @minimum 1 127 - * @maximum 200 128 - * @default 50 129 - */ 130 - limit: /*#__PURE__*/ v.optional( 131 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 132 - /*#__PURE__*/ v.integerRange(1, 200), 133 - ]), 134 - 50, 135 - ), 136 - /** 137 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 138 - */ 139 - order: /*#__PURE__*/ v.optional( 140 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 141 - ), 142 - /** 143 - * Include profile + identity info keyed by DID 144 - */ 145 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 146 - /** 147 - * Minimum total reasoning count 148 - */ 149 - reasoningCountMin: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 150 - /** 151 - * Full-text search across: title, takeaway 152 - */ 153 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 154 - /** 155 - * Field to sort by (default: time_us) 156 - */ 157 - sort: /*#__PURE__*/ v.optional( 158 - /*#__PURE__*/ v.string< 159 - "confidence" | "domain" | "reasoningCount" | "url" | (string & {}) 160 - >(), 161 - ), 162 - /** 163 - * Filter by url 164 - */ 165 - url: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 166 - }), 167 - output: { 168 - type: "lex", 169 - schema: /*#__PURE__*/ v.object({ 170 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 171 - get profiles() { 172 - return /*#__PURE__*/ v.optional( 173 - /*#__PURE__*/ v.array(profileEntrySchema), 174 - ); 175 - }, 176 - get records() { 177 - return /*#__PURE__*/ v.array(recordSchema); 178 - }, 179 - }), 180 - }, 181 - }, 182 - ); 183 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 184 - $type: /*#__PURE__*/ v.optional( 185 - /*#__PURE__*/ v.literal( 186 - "org.latha.strata.citation.listRecords#profileEntry", 187 - ), 188 - ), 189 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 190 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 191 - did: /*#__PURE__*/ v.didString(), 192 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 193 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 194 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 195 - get value() { 196 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 197 - }, 198 - }); 199 - const _recordSchema = /*#__PURE__*/ v.object({ 200 - $type: /*#__PURE__*/ v.optional( 201 - /*#__PURE__*/ v.literal("org.latha.strata.citation.listRecords#record"), 202 - ), 203 - cid: /*#__PURE__*/ v.cidString(), 204 - collection: /*#__PURE__*/ v.nsidString(), 205 - did: /*#__PURE__*/ v.didString(), 206 - get reasoning() { 207 - return /*#__PURE__*/ v.optional( 208 - /*#__PURE__*/ v.array(hydrateReasoningRecordSchema), 209 - ); 210 - }, 211 - /** 212 - * Total reasoning count 213 - */ 214 - reasoningCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 215 - rkey: /*#__PURE__*/ v.string(), 216 - time_us: /*#__PURE__*/ v.integer(), 217 - uri: /*#__PURE__*/ v.resourceUriString(), 218 - value: /*#__PURE__*/ v.unknown(), 219 - }); 220 - 221 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 222 - type hydrateReasoningRecord$schematype = typeof _hydrateReasoningRecordSchema; 223 - type main$schematype = typeof _mainSchema; 224 - type profileEntry$schematype = typeof _profileEntrySchema; 225 - type record$schematype = typeof _recordSchema; 226 - 227 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 228 - export interface hydrateReasoningRecordSchema extends hydrateReasoningRecord$schematype {} 229 - export interface mainSchema extends main$schematype {} 230 - export interface profileEntrySchema extends profileEntry$schematype {} 231 - export interface recordSchema extends record$schematype {} 232 - 233 - export const appBskyActorProfileSchema = 234 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 235 - export const hydrateReasoningRecordSchema = 236 - _hydrateReasoningRecordSchema as hydrateReasoningRecordSchema; 237 - export const mainSchema = _mainSchema as mainSchema; 238 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 239 - export const recordSchema = _recordSchema as recordSchema; 240 - 241 - export interface AppBskyActorProfile extends v.InferInput< 242 - typeof appBskyActorProfileSchema 243 - > {} 244 - export interface HydrateReasoningRecord extends v.InferInput< 245 - typeof hydrateReasoningRecordSchema 246 - > {} 247 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 248 - export interface Record extends v.InferInput<typeof recordSchema> {} 249 - 250 - export interface $params extends v.InferInput<mainSchema["params"]> {} 251 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 252 - 253 - declare module "@atcute/lexicons/ambient" { 254 - interface XRPCQueries { 255 - "org.latha.strata.citation.listRecords": mainSchema; 256 - } 257 - }
-204
src/lexicon-types/types/org/latha/strata/collection/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikCard from "../../../../network/cosmik/card.js"; 7 - import * as NetworkCosmikCollection from "../../../../network/cosmik/collection.js"; 8 - 9 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 10 - $type: /*#__PURE__*/ v.optional( 11 - /*#__PURE__*/ v.literal( 12 - "org.latha.strata.collection.getRecord#appBskyActorProfile", 13 - ), 14 - ), 15 - /** 16 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 17 - * @accept image/png, image/jpeg 18 - * @maxSize 1000000 19 - */ 20 - avatar: /*#__PURE__*/ v.optional( 21 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 22 - /*#__PURE__*/ v.blobSize(1000000), 23 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 24 - ]), 25 - ), 26 - /** 27 - * Larger horizontal image to display behind profile view. 28 - * @accept image/png, image/jpeg 29 - * @maxSize 1000000 30 - */ 31 - banner: /*#__PURE__*/ v.optional( 32 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 33 - /*#__PURE__*/ v.blobSize(1000000), 34 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 35 - ]), 36 - ), 37 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 38 - /** 39 - * Free-form profile description text. 40 - * @maxLength 2560 41 - * @maxGraphemes 256 42 - */ 43 - description: /*#__PURE__*/ v.optional( 44 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 45 - /*#__PURE__*/ v.stringLength(0, 2560), 46 - /*#__PURE__*/ v.stringGraphemes(0, 256), 47 - ]), 48 - ), 49 - /** 50 - * @maxLength 640 51 - * @maxGraphemes 64 52 - */ 53 - displayName: /*#__PURE__*/ v.optional( 54 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 55 - /*#__PURE__*/ v.stringLength(0, 640), 56 - /*#__PURE__*/ v.stringGraphemes(0, 64), 57 - ]), 58 - ), 59 - get joinedViaStarterPack() { 60 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 61 - }, 62 - /** 63 - * Self-label values, specific to the Bluesky application, on the overall account. 64 - */ 65 - get labels() { 66 - return /*#__PURE__*/ v.optional( 67 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 68 - ); 69 - }, 70 - get pinnedPost() { 71 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 72 - }, 73 - /** 74 - * Free-form pronouns text. 75 - * @maxLength 200 76 - * @maxGraphemes 20 77 - */ 78 - pronouns: /*#__PURE__*/ v.optional( 79 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 80 - /*#__PURE__*/ v.stringLength(0, 200), 81 - /*#__PURE__*/ v.stringGraphemes(0, 20), 82 - ]), 83 - ), 84 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 85 - }); 86 - const _hydrateCardsRecordSchema = /*#__PURE__*/ v.object({ 87 - $type: /*#__PURE__*/ v.optional( 88 - /*#__PURE__*/ v.literal( 89 - "org.latha.strata.collection.getRecord#hydrateCardsRecord", 90 - ), 91 - ), 92 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 93 - collection: /*#__PURE__*/ v.nsidString(), 94 - did: /*#__PURE__*/ v.didString(), 95 - get record() { 96 - return /*#__PURE__*/ v.optional(NetworkCosmikCard.mainSchema); 97 - }, 98 - rkey: /*#__PURE__*/ v.string(), 99 - time_us: /*#__PURE__*/ v.integer(), 100 - uri: /*#__PURE__*/ v.resourceUriString(), 101 - }); 102 - const _mainSchema = /*#__PURE__*/ v.query( 103 - "org.latha.strata.collection.getRecord", 104 - { 105 - params: /*#__PURE__*/ v.object({ 106 - /** 107 - * Number of cards records to embed 108 - * @minimum 1 109 - * @maximum 50 110 - */ 111 - hydrateCards: /*#__PURE__*/ v.optional( 112 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 113 - /*#__PURE__*/ v.integerRange(1, 50), 114 - ]), 115 - ), 116 - /** 117 - * Include profile + identity info keyed by DID 118 - */ 119 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 120 - /** 121 - * AT URI of the record 122 - */ 123 - uri: /*#__PURE__*/ v.resourceUriString(), 124 - }), 125 - output: { 126 - type: "lex", 127 - schema: /*#__PURE__*/ v.object({ 128 - get cards() { 129 - return /*#__PURE__*/ v.optional( 130 - /*#__PURE__*/ v.array(hydrateCardsRecordSchema), 131 - ); 132 - }, 133 - /** 134 - * Total cards count 135 - */ 136 - cardsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 137 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 138 - collection: /*#__PURE__*/ v.nsidString(), 139 - did: /*#__PURE__*/ v.didString(), 140 - get profiles() { 141 - return /*#__PURE__*/ v.optional( 142 - /*#__PURE__*/ v.array(profileEntrySchema), 143 - ); 144 - }, 145 - rkey: /*#__PURE__*/ v.string(), 146 - time_us: /*#__PURE__*/ v.integer(), 147 - uri: /*#__PURE__*/ v.resourceUriString(), 148 - get value() { 149 - return NetworkCosmikCollection.mainSchema; 150 - }, 151 - }), 152 - }, 153 - }, 154 - ); 155 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 156 - $type: /*#__PURE__*/ v.optional( 157 - /*#__PURE__*/ v.literal( 158 - "org.latha.strata.collection.getRecord#profileEntry", 159 - ), 160 - ), 161 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 162 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 163 - did: /*#__PURE__*/ v.didString(), 164 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 165 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 166 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 167 - get value() { 168 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 169 - }, 170 - }); 171 - 172 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 173 - type hydrateCardsRecord$schematype = typeof _hydrateCardsRecordSchema; 174 - type main$schematype = typeof _mainSchema; 175 - type profileEntry$schematype = typeof _profileEntrySchema; 176 - 177 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 178 - export interface hydrateCardsRecordSchema extends hydrateCardsRecord$schematype {} 179 - export interface mainSchema extends main$schematype {} 180 - export interface profileEntrySchema extends profileEntry$schematype {} 181 - 182 - export const appBskyActorProfileSchema = 183 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 184 - export const hydrateCardsRecordSchema = 185 - _hydrateCardsRecordSchema as hydrateCardsRecordSchema; 186 - export const mainSchema = _mainSchema as mainSchema; 187 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 188 - 189 - export interface AppBskyActorProfile extends v.InferInput< 190 - typeof appBskyActorProfileSchema 191 - > {} 192 - export interface HydrateCardsRecord extends v.InferInput< 193 - typeof hydrateCardsRecordSchema 194 - > {} 195 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 196 - 197 - export interface $params extends v.InferInput<mainSchema["params"]> {} 198 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 199 - 200 - declare module "@atcute/lexicons/ambient" { 201 - interface XRPCQueries { 202 - "org.latha.strata.collection.getRecord": mainSchema; 203 - } 204 - }
-259
src/lexicon-types/types/org/latha/strata/collection/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikCard from "../../../../network/cosmik/card.js"; 7 - import * as NetworkCosmikCollection from "../../../../network/cosmik/collection.js"; 8 - 9 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 10 - $type: /*#__PURE__*/ v.optional( 11 - /*#__PURE__*/ v.literal( 12 - "org.latha.strata.collection.listRecords#appBskyActorProfile", 13 - ), 14 - ), 15 - /** 16 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 17 - * @accept image/png, image/jpeg 18 - * @maxSize 1000000 19 - */ 20 - avatar: /*#__PURE__*/ v.optional( 21 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 22 - /*#__PURE__*/ v.blobSize(1000000), 23 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 24 - ]), 25 - ), 26 - /** 27 - * Larger horizontal image to display behind profile view. 28 - * @accept image/png, image/jpeg 29 - * @maxSize 1000000 30 - */ 31 - banner: /*#__PURE__*/ v.optional( 32 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 33 - /*#__PURE__*/ v.blobSize(1000000), 34 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 35 - ]), 36 - ), 37 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 38 - /** 39 - * Free-form profile description text. 40 - * @maxLength 2560 41 - * @maxGraphemes 256 42 - */ 43 - description: /*#__PURE__*/ v.optional( 44 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 45 - /*#__PURE__*/ v.stringLength(0, 2560), 46 - /*#__PURE__*/ v.stringGraphemes(0, 256), 47 - ]), 48 - ), 49 - /** 50 - * @maxLength 640 51 - * @maxGraphemes 64 52 - */ 53 - displayName: /*#__PURE__*/ v.optional( 54 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 55 - /*#__PURE__*/ v.stringLength(0, 640), 56 - /*#__PURE__*/ v.stringGraphemes(0, 64), 57 - ]), 58 - ), 59 - get joinedViaStarterPack() { 60 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 61 - }, 62 - /** 63 - * Self-label values, specific to the Bluesky application, on the overall account. 64 - */ 65 - get labels() { 66 - return /*#__PURE__*/ v.optional( 67 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 68 - ); 69 - }, 70 - get pinnedPost() { 71 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 72 - }, 73 - /** 74 - * Free-form pronouns text. 75 - * @maxLength 200 76 - * @maxGraphemes 20 77 - */ 78 - pronouns: /*#__PURE__*/ v.optional( 79 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 80 - /*#__PURE__*/ v.stringLength(0, 200), 81 - /*#__PURE__*/ v.stringGraphemes(0, 20), 82 - ]), 83 - ), 84 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 85 - }); 86 - const _hydrateCardsRecordSchema = /*#__PURE__*/ v.object({ 87 - $type: /*#__PURE__*/ v.optional( 88 - /*#__PURE__*/ v.literal( 89 - "org.latha.strata.collection.listRecords#hydrateCardsRecord", 90 - ), 91 - ), 92 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 93 - collection: /*#__PURE__*/ v.nsidString(), 94 - did: /*#__PURE__*/ v.didString(), 95 - get record() { 96 - return /*#__PURE__*/ v.optional(NetworkCosmikCard.mainSchema); 97 - }, 98 - rkey: /*#__PURE__*/ v.string(), 99 - time_us: /*#__PURE__*/ v.integer(), 100 - uri: /*#__PURE__*/ v.resourceUriString(), 101 - }); 102 - const _mainSchema = /*#__PURE__*/ v.query( 103 - "org.latha.strata.collection.listRecords", 104 - { 105 - params: /*#__PURE__*/ v.object({ 106 - /** 107 - * Filter by accessType 108 - */ 109 - accessType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 110 - /** 111 - * Filter by DID or handle (triggers on-demand backfill) 112 - */ 113 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 114 - /** 115 - * Minimum total cards count 116 - */ 117 - cardsCountMin: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 118 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 119 - /** 120 - * Number of cards records to embed per record 121 - * @minimum 1 122 - * @maximum 50 123 - */ 124 - hydrateCards: /*#__PURE__*/ v.optional( 125 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 126 - /*#__PURE__*/ v.integerRange(1, 50), 127 - ]), 128 - ), 129 - /** 130 - * @minimum 1 131 - * @maximum 200 132 - * @default 50 133 - */ 134 - limit: /*#__PURE__*/ v.optional( 135 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 136 - /*#__PURE__*/ v.integerRange(1, 200), 137 - ]), 138 - 50, 139 - ), 140 - /** 141 - * Filter by name 142 - */ 143 - name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 144 - /** 145 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 146 - */ 147 - order: /*#__PURE__*/ v.optional( 148 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 149 - ), 150 - /** 151 - * Include profile + identity info keyed by DID 152 - */ 153 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 154 - /** 155 - * Full-text search across: name, description 156 - */ 157 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 158 - /** 159 - * Field to sort by (default: time_us) 160 - */ 161 - sort: /*#__PURE__*/ v.optional( 162 - /*#__PURE__*/ v.string< 163 - "accessType" | "cardsCount" | "name" | (string & {}) 164 - >(), 165 - ), 166 - }), 167 - output: { 168 - type: "lex", 169 - schema: /*#__PURE__*/ v.object({ 170 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 171 - get profiles() { 172 - return /*#__PURE__*/ v.optional( 173 - /*#__PURE__*/ v.array(profileEntrySchema), 174 - ); 175 - }, 176 - get records() { 177 - return /*#__PURE__*/ v.array(recordSchema); 178 - }, 179 - }), 180 - }, 181 - }, 182 - ); 183 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 184 - $type: /*#__PURE__*/ v.optional( 185 - /*#__PURE__*/ v.literal( 186 - "org.latha.strata.collection.listRecords#profileEntry", 187 - ), 188 - ), 189 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 190 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 191 - did: /*#__PURE__*/ v.didString(), 192 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 193 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 194 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 195 - get value() { 196 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 197 - }, 198 - }); 199 - const _recordSchema = /*#__PURE__*/ v.object({ 200 - $type: /*#__PURE__*/ v.optional( 201 - /*#__PURE__*/ v.literal("org.latha.strata.collection.listRecords#record"), 202 - ), 203 - get cards() { 204 - return /*#__PURE__*/ v.optional( 205 - /*#__PURE__*/ v.array(hydrateCardsRecordSchema), 206 - ); 207 - }, 208 - /** 209 - * Total cards count 210 - */ 211 - cardsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 212 - cid: /*#__PURE__*/ v.cidString(), 213 - collection: /*#__PURE__*/ v.nsidString(), 214 - did: /*#__PURE__*/ v.didString(), 215 - rkey: /*#__PURE__*/ v.string(), 216 - time_us: /*#__PURE__*/ v.integer(), 217 - uri: /*#__PURE__*/ v.resourceUriString(), 218 - get value() { 219 - return NetworkCosmikCollection.mainSchema; 220 - }, 221 - }); 222 - 223 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 224 - type hydrateCardsRecord$schematype = typeof _hydrateCardsRecordSchema; 225 - type main$schematype = typeof _mainSchema; 226 - type profileEntry$schematype = typeof _profileEntrySchema; 227 - type record$schematype = typeof _recordSchema; 228 - 229 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 230 - export interface hydrateCardsRecordSchema extends hydrateCardsRecord$schematype {} 231 - export interface mainSchema extends main$schematype {} 232 - export interface profileEntrySchema extends profileEntry$schematype {} 233 - export interface recordSchema extends record$schematype {} 234 - 235 - export const appBskyActorProfileSchema = 236 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 237 - export const hydrateCardsRecordSchema = 238 - _hydrateCardsRecordSchema as hydrateCardsRecordSchema; 239 - export const mainSchema = _mainSchema as mainSchema; 240 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 241 - export const recordSchema = _recordSchema as recordSchema; 242 - 243 - export interface AppBskyActorProfile extends v.InferInput< 244 - typeof appBskyActorProfileSchema 245 - > {} 246 - export interface HydrateCardsRecord extends v.InferInput< 247 - typeof hydrateCardsRecordSchema 248 - > {} 249 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 250 - export interface Record extends v.InferInput<typeof recordSchema> {} 251 - 252 - export interface $params extends v.InferInput<mainSchema["params"]> {} 253 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 254 - 255 - declare module "@atcute/lexicons/ambient" { 256 - interface XRPCQueries { 257 - "org.latha.strata.collection.listRecords": mainSchema; 258 - } 259 - }
-161
src/lexicon-types/types/org/latha/strata/connection/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikConnection from "../../../../network/cosmik/connection.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.connection.getRecord#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query( 86 - "org.latha.strata.connection.getRecord", 87 - { 88 - params: /*#__PURE__*/ v.object({ 89 - /** 90 - * Include profile + identity info keyed by DID 91 - */ 92 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 93 - /** 94 - * AT URI of the record 95 - */ 96 - uri: /*#__PURE__*/ v.resourceUriString(), 97 - }), 98 - output: { 99 - type: "lex", 100 - schema: /*#__PURE__*/ v.object({ 101 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 102 - collection: /*#__PURE__*/ v.nsidString(), 103 - did: /*#__PURE__*/ v.didString(), 104 - get profiles() { 105 - return /*#__PURE__*/ v.optional( 106 - /*#__PURE__*/ v.array(profileEntrySchema), 107 - ); 108 - }, 109 - rkey: /*#__PURE__*/ v.string(), 110 - time_us: /*#__PURE__*/ v.integer(), 111 - uri: /*#__PURE__*/ v.resourceUriString(), 112 - get value() { 113 - return NetworkCosmikConnection.mainSchema; 114 - }, 115 - }), 116 - }, 117 - }, 118 - ); 119 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 120 - $type: /*#__PURE__*/ v.optional( 121 - /*#__PURE__*/ v.literal( 122 - "org.latha.strata.connection.getRecord#profileEntry", 123 - ), 124 - ), 125 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 126 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 127 - did: /*#__PURE__*/ v.didString(), 128 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 129 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 130 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 131 - get value() { 132 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 133 - }, 134 - }); 135 - 136 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 137 - type main$schematype = typeof _mainSchema; 138 - type profileEntry$schematype = typeof _profileEntrySchema; 139 - 140 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 141 - export interface mainSchema extends main$schematype {} 142 - export interface profileEntrySchema extends profileEntry$schematype {} 143 - 144 - export const appBskyActorProfileSchema = 145 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 146 - export const mainSchema = _mainSchema as mainSchema; 147 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 148 - 149 - export interface AppBskyActorProfile extends v.InferInput< 150 - typeof appBskyActorProfileSchema 151 - > {} 152 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 153 - 154 - export interface $params extends v.InferInput<mainSchema["params"]> {} 155 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 156 - 157 - declare module "@atcute/lexicons/ambient" { 158 - interface XRPCQueries { 159 - "org.latha.strata.connection.getRecord": mainSchema; 160 - } 161 - }
-216
src/lexicon-types/types/org/latha/strata/connection/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikConnection from "../../../../network/cosmik/connection.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.connection.listRecords#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query( 86 - "org.latha.strata.connection.listRecords", 87 - { 88 - params: /*#__PURE__*/ v.object({ 89 - /** 90 - * Filter by DID or handle (triggers on-demand backfill) 91 - */ 92 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 93 - /** 94 - * Filter by connectionType 95 - */ 96 - connectionType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 97 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 98 - /** 99 - * @minimum 1 100 - * @maximum 200 101 - * @default 50 102 - */ 103 - limit: /*#__PURE__*/ v.optional( 104 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 105 - /*#__PURE__*/ v.integerRange(1, 200), 106 - ]), 107 - 50, 108 - ), 109 - /** 110 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 111 - */ 112 - order: /*#__PURE__*/ v.optional( 113 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 114 - ), 115 - /** 116 - * Include profile + identity info keyed by DID 117 - */ 118 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 119 - /** 120 - * Full-text search across: note 121 - */ 122 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 123 - /** 124 - * Field to sort by (default: time_us) 125 - */ 126 - sort: /*#__PURE__*/ v.optional( 127 - /*#__PURE__*/ v.string< 128 - "connectionType" | "source" | "target" | (string & {}) 129 - >(), 130 - ), 131 - /** 132 - * Filter by source 133 - */ 134 - source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 135 - /** 136 - * Filter by target 137 - */ 138 - target: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 139 - }), 140 - output: { 141 - type: "lex", 142 - schema: /*#__PURE__*/ v.object({ 143 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 144 - get profiles() { 145 - return /*#__PURE__*/ v.optional( 146 - /*#__PURE__*/ v.array(profileEntrySchema), 147 - ); 148 - }, 149 - get records() { 150 - return /*#__PURE__*/ v.array(recordSchema); 151 - }, 152 - }), 153 - }, 154 - }, 155 - ); 156 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 157 - $type: /*#__PURE__*/ v.optional( 158 - /*#__PURE__*/ v.literal( 159 - "org.latha.strata.connection.listRecords#profileEntry", 160 - ), 161 - ), 162 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 163 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 164 - did: /*#__PURE__*/ v.didString(), 165 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 166 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 167 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 168 - get value() { 169 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 170 - }, 171 - }); 172 - const _recordSchema = /*#__PURE__*/ v.object({ 173 - $type: /*#__PURE__*/ v.optional( 174 - /*#__PURE__*/ v.literal("org.latha.strata.connection.listRecords#record"), 175 - ), 176 - cid: /*#__PURE__*/ v.cidString(), 177 - collection: /*#__PURE__*/ v.nsidString(), 178 - did: /*#__PURE__*/ v.didString(), 179 - rkey: /*#__PURE__*/ v.string(), 180 - time_us: /*#__PURE__*/ v.integer(), 181 - uri: /*#__PURE__*/ v.resourceUriString(), 182 - get value() { 183 - return NetworkCosmikConnection.mainSchema; 184 - }, 185 - }); 186 - 187 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 188 - type main$schematype = typeof _mainSchema; 189 - type profileEntry$schematype = typeof _profileEntrySchema; 190 - type record$schematype = typeof _recordSchema; 191 - 192 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 193 - export interface mainSchema extends main$schematype {} 194 - export interface profileEntrySchema extends profileEntry$schematype {} 195 - export interface recordSchema extends record$schematype {} 196 - 197 - export const appBskyActorProfileSchema = 198 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 199 - export const mainSchema = _mainSchema as mainSchema; 200 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 201 - export const recordSchema = _recordSchema as recordSchema; 202 - 203 - export interface AppBskyActorProfile extends v.InferInput< 204 - typeof appBskyActorProfileSchema 205 - > {} 206 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 207 - export interface Record extends v.InferInput<typeof recordSchema> {} 208 - 209 - export interface $params extends v.InferInput<mainSchema["params"]> {} 210 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 211 - 212 - declare module "@atcute/lexicons/ambient" { 213 - interface XRPCQueries { 214 - "org.latha.strata.connection.listRecords": mainSchema; 215 - } 216 - }
-153
src/lexicon-types/types/org/latha/strata/entity/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.entity.getRecord#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.entity.getRecord", { 85 - params: /*#__PURE__*/ v.object({ 86 - /** 87 - * Include profile + identity info keyed by DID 88 - */ 89 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 90 - /** 91 - * AT URI of the record 92 - */ 93 - uri: /*#__PURE__*/ v.resourceUriString(), 94 - }), 95 - output: { 96 - type: "lex", 97 - schema: /*#__PURE__*/ v.object({ 98 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 99 - collection: /*#__PURE__*/ v.nsidString(), 100 - did: /*#__PURE__*/ v.didString(), 101 - get profiles() { 102 - return /*#__PURE__*/ v.optional( 103 - /*#__PURE__*/ v.array(profileEntrySchema), 104 - ); 105 - }, 106 - rkey: /*#__PURE__*/ v.string(), 107 - time_us: /*#__PURE__*/ v.integer(), 108 - uri: /*#__PURE__*/ v.resourceUriString(), 109 - value: /*#__PURE__*/ v.unknown(), 110 - }), 111 - }, 112 - }); 113 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 114 - $type: /*#__PURE__*/ v.optional( 115 - /*#__PURE__*/ v.literal("org.latha.strata.entity.getRecord#profileEntry"), 116 - ), 117 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 118 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 119 - did: /*#__PURE__*/ v.didString(), 120 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 121 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 122 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 123 - get value() { 124 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 125 - }, 126 - }); 127 - 128 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 129 - type main$schematype = typeof _mainSchema; 130 - type profileEntry$schematype = typeof _profileEntrySchema; 131 - 132 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 133 - export interface mainSchema extends main$schematype {} 134 - export interface profileEntrySchema extends profileEntry$schematype {} 135 - 136 - export const appBskyActorProfileSchema = 137 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 138 - export const mainSchema = _mainSchema as mainSchema; 139 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 140 - 141 - export interface AppBskyActorProfile extends v.InferInput< 142 - typeof appBskyActorProfileSchema 143 - > {} 144 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 145 - 146 - export interface $params extends v.InferInput<mainSchema["params"]> {} 147 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 148 - 149 - declare module "@atcute/lexicons/ambient" { 150 - interface XRPCQueries { 151 - "org.latha.strata.entity.getRecord": mainSchema; 152 - } 153 - }
-205
src/lexicon-types/types/org/latha/strata/entity/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.entity.listRecords#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _mainSchema = /*#__PURE__*/ v.query( 85 - "org.latha.strata.entity.listRecords", 86 - { 87 - params: /*#__PURE__*/ v.object({ 88 - /** 89 - * Filter by DID or handle (triggers on-demand backfill) 90 - */ 91 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 92 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 93 - /** 94 - * Filter by entityType 95 - */ 96 - entityType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 97 - /** 98 - * @minimum 1 99 - * @maximum 200 100 - * @default 50 101 - */ 102 - limit: /*#__PURE__*/ v.optional( 103 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 104 - /*#__PURE__*/ v.integerRange(1, 200), 105 - ]), 106 - 50, 107 - ), 108 - /** 109 - * Filter by name 110 - */ 111 - name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 112 - /** 113 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 114 - */ 115 - order: /*#__PURE__*/ v.optional( 116 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 117 - ), 118 - /** 119 - * Include profile + identity info keyed by DID 120 - */ 121 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 122 - /** 123 - * Full-text search across: name, description 124 - */ 125 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 126 - /** 127 - * Field to sort by (default: time_us) 128 - */ 129 - sort: /*#__PURE__*/ v.optional( 130 - /*#__PURE__*/ v.string<"entityType" | "name" | (string & {})>(), 131 - ), 132 - }), 133 - output: { 134 - type: "lex", 135 - schema: /*#__PURE__*/ v.object({ 136 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 137 - get profiles() { 138 - return /*#__PURE__*/ v.optional( 139 - /*#__PURE__*/ v.array(profileEntrySchema), 140 - ); 141 - }, 142 - get records() { 143 - return /*#__PURE__*/ v.array(recordSchema); 144 - }, 145 - }), 146 - }, 147 - }, 148 - ); 149 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 150 - $type: /*#__PURE__*/ v.optional( 151 - /*#__PURE__*/ v.literal("org.latha.strata.entity.listRecords#profileEntry"), 152 - ), 153 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 154 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 155 - did: /*#__PURE__*/ v.didString(), 156 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 157 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 158 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 159 - get value() { 160 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 161 - }, 162 - }); 163 - const _recordSchema = /*#__PURE__*/ v.object({ 164 - $type: /*#__PURE__*/ v.optional( 165 - /*#__PURE__*/ v.literal("org.latha.strata.entity.listRecords#record"), 166 - ), 167 - cid: /*#__PURE__*/ v.cidString(), 168 - collection: /*#__PURE__*/ v.nsidString(), 169 - did: /*#__PURE__*/ v.didString(), 170 - rkey: /*#__PURE__*/ v.string(), 171 - time_us: /*#__PURE__*/ v.integer(), 172 - uri: /*#__PURE__*/ v.resourceUriString(), 173 - value: /*#__PURE__*/ v.unknown(), 174 - }); 175 - 176 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 177 - type main$schematype = typeof _mainSchema; 178 - type profileEntry$schematype = typeof _profileEntrySchema; 179 - type record$schematype = typeof _recordSchema; 180 - 181 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 182 - export interface mainSchema extends main$schematype {} 183 - export interface profileEntrySchema extends profileEntry$schematype {} 184 - export interface recordSchema extends record$schematype {} 185 - 186 - export const appBskyActorProfileSchema = 187 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 188 - export const mainSchema = _mainSchema as mainSchema; 189 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 190 - export const recordSchema = _recordSchema as recordSchema; 191 - 192 - export interface AppBskyActorProfile extends v.InferInput< 193 - typeof appBskyActorProfileSchema 194 - > {} 195 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 196 - export interface Record extends v.InferInput<typeof recordSchema> {} 197 - 198 - export interface $params extends v.InferInput<mainSchema["params"]> {} 199 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 200 - 201 - declare module "@atcute/lexicons/ambient" { 202 - interface XRPCQueries { 203 - "org.latha.strata.entity.listRecords": mainSchema; 204 - } 205 - }
-156
src/lexicon-types/types/org/latha/strata/follow/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikFollow from "../../../../network/cosmik/follow.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.follow.getRecord#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.follow.getRecord", { 86 - params: /*#__PURE__*/ v.object({ 87 - /** 88 - * Include profile + identity info keyed by DID 89 - */ 90 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 91 - /** 92 - * AT URI of the record 93 - */ 94 - uri: /*#__PURE__*/ v.resourceUriString(), 95 - }), 96 - output: { 97 - type: "lex", 98 - schema: /*#__PURE__*/ v.object({ 99 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 100 - collection: /*#__PURE__*/ v.nsidString(), 101 - did: /*#__PURE__*/ v.didString(), 102 - get profiles() { 103 - return /*#__PURE__*/ v.optional( 104 - /*#__PURE__*/ v.array(profileEntrySchema), 105 - ); 106 - }, 107 - rkey: /*#__PURE__*/ v.string(), 108 - time_us: /*#__PURE__*/ v.integer(), 109 - uri: /*#__PURE__*/ v.resourceUriString(), 110 - get value() { 111 - return NetworkCosmikFollow.mainSchema; 112 - }, 113 - }), 114 - }, 115 - }); 116 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 117 - $type: /*#__PURE__*/ v.optional( 118 - /*#__PURE__*/ v.literal("org.latha.strata.follow.getRecord#profileEntry"), 119 - ), 120 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 121 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 122 - did: /*#__PURE__*/ v.didString(), 123 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 124 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 125 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 126 - get value() { 127 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 128 - }, 129 - }); 130 - 131 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 132 - type main$schematype = typeof _mainSchema; 133 - type profileEntry$schematype = typeof _profileEntrySchema; 134 - 135 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 136 - export interface mainSchema extends main$schematype {} 137 - export interface profileEntrySchema extends profileEntry$schematype {} 138 - 139 - export const appBskyActorProfileSchema = 140 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 141 - export const mainSchema = _mainSchema as mainSchema; 142 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 143 - 144 - export interface AppBskyActorProfile extends v.InferInput< 145 - typeof appBskyActorProfileSchema 146 - > {} 147 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 148 - 149 - export interface $params extends v.InferInput<mainSchema["params"]> {} 150 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 151 - 152 - declare module "@atcute/lexicons/ambient" { 153 - interface XRPCQueries { 154 - "org.latha.strata.follow.getRecord": mainSchema; 155 - } 156 - }
-200
src/lexicon-types/types/org/latha/strata/follow/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - import * as NetworkCosmikFollow from "../../../../network/cosmik/follow.js"; 7 - 8 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.literal( 11 - "org.latha.strata.follow.listRecords#appBskyActorProfile", 12 - ), 13 - ), 14 - /** 15 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 16 - * @accept image/png, image/jpeg 17 - * @maxSize 1000000 18 - */ 19 - avatar: /*#__PURE__*/ v.optional( 20 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 21 - /*#__PURE__*/ v.blobSize(1000000), 22 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 23 - ]), 24 - ), 25 - /** 26 - * Larger horizontal image to display behind profile view. 27 - * @accept image/png, image/jpeg 28 - * @maxSize 1000000 29 - */ 30 - banner: /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 32 - /*#__PURE__*/ v.blobSize(1000000), 33 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 34 - ]), 35 - ), 36 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 37 - /** 38 - * Free-form profile description text. 39 - * @maxLength 2560 40 - * @maxGraphemes 256 41 - */ 42 - description: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 44 - /*#__PURE__*/ v.stringLength(0, 2560), 45 - /*#__PURE__*/ v.stringGraphemes(0, 256), 46 - ]), 47 - ), 48 - /** 49 - * @maxLength 640 50 - * @maxGraphemes 64 51 - */ 52 - displayName: /*#__PURE__*/ v.optional( 53 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 54 - /*#__PURE__*/ v.stringLength(0, 640), 55 - /*#__PURE__*/ v.stringGraphemes(0, 64), 56 - ]), 57 - ), 58 - get joinedViaStarterPack() { 59 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 60 - }, 61 - /** 62 - * Self-label values, specific to the Bluesky application, on the overall account. 63 - */ 64 - get labels() { 65 - return /*#__PURE__*/ v.optional( 66 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 67 - ); 68 - }, 69 - get pinnedPost() { 70 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 71 - }, 72 - /** 73 - * Free-form pronouns text. 74 - * @maxLength 200 75 - * @maxGraphemes 20 76 - */ 77 - pronouns: /*#__PURE__*/ v.optional( 78 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 79 - /*#__PURE__*/ v.stringLength(0, 200), 80 - /*#__PURE__*/ v.stringGraphemes(0, 20), 81 - ]), 82 - ), 83 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 84 - }); 85 - const _mainSchema = /*#__PURE__*/ v.query( 86 - "org.latha.strata.follow.listRecords", 87 - { 88 - params: /*#__PURE__*/ v.object({ 89 - /** 90 - * Filter by DID or handle (triggers on-demand backfill) 91 - */ 92 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 93 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 94 - /** 95 - * @minimum 1 96 - * @maximum 200 97 - * @default 50 98 - */ 99 - limit: /*#__PURE__*/ v.optional( 100 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 101 - /*#__PURE__*/ v.integerRange(1, 200), 102 - ]), 103 - 50, 104 - ), 105 - /** 106 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 107 - */ 108 - order: /*#__PURE__*/ v.optional( 109 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 110 - ), 111 - /** 112 - * Include profile + identity info keyed by DID 113 - */ 114 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 115 - /** 116 - * Field to sort by (default: time_us) 117 - */ 118 - sort: /*#__PURE__*/ v.optional( 119 - /*#__PURE__*/ v.string<"subject" | (string & {})>(), 120 - ), 121 - /** 122 - * Filter by subject 123 - */ 124 - subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 125 - }), 126 - output: { 127 - type: "lex", 128 - schema: /*#__PURE__*/ v.object({ 129 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 130 - get profiles() { 131 - return /*#__PURE__*/ v.optional( 132 - /*#__PURE__*/ v.array(profileEntrySchema), 133 - ); 134 - }, 135 - get records() { 136 - return /*#__PURE__*/ v.array(recordSchema); 137 - }, 138 - }), 139 - }, 140 - }, 141 - ); 142 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 143 - $type: /*#__PURE__*/ v.optional( 144 - /*#__PURE__*/ v.literal("org.latha.strata.follow.listRecords#profileEntry"), 145 - ), 146 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 147 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 148 - did: /*#__PURE__*/ v.didString(), 149 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 150 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 151 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 152 - get value() { 153 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 154 - }, 155 - }); 156 - const _recordSchema = /*#__PURE__*/ v.object({ 157 - $type: /*#__PURE__*/ v.optional( 158 - /*#__PURE__*/ v.literal("org.latha.strata.follow.listRecords#record"), 159 - ), 160 - cid: /*#__PURE__*/ v.cidString(), 161 - collection: /*#__PURE__*/ v.nsidString(), 162 - did: /*#__PURE__*/ v.didString(), 163 - rkey: /*#__PURE__*/ v.string(), 164 - time_us: /*#__PURE__*/ v.integer(), 165 - uri: /*#__PURE__*/ v.resourceUriString(), 166 - get value() { 167 - return NetworkCosmikFollow.mainSchema; 168 - }, 169 - }); 170 - 171 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 172 - type main$schematype = typeof _mainSchema; 173 - type profileEntry$schematype = typeof _profileEntrySchema; 174 - type record$schematype = typeof _recordSchema; 175 - 176 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 177 - export interface mainSchema extends main$schematype {} 178 - export interface profileEntrySchema extends profileEntry$schematype {} 179 - export interface recordSchema extends record$schematype {} 180 - 181 - export const appBskyActorProfileSchema = 182 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 183 - export const mainSchema = _mainSchema as mainSchema; 184 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 185 - export const recordSchema = _recordSchema as recordSchema; 186 - 187 - export interface AppBskyActorProfile extends v.InferInput< 188 - typeof appBskyActorProfileSchema 189 - > {} 190 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 191 - export interface Record extends v.InferInput<typeof recordSchema> {} 192 - 193 - export interface $params extends v.InferInput<mainSchema["params"]> {} 194 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 195 - 196 - declare module "@atcute/lexicons/ambient" { 197 - interface XRPCQueries { 198 - "org.latha.strata.follow.listRecords": mainSchema; 199 - } 200 - }
-30
src/lexicon-types/types/org/latha/strata/getCursor.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - 5 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.getCursor", { 6 - params: null, 7 - output: { 8 - type: "lex", 9 - schema: /*#__PURE__*/ v.object({ 10 - date: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 - seconds_ago: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 12 - time_us: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 13 - }), 14 - }, 15 - }); 16 - 17 - type main$schematype = typeof _mainSchema; 18 - 19 - export interface mainSchema extends main$schematype {} 20 - 21 - export const mainSchema = _mainSchema as mainSchema; 22 - 23 - export interface $params {} 24 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 25 - 26 - declare module "@atcute/lexicons/ambient" { 27 - interface XRPCQueries { 28 - "org.latha.strata.getCursor": mainSchema; 29 - } 30 - }
-47
src/lexicon-types/types/org/latha/strata/getOverview.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - 5 - const _collectionStatsSchema = /*#__PURE__*/ v.object({ 6 - $type: /*#__PURE__*/ v.optional( 7 - /*#__PURE__*/ v.literal("org.latha.strata.getOverview#collectionStats"), 8 - ), 9 - collection: /*#__PURE__*/ v.string(), 10 - records: /*#__PURE__*/ v.integer(), 11 - unique_users: /*#__PURE__*/ v.integer(), 12 - }); 13 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.getOverview", { 14 - params: null, 15 - output: { 16 - type: "lex", 17 - schema: /*#__PURE__*/ v.object({ 18 - get collections() { 19 - return /*#__PURE__*/ v.array(collectionStatsSchema); 20 - }, 21 - total_records: /*#__PURE__*/ v.integer(), 22 - }), 23 - }, 24 - }); 25 - 26 - type collectionStats$schematype = typeof _collectionStatsSchema; 27 - type main$schematype = typeof _mainSchema; 28 - 29 - export interface collectionStatsSchema extends collectionStats$schematype {} 30 - export interface mainSchema extends main$schematype {} 31 - 32 - export const collectionStatsSchema = 33 - _collectionStatsSchema as collectionStatsSchema; 34 - export const mainSchema = _mainSchema as mainSchema; 35 - 36 - export interface CollectionStats extends v.InferInput< 37 - typeof collectionStatsSchema 38 - > {} 39 - 40 - export interface $params {} 41 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 42 - 43 - declare module "@atcute/lexicons/ambient" { 44 - interface XRPCQueries { 45 - "org.latha.strata.getOverview": mainSchema; 46 - } 47 - }
-138
src/lexicon-types/types/org/latha/strata/getProfile.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal("org.latha.strata.getProfile#appBskyActorProfile"), 10 - ), 11 - /** 12 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 13 - * @accept image/png, image/jpeg 14 - * @maxSize 1000000 15 - */ 16 - avatar: /*#__PURE__*/ v.optional( 17 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 18 - /*#__PURE__*/ v.blobSize(1000000), 19 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 20 - ]), 21 - ), 22 - /** 23 - * Larger horizontal image to display behind profile view. 24 - * @accept image/png, image/jpeg 25 - * @maxSize 1000000 26 - */ 27 - banner: /*#__PURE__*/ v.optional( 28 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 29 - /*#__PURE__*/ v.blobSize(1000000), 30 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 31 - ]), 32 - ), 33 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 34 - /** 35 - * Free-form profile description text. 36 - * @maxLength 2560 37 - * @maxGraphemes 256 38 - */ 39 - description: /*#__PURE__*/ v.optional( 40 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 41 - /*#__PURE__*/ v.stringLength(0, 2560), 42 - /*#__PURE__*/ v.stringGraphemes(0, 256), 43 - ]), 44 - ), 45 - /** 46 - * @maxLength 640 47 - * @maxGraphemes 64 48 - */ 49 - displayName: /*#__PURE__*/ v.optional( 50 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 51 - /*#__PURE__*/ v.stringLength(0, 640), 52 - /*#__PURE__*/ v.stringGraphemes(0, 64), 53 - ]), 54 - ), 55 - get joinedViaStarterPack() { 56 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 57 - }, 58 - /** 59 - * Self-label values, specific to the Bluesky application, on the overall account. 60 - */ 61 - get labels() { 62 - return /*#__PURE__*/ v.optional( 63 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 64 - ); 65 - }, 66 - get pinnedPost() { 67 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 68 - }, 69 - /** 70 - * Free-form pronouns text. 71 - * @maxLength 200 72 - * @maxGraphemes 20 73 - */ 74 - pronouns: /*#__PURE__*/ v.optional( 75 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 76 - /*#__PURE__*/ v.stringLength(0, 200), 77 - /*#__PURE__*/ v.stringGraphemes(0, 20), 78 - ]), 79 - ), 80 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 81 - }); 82 - const _mainSchema = /*#__PURE__*/ v.query("org.latha.strata.getProfile", { 83 - params: /*#__PURE__*/ v.object({ 84 - /** 85 - * DID or handle of the user 86 - */ 87 - actor: /*#__PURE__*/ v.actorIdentifierString(), 88 - }), 89 - output: { 90 - type: "lex", 91 - schema: /*#__PURE__*/ v.object({ 92 - get profiles() { 93 - return /*#__PURE__*/ v.array(profileEntrySchema); 94 - }, 95 - }), 96 - }, 97 - }); 98 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 99 - $type: /*#__PURE__*/ v.optional( 100 - /*#__PURE__*/ v.literal("org.latha.strata.getProfile#profileEntry"), 101 - ), 102 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 103 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 104 - did: /*#__PURE__*/ v.didString(), 105 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 106 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 107 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 108 - get value() { 109 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 110 - }, 111 - }); 112 - 113 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 114 - type main$schematype = typeof _mainSchema; 115 - type profileEntry$schematype = typeof _profileEntrySchema; 116 - 117 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 118 - export interface mainSchema extends main$schematype {} 119 - export interface profileEntrySchema extends profileEntry$schematype {} 120 - 121 - export const appBskyActorProfileSchema = 122 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 123 - export const mainSchema = _mainSchema as mainSchema; 124 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 125 - 126 - export interface AppBskyActorProfile extends v.InferInput< 127 - typeof appBskyActorProfileSchema 128 - > {} 129 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 130 - 131 - export interface $params extends v.InferInput<mainSchema["params"]> {} 132 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 133 - 134 - declare module "@atcute/lexicons/ambient" { 135 - interface XRPCQueries { 136 - "org.latha.strata.getProfile": mainSchema; 137 - } 138 - }
-64
src/lexicon-types/types/org/latha/strata/notifyOfUpdate.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - 5 - const _mainSchema = /*#__PURE__*/ v.procedure( 6 - "org.latha.strata.notifyOfUpdate", 7 - { 8 - params: null, 9 - input: { 10 - type: "lex", 11 - schema: /*#__PURE__*/ v.object({ 12 - /** 13 - * Single AT URI to fetch and index 14 - */ 15 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 16 - /** 17 - * Batch of AT URIs to fetch and index (max 25) 18 - * @maxLength 25 19 - */ 20 - uris: /*#__PURE__*/ v.optional( 21 - /*#__PURE__*/ v.constrain( 22 - /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), 23 - [/*#__PURE__*/ v.arrayLength(0, 25)], 24 - ), 25 - ), 26 - }), 27 - }, 28 - output: { 29 - type: "lex", 30 - schema: /*#__PURE__*/ v.object({ 31 - /** 32 - * Number of records deleted (not found on PDS) 33 - */ 34 - deleted: /*#__PURE__*/ v.integer(), 35 - /** 36 - * Errors for individual URIs that could not be processed 37 - */ 38 - errors: /*#__PURE__*/ v.optional( 39 - /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), 40 - ), 41 - /** 42 - * Number of records created or updated 43 - */ 44 - indexed: /*#__PURE__*/ v.integer(), 45 - }), 46 - }, 47 - }, 48 - ); 49 - 50 - type main$schematype = typeof _mainSchema; 51 - 52 - export interface mainSchema extends main$schematype {} 53 - 54 - export const mainSchema = _mainSchema as mainSchema; 55 - 56 - export interface $params {} 57 - export interface $input extends v.InferXRPCBodyInput<mainSchema["input"]> {} 58 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 59 - 60 - declare module "@atcute/lexicons/ambient" { 61 - interface XRPCProcedures { 62 - "org.latha.strata.notifyOfUpdate": mainSchema; 63 - } 64 - }
-186
src/lexicon-types/types/org/latha/strata/reasoning/getRecord.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.reasoning.getRecord#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _mainSchema = /*#__PURE__*/ v.query( 85 - "org.latha.strata.reasoning.getRecord", 86 - { 87 - params: /*#__PURE__*/ v.object({ 88 - /** 89 - * Embed the referenced citation record 90 - */ 91 - hydrateCitation: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 92 - /** 93 - * Include profile + identity info keyed by DID 94 - */ 95 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 96 - /** 97 - * AT URI of the record 98 - */ 99 - uri: /*#__PURE__*/ v.resourceUriString(), 100 - }), 101 - output: { 102 - type: "lex", 103 - schema: /*#__PURE__*/ v.object({ 104 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 105 - get citation() { 106 - return /*#__PURE__*/ v.optional(refCitationRecordSchema); 107 - }, 108 - collection: /*#__PURE__*/ v.nsidString(), 109 - did: /*#__PURE__*/ v.didString(), 110 - get profiles() { 111 - return /*#__PURE__*/ v.optional( 112 - /*#__PURE__*/ v.array(profileEntrySchema), 113 - ); 114 - }, 115 - rkey: /*#__PURE__*/ v.string(), 116 - time_us: /*#__PURE__*/ v.integer(), 117 - uri: /*#__PURE__*/ v.resourceUriString(), 118 - value: /*#__PURE__*/ v.unknown(), 119 - }), 120 - }, 121 - }, 122 - ); 123 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 124 - $type: /*#__PURE__*/ v.optional( 125 - /*#__PURE__*/ v.literal( 126 - "org.latha.strata.reasoning.getRecord#profileEntry", 127 - ), 128 - ), 129 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 130 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 131 - did: /*#__PURE__*/ v.didString(), 132 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 133 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 134 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 135 - get value() { 136 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 137 - }, 138 - }); 139 - const _refCitationRecordSchema = /*#__PURE__*/ v.object({ 140 - $type: /*#__PURE__*/ v.optional( 141 - /*#__PURE__*/ v.literal( 142 - "org.latha.strata.reasoning.getRecord#refCitationRecord", 143 - ), 144 - ), 145 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 146 - collection: /*#__PURE__*/ v.nsidString(), 147 - did: /*#__PURE__*/ v.didString(), 148 - record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 149 - rkey: /*#__PURE__*/ v.string(), 150 - time_us: /*#__PURE__*/ v.integer(), 151 - uri: /*#__PURE__*/ v.resourceUriString(), 152 - }); 153 - 154 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 155 - type main$schematype = typeof _mainSchema; 156 - type profileEntry$schematype = typeof _profileEntrySchema; 157 - type refCitationRecord$schematype = typeof _refCitationRecordSchema; 158 - 159 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 160 - export interface mainSchema extends main$schematype {} 161 - export interface profileEntrySchema extends profileEntry$schematype {} 162 - export interface refCitationRecordSchema extends refCitationRecord$schematype {} 163 - 164 - export const appBskyActorProfileSchema = 165 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 166 - export const mainSchema = _mainSchema as mainSchema; 167 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 168 - export const refCitationRecordSchema = 169 - _refCitationRecordSchema as refCitationRecordSchema; 170 - 171 - export interface AppBskyActorProfile extends v.InferInput< 172 - typeof appBskyActorProfileSchema 173 - > {} 174 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 175 - export interface RefCitationRecord extends v.InferInput< 176 - typeof refCitationRecordSchema 177 - > {} 178 - 179 - export interface $params extends v.InferInput<mainSchema["params"]> {} 180 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 181 - 182 - declare module "@atcute/lexicons/ambient" { 183 - interface XRPCQueries { 184 - "org.latha.strata.reasoning.getRecord": mainSchema; 185 - } 186 - }
-235
src/lexicon-types/types/org/latha/strata/reasoning/listRecords.ts
··· 1 - import type {} from "@atcute/lexicons"; 2 - import * as v from "@atcute/lexicons/validations"; 3 - import type {} from "@atcute/lexicons/ambient"; 4 - import * as ComAtprotoLabelDefs from "@atcute/atproto/types/label/defs"; 5 - import * as ComAtprotoRepoStrongRef from "@atcute/atproto/types/repo/strongRef"; 6 - 7 - const _appBskyActorProfileSchema = /*#__PURE__*/ v.object({ 8 - $type: /*#__PURE__*/ v.optional( 9 - /*#__PURE__*/ v.literal( 10 - "org.latha.strata.reasoning.listRecords#appBskyActorProfile", 11 - ), 12 - ), 13 - /** 14 - * Small image to be displayed next to posts from account. AKA, 'profile picture' 15 - * @accept image/png, image/jpeg 16 - * @maxSize 1000000 17 - */ 18 - avatar: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 20 - /*#__PURE__*/ v.blobSize(1000000), 21 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 22 - ]), 23 - ), 24 - /** 25 - * Larger horizontal image to display behind profile view. 26 - * @accept image/png, image/jpeg 27 - * @maxSize 1000000 28 - */ 29 - banner: /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 31 - /*#__PURE__*/ v.blobSize(1000000), 32 - /*#__PURE__*/ v.blobAccept(["image/png", "image/jpeg"]), 33 - ]), 34 - ), 35 - createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 36 - /** 37 - * Free-form profile description text. 38 - * @maxLength 2560 39 - * @maxGraphemes 256 40 - */ 41 - description: /*#__PURE__*/ v.optional( 42 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 43 - /*#__PURE__*/ v.stringLength(0, 2560), 44 - /*#__PURE__*/ v.stringGraphemes(0, 256), 45 - ]), 46 - ), 47 - /** 48 - * @maxLength 640 49 - * @maxGraphemes 64 50 - */ 51 - displayName: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 640), 54 - /*#__PURE__*/ v.stringGraphemes(0, 64), 55 - ]), 56 - ), 57 - get joinedViaStarterPack() { 58 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 59 - }, 60 - /** 61 - * Self-label values, specific to the Bluesky application, on the overall account. 62 - */ 63 - get labels() { 64 - return /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]), 66 - ); 67 - }, 68 - get pinnedPost() { 69 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 70 - }, 71 - /** 72 - * Free-form pronouns text. 73 - * @maxLength 200 74 - * @maxGraphemes 20 75 - */ 76 - pronouns: /*#__PURE__*/ v.optional( 77 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 78 - /*#__PURE__*/ v.stringLength(0, 200), 79 - /*#__PURE__*/ v.stringGraphemes(0, 20), 80 - ]), 81 - ), 82 - website: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 83 - }); 84 - const _mainSchema = /*#__PURE__*/ v.query( 85 - "org.latha.strata.reasoning.listRecords", 86 - { 87 - params: /*#__PURE__*/ v.object({ 88 - /** 89 - * Filter by DID or handle (triggers on-demand backfill) 90 - */ 91 - actor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.actorIdentifierString()), 92 - /** 93 - * Filter by confidence 94 - */ 95 - confidence: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 96 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 97 - /** 98 - * Embed the referenced citation record 99 - */ 100 - hydrateCitation: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 101 - /** 102 - * @minimum 1 103 - * @maximum 200 104 - * @default 50 105 - */ 106 - limit: /*#__PURE__*/ v.optional( 107 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ 108 - /*#__PURE__*/ v.integerRange(1, 200), 109 - ]), 110 - 50, 111 - ), 112 - /** 113 - * Filter by method 114 - */ 115 - method: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 116 - /** 117 - * Sort direction (default: desc for dates/numbers/counts, asc for strings) 118 - */ 119 - order: /*#__PURE__*/ v.optional( 120 - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), 121 - ), 122 - /** 123 - * Include profile + identity info keyed by DID 124 - */ 125 - profiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 126 - /** 127 - * Full-text search across: question, evidence 128 - */ 129 - search: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 130 - /** 131 - * Field to sort by (default: time_us) 132 - */ 133 - sort: /*#__PURE__*/ v.optional( 134 - /*#__PURE__*/ v.string<"confidence" | "method" | (string & {})>(), 135 - ), 136 - }), 137 - output: { 138 - type: "lex", 139 - schema: /*#__PURE__*/ v.object({ 140 - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 141 - get profiles() { 142 - return /*#__PURE__*/ v.optional( 143 - /*#__PURE__*/ v.array(profileEntrySchema), 144 - ); 145 - }, 146 - get records() { 147 - return /*#__PURE__*/ v.array(recordSchema); 148 - }, 149 - }), 150 - }, 151 - }, 152 - ); 153 - const _profileEntrySchema = /*#__PURE__*/ v.object({ 154 - $type: /*#__PURE__*/ v.optional( 155 - /*#__PURE__*/ v.literal( 156 - "org.latha.strata.reasoning.listRecords#profileEntry", 157 - ), 158 - ), 159 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), 160 - collection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nsidString()), 161 - did: /*#__PURE__*/ v.didString(), 162 - handle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 163 - rkey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 164 - uri: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 165 - get value() { 166 - return /*#__PURE__*/ v.optional(appBskyActorProfileSchema); 167 - }, 168 - }); 169 - const _recordSchema = /*#__PURE__*/ v.object({ 170 - $type: /*#__PURE__*/ v.optional( 171 - /*#__PURE__*/ v.literal("org.latha.strata.reasoning.listRecords#record"), 172 - ), 173 - cid: /*#__PURE__*/ v.cidString(), 174 - get citation() { 175 - return /*#__PURE__*/ v.optional(refCitationRecordSchema); 176 - }, 177 - collection: /*#__PURE__*/ v.nsidString(), 178 - did: /*#__PURE__*/ v.didString(), 179 - rkey: /*#__PURE__*/ v.string(), 180 - time_us: /*#__PURE__*/ v.integer(), 181 - uri: /*#__PURE__*/ v.resourceUriString(), 182 - value: /*#__PURE__*/ v.unknown(), 183 - }); 184 - const _refCitationRecordSchema = /*#__PURE__*/ v.object({ 185 - $type: /*#__PURE__*/ v.optional( 186 - /*#__PURE__*/ v.literal( 187 - "org.latha.strata.reasoning.listRecords#refCitationRecord", 188 - ), 189 - ), 190 - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 191 - collection: /*#__PURE__*/ v.nsidString(), 192 - did: /*#__PURE__*/ v.didString(), 193 - record: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 194 - rkey: /*#__PURE__*/ v.string(), 195 - time_us: /*#__PURE__*/ v.integer(), 196 - uri: /*#__PURE__*/ v.resourceUriString(), 197 - }); 198 - 199 - type appBskyActorProfile$schematype = typeof _appBskyActorProfileSchema; 200 - type main$schematype = typeof _mainSchema; 201 - type profileEntry$schematype = typeof _profileEntrySchema; 202 - type record$schematype = typeof _recordSchema; 203 - type refCitationRecord$schematype = typeof _refCitationRecordSchema; 204 - 205 - export interface appBskyActorProfileSchema extends appBskyActorProfile$schematype {} 206 - export interface mainSchema extends main$schematype {} 207 - export interface profileEntrySchema extends profileEntry$schematype {} 208 - export interface recordSchema extends record$schematype {} 209 - export interface refCitationRecordSchema extends refCitationRecord$schematype {} 210 - 211 - export const appBskyActorProfileSchema = 212 - _appBskyActorProfileSchema as appBskyActorProfileSchema; 213 - export const mainSchema = _mainSchema as mainSchema; 214 - export const profileEntrySchema = _profileEntrySchema as profileEntrySchema; 215 - export const recordSchema = _recordSchema as recordSchema; 216 - export const refCitationRecordSchema = 217 - _refCitationRecordSchema as refCitationRecordSchema; 218 - 219 - export interface AppBskyActorProfile extends v.InferInput< 220 - typeof appBskyActorProfileSchema 221 - > {} 222 - export interface ProfileEntry extends v.InferInput<typeof profileEntrySchema> {} 223 - export interface Record extends v.InferInput<typeof recordSchema> {} 224 - export interface RefCitationRecord extends v.InferInput< 225 - typeof refCitationRecordSchema 226 - > {} 227 - 228 - export interface $params extends v.InferInput<mainSchema["params"]> {} 229 - export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 230 - 231 - declare module "@atcute/lexicons/ambient" { 232 - interface XRPCQueries { 233 - "org.latha.strata.reasoning.listRecords": mainSchema; 234 - } 235 - }
+2 -2
src/vault-analyze.ts
··· 71 71 - Entity names should be canonical (e.g. "Ink and Switch" not "Ink & Switch") 72 72 - URLs must be real HTTPS URLs found in the note 73 73 - Connection source/target should be entity names, not URLs 74 - - Confidence should be one of: org.latha.strata.defs#high, org.latha.strata.defs#medium, org.latha.strata.defs#low 74 + - Confidence should be one of: org.latha.island.defs#high, org.latha.island.defs#medium, org.latha.island.defs#low 75 75 - Relation should be lowercase-hyphenated (e.g. "related-to", "director", "division-of", "member-of")`, 76 76 parameters: { 77 77 type: 'object', ··· 149 149 - Connection source/target should be entity names, not URLs 150 150 - Be thorough — extract every named entity and every stated relationship 151 151 - For wikilinks like [[Some Topic]], treat "Some Topic" as an entity name 152 - - Confidence for citations: use org.latha.strata.defs#high for well-known sources, org.latha.strata.defs#medium otherwise 152 + - Confidence for citations: use org.latha.island.defs#high for well-known sources, org.latha.island.defs#medium otherwise 153 153 154 154 Note: {title} 155 155 ---
+12 -12
src/worker.ts
··· 413 413 414 414 // ── Islands API ────────────────────────────────────────────────── 415 415 416 - app.get("/xrpc/org.latha.strata.getIslands", async (c) => { 416 + app.get("/xrpc/org.latha.island.getIslands", async (c) => { 417 417 const limit = Math.min(parseInt(c.req.query("limit") || "50"), 100); 418 418 const summary = c.req.query("summary") === "true"; 419 419 // No ensureContrailReady — just D1 queries ··· 478 478 479 479 // ── Get single island by ID or AT URI ──────────────────────────── 480 480 481 - app.get("/xrpc/org.latha.strata.getIsland", async (c) => { 481 + app.get("/xrpc/org.latha.island.getIsland", async (c) => { 482 482 const id = c.req.query("id"); 483 483 if (!id) { 484 484 return c.json({ error: "MissingRequiredParameter", message: "id is required" }, 400); ··· 533 533 } 534 534 535 535 // ID is the record rkey — look up directly by URI 536 - const recordUri = `at://did:plc:ngokl2gnmpbvuvrfckja3g7p/org.latha.strata/${id}`; 536 + const recordUri = `at://did:plc:ngokl2gnmpbvuvrfckja3g7p/org.latha.island/${id}`; 537 537 const row = await db 538 538 .prepare("SELECT uri, record FROM records_strata WHERE uri = ?") 539 539 .bind(recordUri) ··· 604 604 605 605 // ── List strata records (AT URI-based) ────────────────────────── 606 606 607 - app.get("/xrpc/org.latha.strata.listRecords", async (c) => { 607 + app.get("/xrpc/org.latha.island.listRecords", async (c) => { 608 608 const rows = await db 609 609 .prepare("SELECT uri, record FROM records_strata ORDER BY time_us DESC LIMIT 50") 610 610 .all<{ uri: string; record: string }>(); ··· 629 629 630 630 // ── Strata record endpoint (AT URI-based) ────────────────────── 631 631 632 - app.get("/xrpc/org.latha.strata.getRecord", async (c) => { 632 + app.get("/xrpc/org.latha.island.getRecord", async (c) => { 633 633 const uri = c.req.query("uri"); 634 634 if (!uri) { 635 635 return c.json({ error: "MissingRequiredParameter", message: "uri is required" }, 400); ··· 806 806 } 807 807 808 808 // Sync container data (vault + carry) 809 - app.post("/xrpc/org.latha.strata.syncContainer", async (c) => { 809 + app.post("/xrpc/org.latha.island.syncContainer", async (c) => { 810 810 try { 811 811 const result = await callContainer("/sync", "POST"); 812 812 return c.json(result); ··· 816 816 }); 817 817 818 818 // Container health + data status 819 - app.get("/xrpc/org.latha.strata.containerHealth", async (c) => { 819 + app.get("/xrpc/org.latha.island.containerHealth", async (c) => { 820 820 try { 821 821 const result = await callContainer("/health", "GET"); 822 822 return c.json(result); ··· 827 827 828 828 // Derive islands — POST, delegates to container 829 829 // With seed: single island. Without: all islands. 830 - app.post("/xrpc/org.latha.strata.deriveIsland", async (c) => { 830 + app.post("/xrpc/org.latha.island.deriveIsland", async (c) => { 831 831 const body = await c.req.json().catch(() => ({})) as { seed?: string }; 832 832 const seed = body.seed; 833 833 ··· 866 866 }); 867 867 868 868 // Run strata analysis — delegates to container 869 - app.post("/xrpc/org.latha.strata.analyze", async (c) => { 869 + app.post("/xrpc/org.latha.island.analyze", async (c) => { 870 870 const body = await c.req.json().catch(() => ({})); 871 871 if (!body.island) { 872 872 return c.json({ error: "MissingRequiredField", message: "island is required" }, 400); ··· 941 941 }); 942 942 943 943 // ── Update strata record (write back to PDS) ──────────────────── 944 - app.put("/xrpc/org.latha.strata.updateRecord", async (c) => { 944 + app.put("/xrpc/org.latha.island.updateRecord", async (c) => { 945 945 const body = await c.req.json().catch(() => ({})) as { 946 946 uri?: string; 947 947 analysis?: Record<string, any>; ··· 961 961 const collection = parts[1]; 962 962 const rkey = parts[2]; 963 963 if (!repoDid || !collection || !rkey) { 964 - return c.json({ error: "InvalidUri", message: "Expected at://did:.../org.latha.strata/rkey" }, 400); 964 + return c.json({ error: "InvalidUri", message: "Expected at://did:.../org.latha.island/rkey" }, 400); 965 965 } 966 966 967 967 // Read existing record from D1 ··· 1057 1057 1058 1058 // ── Graph neighborhood query ──────────────────────────────────── 1059 1059 1060 - app.get("/xrpc/org.latha.strata.connection.getGraph", async (c) => { 1060 + app.get("/xrpc/org.latha.island.connection.getGraph", async (c) => { 1061 1061 const uri = c.req.query("uri"); 1062 1062 if (!uri) { 1063 1063 return c.json({ error: "MissingRequiredParameter", message: "uri is required" }, 400);