@atproto/pds 0.3.13 → 0.3.14
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/CHANGELOG.md +7 -0
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +3 -0
- package/dist/index.js +135 -8
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/lexicons.d.ts +48 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.d.ts +39 -0
- package/package.json +5 -5
- package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +21 -0
- package/src/api/app/bsky/unspecced/index.ts +2 -0
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +50 -0
- package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +65 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -78984,7 +78984,7 @@ if (cid) {
|
|
78984
78984
|
};
|
78985
78985
|
var AxiosTransformStream_default = AxiosTransformStream;
|
78986
78986
|
var import_events4 = __toESM2(require("events"), 1);
|
78987
|
-
var
|
78987
|
+
var import_util82 = require("util");
|
78988
78988
|
var import_stream22 = require("stream");
|
78989
78989
|
var { asyncIterator } = Symbol;
|
78990
78990
|
var readBlob = async function* (blob2) {
|
@@ -79000,7 +79000,7 @@ if (cid) {
|
|
79000
79000
|
};
|
79001
79001
|
var readBlob_default = readBlob;
|
79002
79002
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
79003
|
-
var textEncoder4 = new
|
79003
|
+
var textEncoder4 = new import_util82.TextEncoder();
|
79004
79004
|
var CRLF = "\r\n";
|
79005
79005
|
var CRLF_BYTES = textEncoder4.encode(CRLF);
|
79006
79006
|
var CRLF_BYTES_COUNT = 2;
|
@@ -220362,6 +220362,53 @@ var schemaDict = {
|
|
220362
220362
|
}
|
220363
220363
|
}
|
220364
220364
|
},
|
220365
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
220366
|
+
lexicon: 1,
|
220367
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
220368
|
+
defs: {
|
220369
|
+
main: {
|
220370
|
+
type: "query",
|
220371
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
220372
|
+
parameters: {
|
220373
|
+
type: "params",
|
220374
|
+
properties: {}
|
220375
|
+
},
|
220376
|
+
output: {
|
220377
|
+
encoding: "application/json",
|
220378
|
+
schema: {
|
220379
|
+
type: "object",
|
220380
|
+
required: ["suggestions"],
|
220381
|
+
properties: {
|
220382
|
+
suggestions: {
|
220383
|
+
type: "array",
|
220384
|
+
items: {
|
220385
|
+
type: "ref",
|
220386
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
220387
|
+
}
|
220388
|
+
}
|
220389
|
+
}
|
220390
|
+
}
|
220391
|
+
}
|
220392
|
+
},
|
220393
|
+
suggestion: {
|
220394
|
+
type: "object",
|
220395
|
+
required: ["tag", "subjectType", "subject"],
|
220396
|
+
properties: {
|
220397
|
+
tag: {
|
220398
|
+
type: "string"
|
220399
|
+
},
|
220400
|
+
subjectType: {
|
220401
|
+
type: "string",
|
220402
|
+
knownValues: ["actor", "feed"]
|
220403
|
+
},
|
220404
|
+
subject: {
|
220405
|
+
type: "string",
|
220406
|
+
format: "uri"
|
220407
|
+
}
|
220408
|
+
}
|
220409
|
+
}
|
220410
|
+
}
|
220411
|
+
},
|
220365
220412
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
220366
220413
|
lexicon: 1,
|
220367
220414
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
@@ -220674,6 +220721,7 @@ var ids = {
|
|
220674
220721
|
AppBskyRichtextFacet: "app.bsky.richtext.facet",
|
220675
220722
|
AppBskyUnspeccedDefs: "app.bsky.unspecced.defs",
|
220676
220723
|
AppBskyUnspeccedGetPopularFeedGenerators: "app.bsky.unspecced.getPopularFeedGenerators",
|
220724
|
+
AppBskyUnspeccedGetTaggedSuggestions: "app.bsky.unspecced.getTaggedSuggestions",
|
220677
220725
|
AppBskyUnspeccedGetTimelineSkeleton: "app.bsky.unspecced.getTimelineSkeleton",
|
220678
220726
|
AppBskyUnspeccedSearchActorsSkeleton: "app.bsky.unspecced.searchActorsSkeleton",
|
220679
220727
|
AppBskyUnspeccedSearchPostsSkeleton: "app.bsky.unspecced.searchPostsSkeleton"
|
@@ -245334,6 +245382,53 @@ var schemaDict2 = {
|
|
245334
245382
|
}
|
245335
245383
|
}
|
245336
245384
|
},
|
245385
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
245386
|
+
lexicon: 1,
|
245387
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
245388
|
+
defs: {
|
245389
|
+
main: {
|
245390
|
+
type: "query",
|
245391
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
245392
|
+
parameters: {
|
245393
|
+
type: "params",
|
245394
|
+
properties: {}
|
245395
|
+
},
|
245396
|
+
output: {
|
245397
|
+
encoding: "application/json",
|
245398
|
+
schema: {
|
245399
|
+
type: "object",
|
245400
|
+
required: ["suggestions"],
|
245401
|
+
properties: {
|
245402
|
+
suggestions: {
|
245403
|
+
type: "array",
|
245404
|
+
items: {
|
245405
|
+
type: "ref",
|
245406
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
245407
|
+
}
|
245408
|
+
}
|
245409
|
+
}
|
245410
|
+
}
|
245411
|
+
}
|
245412
|
+
},
|
245413
|
+
suggestion: {
|
245414
|
+
type: "object",
|
245415
|
+
required: ["tag", "subjectType", "subject"],
|
245416
|
+
properties: {
|
245417
|
+
tag: {
|
245418
|
+
type: "string"
|
245419
|
+
},
|
245420
|
+
subjectType: {
|
245421
|
+
type: "string",
|
245422
|
+
knownValues: ["actor", "feed"]
|
245423
|
+
},
|
245424
|
+
subject: {
|
245425
|
+
type: "string",
|
245426
|
+
format: "uri"
|
245427
|
+
}
|
245428
|
+
}
|
245429
|
+
}
|
245430
|
+
}
|
245431
|
+
},
|
245337
245432
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
245338
245433
|
lexicon: 1,
|
245339
245434
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
@@ -246638,13 +246733,20 @@ function toKnownErr113(e) {
|
|
246638
246733
|
return e;
|
246639
246734
|
}
|
246640
246735
|
|
246736
|
+
// ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
|
246737
|
+
function toKnownErr114(e) {
|
246738
|
+
if (e instanceof XRPCError) {
|
246739
|
+
}
|
246740
|
+
return e;
|
246741
|
+
}
|
246742
|
+
|
246641
246743
|
// ../api/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts
|
246642
246744
|
var UnknownFeedError3 = class extends XRPCError {
|
246643
246745
|
constructor(src3) {
|
246644
246746
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246645
246747
|
}
|
246646
246748
|
};
|
246647
|
-
function
|
246749
|
+
function toKnownErr115(e) {
|
246648
246750
|
if (e instanceof XRPCError) {
|
246649
246751
|
if (e.error === "UnknownFeed")
|
246650
246752
|
return new UnknownFeedError3(e);
|
@@ -246658,7 +246760,7 @@ var BadQueryStringError2 = class extends XRPCError {
|
|
246658
246760
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246659
246761
|
}
|
246660
246762
|
};
|
246661
|
-
function
|
246763
|
+
function toKnownErr116(e) {
|
246662
246764
|
if (e instanceof XRPCError) {
|
246663
246765
|
if (e.error === "BadQueryString")
|
246664
246766
|
return new BadQueryStringError2(e);
|
@@ -246672,7 +246774,7 @@ var BadQueryStringError3 = class extends XRPCError {
|
|
246672
246774
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246673
246775
|
}
|
246674
246776
|
};
|
246675
|
-
function
|
246777
|
+
function toKnownErr117(e) {
|
246676
246778
|
if (e instanceof XRPCError) {
|
246677
246779
|
if (e.error === "BadQueryString")
|
246678
246780
|
return new BadQueryStringError3(e);
|
@@ -247685,19 +247787,24 @@ var AppBskyUnspeccedNS = class {
|
|
247685
247787
|
throw toKnownErr113(e);
|
247686
247788
|
});
|
247687
247789
|
}
|
247790
|
+
getTaggedSuggestions(params2, opts) {
|
247791
|
+
return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
|
247792
|
+
throw toKnownErr114(e);
|
247793
|
+
});
|
247794
|
+
}
|
247688
247795
|
getTimelineSkeleton(params2, opts) {
|
247689
247796
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
247690
|
-
throw
|
247797
|
+
throw toKnownErr115(e);
|
247691
247798
|
});
|
247692
247799
|
}
|
247693
247800
|
searchActorsSkeleton(params2, opts) {
|
247694
247801
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
247695
|
-
throw
|
247802
|
+
throw toKnownErr116(e);
|
247696
247803
|
});
|
247697
247804
|
}
|
247698
247805
|
searchPostsSkeleton(params2, opts) {
|
247699
247806
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
247700
|
-
throw
|
247807
|
+
throw toKnownErr117(e);
|
247701
247808
|
});
|
247702
247809
|
}
|
247703
247810
|
};
|
@@ -249384,9 +249491,25 @@ function getPopularFeedGenerators_default(server, ctx) {
|
|
249384
249491
|
});
|
249385
249492
|
}
|
249386
249493
|
|
249494
|
+
// src/api/app/bsky/unspecced/getTaggedSuggestions.ts
|
249495
|
+
function getTaggedSuggestions_default(server, ctx) {
|
249496
|
+
server.app.bsky.unspecced.getTaggedSuggestions({
|
249497
|
+
auth: ctx.authVerifier.access,
|
249498
|
+
handler: async ({ auth, params: params2 }) => {
|
249499
|
+
const requester = auth.credentials.did;
|
249500
|
+
const res = await ctx.appViewAgent.api.app.bsky.unspecced.getTaggedSuggestions(params2, await ctx.appviewAuthHeaders(requester));
|
249501
|
+
return {
|
249502
|
+
encoding: "application/json",
|
249503
|
+
body: res.data
|
249504
|
+
};
|
249505
|
+
}
|
249506
|
+
});
|
249507
|
+
}
|
249508
|
+
|
249387
249509
|
// src/api/app/bsky/unspecced/index.ts
|
249388
249510
|
function unspecced_default(server, ctx) {
|
249389
249511
|
getPopularFeedGenerators_default(server, ctx);
|
249512
|
+
getTaggedSuggestions_default(server, ctx);
|
249390
249513
|
}
|
249391
249514
|
|
249392
249515
|
// src/api/app/bsky/index.ts
|
@@ -250048,6 +250171,10 @@ var AppBskyUnspeccedNS2 = class {
|
|
250048
250171
|
const nsid2 = "app.bsky.unspecced.getPopularFeedGenerators";
|
250049
250172
|
return this._server.xrpc.method(nsid2, cfg);
|
250050
250173
|
}
|
250174
|
+
getTaggedSuggestions(cfg) {
|
250175
|
+
const nsid2 = "app.bsky.unspecced.getTaggedSuggestions";
|
250176
|
+
return this._server.xrpc.method(nsid2, cfg);
|
250177
|
+
}
|
250051
250178
|
getTimelineSkeleton(cfg) {
|
250052
250179
|
const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
|
250053
250180
|
return this._server.xrpc.method(nsid2, cfg);
|