Update API build

zio/stable
Paul Frazee 2022-12-06 11:39:30 -06:00
parent 84a60592a8
commit 5c1519b9ee
65 changed files with 4234 additions and 12028 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,6 @@ import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'; import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'; import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'; import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
import * as AppBskyFeedMediaEmbed from './types/app/bsky/feed/mediaEmbed';
import * as AppBskyFeedPost from './types/app/bsky/feed/post'; import * as AppBskyFeedPost from './types/app/bsky/feed/post';
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'; import * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'; import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
@ -65,6 +64,7 @@ export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe';
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'; export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'; export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'; export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef';
export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'; export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig';
export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'; export * as ComAtprotoSessionCreate from './types/com/atproto/session/create';
export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'; export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete';
@ -77,20 +77,23 @@ export * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene';
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'; export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'; export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
export * as AppBskyActorProfile from './types/app/bsky/actor/profile'; export * as AppBskyActorProfile from './types/app/bsky/actor/profile';
export * as AppBskyActorRef from './types/app/bsky/actor/ref';
export * as AppBskyActorSearch from './types/app/bsky/actor/search'; export * as AppBskyActorSearch from './types/app/bsky/actor/search';
export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'; export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead';
export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'; export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile';
export * as AppBskyFeedEmbed from './types/app/bsky/feed/embed';
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'; export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'; export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'; export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'; export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'; export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
export * as AppBskyFeedMediaEmbed from './types/app/bsky/feed/mediaEmbed';
export * as AppBskyFeedPost from './types/app/bsky/feed/post'; export * as AppBskyFeedPost from './types/app/bsky/feed/post';
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'; export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'; export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
export * as AppBskyFeedTrend from './types/app/bsky/feed/trend'; export * as AppBskyFeedTrend from './types/app/bsky/feed/trend';
export * as AppBskyFeedVote from './types/app/bsky/feed/vote'; export * as AppBskyFeedVote from './types/app/bsky/feed/vote';
export * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator';
export * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember';
export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'; export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion';
export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'; export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation';
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'; export * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
@ -102,6 +105,9 @@ export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMembershi
export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'; export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount';
export * as AppBskyNotificationList from './types/app/bsky/notification/list'; export * as AppBskyNotificationList from './types/app/bsky/notification/list';
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'; export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
export * as AppBskySystemActorScene from './types/app/bsky/system/actorScene';
export * as AppBskySystemActorUser from './types/app/bsky/system/actorUser';
export * as AppBskySystemDeclRef from './types/app/bsky/system/declRef';
export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'; export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration';
export declare const APP_BSKY_GRAPH: { export declare const APP_BSKY_GRAPH: {
AssertCreator: string; AssertCreator: string;
@ -235,7 +241,6 @@ export declare class ProfileRecord {
} }
export declare class FeedNS { export declare class FeedNS {
_service: ServiceClient; _service: ServiceClient;
mediaEmbed: MediaEmbedRecord;
post: PostRecord; post: PostRecord;
repost: RepostRecord; repost: RepostRecord;
trend: TrendRecord; trend: TrendRecord;
@ -248,27 +253,6 @@ export declare class FeedNS {
getVotes(params?: AppBskyFeedGetVotes.QueryParams, opts?: AppBskyFeedGetVotes.CallOptions): Promise<AppBskyFeedGetVotes.Response>; getVotes(params?: AppBskyFeedGetVotes.QueryParams, opts?: AppBskyFeedGetVotes.CallOptions): Promise<AppBskyFeedGetVotes.Response>;
setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>; setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>;
} }
export declare class MediaEmbedRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFeedMediaEmbed.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFeedMediaEmbed.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedMediaEmbed.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class PostRecord { export declare class PostRecord {
_service: ServiceClient; _service: ServiceClient;
constructor(service: ServiceClient); constructor(service: ServiceClient);

View File

@ -0,0 +1,63 @@
import { LexiconDoc } from '@atproto/lexicon';
export declare const lexicons: LexiconDoc[];
export declare const ids: {
ComAtprotoAccountCreate: string;
ComAtprotoAccountCreateInviteCode: string;
ComAtprotoAccountDelete: string;
ComAtprotoAccountGet: string;
ComAtprotoAccountRequestPasswordReset: string;
ComAtprotoAccountResetPassword: string;
ComAtprotoHandleResolve: string;
ComAtprotoRepoBatchWrite: string;
ComAtprotoRepoCreateRecord: string;
ComAtprotoRepoDeleteRecord: string;
ComAtprotoRepoDescribe: string;
ComAtprotoRepoGetRecord: string;
ComAtprotoRepoListRecords: string;
ComAtprotoRepoPutRecord: string;
ComAtprotoRepoStrongRef: string;
ComAtprotoServerGetAccountsConfig: string;
ComAtprotoSessionCreate: string;
ComAtprotoSessionDelete: string;
ComAtprotoSessionGet: string;
ComAtprotoSessionRefresh: string;
ComAtprotoSyncGetRepo: string;
ComAtprotoSyncGetRoot: string;
ComAtprotoSyncUpdateRepo: string;
AppBskyActorCreateScene: string;
AppBskyActorGetProfile: string;
AppBskyActorGetSuggestions: string;
AppBskyActorProfile: string;
AppBskyActorRef: string;
AppBskyActorSearch: string;
AppBskyActorSearchTypeahead: string;
AppBskyActorUpdateProfile: string;
AppBskyFeedEmbed: string;
AppBskyFeedGetAuthorFeed: string;
AppBskyFeedGetPostThread: string;
AppBskyFeedGetRepostedBy: string;
AppBskyFeedGetTimeline: string;
AppBskyFeedGetVotes: string;
AppBskyFeedPost: string;
AppBskyFeedRepost: string;
AppBskyFeedSetVote: string;
AppBskyFeedTrend: string;
AppBskyFeedVote: string;
AppBskyGraphAssertCreator: string;
AppBskyGraphAssertMember: string;
AppBskyGraphAssertion: string;
AppBskyGraphConfirmation: string;
AppBskyGraphFollow: string;
AppBskyGraphGetAssertions: string;
AppBskyGraphGetFollowers: string;
AppBskyGraphGetFollows: string;
AppBskyGraphGetMembers: string;
AppBskyGraphGetMemberships: string;
AppBskyNotificationGetCount: string;
AppBskyNotificationList: string;
AppBskyNotificationUpdateSeen: string;
AppBskySystemActorScene: string;
AppBskySystemActorUser: string;
AppBskySystemDeclRef: string;
AppBskySystemDeclaration: string;
};

View File

@ -1,26 +1,23 @@
import { Headers, XRPCError } from '@atproto/xrpc'; import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
handle: string;
recoveryKey?: string;
[k: string]: unknown;
}
export interface OutputSchema {
handle: string;
did: string;
declaration: AppBskySystemDeclRef.Main;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
handle: string;
recoveryKey?: string;
}
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
handle: string;
did: string;
declaration: Declaration;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

View File

@ -1,16 +1,12 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
actor: string; actor: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
did: string; did: string;
declaration: Declaration; declaration: AppBskySystemDeclRef.Main;
handle: string; handle: string;
creator: string; creator: string;
displayName?: string; displayName?: string;
@ -19,14 +15,11 @@ export interface OutputSchema {
followsCount: number; followsCount: number;
membersCount: number; membersCount: number;
postsCount: number; postsCount: number;
myState?: { myState?: MyState;
follow?: string; [k: string]: unknown;
member?: string;
};
} }
export interface Declaration { export interface CallOptions {
cid: string; headers?: Headers;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -34,3 +27,8 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface MyState {
follow?: string;
member?: string;
[k: string]: unknown;
}

View File

@ -1,31 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
limit?: number; limit?: number;
cursor?: string; cursor?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
actors: { actors: Actor[];
did: string; [k: string]: unknown;
declaration: Declaration;
handle: string;
displayName?: string;
description?: string;
indexedAt?: string;
myState?: {
follow?: string;
};
}[];
} }
export interface Declaration { export interface CallOptions {
cid: string; headers?: Headers;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -33,3 +19,17 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Actor {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
description?: string;
indexedAt?: string;
myState?: MyState;
[k: string]: unknown;
}
export interface MyState {
follow?: string;
[k: string]: unknown;
}

View File

@ -0,0 +1,13 @@
import * as AppBskySystemDeclRef from '../system/declRef';
export interface Main {
did: string;
declarationCid: string;
[k: string]: unknown;
}
export interface WithInfo {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
[k: string]: unknown;
}

View File

@ -1,29 +1,18 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
term: string; term: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
users: { users: User[];
did: string; [k: string]: unknown;
declaration: Declaration;
handle: string;
displayName?: string;
description?: string;
indexedAt?: string;
}[];
} }
export interface Declaration { export interface CallOptions {
cid: string; headers?: Headers;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -31,3 +20,12 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface User {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
description?: string;
indexedAt?: string;
[k: string]: unknown;
}

View File

@ -1,29 +1,27 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
term: string; term: string;
limit?: number; limit?: number;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
users: User[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
users: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
}[];
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface User {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
[k: string]: unknown;
}

View File

@ -1,20 +1,22 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface InputSchema { export interface InputSchema {
did?: string; did?: string;
displayName?: string; displayName?: string;
description?: string; description?: string;
[k: string]: unknown;
} }
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid: string; cid: string;
record: {}; record: {};
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -0,0 +1,57 @@
export interface Record {
text: string;
entities?: Entity[];
reply?: Reply;
createdAt: string;
[k: string]: unknown;
}
export declare const SOMETOKEN = "app.bsky.feed.debug#someToken";
export declare type Unknown = {};
export declare type Boolean = boolean;
export declare type Number = number;
export declare type Integer = number;
export declare type String = string;
export declare type Blob = {
cid: string;
mimeType: string;
[k: string]: unknown;
};
export declare type Image = {
cid: string;
mimeType: string;
[k: string]: unknown;
};
export declare type Video = {
cid: string;
mimeType: string;
[k: string]: unknown;
};
export declare type Audio = {
cid: string;
mimeType: string;
[k: string]: unknown;
};
export declare type StringArr = string[];
export declare type ReplyArr = Reply[];
export declare type MultiArr = (Reply | PostRef | Entity)[];
export interface Reply {
root: PostRef;
parent: PostRef;
[k: string]: unknown;
}
export interface PostRef {
uri: string;
cid: string;
[k: string]: unknown;
}
export interface Entity {
index: TextSlice;
type: string;
value: string;
[k: string]: unknown;
}
export interface TextSlice {
start: number;
end: number;
[k: string]: unknown;
}

View File

@ -0,0 +1,36 @@
import * as AppBskyActorRef from '../actor/ref';
export interface Main {
items?: (Media | Record | External | {
$type: string;
[k: string]: unknown;
})[];
[k: string]: unknown;
}
export interface Media {
alt?: string;
thumb?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
original: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface Record {
type: 'record';
author: AppBskyActorRef.WithInfo;
record: {};
[k: string]: unknown;
}
export interface External {
type: 'external';
uri: string;
title: string;
description: string;
imageUri: string;
[k: string]: unknown;
}

View File

@ -1,62 +1,19 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskyFeedEmbed from './embed';
export interface QueryParams { export interface QueryParams {
author: string; author: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
feed: FeedItem[]; feed: FeedItem[];
[k: string]: unknown;
} }
export interface FeedItem { export interface CallOptions {
uri: string; headers?: Headers;
cid: string;
author: Actor;
trendedBy?: Actor;
repostedBy?: Actor;
record: {};
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;
replyCount: number;
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: {
repost?: string;
upvote?: string;
downvote?: string;
};
}
export interface Actor {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface RecordEmbed {
type: 'record';
author: Actor;
record: {};
}
export interface ExternalEmbed {
type: 'external';
uri: string;
title: string;
description: string;
imageUri: string;
}
export interface UnknownEmbed {
type: string;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -64,3 +21,25 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface FeedItem {
uri: string;
cid: string;
author: AppBskyActorRef.WithInfo;
trendedBy?: AppBskyActorRef.WithInfo;
repostedBy?: AppBskyActorRef.WithInfo;
record: {};
embed?: AppBskyFeedEmbed.Main;
replyCount: number;
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: MyState;
[k: string]: unknown;
}
export interface MyState {
repost?: string;
upvote?: string;
downvote?: string;
[k: string]: unknown;
}

View File

@ -1,61 +1,21 @@
import { Headers, XRPCError } from '@atproto/xrpc'; import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskyFeedEmbed from './embed';
export interface QueryParams { export interface QueryParams {
uri: string; uri: string;
depth?: number; depth?: number;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
thread: Post | NotFoundPost | {
$type: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
thread: Post;
}
export interface Post {
uri: string;
cid: string;
author: User;
record: {};
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;
parent?: Post;
replyCount: number;
replies?: Post[];
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: {
repost?: string;
upvote?: string;
downvote?: string;
};
}
export interface User {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface RecordEmbed {
type: 'record';
author: User;
record: {};
}
export interface ExternalEmbed {
type: 'external';
uri: string;
title: string;
description: string;
imageUri: string;
}
export interface UnknownEmbed {
type: string;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
@ -65,3 +25,36 @@ export declare class NotFoundError extends XRPCError {
constructor(src: XRPCError); constructor(src: XRPCError);
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Post {
uri: string;
cid: string;
author: AppBskyActorRef.WithInfo;
record: {};
embed?: AppBskyFeedEmbed.Main;
parent?: Post | NotFoundPost | {
$type: string;
[k: string]: unknown;
};
replyCount: number;
replies?: (Post | NotFoundPost | {
$type: string;
[k: string]: unknown;
})[];
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: MyState;
[k: string]: unknown;
}
export interface NotFoundPost {
uri: string;
notFound: true;
[k: string]: unknown;
}
export interface MyState {
repost?: string;
upvote?: string;
downvote?: string;
[k: string]: unknown;
}

View File

@ -1,32 +1,21 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
uri: string; uri: string;
cid?: string; cid?: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid?: string; cid?: string;
cursor?: string; cursor?: string;
repostedBy: { repostedBy: RepostedBy[];
did: string; [k: string]: unknown;
declaration: Declaration;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
} }
export interface Declaration { export interface CallOptions {
cid: string; headers?: Headers;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -34,3 +23,12 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface RepostedBy {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,63 +1,19 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskyFeedEmbed from './embed';
export interface QueryParams { export interface QueryParams {
algorithm?: string; algorithm?: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
feed: FeedItem[]; feed: FeedItem[];
[k: string]: unknown;
} }
export interface FeedItem { export interface CallOptions {
uri: string; headers?: Headers;
cid: string;
author: Actor;
trendedBy?: Actor;
repostedBy?: Actor;
record: {};
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;
replyCount: number;
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: {
repost?: string;
upvote?: string;
downvote?: string;
};
}
export interface Actor {
did: string;
declaration: Declaration;
handle: string;
actorType?: string;
displayName?: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface RecordEmbed {
type: 'record';
author: Actor;
record: {};
}
export interface ExternalEmbed {
type: 'external';
uri: string;
title: string;
description: string;
imageUri: string;
}
export interface UnknownEmbed {
type: string;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -65,3 +21,25 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface FeedItem {
uri: string;
cid: string;
author: AppBskyActorRef.WithInfo;
trendedBy?: AppBskyActorRef.WithInfo;
repostedBy?: AppBskyActorRef.WithInfo;
record: {};
embed?: AppBskyFeedEmbed.Main;
replyCount: number;
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
myState?: MyState;
[k: string]: unknown;
}
export interface MyState {
repost?: string;
upvote?: string;
downvote?: string;
[k: string]: unknown;
}

View File

@ -1,4 +1,5 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams { export interface QueryParams {
uri: string; uri: string;
cid?: string; cid?: string;
@ -6,32 +7,16 @@ export interface QueryParams {
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid?: string; cid?: string;
cursor?: string; cursor?: string;
votes: { votes: Vote[];
direction: 'up' | 'down'; [k: string]: unknown;
indexedAt: string;
createdAt: string;
actor: Actor;
}[];
} }
export interface Actor { export interface CallOptions {
did: string; headers?: Headers;
declaration: Declaration;
handle: string;
displayName?: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -39,3 +24,10 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Vote {
direction: 'up' | 'down';
indexedAt: string;
createdAt: string;
actor: AppBskyActorRef.WithInfo;
[k: string]: unknown;
}

View File

@ -1,15 +1,18 @@
export interface Record { export interface Main {
media: MediaEmbed[]; media: MediaEmbed[];
[k: string]: unknown; [k: string]: unknown;
} }
export interface MediaEmbed { export interface MediaEmbed {
alt?: string; alt?: string;
thumb?: MediaEmbedBlob; thumb?: {
original: MediaEmbedBlob; cid: string;
[k: string]: unknown; mimeType: string;
} [k: string]: unknown;
export interface MediaEmbedBlob { };
mimeType: string; original: {
blobId: string; cid: string;
mimeType: string;
[k: string]: unknown;
};
[k: string]: unknown; [k: string]: unknown;
} }

View File

@ -1,14 +1,16 @@
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface Record { export interface Record {
text: string; text: string;
entities?: Entity[]; entities?: Entity[];
reply?: { reply?: ReplyRef;
root: PostRef;
parent: PostRef;
[k: string]: unknown;
};
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }
export interface ReplyRef {
root: ComAtprotoRepoStrongRef.Main;
parent: ComAtprotoRepoStrongRef.Main;
[k: string]: unknown;
}
export interface Entity { export interface Entity {
index: TextSlice; index: TextSlice;
type: string; type: string;
@ -20,8 +22,3 @@ export interface TextSlice {
end: number; end: number;
[k: string]: unknown; [k: string]: unknown;
} }
export interface PostRef {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

@ -1,10 +1,6 @@
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface Record { export interface Record {
subject: Subject; subject: ComAtprotoRepoStrongRef.Main;
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

@ -1,23 +1,22 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
subject: ComAtprotoRepoStrongRef.Main;
direction: 'up' | 'down' | 'none';
[k: string]: unknown;
}
export interface OutputSchema {
upvote?: string;
downvote?: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
subject: Subject;
direction: 'up' | 'down' | 'none';
}
export interface Subject {
uri: string;
cid: string;
}
export interface OutputSchema {
upvote?: string;
downvote?: string;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

View File

@ -1,10 +1,6 @@
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface Record { export interface Record {
subject: Subject; subject: ComAtprotoRepoStrongRef.Main;
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

@ -1,11 +1,7 @@
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface Record { export interface Record {
subject: Subject; subject: ComAtprotoRepoStrongRef.Main;
direction: 'up' | 'down'; direction: 'up' | 'down';
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

@ -0,0 +1 @@
export declare const MAIN = "app.bsky.graph.assertCreator#main";

View File

@ -0,0 +1 @@
export declare const MAIN = "app.bsky.graph.assertMember#main";

View File

@ -1,10 +1,7 @@
import * as AppBskyActorRef from '../actor/ref';
export interface Record { export interface Record {
assertion: string; assertion: string;
subject: { subject: AppBskyActorRef.Main;
did: string;
declarationCid: string;
[k: string]: unknown;
};
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }

View File

@ -1,14 +1,8 @@
import * as AppBskyActorRef from '../actor/ref';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
export interface Record { export interface Record {
originator: { originator: AppBskyActorRef.Main;
did: string; assertion: ComAtprotoRepoStrongRef.Main;
declarationCid: string;
[k: string]: unknown;
};
assertion: {
uri: string;
cid: string;
[k: string]: unknown;
};
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }

View File

@ -1,9 +1,6 @@
import * as AppBskyActorRef from '../actor/ref';
export interface Record { export interface Record {
subject: { subject: AppBskyActorRef.Main;
did: string;
declarationCid: string;
[k: string]: unknown;
};
createdAt: string; createdAt: string;
[k: string]: unknown; [k: string]: unknown;
} }

View File

@ -1,4 +1,5 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams { export interface QueryParams {
author?: string; author?: string;
subject?: string; subject?: string;
@ -7,40 +8,14 @@ export interface QueryParams {
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
assertions: { assertions: Assertion[];
uri: string; [k: string]: unknown;
cid: string;
assertion: string;
confirmation?: Confirmation;
author: Actor;
subject: Actor;
indexedAt: string;
createdAt: string;
}[];
} }
export interface Confirmation { export interface CallOptions {
uri: string; headers?: Headers;
cid: string;
indexedAt: string;
createdAt: string;
}
export interface Actor {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -48,3 +23,21 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Assertion {
uri: string;
cid: string;
assertion: string;
confirmation?: Confirmation;
author: AppBskyActorRef.WithInfo;
subject: AppBskyActorRef.WithInfo;
indexedAt: string;
createdAt: string;
[k: string]: unknown;
}
export interface Confirmation {
uri: string;
cid: string;
indexedAt: string;
createdAt: string;
[k: string]: unknown;
}

View File

@ -1,39 +1,39 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
user: string; user: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: Subject;
cursor?: string;
followers: Follower[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
subject: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
};
cursor?: string;
followers: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Subject {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
[k: string]: unknown;
}
export interface Follower {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,39 +1,33 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
user: string; user: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
follows: Follow[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
subject: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
};
cursor?: string;
follows: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Follow {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,39 +1,33 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
actor: string; actor: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
members: Member[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
subject: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
};
cursor?: string;
members: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Member {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,39 +1,33 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams { export interface QueryParams {
actor: string; actor: string;
limit?: number; limit?: number;
before?: string; before?: string;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
memberships: Membership[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema {
subject: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
};
cursor?: string;
memberships: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Membership {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,12 +1,13 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
count: number; count: number;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,36 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams { export interface QueryParams {
limit?: number; limit?: number;
before?: string; before?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
notifications: Notification[]; notifications: Notification[];
[k: string]: unknown;
} }
export interface Notification { export interface CallOptions {
uri: string; headers?: Headers;
cid: string;
author: {
did: string;
declaration: Declaration;
handle: string;
displayName?: string;
};
reason: string;
reasonSubject?: string;
record: {};
isRead: boolean;
indexedAt: string;
}
export interface Declaration {
cid: string;
actorType: ActorKnown | ActorUnknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -38,3 +19,14 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Notification {
uri: string;
cid: string;
author: AppBskyActorRef.WithInfo;
reason: 'vote' | 'repost' | 'trend' | 'follow' | 'invite' | 'mention' | 'reply' | (string & {});
reasonSubject?: string;
record: {};
isRead: boolean;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,20 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
seenAt: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
seenAt: string;
}
export interface OutputSchema {
[k: string]: unknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;

View File

@ -0,0 +1 @@
export declare const MAIN = "app.bsky.system.actorScene#main";

View File

@ -0,0 +1 @@
export declare const MAIN = "app.bsky.system.actorUser#main";

View File

@ -0,0 +1,5 @@
export interface Main {
cid: string;
actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
[k: string]: unknown;
}

View File

@ -1,6 +1,4 @@
export declare type ActorKnown = 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene';
export declare type ActorUnknown = string;
export interface Record { export interface Record {
actorType: ActorKnown | ActorUnknown; actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
[k: string]: unknown; [k: string]: unknown;
} }

View File

@ -1,23 +1,25 @@
import { Headers, XRPCError } from '@atproto/xrpc'; import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface InputSchema { export interface InputSchema {
email: string; email: string;
handle: string; handle: string;
inviteCode?: string; inviteCode?: string;
password: string; password: string;
recoveryKey?: string; recoveryKey?: string;
[k: string]: unknown;
} }
export interface OutputSchema { export interface OutputSchema {
accessJwt: string; accessJwt: string;
refreshJwt: string; refreshJwt: string;
handle: string; handle: string;
did: string; did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,17 +1,19 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
useCount: number;
[k: string]: unknown;
}
export interface OutputSchema {
code: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
useCount: number;
}
export interface OutputSchema {
code: string;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

View File

@ -1,20 +1,13 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export declare type InputSchema = undefined;
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: '';
}
export interface InputSchema {
[k: string]: unknown;
}
export interface OutputSchema {
[k: string]: unknown;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;

View File

@ -1,16 +1,12 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export declare type InputSchema = undefined;
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
[k: string]: unknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;

View File

@ -1,19 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
email: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
email: string;
}
export interface OutputSchema {
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;

View File

@ -1,21 +1,19 @@
import { Headers, XRPCError } from '@atproto/xrpc'; import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
token: string;
password: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
token: string;
password: string;
}
export interface OutputSchema {
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare class ExpiredTokenError extends XRPCError { export declare class ExpiredTokenError extends XRPCError {
constructor(src: XRPCError); constructor(src: XRPCError);

View File

@ -2,12 +2,13 @@ import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
handle?: string; handle?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
did: string; did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,36 +1,39 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
did: string;
validate?: boolean;
writes: (Create | Update | Delete)[];
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
did: string;
validate?: boolean;
writes: ({
action: 'create';
collection: string;
rkey?: string;
value: unknown;
} | {
action: 'update';
collection: string;
rkey: string;
value: unknown;
} | {
action: 'delete';
collection: string;
rkey: string;
})[];
}
export interface OutputSchema {
[k: string]: unknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Create {
action: 'create';
collection: string;
rkey?: string;
value: {};
[k: string]: unknown;
}
export interface Update {
action: 'update';
collection: string;
rkey: string;
value: {};
[k: string]: unknown;
}
export interface Delete {
action: 'delete';
collection: string;
rkey: string;
[k: string]: unknown;
}

View File

@ -1,20 +1,22 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface InputSchema { export interface InputSchema {
did: string; did: string;
collection: string; collection: string;
validate?: boolean; validate?: boolean;
record: {}; record: {};
[k: string]: unknown;
} }
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid: string; cid: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,16 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface InputSchema {
did: string;
collection: string;
rkey: string;
[k: string]: unknown;
}
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/json'; encoding: 'application/json';
} }
export interface InputSchema {
did: string;
collection: string;
rkey: string;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

View File

@ -2,9 +2,6 @@ import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
user: string; user: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
handle: string; handle: string;
@ -12,6 +9,10 @@ export interface OutputSchema {
didDoc: {}; didDoc: {};
collections: string[]; collections: string[];
handleIsCorrect: boolean; handleIsCorrect: boolean;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -5,14 +5,15 @@ export interface QueryParams {
rkey: string; rkey: string;
cid?: string; cid?: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid?: string; cid?: string;
value: {}; value: {};
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -7,17 +7,14 @@ export interface QueryParams {
after?: string; after?: string;
reverse?: boolean; reverse?: boolean;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
cursor?: string; cursor?: string;
records: { records: Record[];
uri: string; [k: string]: unknown;
cid: string; }
value: {}; export interface CallOptions {
}[]; headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -25,3 +22,9 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Record {
uri: string;
cid: string;
value: {};
[k: string]: unknown;
}

View File

@ -1,21 +1,23 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface InputSchema { export interface InputSchema {
did: string; did: string;
collection: string; collection: string;
rkey: string; rkey: string;
validate?: boolean; validate?: boolean;
record: {}; record: {};
[k: string]: unknown;
} }
export interface OutputSchema { export interface OutputSchema {
uri: string; uri: string;
cid: string; cid: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -0,0 +1,5 @@
export interface Main {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

@ -1,13 +1,15 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
inviteCodeRequired?: boolean; inviteCodeRequired?: boolean;
availableUserDomains: string[]; availableUserDomains: string[];
links?: Links;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;
@ -15,3 +17,8 @@ export interface Response {
data: OutputSchema; data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;
export interface Links {
privacyPolicy?: string;
termsOfService?: string;
[k: string]: unknown;
}

View File

@ -1,20 +1,22 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface InputSchema { export interface InputSchema {
handle: string; handle: string;
password: string; password: string;
[k: string]: unknown;
} }
export interface OutputSchema { export interface OutputSchema {
accessJwt: string; accessJwt: string;
refreshJwt: string; refreshJwt: string;
handle: string; handle: string;
did: string; did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,17 +1,13 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export declare type InputSchema = undefined;
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
} }
export declare type InputSchema = undefined;
export interface OutputSchema {
[k: string]: unknown;
}
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;
data: OutputSchema;
} }
export declare function toKnownErr(e: any): any; export declare function toKnownErr(e: any): any;

View File

@ -1,13 +1,14 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
handle: string; handle: string;
did: string; did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -1,16 +1,17 @@
import { Headers } from '@atproto/xrpc'; import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
} }
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
accessJwt: string; accessJwt: string;
refreshJwt: string; refreshJwt: string;
handle: string; handle: string;
did: string; did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -3,10 +3,10 @@ export interface QueryParams {
did: string; did: string;
from?: string; from?: string;
} }
export declare type InputSchema = undefined;
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
} }
export declare type InputSchema = undefined;
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

View File

@ -2,12 +2,13 @@ import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
did: string; did: string;
} }
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined; export declare type InputSchema = undefined;
export interface OutputSchema { export interface OutputSchema {
root: string; root: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
} }
export interface Response { export interface Response {
success: boolean; success: boolean;

View File

@ -2,12 +2,12 @@ import { Headers } from '@atproto/xrpc';
export interface QueryParams { export interface QueryParams {
did: string; did: string;
} }
export declare type InputSchema = string | Uint8Array;
export interface CallOptions { export interface CallOptions {
headers?: Headers; headers?: Headers;
qp?: QueryParams; qp?: QueryParams;
encoding: 'application/cbor'; encoding: 'application/cbor';
} }
export declare type InputSchema = string | Uint8Array;
export interface Response { export interface Response {
success: boolean; success: boolean;
headers: Headers; headers: Headers;

File diff suppressed because one or more lines are too long