@atproto/bsky 0.0.172 → 0.0.174

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts +4 -0
  3. package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts.map +1 -0
  4. package/dist/api/app/bsky/unspecced/checkHandleAvailability.js +238 -0
  5. package/dist/api/app/bsky/unspecced/checkHandleAvailability.js.map +1 -0
  6. package/dist/api/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -1
  7. package/dist/api/app/bsky/unspecced/initAgeAssurance.js +71 -9
  8. package/dist/api/app/bsky/unspecced/initAgeAssurance.js.map +1 -1
  9. package/dist/api/index.d.ts.map +1 -1
  10. package/dist/api/index.js +2 -0
  11. package/dist/api/index.js.map +1 -1
  12. package/dist/kws.d.ts +2 -0
  13. package/dist/kws.d.ts.map +1 -1
  14. package/dist/kws.js +10 -2
  15. package/dist/kws.js.map +1 -1
  16. package/dist/lexicon/index.d.ts +4 -2
  17. package/dist/lexicon/index.d.ts.map +1 -1
  18. package/dist/lexicon/index.js +8 -4
  19. package/dist/lexicon/index.js.map +1 -1
  20. package/dist/lexicon/lexicons.d.ts +268 -82
  21. package/dist/lexicon/lexicons.d.ts.map +1 -1
  22. package/dist/lexicon/lexicons.js +145 -42
  23. package/dist/lexicon/lexicons.js.map +1 -1
  24. package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts +58 -0
  25. package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts.map +1 -0
  26. package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js +34 -0
  27. package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js.map +1 -0
  28. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts +1 -0
  29. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -1
  30. package/package.json +7 -6
  31. package/src/api/app/bsky/unspecced/checkHandleAvailability.ts +291 -0
  32. package/src/api/app/bsky/unspecced/initAgeAssurance.ts +96 -11
  33. package/src/api/index.ts +2 -0
  34. package/src/kws.ts +9 -1
  35. package/src/lexicon/index.ts +24 -11
  36. package/src/lexicon/lexicons.ts +154 -43
  37. package/src/lexicon/types/app/bsky/unspecced/checkHandleAvailability.ts +99 -0
  38. package/src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts +1 -0
  39. package/tests/views/age-assurance.test.ts +44 -0
  40. package/tests/views/handle-availability.test.ts +294 -0
  41. package/tsconfig.build.tsbuildinfo +1 -1
  42. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -7031,6 +7031,47 @@ exports.schemaDict = {
7031
7031
  },
7032
7032
  },
7033
7033
  },
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
+ },
7034
7075
  AppBskyFeedGetPostThread: {
7035
7076
  lexicon: 1,
7036
7077
  id: 'app.bsky.feed.getPostThread',
@@ -7092,47 +7133,6 @@ exports.schemaDict = {
7092
7133
  },
7093
7134
  },
7094
7135
  },
7095
- AppBskyFeedGetPosts: {
7096
- lexicon: 1,
7097
- id: 'app.bsky.feed.getPosts',
7098
- defs: {
7099
- main: {
7100
- type: 'query',
7101
- description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7102
- parameters: {
7103
- type: 'params',
7104
- required: ['uris'],
7105
- properties: {
7106
- uris: {
7107
- type: 'array',
7108
- description: 'List of post AT-URIs to return hydrated views for.',
7109
- items: {
7110
- type: 'string',
7111
- format: 'at-uri',
7112
- },
7113
- maxLength: 25,
7114
- },
7115
- },
7116
- },
7117
- output: {
7118
- encoding: 'application/json',
7119
- schema: {
7120
- type: 'object',
7121
- required: ['posts'],
7122
- properties: {
7123
- posts: {
7124
- type: 'array',
7125
- items: {
7126
- type: 'ref',
7127
- ref: 'lex:app.bsky.feed.defs#postView',
7128
- },
7129
- },
7130
- },
7131
- },
7132
- },
7133
- },
7134
- },
7135
- },
7136
7136
  AppBskyFeedGetQuotes: {
7137
7137
  lexicon: 1,
7138
7138
  id: 'app.bsky.feed.getQuotes',
@@ -10161,6 +10161,97 @@ exports.schemaDict = {
10161
10161
  },
10162
10162
  },
10163
10163
  },
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
+ },
10164
10255
  AppBskyUnspeccedDefs: {
10165
10256
  lexicon: 1,
10166
10257
  id: 'app.bsky.unspecced.defs',
@@ -11199,6 +11290,17 @@ exports.schemaDict = {
11199
11290
  ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
11200
11291
  },
11201
11292
  },
11293
+ errors: [
11294
+ {
11295
+ name: 'InvalidEmail',
11296
+ },
11297
+ {
11298
+ name: 'DidTooLong',
11299
+ },
11300
+ {
11301
+ name: 'InvalidInitiation',
11302
+ },
11303
+ ],
11202
11304
  },
11203
11305
  },
11204
11306
  },
@@ -13005,8 +13107,8 @@ exports.ids = {
13005
13107
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
13006
13108
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
13007
13109
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
13008
- AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
13009
13110
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
13111
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
13010
13112
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
13011
13113
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
13012
13114
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -13063,6 +13165,7 @@ exports.ids = {
13063
13165
  AppBskyNotificationUnregisterPush: 'app.bsky.notification.unregisterPush',
13064
13166
  AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
13065
13167
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
13168
+ AppBskyUnspeccedCheckHandleAvailability: 'app.bsky.unspecced.checkHandleAvailability',
13066
13169
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
13067
13170
  AppBskyUnspeccedGetAgeAssuranceState: 'app.bsky.unspecced.getAgeAssuranceState',
13068
13171
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',