Update to latest APIs

This commit is contained in:
Paul Frazee 2022-10-26 14:34:47 -05:00
parent 349cfe7177
commit 1983512fef
74 changed files with 2334 additions and 525 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@adxp/xrpc';
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
import * as ComAtprotoCreateAccount from './types/com/atproto/createAccount';
import * as ComAtprotoCreateInviteCode from './types/com/atproto/createInviteCode';
import * as ComAtprotoCreateSession from './types/com/atproto/createSession';
@ -21,8 +21,11 @@ import * as ComAtprotoSyncGetRepo from './types/com/atproto/syncGetRepo';
import * as ComAtprotoSyncGetRoot from './types/com/atproto/syncGetRoot';
import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/syncUpdateRepo';
import * as AppBskyBadge from './types/app/bsky/badge';
import * as AppBskyBadgeAccept from './types/app/bsky/badgeAccept';
import * as AppBskyBadgeOffer from './types/app/bsky/badgeOffer';
import * as AppBskyFollow from './types/app/bsky/follow';
import * as AppBskyGetAuthorFeed from './types/app/bsky/getAuthorFeed';
import * as AppBskyGetBadgeMembers from './types/app/bsky/getBadgeMembers';
import * as AppBskyGetHomeFeed from './types/app/bsky/getHomeFeed';
import * as AppBskyGetLikedBy from './types/app/bsky/getLikedBy';
import * as AppBskyGetNotificationCount from './types/app/bsky/getNotificationCount';
@ -32,12 +35,15 @@ import * as AppBskyGetProfile from './types/app/bsky/getProfile';
import * as AppBskyGetRepostedBy from './types/app/bsky/getRepostedBy';
import * as AppBskyGetUserFollowers from './types/app/bsky/getUserFollowers';
import * as AppBskyGetUserFollows from './types/app/bsky/getUserFollows';
import * as AppBskyGetUsersSearch from './types/app/bsky/getUsersSearch';
import * as AppBskyGetUsersTypeahead from './types/app/bsky/getUsersTypeahead';
import * as AppBskyLike from './types/app/bsky/like';
import * as AppBskyMediaEmbed from './types/app/bsky/mediaEmbed';
import * as AppBskyPost from './types/app/bsky/post';
import * as AppBskyPostNotificationsSeen from './types/app/bsky/postNotificationsSeen';
import * as AppBskyProfile from './types/app/bsky/profile';
import * as AppBskyRepost from './types/app/bsky/repost';
import * as AppBskyUpdateProfile from './types/app/bsky/updateProfile';
export * as ComAtprotoCreateAccount from './types/com/atproto/createAccount';
export * as ComAtprotoCreateInviteCode from './types/com/atproto/createInviteCode';
export * as ComAtprotoCreateSession from './types/com/atproto/createSession';
@ -60,8 +66,11 @@ export * as ComAtprotoSyncGetRepo from './types/com/atproto/syncGetRepo';
export * as ComAtprotoSyncGetRoot from './types/com/atproto/syncGetRoot';
export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/syncUpdateRepo';
export * as AppBskyBadge from './types/app/bsky/badge';
export * as AppBskyBadgeAccept from './types/app/bsky/badgeAccept';
export * as AppBskyBadgeOffer from './types/app/bsky/badgeOffer';
export * as AppBskyFollow from './types/app/bsky/follow';
export * as AppBskyGetAuthorFeed from './types/app/bsky/getAuthorFeed';
export * as AppBskyGetBadgeMembers from './types/app/bsky/getBadgeMembers';
export * as AppBskyGetHomeFeed from './types/app/bsky/getHomeFeed';
export * as AppBskyGetLikedBy from './types/app/bsky/getLikedBy';
export * as AppBskyGetNotificationCount from './types/app/bsky/getNotificationCount';
@ -71,12 +80,15 @@ export * as AppBskyGetProfile from './types/app/bsky/getProfile';
export * as AppBskyGetRepostedBy from './types/app/bsky/getRepostedBy';
export * as AppBskyGetUserFollowers from './types/app/bsky/getUserFollowers';
export * as AppBskyGetUserFollows from './types/app/bsky/getUserFollows';
export * as AppBskyGetUsersSearch from './types/app/bsky/getUsersSearch';
export * as AppBskyGetUsersTypeahead from './types/app/bsky/getUsersTypeahead';
export * as AppBskyLike from './types/app/bsky/like';
export * as AppBskyMediaEmbed from './types/app/bsky/mediaEmbed';
export * as AppBskyPost from './types/app/bsky/post';
export * as AppBskyPostNotificationsSeen from './types/app/bsky/postNotificationsSeen';
export * as AppBskyProfile from './types/app/bsky/profile';
export * as AppBskyRepost from './types/app/bsky/repost';
export * as AppBskyUpdateProfile from './types/app/bsky/updateProfile';
export declare class Client {
xrpc: XrpcClient;
constructor();
@ -130,6 +142,8 @@ export declare class AppNS {
export declare class BskyNS {
_service: ServiceClient;
badge: BadgeRecord;
badgeAccept: BadgeAcceptRecord;
badgeOffer: BadgeOfferRecord;
follow: FollowRecord;
like: LikeRecord;
mediaEmbed: MediaEmbedRecord;
@ -138,6 +152,7 @@ export declare class BskyNS {
repost: RepostRecord;
constructor(service: ServiceClient);
getAuthorFeed(params: AppBskyGetAuthorFeed.QueryParams, data?: AppBskyGetAuthorFeed.InputSchema, opts?: AppBskyGetAuthorFeed.CallOptions): Promise<AppBskyGetAuthorFeed.Response>;
getBadgeMembers(params: AppBskyGetBadgeMembers.QueryParams, data?: AppBskyGetBadgeMembers.InputSchema, opts?: AppBskyGetBadgeMembers.CallOptions): Promise<AppBskyGetBadgeMembers.Response>;
getHomeFeed(params: AppBskyGetHomeFeed.QueryParams, data?: AppBskyGetHomeFeed.InputSchema, opts?: AppBskyGetHomeFeed.CallOptions): Promise<AppBskyGetHomeFeed.Response>;
getLikedBy(params: AppBskyGetLikedBy.QueryParams, data?: AppBskyGetLikedBy.InputSchema, opts?: AppBskyGetLikedBy.CallOptions): Promise<AppBskyGetLikedBy.Response>;
getNotificationCount(params: AppBskyGetNotificationCount.QueryParams, data?: AppBskyGetNotificationCount.InputSchema, opts?: AppBskyGetNotificationCount.CallOptions): Promise<AppBskyGetNotificationCount.Response>;
@ -147,152 +162,197 @@ export declare class BskyNS {
getRepostedBy(params: AppBskyGetRepostedBy.QueryParams, data?: AppBskyGetRepostedBy.InputSchema, opts?: AppBskyGetRepostedBy.CallOptions): Promise<AppBskyGetRepostedBy.Response>;
getUserFollowers(params: AppBskyGetUserFollowers.QueryParams, data?: AppBskyGetUserFollowers.InputSchema, opts?: AppBskyGetUserFollowers.CallOptions): Promise<AppBskyGetUserFollowers.Response>;
getUserFollows(params: AppBskyGetUserFollows.QueryParams, data?: AppBskyGetUserFollows.InputSchema, opts?: AppBskyGetUserFollows.CallOptions): Promise<AppBskyGetUserFollows.Response>;
getUsersSearch(params: AppBskyGetUsersSearch.QueryParams, data?: AppBskyGetUsersSearch.InputSchema, opts?: AppBskyGetUsersSearch.CallOptions): Promise<AppBskyGetUsersSearch.Response>;
getUsersTypeahead(params: AppBskyGetUsersTypeahead.QueryParams, data?: AppBskyGetUsersTypeahead.InputSchema, opts?: AppBskyGetUsersTypeahead.CallOptions): Promise<AppBskyGetUsersTypeahead.Response>;
postNotificationsSeen(params: AppBskyPostNotificationsSeen.QueryParams, data?: AppBskyPostNotificationsSeen.InputSchema, opts?: AppBskyPostNotificationsSeen.CallOptions): Promise<AppBskyPostNotificationsSeen.Response>;
updateProfile(params: AppBskyUpdateProfile.QueryParams, data?: AppBskyUpdateProfile.InputSchema, opts?: AppBskyUpdateProfile.CallOptions): Promise<AppBskyUpdateProfile.Response>;
}
export declare class BadgeRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyBadge.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyBadge.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyBadge.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyBadge.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyBadge.Record, headers?: Record<string, string>): Promise<{
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class BadgeAcceptRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyBadgeAccept.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyBadgeAccept.Record;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyBadgeAccept.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class BadgeOfferRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyBadgeOffer.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyBadgeOffer.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyBadgeOffer.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class FollowRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFollow.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFollow.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyFollow.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyFollow.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyFollow.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class LikeRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyLike.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyLike.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyLike.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyLike.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyLike.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class MediaEmbedRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyMediaEmbed.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyMediaEmbed.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyMediaEmbed.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyMediaEmbed.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyMediaEmbed.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class PostRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyPost.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyPost.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyPost.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyPost.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyPost.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class ProfileRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyProfile.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyProfile.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyProfile.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyProfile.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyProfile.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}
export declare class RepostRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'type'>): Promise<{
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyRepost.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'type'>): Promise<{
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyRepost.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'type'>, record: AppBskyRepost.Record, headers?: Record<string, string>): Promise<{
create(params: Omit<ComAtprotoRepoCreateRecord.QueryParams, 'collection'>, record: AppBskyRepost.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
put(params: Omit<ComAtprotoRepoPutRecord.QueryParams, 'type'>, record: AppBskyRepost.Record, headers?: Record<string, string>): Promise<{
uri: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'type'>, headers?: Record<string, string>): Promise<void>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.QueryParams, 'collection'>, headers?: Record<string, string>): Promise<void>;
}

View file

@ -1,3 +1,16 @@
import { MethodSchema, RecordSchema } from '@adxp/lexicon';
import { MethodSchema, RecordSchema } from '@atproto/lexicon';
export declare const methodSchemaDict: Record<string, MethodSchema>;
export declare const methodSchemas: MethodSchema[];
export declare const ids: {
AppBskyBadge: string;
AppBskyBadgeAccept: string;
AppBskyBadgeOffer: string;
AppBskyFollow: string;
AppBskyLike: string;
AppBskyMediaEmbed: string;
AppBskyPost: string;
AppBskyProfile: string;
AppBskyRepost: string;
};
export declare const recordSchemaDict: Record<string, RecordSchema>;
export declare const recordSchemas: RecordSchema[];

View file

@ -1,6 +1,5 @@
export interface Record {
assertion: InviteAssertion | EmployeeAssertion | TagAssertion | UnknownAssertion;
subject: string;
createdAt: string;
[k: string]: unknown;
}

View file

@ -0,0 +1,11 @@
export interface Record {
badge: Subject;
offer: Subject;
createdAt: string;
[k: string]: unknown;
}
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -0,0 +1,11 @@
export interface Record {
badge: Badge;
subject: string;
createdAt: string;
[k: string]: unknown;
}
export interface Badge {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
author: string;
limit?: number;
@ -9,11 +9,12 @@ export interface CallOptions {
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
feed: FeedItem[];
}
export interface FeedItem {
cursor: string;
uri: string;
cid: string;
author: User;
repostedBy?: User;
record: {};

View file

@ -0,0 +1,29 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
uri: string;
cid?: string;
limit?: number;
before?: string;
}
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
cursor?: string;
members: {
did: string;
name: string;
displayName?: string;
offeredAt: string;
acceptedAt: string;
}[];
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
algorithm?: string;
limit?: number;
@ -9,11 +9,12 @@ export interface CallOptions {
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
feed: FeedItem[];
}
export interface FeedItem {
cursor: string;
uri: string;
cid: string;
author: User;
repostedBy?: User;
record: {};

View file

@ -1,6 +1,7 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
uri: string;
cid?: string;
limit?: number;
before?: string;
}
@ -10,6 +11,8 @@ export interface CallOptions {
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
cursor?: string;
likedBy: {
did: string;
name: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
limit?: number;
before?: string;
@ -8,10 +8,12 @@ export interface CallOptions {
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
notifications: Notification[];
}
export interface Notification {
uri: string;
cid: string;
author: {
did: string;
name: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
uri: string;
depth?: number;
@ -12,6 +12,7 @@ export interface OutputSchema {
}
export interface Post {
uri: string;
cid: string;
author: User;
record: {};
embed?: RecordEmbed | ExternalEmbed | UnknownEmbed;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
user: string;
}
@ -14,21 +14,23 @@ export interface OutputSchema {
followersCount: number;
followsCount: number;
postsCount: number;
badges: Badge[];
pinnedBadges: Badge[];
myState?: {
follow?: string;
};
}
export interface Badge {
uri: string;
cid: string;
error?: string;
issuer?: {
did: string;
name: string;
displayName: string;
displayName?: string;
};
assertion?: {
type: string;
tag?: string;
};
createdAt?: string;
}

View file

@ -1,6 +1,7 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
uri: string;
cid?: string;
limit?: number;
before?: string;
}
@ -10,6 +11,8 @@ export interface CallOptions {
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
cursor?: string;
repostedBy: {
did: string;
name: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
user: string;
limit?: number;
@ -14,6 +14,7 @@ export interface OutputSchema {
name: string;
displayName?: string;
};
cursor?: string;
followers: {
did: string;
name: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
user: string;
limit?: number;
@ -14,6 +14,7 @@ export interface OutputSchema {
name: string;
displayName?: string;
};
cursor?: string;
follows: {
did: string;
name: string;

View file

@ -0,0 +1,27 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
term: string;
limit?: number;
before?: string;
}
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
users: {
did: string;
name: string;
displayName?: string;
description?: string;
createdAt: string;
indexedAt: string;
}[];
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View file

@ -0,0 +1,22 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
term: string;
limit?: number;
}
export interface CallOptions {
headers?: Headers;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
users: {
did: string;
name: string;
displayName?: string;
}[];
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View file

@ -1,5 +1,10 @@
export interface Record {
subject: string;
subject: Subject;
createdAt: string;
[k: string]: unknown;
}
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -9,10 +9,15 @@ export interface Record {
text: string;
entities?: Entity;
reply?: {
root: string;
parent?: string;
root: PostRef;
parent: PostRef;
[k: string]: unknown;
};
createdAt: string;
[k: string]: unknown;
}
export interface PostRef {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,10 +1,11 @@
export interface Record {
displayName: string;
description?: string;
badges?: BadgeRef[];
pinnedBadges?: BadgeRef[];
[k: string]: unknown;
}
export interface BadgeRef {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -1,5 +1,10 @@
export interface Record {
subject: string;
subject: Subject;
createdAt: string;
[k: string]: unknown;
}
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View file

@ -0,0 +1,27 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {
headers?: Headers;
encoding: 'application/json';
}
export interface InputSchema {
displayName?: string;
description?: string;
pinnedBadges?: BadgeRef[];
}
export interface BadgeRef {
uri: string;
cid: string;
}
export interface OutputSchema {
uri: string;
cid: string;
record: {};
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View file

@ -1,4 +1,4 @@
import { Headers, XRPCError } from '@adxp/xrpc';
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {
@ -10,6 +10,7 @@ export interface InputSchema {
username: string;
inviteCode?: string;
password: string;
recoveryKey?: string;
}
export interface OutputSchema {
jwt: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
validate?: boolean;
@ -11,16 +11,17 @@ export interface InputSchema {
writes: ({
action: 'create';
collection: string;
rkey?: string;
value: unknown;
} | {
action: 'update';
collection: string;
tid: string;
rkey: string;
value: unknown;
} | {
action: 'delete';
collection: string;
tid: string;
rkey: string;
})[];
}
export interface OutputSchema {

View file

@ -1,7 +1,7 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
type: string;
collection: string;
validate?: boolean;
}
export interface CallOptions {
@ -13,6 +13,7 @@ export interface InputSchema {
}
export interface OutputSchema {
uri: string;
cid: string;
}
export interface Response {
success: boolean;

View file

@ -1,8 +1,8 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
type: string;
tid: string;
collection: string;
rkey: string;
}
export interface CallOptions {
headers?: Headers;

View file

@ -1,6 +1,6 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
nameOrDid: string;
user: string;
}
export interface CallOptions {
headers?: Headers;

View file

@ -1,8 +1,9 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
nameOrDid: string;
type: string;
tid: string;
user: string;
collection: string;
rkey: string;
cid?: string;
}
export interface CallOptions {
headers?: Headers;
@ -10,6 +11,7 @@ export interface CallOptions {
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
value: {};
}
export interface Response {

View file

@ -1,7 +1,7 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
nameOrDid: string;
type: string;
user: string;
collection: string;
limit?: number;
before?: string;
after?: string;
@ -12,8 +12,10 @@ export interface CallOptions {
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
records: {
uri: string;
cid: string;
value: {};
}[];
}

View file

@ -1,8 +1,8 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
type: string;
tid: string;
collection: string;
rkey: string;
validate?: boolean;
}
export interface CallOptions {
@ -14,6 +14,7 @@ export interface InputSchema {
}
export interface OutputSchema {
uri: string;
cid: string;
}
export interface Response {
success: boolean;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers, XRPCError } from '@adxp/xrpc';
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
}
export interface CallOptions {

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
name?: string;
}

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
from?: string;

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
}

View file

@ -1,4 +1,4 @@
import { Headers } from '@adxp/xrpc';
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
}

File diff suppressed because one or more lines are too long