@atproto/bsky 0.0.141 → 0.0.142
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 +7 -0
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +2 -2
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.js +36 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/tables/actor.d.ts +2 -0
- package/dist/data-plane/server/db/tables/actor.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/actor.js.map +1 -1
- package/dist/data-plane/server/db/tables/verification.d.ts +18 -0
- package/dist/data-plane/server/db/tables/verification.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/verification.js +5 -0
- package/dist/data-plane/server/db/tables/verification.js.map +1 -0
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +2 -0
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/verification.d.ts +11 -0
- package/dist/data-plane/server/indexing/plugins/verification.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/verification.js +95 -0
- package/dist/data-plane/server/indexing/plugins/verification.js.map +1 -0
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +28 -1
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +11 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +19 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/label.d.ts +1 -0
- package/dist/hydration/label.d.ts.map +1 -1
- package/dist/hydration/label.js +7 -0
- package/dist/hydration/label.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +134 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +67 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +18 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +30 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +29 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +243 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +733 -5
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts +2 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +42 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +6 -6
- package/proto/bsky.proto +67 -0
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -2
- package/src/data-plane/server/db/database-schema.ts +3 -1
- package/src/data-plane/server/db/migrations/20250404T163421487Z-verifications.ts +39 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/actor.ts +3 -0
- package/src/data-plane/server/db/tables/verification.ts +20 -0
- package/src/data-plane/server/indexing/index.ts +8 -2
- package/src/data-plane/server/indexing/plugins/verification.ts +96 -0
- package/src/data-plane/server/routes/profile.ts +63 -19
- package/src/hydration/actor.ts +38 -0
- package/src/hydration/label.ts +12 -0
- package/src/lexicon/lexicons.ts +70 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +47 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +1 -0
- package/src/proto/bsky_connect.ts +35 -0
- package/src/proto/bsky_pb.ts +676 -0
- package/src/views/index.ts +60 -1
- package/tests/views/verification.test.ts +301 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -4391,6 +4391,10 @@ exports.schemaDict = {
|
|
|
4391
4391
|
type: 'string',
|
|
4392
4392
|
format: 'datetime',
|
|
4393
4393
|
},
|
|
4394
|
+
verification: {
|
|
4395
|
+
type: 'ref',
|
|
4396
|
+
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4397
|
+
},
|
|
4394
4398
|
},
|
|
4395
4399
|
},
|
|
4396
4400
|
profileView: {
|
|
@@ -4442,6 +4446,10 @@ exports.schemaDict = {
|
|
|
4442
4446
|
ref: 'lex:com.atproto.label.defs#label',
|
|
4443
4447
|
},
|
|
4444
4448
|
},
|
|
4449
|
+
verification: {
|
|
4450
|
+
type: 'ref',
|
|
4451
|
+
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4452
|
+
},
|
|
4445
4453
|
},
|
|
4446
4454
|
},
|
|
4447
4455
|
profileViewDetailed: {
|
|
@@ -4514,6 +4522,10 @@ exports.schemaDict = {
|
|
|
4514
4522
|
type: 'ref',
|
|
4515
4523
|
ref: 'lex:com.atproto.repo.strongRef',
|
|
4516
4524
|
},
|
|
4525
|
+
verification: {
|
|
4526
|
+
type: 'ref',
|
|
4527
|
+
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4528
|
+
},
|
|
4517
4529
|
},
|
|
4518
4530
|
},
|
|
4519
4531
|
profileAssociated: {
|
|
@@ -4602,6 +4614,57 @@ exports.schemaDict = {
|
|
|
4602
4614
|
},
|
|
4603
4615
|
},
|
|
4604
4616
|
},
|
|
4617
|
+
verificationState: {
|
|
4618
|
+
type: 'object',
|
|
4619
|
+
description: 'Represents the verification information about the user this object is attached to.',
|
|
4620
|
+
required: ['verifications', 'verifiedStatus', 'trustedVerifierStatus'],
|
|
4621
|
+
properties: {
|
|
4622
|
+
verifications: {
|
|
4623
|
+
type: 'array',
|
|
4624
|
+
description: 'All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.',
|
|
4625
|
+
items: {
|
|
4626
|
+
type: 'ref',
|
|
4627
|
+
ref: 'lex:app.bsky.actor.defs#verificationView',
|
|
4628
|
+
},
|
|
4629
|
+
},
|
|
4630
|
+
verifiedStatus: {
|
|
4631
|
+
type: 'string',
|
|
4632
|
+
description: "The user's status as a verified account.",
|
|
4633
|
+
knownValues: ['valid', 'invalid', 'none'],
|
|
4634
|
+
},
|
|
4635
|
+
trustedVerifierStatus: {
|
|
4636
|
+
type: 'string',
|
|
4637
|
+
description: "The user's status as a trusted verifier.",
|
|
4638
|
+
knownValues: ['valid', 'invalid', 'none'],
|
|
4639
|
+
},
|
|
4640
|
+
},
|
|
4641
|
+
},
|
|
4642
|
+
verificationView: {
|
|
4643
|
+
type: 'object',
|
|
4644
|
+
description: 'An individual verification for an associated subject.',
|
|
4645
|
+
required: ['issuer', 'uri', 'isValid', 'createdAt'],
|
|
4646
|
+
properties: {
|
|
4647
|
+
issuer: {
|
|
4648
|
+
type: 'string',
|
|
4649
|
+
description: 'The user who issued this verification.',
|
|
4650
|
+
format: 'did',
|
|
4651
|
+
},
|
|
4652
|
+
uri: {
|
|
4653
|
+
type: 'string',
|
|
4654
|
+
description: 'The AT-URI of the verification record.',
|
|
4655
|
+
format: 'at-uri',
|
|
4656
|
+
},
|
|
4657
|
+
isValid: {
|
|
4658
|
+
type: 'boolean',
|
|
4659
|
+
description: 'True if the verification passes validation, otherwise false.',
|
|
4660
|
+
},
|
|
4661
|
+
createdAt: {
|
|
4662
|
+
type: 'string',
|
|
4663
|
+
description: 'Timestamp when the verification was created.',
|
|
4664
|
+
format: 'datetime',
|
|
4665
|
+
},
|
|
4666
|
+
},
|
|
4667
|
+
},
|
|
4605
4668
|
preferences: {
|
|
4606
4669
|
type: 'array',
|
|
4607
4670
|
items: {
|
|
@@ -10650,6 +10713,10 @@ exports.schemaDict = {
|
|
|
10650
10713
|
type: 'boolean',
|
|
10651
10714
|
description: 'Set to true when the actor cannot actively participate in converations',
|
|
10652
10715
|
},
|
|
10716
|
+
verification: {
|
|
10717
|
+
type: 'ref',
|
|
10718
|
+
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
10719
|
+
},
|
|
10653
10720
|
},
|
|
10654
10721
|
},
|
|
10655
10722
|
},
|