a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

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

feat(lexicon-doc): initial commit

Mary f917143f ede65cf9

+74 -3
+2 -1
README.md
··· 36 36 | [`client`](./packages/core/client): API client library | 37 37 | [`jetstream`](./packages/core/jetstream): Jetstream client | 38 38 | [`lex-cli`](./packages/core/lex-cli): CLI tool to generate schema definitions | 39 + | [`lexicon-doc`](./packages/core/lexicon-doc): type definitions and schemas for lexicon documents | 39 40 | [`lexicons`](./packages/core/lexicons): core lexicon types, interfaces, and schema validations | 40 41 | **OAuth packages** | 41 42 | [`oauth-browser-client`](./packages/oauth/browser-client): minimal OAuth browser client implementation | ··· 50 51 | [`bluesky`](./packages/definitions/bluesky): `app.bsky.*` and `chat.bsky.*` schema definitions | 51 52 | [`frontpage`](./packages/definitions/frontpage): `fyi.unravel.frontpage.*` schema definitions | 52 53 | [`ozone`](./packages/definitions/ozone): `tools.ozone.*` schema definitions | 53 - | [`tangled`](./packages/definitions/tangled): `sh.tangled.*` schema definitions | 54 + | [`tangled`](./packages/definitions/tangled): `sh.tangled.*` schema definitions | 54 55 | [`whitewind`](./packages/definitions/whitewind): `com.whtwnd.*` schema definitions | 55 56 | **Utility packages** | 56 57 | [`car`](./packages/utilities/car): DASL CAR and atproto repository decoder |
+1
packages/core/lex-cli/package.json
··· 24 24 "prepublish": "rm -rf dist; pnpm run build" 25 25 }, 26 26 "dependencies": { 27 + "@atcute/lexicon-doc": "workspace:^", 27 28 "@badrap/valita": "^0.4.4", 28 29 "@externdefs/collider": "^0.3.0", 29 30 "picocolors": "^1.1.1",
+2 -1
packages/core/lex-cli/src/cli.ts
··· 4 4 import { Builtins, Command, Option, Program } from '@externdefs/collider'; 5 5 import pc from 'picocolors'; 6 6 7 + import { lexiconDoc, type LexiconDoc } from '@atcute/lexicon-doc'; 8 + 7 9 import { generateLexiconApi } from './codegen.js'; 8 10 import type { LexiconConfig } from './index.js'; 9 - import { lexiconDoc, type LexiconDoc } from './schema.js'; 10 11 11 12 const program = new Program({ binaryName: 'lex-cli' }); 12 13
+1 -1
packages/core/lex-cli/src/codegen.ts
··· 16 16 LexXrpcProcedure, 17 17 LexXrpcQuery, 18 18 LexXrpcSubscription, 19 - } from './schema.js'; 19 + } from '@atcute/lexicon-doc'; 20 20 21 21 export interface SourceFile { 22 22 filename: string;
packages/core/lex-cli/src/schema.ts packages/core/lexicon-doc/lib/schema.ts
+3
packages/core/lexicon-doc/README.md
··· 1 + # @atcute/lexicon-doc 2 + 3 + type definitions and schemas for atproto lexicon documents
+1
packages/core/lexicon-doc/lib/index.ts
··· 1 + export * from './schema.js';
+28
packages/core/lexicon-doc/package.json
··· 1 + { 2 + "type": "module", 3 + "name": "@atcute/lexicon-doc", 4 + "version": "1.0.0", 5 + "description": "type definitions and schemas for atproto lexicon documents", 6 + "license": "MIT", 7 + "repository": { 8 + "url": "https://github.com/mary-ext/atcute", 9 + "directory": "packages/core/lexicon-doc" 10 + }, 11 + "files": [ 12 + "dist/", 13 + "lib/", 14 + "!lib/**/*.bench.ts", 15 + "!lib/**/*.test.ts" 16 + ], 17 + "exports": { 18 + ".": "./dist/index.js" 19 + }, 20 + "sideEffects": false, 21 + "scripts": { 22 + "build": "tsc --project tsconfig.build.json", 23 + "prepublish": "rm -rf dist; pnpm run build" 24 + }, 25 + "dependencies": { 26 + "@badrap/valita": "^0.4.4" 27 + } 28 + }
+4
packages/core/lexicon-doc/tsconfig.build.json
··· 1 + { 2 + "extends": "./tsconfig.json", 3 + "exclude": ["**/*.test.ts"] 4 + }
+23
packages/core/lexicon-doc/tsconfig.json
··· 1 + { 2 + "compilerOptions": { 3 + "types": [], 4 + "outDir": "dist/", 5 + "esModuleInterop": true, 6 + "skipLibCheck": true, 7 + "target": "ESNext", 8 + "allowJs": true, 9 + "resolveJsonModule": true, 10 + "moduleDetection": "force", 11 + "isolatedModules": true, 12 + "verbatimModuleSyntax": true, 13 + "strict": true, 14 + "noImplicitOverride": true, 15 + "noUnusedLocals": true, 16 + "noUnusedParameters": true, 17 + "noFallthroughCasesInSwitch": true, 18 + "module": "NodeNext", 19 + "sourceMap": true, 20 + "declaration": true, 21 + }, 22 + "include": ["lib"], 23 + }
+9
pnpm-lock.yaml
··· 176 176 177 177 packages/core/lex-cli: 178 178 dependencies: 179 + '@atcute/lexicon-doc': 180 + specifier: workspace:^ 181 + version: link:../lexicon-doc 179 182 '@badrap/valita': 180 183 specifier: ^0.4.4 181 184 version: 0.4.4 ··· 195 198 '@types/node': 196 199 specifier: ^22.15.17 197 200 version: 22.15.17 201 + 202 + packages/core/lexicon-doc: 203 + dependencies: 204 + '@badrap/valita': 205 + specifier: ^0.4.4 206 + version: 0.4.4 198 207 199 208 packages/core/lexicons: 200 209 devDependencies: