social bookmarking for atproto

[lexicons] fix getTags id error and some other errors

hexmani.ac 7c824ecf 35f6c8c1

verified
Changed files
+62 -16
lexdocs
social
lexicons
lib
lexicons
types
social
clippr
+4 -3
lexdocs/social/clippr/actor/defs.json
··· 7 7 "description": "A view of an actor's profile.", 8 8 "required": [ 9 9 "did", 10 - "handle" 10 + "handle", 11 + "displayName" 11 12 ], 12 13 "properties": { 13 14 "did": { ··· 46 47 }, 47 48 "preferences": { 48 49 "type": "array", 49 - "description": "An array of refs to various preferences", 50 + "description": "An array of refs to various preferences.", 50 51 "items": { 51 52 "type": "union", 52 53 "refs": [ ··· 56 57 }, 57 58 "publishingScopesPref": { 58 59 "type": "object", 59 - "description": "Preferences for an user's publishing scopes", 60 + "description": "Preferences for an user's publishing scopes.", 60 61 "required": [ 61 62 "defaultScope" 62 63 ],
+2 -2
lexdocs/social/clippr/feed/defs.json
··· 35 35 "indexedAt": { 36 36 "type": "string", 37 37 "format": "datetime", 38 - "description": "The time in which the clip's record was indexed by the AppView" 38 + "description": "When the tag was first indexed by the AppView" 39 39 } 40 40 } 41 41 }, ··· 72 72 "indexedAt": { 73 73 "type": "string", 74 74 "format": "datetime", 75 - "description": "The time in which the tag's recoord was indexed by the AppView" 75 + "description": "When the tag was first indexed by the AppView" 76 76 } 77 77 } 78 78 }
+1 -1
lexdocs/social/clippr/feed/getClips.json
··· 13 13 "properties": { 14 14 "uris": { 15 15 "type": "array", 16 - "description": "List of clip AT-URIs to return hydrated views for.", 16 + "description": "List of clip AT-URIs to return hydrated views for", 17 17 "items": { 18 18 "type": "string", 19 19 "format": "at-uri"
+1 -1
lexdocs/social/clippr/feed/getTags.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "social.clippr.feed.getClips", 3 + "id": "social.clippr.feed.getTags", 4 4 "defs": { 5 5 "main": { 6 6 "type": "query",
+4
lexicons/CHANGELOG.md
··· 1 1 # changelog for @clipprjs/lexicons 2 2 3 + ## v1.0.2 4 + * fix some description typos 5 + * fix `social.clippr.feed.getTags` not existing due to an ID collision 6 + 3 7 ## v1.0.1 4 8 5 9 * remove minimum character prompts due to schema validation errors that broke otherwise valid records
+1
lexicons/lib/lexicons/index.ts
··· 18 18 export * as SocialClipprFeedGetProfileClips from "./types/social/clippr/feed/getProfileClips.js"; 19 19 export * as SocialClipprFeedGetProfileTags from "./types/social/clippr/feed/getProfileTags.js"; 20 20 export * as SocialClipprFeedGetTagList from "./types/social/clippr/feed/getTagList.js"; 21 + export * as SocialClipprFeedGetTags from "./types/social/clippr/feed/getTags.js"; 21 22 export * as SocialClipprFeedTag from "./types/social/clippr/feed/tag.js";
+4 -6
lexicons/lib/lexicons/types/social/clippr/actor/defs.ts
··· 23 23 ]), 24 24 ), 25 25 did: /*#__PURE__*/ v.didString(), 26 - displayName: /*#__PURE__*/ v.optional( 27 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 28 - /*#__PURE__*/ v.stringLength(0, 640), 29 - /*#__PURE__*/ v.stringGraphemes(0, 64), 30 - ]), 31 - ), 26 + displayName: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 27 + /*#__PURE__*/ v.stringLength(0, 640), 28 + /*#__PURE__*/ v.stringGraphemes(0, 64), 29 + ]), 32 30 handle: /*#__PURE__*/ v.handleString(), 33 31 }); 34 32 const _publishingScopesPrefSchema = /*#__PURE__*/ v.object({
+2 -2
lexicons/lib/lexicons/types/social/clippr/feed/getClips.ts
··· 19 19 output: { 20 20 type: "lex", 21 21 schema: /*#__PURE__*/ v.object({ 22 - get tags() { 23 - return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema); 22 + get clips() { 23 + return /*#__PURE__*/ v.array(SocialClipprFeedDefs.clipViewSchema); 24 24 }, 25 25 }), 26 26 },
+42
lexicons/lib/lexicons/types/social/clippr/feed/getTags.ts
··· 1 + /* 2 + * clippr: a social bookmarking service for the AT Protocol 3 + * Copyright (c) 2025 clippr contributors. 4 + * SPDX-License-Identifier: AGPL-3.0-only 5 + */ 6 + 7 + import type {} from "@atcute/lexicons"; 8 + import * as v from "@atcute/lexicons/validations"; 9 + import type {} from "@atcute/lexicons/ambient"; 10 + import * as SocialClipprFeedDefs from "./defs.js"; 11 + 12 + const _mainSchema = /*#__PURE__*/ v.query("social.clippr.feed.getTags", { 13 + params: /*#__PURE__*/ v.object({ 14 + uris: /*#__PURE__*/ v.constrain( 15 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), 16 + [/*#__PURE__*/ v.arrayLength(1, 25)], 17 + ), 18 + }), 19 + output: { 20 + type: "lex", 21 + schema: /*#__PURE__*/ v.object({ 22 + get tags() { 23 + return /*#__PURE__*/ v.array(SocialClipprFeedDefs.tagViewSchema); 24 + }, 25 + }), 26 + }, 27 + }); 28 + 29 + type main$schematype = typeof _mainSchema; 30 + 31 + export interface mainSchema extends main$schematype {} 32 + 33 + export const mainSchema = _mainSchema as mainSchema; 34 + 35 + export interface $params extends v.InferInput<mainSchema["params"]> {} 36 + export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {} 37 + 38 + declare module "@atcute/lexicons/ambient" { 39 + interface XRPCQueries { 40 + "social.clippr.feed.getTags": mainSchema; 41 + } 42 + }
+1 -1
lexicons/package.json
··· 1 1 { 2 2 "type": "module", 3 3 "name": "@clipprjs/lexicons", 4 - "version": "1.0.1", 4 + "version": "1.0.2", 5 5 "description": "Clippr schema definitions", 6 6 "license": "AGPL-3.0-only", 7 7 "private": false,