@atproto/pds 0.4.6 → 0.4.7

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,14 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`971d3e4c2`](https://github.com/bluesky-social/atproto/commit/971d3e4c26ecfda746e83d458391715752ea7064) Thanks [@devinivy](https://github.com/devinivy)! - PDS operators may configure a public contact email
8
+
9
+ - Updated dependencies [[`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5)]:
10
+ - @atproto/api@0.11.1
11
+
3
12
  ## 0.4.6
4
13
 
5
14
  ### Patch Changes
@@ -28,6 +28,7 @@ export type ServiceConfig = {
28
28
  termsOfServiceUrl?: string;
29
29
  acceptingImports: boolean;
30
30
  blobUploadLimit: number;
31
+ contactEmailAddress?: string;
31
32
  devMode: boolean;
32
33
  };
33
34
  export type DatabaseConfig = {
@@ -6,6 +6,7 @@ export type ServerEnvironment = {
6
6
  version?: string;
7
7
  privacyPolicyUrl?: string;
8
8
  termsOfServiceUrl?: string;
9
+ contactEmailAddress?: string;
9
10
  acceptingImports?: boolean;
10
11
  blobUploadLimit?: number;
11
12
  devMode?: boolean;
package/dist/index.js CHANGED
@@ -215145,6 +215145,11 @@ var schemaDict = {
215145
215145
  description: "URLs of service policy documents.",
215146
215146
  ref: "lex:com.atproto.server.describeServer#links"
215147
215147
  },
215148
+ contact: {
215149
+ type: "ref",
215150
+ description: "Contact information",
215151
+ ref: "lex:com.atproto.server.describeServer#contact"
215152
+ },
215148
215153
  did: {
215149
215154
  type: "string",
215150
215155
  format: "did"
@@ -215163,6 +215168,14 @@ var schemaDict = {
215163
215168
  type: "string"
215164
215169
  }
215165
215170
  }
215171
+ },
215172
+ contact: {
215173
+ type: "object",
215174
+ properties: {
215175
+ email: {
215176
+ type: "string"
215177
+ }
215178
+ }
215166
215179
  }
215167
215180
  }
215168
215181
  },
@@ -236600,13 +236613,17 @@ function describeServer_default(server, ctx) {
236600
236613
  const inviteCodeRequired = ctx.cfg.invites.required;
236601
236614
  const privacyPolicy = ctx.cfg.service.privacyPolicyUrl;
236602
236615
  const termsOfService = ctx.cfg.service.termsOfServiceUrl;
236616
+ const contactEmailAddress = ctx.cfg.service.contactEmailAddress;
236603
236617
  return {
236604
236618
  encoding: "application/json",
236605
236619
  body: {
236606
236620
  did: ctx.cfg.service.did,
236607
236621
  availableUserDomains,
236608
236622
  inviteCodeRequired,
236609
- links: { privacyPolicy, termsOfService }
236623
+ links: { privacyPolicy, termsOfService },
236624
+ contact: {
236625
+ email: contactEmailAddress
236626
+ }
236610
236627
  }
236611
236628
  };
236612
236629
  });
@@ -241770,6 +241787,11 @@ var schemaDict2 = {
241770
241787
  description: "URLs of service policy documents.",
241771
241788
  ref: "lex:com.atproto.server.describeServer#links"
241772
241789
  },
241790
+ contact: {
241791
+ type: "ref",
241792
+ description: "Contact information",
241793
+ ref: "lex:com.atproto.server.describeServer#contact"
241794
+ },
241773
241795
  did: {
241774
241796
  type: "string",
241775
241797
  format: "did"
@@ -241788,6 +241810,14 @@ var schemaDict2 = {
241788
241810
  type: "string"
241789
241811
  }
241790
241812
  }
241813
+ },
241814
+ contact: {
241815
+ type: "object",
241816
+ properties: {
241817
+ email: {
241818
+ type: "string"
241819
+ }
241820
+ }
241791
241821
  }
241792
241822
  }
241793
241823
  },
@@ -250714,6 +250744,7 @@ var _AtpAgent = class {
250714
250744
  inst.labelersHeader = this.labelersHeader;
250715
250745
  inst.proxyHeader = this.proxyHeader;
250716
250746
  inst.pdsUrl = this.pdsUrl;
250747
+ inst.api.xrpc.uri = this.pdsUrl || this.service;
250717
250748
  }
250718
250749
  withProxy(serviceType, did2) {
250719
250750
  const inst = this.clone();
@@ -254481,6 +254512,7 @@ var envToCfg = (env) => {
254481
254512
  version: env.version,
254482
254513
  privacyPolicyUrl: env.privacyPolicyUrl,
254483
254514
  termsOfServiceUrl: env.termsOfServiceUrl,
254515
+ contactEmailAddress: env.contactEmailAddress,
254484
254516
  acceptingImports: env.acceptingImports ?? true,
254485
254517
  blobUploadLimit: env.blobUploadLimit ?? 5 * 1024 * 1024,
254486
254518
  devMode: env.devMode ?? false
@@ -254667,6 +254699,7 @@ var readEnv = () => {
254667
254699
  version: envStr("PDS_VERSION"),
254668
254700
  privacyPolicyUrl: envStr("PDS_PRIVACY_POLICY_URL"),
254669
254701
  termsOfServiceUrl: envStr("PDS_TERMS_OF_SERVICE_URL"),
254702
+ contactEmailAddress: envStr("PDS_CONTACT_EMAIL_ADDRESS"),
254670
254703
  acceptingImports: envBool("PDS_ACCEPTING_REPO_IMPORTS"),
254671
254704
  blobUploadLimit: envInt("PDS_BLOB_UPLOAD_LIMIT"),
254672
254705
  devMode: envBool("PDS_DEV_MODE"),