@atproto/bsky 0.0.174 → 0.0.176
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 +19 -0
- package/dist/api/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/initAgeAssurance.js +0 -6
- package/dist/api/app/bsky/unspecced/initAgeAssurance.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/feature-gates.d.ts +1 -2
- package/dist/feature-gates.d.ts.map +1 -1
- package/dist/feature-gates.js +0 -1
- package/dist/feature-gates.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -4
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -8
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +254 -254
- package/dist/lexicon/lexicons.js +134 -134
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.d.ts +6 -6
- package/dist/lexicon/types/com/atproto/temp/checkHandleAvailability.d.ts.map +1 -0
- package/dist/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.js +1 -1
- package/dist/lexicon/types/com/atproto/temp/checkHandleAvailability.js.map +1 -0
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +1 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +9 -9
- package/src/api/app/bsky/unspecced/initAgeAssurance.ts +0 -8
- package/src/api/index.ts +0 -2
- package/src/feature-gates.ts +0 -1
- package/src/lexicon/index.ts +24 -24
- package/src/lexicon/lexicons.ts +143 -143
- package/src/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.ts +4 -4
- package/src/views/index.ts +1 -0
- package/tests/__snapshots__/feed-generation.test.ts.snap +115 -12
- package/tests/feed-generation.test.ts +53 -10
- package/tests/views/actor-search.test.ts +3 -1
- package/tests/views/age-assurance.test.ts +0 -3
- package/tests/views/author-feed.test.ts +3 -1
- package/tests/views/follows.test.ts +6 -2
- package/tests/views/likes.test.ts +3 -1
- package/tests/views/list-feed.test.ts +3 -1
- package/tests/views/mutes.test.ts +3 -1
- package/tests/views/notifications.test.ts +14 -7
- package/tests/views/reposts.test.ts +3 -1
- package/tests/views/timeline.test.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.js +0 -238
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.js.map +0 -1
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts.map +0 -1
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js.map +0 -1
- package/src/api/app/bsky/unspecced/checkHandleAvailability.ts +0 -291
- package/tests/views/handle-availability.test.ts +0 -294
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -4276,6 +4276,97 @@ exports.schemaDict = {
|
|
|
4276
4276
|
},
|
|
4277
4277
|
},
|
|
4278
4278
|
},
|
|
4279
|
+
ComAtprotoTempCheckHandleAvailability: {
|
|
4280
|
+
lexicon: 1,
|
|
4281
|
+
id: 'com.atproto.temp.checkHandleAvailability',
|
|
4282
|
+
defs: {
|
|
4283
|
+
main: {
|
|
4284
|
+
type: 'query',
|
|
4285
|
+
description: 'Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.',
|
|
4286
|
+
parameters: {
|
|
4287
|
+
type: 'params',
|
|
4288
|
+
required: ['handle'],
|
|
4289
|
+
properties: {
|
|
4290
|
+
handle: {
|
|
4291
|
+
type: 'string',
|
|
4292
|
+
format: 'handle',
|
|
4293
|
+
description: 'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
4294
|
+
},
|
|
4295
|
+
email: {
|
|
4296
|
+
type: 'string',
|
|
4297
|
+
description: 'User-provided email. Might be used to build handle suggestions.',
|
|
4298
|
+
},
|
|
4299
|
+
birthDate: {
|
|
4300
|
+
type: 'string',
|
|
4301
|
+
format: 'datetime',
|
|
4302
|
+
description: 'User-provided birth date. Might be used to build handle suggestions.',
|
|
4303
|
+
},
|
|
4304
|
+
},
|
|
4305
|
+
},
|
|
4306
|
+
output: {
|
|
4307
|
+
encoding: 'application/json',
|
|
4308
|
+
schema: {
|
|
4309
|
+
type: 'object',
|
|
4310
|
+
required: ['handle', 'result'],
|
|
4311
|
+
properties: {
|
|
4312
|
+
handle: {
|
|
4313
|
+
type: 'string',
|
|
4314
|
+
format: 'handle',
|
|
4315
|
+
description: 'Echo of the input handle.',
|
|
4316
|
+
},
|
|
4317
|
+
result: {
|
|
4318
|
+
type: 'union',
|
|
4319
|
+
refs: [
|
|
4320
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultAvailable',
|
|
4321
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultUnavailable',
|
|
4322
|
+
],
|
|
4323
|
+
},
|
|
4324
|
+
},
|
|
4325
|
+
},
|
|
4326
|
+
},
|
|
4327
|
+
errors: [
|
|
4328
|
+
{
|
|
4329
|
+
name: 'InvalidEmail',
|
|
4330
|
+
description: 'An invalid email was provided.',
|
|
4331
|
+
},
|
|
4332
|
+
],
|
|
4333
|
+
},
|
|
4334
|
+
resultAvailable: {
|
|
4335
|
+
type: 'object',
|
|
4336
|
+
description: 'Indicates the provided handle is available.',
|
|
4337
|
+
properties: {},
|
|
4338
|
+
},
|
|
4339
|
+
resultUnavailable: {
|
|
4340
|
+
type: 'object',
|
|
4341
|
+
description: 'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
4342
|
+
required: ['suggestions'],
|
|
4343
|
+
properties: {
|
|
4344
|
+
suggestions: {
|
|
4345
|
+
type: 'array',
|
|
4346
|
+
description: 'List of suggested handles based on the provided inputs.',
|
|
4347
|
+
items: {
|
|
4348
|
+
type: 'ref',
|
|
4349
|
+
ref: 'lex:com.atproto.temp.checkHandleAvailability#suggestion',
|
|
4350
|
+
},
|
|
4351
|
+
},
|
|
4352
|
+
},
|
|
4353
|
+
},
|
|
4354
|
+
suggestion: {
|
|
4355
|
+
type: 'object',
|
|
4356
|
+
required: ['handle', 'method'],
|
|
4357
|
+
properties: {
|
|
4358
|
+
handle: {
|
|
4359
|
+
type: 'string',
|
|
4360
|
+
format: 'handle',
|
|
4361
|
+
},
|
|
4362
|
+
method: {
|
|
4363
|
+
type: 'string',
|
|
4364
|
+
description: 'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
4365
|
+
},
|
|
4366
|
+
},
|
|
4367
|
+
},
|
|
4368
|
+
},
|
|
4369
|
+
},
|
|
4279
4370
|
ComAtprotoTempCheckSignupQueue: {
|
|
4280
4371
|
lexicon: 1,
|
|
4281
4372
|
id: 'com.atproto.temp.checkSignupQueue',
|
|
@@ -7031,47 +7122,6 @@ exports.schemaDict = {
|
|
|
7031
7122
|
},
|
|
7032
7123
|
},
|
|
7033
7124
|
},
|
|
7034
|
-
AppBskyFeedGetPosts: {
|
|
7035
|
-
lexicon: 1,
|
|
7036
|
-
id: 'app.bsky.feed.getPosts',
|
|
7037
|
-
defs: {
|
|
7038
|
-
main: {
|
|
7039
|
-
type: 'query',
|
|
7040
|
-
description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7041
|
-
parameters: {
|
|
7042
|
-
type: 'params',
|
|
7043
|
-
required: ['uris'],
|
|
7044
|
-
properties: {
|
|
7045
|
-
uris: {
|
|
7046
|
-
type: 'array',
|
|
7047
|
-
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7048
|
-
items: {
|
|
7049
|
-
type: 'string',
|
|
7050
|
-
format: 'at-uri',
|
|
7051
|
-
},
|
|
7052
|
-
maxLength: 25,
|
|
7053
|
-
},
|
|
7054
|
-
},
|
|
7055
|
-
},
|
|
7056
|
-
output: {
|
|
7057
|
-
encoding: 'application/json',
|
|
7058
|
-
schema: {
|
|
7059
|
-
type: 'object',
|
|
7060
|
-
required: ['posts'],
|
|
7061
|
-
properties: {
|
|
7062
|
-
posts: {
|
|
7063
|
-
type: 'array',
|
|
7064
|
-
items: {
|
|
7065
|
-
type: 'ref',
|
|
7066
|
-
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7067
|
-
},
|
|
7068
|
-
},
|
|
7069
|
-
},
|
|
7070
|
-
},
|
|
7071
|
-
},
|
|
7072
|
-
},
|
|
7073
|
-
},
|
|
7074
|
-
},
|
|
7075
7125
|
AppBskyFeedGetPostThread: {
|
|
7076
7126
|
lexicon: 1,
|
|
7077
7127
|
id: 'app.bsky.feed.getPostThread',
|
|
@@ -7133,6 +7183,47 @@ exports.schemaDict = {
|
|
|
7133
7183
|
},
|
|
7134
7184
|
},
|
|
7135
7185
|
},
|
|
7186
|
+
AppBskyFeedGetPosts: {
|
|
7187
|
+
lexicon: 1,
|
|
7188
|
+
id: 'app.bsky.feed.getPosts',
|
|
7189
|
+
defs: {
|
|
7190
|
+
main: {
|
|
7191
|
+
type: 'query',
|
|
7192
|
+
description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7193
|
+
parameters: {
|
|
7194
|
+
type: 'params',
|
|
7195
|
+
required: ['uris'],
|
|
7196
|
+
properties: {
|
|
7197
|
+
uris: {
|
|
7198
|
+
type: 'array',
|
|
7199
|
+
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7200
|
+
items: {
|
|
7201
|
+
type: 'string',
|
|
7202
|
+
format: 'at-uri',
|
|
7203
|
+
},
|
|
7204
|
+
maxLength: 25,
|
|
7205
|
+
},
|
|
7206
|
+
},
|
|
7207
|
+
},
|
|
7208
|
+
output: {
|
|
7209
|
+
encoding: 'application/json',
|
|
7210
|
+
schema: {
|
|
7211
|
+
type: 'object',
|
|
7212
|
+
required: ['posts'],
|
|
7213
|
+
properties: {
|
|
7214
|
+
posts: {
|
|
7215
|
+
type: 'array',
|
|
7216
|
+
items: {
|
|
7217
|
+
type: 'ref',
|
|
7218
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7219
|
+
},
|
|
7220
|
+
},
|
|
7221
|
+
},
|
|
7222
|
+
},
|
|
7223
|
+
},
|
|
7224
|
+
},
|
|
7225
|
+
},
|
|
7226
|
+
},
|
|
7136
7227
|
AppBskyFeedGetQuotes: {
|
|
7137
7228
|
lexicon: 1,
|
|
7138
7229
|
id: 'app.bsky.feed.getQuotes',
|
|
@@ -10161,97 +10252,6 @@ exports.schemaDict = {
|
|
|
10161
10252
|
},
|
|
10162
10253
|
},
|
|
10163
10254
|
},
|
|
10164
|
-
AppBskyUnspeccedCheckHandleAvailability: {
|
|
10165
|
-
lexicon: 1,
|
|
10166
|
-
id: 'app.bsky.unspecced.checkHandleAvailability',
|
|
10167
|
-
defs: {
|
|
10168
|
-
main: {
|
|
10169
|
-
type: 'query',
|
|
10170
|
-
description: 'Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.',
|
|
10171
|
-
parameters: {
|
|
10172
|
-
type: 'params',
|
|
10173
|
-
required: ['handle'],
|
|
10174
|
-
properties: {
|
|
10175
|
-
handle: {
|
|
10176
|
-
type: 'string',
|
|
10177
|
-
format: 'handle',
|
|
10178
|
-
description: 'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
10179
|
-
},
|
|
10180
|
-
email: {
|
|
10181
|
-
type: 'string',
|
|
10182
|
-
description: 'User-provided email. Might be used to build handle suggestions.',
|
|
10183
|
-
},
|
|
10184
|
-
birthDate: {
|
|
10185
|
-
type: 'string',
|
|
10186
|
-
format: 'datetime',
|
|
10187
|
-
description: 'User-provided birth date. Might be used to build handle suggestions.',
|
|
10188
|
-
},
|
|
10189
|
-
},
|
|
10190
|
-
},
|
|
10191
|
-
output: {
|
|
10192
|
-
encoding: 'application/json',
|
|
10193
|
-
schema: {
|
|
10194
|
-
type: 'object',
|
|
10195
|
-
required: ['handle', 'result'],
|
|
10196
|
-
properties: {
|
|
10197
|
-
handle: {
|
|
10198
|
-
type: 'string',
|
|
10199
|
-
format: 'handle',
|
|
10200
|
-
description: 'Echo of the input handle.',
|
|
10201
|
-
},
|
|
10202
|
-
result: {
|
|
10203
|
-
type: 'union',
|
|
10204
|
-
refs: [
|
|
10205
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultAvailable',
|
|
10206
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultUnavailable',
|
|
10207
|
-
],
|
|
10208
|
-
},
|
|
10209
|
-
},
|
|
10210
|
-
},
|
|
10211
|
-
},
|
|
10212
|
-
errors: [
|
|
10213
|
-
{
|
|
10214
|
-
name: 'InvalidEmail',
|
|
10215
|
-
description: 'An invalid email was provided.',
|
|
10216
|
-
},
|
|
10217
|
-
],
|
|
10218
|
-
},
|
|
10219
|
-
resultAvailable: {
|
|
10220
|
-
type: 'object',
|
|
10221
|
-
description: 'Indicates the provided handle is available.',
|
|
10222
|
-
properties: {},
|
|
10223
|
-
},
|
|
10224
|
-
resultUnavailable: {
|
|
10225
|
-
type: 'object',
|
|
10226
|
-
description: 'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
10227
|
-
required: ['suggestions'],
|
|
10228
|
-
properties: {
|
|
10229
|
-
suggestions: {
|
|
10230
|
-
type: 'array',
|
|
10231
|
-
description: 'List of suggested handles based on the provided inputs.',
|
|
10232
|
-
items: {
|
|
10233
|
-
type: 'ref',
|
|
10234
|
-
ref: 'lex:app.bsky.unspecced.checkHandleAvailability#suggestion',
|
|
10235
|
-
},
|
|
10236
|
-
},
|
|
10237
|
-
},
|
|
10238
|
-
},
|
|
10239
|
-
suggestion: {
|
|
10240
|
-
type: 'object',
|
|
10241
|
-
required: ['handle', 'method'],
|
|
10242
|
-
properties: {
|
|
10243
|
-
handle: {
|
|
10244
|
-
type: 'string',
|
|
10245
|
-
format: 'handle',
|
|
10246
|
-
},
|
|
10247
|
-
method: {
|
|
10248
|
-
type: 'string',
|
|
10249
|
-
description: 'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
10250
|
-
},
|
|
10251
|
-
},
|
|
10252
|
-
},
|
|
10253
|
-
},
|
|
10254
|
-
},
|
|
10255
10255
|
AppBskyUnspeccedDefs: {
|
|
10256
10256
|
lexicon: 1,
|
|
10257
10257
|
id: 'app.bsky.unspecced.defs',
|
|
@@ -13076,6 +13076,7 @@ exports.ids = {
|
|
|
13076
13076
|
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
|
|
13077
13077
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
13078
13078
|
ComAtprotoTempAddReservedHandle: 'com.atproto.temp.addReservedHandle',
|
|
13079
|
+
ComAtprotoTempCheckHandleAvailability: 'com.atproto.temp.checkHandleAvailability',
|
|
13079
13080
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
13080
13081
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
13081
13082
|
ComAtprotoTempRequestPhoneVerification: 'com.atproto.temp.requestPhoneVerification',
|
|
@@ -13107,8 +13108,8 @@ exports.ids = {
|
|
|
13107
13108
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
|
13108
13109
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
|
13109
13110
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
|
13110
|
-
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
13111
13111
|
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
13112
|
+
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
13112
13113
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
|
13113
13114
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
13114
13115
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
|
@@ -13165,7 +13166,6 @@ exports.ids = {
|
|
|
13165
13166
|
AppBskyNotificationUnregisterPush: 'app.bsky.notification.unregisterPush',
|
|
13166
13167
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
13167
13168
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
13168
|
-
AppBskyUnspeccedCheckHandleAvailability: 'app.bsky.unspecced.checkHandleAvailability',
|
|
13169
13169
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
|
13170
13170
|
AppBskyUnspeccedGetAgeAssuranceState: 'app.bsky.unspecced.getAgeAssuranceState',
|
|
13171
13171
|
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|