@atproto/api
Advanced tools
Comparing version 0.13.20 to 0.13.21
# @atproto/api | ||
## 0.13.21 | ||
### Patch Changes | ||
- [#3250](https://github.com/bluesky-social/atproto/pull/3250) [`dced566de`](https://github.com/bluesky-social/atproto/commit/dced566de5079ef4208801db476a7e7416f5e5aa) Thanks [@haileyok](https://github.com/haileyok)! - add trending topics | ||
## 0.13.20 | ||
@@ -4,0 +10,0 @@ |
@@ -23,2 +23,11 @@ /** | ||
export declare function validateSkeletonSearchStarterPack(v: unknown): ValidationResult; | ||
export interface TrendingTopic { | ||
topic: string; | ||
displayName?: string; | ||
description?: string; | ||
link: string; | ||
[k: string]: unknown; | ||
} | ||
export declare function isTrendingTopic(v: unknown): v is TrendingTopic; | ||
export declare function validateTrendingTopic(v: unknown): ValidationResult; | ||
//# sourceMappingURL=defs.d.ts.map |
@@ -9,2 +9,4 @@ "use strict"; | ||
exports.validateSkeletonSearchStarterPack = validateSkeletonSearchStarterPack; | ||
exports.isTrendingTopic = isTrendingTopic; | ||
exports.validateTrendingTopic = validateTrendingTopic; | ||
const util_1 = require("../../../../util"); | ||
@@ -36,2 +38,10 @@ const lexicons_1 = require("../../../../lexicons"); | ||
} | ||
function isTrendingTopic(v) { | ||
return ((0, util_1.isObj)(v) && | ||
(0, util_1.hasProp)(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#trendingTopic'); | ||
} | ||
function validateTrendingTopic(v) { | ||
return lexicons_1.lexicons.validate('app.bsky.unspecced.defs#trendingTopic', v); | ||
} | ||
//# sourceMappingURL=defs.js.map |
{ | ||
"name": "@atproto/api", | ||
"version": "0.13.20", | ||
"version": "0.13.21", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Client library for atproto and Bluesky", |
@@ -66,1 +66,21 @@ /** | ||
} | ||
export interface TrendingTopic { | ||
topic: string | ||
displayName?: string | ||
description?: string | ||
link: string | ||
[k: string]: unknown | ||
} | ||
export function isTrendingTopic(v: unknown): v is TrendingTopic { | ||
return ( | ||
isObj(v) && | ||
hasProp(v, '$type') && | ||
v.$type === 'app.bsky.unspecced.defs#trendingTopic' | ||
) | ||
} | ||
export function validateTrendingTopic(v: unknown): ValidationResult { | ||
return lexicons.validate('app.bsky.unspecced.defs#trendingTopic', v) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4590441
1317
100685
178
43871
9
2
93