@atproto/bsky 0.0.38 → 0.0.39
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/index.js +32 -4
- package/dist/index.js.map +2 -2
- package/dist/lexicon/lexicons.d.ts +13 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +7 -0
- package/package.json +5 -5
- package/src/data-plane/server/routes/labels.ts +4 -2
- package/src/lexicon/lexicons.ts +13 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
- package/src/views/index.ts +1 -1
- package/tests/__snapshots__/feed-generation.test.ts.snap +0 -45
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +0 -8
- package/tests/views/__snapshots__/author-feed.test.ts.snap +0 -46
- package/tests/views/__snapshots__/block-lists.test.ts.snap +0 -17
- package/tests/views/__snapshots__/blocks.test.ts.snap +0 -9
- package/tests/views/__snapshots__/labeler-service.test.ts.snap +0 -4
- package/tests/views/__snapshots__/list-feed.test.ts.snap +0 -20
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +0 -18
- package/tests/views/__snapshots__/mutes.test.ts.snap +0 -4
- package/tests/views/__snapshots__/notifications.test.ts.snap +0 -9
- package/tests/views/__snapshots__/posts.test.ts.snap +0 -7
- package/tests/views/__snapshots__/profile.test.ts.snap +0 -6
- package/tests/views/__snapshots__/thread.test.ts.snap +0 -38
- package/tests/views/__snapshots__/timeline.test.ts.snap +0 -145
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -136419,6 +136419,11 @@ var schemaDict = {
|
|
|
136419
136419
|
description: "URLs of service policy documents.",
|
|
136420
136420
|
ref: "lex:com.atproto.server.describeServer#links"
|
|
136421
136421
|
},
|
|
136422
|
+
contact: {
|
|
136423
|
+
type: "ref",
|
|
136424
|
+
description: "Contact information",
|
|
136425
|
+
ref: "lex:com.atproto.server.describeServer#contact"
|
|
136426
|
+
},
|
|
136422
136427
|
did: {
|
|
136423
136428
|
type: "string",
|
|
136424
136429
|
format: "did"
|
|
@@ -136437,6 +136442,14 @@ var schemaDict = {
|
|
|
136437
136442
|
type: "string"
|
|
136438
136443
|
}
|
|
136439
136444
|
}
|
|
136445
|
+
},
|
|
136446
|
+
contact: {
|
|
136447
|
+
type: "object",
|
|
136448
|
+
properties: {
|
|
136449
|
+
email: {
|
|
136450
|
+
type: "string"
|
|
136451
|
+
}
|
|
136452
|
+
}
|
|
136440
136453
|
}
|
|
136441
136454
|
}
|
|
136442
136455
|
},
|
|
@@ -145373,6 +145386,7 @@ var _AtpAgent = class {
|
|
|
145373
145386
|
inst.labelersHeader = this.labelersHeader;
|
|
145374
145387
|
inst.proxyHeader = this.proxyHeader;
|
|
145375
145388
|
inst.pdsUrl = this.pdsUrl;
|
|
145389
|
+
inst.api.xrpc.uri = this.pdsUrl || this.service;
|
|
145376
145390
|
}
|
|
145377
145391
|
withProxy(serviceType, did2) {
|
|
145378
145392
|
const inst = this.clone();
|
|
@@ -150361,6 +150375,11 @@ var schemaDict2 = {
|
|
|
150361
150375
|
description: "URLs of service policy documents.",
|
|
150362
150376
|
ref: "lex:com.atproto.server.describeServer#links"
|
|
150363
150377
|
},
|
|
150378
|
+
contact: {
|
|
150379
|
+
type: "ref",
|
|
150380
|
+
description: "Contact information",
|
|
150381
|
+
ref: "lex:com.atproto.server.describeServer#contact"
|
|
150382
|
+
},
|
|
150364
150383
|
did: {
|
|
150365
150384
|
type: "string",
|
|
150366
150385
|
format: "did"
|
|
@@ -150379,6 +150398,14 @@ var schemaDict2 = {
|
|
|
150379
150398
|
type: "string"
|
|
150380
150399
|
}
|
|
150381
150400
|
}
|
|
150401
|
+
},
|
|
150402
|
+
contact: {
|
|
150403
|
+
type: "object",
|
|
150404
|
+
properties: {
|
|
150405
|
+
email: {
|
|
150406
|
+
type: "string"
|
|
150407
|
+
}
|
|
150408
|
+
}
|
|
150382
150409
|
}
|
|
150383
150410
|
}
|
|
150384
150411
|
},
|
|
@@ -175663,10 +175690,11 @@ var labels_default = (db) => ({
|
|
|
175663
175690
|
}
|
|
175664
175691
|
const res = await db.db.selectFrom("label").where("uri", "in", subjects).where("src", "in", issuers).selectAll().execute();
|
|
175665
175692
|
const labels = res.map((l) => {
|
|
175666
|
-
const formatted = {
|
|
175693
|
+
const formatted = noUndefinedVals({
|
|
175667
175694
|
...l,
|
|
175668
|
-
cid: l.cid === "" ? void 0 : l.cid
|
|
175669
|
-
|
|
175695
|
+
cid: l.cid === "" ? void 0 : l.cid,
|
|
175696
|
+
neg: l.neg === true ? true : void 0
|
|
175697
|
+
});
|
|
175670
175698
|
return fromString2(JSON.stringify(formatted), "utf8");
|
|
175671
175699
|
});
|
|
175672
175700
|
return { labels };
|
|
@@ -184406,7 +184434,7 @@ var Views = class {
|
|
|
184406
184434
|
const src3 = new AtUri(uri2).host;
|
|
184407
184435
|
const cts = typeof record.createdAt === "string" ? normalizeDatetimeAlways(record.createdAt) : new Date(0).toISOString();
|
|
184408
184436
|
return record.labels.values.map(({ val }) => {
|
|
184409
|
-
return { src: src3, uri: uri2, cid: cid2, val, cts
|
|
184437
|
+
return { src: src3, uri: uri2, cid: cid2, val, cts };
|
|
184410
184438
|
});
|
|
184411
184439
|
}
|
|
184412
184440
|
labeler(did2, state) {
|