Testing implementation for private data in ATProto with ATPKeyserver and ATCute tools

lexicon update

+30 -47
+11 -3
packages/lexicon/package.json
··· 1 1 { 2 + "type": "module", 2 3 "name": "@watproto/lexicon", 3 4 "version": "0.0.1", 4 5 "license": "MIT", 5 - "main": "./index.ts", 6 - "types": "./index.ts", 6 + "exports": { 7 + ".": "./index.ts" 8 + }, 7 9 "dependencies": { 8 10 "@atcute/atproto": "^3.1.8", 9 11 "@atcute/bluesky": "^3.2.9", 10 12 "@atcute/lexicons": "^1.2.2" 13 + }, 14 + "atcute:lexicons": { 15 + "app.wafrn.*": { 16 + "type": "namespace", 17 + "path": "./types/{{nsid}}" 18 + } 11 19 } 12 - } 20 + }
-30
packages/lexicon/types/app/bsky/graph/follow.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 ComAtprotoRepoStrongRef from "../../../com/atproto/repo/strongRef.js"; 5 - 6 - const _mainSchema = /*#__PURE__*/ v.record( 7 - /*#__PURE__*/ v.tidString(), 8 - /*#__PURE__*/ v.object({ 9 - $type: /*#__PURE__*/ v.literal("app.bsky.graph.follow"), 10 - createdAt: /*#__PURE__*/ v.datetimeString(), 11 - subject: /*#__PURE__*/ v.didString(), 12 - get via() { 13 - return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 14 - }, 15 - }), 16 - ); 17 - 18 - type main$schematype = typeof _mainSchema; 19 - 20 - export interface mainSchema extends main$schematype {} 21 - 22 - export const mainSchema = _mainSchema as mainSchema; 23 - 24 - export interface Main extends v.InferInput<typeof mainSchema> {} 25 - 26 - declare module "@atcute/lexicons/ambient" { 27 - interface Records { 28 - "app.bsky.graph.follow": mainSchema; 29 - } 30 - }
+4 -4
packages/lexicon/types/app/wafrn/actor/defs.ts
··· 73 73 74 74 export interface customFieldSchema extends customField$schematype {} 75 75 export interface profileViewSchema extends profileView$schematype {} 76 - export interface profileViewDetailedSchema 77 - extends profileViewDetailed$schematype {} 76 + export interface profileViewDetailedSchema extends profileViewDetailed$schematype {} 78 77 79 78 export const customFieldSchema = _customFieldSchema as customFieldSchema; 80 79 export const profileViewSchema = _profileViewSchema as profileViewSchema; ··· 83 82 84 83 export interface CustomField extends v.InferInput<typeof customFieldSchema> {} 85 84 export interface ProfileView extends v.InferInput<typeof profileViewSchema> {} 86 - export interface ProfileViewDetailed 87 - extends v.InferInput<typeof profileViewDetailedSchema> {} 85 + export interface ProfileViewDetailed extends v.InferInput< 86 + typeof profileViewDetailedSchema 87 + > {}
+6 -4
packages/lexicon/types/app/wafrn/content/defs.ts
··· 68 68 _publicPostViewSchema as publicPostViewSchema; 69 69 70 70 export interface PostContent extends v.InferInput<typeof postContentSchema> {} 71 - export interface PrivatePostView 72 - extends v.InferInput<typeof privatePostViewSchema> {} 73 - export interface PublicPostView 74 - extends v.InferInput<typeof publicPostViewSchema> {} 71 + export interface PrivatePostView extends v.InferInput< 72 + typeof privatePostViewSchema 73 + > {} 74 + export interface PublicPostView extends v.InferInput< 75 + typeof publicPostViewSchema 76 + > {}
+9 -6
packages/lexicon/types/dev/atpkeyserver/alpha/defs.ts
··· 152 152 export const rotationResultSchema = 153 153 _rotationResultSchema as rotationResultSchema; 154 154 155 - export interface AccessLogEntry 156 - extends v.InferInput<typeof accessLogEntrySchema> {} 155 + export interface AccessLogEntry extends v.InferInput< 156 + typeof accessLogEntrySchema 157 + > {} 157 158 export interface GroupKey extends v.InferInput<typeof groupKeySchema> {} 158 - export interface KeyVersionInfo 159 - extends v.InferInput<typeof keyVersionInfoSchema> {} 159 + export interface KeyVersionInfo extends v.InferInput< 160 + typeof keyVersionInfoSchema 161 + > {} 160 162 export interface Keypair extends v.InferInput<typeof keypairSchema> {} 161 163 export interface MemberResult extends v.InferInput<typeof memberResultSchema> {} 162 164 export interface PublicKey extends v.InferInput<typeof publicKeySchema> {} 163 - export interface RotationResult 164 - extends v.InferInput<typeof rotationResultSchema> {} 165 + export interface RotationResult extends v.InferInput< 166 + typeof rotationResultSchema 167 + > {}