Socket
Socket
Sign inDemoInstall

@atproto/api

Package Overview
Dependencies
10
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.2 to 0.12.3

dist/client/types/app/bsky/feed/sendInteractions.d.ts

8

CHANGELOG.md
# @atproto/api
## 0.12.3
### Patch Changes
- [#2383](https://github.com/bluesky-social/atproto/pull/2383) [`0edef0ec0`](https://github.com/bluesky-social/atproto/commit/0edef0ec01403fd6097a4d2875b68313f2f1261f) Thanks [@dholms](https://github.com/dholms)! - Added feed generator interaction lexicons
- [#2409](https://github.com/bluesky-social/atproto/pull/2409) [`c6d758b8b`](https://github.com/bluesky-social/atproto/commit/c6d758b8b63f4ef50b2ab9afc62164e92a53e7f0) Thanks [@devinivy](https://github.com/devinivy)! - Support for upcoming post search params
## 0.12.2

@@ -4,0 +12,0 @@

@@ -103,2 +103,3 @@ /**

import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts';
import * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions';
import * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate';

@@ -256,2 +257,3 @@ import * as AppBskyGraphBlock from './types/app/bsky/graph/block';

export * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts';
export * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions';
export * as AppBskyFeedThreadgate from './types/app/bsky/feed/threadgate';

@@ -313,2 +315,16 @@ export * as AppBskyGraphBlock from './types/app/bsky/graph/block';

};
export declare const APP_BSKY_FEED: {
DefsRequestLess: string;
DefsRequestMore: string;
DefsClickthroughItem: string;
DefsClickthroughAuthor: string;
DefsClickthroughReposter: string;
DefsClickthroughEmbed: string;
DefsInteractionSeen: string;
DefsInteractionLike: string;
DefsInteractionRepost: string;
DefsInteractionReply: string;
DefsInteractionQuote: string;
DefsInteractionShare: string;
};
export declare const APP_BSKY_GRAPH: {

@@ -535,2 +551,3 @@ DefsModlist: string;

searchPosts(params?: AppBskyFeedSearchPosts.QueryParams, opts?: AppBskyFeedSearchPosts.CallOptions): Promise<AppBskyFeedSearchPosts.Response>;
sendInteractions(data?: AppBskyFeedSendInteractions.InputSchema, opts?: AppBskyFeedSendInteractions.CallOptions): Promise<AppBskyFeedSendInteractions.Response>;
}

@@ -537,0 +554,0 @@ export declare class GeneratorRecord {

3

dist/client/types/app/bsky/embed/record.d.ts

@@ -36,2 +36,5 @@ /**

labels?: ComAtprotoLabelDefs.Label[];
replyCount?: number;
repostCount?: number;
likeCount?: number;
embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {

@@ -38,0 +41,0 @@ $type: string;

@@ -49,2 +49,4 @@ /**

};
/** Context provided by feed generator that may be passed back alongside interactions. */
feedContext?: string;
[k: string]: unknown;

@@ -120,2 +122,3 @@ }

likeCount?: number;
acceptsInteractions?: boolean;
labels?: ComAtprotoLabelDefs.Label[];

@@ -140,2 +143,4 @@ viewer?: GeneratorViewerState;

};
/** Context that will be passed through to client and may be passed to feed generator back alongside interactions. */
feedContext?: string;
[k: string]: unknown;

@@ -160,2 +165,35 @@ }

export declare function validateThreadgateView(v: unknown): ValidationResult;
export interface Interaction {
item?: string;
event?: 'app.bsky.feed.defs#requestLess' | 'app.bsky.feed.defs#requestMore' | 'app.bsky.feed.defs#clickthroughItem' | 'app.bsky.feed.defs#clickthroughAuthor' | 'app.bsky.feed.defs#clickthroughReposter' | 'app.bsky.feed.defs#clickthroughEmbed' | 'app.bsky.feed.defs#interactionSeen' | 'app.bsky.feed.defs#interactionLike' | 'app.bsky.feed.defs#interactionRepost' | 'app.bsky.feed.defs#interactionReply' | 'app.bsky.feed.defs#interactionQuote' | 'app.bsky.feed.defs#interactionShare' | (string & {});
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string;
[k: string]: unknown;
}
export declare function isInteraction(v: unknown): v is Interaction;
export declare function validateInteraction(v: unknown): ValidationResult;
/** Request that less content like the given feed item be shown in the feed */
export declare const REQUESTLESS = "app.bsky.feed.defs#requestLess";
/** Request that more content like the given feed item be shown in the feed */
export declare const REQUESTMORE = "app.bsky.feed.defs#requestMore";
/** User clicked through to the feed item */
export declare const CLICKTHROUGHITEM = "app.bsky.feed.defs#clickthroughItem";
/** User clicked through to the author of the feed item */
export declare const CLICKTHROUGHAUTHOR = "app.bsky.feed.defs#clickthroughAuthor";
/** User clicked through to the reposter of the feed item */
export declare const CLICKTHROUGHREPOSTER = "app.bsky.feed.defs#clickthroughReposter";
/** User clicked through to the embedded content of the feed item */
export declare const CLICKTHROUGHEMBED = "app.bsky.feed.defs#clickthroughEmbed";
/** Feed item was seen by user */
export declare const INTERACTIONSEEN = "app.bsky.feed.defs#interactionSeen";
/** User liked the feed item */
export declare const INTERACTIONLIKE = "app.bsky.feed.defs#interactionLike";
/** User reposted the feed item */
export declare const INTERACTIONREPOST = "app.bsky.feed.defs#interactionRepost";
/** User replied to the feed item */
export declare const INTERACTIONREPLY = "app.bsky.feed.defs#interactionReply";
/** User quoted the feed item */
export declare const INTERACTIONQUOTE = "app.bsky.feed.defs#interactionQuote";
/** User shared the feed item */
export declare const INTERACTIONSHARE = "app.bsky.feed.defs#interactionShare";
//# sourceMappingURL=defs.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateThreadgateView = exports.isThreadgateView = exports.validateSkeletonReasonRepost = exports.isSkeletonReasonRepost = exports.validateSkeletonFeedPost = exports.isSkeletonFeedPost = exports.validateGeneratorViewerState = exports.isGeneratorViewerState = exports.validateGeneratorView = exports.isGeneratorView = exports.validateBlockedAuthor = exports.isBlockedAuthor = exports.validateBlockedPost = exports.isBlockedPost = exports.validateNotFoundPost = exports.isNotFoundPost = exports.validateThreadViewPost = exports.isThreadViewPost = exports.validateReasonRepost = exports.isReasonRepost = exports.validateReplyRef = exports.isReplyRef = exports.validateFeedViewPost = exports.isFeedViewPost = exports.validateViewerState = exports.isViewerState = exports.validatePostView = exports.isPostView = void 0;
exports.INTERACTIONSHARE = exports.INTERACTIONQUOTE = exports.INTERACTIONREPLY = exports.INTERACTIONREPOST = exports.INTERACTIONLIKE = exports.INTERACTIONSEEN = exports.CLICKTHROUGHEMBED = exports.CLICKTHROUGHREPOSTER = exports.CLICKTHROUGHAUTHOR = exports.CLICKTHROUGHITEM = exports.REQUESTMORE = exports.REQUESTLESS = exports.validateInteraction = exports.isInteraction = exports.validateThreadgateView = exports.isThreadgateView = exports.validateSkeletonReasonRepost = exports.isSkeletonReasonRepost = exports.validateSkeletonFeedPost = exports.isSkeletonFeedPost = exports.validateGeneratorViewerState = exports.isGeneratorViewerState = exports.validateGeneratorView = exports.isGeneratorView = exports.validateBlockedAuthor = exports.isBlockedAuthor = exports.validateBlockedPost = exports.isBlockedPost = exports.validateNotFoundPost = exports.isNotFoundPost = exports.validateThreadViewPost = exports.isThreadViewPost = exports.validateReasonRepost = exports.isReasonRepost = exports.validateReplyRef = exports.isReplyRef = exports.validateFeedViewPost = exports.isFeedViewPost = exports.validateViewerState = exports.isViewerState = exports.validatePostView = exports.isPostView = void 0;
const util_1 = require("../../../../util");

@@ -142,2 +142,36 @@ const lexicons_1 = require("../../../../lexicons");

exports.validateThreadgateView = validateThreadgateView;
function isInteraction(v) {
return ((0, util_1.isObj)(v) &&
(0, util_1.hasProp)(v, '$type') &&
v.$type === 'app.bsky.feed.defs#interaction');
}
exports.isInteraction = isInteraction;
function validateInteraction(v) {
return lexicons_1.lexicons.validate('app.bsky.feed.defs#interaction', v);
}
exports.validateInteraction = validateInteraction;
/** Request that less content like the given feed item be shown in the feed */
exports.REQUESTLESS = 'app.bsky.feed.defs#requestLess';
/** Request that more content like the given feed item be shown in the feed */
exports.REQUESTMORE = 'app.bsky.feed.defs#requestMore';
/** User clicked through to the feed item */
exports.CLICKTHROUGHITEM = 'app.bsky.feed.defs#clickthroughItem';
/** User clicked through to the author of the feed item */
exports.CLICKTHROUGHAUTHOR = 'app.bsky.feed.defs#clickthroughAuthor';
/** User clicked through to the reposter of the feed item */
exports.CLICKTHROUGHREPOSTER = 'app.bsky.feed.defs#clickthroughReposter';
/** User clicked through to the embedded content of the feed item */
exports.CLICKTHROUGHEMBED = 'app.bsky.feed.defs#clickthroughEmbed';
/** Feed item was seen by user */
exports.INTERACTIONSEEN = 'app.bsky.feed.defs#interactionSeen';
/** User liked the feed item */
exports.INTERACTIONLIKE = 'app.bsky.feed.defs#interactionLike';
/** User reposted the feed item */
exports.INTERACTIONREPOST = 'app.bsky.feed.defs#interactionRepost';
/** User replied to the feed item */
exports.INTERACTIONREPLY = 'app.bsky.feed.defs#interactionReply';
/** User quoted the feed item */
exports.INTERACTIONQUOTE = 'app.bsky.feed.defs#interactionQuote';
/** User shared the feed item */
exports.INTERACTIONSHARE = 'app.bsky.feed.defs#interactionShare';
//# sourceMappingURL=defs.js.map

@@ -13,2 +13,4 @@ /**

avatar?: BlobRef;
/** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
acceptsInteractions?: boolean;
labels?: ComAtprotoLabelDefs.SelfLabels | {

@@ -15,0 +17,0 @@ $type: string;

@@ -9,2 +9,20 @@ /**

q: string;
/** Specifies the ranking order of results. */
sort?: 'top' | 'latest' | (string & {});
/** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
since?: string;
/** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
until?: string;
/** Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. */
mentions?: string;
/** Filter to posts by the given account. Handles are resolved to DID before query-time. */
author?: string;
/** Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. */
lang?: string;
/** Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. */
domain?: string;
/** Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. */
url?: string;
/** Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. */
tag?: string[];
limit?: number;

@@ -11,0 +29,0 @@ /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */

@@ -9,2 +9,4 @@ /**

q: string;
/** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
viewer?: string;
/** If true, acts as fast/simple 'typeahead' query. */

@@ -11,0 +13,0 @@ typeahead?: boolean;

@@ -9,2 +9,22 @@ /**

q: string;
/** Specifies the ranking order of results. */
sort?: 'top' | 'latest' | (string & {});
/** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
since?: string;
/** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
until?: string;
/** Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. */
mentions?: string;
/** Filter to posts by the given account. Handles are resolved to DID before query-time. */
author?: string;
/** Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. */
lang?: string;
/** Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. */
domain?: string;
/** Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. */
url?: string;
/** Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. */
tag?: string[];
/** DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries. */
viewer?: string;
limit?: number;

@@ -11,0 +31,0 @@ /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */

2

dist/client/types/com/atproto/sync/getRecord.d.ts

@@ -11,3 +11,3 @@ /**

rkey: string;
/** An optional past commit CID. */
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
commit?: string;

@@ -14,0 +14,0 @@ }

@@ -6,3 +6,3 @@ import { ComAtprotoLabelDefs, AppBskyFeedDefs, AppBskyActorDefs, AppBskyFeedPost, AppBskyEmbedRecord, AppBskyGraphDefs, AppBskyNotificationListNotifications } from './client';

facets?: AppBskyFeedPost.Record['facets'];
reply?: AppBskyFeedPost.ReplyRef | undefined;
reply?: AppBskyFeedPost.ReplyRef;
embed?: AppBskyFeedPost.Record['embed'];

@@ -14,7 +14,7 @@ }): AppBskyFeedPost.Record;

embed?: AppBskyFeedDefs.PostView['embed'];
replyCount?: number | undefined;
repostCount?: number | undefined;
likeCount?: number | undefined;
viewer?: AppBskyFeedDefs.ViewerState | undefined;
labels?: ComAtprotoLabelDefs.Label[] | undefined;
replyCount?: number;
repostCount?: number;
likeCount?: number;
viewer?: AppBskyFeedDefs.ViewerState;
labels?: ComAtprotoLabelDefs.Label[];
}): AppBskyFeedDefs.PostView;

@@ -24,19 +24,19 @@ embedRecordView({ record, author, labels, }: {

author: AppBskyActorDefs.ProfileViewBasic;
labels?: ComAtprotoLabelDefs.Label[] | undefined;
labels?: ComAtprotoLabelDefs.Label[];
}): AppBskyEmbedRecord.View;
profileViewBasic({ handle, displayName, description, viewer, labels, }: {
handle: string;
displayName?: string | undefined;
description?: string | undefined;
viewer?: AppBskyActorDefs.ViewerState | undefined;
labels?: ComAtprotoLabelDefs.Label[] | undefined;
displayName?: string;
description?: string;
viewer?: AppBskyActorDefs.ViewerState;
labels?: ComAtprotoLabelDefs.Label[];
}): AppBskyActorDefs.ProfileViewBasic;
actorViewerState({ muted, mutedByList, blockedBy, blocking, blockingByList, following, followedBy, }: {
muted?: boolean | undefined;
mutedByList?: AppBskyGraphDefs.ListViewBasic | undefined;
blockedBy?: boolean | undefined;
blocking?: string | undefined;
blockingByList?: AppBskyGraphDefs.ListViewBasic | undefined;
following?: string | undefined;
followedBy?: string | undefined;
muted?: boolean;
mutedByList?: AppBskyGraphDefs.ListViewBasic;
blockedBy?: boolean;
blocking?: string;
blockingByList?: AppBskyGraphDefs.ListViewBasic;
following?: string;
followedBy?: string;
}): AppBskyActorDefs.ViewerState;

@@ -49,3 +49,3 @@ listViewBasic({ name }: {

author: AppBskyActorDefs.ProfileViewBasic;
labels?: ComAtprotoLabelDefs.Label[] | undefined;
labels?: ComAtprotoLabelDefs.Label[];
}): AppBskyNotificationListNotifications.Notification;

@@ -55,3 +55,3 @@ followNotification({ author, subjectDid, labels, }: {

subjectDid: string;
labels?: ComAtprotoLabelDefs.Label[] | undefined;
labels?: ComAtprotoLabelDefs.Label[];
}): AppBskyNotificationListNotifications.Notification;

@@ -61,5 +61,5 @@ label({ val, uri, src, }: {

uri: string;
src?: string | undefined;
src?: string;
}): ComAtprotoLabelDefs.Label;
};
//# sourceMappingURL=mocker.d.ts.map

@@ -8,3 +8,3 @@ import { ModerationUI } from './src'

expected: ModerationTestSuiteResultFlag[] | undefined,
context: string = '',
context = '',
stringifiedResult: string | undefined = undefined,

@@ -11,0 +11,0 @@ _ignoreCause = false,

{
"name": "@atproto/api",
"version": "0.12.2",
"version": "0.12.3",
"license": "MIT",

@@ -30,2 +30,3 @@ "description": "Client library for atproto and Bluesky",

"jest": "^28.1.2",
"prettier": "^3.2.5",
"@atproto/lex-cli": "^0.4.0"

@@ -32,0 +33,0 @@ },

@@ -65,2 +65,5 @@ /**

labels?: ComAtprotoLabelDefs.Label[]
replyCount?: number
repostCount?: number
likeCount?: number
embeds?: (

@@ -67,0 +70,0 @@ | AppBskyEmbedImages.View

@@ -72,2 +72,4 @@ /**

reason?: ReasonRepost | { $type: string; [k: string]: unknown }
/** Context provided by feed generator that may be passed back alongside interactions. */
feedContext?: string
[k: string]: unknown

@@ -223,2 +225,3 @@ }

likeCount?: number
acceptsInteractions?: boolean
labels?: ComAtprotoLabelDefs.Label[]

@@ -262,2 +265,4 @@ viewer?: GeneratorViewerState

reason?: SkeletonReasonRepost | { $type: string; [k: string]: unknown }
/** Context that will be passed through to client and may be passed to feed generator back alongside interactions. */
feedContext?: string
[k: string]: unknown

@@ -314,1 +319,59 @@ }

}
export interface Interaction {
item?: string
event?:
| 'app.bsky.feed.defs#requestLess'
| 'app.bsky.feed.defs#requestMore'
| 'app.bsky.feed.defs#clickthroughItem'
| 'app.bsky.feed.defs#clickthroughAuthor'
| 'app.bsky.feed.defs#clickthroughReposter'
| 'app.bsky.feed.defs#clickthroughEmbed'
| 'app.bsky.feed.defs#interactionSeen'
| 'app.bsky.feed.defs#interactionLike'
| 'app.bsky.feed.defs#interactionRepost'
| 'app.bsky.feed.defs#interactionReply'
| 'app.bsky.feed.defs#interactionQuote'
| 'app.bsky.feed.defs#interactionShare'
| (string & {})
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string
[k: string]: unknown
}
export function isInteraction(v: unknown): v is Interaction {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.defs#interaction'
)
}
export function validateInteraction(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.defs#interaction', v)
}
/** Request that less content like the given feed item be shown in the feed */
export const REQUESTLESS = 'app.bsky.feed.defs#requestLess'
/** Request that more content like the given feed item be shown in the feed */
export const REQUESTMORE = 'app.bsky.feed.defs#requestMore'
/** User clicked through to the feed item */
export const CLICKTHROUGHITEM = 'app.bsky.feed.defs#clickthroughItem'
/** User clicked through to the author of the feed item */
export const CLICKTHROUGHAUTHOR = 'app.bsky.feed.defs#clickthroughAuthor'
/** User clicked through to the reposter of the feed item */
export const CLICKTHROUGHREPOSTER = 'app.bsky.feed.defs#clickthroughReposter'
/** User clicked through to the embedded content of the feed item */
export const CLICKTHROUGHEMBED = 'app.bsky.feed.defs#clickthroughEmbed'
/** Feed item was seen by user */
export const INTERACTIONSEEN = 'app.bsky.feed.defs#interactionSeen'
/** User liked the feed item */
export const INTERACTIONLIKE = 'app.bsky.feed.defs#interactionLike'
/** User reposted the feed item */
export const INTERACTIONREPOST = 'app.bsky.feed.defs#interactionRepost'
/** User replied to the feed item */
export const INTERACTIONREPLY = 'app.bsky.feed.defs#interactionReply'
/** User quoted the feed item */
export const INTERACTIONQUOTE = 'app.bsky.feed.defs#interactionQuote'
/** User shared the feed item */
export const INTERACTIONSHARE = 'app.bsky.feed.defs#interactionShare'

@@ -17,2 +17,4 @@ /**

avatar?: BlobRef
/** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
acceptsInteractions?: boolean
labels?:

@@ -19,0 +21,0 @@ | ComAtprotoLabelDefs.SelfLabels

@@ -14,2 +14,20 @@ /**

q: string
/** Specifies the ranking order of results. */
sort?: 'top' | 'latest' | (string & {})
/** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
since?: string
/** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
until?: string
/** Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. */
mentions?: string
/** Filter to posts by the given account. Handles are resolved to DID before query-time. */
author?: string
/** Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. */
lang?: string
/** Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. */
domain?: string
/** Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. */
url?: string
/** Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. */
tag?: string[]
limit?: number

@@ -16,0 +34,0 @@ /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */

@@ -14,2 +14,4 @@ /**

q: string
/** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
viewer?: string
/** If true, acts as fast/simple 'typeahead' query. */

@@ -16,0 +18,0 @@ typeahead?: boolean

@@ -14,2 +14,22 @@ /**

q: string
/** Specifies the ranking order of results. */
sort?: 'top' | 'latest' | (string & {})
/** Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
since?: string
/** Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). */
until?: string
/** Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. */
mentions?: string
/** Filter to posts by the given account. Handles are resolved to DID before query-time. */
author?: string
/** Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. */
lang?: string
/** Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. */
domain?: string
/** Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. */
url?: string
/** Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. */
tag?: string[]
/** DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries. */
viewer?: string
limit?: number

@@ -16,0 +36,0 @@ /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */

@@ -16,3 +16,3 @@ /**

rkey: string
/** An optional past commit CID. */
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
commit?: string

@@ -19,0 +19,0 @@ }

import { ModerationCause } from './types'
export class ModerationUI {
noOverride: boolean = false
noOverride = false
filters: ModerationCause[] = []

@@ -6,0 +6,0 @@ blurs: ModerationCause[] = []

@@ -41,4 +41,4 @@ import {

: def.severity === 'inform'
? 'inform'
: undefined
? 'inform'
: undefined
if (def.blurs === 'content') {

@@ -45,0 +45,0 @@ // target=account, blurs=content

@@ -120,3 +120,6 @@ /*

export class RichTextSegment {
constructor(public text: string, public facet?: Facet) {}
constructor(
public text: string,
public facet?: Facet,
) {}

@@ -123,0 +126,0 @@ get link(): FacetLink | undefined {

@@ -66,3 +66,3 @@ import {

expected: ModerationTestSuiteResultFlag[] | undefined,
context: string = '',
context = '',
stringifiedResult: string | undefined = undefined,

@@ -69,0 +69,0 @@ _ignoreCause = false,

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 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 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 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 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 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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc