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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));

export default [
includeIgnoreFile(gitignorePath),
{ ignores: ['src/lexicon-types/**', 'lexicons-generated/**'] },
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
Expand Down
22 changes: 22 additions & 0 deletions lex.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineLexiconConfig } from '@atcute/lex-cli';

export default defineLexiconConfig({
files: ['lexicons/**/*.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.page',
'app.bsky.actor.profile',
'site.standard.publication'
]
}
]
}
});
96 changes: 96 additions & 0 deletions lexicons-generated/app/blento/card/getRecord.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"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", "did", "collection", "rkey", "time_us"],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
},
"did": {
"type": "string",
"format": "did"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
},
"cid": {
"type": "string"
},
"record": {
"type": "ref",
"ref": "app.blento.card#main"
},
"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"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
},
"cid": {
"type": "string"
},
"record": {
"type": "unknown"
}
}
}
}
}
236 changes: 236 additions & 0 deletions lexicons-generated/app/blento/card/listRecords.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
{
"lexicon": 1,
"id": "app.blento.card.listRecords",
"defs": {
"main": {
"type": "query",
"description": "Query app.blento.card records with filters",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50
},
"cursor": {
"type": "string"
},
"actor": {
"type": "string",
"format": "at-identifier",
"description": "Filter by DID or handle (triggers on-demand backfill)"
},
"profiles": {
"type": "boolean",
"description": "Include profile + identity info keyed by DID"
},
"wMin": {
"type": "string",
"description": "Minimum value for w"
},
"wMax": {
"type": "string",
"description": "Maximum value for w"
},
"hMin": {
"type": "string",
"description": "Minimum value for h"
},
"hMax": {
"type": "string",
"description": "Maximum value for h"
},
"xMin": {
"type": "string",
"description": "Minimum value for x"
},
"xMax": {
"type": "string",
"description": "Maximum value for x"
},
"yMin": {
"type": "string",
"description": "Minimum value for y"
},
"yMax": {
"type": "string",
"description": "Maximum value for y"
},
"mobileWMin": {
"type": "string",
"description": "Minimum value for mobileW"
},
"mobileWMax": {
"type": "string",
"description": "Maximum value for mobileW"
},
"mobileHMin": {
"type": "string",
"description": "Minimum value for mobileH"
},
"mobileHMax": {
"type": "string",
"description": "Maximum value for mobileH"
},
"mobileXMin": {
"type": "string",
"description": "Minimum value for mobileX"
},
"mobileXMax": {
"type": "string",
"description": "Maximum value for mobileX"
},
"mobileYMin": {
"type": "string",
"description": "Minimum value for mobileY"
},
"mobileYMax": {
"type": "string",
"description": "Maximum value for mobileY"
},
"cardType": {
"type": "string",
"description": "Filter by cardType"
},
"color": {
"type": "string",
"description": "Filter by color"
},
"page": {
"type": "string",
"description": "Filter by page"
},
"updatedAtMin": {
"type": "string",
"description": "Minimum value for updatedAt"
},
"updatedAtMax": {
"type": "string",
"description": "Maximum value for updatedAt"
},
"versionMin": {
"type": "string",
"description": "Minimum value for version"
},
"versionMax": {
"type": "string",
"description": "Maximum value for version"
},
"sort": {
"type": "string",
"knownValues": [
"w",
"h",
"x",
"y",
"mobileW",
"mobileH",
"mobileX",
"mobileY",
"cardType",
"color",
"page",
"updatedAt",
"version"
],
"description": "Field to sort by (default: time_us)"
},
"order": {
"type": "string",
"knownValues": ["asc", "desc"],
"description": "Sort direction (default: desc for dates/numbers/counts, asc for strings)"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["records"],
"properties": {
"records": {
"type": "array",
"items": {
"type": "ref",
"ref": "#record"
}
},
"cursor": {
"type": "string"
},
"profiles": {
"type": "array",
"items": {
"type": "ref",
"ref": "#profileEntry"
}
}
}
}
}
},
"record": {
"type": "object",
"required": ["uri", "did", "collection", "rkey", "time_us"],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
},
"did": {
"type": "string",
"format": "did"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
},
"cid": {
"type": "string"
},
"record": {
"type": "ref",
"ref": "app.blento.card#main"
},
"time_us": {
"type": "integer"
}
}
},
"profileEntry": {
"type": "object",
"required": ["did"],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"handle": {
"type": "string"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"collection": {
"type": "string",
"format": "nsid"
},
"rkey": {
"type": "string"
},
"cid": {
"type": "string"
},
"record": {
"type": "unknown"
}
}
}
}
}
27 changes: 27 additions & 0 deletions lexicons-generated/app/blento/getCursor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"lexicon": 1,
"id": "app.blento.getCursor",
"defs": {
"main": {
"type": "query",
"description": "Get the current cursor position",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"time_us": {
"type": "integer"
},
"date": {
"type": "string"
},
"seconds_ago": {
"type": "integer"
}
}
}
}
}
}
}
Loading
Loading