Unvendor the api and switch to @atproto/api

zio/stable
Paul Frazee 2022-12-22 09:17:07 -06:00
parent 7f4a54ff0d
commit 4913a07e33
109 changed files with 140 additions and 13781 deletions

View File

@ -12,6 +12,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx" "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
}, },
"dependencies": { "dependencies": {
"@atproto/api": "^0.0.2",
"@bam.tech/react-native-image-resizer": "^3.0.4", "@bam.tech/react-native-image-resizer": "^3.0.4",
"@fortawesome/fontawesome-svg-core": "^6.1.1", "@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1", "@fortawesome/free-regular-svg-icons": "^6.1.1",

View File

@ -1,5 +1,6 @@
import {AtUri} from '../third-party/uri' import {AtUri} from '../third-party/uri'
import {Entity} from '../third-party/api/src/client/types/app/bsky/feed/post' import {AppBskyFeedPost} from '@atproto/api'
type Entity = AppBskyFeedPost.Entity
import {PROD_SERVICE} from '../state' import {PROD_SERVICE} from '../state'
import {isNetworkError} from './errors' import {isNetworkError} from './errors'
import TLDs from 'tlds' import TLDs from 'tlds'

View File

@ -1,7 +1,6 @@
import {autorun} from 'mobx' import {autorun} from 'mobx'
import {Platform} from 'react-native' import {Platform} from 'react-native'
import {sessionClient as AtpApi} from '../third-party/api' import {sessionClient as AtpApi, SessionServiceClient} from '@atproto/api'
import type {SessionServiceClient} from '../third-party/api/src/index'
import {RootStoreModel} from './models/root-store' import {RootStoreModel} from './models/root-store'
import * as libapi from './lib/api' import * as libapi from './lib/api'
import * as storage from './lib/storage' import * as storage from './lib/storage'

View File

@ -4,11 +4,13 @@
*/ */
// import {ReactNativeStore} from './auth' // import {ReactNativeStore} from './auth'
import {sessionClient as AtpApi} from '../../third-party/api' import {
sessionClient as AtpApi,
APP_BSKY_GRAPH,
AppBskyEmbedImages,
AppBskyEmbedExternal,
} from '@atproto/api'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import {APP_BSKY_GRAPH} from '../../third-party/api'
import * as AppBskyEmbedImages from '../../third-party/api/src/client/types/app/bsky/embed/images'
import * as AppBskyEmbedExternal from '../../third-party/api/src/client/types/app/bsky/embed/External'
import {RootStoreModel} from '../models/root-store' import {RootStoreModel} from '../models/root-store'
import {extractEntities} from '../../lib/strings' import {extractEntities} from '../../lib/strings'
import {isNetworkError} from '../../lib/errors' import {isNetworkError} from '../../lib/errors'

View File

@ -1,12 +1,14 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import * as GetTimeline from '../../third-party/api/src/client/types/app/bsky/feed/getTimeline'
import { import {
Main as FeedViewPost, AppBskyFeedGetTimeline as GetTimeline,
ReasonTrend, AppBskyFeedFeedViewPost,
ReasonRepost, AppBskyFeedPost,
} from '../../third-party/api/src/client/types/app/bsky/feed/feedViewPost' AppBskyFeedGetAuthorFeed as GetAuthorFeed,
import {View as PostView} from '../../third-party/api/src/client/types/app/bsky/feed/post' } from '@atproto/api'
import * as GetAuthorFeed from '../../third-party/api/src/client/types/app/bsky/feed/getAuthorFeed' type FeedViewPost = AppBskyFeedFeedViewPost.Main
type ReasonTrend = AppBskyFeedFeedViewPost.ReasonTrend
type ReasonRepost = AppBskyFeedFeedViewPost.ReasonRepost
type PostView = AppBskyFeedPost.View
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import * as apilib from '../lib/api' import * as apilib from '../lib/api'

View File

@ -1,9 +1,8 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as GetAssertions from '../../third-party/api/src/client/types/app/bsky/graph/getAssertions' import {AppBskyGraphGetAssertions as GetAssertions} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
type ResponseAssertion = GetAssertions.OutputSchema['assertions'][number] export type Assertion = GetAssertions.Assertion & {
export type Assertion = ResponseAssertion & {
_reactKey: string _reactKey: string
} }

View File

@ -1,7 +1,9 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import * as GetMembers from '../../third-party/api/src/client/types/app/bsky/graph/getMembers' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyGraphGetMembers as GetMembers,
import {APP_BSKY_GRAPH} from '../../third-party/api' AppBskyActorRef as ActorRef,
APP_BSKY_GRAPH,
} from '@atproto/api'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'

View File

@ -1,6 +1,8 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as GetMemberships from '../../third-party/api/src/client/types/app/bsky/graph/getMemberships' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyGraphGetMemberships as GetMemberships,
AppBskyActorRef as ActorRef,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export type MembershipItem = GetMemberships.Membership & { export type MembershipItem = GetMemberships.Membership & {

View File

@ -1,10 +1,12 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import * as ListNotifications from '../../third-party/api/src/client/types/app/bsky/notification/list' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyNotificationList as ListNotifications,
AppBskyActorRef as ActorRef,
APP_BSKY_GRAPH,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import {PostThreadViewModel} from './post-thread-view' import {PostThreadViewModel} from './post-thread-view'
import {hasProp} from '../lib/type-guards' import {hasProp} from '../lib/type-guards'
import {APP_BSKY_GRAPH} from '../../third-party/api'
import {cleanError} from '../../lib/strings' import {cleanError} from '../../lib/strings'
const UNGROUPABLE_REASONS = ['trend', 'assertion'] const UNGROUPABLE_REASONS = ['trend', 'assertion']

View File

@ -1,6 +1,5 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import {AppBskyFeedGetPostThread as GPT} from '../../third-party/api' import {AppBskyFeedGetPostThread as GetPostThread} from '@atproto/api'
import type * as GetPostThread from '../../third-party/api/src/client/types/app/bsky/feed/getPostThread'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import * as apilib from '../lib/api' import * as apilib from '../lib/api'
@ -297,7 +296,7 @@ export class PostThreadViewModel {
this.isRefreshing = false this.isRefreshing = false
this.hasLoaded = true this.hasLoaded = true
this.error = err ? err.toString() : '' this.error = err ? err.toString() : ''
this.notFound = err instanceof GPT.NotFoundError this.notFound = err instanceof GetPostThread.NotFoundError
} }
// loader functions // loader functions

View File

@ -1,5 +1,5 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post' import {AppBskyFeedPost as Post} from '@atproto/api'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import {cleanError} from '../../lib/strings' import {cleanError} from '../../lib/strings'

View File

@ -1,9 +1,13 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import {Image as PickedImage} from 'react-native-image-crop-picker' import {Image as PickedImage} from 'react-native-image-crop-picker'
import * as GetProfile from '../../third-party/api/src/client/types/app/bsky/actor/getProfile' import {
import * as Profile from '../../third-party/api/src/client/types/app/bsky/actor/profile' AppBskyActorGetProfile as GetProfile,
import {Main as DeclRef} from '../../third-party/api/src/client/types/app/bsky/system/declRef' AppBskyActorProfile as Profile,
import {Entity} from '../../third-party/api/src/client/types/app/bsky/feed/post' AppBskySystemDeclRef,
AppBskyFeedPost,
} from '@atproto/api'
type DeclRef = AppBskySystemDeclRef.Main
type Entity = AppBskyFeedPost.Entity
import {extractEntities} from '../../lib/strings' import {extractEntities} from '../../lib/strings'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import * as apilib from '../lib/api' import * as apilib from '../lib/api'

View File

@ -1,7 +1,7 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import {LRUMap} from 'lru_map' import {LRUMap} from 'lru_map'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import * as GetProfile from '../../third-party/api/src/client/types/app/bsky/actor/getProfile' import {AppBskyActorGetProfile as GetProfile} from '@atproto/api'
type CacheValue = Promise<GetProfile.Response> | GetProfile.Response type CacheValue = Promise<GetProfile.Response> | GetProfile.Response
export class ProfilesViewModel { export class ProfilesViewModel {

View File

@ -1,7 +1,10 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import * as GetRepostedBy from '../../third-party/api/src/client/types/app/bsky/feed/getRepostedBy' import {
import {Main as DeclRef} from '../../third-party/api/src/client/types/app/bsky/system/declRef' AppBskyFeedGetRepostedBy as GetRepostedBy,
AppBskySystemDeclRef,
} from '@atproto/api'
type DeclRef = AppBskySystemDeclRef.Main
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export class RepostedByViewItemModel implements GetRepostedBy.RepostedBy { export class RepostedByViewItemModel implements GetRepostedBy.RepostedBy {

View File

@ -3,8 +3,7 @@
*/ */
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import {sessionClient as AtpApi} from '../../third-party/api' import {sessionClient as AtpApi, SessionServiceClient} from '@atproto/api'
import type {SessionServiceClient} from '../../third-party/api/src/index'
import {createContext, useContext} from 'react' import {createContext, useContext} from 'react'
import {isObj, hasProp} from '../lib/type-guards' import {isObj, hasProp} from '../lib/type-guards'
import {SessionModel} from './session' import {SessionModel} from './session'

View File

@ -1,10 +1,10 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import {sessionClient as AtpApi} from '../../third-party/api/index' import {
import type { sessionClient as AtpApi,
SessionServiceClient,
Session, Session,
} from '../../third-party/api/src/index' SessionServiceClient,
import type * as GetAccountsConfig from '../../third-party/api/src/client/types/com/atproto/server/getAccountsConfig' ComAtprotoServerGetAccountsConfig as GetAccountsConfig,
} from '@atproto/api'
import {isObj, hasProp} from '../lib/type-guards' import {isObj, hasProp} from '../lib/type-guards'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import {isNetworkError} from '../../lib/errors' import {isNetworkError} from '../../lib/errors'

View File

@ -1,5 +1,5 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as GetSuggestions from '../../third-party/api/src/client/types/app/bsky/actor/getSuggestions' import {AppBskyActorGetSuggestions as GetSuggestions} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export type SuggestedActor = GetSuggestions.Actor & { export type SuggestedActor = GetSuggestions.Actor & {

View File

@ -2,7 +2,7 @@ import {makeAutoObservable, runInAction} from 'mobx'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
import {UserFollowsViewModel, FollowItem} from './user-follows-view' import {UserFollowsViewModel, FollowItem} from './user-follows-view'
import {GetAssertionsView} from './get-assertions-view' import {GetAssertionsView} from './get-assertions-view'
import {APP_BSKY_SYSTEM, APP_BSKY_GRAPH} from '../../third-party/api' import {APP_BSKY_SYSTEM, APP_BSKY_GRAPH} from '@atproto/api'
export interface SuggestedInvitesViewParams { export interface SuggestedInvitesViewParams {
sceneDid: string sceneDid: string

View File

@ -1,6 +1,8 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import * as GetFollows from '../../third-party/api/src/client/types/app/bsky/graph/getFollows' import {
import * as SearchTypeahead from '../../third-party/api/src/client/types/app/bsky/actor/searchTypeahead' AppBskyGraphGetFollows as GetFollows,
AppBskyActorSearchTypeahead as SearchTypeahead,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export class UserAutocompleteViewModel { export class UserAutocompleteViewModel {

View File

@ -1,6 +1,8 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as GetFollowers from '../../third-party/api/src/client/types/app/bsky/graph/getFollowers' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyGraphGetFollowers as GetFollowers,
AppBskyActorRef as ActorRef,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export type FollowerItem = GetFollowers.Follower & { export type FollowerItem = GetFollowers.Follower & {

View File

@ -1,6 +1,8 @@
import {makeAutoObservable} from 'mobx' import {makeAutoObservable} from 'mobx'
import * as GetFollows from '../../third-party/api/src/client/types/app/bsky/graph/getFollows' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyGraphGetFollows as GetFollows,
AppBskyActorRef as ActorRef,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export type FollowItem = GetFollows.Follow & { export type FollowItem = GetFollows.Follow & {

View File

@ -1,7 +1,9 @@
import {makeAutoObservable, runInAction} from 'mobx' import {makeAutoObservable, runInAction} from 'mobx'
import {AtUri} from '../../third-party/uri' import {AtUri} from '../../third-party/uri'
import * as GetVotes from '../../third-party/api/src/client/types/app/bsky/feed/getVotes' import {
import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' AppBskyFeedGetVotes as GetVotes,
AppBskyActorRef as ActorRef,
} from '@atproto/api'
import {RootStoreModel} from './root-store' import {RootStoreModel} from './root-store'
export class VotesViewItemModel implements GetVotes.Vote { export class VotesViewItemModel implements GetVotes.Vote {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,462 +0,0 @@
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
import * as ComAtprotoAccountCreate from './types/com/atproto/account/create';
import * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode';
import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete';
import * as ComAtprotoAccountGet from './types/com/atproto/account/get';
import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset';
import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword';
import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload';
import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve';
import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite';
import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord';
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord';
import * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe';
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
import * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig';
import * as ComAtprotoSessionCreate from './types/com/atproto/session/create';
import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete';
import * as ComAtprotoSessionGet from './types/com/atproto/session/get';
import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh';
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
import * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot';
import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo';
import * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene';
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
import * as AppBskyActorProfile from './types/app/bsky/actor/profile';
import * as AppBskyActorSearch from './types/app/bsky/actor/search';
import * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead';
import * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile';
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
import * as AppBskyFeedPost from './types/app/bsky/feed/post';
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
import * as AppBskyFeedTrend from './types/app/bsky/feed/trend';
import * as AppBskyFeedVote from './types/app/bsky/feed/vote';
import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion';
import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation';
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
import * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions';
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
import * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers';
import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships';
import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount';
import * as AppBskyNotificationList from './types/app/bsky/notification/list';
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
import * as AppBskySystemDeclaration from './types/app/bsky/system/declaration';
export * as ComAtprotoAccountCreate from './types/com/atproto/account/create';
export * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode';
export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete';
export * as ComAtprotoAccountGet from './types/com/atproto/account/get';
export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset';
export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword';
export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload';
export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve';
export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite';
export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord';
export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord';
export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe';
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
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 ComAtprotoSessionCreate from './types/com/atproto/session/create';
export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete';
export * as ComAtprotoSessionGet from './types/com/atproto/session/get';
export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh';
export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo';
export * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot';
export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo';
export * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene';
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
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 AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead';
export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile';
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external';
export * as AppBskyEmbedImages from './types/app/bsky/embed/images';
export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost';
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes';
export * as AppBskyFeedPost from './types/app/bsky/feed/post';
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote';
export * as AppBskyFeedTrend from './types/app/bsky/feed/trend';
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 AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation';
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
export * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions';
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
export * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers';
export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships';
export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount';
export * as AppBskyNotificationList from './types/app/bsky/notification/list';
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 declare const APP_BSKY_GRAPH: {
AssertCreator: string;
AssertMember: string;
};
export declare const APP_BSKY_SYSTEM: {
ActorScene: string;
ActorUser: string;
};
export declare class Client {
xrpc: XrpcClient;
constructor();
service(serviceUri: string | URL): ServiceClient;
}
declare const defaultInst: Client;
export default defaultInst;
export declare class ServiceClient {
_baseClient: Client;
xrpc: XrpcServiceClient;
com: ComNS;
app: AppNS;
constructor(baseClient: Client, xrpcService: XrpcServiceClient);
setHeader(key: string, value: string): void;
}
export declare class ComNS {
_service: ServiceClient;
atproto: AtprotoNS;
constructor(service: ServiceClient);
}
export declare class AtprotoNS {
_service: ServiceClient;
account: AccountNS;
blob: BlobNS;
handle: HandleNS;
repo: RepoNS;
server: ServerNS;
session: SessionNS;
sync: SyncNS;
constructor(service: ServiceClient);
}
export declare class AccountNS {
_service: ServiceClient;
constructor(service: ServiceClient);
create(data?: ComAtprotoAccountCreate.InputSchema, opts?: ComAtprotoAccountCreate.CallOptions): Promise<ComAtprotoAccountCreate.Response>;
createInviteCode(data?: ComAtprotoAccountCreateInviteCode.InputSchema, opts?: ComAtprotoAccountCreateInviteCode.CallOptions): Promise<ComAtprotoAccountCreateInviteCode.Response>;
delete(data?: ComAtprotoAccountDelete.InputSchema, opts?: ComAtprotoAccountDelete.CallOptions): Promise<ComAtprotoAccountDelete.Response>;
get(params?: ComAtprotoAccountGet.QueryParams, opts?: ComAtprotoAccountGet.CallOptions): Promise<ComAtprotoAccountGet.Response>;
requestPasswordReset(data?: ComAtprotoAccountRequestPasswordReset.InputSchema, opts?: ComAtprotoAccountRequestPasswordReset.CallOptions): Promise<ComAtprotoAccountRequestPasswordReset.Response>;
resetPassword(data?: ComAtprotoAccountResetPassword.InputSchema, opts?: ComAtprotoAccountResetPassword.CallOptions): Promise<ComAtprotoAccountResetPassword.Response>;
}
export declare class BlobNS {
_service: ServiceClient;
constructor(service: ServiceClient);
upload(data?: ComAtprotoBlobUpload.InputSchema, opts?: ComAtprotoBlobUpload.CallOptions): Promise<ComAtprotoBlobUpload.Response>;
}
export declare class HandleNS {
_service: ServiceClient;
constructor(service: ServiceClient);
resolve(params?: ComAtprotoHandleResolve.QueryParams, opts?: ComAtprotoHandleResolve.CallOptions): Promise<ComAtprotoHandleResolve.Response>;
}
export declare class RepoNS {
_service: ServiceClient;
constructor(service: ServiceClient);
batchWrite(data?: ComAtprotoRepoBatchWrite.InputSchema, opts?: ComAtprotoRepoBatchWrite.CallOptions): Promise<ComAtprotoRepoBatchWrite.Response>;
createRecord(data?: ComAtprotoRepoCreateRecord.InputSchema, opts?: ComAtprotoRepoCreateRecord.CallOptions): Promise<ComAtprotoRepoCreateRecord.Response>;
deleteRecord(data?: ComAtprotoRepoDeleteRecord.InputSchema, opts?: ComAtprotoRepoDeleteRecord.CallOptions): Promise<ComAtprotoRepoDeleteRecord.Response>;
describe(params?: ComAtprotoRepoDescribe.QueryParams, opts?: ComAtprotoRepoDescribe.CallOptions): Promise<ComAtprotoRepoDescribe.Response>;
getRecord(params?: ComAtprotoRepoGetRecord.QueryParams, opts?: ComAtprotoRepoGetRecord.CallOptions): Promise<ComAtprotoRepoGetRecord.Response>;
listRecords(params?: ComAtprotoRepoListRecords.QueryParams, opts?: ComAtprotoRepoListRecords.CallOptions): Promise<ComAtprotoRepoListRecords.Response>;
putRecord(data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions): Promise<ComAtprotoRepoPutRecord.Response>;
}
export declare class ServerNS {
_service: ServiceClient;
constructor(service: ServiceClient);
getAccountsConfig(params?: ComAtprotoServerGetAccountsConfig.QueryParams, opts?: ComAtprotoServerGetAccountsConfig.CallOptions): Promise<ComAtprotoServerGetAccountsConfig.Response>;
}
export declare class SessionNS {
_service: ServiceClient;
constructor(service: ServiceClient);
create(data?: ComAtprotoSessionCreate.InputSchema, opts?: ComAtprotoSessionCreate.CallOptions): Promise<ComAtprotoSessionCreate.Response>;
delete(data?: ComAtprotoSessionDelete.InputSchema, opts?: ComAtprotoSessionDelete.CallOptions): Promise<ComAtprotoSessionDelete.Response>;
get(params?: ComAtprotoSessionGet.QueryParams, opts?: ComAtprotoSessionGet.CallOptions): Promise<ComAtprotoSessionGet.Response>;
refresh(data?: ComAtprotoSessionRefresh.InputSchema, opts?: ComAtprotoSessionRefresh.CallOptions): Promise<ComAtprotoSessionRefresh.Response>;
}
export declare class SyncNS {
_service: ServiceClient;
constructor(service: ServiceClient);
getRepo(params?: ComAtprotoSyncGetRepo.QueryParams, opts?: ComAtprotoSyncGetRepo.CallOptions): Promise<ComAtprotoSyncGetRepo.Response>;
getRoot(params?: ComAtprotoSyncGetRoot.QueryParams, opts?: ComAtprotoSyncGetRoot.CallOptions): Promise<ComAtprotoSyncGetRoot.Response>;
updateRepo(data?: ComAtprotoSyncUpdateRepo.InputSchema, opts?: ComAtprotoSyncUpdateRepo.CallOptions): Promise<ComAtprotoSyncUpdateRepo.Response>;
}
export declare class AppNS {
_service: ServiceClient;
bsky: BskyNS;
constructor(service: ServiceClient);
}
export declare class BskyNS {
_service: ServiceClient;
actor: ActorNS;
embed: EmbedNS;
feed: FeedNS;
graph: GraphNS;
notification: NotificationNS;
system: SystemNS;
constructor(service: ServiceClient);
}
export declare class ActorNS {
_service: ServiceClient;
profile: ProfileRecord;
constructor(service: ServiceClient);
createScene(data?: AppBskyActorCreateScene.InputSchema, opts?: AppBskyActorCreateScene.CallOptions): Promise<AppBskyActorCreateScene.Response>;
getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>;
getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>;
search(params?: AppBskyActorSearch.QueryParams, opts?: AppBskyActorSearch.CallOptions): Promise<AppBskyActorSearch.Response>;
searchTypeahead(params?: AppBskyActorSearchTypeahead.QueryParams, opts?: AppBskyActorSearchTypeahead.CallOptions): Promise<AppBskyActorSearchTypeahead.Response>;
updateProfile(data?: AppBskyActorUpdateProfile.InputSchema, opts?: AppBskyActorUpdateProfile.CallOptions): Promise<AppBskyActorUpdateProfile.Response>;
}
export declare class ProfileRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyActorProfile.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyActorProfile.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyActorProfile.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 EmbedNS {
_service: ServiceClient;
constructor(service: ServiceClient);
}
export declare class FeedNS {
_service: ServiceClient;
post: PostRecord;
repost: RepostRecord;
trend: TrendRecord;
vote: VoteRecord;
constructor(service: ServiceClient);
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
getPostThread(params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions): Promise<AppBskyFeedGetPostThread.Response>;
getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>;
getVotes(params?: AppBskyFeedGetVotes.QueryParams, opts?: AppBskyFeedGetVotes.CallOptions): Promise<AppBskyFeedGetVotes.Response>;
setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>;
}
export declare class PostRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFeedPost.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFeedPost.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedPost.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 RepostRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFeedRepost.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFeedRepost.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedRepost.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 TrendRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFeedTrend.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFeedTrend.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedTrend.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 VoteRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyFeedVote.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyFeedVote.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedVote.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 GraphNS {
_service: ServiceClient;
assertion: AssertionRecord;
confirmation: ConfirmationRecord;
follow: FollowRecord;
constructor(service: ServiceClient);
getAssertions(params?: AppBskyGraphGetAssertions.QueryParams, opts?: AppBskyGraphGetAssertions.CallOptions): Promise<AppBskyGraphGetAssertions.Response>;
getFollowers(params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions): Promise<AppBskyGraphGetFollowers.Response>;
getFollows(params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions): Promise<AppBskyGraphGetFollows.Response>;
getMembers(params?: AppBskyGraphGetMembers.QueryParams, opts?: AppBskyGraphGetMembers.CallOptions): Promise<AppBskyGraphGetMembers.Response>;
getMemberships(params?: AppBskyGraphGetMemberships.QueryParams, opts?: AppBskyGraphGetMemberships.CallOptions): Promise<AppBskyGraphGetMemberships.Response>;
}
export declare class AssertionRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyGraphAssertion.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyGraphAssertion.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphAssertion.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 ConfirmationRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyGraphConfirmation.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyGraphConfirmation.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphConfirmation.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 FollowRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskyGraphFollow.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskyGraphFollow.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphFollow.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 NotificationNS {
_service: ServiceClient;
constructor(service: ServiceClient);
getCount(params?: AppBskyNotificationGetCount.QueryParams, opts?: AppBskyNotificationGetCount.CallOptions): Promise<AppBskyNotificationGetCount.Response>;
list(params?: AppBskyNotificationList.QueryParams, opts?: AppBskyNotificationList.CallOptions): Promise<AppBskyNotificationList.Response>;
updateSeen(data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions): Promise<AppBskyNotificationUpdateSeen.Response>;
}
export declare class SystemNS {
_service: ServiceClient;
declaration: DeclarationRecord;
constructor(service: ServiceClient);
}
export declare class DeclarationRecord {
_service: ServiceClient;
constructor(service: ServiceClient);
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
cursor?: string;
records: {
uri: string;
value: AppBskySystemDeclaration.Record;
}[];
}>;
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
uri: string;
cid: string;
value: AppBskySystemDeclaration.Record;
}>;
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskySystemDeclaration.Record, headers?: Record<string, string>): Promise<{
uri: string;
cid: string;
}>;
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
import { MethodSchema, RecordSchema } from '@atproto/lexicon';
export declare const methodSchemaDict: Record<string, MethodSchema>;
export declare const methodSchemas: MethodSchema[];
export declare const ids: {
AppBskyActorProfile: string;
AppBskyFeedMediaEmbed: string;
AppBskyFeedPost: string;
AppBskyFeedRepost: string;
AppBskyFeedTrend: string;
AppBskyFeedVote: string;
AppBskyGraphAssertion: string;
AppBskyGraphConfirmation: string;
AppBskyGraphFollow: string;
AppBskySystemDeclaration: string;
};
export declare const recordSchemaDict: Record<string, RecordSchema>;
export declare const recordSchemas: RecordSchema[];

View File

@ -1,32 +0,0 @@
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
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 {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare class InvalidHandleError extends XRPCError {
constructor(src: XRPCError);
}
export declare class HandleNotAvailableError extends XRPCError {
constructor(src: XRPCError);
}
export declare function toKnownErr(e: any): any;

View File

@ -1,36 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
actor: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
creator: string;
displayName?: string;
description?: string;
avatar?: string;
banner?: string;
followersCount: number;
followsCount: number;
membersCount: number;
postsCount: number;
myState?: MyState;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface MyState {
follow?: string;
member?: string;
[k: string]: unknown;
}

View File

@ -1,36 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
limit?: number;
cursor?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
actors: Actor[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface Actor {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
description?: string;
avatar?: string;
indexedAt?: string;
myState?: MyState;
[k: string]: unknown;
}
export interface MyState {
follow?: string;
[k: string]: unknown;
}

View File

@ -1,15 +0,0 @@
export interface Record {
displayName: string;
description?: string;
avatar?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
banner?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
[k: string]: unknown;
}

View File

@ -1,14 +0,0 @@
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;
avatar?: string;
[k: string]: unknown;
}

View File

@ -1,32 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
term: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
users: User[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface User {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
avatar?: string;
description?: string;
indexedAt?: string;
[k: string]: unknown;
}

View File

@ -1,28 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
term: string;
limit?: number;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
users: User[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface User {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
avatar?: string;
[k: string]: unknown;
}

View File

@ -1,48 +0,0 @@
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
}
export interface InputSchema {
did?: string;
displayName?: string;
description?: string;
avatar?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
banner?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface OutputSchema {
uri: string;
cid: string;
record: {};
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare class InvalidBlobError extends XRPCError {
constructor(src: XRPCError);
}
export declare class BlobTooLargeError extends XRPCError {
constructor(src: XRPCError);
}
export declare class InvalidMimeTypeError extends XRPCError {
constructor(src: XRPCError);
}
export declare class InvalidImageDimensionsError extends XRPCError {
constructor(src: XRPCError);
}
export declare function toKnownErr(e: any): any;

View File

@ -1,26 +0,0 @@
export interface Main {
external: External;
[k: string]: unknown;
}
export interface External {
uri: string;
title: string;
description: string;
thumb?: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface Presented {
external: PresentedExternal;
[k: string]: unknown;
}
export interface PresentedExternal {
uri: string;
title: string;
description: string;
thumb?: string;
[k: string]: unknown;
}

View File

@ -1,23 +0,0 @@
export interface Main {
images: Image[];
[k: string]: unknown;
}
export interface Image {
image: {
cid: string;
mimeType: string;
[k: string]: unknown;
};
alt: string;
[k: string]: unknown;
}
export interface Presented {
images: PresentedImage[];
[k: string]: unknown;
}
export interface PresentedImage {
thumb: string;
fullsize: string;
alt: string;
[k: string]: unknown;
}

View File

@ -1,57 +0,0 @@
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

@ -1,36 +0,0 @@
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,26 +0,0 @@
import * as AppBskyFeedPost from './post';
import * as AppBskyActorRef from '../actor/ref';
export interface Main {
post: AppBskyFeedPost.View;
reply?: ReplyRef;
reason?: ReasonTrend | ReasonRepost | {
$type: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface ReplyRef {
root: AppBskyFeedPost.View;
parent: AppBskyFeedPost.View;
[k: string]: unknown;
}
export interface ReasonTrend {
by: AppBskyActorRef.WithInfo;
indexedAt: string;
[k: string]: unknown;
}
export interface ReasonRepost {
by: AppBskyActorRef.WithInfo;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,22 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyFeedFeedViewPost from './feedViewPost';
export interface QueryParams {
author: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
feed: AppBskyFeedFeedViewPost.Main[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View File

@ -1,29 +0,0 @@
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;
likedBy: {
did: string;
handle: string;
displayName?: string;
createdAt?: string;
indexedAt: string;
}[];
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View File

@ -1,43 +0,0 @@
import { Headers, XRPCError } from '@atproto/xrpc';
import * as AppBskyFeedPost from './post';
export interface QueryParams {
uri: string;
depth?: number;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
thread: ThreadViewPost | NotFoundPost | {
$type: string;
[k: string]: unknown;
};
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare class NotFoundError extends XRPCError {
constructor(src: XRPCError);
}
export declare function toKnownErr(e: any): any;
export interface ThreadViewPost {
post: AppBskyFeedPost.View;
parent?: ThreadViewPost | NotFoundPost | {
$type: string;
[k: string]: unknown;
};
replies?: (ThreadViewPost | NotFoundPost | {
$type: string;
[k: string]: unknown;
})[];
[k: string]: unknown;
}
export interface NotFoundPost {
uri: string;
notFound: true;
[k: string]: unknown;
}

View File

@ -1,35 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
uri: string;
cid?: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
cursor?: string;
repostedBy: RepostedBy[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface RepostedBy {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
avatar?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,22 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyFeedFeedViewPost from './feedViewPost';
export interface QueryParams {
algorithm?: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
feed: AppBskyFeedFeedViewPost.Main[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View File

@ -1,33 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams {
uri: string;
cid?: string;
direction?: 'up' | 'down';
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
uri: string;
cid?: string;
cursor?: string;
votes: Vote[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,10 +0,0 @@
export interface Record {
subject: Subject;
createdAt: string;
[k: string]: unknown;
}
export interface Subject {
uri: string;
cid: string;
[k: string]: unknown;
}

View File

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

View File

@ -1,54 +0,0 @@
import * as AppBskyEmbedImages from '../embed/images';
import * as AppBskyEmbedExternal from '../embed/external';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
import * as AppBskyActorRef from '../actor/ref';
export interface Record {
text: string;
entities?: Entity[];
reply?: ReplyRef;
embed?: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
$type: string;
[k: string]: unknown;
};
createdAt: string;
[k: string]: unknown;
}
export interface ReplyRef {
root: ComAtprotoRepoStrongRef.Main;
parent: ComAtprotoRepoStrongRef.Main;
[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;
}
export interface View {
uri: string;
cid: string;
author: AppBskyActorRef.WithInfo;
record: {};
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | {
$type: string;
[k: string]: unknown;
};
replyCount: number;
repostCount: number;
upvoteCount: number;
downvoteCount: number;
indexedAt: string;
viewer: ViewerState;
[k: string]: unknown;
}
export interface ViewerState {
repost?: string;
upvote?: string;
downvote?: string;
[k: string]: unknown;
}

View File

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

View File

@ -1,25 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
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 {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,43 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams {
author?: string;
subject?: string;
assertion?: string;
confirmed?: boolean;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
assertions: Assertion[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,34 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
user: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
followers: Follower[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface Follower {
did: string;
declaration: AppBskySystemDeclRef.Main;
handle: string;
displayName?: string;
avatar?: string;
createdAt?: string;
indexedAt: string;
[k: string]: unknown;
}

View File

@ -1,33 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
user: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
follows: Follow[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,33 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
actor: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
members: Member[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,33 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
import * as AppBskySystemDeclRef from '../system/declRef';
export interface QueryParams {
actor: string;
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
subject: AppBskyActorRef.WithInfo;
cursor?: string;
memberships: Membership[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,10 +0,0 @@
export interface Record {
group: string;
subject: {
did: string;
declarationCid: string;
[k: string]: unknown;
};
createdAt: string;
[k: string]: unknown;
}

View File

@ -1,14 +0,0 @@
export interface Record {
group: {
did: string;
declarationCid: string;
[k: string]: unknown;
};
invite: {
uri: string;
cid: string;
[k: string]: unknown;
};
createdAt: string;
[k: string]: unknown;
}

View File

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

View File

@ -1,32 +0,0 @@
import { Headers } from '@atproto/xrpc';
import * as AppBskyActorRef from '../actor/ref';
export interface QueryParams {
limit?: number;
before?: string;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
notifications: Notification[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
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,17 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface InputSchema {
seenAt: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
}
export declare function toKnownErr(e: any): any;

View File

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

View File

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

View File

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

View File

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

View File

@ -1,41 +0,0 @@
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
}
export interface InputSchema {
email: string;
handle: string;
inviteCode?: string;
password: string;
recoveryKey?: string;
[k: string]: unknown;
}
export interface OutputSchema {
accessJwt: string;
refreshJwt: string;
handle: string;
did: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare class InvalidHandleError extends XRPCError {
constructor(src: XRPCError);
}
export declare class InvalidPasswordError extends XRPCError {
constructor(src: XRPCError);
}
export declare class InvalidInviteCodeError extends XRPCError {
constructor(src: XRPCError);
}
export declare class HandleNotAvailableError extends XRPCError {
constructor(src: XRPCError);
}
export declare function toKnownErr(e: any): any;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,22 +0,0 @@
import { Headers, XRPCError } from '@atproto/xrpc';
export interface QueryParams {
}
export declare type InputSchema = string | Uint8Array;
export interface OutputSchema {
cid: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: '*/*';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare class InvalidBlobError extends XRPCError {
constructor(src: XRPCError);
}
export declare function toKnownErr(e: any): any;

View File

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

View File

@ -1,39 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface InputSchema {
did: string;
validate?: boolean;
writes: (Create | Update | Delete)[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
}
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,26 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
}
export interface InputSchema {
did: string;
collection: string;
validate?: boolean;
record: {};
[k: string]: unknown;
}
export interface OutputSchema {
uri: string;
cid: string;
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/json';
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;

View File

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

View File

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

View File

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

View File

@ -1,30 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
user: string;
collection: string;
limit?: number;
before?: string;
after?: string;
reverse?: boolean;
}
export declare type InputSchema = undefined;
export interface OutputSchema {
cursor?: string;
records: Record[];
[k: string]: unknown;
}
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: OutputSchema;
}
export declare function toKnownErr(e: any): any;
export interface Record {
uri: string;
cid: string;
value: {};
[k: string]: unknown;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,15 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
from?: string;
}
export declare type InputSchema = undefined;
export interface CallOptions {
headers?: Headers;
}
export interface Response {
success: boolean;
headers: Headers;
data: Uint8Array;
}
export declare function toKnownErr(e: any): any;

View File

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

View File

@ -1,15 +0,0 @@
import { Headers } from '@atproto/xrpc';
export interface QueryParams {
did: string;
}
export declare type InputSchema = string | Uint8Array;
export interface CallOptions {
headers?: Headers;
qp?: QueryParams;
encoding: 'application/cbor';
}
export interface Response {
success: boolean;
headers: Headers;
}
export declare function toKnownErr(e: any): any;

View File

@ -1,4 +0,0 @@
export * from './client';
export { default } from './client';
export * from './session';
export { default as sessionClient } from './session';

View File

@ -1,42 +0,0 @@
import { CallOptions, Client as XrpcClient, ServiceClient as XrpcServiceClient, QueryParams, XRPCResponse } from '@atproto/xrpc';
import TypedEmitter from 'typed-emitter';
import { Client, ServiceClient } from './client';
export declare class SessionClient extends Client {
service(serviceUri: string | URL): SessionServiceClient;
}
declare const defaultInst: SessionClient;
export default defaultInst;
export declare class SessionServiceClient extends ServiceClient {
xrpc: SessionXrpcServiceClient;
sessionManager: SessionManager;
constructor(baseClient: Client, xrpcService: SessionXrpcServiceClient);
}
export declare class SessionXrpcServiceClient extends XrpcServiceClient {
sessionManager: SessionManager;
refreshing?: Promise<XRPCResponse>;
constructor(baseClient: XrpcClient, serviceUri: string | URL);
call(methodNsid: string, params?: QueryParams, data?: unknown, opts?: CallOptions): Promise<XRPCResponse>;
refresh(opts?: CallOptions): Promise<XRPCResponse>;
private _refresh;
}
declare const SessionManager_base: new () => TypedEmitter<SessionEvents>;
export declare class SessionManager extends SessionManager_base {
session?: Session;
get(): Session | undefined;
set(session: Session): void;
unset(): void;
active(): boolean;
accessHeaders(): {
authorization: string;
} | undefined;
refreshHeaders(): {
authorization: string;
} | undefined;
}
export declare type Session = {
refreshJwt: string;
accessJwt: string;
};
declare type SessionEvents = {
session: (session?: Session) => void;
};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More