Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
node_modules

# Output
# Output (match anywhere — monorepo)
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build
.svelte-kit
build
.turbo
/diff-snapshots*/
backups/

# OS
.DS_Store
Expand All @@ -28,6 +31,6 @@ sveltekit-cloudflare-workers

inlay

scripts/backups
**/scripts/backups

theming/
File renamed without changes.
25 changes: 25 additions & 0 deletions apps/web/lex.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineLexiconConfig } from "@atcute/lex-cli";

export default defineLexiconConfig({
files: ["lexicons/custom/**/*.json", "lexicons/pulled/**/*.json", "lexicons/generated/**/*.json"],
outdir: "src/lexicon-types/",
imports: ["@atcute/atproto"],
pull: {
outdir: "lexicons/pulled/",
sources: [
{
type: "atproto",
mode: "nsids",
nsids: [
"app.blento.card",
"app.blento.node",
"app.blento.page",
"app.blento.section",
"app.bsky.actor.profile",
"app.nearhorizon.actor.pronouns",
"site.standard.publication"
],
},
],
},
});
40 changes: 40 additions & 0 deletions apps/web/lexicons/custom/app/blento/defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"id": "app.blento.defs",
"description": "Shared content/layout shapes referenced by app.blento.node's open blobs. Typed cards (#link, #image, …) are added additively; #card / #container are the generic fallbacks.",
"defs": {
"card": {
"type": "object",
"description": "Generic leaf content fallback. cardType discriminates; remaining fields are the card's opaque data.",
"required": ["cardType"],
"properties": {
"cardType": { "type": "string" }
}
},
"container": {
"type": "object",
"description": "Generic container content fallback. containerType discriminates; remaining fields are the container config.",
"required": ["containerType"],
"properties": {
"containerType": { "type": "string" }
}
},
"gridCell": {
"type": "object",
"description": "Position within a grid container. Integers only.",
"required": ["x", "y", "w", "h"],
"properties": {
"x": { "type": "integer" },
"y": { "type": "integer" },
"w": { "type": "integer" },
"h": { "type": "integer" },
"mobileX": { "type": "integer" },
"mobileY": { "type": "integer" },
"mobileW": { "type": "integer" },
"mobileH": { "type": "integer" },
"rotation": { "type": "integer" }
}
}
}
}
27 changes: 27 additions & 0 deletions apps/web/lexicons/custom/app/blento/node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"id": "app.blento.node",
"defs": {
"main": {
"type": "record",
"key": "tid",
"record": {
"type": "object",
"required": ["kind", "rank", "page", "content", "version"],
"properties": {
"kind": { "type": "string", "knownValues": ["document", "container", "leaf"] },
"parent": { "type": "string" },
"rank": { "type": "string" },
"page": { "type": "string" },
"content": { "type": "unknown" },
"layout": { "type": "unknown" },
"style": { "type": "unknown" },
"source": { "type": "unknown" },
"updatedAt": { "type": "string", "format": "datetime" },
"version": { "type": "integer" }
}
}
}
}
}
42 changes: 42 additions & 0 deletions apps/web/lexicons/generated/app/blento/authFull.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"lexicon": 1,
"id": "app.blento.authFull",
"defs": {
"main": {
"type": "permission-set",
"title": "app.blento",
"description": "Full access to the app.blento service",
"permissions": [
{
"type": "permission",
"resource": "rpc",
"aud": "*",
"lxm": [
"app.blento.card.getRecord",
"app.blento.card.listRecords",
"app.blento.getCursor",
"app.blento.getOverview",
"app.blento.getProfile",
"app.blento.node.getRecord",
"app.blento.node.listRecords",
"app.blento.notifyOfUpdate",
"app.blento.page.getRecord",
"app.blento.page.listRecords",
"app.blento.section.getRecord",
"app.blento.section.listRecords"
]
},
{
"type": "permission",
"resource": "repo",
"collection": [
"app.blento.card",
"app.blento.node",
"app.blento.page",
"app.blento.section"
]
}
]
}
}
}
109 changes: 109 additions & 0 deletions apps/web/lexicons/generated/app/blento/card/getRecord.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"lexicon": 1,
"id": "app.blento.card.getRecord",
"defs": {
"main": {
"type": "query",
"description": "Get a single app.blento.card record by AT URI",
"parameters": {
"type": "params",
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT URI of the record"
},
"profiles": {
"type": "boolean",
"description": "Include profile + identity info keyed by DID"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"uri",
"value",
"did",
"collection",
"rkey",
"time_us"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
},
"cid": {
"type": "string",
"format": "cid"
},
"value": {
"type": "ref",
"ref": "app.blento.card#main"
},
"did": {
"type": "string",
"format": "did"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
},
"time_us": {
"type": "integer"
},
"profiles": {
"type": "array",
"items": {
"type": "ref",
"ref": "#profileEntry"
}
}
}
}
}
},
"profileEntry": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"handle": {
"type": "string"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"cid": {
"type": "string",
"format": "cid"
},
"value": {
"type": "unknown"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
}
}
}
}
}
Loading
Loading