@atproto/api 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +14 -9
- package/dist/client/lexicons.d.ts +103 -100
- package/dist/client/types/app/bsky/actor/{search.d.ts → getFeedSuggestions.d.ts} +3 -4
- package/dist/client/types/app/bsky/{graph/getListBlocks.d.ts → feed/getSuggestedFeeds.d.ts} +2 -2
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +0 -1
- package/dist/client/types/com/atproto/{session/refresh.d.ts → sync/getLatestCommit.d.ts} +4 -6
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +1 -2
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +4 -2
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +3 -1
- package/dist/client/types/{app/bsky/feed/unsaveFeed.d.ts → com/atproto/temp/upgradeRepoVersion.d.ts} +2 -1
- package/dist/index.js +387 -408
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +47 -0
- package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +38 -0
- package/src/client/types/com/atproto/temp/upgradeRepoVersion.ts +1 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/app/bsky/unspecced/registerPushNotification.d.ts +0 -16
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +0 -24
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
- package/dist/session.d.ts +0 -42
- package/tsconfig.build.tsbuildinfo +0 -1
- /package/dist/client/types/app/bsky/feed/{getSavedFeeds.d.ts → getFeedSuggestions.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "0.6.9",
|
|
4
|
+
"main": "src/index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"codegen": "yarn docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
|
7
7
|
"docgen": "node ./scripts/generate-docs.mjs",
|
package/src/client/index.ts
CHANGED
|
@@ -98,6 +98,7 @@ import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
|
|
|
98
98
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
|
|
99
99
|
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
|
|
100
100
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
|
|
101
|
+
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds'
|
|
101
102
|
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
102
103
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like'
|
|
103
104
|
import * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
@@ -219,6 +220,7 @@ export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
|
|
|
219
220
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
|
|
220
221
|
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
|
|
221
222
|
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
|
|
223
|
+
export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds'
|
|
222
224
|
export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
223
225
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like'
|
|
224
226
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
@@ -1357,6 +1359,17 @@ export class FeedNS {
|
|
|
1357
1359
|
})
|
|
1358
1360
|
}
|
|
1359
1361
|
|
|
1362
|
+
getSuggestedFeeds(
|
|
1363
|
+
params?: AppBskyFeedGetSuggestedFeeds.QueryParams,
|
|
1364
|
+
opts?: AppBskyFeedGetSuggestedFeeds.CallOptions,
|
|
1365
|
+
): Promise<AppBskyFeedGetSuggestedFeeds.Response> {
|
|
1366
|
+
return this._service.xrpc
|
|
1367
|
+
.call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts)
|
|
1368
|
+
.catch((e) => {
|
|
1369
|
+
throw AppBskyFeedGetSuggestedFeeds.toKnownErr(e)
|
|
1370
|
+
})
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1360
1373
|
getTimeline(
|
|
1361
1374
|
params?: AppBskyFeedGetTimeline.QueryParams,
|
|
1362
1375
|
opts?: AppBskyFeedGetTimeline.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -3536,6 +3536,9 @@ export const schemaDict = {
|
|
|
3536
3536
|
type: 'string',
|
|
3537
3537
|
format: 'did',
|
|
3538
3538
|
},
|
|
3539
|
+
force: {
|
|
3540
|
+
type: 'boolean',
|
|
3541
|
+
},
|
|
3539
3542
|
},
|
|
3540
3543
|
},
|
|
3541
3544
|
},
|
|
@@ -5302,6 +5305,49 @@ export const schemaDict = {
|
|
|
5302
5305
|
},
|
|
5303
5306
|
},
|
|
5304
5307
|
},
|
|
5308
|
+
AppBskyFeedGetSuggestedFeeds: {
|
|
5309
|
+
lexicon: 1,
|
|
5310
|
+
id: 'app.bsky.feed.getSuggestedFeeds',
|
|
5311
|
+
defs: {
|
|
5312
|
+
main: {
|
|
5313
|
+
type: 'query',
|
|
5314
|
+
description: 'Get a list of suggested feeds for the viewer.',
|
|
5315
|
+
parameters: {
|
|
5316
|
+
type: 'params',
|
|
5317
|
+
properties: {
|
|
5318
|
+
limit: {
|
|
5319
|
+
type: 'integer',
|
|
5320
|
+
minimum: 1,
|
|
5321
|
+
maximum: 100,
|
|
5322
|
+
default: 50,
|
|
5323
|
+
},
|
|
5324
|
+
cursor: {
|
|
5325
|
+
type: 'string',
|
|
5326
|
+
},
|
|
5327
|
+
},
|
|
5328
|
+
},
|
|
5329
|
+
output: {
|
|
5330
|
+
encoding: 'application/json',
|
|
5331
|
+
schema: {
|
|
5332
|
+
type: 'object',
|
|
5333
|
+
required: ['feeds'],
|
|
5334
|
+
properties: {
|
|
5335
|
+
cursor: {
|
|
5336
|
+
type: 'string',
|
|
5337
|
+
},
|
|
5338
|
+
feeds: {
|
|
5339
|
+
type: 'array',
|
|
5340
|
+
items: {
|
|
5341
|
+
type: 'ref',
|
|
5342
|
+
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
5343
|
+
},
|
|
5344
|
+
},
|
|
5345
|
+
},
|
|
5346
|
+
},
|
|
5347
|
+
},
|
|
5348
|
+
},
|
|
5349
|
+
},
|
|
5350
|
+
},
|
|
5305
5351
|
AppBskyFeedGetTimeline: {
|
|
5306
5352
|
lexicon: 1,
|
|
5307
5353
|
id: 'app.bsky.feed.getTimeline',
|
|
@@ -6705,6 +6751,7 @@ export const ids = {
|
|
|
6705
6751
|
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
6706
6752
|
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
6707
6753
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
6754
|
+
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
|
6708
6755
|
AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline',
|
|
6709
6756
|
AppBskyFeedLike: 'app.bsky.feed.like',
|
|
6710
6757
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyFeedDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
limit?: number
|
|
13
|
+
cursor?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type InputSchema = undefined
|
|
17
|
+
|
|
18
|
+
export interface OutputSchema {
|
|
19
|
+
cursor?: string
|
|
20
|
+
feeds: AppBskyFeedDefs.GeneratorView[]
|
|
21
|
+
[k: string]: unknown
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CallOptions {
|
|
25
|
+
headers?: Headers
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface Response {
|
|
29
|
+
success: boolean
|
|
30
|
+
headers: Headers
|
|
31
|
+
data: OutputSchema
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function toKnownErr(e: any) {
|
|
35
|
+
if (e instanceof XRPCError) {
|
|
36
|
+
}
|
|
37
|
+
return e
|
|
38
|
+
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
handle: string;
|
|
7
|
-
recoveryKey?: string;
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface OutputSchema {
|
|
11
|
-
handle: string;
|
|
12
|
-
did: string;
|
|
13
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
export interface CallOptions {
|
|
17
|
-
headers?: Headers;
|
|
18
|
-
qp?: QueryParams;
|
|
19
|
-
encoding: 'application/json';
|
|
20
|
-
}
|
|
21
|
-
export interface Response {
|
|
22
|
-
success: boolean;
|
|
23
|
-
headers: Headers;
|
|
24
|
-
data: OutputSchema;
|
|
25
|
-
}
|
|
26
|
-
export declare class InvalidHandleError extends XRPCError {
|
|
27
|
-
constructor(src: XRPCError);
|
|
28
|
-
}
|
|
29
|
-
export declare class HandleNotAvailableError extends XRPCError {
|
|
30
|
-
constructor(src: XRPCError);
|
|
31
|
-
}
|
|
32
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
-
export interface Main {
|
|
4
|
-
did: string;
|
|
5
|
-
declarationCid: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function isMain(v: unknown): v is Main;
|
|
9
|
-
export declare function validateMain(v: unknown): ValidationResult;
|
|
10
|
-
export interface WithInfo {
|
|
11
|
-
did: string;
|
|
12
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
13
|
-
handle: string;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
avatar?: string;
|
|
16
|
-
viewer?: ViewerState;
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export declare function isWithInfo(v: unknown): v is WithInfo;
|
|
20
|
-
export declare function validateWithInfo(v: unknown): ValidationResult;
|
|
21
|
-
export interface ViewerState {
|
|
22
|
-
muted?: boolean;
|
|
23
|
-
following?: string;
|
|
24
|
-
followedBy?: string;
|
|
25
|
-
[k: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
28
|
-
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as AppBskyActorRef from './ref';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
term?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare type InputSchema = undefined;
|
|
8
|
-
export interface OutputSchema {
|
|
9
|
-
users: AppBskyActorRef.WithInfo[];
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface CallOptions {
|
|
13
|
-
headers?: Headers;
|
|
14
|
-
}
|
|
15
|
-
export interface Response {
|
|
16
|
-
success: boolean;
|
|
17
|
-
headers: Headers;
|
|
18
|
-
data: OutputSchema;
|
|
19
|
-
}
|
|
20
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import { BlobRef } from '@atproto/lexicon';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
description?: string | null;
|
|
8
|
-
avatar?: BlobRef | null;
|
|
9
|
-
banner?: BlobRef | null;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
uri: string;
|
|
14
|
-
cid: string;
|
|
15
|
-
record: {};
|
|
16
|
-
[k: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
export interface CallOptions {
|
|
19
|
-
headers?: Headers;
|
|
20
|
-
qp?: QueryParams;
|
|
21
|
-
encoding: 'application/json';
|
|
22
|
-
}
|
|
23
|
-
export interface Response {
|
|
24
|
-
success: boolean;
|
|
25
|
-
headers: Headers;
|
|
26
|
-
data: OutputSchema;
|
|
27
|
-
}
|
|
28
|
-
export declare class InvalidBlobError extends XRPCError {
|
|
29
|
-
constructor(src: XRPCError);
|
|
30
|
-
}
|
|
31
|
-
export declare class BlobTooLargeError extends XRPCError {
|
|
32
|
-
constructor(src: XRPCError);
|
|
33
|
-
}
|
|
34
|
-
export declare class InvalidMimeTypeError extends XRPCError {
|
|
35
|
-
constructor(src: XRPCError);
|
|
36
|
-
}
|
|
37
|
-
export declare class InvalidImageDimensionsError extends XRPCError {
|
|
38
|
-
constructor(src: XRPCError);
|
|
39
|
-
}
|
|
40
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyFeedPost from './post';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
export interface Main {
|
|
5
|
-
post: AppBskyFeedPost.View;
|
|
6
|
-
reply?: ReplyRef;
|
|
7
|
-
reason?: ReasonRepost | {
|
|
8
|
-
$type: string;
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
[k: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export declare function isMain(v: unknown): v is Main;
|
|
14
|
-
export declare function validateMain(v: unknown): ValidationResult;
|
|
15
|
-
export interface ReplyRef {
|
|
16
|
-
root: AppBskyFeedPost.View;
|
|
17
|
-
parent: AppBskyFeedPost.View;
|
|
18
|
-
[k: string]: unknown;
|
|
19
|
-
}
|
|
20
|
-
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
21
|
-
export declare function validateReplyRef(v: unknown): ValidationResult;
|
|
22
|
-
export interface ReasonRepost {
|
|
23
|
-
by: AppBskyActorRef.WithInfo;
|
|
24
|
-
indexedAt: string;
|
|
25
|
-
[k: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
export declare function isReasonRepost(v: unknown): v is ReasonRepost;
|
|
28
|
-
export declare function validateReasonRepost(v: unknown): ValidationResult;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
export interface QueryParams {
|
|
5
|
-
uri: string;
|
|
6
|
-
cid?: string;
|
|
7
|
-
direction?: 'up' | 'down';
|
|
8
|
-
limit?: number;
|
|
9
|
-
before?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type InputSchema = undefined;
|
|
12
|
-
export interface OutputSchema {
|
|
13
|
-
uri: string;
|
|
14
|
-
cid?: string;
|
|
15
|
-
cursor?: string;
|
|
16
|
-
votes: Vote[];
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export interface CallOptions {
|
|
20
|
-
headers?: Headers;
|
|
21
|
-
}
|
|
22
|
-
export interface Response {
|
|
23
|
-
success: boolean;
|
|
24
|
-
headers: Headers;
|
|
25
|
-
data: OutputSchema;
|
|
26
|
-
}
|
|
27
|
-
export declare function toKnownErr(e: any): any;
|
|
28
|
-
export interface Vote {
|
|
29
|
-
direction: 'up' | 'down';
|
|
30
|
-
indexedAt: string;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
actor: AppBskyActorRef.WithInfo;
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
export declare function isVote(v: unknown): v is Vote;
|
|
36
|
-
export declare function validateVote(v: unknown): ValidationResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
feed: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface QueryParams {
|
|
4
|
-
}
|
|
5
|
-
export interface InputSchema {
|
|
6
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
7
|
-
direction: 'up' | 'down' | 'none';
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface OutputSchema {
|
|
11
|
-
upvote?: string;
|
|
12
|
-
downvote?: string;
|
|
13
|
-
[k: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface CallOptions {
|
|
16
|
-
headers?: Headers;
|
|
17
|
-
qp?: QueryParams;
|
|
18
|
-
encoding: 'application/json';
|
|
19
|
-
}
|
|
20
|
-
export interface Response {
|
|
21
|
-
success: boolean;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
data: OutputSchema;
|
|
24
|
-
}
|
|
25
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface Record {
|
|
4
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
-
export interface Record {
|
|
4
|
-
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
-
direction: 'up' | 'down';
|
|
6
|
-
createdAt: string;
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MAIN = "app.bsky.graph.assertCreator#main";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MAIN = "app.bsky.graph.assertMember#main";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
-
export interface Record {
|
|
4
|
-
assertion: string;
|
|
5
|
-
subject: AppBskyActorRef.Main;
|
|
6
|
-
createdAt: string;
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
-
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
4
|
-
export interface Record {
|
|
5
|
-
originator: AppBskyActorRef.Main;
|
|
6
|
-
assertion: ComAtprotoRepoStrongRef.Main;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
[k: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
11
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
export interface QueryParams {
|
|
5
|
-
author?: string;
|
|
6
|
-
subject?: string;
|
|
7
|
-
assertion?: string;
|
|
8
|
-
confirmed?: boolean;
|
|
9
|
-
limit?: number;
|
|
10
|
-
before?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type InputSchema = undefined;
|
|
13
|
-
export interface OutputSchema {
|
|
14
|
-
cursor?: string;
|
|
15
|
-
assertions: Assertion[];
|
|
16
|
-
[k: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
export interface CallOptions {
|
|
19
|
-
headers?: Headers;
|
|
20
|
-
}
|
|
21
|
-
export interface Response {
|
|
22
|
-
success: boolean;
|
|
23
|
-
headers: Headers;
|
|
24
|
-
data: OutputSchema;
|
|
25
|
-
}
|
|
26
|
-
export declare function toKnownErr(e: any): any;
|
|
27
|
-
export interface Assertion {
|
|
28
|
-
uri: string;
|
|
29
|
-
cid: string;
|
|
30
|
-
assertion: string;
|
|
31
|
-
confirmation?: Confirmation;
|
|
32
|
-
author: AppBskyActorRef.WithInfo;
|
|
33
|
-
subject: AppBskyActorRef.WithInfo;
|
|
34
|
-
indexedAt: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
[k: string]: unknown;
|
|
37
|
-
}
|
|
38
|
-
export declare function isAssertion(v: unknown): v is Assertion;
|
|
39
|
-
export declare function validateAssertion(v: unknown): ValidationResult;
|
|
40
|
-
export interface Confirmation {
|
|
41
|
-
uri: string;
|
|
42
|
-
cid: string;
|
|
43
|
-
indexedAt: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
[k: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
export declare function isConfirmation(v: unknown): v is Confirmation;
|
|
48
|
-
export declare function validateConfirmation(v: unknown): ValidationResult;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
5
|
-
export interface QueryParams {
|
|
6
|
-
actor: string;
|
|
7
|
-
limit?: number;
|
|
8
|
-
before?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare type InputSchema = undefined;
|
|
11
|
-
export interface OutputSchema {
|
|
12
|
-
subject: AppBskyActorRef.WithInfo;
|
|
13
|
-
cursor?: string;
|
|
14
|
-
members: Member[];
|
|
15
|
-
[k: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
export interface CallOptions {
|
|
18
|
-
headers?: Headers;
|
|
19
|
-
}
|
|
20
|
-
export interface Response {
|
|
21
|
-
success: boolean;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
data: OutputSchema;
|
|
24
|
-
}
|
|
25
|
-
export declare function toKnownErr(e: any): any;
|
|
26
|
-
export interface Member {
|
|
27
|
-
did: string;
|
|
28
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
29
|
-
handle: string;
|
|
30
|
-
displayName?: string;
|
|
31
|
-
createdAt?: string;
|
|
32
|
-
indexedAt: string;
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
export declare function isMember(v: unknown): v is Member;
|
|
36
|
-
export declare function validateMember(v: unknown): ValidationResult;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
5
|
-
export interface QueryParams {
|
|
6
|
-
actor: string;
|
|
7
|
-
limit?: number;
|
|
8
|
-
before?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare type InputSchema = undefined;
|
|
11
|
-
export interface OutputSchema {
|
|
12
|
-
subject: AppBskyActorRef.WithInfo;
|
|
13
|
-
cursor?: string;
|
|
14
|
-
memberships: Membership[];
|
|
15
|
-
[k: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
export interface CallOptions {
|
|
18
|
-
headers?: Headers;
|
|
19
|
-
}
|
|
20
|
-
export interface Response {
|
|
21
|
-
success: boolean;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
data: OutputSchema;
|
|
24
|
-
}
|
|
25
|
-
export declare function toKnownErr(e: any): any;
|
|
26
|
-
export interface Membership {
|
|
27
|
-
did: string;
|
|
28
|
-
declaration: AppBskySystemDeclRef.Main;
|
|
29
|
-
handle: string;
|
|
30
|
-
displayName?: string;
|
|
31
|
-
createdAt?: string;
|
|
32
|
-
indexedAt: string;
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
export declare function isMembership(v: unknown): v is Membership;
|
|
36
|
-
export declare function validateMembership(v: unknown): ValidationResult;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
-
export interface Record {
|
|
3
|
-
subject: string;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
[k: string]: unknown;
|
|
6
|
-
}
|
|
7
|
-
export declare function isRecord(v: unknown): v is Record;
|
|
8
|
-
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
user: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
list: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
user: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export interface InputSchema {
|
|
5
|
-
list: string;
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface CallOptions {
|
|
9
|
-
headers?: Headers;
|
|
10
|
-
qp?: QueryParams;
|
|
11
|
-
encoding: 'application/json';
|
|
12
|
-
}
|
|
13
|
-
export interface Response {
|
|
14
|
-
success: boolean;
|
|
15
|
-
headers: Headers;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
export interface QueryParams {
|
|
3
|
-
}
|
|
4
|
-
export declare type InputSchema = undefined;
|
|
5
|
-
export interface OutputSchema {
|
|
6
|
-
count: number;
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface CallOptions {
|
|
10
|
-
headers?: Headers;
|
|
11
|
-
}
|
|
12
|
-
export interface Response {
|
|
13
|
-
success: boolean;
|
|
14
|
-
headers: Headers;
|
|
15
|
-
data: OutputSchema;
|
|
16
|
-
}
|
|
17
|
-
export declare function toKnownErr(e: any): any;
|