@atproto/api 0.11.0 → 0.11.1

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,11 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2312](https://github.com/bluesky-social/atproto/pull/2312) [`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5) Thanks [@pfrazee](https://github.com/pfrazee)! - Fixed an issue that would cause agent clones to drop the PDS URI config.
8
+
3
9
  ## 0.11.0
4
10
 
5
11
  ### Minor Changes
@@ -2206,6 +2206,11 @@ export declare const schemaDict: {
2206
2206
  description: string;
2207
2207
  ref: string;
2208
2208
  };
2209
+ contact: {
2210
+ type: string;
2211
+ description: string;
2212
+ ref: string;
2213
+ };
2209
2214
  did: {
2210
2215
  type: string;
2211
2216
  format: string;
@@ -2225,6 +2230,14 @@ export declare const schemaDict: {
2225
2230
  };
2226
2231
  };
2227
2232
  };
2233
+ contact: {
2234
+ type: string;
2235
+ properties: {
2236
+ email: {
2237
+ type: string;
2238
+ };
2239
+ };
2240
+ };
2228
2241
  };
2229
2242
  };
2230
2243
  ComAtprotoServerGetAccountInviteCodes: {
@@ -8,6 +8,7 @@ export interface OutputSchema {
8
8
  phoneVerificationRequired?: boolean;
9
9
  availableUserDomains: string[];
10
10
  links?: Links;
11
+ contact?: Contact;
11
12
  did: string;
12
13
  [k: string]: unknown;
13
14
  }
@@ -27,3 +28,9 @@ export interface Links {
27
28
  }
28
29
  export declare function isLinks(v: unknown): v is Links;
29
30
  export declare function validateLinks(v: unknown): ValidationResult;
31
+ export interface Contact {
32
+ email?: string;
33
+ [k: string]: unknown;
34
+ }
35
+ export declare function isContact(v: unknown): v is Contact;
36
+ export declare function validateContact(v: unknown): ValidationResult;
package/dist/index.js CHANGED
@@ -18057,6 +18057,11 @@ var schemaDict = {
18057
18057
  description: "URLs of service policy documents.",
18058
18058
  ref: "lex:com.atproto.server.describeServer#links"
18059
18059
  },
18060
+ contact: {
18061
+ type: "ref",
18062
+ description: "Contact information",
18063
+ ref: "lex:com.atproto.server.describeServer#contact"
18064
+ },
18060
18065
  did: {
18061
18066
  type: "string",
18062
18067
  format: "did"
@@ -18075,6 +18080,14 @@ var schemaDict = {
18075
18080
  type: "string"
18076
18081
  }
18077
18082
  }
18083
+ },
18084
+ contact: {
18085
+ type: "object",
18086
+ properties: {
18087
+ email: {
18088
+ type: "string"
18089
+ }
18090
+ }
18078
18091
  }
18079
18092
  }
18080
18093
  },
@@ -25308,8 +25321,10 @@ function toKnownErr42(e) {
25308
25321
  // src/client/types/com/atproto/server/describeServer.ts
25309
25322
  var describeServer_exports = {};
25310
25323
  __export(describeServer_exports, {
25324
+ isContact: () => isContact,
25311
25325
  isLinks: () => isLinks,
25312
25326
  toKnownErr: () => toKnownErr43,
25327
+ validateContact: () => validateContact,
25313
25328
  validateLinks: () => validateLinks
25314
25329
  });
25315
25330
  function toKnownErr43(e) {
@@ -25323,6 +25338,12 @@ function isLinks(v) {
25323
25338
  function validateLinks(v) {
25324
25339
  return lexicons.validate("com.atproto.server.describeServer#links", v);
25325
25340
  }
25341
+ function isContact(v) {
25342
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.describeServer#contact";
25343
+ }
25344
+ function validateContact(v) {
25345
+ return lexicons.validate("com.atproto.server.describeServer#contact", v);
25346
+ }
25326
25347
 
25327
25348
  // src/client/types/com/atproto/server/getAccountInviteCodes.ts
25328
25349
  var getAccountInviteCodes_exports = {};
@@ -28931,6 +28952,7 @@ var _AtpAgent = class {
28931
28952
  inst.labelersHeader = this.labelersHeader;
28932
28953
  inst.proxyHeader = this.proxyHeader;
28933
28954
  inst.pdsUrl = this.pdsUrl;
28955
+ inst.api.xrpc.uri = this.pdsUrl || this.service;
28934
28956
  }
28935
28957
  withProxy(serviceType, did2) {
28936
28958
  const inst = this.clone();