@atproto/pds 0.3.0 → 0.3.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,23 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1788](https://github.com/bluesky-social/atproto/pull/1788) [`84e2d4d2`](https://github.com/bluesky-social/atproto/commit/84e2d4d2b6694f344d80c18672c78b650189d423) Thanks [@bnewbold](https://github.com/bnewbold)! - update license to "MIT or Apache2"
8
+
9
+ - Updated dependencies [[`ce49743d`](https://github.com/bluesky-social/atproto/commit/ce49743d7f8800d33116b88001d7b512553c2c89), [`84e2d4d2`](https://github.com/bluesky-social/atproto/commit/84e2d4d2b6694f344d80c18672c78b650189d423)]:
10
+ - @atproto/lexicon@0.3.0
11
+ - @atproto/xrpc@0.4.0
12
+ - @atproto/xrpc-server@0.4.0
13
+ - @atproto/identity@0.3.1
14
+ - @atproto/common@0.3.3
15
+ - @atproto/crypto@0.2.3
16
+ - @atproto/syntax@0.1.4
17
+ - @atproto/repo@0.3.4
18
+ - @atproto/api@0.6.22
19
+ - @atproto/aws@0.1.4
20
+
3
21
  ## 0.3.0
4
22
 
5
23
  ### Patch Changes
package/LICENSE.txt ADDED
@@ -0,0 +1,7 @@
1
+ Dual MIT/Apache-2.0 License
2
+
3
+ Copyright (c) 2022-2023 Bluesky PBC, and Contributors
4
+
5
+ Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
6
+
7
+ Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.
package/README.md CHANGED
@@ -9,4 +9,9 @@ If you are interested in self-hosting a PDS, you probably want this repository i
9
9
 
10
10
  ## License
11
11
 
12
- MIT License
12
+ This project is dual-licensed under MIT and Apache 2.0 terms:
13
+
14
+ - MIT license ([LICENSE-MIT.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-MIT.txt) or http://opensource.org/licenses/MIT)
15
+ - Apache License, Version 2.0, ([LICENSE-APACHE.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-APACHE.txt) or http://www.apache.org/licenses/LICENSE-2.0)
16
+
17
+ Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.
package/dist/index.js CHANGED
@@ -220318,7 +220318,9 @@ var schemaDict = {
220318
220318
  ref: "lex:com.atproto.moderation.defs#reasonType"
220319
220319
  },
220320
220320
  reason: {
220321
- type: "string"
220321
+ type: "string",
220322
+ maxGraphemes: 2e3,
220323
+ maxLength: 2e4
220322
220324
  },
220323
220325
  subject: {
220324
220326
  type: "union",
@@ -220967,7 +220969,7 @@ var schemaDict = {
220967
220969
  encoding: "application/json",
220968
220970
  schema: {
220969
220971
  type: "object",
220970
- required: ["handle", "email", "password"],
220972
+ required: ["handle"],
220971
220973
  properties: {
220972
220974
  email: {
220973
220975
  type: "string"
@@ -220990,7 +220992,7 @@ var schemaDict = {
220990
220992
  type: "string"
220991
220993
  },
220992
220994
  plcOp: {
220993
- type: "bytes"
220995
+ type: "unknown"
220994
220996
  }
220995
220997
  }
220996
220998
  }
@@ -221645,6 +221647,18 @@ var schemaDict = {
221645
221647
  main: {
221646
221648
  type: "procedure",
221647
221649
  description: "Reserve a repo signing key for account creation.",
221650
+ input: {
221651
+ encoding: "application/json",
221652
+ schema: {
221653
+ type: "object",
221654
+ properties: {
221655
+ did: {
221656
+ type: "string",
221657
+ description: "The did to reserve a new did:key for"
221658
+ }
221659
+ }
221660
+ }
221661
+ },
221648
221662
  output: {
221649
221663
  encoding: "application/json",
221650
221664
  schema: {
@@ -240527,7 +240541,11 @@ function createAccount_default(server, ctx) {
240527
240541
  },
240528
240542
  handler: async ({ input, req }) => {
240529
240543
  const { email, password, inviteCode } = input.body;
240530
- if (input.body.plcOp) {
240544
+ if (!email) {
240545
+ throw new InvalidRequestError('Missing input: "email"');
240546
+ } else if (!password) {
240547
+ throw new InvalidRequestError('Missing input: "password"');
240548
+ } else if (input.body.plcOp) {
240531
240549
  throw new InvalidRequestError('Unsupported input: "plcOp"');
240532
240550
  }
240533
240551
  if (ctx.cfg.invites.required && !inviteCode) {
@@ -244417,7 +244435,7 @@ var schemaDict2 = {
244417
244435
  encoding: "application/json",
244418
244436
  schema: {
244419
244437
  type: "object",
244420
- required: ["handle", "email", "password"],
244438
+ required: ["handle"],
244421
244439
  properties: {
244422
244440
  email: {
244423
244441
  type: "string"
@@ -244440,7 +244458,7 @@ var schemaDict2 = {
244440
244458
  type: "string"
244441
244459
  },
244442
244460
  plcOp: {
244443
- type: "bytes"
244461
+ type: "unknown"
244444
244462
  }
244445
244463
  }
244446
244464
  }
@@ -245095,6 +245113,18 @@ var schemaDict2 = {
245095
245113
  main: {
245096
245114
  type: "procedure",
245097
245115
  description: "Reserve a repo signing key for account creation.",
245116
+ input: {
245117
+ encoding: "application/json",
245118
+ schema: {
245119
+ type: "object",
245120
+ properties: {
245121
+ did: {
245122
+ type: "string",
245123
+ description: "The did to reserve a new did:key for"
245124
+ }
245125
+ }
245126
+ }
245127
+ },
245098
245128
  output: {
245099
245129
  encoding: "application/json",
245100
245130
  schema: {