@atproto/pds 0.4.6 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/config/config.d.ts +1 -0
- package/dist/config/env.d.ts +1 -0
- package/dist/index.js +34 -1
- 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 +6 -6
- package/src/api/com/atproto/server/describeServer.ts +4 -0
- package/src/config/config.ts +2 -0
- package/src/config/env.ts +2 -0
- package/src/lexicon/lexicons.ts +13 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
- package/tests/account.test.ts +2 -0
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +0 -3
- package/tests/proxied/__snapshots__/views.test.ts.snap +0 -73
- package/tests/proxied/admin.test.ts +22 -17
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.8
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`7dd9941b7`](https://github.com/bluesky-social/atproto/commit/7dd9941b73dbbd82601740e021cc87d765af60ca)]:
|
8
|
+
- @atproto/api@0.11.2
|
9
|
+
|
10
|
+
## 0.4.7
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- [`971d3e4c2`](https://github.com/bluesky-social/atproto/commit/971d3e4c26ecfda746e83d458391715752ea7064) Thanks [@devinivy](https://github.com/devinivy)! - PDS operators may configure a public contact email
|
15
|
+
|
16
|
+
- Updated dependencies [[`219480764`](https://github.com/bluesky-social/atproto/commit/2194807644cbdb0021e867437693300c1b0e55f5)]:
|
17
|
+
- @atproto/api@0.11.1
|
18
|
+
|
3
19
|
## 0.4.6
|
4
20
|
|
5
21
|
### Patch Changes
|
package/dist/config/config.d.ts
CHANGED
package/dist/config/env.d.ts
CHANGED
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"),
|