@atproto/pds 0.4.32 → 0.4.33
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +76 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +76 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js.map +1 -0
- package/package.json +4 -4
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +77 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/app/bsky/graph/getKnownFollowers.ts +50 -0
- package/tests/handle-validation.test.ts +1 -1
- package/tests/proxied/__snapshots__/views.test.ts.snap +77 -4
@@ -72,10 +72,19 @@ export interface ViewerState {
|
|
72
72
|
blockingByList?: AppBskyGraphDefs.ListViewBasic;
|
73
73
|
following?: string;
|
74
74
|
followedBy?: string;
|
75
|
+
knownFollowers?: KnownFollowers;
|
75
76
|
[k: string]: unknown;
|
76
77
|
}
|
77
78
|
export declare function isViewerState(v: unknown): v is ViewerState;
|
78
79
|
export declare function validateViewerState(v: unknown): ValidationResult;
|
80
|
+
/** The subject's followers whom you also follow */
|
81
|
+
export interface KnownFollowers {
|
82
|
+
count: number;
|
83
|
+
followers: ProfileViewBasic[];
|
84
|
+
[k: string]: unknown;
|
85
|
+
}
|
86
|
+
export declare function isKnownFollowers(v: unknown): v is KnownFollowers;
|
87
|
+
export declare function validateKnownFollowers(v: unknown): ValidationResult;
|
79
88
|
export type Preferences = (AdultContentPref | ContentLabelPref | SavedFeedsPref | SavedFeedsPrefV2 | PersonalDetailsPref | FeedViewPref | ThreadViewPref | InterestsPref | MutedWordsPref | HiddenPostsPref | {
|
80
89
|
$type: string;
|
81
90
|
[k: string]: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,gBAAgB,CAMpE;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAErE;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MA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AgB,CAEnE;AAED,MAAM,WAAW,eAAe;IAC9B,4DAA4D;IAC5D,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,eAAe,CAMlE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEpE;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,YAAY,CAM5D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEjE;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,eAAe,CAMlE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEpE"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateLabelerPrefItem = exports.isLabelerPrefItem = exports.validateLabelersPref = exports.isLabelersPref = exports.validateHiddenPostsPref = exports.isHiddenPostsPref = exports.validateMutedWordsPref = exports.isMutedWordsPref = exports.validateMutedWord = exports.isMutedWord = exports.validateInterestsPref = exports.isInterestsPref = exports.validateThreadViewPref = exports.isThreadViewPref = exports.validateFeedViewPref = exports.isFeedViewPref = exports.validatePersonalDetailsPref = exports.isPersonalDetailsPref = exports.validateSavedFeedsPref = exports.isSavedFeedsPref = exports.validateSavedFeedsPrefV2 = exports.isSavedFeedsPrefV2 = exports.validateSavedFeed = exports.isSavedFeed = exports.validateContentLabelPref = exports.isContentLabelPref = exports.validateAdultContentPref = exports.isAdultContentPref = exports.validateViewerState = exports.isViewerState = exports.validateProfileAssociatedChat = exports.isProfileAssociatedChat = exports.validateProfileAssociated = exports.isProfileAssociated = exports.validateProfileViewDetailed = exports.isProfileViewDetailed = exports.validateProfileView = exports.isProfileView = exports.validateProfileViewBasic = exports.isProfileViewBasic = void 0;
|
3
|
+
exports.validateLabelerPrefItem = exports.isLabelerPrefItem = exports.validateLabelersPref = exports.isLabelersPref = exports.validateHiddenPostsPref = exports.isHiddenPostsPref = exports.validateMutedWordsPref = exports.isMutedWordsPref = exports.validateMutedWord = exports.isMutedWord = exports.validateInterestsPref = exports.isInterestsPref = exports.validateThreadViewPref = exports.isThreadViewPref = exports.validateFeedViewPref = exports.isFeedViewPref = exports.validatePersonalDetailsPref = exports.isPersonalDetailsPref = exports.validateSavedFeedsPref = exports.isSavedFeedsPref = exports.validateSavedFeedsPrefV2 = exports.isSavedFeedsPrefV2 = exports.validateSavedFeed = exports.isSavedFeed = exports.validateContentLabelPref = exports.isContentLabelPref = exports.validateAdultContentPref = exports.isAdultContentPref = exports.validateKnownFollowers = exports.isKnownFollowers = exports.validateViewerState = exports.isViewerState = exports.validateProfileAssociatedChat = exports.isProfileAssociatedChat = exports.validateProfileAssociated = exports.isProfileAssociated = exports.validateProfileViewDetailed = exports.isProfileViewDetailed = exports.validateProfileView = exports.isProfileView = exports.validateProfileViewBasic = exports.isProfileViewBasic = void 0;
|
4
4
|
const lexicons_1 = require("../../../../lexicons");
|
5
5
|
const util_1 = require("../../../../util");
|
6
6
|
function isProfileViewBasic(v) {
|
@@ -63,6 +63,16 @@ function validateViewerState(v) {
|
|
63
63
|
return lexicons_1.lexicons.validate('app.bsky.actor.defs#viewerState', v);
|
64
64
|
}
|
65
65
|
exports.validateViewerState = validateViewerState;
|
66
|
+
function isKnownFollowers(v) {
|
67
|
+
return ((0, util_1.isObj)(v) &&
|
68
|
+
(0, util_1.hasProp)(v, '$type') &&
|
69
|
+
v.$type === 'app.bsky.actor.defs#knownFollowers');
|
70
|
+
}
|
71
|
+
exports.isKnownFollowers = isKnownFollowers;
|
72
|
+
function validateKnownFollowers(v) {
|
73
|
+
return lexicons_1.lexicons.validate('app.bsky.actor.defs#knownFollowers', v);
|
74
|
+
}
|
75
|
+
exports.validateKnownFollowers = validateKnownFollowers;
|
66
76
|
function isAdultContentPref(v) {
|
67
77
|
return ((0, util_1.isObj)(v) &&
|
68
78
|
(0, util_1.hasProp)(v, '$type') &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAgBjD,SAAgB,kBAAkB,CAAC,CAAU;IAC3C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,sCAAsC,CACnD,CAAA;AACH,CAAC;AAND,gDAMC;AAED,SAAgB,wBAAwB,CAAC,CAAU;IACjD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4DAEC;AAeD,SAAgB,aAAa,CAAC,CAAU;IACtC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,iCAAiC,CAC9C,CAAA;AACH,CAAC;AAND,sCAMC;AAED,SAAgB,mBAAmB,CAAC,CAAU;IAC5C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,iCAAiC,EAAE,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,kDAEC;AAmBD,SAAgB,qBAAqB,CAAC,CAAU;IAC9C,OAAO,CACL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,cAAc,CAAC,CAAU;IACvC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,kCAAkC,CAC/C,CAAA;AACH,CAAC;AAND,wCAMC;AAED,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,kCAAkC,EAAE,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,oDAEC;AAOD,SAAgB,iBAAiB,CAAC,CAAU;IAC1C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,qCAAqC,CAClD,CAAA;AACH,CAAC;AAND,8CAMC;AAED,SAAgB,uBAAuB,CAAC,CAAU;IAChD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0DAEC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
7
|
+
export interface QueryParams {
|
8
|
+
actor: string;
|
9
|
+
limit: number;
|
10
|
+
cursor?: string;
|
11
|
+
}
|
12
|
+
export type InputSchema = undefined;
|
13
|
+
export interface OutputSchema {
|
14
|
+
subject: AppBskyActorDefs.ProfileView;
|
15
|
+
cursor?: string;
|
16
|
+
followers: AppBskyActorDefs.ProfileView[];
|
17
|
+
[k: string]: unknown;
|
18
|
+
}
|
19
|
+
export type HandlerInput = undefined;
|
20
|
+
export interface HandlerSuccess {
|
21
|
+
encoding: 'application/json';
|
22
|
+
body: OutputSchema;
|
23
|
+
headers?: {
|
24
|
+
[key: string]: string;
|
25
|
+
};
|
26
|
+
}
|
27
|
+
export interface HandlerError {
|
28
|
+
status: number;
|
29
|
+
message?: string;
|
30
|
+
}
|
31
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
32
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
33
|
+
auth: HA;
|
34
|
+
params: QueryParams;
|
35
|
+
input: HandlerInput;
|
36
|
+
req: express.Request;
|
37
|
+
res: express.Response;
|
38
|
+
};
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
40
|
+
//# sourceMappingURL=getKnownFollowers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getKnownFollowers.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getKnownFollowers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getKnownFollowers.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getKnownFollowers.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.33",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"typed-emitter": "^2.1.0",
|
44
44
|
"uint8arrays": "3.0.0",
|
45
45
|
"zod": "^3.21.4",
|
46
|
-
"@atproto/api": "^0.12.
|
46
|
+
"@atproto/api": "^0.12.18",
|
47
47
|
"@atproto/aws": "^0.2.0",
|
48
48
|
"@atproto/common": "^0.4.0",
|
49
49
|
"@atproto/crypto": "^0.4.0",
|
@@ -70,8 +70,8 @@
|
|
70
70
|
"jest": "^28.1.2",
|
71
71
|
"ts-node": "^10.8.2",
|
72
72
|
"ws": "^8.12.0",
|
73
|
-
"@atproto/api": "^0.12.
|
74
|
-
"@atproto/bsky": "^0.0.
|
73
|
+
"@atproto/api": "^0.12.18",
|
74
|
+
"@atproto/bsky": "^0.0.61",
|
75
75
|
"@atproto/lex-cli": "^0.4.0"
|
76
76
|
},
|
77
77
|
"scripts": {
|
package/src/lexicon/index.ts
CHANGED
@@ -110,6 +110,7 @@ import * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteract
|
|
110
110
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
111
111
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
112
112
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
113
|
+
import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers'
|
113
114
|
import * as AppBskyGraphGetList from './types/app/bsky/graph/getList'
|
114
115
|
import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks'
|
115
116
|
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes'
|
@@ -1493,6 +1494,17 @@ export class AppBskyGraphNS {
|
|
1493
1494
|
return this._server.xrpc.method(nsid, cfg)
|
1494
1495
|
}
|
1495
1496
|
|
1497
|
+
getKnownFollowers<AV extends AuthVerifier>(
|
1498
|
+
cfg: ConfigOf<
|
1499
|
+
AV,
|
1500
|
+
AppBskyGraphGetKnownFollowers.Handler<ExtractAuth<AV>>,
|
1501
|
+
AppBskyGraphGetKnownFollowers.HandlerReqCtx<ExtractAuth<AV>>
|
1502
|
+
>,
|
1503
|
+
) {
|
1504
|
+
const nsid = 'app.bsky.graph.getKnownFollowers' // @ts-ignore
|
1505
|
+
return this._server.xrpc.method(nsid, cfg)
|
1506
|
+
}
|
1507
|
+
|
1496
1508
|
getList<AV extends AuthVerifier>(
|
1497
1509
|
cfg: ConfigOf<
|
1498
1510
|
AV,
|
package/src/lexicon/lexicons.ts
CHANGED
@@ -4107,6 +4107,29 @@ export const schemaDict = {
|
|
4107
4107
|
type: 'string',
|
4108
4108
|
format: 'at-uri',
|
4109
4109
|
},
|
4110
|
+
knownFollowers: {
|
4111
|
+
type: 'ref',
|
4112
|
+
ref: 'lex:app.bsky.actor.defs#knownFollowers',
|
4113
|
+
},
|
4114
|
+
},
|
4115
|
+
},
|
4116
|
+
knownFollowers: {
|
4117
|
+
type: 'object',
|
4118
|
+
description: "The subject's followers whom you also follow",
|
4119
|
+
required: ['count', 'followers'],
|
4120
|
+
properties: {
|
4121
|
+
count: {
|
4122
|
+
type: 'integer',
|
4123
|
+
},
|
4124
|
+
followers: {
|
4125
|
+
type: 'array',
|
4126
|
+
minLength: 0,
|
4127
|
+
maxLength: 5,
|
4128
|
+
items: {
|
4129
|
+
type: 'ref',
|
4130
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
4131
|
+
},
|
4132
|
+
},
|
4110
4133
|
},
|
4111
4134
|
},
|
4112
4135
|
preferences: {
|
@@ -7101,6 +7124,59 @@ export const schemaDict = {
|
|
7101
7124
|
},
|
7102
7125
|
},
|
7103
7126
|
},
|
7127
|
+
AppBskyGraphGetKnownFollowers: {
|
7128
|
+
lexicon: 1,
|
7129
|
+
id: 'app.bsky.graph.getKnownFollowers',
|
7130
|
+
defs: {
|
7131
|
+
main: {
|
7132
|
+
type: 'query',
|
7133
|
+
description:
|
7134
|
+
'Enumerates accounts which follow a specified account (actor) and are followed by the viewer.',
|
7135
|
+
parameters: {
|
7136
|
+
type: 'params',
|
7137
|
+
required: ['actor'],
|
7138
|
+
properties: {
|
7139
|
+
actor: {
|
7140
|
+
type: 'string',
|
7141
|
+
format: 'at-identifier',
|
7142
|
+
},
|
7143
|
+
limit: {
|
7144
|
+
type: 'integer',
|
7145
|
+
minimum: 1,
|
7146
|
+
maximum: 100,
|
7147
|
+
default: 50,
|
7148
|
+
},
|
7149
|
+
cursor: {
|
7150
|
+
type: 'string',
|
7151
|
+
},
|
7152
|
+
},
|
7153
|
+
},
|
7154
|
+
output: {
|
7155
|
+
encoding: 'application/json',
|
7156
|
+
schema: {
|
7157
|
+
type: 'object',
|
7158
|
+
required: ['subject', 'followers'],
|
7159
|
+
properties: {
|
7160
|
+
subject: {
|
7161
|
+
type: 'ref',
|
7162
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
7163
|
+
},
|
7164
|
+
cursor: {
|
7165
|
+
type: 'string',
|
7166
|
+
},
|
7167
|
+
followers: {
|
7168
|
+
type: 'array',
|
7169
|
+
items: {
|
7170
|
+
type: 'ref',
|
7171
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
7172
|
+
},
|
7173
|
+
},
|
7174
|
+
},
|
7175
|
+
},
|
7176
|
+
},
|
7177
|
+
},
|
7178
|
+
},
|
7179
|
+
},
|
7104
7180
|
AppBskyGraphGetList: {
|
7105
7181
|
lexicon: 1,
|
7106
7182
|
id: 'app.bsky.graph.getList',
|
@@ -11015,6 +11091,7 @@ export const ids = {
|
|
11015
11091
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
11016
11092
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
11017
11093
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
11094
|
+
AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers',
|
11018
11095
|
AppBskyGraphGetList: 'app.bsky.graph.getList',
|
11019
11096
|
AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks',
|
11020
11097
|
AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
|
@@ -133,6 +133,7 @@ export interface ViewerState {
|
|
133
133
|
blockingByList?: AppBskyGraphDefs.ListViewBasic
|
134
134
|
following?: string
|
135
135
|
followedBy?: string
|
136
|
+
knownFollowers?: KnownFollowers
|
136
137
|
[k: string]: unknown
|
137
138
|
}
|
138
139
|
|
@@ -148,6 +149,25 @@ export function validateViewerState(v: unknown): ValidationResult {
|
|
148
149
|
return lexicons.validate('app.bsky.actor.defs#viewerState', v)
|
149
150
|
}
|
150
151
|
|
152
|
+
/** The subject's followers whom you also follow */
|
153
|
+
export interface KnownFollowers {
|
154
|
+
count: number
|
155
|
+
followers: ProfileViewBasic[]
|
156
|
+
[k: string]: unknown
|
157
|
+
}
|
158
|
+
|
159
|
+
export function isKnownFollowers(v: unknown): v is KnownFollowers {
|
160
|
+
return (
|
161
|
+
isObj(v) &&
|
162
|
+
hasProp(v, '$type') &&
|
163
|
+
v.$type === 'app.bsky.actor.defs#knownFollowers'
|
164
|
+
)
|
165
|
+
}
|
166
|
+
|
167
|
+
export function validateKnownFollowers(v: unknown): ValidationResult {
|
168
|
+
return lexicons.validate('app.bsky.actor.defs#knownFollowers', v)
|
169
|
+
}
|
170
|
+
|
151
171
|
export type Preferences = (
|
152
172
|
| AdultContentPref
|
153
173
|
| ContentLabelPref
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as AppBskyActorDefs from '../actor/defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
actor: string
|
14
|
+
limit: number
|
15
|
+
cursor?: string
|
16
|
+
}
|
17
|
+
|
18
|
+
export type InputSchema = undefined
|
19
|
+
|
20
|
+
export interface OutputSchema {
|
21
|
+
subject: AppBskyActorDefs.ProfileView
|
22
|
+
cursor?: string
|
23
|
+
followers: AppBskyActorDefs.ProfileView[]
|
24
|
+
[k: string]: unknown
|
25
|
+
}
|
26
|
+
|
27
|
+
export type HandlerInput = undefined
|
28
|
+
|
29
|
+
export interface HandlerSuccess {
|
30
|
+
encoding: 'application/json'
|
31
|
+
body: OutputSchema
|
32
|
+
headers?: { [key: string]: string }
|
33
|
+
}
|
34
|
+
|
35
|
+
export interface HandlerError {
|
36
|
+
status: number
|
37
|
+
message?: string
|
38
|
+
}
|
39
|
+
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
41
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
42
|
+
auth: HA
|
43
|
+
params: QueryParams
|
44
|
+
input: HandlerInput
|
45
|
+
req: express.Request
|
46
|
+
res: express.Response
|
47
|
+
}
|
48
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
49
|
+
ctx: HandlerReqCtx<HA>,
|
50
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -34,7 +34,7 @@ describe('handle validation', () => {
|
|
34
34
|
const expectThrow = (handle: string, err: string) => {
|
35
35
|
expect(() => ensureHandleServiceConstraints(handle, domains)).toThrow(err)
|
36
36
|
}
|
37
|
-
const expectNotThrow = (handle: string,
|
37
|
+
const expectNotThrow = (handle: string, _memo: string) => {
|
38
38
|
expect(() =>
|
39
39
|
ensureHandleServiceConstraints(handle, domains),
|
40
40
|
).not.toThrow()
|
@@ -21,6 +21,28 @@ Object {
|
|
21
21
|
"blockedBy": false,
|
22
22
|
"followedBy": "record(1)",
|
23
23
|
"following": "record(0)",
|
24
|
+
"knownFollowers": Object {
|
25
|
+
"count": 1,
|
26
|
+
"followers": Array [
|
27
|
+
Object {
|
28
|
+
"did": "user(2)",
|
29
|
+
"handle": "dan.test",
|
30
|
+
"labels": Array [
|
31
|
+
Object {
|
32
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
33
|
+
"src": "did:example:labeler",
|
34
|
+
"uri": "user(2)",
|
35
|
+
"val": "repo-action-label",
|
36
|
+
},
|
37
|
+
],
|
38
|
+
"viewer": Object {
|
39
|
+
"blockedBy": false,
|
40
|
+
"following": "record(2)",
|
41
|
+
"muted": false,
|
42
|
+
},
|
43
|
+
},
|
44
|
+
],
|
45
|
+
},
|
24
46
|
"muted": false,
|
25
47
|
},
|
26
48
|
}
|
@@ -48,20 +70,49 @@ Object {
|
|
48
70
|
"cid": "cids(1)",
|
49
71
|
"cts": "1970-01-01T00:00:00.000Z",
|
50
72
|
"src": "user(0)",
|
51
|
-
"uri": "record(
|
73
|
+
"uri": "record(4)",
|
52
74
|
"val": "self-label-a",
|
53
75
|
},
|
54
76
|
Object {
|
55
77
|
"cid": "cids(1)",
|
56
78
|
"cts": "1970-01-01T00:00:00.000Z",
|
57
79
|
"src": "user(0)",
|
58
|
-
"uri": "record(
|
80
|
+
"uri": "record(4)",
|
59
81
|
"val": "self-label-b",
|
60
82
|
},
|
61
83
|
],
|
62
84
|
"postsCount": 4,
|
63
85
|
"viewer": Object {
|
64
86
|
"blockedBy": false,
|
87
|
+
"knownFollowers": Object {
|
88
|
+
"count": 2,
|
89
|
+
"followers": Array [
|
90
|
+
Object {
|
91
|
+
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
|
92
|
+
"did": "user(2)",
|
93
|
+
"displayName": "bobby",
|
94
|
+
"handle": "bob.test",
|
95
|
+
"labels": Array [],
|
96
|
+
"viewer": Object {
|
97
|
+
"blockedBy": false,
|
98
|
+
"followedBy": "record(1)",
|
99
|
+
"following": "record(0)",
|
100
|
+
"muted": false,
|
101
|
+
},
|
102
|
+
},
|
103
|
+
Object {
|
104
|
+
"did": "user(4)",
|
105
|
+
"handle": "carol.test",
|
106
|
+
"labels": Array [],
|
107
|
+
"viewer": Object {
|
108
|
+
"blockedBy": false,
|
109
|
+
"followedBy": "record(3)",
|
110
|
+
"following": "record(2)",
|
111
|
+
"muted": false,
|
112
|
+
},
|
113
|
+
},
|
114
|
+
],
|
115
|
+
},
|
65
116
|
"muted": false,
|
66
117
|
},
|
67
118
|
},
|
@@ -83,8 +134,30 @@ Object {
|
|
83
134
|
"postsCount": 3,
|
84
135
|
"viewer": Object {
|
85
136
|
"blockedBy": false,
|
86
|
-
"followedBy": "record(
|
87
|
-
"following": "record(
|
137
|
+
"followedBy": "record(1)",
|
138
|
+
"following": "record(0)",
|
139
|
+
"knownFollowers": Object {
|
140
|
+
"count": 1,
|
141
|
+
"followers": Array [
|
142
|
+
Object {
|
143
|
+
"did": "user(5)",
|
144
|
+
"handle": "dan.test",
|
145
|
+
"labels": Array [
|
146
|
+
Object {
|
147
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
148
|
+
"src": "did:example:labeler",
|
149
|
+
"uri": "user(5)",
|
150
|
+
"val": "repo-action-label",
|
151
|
+
},
|
152
|
+
],
|
153
|
+
"viewer": Object {
|
154
|
+
"blockedBy": false,
|
155
|
+
"following": "record(5)",
|
156
|
+
"muted": false,
|
157
|
+
},
|
158
|
+
},
|
159
|
+
],
|
160
|
+
},
|
88
161
|
"muted": false,
|
89
162
|
},
|
90
163
|
},
|