Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atproto/api

Package Overview
Dependencies
Maintainers
4
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/api - npm Package Compare versions

Comparing version 0.10.4 to 0.10.5-next.0

dist/agent.d.ts.map

12

CHANGELOG.md
# @atproto/api
## 0.10.5-next.0
### Patch Changes
- Overhaul of package builds, no longer bundling deps.
- Updated dependencies []:
- @atproto/common-web@0.2.4-next.0
- @atproto/lexicon@0.3.3-next.0
- @atproto/syntax@0.2.1-next.0
- @atproto/xrpc@0.4.3-next.0
## 0.10.4

@@ -4,0 +16,0 @@

import { AtpServiceClient, ComAtprotoServerCreateAccount, ComAtprotoServerCreateSession, ComAtprotoServerGetSession } from './client';
import { AtpSessionData, AtpAgentLoginOpts, AtpAgentFetchHandler, AtpAgentGlobalOpts, AtpPersistSessionHandler, AtpAgentOpts } from './types';
/**
* An ATP "Agent"
* Manages session token lifecycles and provides convenience methods.
*/
export declare class AtpAgent {

@@ -7,2 +11,5 @@ service: URL;

session?: AtpSessionData;
/**
* The PDS URL, driven by the did doc. May be undefined.
*/
pdsUrl: URL | undefined;

@@ -13,19 +20,78 @@ private _baseClient;

get com(): import("./client").ComNS;
/**
* The `fetch` implementation; must be implemented for your platform.
*/
static fetch: AtpAgentFetchHandler | undefined;
/**
* Configures the API globally.
*/
static configure(opts: AtpAgentGlobalOpts): void;
constructor(opts: AtpAgentOpts);
/**
* Is there any active session?
*/
get hasSession(): boolean;
/**
* Sets the "Persist Session" method which can be used to store access tokens
* as they change.
*/
setPersistSessionHandler(handler?: AtpPersistSessionHandler): void;
/**
* Create a new account and hydrate its session in this agent.
*/
createAccount(opts: ComAtprotoServerCreateAccount.InputSchema): Promise<ComAtprotoServerCreateAccount.Response>;
/**
* Start a new session with this agent.
*/
login(opts: AtpAgentLoginOpts): Promise<ComAtprotoServerCreateSession.Response>;
/**
* Resume a pre-existing session with this agent.
*/
resumeSession(session: AtpSessionData): Promise<ComAtprotoServerGetSession.Response>;
/**
* Internal helper to add authorization headers to requests.
*/
private _addAuthHeader;
/**
* Internal fetch handler which adds access-token management
*/
private _fetch;
/**
* Internal helper to refresh sessions
* - Wraps the actual implementation in a promise-guard to ensure only
* one refresh is attempted at a time.
*/
refreshSession(): Promise<void>;
/**
* Internal helper to refresh sessions (actual behavior)
*/
private _refreshSessionInner;
/**
* Upload a binary blob to the server
*/
uploadBlob: typeof this.api.com.atproto.repo.uploadBlob;
/**
* Resolve a handle to a DID
*/
resolveHandle: typeof this.api.com.atproto.identity.resolveHandle;
/**
* Change the user's handle
*/
updateHandle: typeof this.api.com.atproto.identity.updateHandle;
/**
* Create a moderation report
*/
createModerationReport: typeof this.api.com.atproto.moderation.createReport;
/**
* Helper to update the pds endpoint dynamically.
*
* The session methods (create, resume, refresh) may respond with the user's
* did document which contains the user's canonical PDS endpoint. That endpoint
* may differ from the endpoint used to contact the server. We capture that
* PDS endpoint and update the client to use that given endpoint for future
* requests. (This helps ensure smooth migrations between PDSes, especially
* when the PDSes are operated by a single org.)
*/
private _updateApiEndpoint;
}
//# sourceMappingURL=agent.d.ts.map

1

dist/bsky-agent.d.ts

@@ -94,1 +94,2 @@ import { AtpAgent } from './agent';

}
//# sourceMappingURL=bsky-agent.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';

@@ -784,1 +787,2 @@ import * as ComAtprotoAdminCreateCommunicationTemplate from './types/com/atproto/admin/createCommunicationTemplate';

}
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -45,2 +48,3 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';

export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
export interface ViewerState {

@@ -84,2 +88,3 @@ muted?: boolean;

export interface PersonalDetailsPref {
/** The birth date of account owner. */
birthDate?: string;

@@ -91,7 +96,13 @@ [k: string]: unknown;

export interface FeedViewPref {
/** The URI of the feed, or an identifier which describes the feed. */
feed: string;
/** Hide replies in the feed. */
hideReplies?: boolean;
/** Hide replies in the feed if they are not by followed users. */
hideRepliesByUnfollowed?: boolean;
/** Hide replies in the feed if they do not have this number of likes. */
hideRepliesByLikeCount?: number;
/** Hide reposts in the feed. */
hideReposts?: boolean;
/** Hide quote posts in the feed. */
hideQuotePosts?: boolean;

@@ -103,3 +114,5 @@ [k: string]: unknown;

export interface ThreadViewPref {
/** Sorting mode for threads. */
sort?: 'oldest' | 'newest' | 'most-likes' | 'random' | (string & {});
/** Show followed users at the top of all replies. */
prioritizeFollowedUsers?: boolean;

@@ -111,2 +124,3 @@ [k: string]: unknown;

export interface InterestsPref {
/** A list of tags which describe the account owner's interests gathered during onboarding. */
tags: string[];

@@ -118,4 +132,7 @@ [k: string]: unknown;

export type MutedWordTarget = 'content' | 'tag' | (string & {});
/** A word that the account owner has muted. */
export interface MutedWord {
/** The muted word itself. */
value: string;
/** The intended targets of the muted word. */
targets: MutedWordTarget[];

@@ -127,2 +144,3 @@ [k: string]: unknown;

export interface MutedWordsPref {
/** A list of words the account owner has muted. */
items: MutedWord[];

@@ -134,2 +152,3 @@ [k: string]: unknown;

export interface HiddenPostsPref {
/** A list of URIs of posts the account owner has hidden. */
items: string[];

@@ -140,1 +159,2 @@ [k: string]: unknown;

export declare function validateHiddenPostsPref(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ import * as AppBskyActorDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getPreferences.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorDefs from './defs';
export interface QueryParams {
/** Handle or DID of account to fetch profile of. */
actor: string;

@@ -17,1 +21,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getProfile.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ import * as AppBskyActorDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getProfiles.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyActorDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getSuggestions.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult, BlobRef } from '@atproto/lexicon';

@@ -5,4 +8,7 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';

displayName?: string;
/** Free-form profile description text. */
description?: string;
/** Small image to be displayed next to posts from account. AKA, 'profile picture' */
avatar?: BlobRef;
/** Larger horizontal image to display behind profile view. */
banner?: BlobRef;

@@ -17,1 +23,2 @@ labels?: ComAtprotoLabelDefs.SelfLabels | {

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=profile.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ import * as AppBskyActorDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=putPreferences.d.ts.map

@@ -0,5 +1,10 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorDefs from './defs';
export interface QueryParams {
/** DEPRECATED: use 'q' instead. */
term?: string;
/** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
q?: string;

@@ -24,1 +29,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchActors.d.ts.map

@@ -0,5 +1,10 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorDefs from './defs';
export interface QueryParams {
/** DEPRECATED: use 'q' instead. */
term?: string;
/** Search query prefix; not a full query string. */
q?: string;

@@ -22,1 +27,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchActorsTypeahead.d.ts.map

@@ -0,2 +1,6 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult, BlobRef } from '@atproto/lexicon';
/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
export interface Main {

@@ -32,1 +36,2 @@ external: External;

export declare function validateViewExternal(v: unknown): ValidationResult;
//# sourceMappingURL=external.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult, BlobRef } from '@atproto/lexicon';

@@ -10,2 +13,3 @@ export interface Main {

image: BlobRef;
/** Alt text description of the image, for accessibility. */
alt: string;

@@ -17,2 +21,3 @@ aspectRatio?: AspectRatio;

export declare function validateImage(v: unknown): ValidationResult;
/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
export interface AspectRatio {

@@ -32,4 +37,7 @@ width: number;

export interface ViewImage {
/** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
thumb: string;
/** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */
fullsize: string;
/** Alt text description of the image, for accessibility. */
alt: string;

@@ -41,1 +49,2 @@ aspectRatio?: AspectRatio;

export declare function validateViewImage(v: unknown): ValidationResult;
//# sourceMappingURL=images.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -29,2 +32,3 @@ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

author: AppBskyActorDefs.ProfileViewBasic;
/** The record data itself. */
value: {};

@@ -56,1 +60,2 @@ labels?: ComAtprotoLabelDefs.Label[];

export declare function validateViewBlocked(v: unknown): ValidationResult;
//# sourceMappingURL=record.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -25,1 +28,2 @@ import * as AppBskyEmbedRecord from './record';

export declare function validateView(v: unknown): ValidationResult;
//# sourceMappingURL=recordWithMedia.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -30,2 +33,3 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function validatePostView(v: unknown): ValidationResult;
/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
export interface ViewerState {

@@ -153,1 +157,2 @@ repost?: string;

export declare function validateThreadgateView(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -34,1 +37,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateLinks(v: unknown): ValidationResult;
//# sourceMappingURL=describeFeedGenerator.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult, BlobRef } from '@atproto/lexicon';

@@ -19,1 +22,2 @@ import * as AppBskyRichtextFacet from '../richtext/facet';

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=generator.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -23,1 +26,2 @@ import * as AppBskyFeedDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getActorFeeds.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -29,1 +32,2 @@ import * as AppBskyFeedDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getActorLikes.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -7,2 +10,3 @@ import * as AppBskyFeedDefs from './defs';

cursor?: string;
/** Combinations of post/repost types to include in response. */
filter?: 'posts_with_replies' | 'posts_no_replies' | 'posts_with_media' | 'posts_and_author_threads' | (string & {});

@@ -31,1 +35,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getAuthorFeed.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -26,1 +29,2 @@ import * as AppBskyFeedDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFeed.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** AT-URI of the feed generator record. */
feed: string;

@@ -9,3 +13,5 @@ }

view: AppBskyFeedDefs.GeneratorView;
/** Indicates whether the feed generator service has been online recently, or else seems to be inactive. */
isOnline: boolean;
/** Indicates whether the feed generator service is compatible with the record declaration. */
isValid: boolean;

@@ -23,1 +29,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFeedGenerator.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ import * as AppBskyFeedDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFeedGenerators.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** Reference to feed generator record describing the specific feed being requested. */
feed: string;

@@ -26,1 +30,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFeedSkeleton.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,3 +8,5 @@ import { ValidationResult } from '@atproto/lexicon';

export interface QueryParams {
/** AT-URI of the subject (eg, a post record). */
uri: string;
/** CID of the subject record (aka, specific version of record), to filter likes. */
cid?: string;

@@ -36,1 +41,2 @@ limit?: number;

export declare function validateLike(v: unknown): ValidationResult;
//# sourceMappingURL=getLikes.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** Reference (AT-URI) to the list record. */
list: string;

@@ -26,1 +30,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getListFeed.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** List of post AT-URIs to return hydrated views for. */
uris: string[];

@@ -20,1 +24,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getPosts.d.ts.map

@@ -0,6 +1,12 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** Reference (AT-URI) to post record. */
uri: string;
/** How many levels of reply depth should be included in response. */
depth?: number;
/** How many levels of parent (and grandparent, etc) post to include. */
parentHeight?: number;

@@ -28,1 +34,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getPostThread.d.ts.map

@@ -0,5 +1,10 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorDefs from '../actor/defs';
export interface QueryParams {
/** Reference (AT-URI) of post record */
uri: string;
/** If supplied, filters to reposts of specific version (by CID) of the post record. */
cid?: string;

@@ -26,1 +31,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRepostedBy.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyFeedDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getSuggestedFeeds.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. */
algorithm?: string;

@@ -23,1 +27,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getTimeline.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -10,1 +13,2 @@ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=like.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -10,4 +13,7 @@ import * as AppBskyRichtextFacet from '../richtext/facet';

export interface Record {
/** The primary post content. May be an empty string, if there are embeds. */
text: string;
/** DEPRECATED: replaced by app.bsky.richtext.facet. */
entities?: Entity[];
/** Annotations of text (mentions, URLs, hashtags, etc) */
facets?: AppBskyRichtextFacet.Main[];

@@ -19,2 +25,3 @@ reply?: ReplyRef;

};
/** Indicates human language of post primary text content. */
langs?: string[];

@@ -25,3 +32,5 @@ labels?: ComAtprotoLabelDefs.SelfLabels | {

};
/** Additional hashtags, in addition to any included in post text and facets. */
tags?: string[];
/** Client-declared timestamp when this post was originally created. */
createdAt: string;

@@ -39,4 +48,6 @@ [k: string]: unknown;

export declare function validateReplyRef(v: unknown): ValidationResult;
/** Deprecated: use facets instead. */
export interface Entity {
index: TextSlice;
/** Expected values are 'mention' and 'link'. */
type: string;

@@ -48,2 +59,3 @@ value: string;

export declare function validateEntity(v: unknown): ValidationResult;
/** Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. */
export interface TextSlice {

@@ -56,1 +68,2 @@ start: number;

export declare function validateTextSlice(v: unknown): ValidationResult;
//# sourceMappingURL=post.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -10,1 +13,2 @@ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=repost.d.ts.map

@@ -0,6 +1,11 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyFeedDefs from './defs';
export interface QueryParams {
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
q: string;
limit?: number;
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
cursor?: string;

@@ -11,2 +16,3 @@ }

cursor?: string;
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
hitsTotal?: number;

@@ -28,1 +34,2 @@ posts: AppBskyFeedDefs.PostView[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchPosts.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
export interface Record {
/** Reference (AT-URI) to the post record. */
post: string;

@@ -13,2 +17,3 @@ allow?: (MentionRule | FollowingRule | ListRule | {

export declare function validateRecord(v: unknown): ValidationResult;
/** Allow replies from actors mentioned in your post. */
export interface MentionRule {

@@ -19,2 +24,3 @@ [k: string]: unknown;

export declare function validateMentionRule(v: unknown): ValidationResult;
/** Allow replies from actors you follow. */
export interface FollowingRule {

@@ -25,2 +31,3 @@ [k: string]: unknown;

export declare function validateFollowingRule(v: unknown): ValidationResult;
/** Allow replies from actors on a list. */
export interface ListRule {

@@ -32,1 +39,2 @@ list: string;

export declare function validateListRule(v: unknown): ValidationResult;
//# sourceMappingURL=threadgate.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
export interface Record {
/** DID of the account to be blocked. */
subject: string;

@@ -9,1 +13,2 @@ createdAt: string;

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=block.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -39,3 +42,5 @@ import * as AppBskyActorDefs from '../actor/defs';

export type ListPurpose = 'app.bsky.graph.defs#modlist' | 'app.bsky.graph.defs#curatelist' | (string & {});
/** A list of actors to apply an aggregate moderation action (mute/block) on. */
export declare const MODLIST = "app.bsky.graph.defs#modlist";
/** A list of actors used for curation purposes such as list feeds or interaction gating. */
export declare const CURATELIST = "app.bsky.graph.defs#curatelist";

@@ -49,2 +54,3 @@ export interface ListViewerState {

export declare function validateListViewerState(v: unknown): ValidationResult;
/** indicates that a handle or DID could not be resolved */
export interface NotFoundActor {

@@ -57,5 +63,8 @@ actor: string;

export declare function validateNotFoundActor(v: unknown): ValidationResult;
/** lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) */
export interface Relationship {
did: string;
/** if the actor follows this DID, this is the AT-URI of the follow record */
following?: string;
/** if the actor is followed by this DID, contains the AT-URI of the follow record */
followedBy?: string;

@@ -66,1 +75,2 @@ [k: string]: unknown;

export declare function validateRelationship(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -9,1 +12,2 @@ export interface Record {

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=follow.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getBlocks.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -24,1 +27,2 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFollowers.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -24,1 +27,2 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getFollows.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyGraphDefs from './defs';
export interface QueryParams {
/** Reference (AT-URI) of the list record to hydrate. */
list: string;

@@ -24,1 +28,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getList.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyGraphDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getListBlocks.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyGraphDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getListMutes.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as AppBskyGraphDefs from './defs';
export interface QueryParams {
/** The account (actor) to enumerate lists from. */
actor: string;

@@ -23,1 +27,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getLists.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getMutes.d.ts.map

@@ -0,5 +1,10 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyGraphDefs from './defs';
export interface QueryParams {
/** Primary account requesting relationships for. */
actor: string;
/** List of 'other' accounts to be related back to the primary. */
others?: string[];

@@ -28,1 +33,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRelationships.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ import * as AppBskyActorDefs from '../actor/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getSuggestedFollowsByActor.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult, BlobRef } from '@atproto/lexicon';

@@ -7,2 +10,3 @@ import * as AppBskyGraphDefs from './defs';

purpose: AppBskyGraphDefs.ListPurpose;
/** Display name for list; can not be empty. */
name: string;

@@ -21,1 +25,2 @@ description?: string;

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=list.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
export interface Record {
/** Reference (AT-URI) to the mod list record. */
subject: string;

@@ -9,1 +13,2 @@ createdAt: string;

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=listblock.d.ts.map

@@ -0,4 +1,9 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
export interface Record {
/** The account which is included on the list. */
subject: string;
/** Reference (AT-URI) to the list record (app.bsky.graph.list). */
list: string;

@@ -10,1 +15,2 @@ createdAt: string;

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=listitem.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=muteActor.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=muteActorList.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=unmuteActor.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=unmuteActorList.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getUnreadCount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -30,2 +33,3 @@ import { ValidationResult } from '@atproto/lexicon';

author: AppBskyActorDefs.ProfileView;
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'. */
reason: 'like' | 'repost' | 'follow' | 'mention' | 'reply' | 'quote' | (string & {});

@@ -41,1 +45,2 @@ reasonSubject?: string;

export declare function validateNotification(v: unknown): ValidationResult;
//# sourceMappingURL=listNotifications.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -21,1 +24,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=registerPush.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateSeen.d.ts.map

@@ -0,2 +1,6 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
/** Annotation of a sub-string within rich text. */
export interface Main {

@@ -12,2 +16,3 @@ index: ByteSlice;

export declare function validateMain(v: unknown): ValidationResult;
/** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */
export interface Mention {

@@ -19,2 +24,3 @@ did: string;

export declare function validateMention(v: unknown): ValidationResult;
/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
export interface Link {

@@ -26,2 +32,3 @@ uri: string;

export declare function validateLink(v: unknown): ValidationResult;
/** Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). */
export interface Tag {

@@ -33,2 +40,3 @@ tag: string;

export declare function validateTag(v: unknown): ValidationResult;
/** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
export interface ByteSlice {

@@ -41,1 +49,2 @@ byteStart: number;

export declare function validateByteSlice(v: unknown): ValidationResult;
//# sourceMappingURL=facet.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -14,1 +17,2 @@ export interface SkeletonSearchPost {

export declare function validateSkeletonSearchActor(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -23,1 +26,2 @@ import * as AppBskyFeedDefs from '../feed/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getPopularFeedGenerators.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -27,1 +30,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateSuggestion(v: unknown): ValidationResult;
//# sourceMappingURL=getTaggedSuggestions.d.ts.map

@@ -0,7 +1,13 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyUnspeccedDefs from './defs';
export interface QueryParams {
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax. */
q: string;
/** If true, acts as fast/simple 'typeahead' query. */
typeahead?: boolean;
limit?: number;
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
cursor?: string;

@@ -12,2 +18,3 @@ }

cursor?: string;
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
hitsTotal?: number;

@@ -29,1 +36,2 @@ actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchActorsSkeleton.d.ts.map

@@ -0,6 +1,11 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyUnspeccedDefs from './defs';
export interface QueryParams {
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
q: string;
limit?: number;
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
cursor?: string;

@@ -11,2 +16,3 @@ }

cursor?: string;
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
hitsTotal?: number;

@@ -28,1 +34,2 @@ posts: AppBskyUnspeccedDefs.SkeletonSearchPost[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchPostsSkeleton.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -6,5 +9,9 @@ import * as ComAtprotoAdminDefs from './defs';

export interface InputSchema {
/** Name of the template. */
name: string;
/** Content of the template, markdown supported, can contain variable placeholders. */
contentMarkdown: string;
/** Subject of the message, used in emails. */
subject: string;
/** DID of the user who is creating the template. */
createdBy?: string;

@@ -25,1 +32,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createCommunicationTemplate.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -73,5 +76,8 @@ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';

subjectRepoHandle?: string;
/** Timestamp referencing when the last update was made to the moderation status of the subject */
updatedAt: string;
/** Timestamp referencing the first moderation status impacting event was emitted on the subject */
createdAt: string;
reviewState: SubjectReviewState;
/** Sticky comment on the subject. */
comment?: string;

@@ -82,4 +88,6 @@ muteUntil?: string;

lastReportedAt?: string;
/** Timestamp referencing when the author of the subject appealed a moderation action */
lastAppealedAt?: string;
takendown?: boolean;
/** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */
appealed?: boolean;

@@ -247,7 +255,12 @@ suspendUntil?: string;

export type SubjectReviewState = 'lex:com.atproto.admin.defs#reviewOpen' | 'lex:com.atproto.admin.defs#reviewEscalated' | 'lex:com.atproto.admin.defs#reviewClosed' | (string & {});
/** Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator */
export declare const REVIEWOPEN = "com.atproto.admin.defs#reviewOpen";
/** Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator */
export declare const REVIEWESCALATED = "com.atproto.admin.defs#reviewEscalated";
/** Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator */
export declare const REVIEWCLOSED = "com.atproto.admin.defs#reviewClosed";
/** Take down a subject permanently or temporarily */
export interface ModEventTakedown {
comment?: string;
/** Indicates how long the takedown should be in effect before automatically expiring. */
durationInHours?: number;

@@ -258,3 +271,5 @@ [k: string]: unknown;

export declare function validateModEventTakedown(v: unknown): ValidationResult;
/** Revert take down action on a subject */
export interface ModEventReverseTakedown {
/** Describe reasoning behind the reversal. */
comment?: string;

@@ -265,3 +280,5 @@ [k: string]: unknown;

export declare function validateModEventReverseTakedown(v: unknown): ValidationResult;
/** Resolve appeal on a subject */
export interface ModEventResolveAppeal {
/** Describe resolution. */
comment?: string;

@@ -272,4 +289,6 @@ [k: string]: unknown;

export declare function validateModEventResolveAppeal(v: unknown): ValidationResult;
/** Add a comment to a subject */
export interface ModEventComment {
comment: string;
/** Make the comment persistent on the subject */
sticky?: boolean;

@@ -280,2 +299,3 @@ [k: string]: unknown;

export declare function validateModEventComment(v: unknown): ValidationResult;
/** Report a subject */
export interface ModEventReport {

@@ -288,2 +308,3 @@ comment?: string;

export declare function validateModEventReport(v: unknown): ValidationResult;
/** Apply/Negate labels on a subject */
export interface ModEventLabel {

@@ -309,4 +330,6 @@ comment?: string;

export declare function validateModEventEscalate(v: unknown): ValidationResult;
/** Mute incoming reports on a subject */
export interface ModEventMute {
comment?: string;
/** Indicates how long the subject should remain muted. */
durationInHours: number;

@@ -317,3 +340,5 @@ [k: string]: unknown;

export declare function validateModEventMute(v: unknown): ValidationResult;
/** Unmute action on a subject */
export interface ModEventUnmute {
/** Describe reasoning behind the reversal. */
comment?: string;

@@ -324,4 +349,7 @@ [k: string]: unknown;

export declare function validateModEventUnmute(v: unknown): ValidationResult;
/** Keep a log of outgoing email to a user */
export interface ModEventEmail {
/** The subject line of the email sent to the user. */
subjectLine: string;
/** Additional comment about the outgoing comm. */
comment?: string;

@@ -332,5 +360,9 @@ [k: string]: unknown;

export declare function validateModEventEmail(v: unknown): ValidationResult;
/** Add/Remove a tag on a subject */
export interface ModEventTag {
/** Tags to be added to the subject. If already exists, won't be duplicated. */
add: string[];
/** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */
remove: string[];
/** Additional comment about added/removed tags. */
comment?: string;

@@ -343,6 +375,10 @@ [k: string]: unknown;

id: string;
/** Name of the template. */
name: string;
/** Content of the template, can contain markdown and variable placeholders. */
subject?: string;
/** Subject of the message, used in emails. */
contentMarkdown: string;
disabled: boolean;
/** DID of the user who last updated the template. */
lastUpdatedBy: string;

@@ -355,1 +391,2 @@ createdAt: string;

export declare function validateCommunicationTemplateView(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deleteAccount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deleteCommunicationTemplate.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -6,2 +9,3 @@ export interface QueryParams {

account: string;
/** Optional reason for disabled invites. */
note?: string;

@@ -20,1 +24,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=disableAccountInvites.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=disableInviteCodes.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -34,1 +37,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=emitModerationEvent.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -6,2 +9,3 @@ export interface QueryParams {

account: string;
/** Optional reason for enabled invites. */
note?: string;

@@ -20,1 +24,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=enableAccountInvites.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -17,1 +20,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getAccountInfo.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getAccountInfos.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -23,1 +26,2 @@ import * as ComAtprotoServerDefs from '../server/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getInviteCodes.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -17,1 +20,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getModerationEvent.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -21,1 +24,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRecord.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRepo.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -27,1 +30,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getSubjectStatus.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=listCommunicationTemplates.d.ts.map

@@ -0,17 +1,31 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as ComAtprotoAdminDefs from './defs';
export interface QueryParams {
/** The types of events (fully qualified string in the format of com.atproto.admin#modEvent<name>) to filter by. If not specified, all events are returned. */
types?: string[];
createdBy?: string;
/** Sort direction for the events. Defaults to descending order of created at timestamp. */
sortDirection?: 'asc' | 'desc';
/** Retrieve events created after a given timestamp */
createdAfter?: string;
/** Retrieve events created before a given timestamp */
createdBefore?: string;
subject?: string;
/** If true, events on all record types (posts, lists, profile etc.) owned by the did are returned */
includeAllUserRecords?: boolean;
limit?: number;
/** If true, only events with comments are returned */
hasComment?: boolean;
/** If specified, only events with comments containing the keyword are returned */
comment?: string;
/** If specified, only events where all of these labels were added are returned */
addedLabels?: string[];
/** If specified, only events where all of these labels were removed are returned */
removedLabels?: string[];
/** If specified, only events where all of these tags were added are returned */
addedTags?: string[];
/** If specified, only events where all of these tags were removed are returned */
removedTags?: string[];

@@ -36,1 +50,2 @@ reportTypes?: string[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=queryModerationEvents.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,14 +8,24 @@ import * as ComAtprotoAdminDefs from './defs';

subject?: string;
/** Search subjects by keyword from comments */
comment?: string;
/** Search subjects reported after a given timestamp */
reportedAfter?: string;
/** Search subjects reported before a given timestamp */
reportedBefore?: string;
/** Search subjects reviewed after a given timestamp */
reviewedAfter?: string;
/** Search subjects reviewed before a given timestamp */
reviewedBefore?: string;
/** By default, we don't include muted subjects in the results. Set this to true to include them. */
includeMuted?: boolean;
/** Specify when fetching subjects in a certain state */
reviewState?: string;
ignoreSubjects?: string[];
/** Get all subject statuses that were reviewed by a specific moderator */
lastReviewedBy?: string;
sortField?: 'lastReviewedAt' | 'lastReportedAt';
sortDirection?: 'asc' | 'desc';
/** Get subjects that were taken down */
takendown?: boolean;
/** Get subjects in unresolved appealed status */
appealed?: boolean;

@@ -39,1 +52,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=queryModerationStatuses.d.ts.map

@@ -0,4 +1,8 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as ComAtprotoAdminDefs from './defs';
export interface QueryParams {
/** DEPRECATED: use 'q' instead */
term?: string;

@@ -24,1 +28,2 @@ q?: string;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=searchRepos.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -9,2 +12,3 @@ export interface QueryParams {

senderDid: string;
/** Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers */
comment?: string;

@@ -28,1 +32,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=sendEmail.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** The handle or DID of the repo. */
account: string;

@@ -20,1 +24,2 @@ email: string;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateAccountEmail.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateAccountHandle.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateAccountPassword.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -6,6 +9,11 @@ import * as ComAtprotoAdminDefs from './defs';

export interface InputSchema {
/** ID of the template to be updated. */
id: string;
/** Name of the template. */
name?: string;
/** Content of the template, markdown supported, can contain variable placeholders. */
contentMarkdown?: string;
/** Subject of the message, used in emails. */
subject?: string;
/** DID of the user who is updating the template. */
updatedBy?: string;

@@ -27,1 +35,2 @@ disabled?: boolean;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateCommunicationTemplate.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -33,1 +36,2 @@ import * as ComAtprotoAdminDefs from './defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateSubjectStatus.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -6,2 +9,3 @@ export interface QueryParams {

export interface OutputSchema {
/** Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs. */
rotationKeys?: string[];

@@ -22,1 +26,2 @@ alsoKnownAs?: string[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRecommendedDidCredentials.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -14,1 +17,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestPlcOperationSignature.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The handle to resolve. */
handle: string;

@@ -19,1 +23,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=resolveHandle.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** A token received through com.atproto.identity.requestPlcOperationSignature */
token?: string;

@@ -14,2 +18,3 @@ rotationKeys?: string[];

export interface OutputSchema {
/** A signed DID PLC operation. */
operation: {};

@@ -29,1 +34,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=signPlcOperation.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=submitPlcOperation.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** The new handle. */
handle: string;

@@ -19,1 +23,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateHandle.d.ts.map

@@ -0,8 +1,18 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';
/** Metadata tag on an atproto resource (eg, repo or record). */
export interface Label {
/** DID of the actor who created this label. */
src: string;
/** AT URI of the record, repository (account), or other resource that this label applies to. */
uri: string;
/** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
cid?: string;
/** The short string name of the value or type of this label. */
val: string;
/** If true, this is a negation label, overwriting a previous label. */
neg?: boolean;
/** Timestamp when this label was created. */
cts: string;

@@ -13,2 +23,3 @@ [k: string]: unknown;

export declare function validateLabel(v: unknown): ValidationResult;
/** Metadata tags on an atproto record, published by the author within the record. */
export interface SelfLabels {

@@ -20,3 +31,5 @@ values: SelfLabel[];

export declare function validateSelfLabels(v: unknown): ValidationResult;
/** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */
export interface SelfLabel {
/** The short string name of the value or type of this label. */
val: string;

@@ -27,1 +40,2 @@ [k: string]: unknown;

export declare function validateSelfLabel(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,5 +1,10 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import * as ComAtprotoLabelDefs from './defs';
export interface QueryParams {
/** List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. */
uriPatterns: string[];
/** Optional list of label sources (DIDs) to filter on. */
sources?: string[];

@@ -24,1 +29,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=queryLabels.d.ts.map

@@ -17,1 +17,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateInfo(v: unknown): ValidationResult;
//# sourceMappingURL=subscribeLabels.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -9,2 +12,3 @@ import * as ComAtprotoModerationDefs from './defs';

reasonType: ComAtprotoModerationDefs.ReasonType;
/** Additional context about the content and violation. */
reason?: string;

@@ -40,1 +44,2 @@ subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createReport.d.ts.map
export type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | 'com.atproto.moderation.defs#reasonAppeal' | (string & {});
/** Spam: frequent unwanted promotion, replies, mentions */
export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
/** Direct violation of server rules, laws, terms of service */
export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
/** Misleading identity, affiliation, or content */
export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
/** Unwanted or mislabeled sexual content */
export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
/** Other: reports not falling under another report category */
export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
/** Appeal: appeal a previously taken moderation action */
export declare const REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -6,5 +9,8 @@ import { ValidationResult } from '@atproto/lexicon';

export interface InputSchema {
/** The handle or DID of the repo (aka, current account). */
repo: string;
/** Can be set to 'false' to skip Lexicon schema validation of record data, for all operations. */
validate?: boolean;
writes: (Create | Update | Delete)[];
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
swapCommit?: string;

@@ -26,2 +32,3 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
/** Operation which creates a new record. */
export interface Create {

@@ -35,2 +42,3 @@ collection: string;

export declare function validateCreate(v: unknown): ValidationResult;
/** Operation which updates an existing record. */
export interface Update {

@@ -44,2 +52,3 @@ collection: string;

export declare function validateUpdate(v: unknown): ValidationResult;
/** Operation which deletes an existing record. */
export interface Delete {

@@ -52,1 +61,2 @@ collection: string;

export declare function validateDelete(v: unknown): ValidationResult;
//# sourceMappingURL=applyWrites.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -5,7 +8,13 @@ export interface QueryParams {

export interface InputSchema {
/** The handle or DID of the repo (aka, current account). */
repo: string;
/** The NSID of the record collection. */
collection: string;
/** The Record Key. */
rkey?: string;
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
validate?: boolean;
/** The record itself. Must contain a $type field. */
record: {};
/** Compare and swap with the previous commit by CID. */
swapCommit?: string;

@@ -33,1 +42,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createRecord.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -5,6 +8,11 @@ export interface QueryParams {

export interface InputSchema {
/** The handle or DID of the repo (aka, current account). */
repo: string;
/** The NSID of the record collection. */
collection: string;
/** The Record Key. */
rkey: string;
/** Compare and swap with the previous record by CID. */
swapRecord?: string;
/** Compare and swap with the previous commit by CID. */
swapCommit?: string;

@@ -26,1 +34,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deleteRecord.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The handle or DID of the repo. */
repo: string;

@@ -9,4 +13,7 @@ }

did: string;
/** The complete DID document for this account. */
didDoc: {};
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
collections: string[];
/** Indicates if handle is currently valid (resolves bi-directionally) */
handleIsCorrect: boolean;

@@ -24,1 +31,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=describeRepo.d.ts.map

@@ -0,6 +1,13 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The handle or DID of the repo. */
repo: string;
/** The NSID of the record collection. */
collection: string;
/** The Record Key. */
rkey: string;
/** The CID of the version of the record. If not specified, then return the most recent version. */
cid?: string;

@@ -24,1 +31,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRecord.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -15,1 +18,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=importRepo.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -29,1 +32,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateRecordBlob(v: unknown): ValidationResult;
//# sourceMappingURL=listMissingBlobs.d.ts.map

@@ -0,10 +1,19 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
export interface QueryParams {
/** The handle or DID of the repo. */
repo: string;
/** The NSID of the record type. */
collection: string;
/** The number of records to return. */
limit?: number;
cursor?: string;
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
rkeyStart?: string;
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
rkeyEnd?: string;
/** Flag to reverse the order of the returned records. */
reverse?: boolean;

@@ -35,1 +44,2 @@ }

export declare function validateRecord(v: unknown): ValidationResult;
//# sourceMappingURL=listRecords.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -5,8 +8,15 @@ export interface QueryParams {

export interface InputSchema {
/** The handle or DID of the repo (aka, current account). */
repo: string;
/** The NSID of the record collection. */
collection: string;
/** The Record Key. */
rkey: string;
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
validate?: boolean;
/** The record to write. */
record: {};
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
swapRecord?: string | null;
/** Compare and swap with the previous commit by CID. */
swapCommit?: string;

@@ -34,1 +44,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=putRecord.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -9,1 +12,2 @@ export interface Main {

export declare function validateMain(v: unknown): ValidationResult;
//# sourceMappingURL=strongRef.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -21,1 +24,2 @@ import { BlobRef } from '@atproto/lexicon';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=uploadBlob.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -14,1 +17,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=activateAccount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -26,1 +29,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=checkAccountStatus.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -31,1 +34,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=confirmEmail.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -6,3 +9,5 @@ export interface QueryParams {

email?: string;
/** Requested handle for the account. */
handle: string;
/** Pre-existing atproto DID, being imported to a new account. */
did?: string;

@@ -12,7 +17,11 @@ inviteCode?: string;

verificationPhone?: string;
/** Initial account password. May need to meet instance-specific password strength requirements. */
password?: string;
/** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
recoveryKey?: string;
/** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
plcOp?: {};
[k: string]: unknown;
}
/** Account login session returned on successful account creation. */
export interface OutputSchema {

@@ -22,3 +31,5 @@ accessJwt: string;

handle: string;
/** The DID of the new account. */
did: string;
/** Complete DID document. */
didDoc?: {};

@@ -59,1 +70,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createAccount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -6,2 +9,3 @@ import { ValidationResult } from '@atproto/lexicon';

export interface InputSchema {
/** A short name for the App Password, to help distinguish them. */
name: string;

@@ -33,1 +37,2 @@ [k: string]: unknown;

export declare function validateAppPassword(v: unknown): ValidationResult;
//# sourceMappingURL=createAppPassword.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -24,1 +27,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createInviteCode.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -33,1 +36,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateAccountCodes(v: unknown): ValidationResult;
//# sourceMappingURL=createInviteCodes.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** Handle or other identifier supported by the server for the authenticating user. */
identifier: string;

@@ -34,1 +38,2 @@ password: string;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=createSession.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** A recommendation to server as to how long they should hold onto the deactivated account before deleting. */
deleteAfter?: string;

@@ -19,1 +23,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deactivateAccount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon';

@@ -21,1 +24,2 @@ export interface InviteCode {

export declare function validateInviteCodeUse(v: unknown): ValidationResult;
//# sourceMappingURL=defs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -26,1 +29,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deleteAccount.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -14,1 +17,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=deleteSession.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -7,4 +10,7 @@ import { ValidationResult } from '@atproto/lexicon';

export interface OutputSchema {
/** If true, an invite code must be supplied to create an account on this instance. */
inviteCodeRequired?: boolean;
/** If true, a phone verification token must be supplied to create an account on this instance. */
phoneVerificationRequired?: boolean;
/** List of domain suffixes that can be used in account handles. */
availableUserDomains: string[];

@@ -31,1 +37,2 @@ links?: Links;

export declare function validateLinks(v: unknown): ValidationResult;
//# sourceMappingURL=describeServer.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ import * as ComAtprotoServerDefs from './defs';

includeUsed?: boolean;
/** Controls whether any new 'earned' but not 'created' invites should be created. */
createAvailable?: boolean;

@@ -25,1 +29,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getAccountInviteCodes.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the service that the token will be used to authenticate with */
aud: string;

@@ -19,1 +23,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getServiceAuth.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -22,1 +25,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getSession.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -29,1 +32,2 @@ import { ValidationResult } from '@atproto/lexicon';

export declare function validateAppPassword(v: unknown): ValidationResult;
//# sourceMappingURL=listAppPasswords.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -26,1 +29,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=refreshSession.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -14,1 +17,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestAccountDelete.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -14,1 +17,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestEmailConfirmation.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -19,1 +22,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestEmailUpdate.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestPasswordReset.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** The DID to reserve a key for. */
did?: string;

@@ -10,2 +14,3 @@ [k: string]: unknown;

export interface OutputSchema {
/** The public key for the reserved signing key, in did:key serialization. */
signingKey: string;

@@ -25,1 +30,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=reserveSigningKey.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -25,1 +28,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=resetPassword.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=revokeAppPassword.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';

@@ -6,2 +9,3 @@ export interface QueryParams {

email: string;
/** Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. */
token?: string;

@@ -29,1 +33,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=updateEmail.d.ts.map

@@ -0,4 +1,9 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the account. */
did: string;
/** The CID of the blob to fetch */
cid: string;

@@ -16,1 +21,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getBlob.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;

@@ -16,1 +20,2 @@ cids: string[];

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getBlocks.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;

@@ -15,1 +19,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getCheckout.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;

@@ -22,1 +26,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getHead.d.ts.map

@@ -0,3 +1,7 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;

@@ -23,1 +27,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getLatestCommit.d.ts.map

@@ -0,6 +1,12 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;
collection: string;
/** Record Key */
rkey: string;
/** An optional past commit CID. */
commit?: string;

@@ -18,1 +24,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRecord.d.ts.map

@@ -0,4 +1,9 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;
/** The revision ('rev') of the repo to create a diff from. */
since?: string;

@@ -16,1 +21,2 @@ }

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=getRepo.d.ts.map

@@ -0,4 +1,9 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
/** The DID of the repo. */
did: string;
/** Optional revision of the repo to list blobs since. */
since?: string;

@@ -23,1 +28,2 @@ limit?: number;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=listBlobs.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -24,2 +27,3 @@ import { ValidationResult } from '@atproto/lexicon';

did: string;
/** Current repo commit CID */
head: string;

@@ -31,1 +35,2 @@ rev: string;

export declare function validateRepo(v: unknown): ValidationResult;
//# sourceMappingURL=listRepos.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** Hostname of the current service (usually a PDS) that is notifying of update. */
hostname: string;

@@ -19,1 +23,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=notifyOfUpdate.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -5,2 +8,3 @@ export interface QueryParams {

export interface InputSchema {
/** Hostname of the current service (eg, PDS) that is requesting to be crawled. */
hostname: string;

@@ -19,1 +23,2 @@ [k: string]: unknown;

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestCrawl.d.ts.map
import { ValidationResult } from '@atproto/lexicon';
import { CID } from 'multiformats/cid';
/** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
export interface Commit {
/** The stream sequence number of this message. */
seq: number;
/** DEPRECATED -- unused */
rebase: boolean;
/** Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
tooBig: boolean;
/** The repo this event comes from. */
repo: string;
/** Repo commit object CID. */
commit: CID;
/** DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability. */
prev?: CID | null;
/** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
rev: string;
/** The rev of the last emitted commit from this repo (if any). */
since: string | null;
/** CAR file containing relevant blocks, as a diff since the previous repo state. */
blocks: Uint8Array;
ops: RepoOp[];
blobs: CID[];
/** Timestamp of when this message was originally broadcast. */
time: string;

@@ -20,2 +31,3 @@ [k: string]: unknown;

export declare function validateCommit(v: unknown): ValidationResult;
/** Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. */
export interface Identity {

@@ -29,2 +41,3 @@ seq: number;

export declare function validateIdentity(v: unknown): ValidationResult;
/** Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity. */
export interface Handle {

@@ -39,2 +52,3 @@ seq: number;

export declare function validateHandle(v: unknown): ValidationResult;
/** Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead */
export interface Migrate {

@@ -49,2 +63,3 @@ seq: number;

export declare function validateMigrate(v: unknown): ValidationResult;
/** Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event */
export interface Tombstone {

@@ -65,5 +80,7 @@ seq: number;

export declare function validateInfo(v: unknown): ValidationResult;
/** A repo operation, ie a mutation of a single record. */
export interface RepoOp {
action: 'create' | 'update' | 'delete' | (string & {});
path: string;
/** For creates and updates, the new record CID. For deletions, null. */
cid: CID | null;

@@ -74,1 +91,2 @@ [k: string]: unknown;

export declare function validateRepoOp(v: unknown): ValidationResult;
//# sourceMappingURL=subscribeRepos.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -20,1 +23,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=checkSignupQueue.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -21,1 +24,2 @@ import * as ComAtprotoLabelDefs from '../label/defs';

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=fetchLabels.d.ts.map

@@ -0,1 +1,4 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers } from '@atproto/xrpc';

@@ -18,1 +21,2 @@ export interface QueryParams {

export declare function toKnownErr(e: any): any;
//# sourceMappingURL=requestPhoneVerification.d.ts.map

@@ -0,2 +1,6 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
export declare function isObj(v: unknown): v is Record<string, unknown>;
export declare function hasProp<K extends PropertyKey>(data: object, prop: K): data is Record<K, unknown>;
//# sourceMappingURL=util.d.ts.map

@@ -18,1 +18,2 @@ export { AtUri } from '@atproto/syntax';

export { AtpAgent as default } from './agent';
//# sourceMappingURL=index.d.ts.map

@@ -17,1 +17,2 @@ import { AppBskyGraphDefs } from '../client/index';

}
//# sourceMappingURL=accumulator.d.ts.map

@@ -0,2 +1,4 @@

/** this doc is generated by ./scripts/code/labels.mjs **/
import { LabelGroupDefinitionMap } from '../types';
export declare const LABEL_GROUPS: LabelGroupDefinitionMap;
//# sourceMappingURL=label-groups.d.ts.map

@@ -0,2 +1,4 @@

/** this doc is generated by ./scripts/code/labels.mjs **/
import { LabelDefinitionMap } from '../types';
export declare const LABELS: LabelDefinitionMap;
//# sourceMappingURL=labels.d.ts.map

@@ -45,1 +45,2 @@ import { ModerationSubjectProfile, ModerationSubjectPost, ModerationSubjectFeedGenerator, ModerationSubjectUserList, ModerationOpts, ModerationDecision, ModerationUI } from './types';

export declare function moderateUserList(subject: ModerationSubjectUserList, opts: ModerationOpts): UserListModeration;
//# sourceMappingURL=index.d.ts.map
import { Label, ModerationSubjectProfile, ModerationOpts, ModerationDecision } from '../types';
export declare function decideAccount(subject: ModerationSubjectProfile, opts: ModerationOpts): ModerationDecision;
export declare function filterAccountLabels(labels?: Label[]): Label[];
//# sourceMappingURL=account.d.ts.map
import { ModerationSubjectFeedGenerator, ModerationDecision, ModerationOpts } from '../types';
export declare function decideFeedGenerator(_subject: ModerationSubjectFeedGenerator, _opts: ModerationOpts): ModerationDecision;
//# sourceMappingURL=feed-generator.d.ts.map
import { ModerationSubjectPost, ModerationOpts, ModerationDecision } from '../types';
export declare function decidePost(subject: ModerationSubjectPost, opts: ModerationOpts): ModerationDecision;
//# sourceMappingURL=post.d.ts.map
import { Label, ModerationSubjectProfile, ModerationOpts, ModerationDecision } from '../types';
export declare function decideProfile(subject: ModerationSubjectProfile, opts: ModerationOpts): ModerationDecision;
export declare function filterProfileLabels(labels?: Label[]): Label[];
//# sourceMappingURL=profile.d.ts.map

@@ -7,1 +7,2 @@ import { AppBskyEmbedRecord, AppBskyEmbedRecordWithMedia } from '../../client';

export declare function decideQuotedPostWithMediaAccount(subject: AppBskyEmbedRecordWithMedia.View, opts: ModerationOpts): ModerationDecision;
//# sourceMappingURL=quoted-post.d.ts.map
import { ModerationSubjectUserList, ModerationOpts, ModerationDecision } from '../types';
export declare function decideUserList(_subject: ModerationSubjectUserList, _opts: ModerationOpts): ModerationDecision;
//# sourceMappingURL=user-list.d.ts.map

@@ -106,1 +106,2 @@ import { AppBskyActorDefs, AppBskyFeedDefs, AppBskyGraphDefs, ComAtprotoLabelDefs } from '../client/index';

export {};
//# sourceMappingURL=types.d.ts.map

@@ -11,1 +11,2 @@ import { AppBskyEmbedRecord, AppBskyEmbedRecordWithMedia } from '../client';

export declare function toModerationUI(decision: ModerationDecision): ModerationUI;
//# sourceMappingURL=util.d.ts.map

@@ -5,1 +5,2 @@ import { AppBskyRichtextFacet } from '../client';

export declare function detectFacets(text: UnicodeString): Facet[] | undefined;
//# sourceMappingURL=detection.d.ts.map

@@ -12,2 +12,5 @@ import { AtpAgent } from '../agent';

facets?: Facet[];
/**
* @deprecated Use facets instead
*/
entities?: Entity[];

@@ -41,4 +44,14 @@ }

delete(removeStartIndex: number, removeEndIndex: number): this;
/**
* Detects facets such as links and mentions
* Note: Overwrites the existing facets with auto-detected facets
*/
detectFacets(agent: AtpAgent): Promise<void>;
/**
* Detects facets such as links and mentions but does not resolve them
* Will produce invalid facets! For instance, mentions will not have their DIDs set.
* Note: Overwrites the existing facets with auto-detected facets
*/
detectFacetsWithoutResolution(): void;
}
//# sourceMappingURL=rich-text.d.ts.map

@@ -5,1 +5,2 @@ import { RichText } from './rich-text';

}): RichText;
//# sourceMappingURL=sanitization.d.ts.map

@@ -0,1 +1,9 @@

/**
* Javascript uses utf16-encoded strings while most environments and specs
* have standardized around utf8 (including JSON).
*
* After some lengthy debated we decided that richtext facets need to use
* utf8 indices. This means we need tools to convert indices between utf8
* and utf16, and that's precisely what this library handles.
*/
export declare class UnicodeString {

@@ -12,1 +20,2 @@ utf16: string;

}
//# sourceMappingURL=unicode.d.ts.map
export declare const MENTION_REGEX: RegExp;
export declare const URL_REGEX: RegExp;
export declare const TRAILING_PUNCTUATION_REGEX: RegExp;
/**
* `\ufe0f` emoji modifier
* `\u00AD\u2060\u200A\u200B\u200C\u200D\u20e2` zero-width spaces (likely incomplete)
*/
export declare const TAG_REGEX: RegExp;
//# sourceMappingURL=util.d.ts.map
import { AppBskyActorDefs } from './client';
import { LabelPreference } from './moderation/types';
/**
* Used by the PersistSessionHandler to indicate what change occurred
*/
export type AtpSessionEvent = 'create' | 'create-failed' | 'update' | 'expired' | 'network-error';
/**
* Used by AtpAgent to store active sessions
*/
export interface AtpSessionData {

@@ -12,3 +18,9 @@ refreshJwt: string;

}
/**
* Handler signature passed to AtpAgent to store session data
*/
export type AtpPersistSessionHandler = (evt: AtpSessionEvent, session: AtpSessionData | undefined) => void | Promise<void>;
/**
* AtpAgent constructor() opts
*/
export interface AtpAgentOpts {

@@ -18,2 +30,5 @@ service: string | URL;

}
/**
* AtpAgent login() opts
*/
export interface AtpAgentLoginOpts {

@@ -23,2 +38,5 @@ identifier: string;

}
/**
* AtpAgent global fetch handler
*/
type AtpAgentFetchHeaders = Record<string, string>;

@@ -31,6 +49,15 @@ export interface AtpAgentFetchHandlerResponse {

export type AtpAgentFetchHandler = (httpUri: string, httpMethod: string, httpHeaders: AtpAgentFetchHeaders, httpReqBody: any) => Promise<AtpAgentFetchHandlerResponse>;
/**
* AtpAgent global config opts
*/
export interface AtpAgentGlobalOpts {
fetch: AtpAgentFetchHandler;
}
/**
* Content-label preference
*/
export type BskyLabelPreference = LabelPreference | 'show';
/**
* Bluesky feed view preferences
*/
export interface BskyFeedViewPreference {

@@ -44,2 +71,5 @@ hideReplies: boolean;

}
/**
* Bluesky thread view preferences
*/
export interface BskyThreadViewPreference {

@@ -50,2 +80,5 @@ sort: string;

}
/**
* Bluesky interests preferences
*/
export interface BskyInterestsPreference {

@@ -55,2 +88,5 @@ tags: string[];

}
/**
* Bluesky preferences
*/
export interface BskyPreferences {

@@ -71,1 +107,2 @@ feeds: {

export {};
//# sourceMappingURL=types.d.ts.map
export declare function sanitizeMutedWordValue(value: string): string;
//# sourceMappingURL=util.d.ts.map

9

jest.config.js

@@ -1,6 +0,9 @@

const base = require('../../jest.config.base.js')
/** @type {import('jest').Config} */
module.exports = {
...base,
displayName: 'API',
transform: { '^.+\\.(t|j)s$': '@swc/jest' },
transformIgnorePatterns: [`<rootDir>/node_modules/(?!get-port)`],
testTimeout: 60000,
setupFiles: ['<rootDir>/../../jest.setup.ts'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
}
{
"name": "@atproto/api",
"version": "0.10.4",
"version": "0.10.5-next.0",
"license": "MIT",

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

"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {

@@ -24,11 +25,11 @@ "multiformats": "^9.9.0",

"zod": "^3.21.4",
"@atproto/common-web": "^0.2.3",
"@atproto/lexicon": "^0.3.2",
"@atproto/syntax": "^0.2.0",
"@atproto/xrpc": "^0.4.2"
"@atproto/common-web": "^0.2.4-next.0",
"@atproto/syntax": "^0.2.1-next.0",
"@atproto/xrpc": "^0.4.3-next.0",
"@atproto/lexicon": "^0.3.3-next.0"
},
"devDependencies": {
"common-tags": "^1.8.2",
"@atproto/lex-cli": "^0.3.1",
"@atproto/dev-env": "^0.2.36"
"jest": "^28.1.2",
"@atproto/lex-cli": "^0.3.2-next.0"
},

@@ -38,10 +39,5 @@ "scripts": {

"docgen": "node ./scripts/generate-docs.mjs",
"build": "node ./build.js",
"postbuild": "tsc --build tsconfig.build.json",
"update-main-to-dist": "node ../../update-main-to-dist.js packages/api",
"test": "jest",
"bench": "jest --config jest.bench.config.js",
"bench:profile": "node --inspect-brk ../../node_modules/.bin/jest --config jest.bench.config.js"
},
"types": "dist/index.d.ts"
"build": "tsc --build tsconfig.build.json",
"test": "jest"
}
}

@@ -1,2 +0,2 @@

import { AppBskyActorNS, AppBskyActorDefs } from './client'
import { AppBskyActorDefs } from './client'
import { LabelPreference } from './moderation/types'

@@ -3,0 +3,0 @@

import { moderateProfile, moderatePost } from '../src'
import { mock } from './util'
import './util/moderation-behavior'

@@ -5,0 +4,0 @@ describe('Moderation', () => {

@@ -29,2 +29,3 @@ import { moderateProfile } from '../src'

expect(res.account).toBeModerationResult(
// @ts-expect-error FIXME remove this comment (and fix the TS error)
scenario.behaviors.account,

@@ -35,2 +36,3 @@ 'account',

expect(res.profile).toBeModerationResult(
// @ts-expect-error FIXME remove this comment (and fix the TS error)
scenario.behaviors.profile,

@@ -37,0 +39,0 @@ 'profile content',

@@ -1,86 +0,8 @@

import { ModerationUI, ModerationOpts, ComAtprotoLabelDefs } from '../../src'
import type {
ModerationBehaviorScenario,
ModerationBehaviors,
ModerationBehaviorScenario,
ModerationBehaviorResult,
} from '../../definitions/moderation-behaviors'
import { ComAtprotoLabelDefs, ModerationOpts } from '../../src'
import { mock as m } from './index'
expect.extend({
toBeModerationResult(
actual: ModerationUI,
expected: ModerationBehaviorResult | undefined,
context: string,
stringifiedResult: string,
ignoreCause = false,
) {
const fail = (msg: string) => ({
pass: false,
message: () => `${msg}. Full result: ${stringifiedResult}`,
})
let cause = actual.cause?.type as string
if (actual.cause?.type === 'label') {
cause = `label:${actual.cause.labelDef.id}`
} else if (actual.cause?.type === 'muted') {
if (actual.cause.source.type === 'list') {
cause = 'muted-by-list'
}
} else if (actual.cause?.type === 'blocking') {
if (actual.cause.source.type === 'list') {
cause = 'blocking-by-list'
}
}
if (!expected) {
if (!ignoreCause && actual.cause) {
return fail(`${context} expected to be a no-op, got ${cause}`)
}
if (actual.alert) {
return fail(`${context} expected to be a no-op, got alert=true`)
}
if (actual.blur) {
return fail(`${context} expected to be a no-op, got blur=true`)
}
if (actual.filter) {
return fail(`${context} expected to be a no-op, got filter=true`)
}
if (actual.noOverride) {
return fail(`${context} expected to be a no-op, got noOverride=true`)
}
} else {
if (!ignoreCause && cause !== expected.cause) {
return fail(`${context} expected to be ${expected.cause}, got ${cause}`)
}
if (!!actual.alert !== !!expected.alert) {
return fail(
`${context} expected to be alert=${expected.alert || false}, got ${
actual.alert || false
}`,
)
}
if (!!actual.blur !== !!expected.blur) {
return fail(
`${context} expected to be blur=${expected.blur || false}, got ${
actual.blur || false
}`,
)
}
if (!!actual.filter !== !!expected.filter) {
return fail(
`${context} expected to be filter=${expected.filter || false}, got ${
actual.filter || false
}`,
)
}
if (!!actual.noOverride !== !!expected.noOverride) {
return fail(
`${context} expected to be noOverride=${
expected.noOverride || false
}, got ${actual.noOverride || false}`,
)
}
}
return { pass: true, message: () => '' }
},
})
export class ModerationBehaviorSuiteRunner {

@@ -87,0 +9,0 @@ constructor(public suite: ModerationBehaviors) {}

{
"extends": "./tsconfig.json",
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
"extends": "../../tsconfig/isomorphic.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"noUnusedLocals": false
},
"include": ["./src"]
}
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist", // Your outDir,
"emitDeclarationOnly": true
},
"include": ["./src"],
"include": [],
"references": [
{ "path": "../xrpc/tsconfig.build.json" },
{ "path": "../lex-cli/tsconfig.build.json" }
{ "path": "./tsconfig.build.json" },
{ "path": "./tsconfig.tests.json" }
]
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc