@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atproto/bsky
2
2
 
3
+ ## 0.0.39
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5)]:
8
+ - @atproto/api@0.11.1
9
+
3
10
  ## 0.0.38
4
11
 
5
12
  ### Patch Changes
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, neg: false };
184437
+ return { src: src3, uri: uri2, cid: cid2, val, cts };
184410
184438
  });
184411
184439
  }
184412
184440
  labeler(did2, state) {