Exosphere is a set of small, modular, self-hostable community tools built on the AT Protocol. app.exosphere.site
7
fork

Configure Feed

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

fix: remove createdAt from lexicons

Hugo a156f40f 9ea4cf47

+5 -33
+2 -16
packages/core/src/generated/lexicon-records.ts
··· 1 - // AUTO-GENERATED from landing/.well-known/site.exosphere.*.json 1 + // AUTO-GENERATED from landing/lexicons/site/exosphere/*.json 2 2 // Do not edit manually. Run: bun run generate:lexicons 3 3 4 4 export interface FeatureRequestRecord { ··· 8 8 /** did — DID of the Sphere owner (the identity hosting the site.exosphere.sphere record). */ 9 9 subject: string; 10 10 /** datetime */ 11 - createdAt: string; 11 + updatedAt?: string; 12 12 } 13 13 14 14 export interface FeatureRequestCommentRecord { ··· 16 16 subject: string; 17 17 content: string; 18 18 /** datetime */ 19 - createdAt: string; 20 - /** datetime */ 21 19 updatedAt?: string; 22 20 } 23 21 24 22 export interface FeatureRequestCommentVoteRecord { 25 23 /** at-uri — AT URI of the comment being voted on. */ 26 24 subject: string; 27 - /** datetime */ 28 - createdAt: string; 29 25 } 30 26 31 27 export interface FeatureRequestStatusRecord { 32 28 /** at-uri — AT URI of the feature request whose status is being changed. */ 33 29 subject: string; 34 30 status: string; 35 - /** datetime */ 36 - createdAt: string; 37 31 } 38 32 39 33 export interface FeatureRequestVoteRecord { 40 34 /** at-uri — AT URI of the feature request being voted on. */ 41 35 subject: string; 42 - /** datetime */ 43 - createdAt: string; 44 36 } 45 37 46 38 export interface ModerationRecord { ··· 49 41 /** at-uri — AT URI of the content being moderated. */ 50 42 subject: string; 51 43 action: string; 52 - /** datetime */ 53 - createdAt: string; 54 44 } 55 45 56 46 export interface SphereRecord { ··· 71 61 export interface SphereMemberRecord { 72 62 /** at-uri — AT URI of the Sphere record (site.exosphere.sphere) on the owner's PDS. */ 73 63 sphere: string; 74 - /** datetime */ 75 - createdAt: string; 76 64 } 77 65 78 66 export interface SphereMemberApprovalRecord { ··· 82 70 subject: string; 83 71 /** Role granted to the member. */ 84 72 role: string; 85 - /** datetime */ 86 - createdAt: string; 87 73 } 88 74 89 75 export interface PdsRecordMap {
-3
packages/core/src/sphere/api/members.ts
··· 92 92 sphere: sphereUri, 93 93 subject: memberDid, 94 94 role, 95 - createdAt: new Date().toISOString(), 96 95 }); 97 96 98 97 upsertMemberInvite({ ··· 139 138 const rkey = generateRkey(); 140 139 const memberPdsUri = await putPdsRecord(session, MEMBER_COLLECTION, rkey, { 141 140 sphere: sphereUri, 142 - createdAt: new Date().toISOString(), 143 141 }); 144 142 145 143 activateMember(sphere.id, did, memberPdsUri); ··· 257 255 sphere: sphereUri, 258 256 subject: memberDid, 259 257 role, 260 - createdAt: new Date().toISOString(), 261 258 }); 262 259 263 260 db.update(sphereMembers)
-4
packages/feature-requests/src/api/comments.ts
··· 183 183 pdsUri = await putPdsRecord(session, COMMENT_COLLECTION, id, { 184 184 subject: existing.pdsUri!, 185 185 content, 186 - createdAt: new Date().toISOString(), 187 186 }); 188 187 } 189 188 ··· 235 234 await putPdsRecord(session, COMMENT_COLLECTION, id, { 236 235 subject: parent!.pdsUri!, 237 236 content, 238 - createdAt: comment.createdAt, 239 237 updatedAt: new Date().toISOString(), 240 238 }); 241 239 } ··· 288 286 sphere: sphereUri, 289 287 subject: comment.pdsUri, 290 288 action: "remove", 291 - createdAt: new Date().toISOString(), 292 289 }); 293 290 if (!pdsUri) { 294 291 console.warn( ··· 419 416 const session = c.var.session; 420 417 votePdsUri = await putPdsRecord(session, COMMENT_VOTE_COLLECTION, id, { 421 418 subject: comment.pdsUri, 422 - createdAt: new Date().toISOString(), 423 419 }); 424 420 } 425 421
-2
packages/feature-requests/src/api/requests.ts
··· 165 165 description, 166 166 category, 167 167 subject: sphereOwnerDid, 168 - createdAt: new Date().toISOString(), 169 168 }); 170 169 } 171 170 ··· 273 272 sphere: sphereUri, 274 273 subject: existing.pdsUri, 275 274 action: "remove", 276 - createdAt: new Date().toISOString(), 277 275 }); 278 276 if (!pdsUri) { 279 277 console.warn(
-2
packages/feature-requests/src/api/statuses.ts
··· 91 91 pdsUri = await putPdsRecord(session, STATUS_COLLECTION, id, { 92 92 subject: fr.pdsUri, 93 93 status: "duplicate", 94 - createdAt: new Date().toISOString(), 95 94 }); 96 95 } 97 96 ··· 169 168 pdsUri = await putPdsRecord(session, STATUS_COLLECTION, id, { 170 169 subject: existing.pdsUri, 171 170 status, 172 - createdAt: new Date().toISOString(), 173 171 }); 174 172 } 175 173
-1
packages/feature-requests/src/api/votes.ts
··· 69 69 const session = c.var.session; 70 70 votePdsUri = await putPdsRecord(session, VOTE_COLLECTION, id, { 71 71 subject: existing.pdsUri, 72 - createdAt: new Date().toISOString(), 73 72 }); 74 73 } 75 74
+3 -5
scripts/generate-lexicon-types.ts
··· 8 8 import { resolve } from "node:path"; 9 9 import { readdir } from "node:fs/promises"; 10 10 11 - const LEXICON_DIR = resolve(import.meta.dirname!, "../../landing/.well-known"); 11 + const LEXICON_DIR = resolve(import.meta.dirname!, "../../landing/lexicons/site/exosphere"); 12 12 const OUTPUT_FILE = resolve( 13 13 import.meta.dirname!, 14 14 "../packages/core/src/generated/lexicon-records.ts", ··· 59 59 } 60 60 61 61 async function main() { 62 - const files = (await readdir(LEXICON_DIR)) 63 - .filter((f) => f.startsWith("site.exosphere.") && f.endsWith(".json")) 64 - .sort(); 62 + const files = (await readdir(LEXICON_DIR)).filter((f) => f.endsWith(".json")).sort(); 65 63 66 64 const schemas: LexiconSchema[] = []; 67 65 for (const file of files) { ··· 70 68 } 71 69 72 70 const lines: string[] = [ 73 - "// AUTO-GENERATED from landing/.well-known/site.exosphere.*.json", 71 + "// AUTO-GENERATED from landing/lexicons/site/exosphere/*.json", 74 72 "// Do not edit manually. Run: bun run generate:lexicons", 75 73 "", 76 74 ];