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

@atproto/api

Package Overview
Dependencies
Maintainers
2
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.0.4 to 0.0.5

dist/client/util.d.ts

3

dist/client/types/app/bsky/actor/getProfile.d.ts
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -38,1 +39,3 @@ export interface QueryParams {

}
export declare function isMyState(v: unknown): v is MyState;
export declare function validateMyState(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -33,2 +34,4 @@ export interface QueryParams {

}
export declare function isActor(v: unknown): v is Actor;
export declare function validateActor(v: unknown): ValidationResult;
export interface MyState {

@@ -38,1 +41,3 @@ follow?: string;

}
export declare function isMyState(v: unknown): v is MyState;
export declare function validateMyState(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Record {

@@ -16,1 +17,3 @@ displayName: string;

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -7,2 +8,4 @@ export interface Main {

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
export interface WithInfo {

@@ -17,2 +20,4 @@ did: string;

}
export declare function isWithInfo(v: unknown): v is WithInfo;
export declare function validateWithInfo(v: unknown): ValidationResult;
export interface ViewerState {

@@ -22,1 +27,3 @@ muted?: boolean;

}
export declare function isViewerState(v: unknown): v is ViewerState;
export declare function validateViewerState(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -33,1 +34,3 @@ export interface QueryParams {

}
export declare function isUser(v: unknown): v is User;
export declare function validateUser(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -29,1 +30,3 @@ export interface QueryParams {

}
export declare function isUser(v: unknown): v is User;
export declare function validateUser(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Main {

@@ -5,2 +6,4 @@ external: External;

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
export interface External {

@@ -17,2 +20,4 @@ uri: string;

}
export declare function isExternal(v: unknown): v is External;
export declare function validateExternal(v: unknown): ValidationResult;
export interface Presented {

@@ -22,2 +27,4 @@ external: PresentedExternal;

}
export declare function isPresented(v: unknown): v is Presented;
export declare function validatePresented(v: unknown): ValidationResult;
export interface PresentedExternal {

@@ -30,1 +37,3 @@ uri: string;

}
export declare function isPresentedExternal(v: unknown): v is PresentedExternal;
export declare function validatePresentedExternal(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Main {

@@ -5,2 +6,4 @@ images: Image[];

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
export interface Image {

@@ -15,2 +18,4 @@ image: {

}
export declare function isImage(v: unknown): v is Image;
export declare function validateImage(v: unknown): ValidationResult;
export interface Presented {

@@ -20,2 +25,4 @@ images: PresentedImage[];

}
export declare function isPresented(v: unknown): v is Presented;
export declare function validatePresented(v: unknown): ValidationResult;
export interface PresentedImage {

@@ -27,1 +34,3 @@ thumb: string;

}
export declare function isPresentedImage(v: unknown): v is PresentedImage;
export declare function validatePresentedImage(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyFeedPost from './post';

@@ -12,2 +13,4 @@ import * as AppBskyActorRef from '../actor/ref';

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
export interface ReplyRef {

@@ -18,2 +21,4 @@ root: AppBskyFeedPost.View;

}
export declare function isReplyRef(v: unknown): v is ReplyRef;
export declare function validateReplyRef(v: unknown): ValidationResult;
export interface ReasonTrend {

@@ -24,2 +29,4 @@ by: AppBskyActorRef.WithInfo;

}
export declare function isReasonTrend(v: unknown): v is ReasonTrend;
export declare function validateReasonTrend(v: unknown): ValidationResult;
export interface ReasonRepost {

@@ -30,1 +37,3 @@ by: AppBskyActorRef.WithInfo;

}
export declare function isReasonRepost(v: unknown): v is ReasonRepost;
export declare function validateReasonRepost(v: unknown): ValidationResult;
import { Headers, XRPCError } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyFeedPost from './post';

@@ -39,2 +40,4 @@ export interface QueryParams {

}
export declare function isThreadViewPost(v: unknown): v is ThreadViewPost;
export declare function validateThreadViewPost(v: unknown): ValidationResult;
export interface NotFoundPost {

@@ -45,1 +48,3 @@ uri: string;

}
export declare function isNotFoundPost(v: unknown): v is NotFoundPost;
export declare function validateNotFoundPost(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -36,1 +37,3 @@ export interface QueryParams {

}
export declare function isRepostedBy(v: unknown): v is RepostedBy;
export declare function validateRepostedBy(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -34,1 +35,3 @@ export interface QueryParams {

}
export declare function isVote(v: unknown): v is Vote;
export declare function validateVote(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyEmbedImages from '../embed/images';

@@ -16,2 +17,4 @@ import * as AppBskyEmbedExternal from '../embed/external';

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;
export interface ReplyRef {

@@ -22,2 +25,4 @@ root: ComAtprotoRepoStrongRef.Main;

}
export declare function isReplyRef(v: unknown): v is ReplyRef;
export declare function validateReplyRef(v: unknown): ValidationResult;
export interface Entity {

@@ -29,2 +34,4 @@ index: TextSlice;

}
export declare function isEntity(v: unknown): v is Entity;
export declare function validateEntity(v: unknown): ValidationResult;
export interface TextSlice {

@@ -35,2 +42,4 @@ start: number;

}
export declare function isTextSlice(v: unknown): v is TextSlice;
export declare function validateTextSlice(v: unknown): ValidationResult;
export interface View {

@@ -53,2 +62,4 @@ uri: string;

}
export declare function isView(v: unknown): v is View;
export declare function validateView(v: unknown): ValidationResult;
export interface ViewerState {

@@ -58,4 +69,5 @@ repost?: string;

downvote?: string;
muted?: boolean;
[k: string]: unknown;
}
export declare function isViewerState(v: unknown): v is ViewerState;
export declare function validateViewerState(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

@@ -7,1 +8,3 @@ export interface Record {

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

@@ -7,1 +8,3 @@ export interface Record {

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';

@@ -8,1 +9,3 @@ export interface Record {

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -8,1 +9,3 @@ export interface Record {

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

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

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -7,1 +8,3 @@ export interface Record {

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -37,2 +38,4 @@ export interface QueryParams {

}
export declare function isAssertion(v: unknown): v is Assertion;
export declare function validateAssertion(v: unknown): ValidationResult;
export interface Confirmation {

@@ -45,1 +48,3 @@ uri: string;

}
export declare function isConfirmation(v: unknown): v is Confirmation;
export declare function validateConfirmation(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -35,1 +36,3 @@ import * as AppBskySystemDeclRef from '../system/declRef';

}
export declare function isFollower(v: unknown): v is Follower;
export declare function validateFollower(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -34,1 +35,3 @@ import * as AppBskySystemDeclRef from '../system/declRef';

}
export declare function isFollow(v: unknown): v is Follow;
export declare function validateFollow(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -34,1 +35,3 @@ import * as AppBskySystemDeclRef from '../system/declRef';

}
export declare function isMember(v: unknown): v is Member;
export declare function validateMember(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -34,1 +35,3 @@ import * as AppBskySystemDeclRef from '../system/declRef';

}
export declare function isMembership(v: unknown): v is Membership;
export declare function validateMembership(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskySystemDeclRef from '../system/declRef';

@@ -30,1 +31,3 @@ export interface QueryParams {

}
export declare function isMute(v: unknown): v is Mute;
export declare function validateMute(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
import * as AppBskyActorRef from '../actor/ref';

@@ -33,1 +34,3 @@ export interface QueryParams {

}
export declare function isNotification(v: unknown): v is Notification;
export declare function validateNotification(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Record {

@@ -5,1 +6,3 @@ actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Main {

@@ -6,1 +7,3 @@ cid: string;

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
export interface QueryParams {

@@ -27,2 +28,4 @@ }

}
export declare function isCreate(v: unknown): v is Create;
export declare function validateCreate(v: unknown): ValidationResult;
export interface Update {

@@ -35,2 +38,4 @@ action: 'update';

}
export declare function isUpdate(v: unknown): v is Update;
export declare function validateUpdate(v: unknown): ValidationResult;
export interface Delete {

@@ -42,1 +47,3 @@ action: 'delete';

}
export declare function isDelete(v: unknown): v is Delete;
export declare function validateDelete(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
export interface QueryParams {

@@ -31,1 +32,3 @@ user: string;

}
export declare function isRecord(v: unknown): v is Record;
export declare function validateRecord(v: unknown): ValidationResult;

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

import { ValidationResult } from '@atproto/lexicon';
export interface Main {

@@ -6,1 +7,3 @@ uri: string;

}
export declare function isMain(v: unknown): v is Main;
export declare function validateMain(v: unknown): ValidationResult;
import { Headers } from '@atproto/xrpc';
import { ValidationResult } from '@atproto/lexicon';
export interface QueryParams {

@@ -25,1 +26,3 @@ }

}
export declare function isLinks(v: unknown): v is Links;
export declare function validateLinks(v: unknown): ValidationResult;

2

package.json
{
"name": "@atproto/api",
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "scripts": {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -7,0 +10,0 @@

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -53,1 +56,13 @@

}
export function isMyState(v: unknown): v is MyState {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.getProfile#myState'
)
}
export function validateMyState(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.getProfile#myState', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -49,2 +52,14 @@

export function isActor(v: unknown): v is Actor {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.getSuggestions#actor'
)
}
export function validateActor(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.getSuggestions#actor', v)
}
export interface MyState {

@@ -54,1 +69,13 @@ follow?: string

}
export function isMyState(v: unknown): v is MyState {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.getSuggestions#myState'
)
}
export function validateMyState(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.getSuggestions#myState', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
export interface Record {

@@ -11,1 +15,14 @@ displayName: string

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.actor.profile#main' ||
v.$type === 'app.bsky.actor.profile')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.profile#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -12,2 +15,14 @@

export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.actor.ref#main' || v.$type === 'app.bsky.actor.ref')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.ref#main', v)
}
export interface WithInfo {

@@ -23,2 +38,12 @@ did: string

export function isWithInfo(v: unknown): v is WithInfo {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.actor.ref#withInfo'
)
}
export function validateWithInfo(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.ref#withInfo', v)
}
export interface ViewerState {

@@ -28,1 +53,13 @@ muted?: boolean

}
export function isViewerState(v: unknown): v is ViewerState {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.ref#viewerState'
)
}
export function validateViewerState(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.ref#viewerState', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -48,1 +51,11 @@

}
export function isUser(v: unknown): v is User {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.actor.search#user'
)
}
export function validateUser(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.search#user', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -44,1 +47,13 @@

}
export function isUser(v: unknown): v is User {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.actor.searchTypeahead#user'
)
}
export function validateUser(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.actor.searchTypeahead#user', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
export interface Main {

@@ -9,2 +13,15 @@ external: External

export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.embed.external#main' ||
v.$type === 'app.bsky.embed.external')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.external#main', v)
}
export interface External {

@@ -18,2 +35,14 @@ uri: string

export function isExternal(v: unknown): v is External {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.external#external'
)
}
export function validateExternal(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.external#external', v)
}
export interface Presented {

@@ -24,2 +53,14 @@ external: PresentedExternal

export function isPresented(v: unknown): v is Presented {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.external#presented'
)
}
export function validatePresented(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.external#presented', v)
}
export interface PresentedExternal {

@@ -32,1 +73,13 @@ uri: string

}
export function isPresentedExternal(v: unknown): v is PresentedExternal {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.external#presentedExternal'
)
}
export function validatePresentedExternal(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.external#presentedExternal', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
export interface Main {

@@ -9,2 +13,15 @@ images: Image[]

export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.embed.images#main' ||
v.$type === 'app.bsky.embed.images')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.images#main', v)
}
export interface Image {

@@ -16,2 +33,12 @@ image: { cid: string; mimeType: string; [k: string]: unknown }

export function isImage(v: unknown): v is Image {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.images#image'
)
}
export function validateImage(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.images#image', v)
}
export interface Presented {

@@ -22,2 +49,14 @@ images: PresentedImage[]

export function isPresented(v: unknown): v is Presented {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.images#presented'
)
}
export function validatePresented(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.images#presented', v)
}
export interface PresentedImage {

@@ -29,1 +68,13 @@ thumb: string

}
export function isPresentedImage(v: unknown): v is PresentedImage {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.embed.images#presentedImage'
)
}
export function validatePresentedImage(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.embed.images#presentedImage', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyFeedPost from './post'

@@ -14,2 +17,15 @@ import * as AppBskyActorRef from '../actor/ref'

export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.feed.feedViewPost#main' ||
v.$type === 'app.bsky.feed.feedViewPost')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.feedViewPost#main', v)
}
export interface ReplyRef {

@@ -21,2 +37,14 @@ root: AppBskyFeedPost.View

export function isReplyRef(v: unknown): v is ReplyRef {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.feedViewPost#replyRef'
)
}
export function validateReplyRef(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.feedViewPost#replyRef', v)
}
export interface ReasonTrend {

@@ -28,2 +56,14 @@ by: AppBskyActorRef.WithInfo

export function isReasonTrend(v: unknown): v is ReasonTrend {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.feedViewPost#reasonTrend'
)
}
export function validateReasonTrend(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.feedViewPost#reasonTrend', v)
}
export interface ReasonRepost {

@@ -34,1 +74,13 @@ by: AppBskyActorRef.WithInfo

}
export function isReasonRepost(v: unknown): v is ReasonRepost {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.feedViewPost#reasonRepost'
)
}
export function validateReasonRepost(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.feedViewPost#reasonRepost', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyFeedFeedViewPost from './feedViewPost'

@@ -7,0 +10,0 @@

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyFeedPost from './post'

@@ -60,2 +63,14 @@

export function isThreadViewPost(v: unknown): v is ThreadViewPost {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.getPostThread#threadViewPost'
)
}
export function validateThreadViewPost(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.getPostThread#threadViewPost', v)
}
export interface NotFoundPost {

@@ -66,1 +81,13 @@ uri: string

}
export function isNotFoundPost(v: unknown): v is NotFoundPost {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.getPostThread#notFoundPost'
)
}
export function validateNotFoundPost(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.getPostThread#notFoundPost', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -51,1 +54,13 @@

}
export function isRepostedBy(v: unknown): v is RepostedBy {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.getRepostedBy#repostedBy'
)
}
export function validateRepostedBy(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.getRepostedBy#repostedBy', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyFeedFeedViewPost from './feedViewPost'

@@ -7,0 +10,0 @@

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -49,1 +52,11 @@

}
export function isVote(v: unknown): v is Vote {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.getVotes#vote'
)
}
export function validateVote(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.getVotes#vote', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyEmbedImages from '../embed/images'

@@ -21,2 +24,14 @@ import * as AppBskyEmbedExternal from '../embed/external'

export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.feed.post#main' || v.$type === 'app.bsky.feed.post')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#main', v)
}
export interface ReplyRef {

@@ -28,2 +43,12 @@ root: ComAtprotoRepoStrongRef.Main

export function isReplyRef(v: unknown): v is ReplyRef {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.post#replyRef'
)
}
export function validateReplyRef(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#replyRef', v)
}
export interface Entity {

@@ -37,2 +62,12 @@ index: TextSlice

export function isEntity(v: unknown): v is Entity {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.post#entity'
)
}
export function validateEntity(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#entity', v)
}
/** A text segment. Start is inclusive, end is exclusive. */

@@ -45,2 +80,14 @@ export interface TextSlice {

export function isTextSlice(v: unknown): v is TextSlice {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.post#textSlice'
)
}
export function validateTextSlice(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#textSlice', v)
}
export interface View {

@@ -64,2 +111,12 @@ uri: string

export function isView(v: unknown): v is View {
return (
isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.post#view'
)
}
export function validateView(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#view', v)
}
export interface ViewerState {

@@ -69,4 +126,15 @@ repost?: string

downvote?: string
muted?: boolean
[k: string]: unknown
}
export function isViewerState(v: unknown): v is ViewerState {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.feed.post#viewerState'
)
}
export function validateViewerState(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.post#viewerState', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'

@@ -11,1 +14,14 @@

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.feed.repost#main' ||
v.$type === 'app.bsky.feed.repost')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.repost#main', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'

@@ -7,0 +10,0 @@

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'

@@ -11,1 +14,14 @@

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.feed.trend#main' ||
v.$type === 'app.bsky.feed.trend')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.trend#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'

@@ -12,1 +15,13 @@

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.feed.vote#main' || v.$type === 'app.bsky.feed.vote')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.feed.vote#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
/** Assertion type: Creator. Defined for app.bsky.graph.assertions's assertion. */
export const MAIN = 'app.bsky.graph.assertCreator#main'
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -12,1 +15,14 @@

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.graph.assertion#main' ||
v.$type === 'app.bsky.graph.assertion')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.assertion#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
/** Assertion type: Member. Defined for app.bsky.graph.assertions's assertion. */
export const MAIN = 'app.bsky.graph.assertMember#main'
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -13,1 +16,14 @@ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.graph.confirmation#main' ||
v.$type === 'app.bsky.graph.confirmation')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.confirmation#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -11,1 +14,14 @@

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.graph.follow#main' ||
v.$type === 'app.bsky.graph.follow')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.follow#main', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -53,2 +56,14 @@

export function isAssertion(v: unknown): v is Assertion {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getAssertions#assertion'
)
}
export function validateAssertion(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getAssertions#assertion', v)
}
export interface Confirmation {

@@ -61,1 +76,13 @@ uri: string

}
export function isConfirmation(v: unknown): v is Confirmation {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getAssertions#confirmation'
)
}
export function validateConfirmation(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getAssertions#confirmation', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -50,1 +53,13 @@ import * as AppBskySystemDeclRef from '../system/declRef'

}
export function isFollower(v: unknown): v is Follower {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getFollowers#follower'
)
}
export function validateFollower(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getFollowers#follower', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -49,1 +52,13 @@ import * as AppBskySystemDeclRef from '../system/declRef'

}
export function isFollow(v: unknown): v is Follow {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getFollows#follow'
)
}
export function validateFollow(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getFollows#follow', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -49,1 +52,13 @@ import * as AppBskySystemDeclRef from '../system/declRef'

}
export function isMember(v: unknown): v is Member {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getMembers#member'
)
}
export function validateMember(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getMembers#member', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -49,1 +52,13 @@ import * as AppBskySystemDeclRef from '../system/declRef'

}
export function isMembership(v: unknown): v is Membership {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getMemberships#membership'
)
}
export function validateMembership(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getMemberships#membership', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskySystemDeclRef from '../system/declRef'

@@ -45,1 +48,13 @@

}
export function isMute(v: unknown): v is Mute {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.graph.getMutes#mute'
)
}
export function validateMute(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.graph.getMutes#mute', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
import * as AppBskyActorRef from '../actor/ref'

@@ -57,1 +60,13 @@

}
export function isNotification(v: unknown): v is Notification {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'app.bsky.notification.list#notification'
)
}
export function validateNotification(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.notification.list#notification', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
/** Actor type: Scene. Defined for app.bsky.system.declaration's actorType. */
export const MAIN = 'app.bsky.system.actorScene#main'
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
/** Actor type: User. Defined for app.bsky.system.declaration's actorType. */
export const MAIN = 'app.bsky.system.actorUser#main'
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
export interface Record {

@@ -11,1 +15,14 @@ actorType:

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.system.declaration#main' ||
v.$type === 'app.bsky.system.declaration')
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.system.declaration#main', v)
}
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
/** A reference to a app.bsky.system.declaration record. */

@@ -13,1 +17,14 @@ export interface Main {

}
export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'app.bsky.system.declRef#main' ||
v.$type === 'app.bsky.system.declRef')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('app.bsky.system.declRef#main', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -43,2 +46,14 @@ export interface QueryParams {}

export function isCreate(v: unknown): v is Create {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'com.atproto.repo.batchWrite#create'
)
}
export function validateCreate(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.repo.batchWrite#create', v)
}
export interface Update {

@@ -52,2 +67,14 @@ action: 'update'

export function isUpdate(v: unknown): v is Update {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'com.atproto.repo.batchWrite#update'
)
}
export function validateUpdate(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.repo.batchWrite#update', v)
}
export interface Delete {

@@ -59,1 +86,13 @@ action: 'delete'

}
export function isDelete(v: unknown): v is Delete {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'com.atproto.repo.batchWrite#delete'
)
}
export function validateDelete(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.repo.batchWrite#delete', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -52,1 +55,13 @@ export interface QueryParams {

}
export function isRecord(v: unknown): v is Record {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'com.atproto.repo.listRecords#record'
)
}
export function validateRecord(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.repo.listRecords#record', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

/**
* GENERATED CODE - DO NOT MODIFY
*/
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
export interface Main {

@@ -9,1 +13,14 @@ uri: string

}
export function isMain(v: unknown): v is Main {
return (
isObj(v) &&
hasProp(v, '$type') &&
(v.$type === 'com.atproto.repo.strongRef#main' ||
v.$type === 'com.atproto.repo.strongRef')
)
}
export function validateMain(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.repo.strongRef#main', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -39,1 +42,13 @@ export interface QueryParams {}

}
export function isLinks(v: unknown): v is Links {
return (
isObj(v) &&
hasProp(v, '$type') &&
v.$type === 'com.atproto.server.getAccountsConfig#links'
)
}
export function validateLinks(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.server.getAccountsConfig#links', v)
}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {}

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

import { Headers, XRPCError } from '@atproto/xrpc'
import { ValidationResult } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'

@@ -7,0 +10,0 @@ export interface QueryParams {

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

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