@atproto/api 0.15.27 → 0.16.0
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 +6 -0
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +16 -16
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +254 -254
- package/dist/client/lexicons.js +134 -134
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.d.ts +6 -6
- package/dist/client/types/com/atproto/temp/checkHandleAvailability.d.ts.map +1 -0
- package/dist/client/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.js +1 -1
- package/dist/client/types/com/atproto/temp/checkHandleAvailability.js.map +1 -0
- package/package.json +2 -2
- package/src/client/index.ts +22 -27
- package/src/client/lexicons.ts +143 -143
- package/src/client/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.ts +4 -4
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/unspecced/checkHandleAvailability.d.ts.map +0 -1
- package/dist/client/types/app/bsky/unspecced/checkHandleAvailability.js.map +0 -1
package/dist/client/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.d.ts
RENAMED
|
@@ -35,24 +35,24 @@ export declare class InvalidEmailError extends XRPCError {
|
|
|
35
35
|
export declare function toKnownErr(e: any): any;
|
|
36
36
|
/** Indicates the provided handle is available. */
|
|
37
37
|
export interface ResultAvailable {
|
|
38
|
-
$type?: '
|
|
38
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultAvailable';
|
|
39
39
|
}
|
|
40
|
-
export declare function isResultAvailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "
|
|
40
|
+
export declare function isResultAvailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.temp.checkHandleAvailability", "resultAvailable">;
|
|
41
41
|
export declare function validateResultAvailable<V>(v: V): ValidationResult<ResultAvailable & V>;
|
|
42
42
|
/** Indicates the provided handle is unavailable and gives suggestions of available handles. */
|
|
43
43
|
export interface ResultUnavailable {
|
|
44
|
-
$type?: '
|
|
44
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultUnavailable';
|
|
45
45
|
/** List of suggested handles based on the provided inputs. */
|
|
46
46
|
suggestions: Suggestion[];
|
|
47
47
|
}
|
|
48
|
-
export declare function isResultUnavailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "
|
|
48
|
+
export declare function isResultUnavailable<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.temp.checkHandleAvailability", "resultUnavailable">;
|
|
49
49
|
export declare function validateResultUnavailable<V>(v: V): ValidationResult<ResultUnavailable & V>;
|
|
50
50
|
export interface Suggestion {
|
|
51
|
-
$type?: '
|
|
51
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#suggestion';
|
|
52
52
|
handle: string;
|
|
53
53
|
/** Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. */
|
|
54
54
|
method: string;
|
|
55
55
|
}
|
|
56
|
-
export declare function isSuggestion<V>(v: V): v is import("../../../../util").$TypedObject<V, "
|
|
56
|
+
export declare function isSuggestion<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.temp.checkHandleAvailability", "suggestion">;
|
|
57
57
|
export declare function validateSuggestion<V>(v: V): ValidationResult<Suggestion & V>;
|
|
58
58
|
//# sourceMappingURL=checkHandleAvailability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkHandleAvailability.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/temp/checkHandleAvailability.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EA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CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2CAEhD;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,qDAAqD,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,6GAA6G;IAC7G,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6GAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC"}
|
package/dist/client/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.js
RENAMED
|
@@ -15,7 +15,7 @@ const xrpc_1 = require("@atproto/xrpc");
|
|
|
15
15
|
const lexicons_1 = require("../../../../lexicons");
|
|
16
16
|
const util_1 = require("../../../../util");
|
|
17
17
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
18
|
-
const id = '
|
|
18
|
+
const id = 'com.atproto.temp.checkHandleAvailability';
|
|
19
19
|
class InvalidEmailError extends xrpc_1.XRPCError {
|
|
20
20
|
constructor(src) {
|
|
21
21
|
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkHandleAvailability.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/temp/checkHandleAvailability.ts"],"names":[],"mappings":";;;AAqDA,gCAMC;AASD,8CAEC;AAED,0DAEC;AAWD,kDAEC;AAED,8DAEC;AAWD,oCAEC;AAED,gDAEC;AA5GD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0CAA0C,CAAA;AAgCrD,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAA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version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"jest": "^28.1.2",
|
|
31
31
|
"prettier": "^3.2.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@atproto/lex-cli": "^0.9.
|
|
33
|
+
"@atproto/lex-cli": "^0.9.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"codegen": "node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/client/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOf
|
|
|
97
97
|
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl.js'
|
|
98
98
|
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos.js'
|
|
99
99
|
import * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle.js'
|
|
100
|
+
import * as ComAtprotoTempCheckHandleAvailability from './types/com/atproto/temp/checkHandleAvailability.js'
|
|
100
101
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue.js'
|
|
101
102
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels.js'
|
|
102
103
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification.js'
|
|
@@ -128,8 +129,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
|
|
|
128
129
|
import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
|
|
129
130
|
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
|
|
130
131
|
import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
|
|
131
|
-
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
132
132
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
|
133
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
133
134
|
import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
|
|
134
135
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
|
|
135
136
|
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
|
|
@@ -186,7 +187,6 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
186
187
|
import * as AppBskyNotificationUnregisterPush from './types/app/bsky/notification/unregisterPush.js'
|
|
187
188
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
188
189
|
import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
189
|
-
import * as AppBskyUnspeccedCheckHandleAvailability from './types/app/bsky/unspecced/checkHandleAvailability.js'
|
|
190
190
|
import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
191
191
|
import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
|
192
192
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
@@ -375,6 +375,7 @@ export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOf
|
|
|
375
375
|
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl.js'
|
|
376
376
|
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos.js'
|
|
377
377
|
export * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle.js'
|
|
378
|
+
export * as ComAtprotoTempCheckHandleAvailability from './types/com/atproto/temp/checkHandleAvailability.js'
|
|
378
379
|
export * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue.js'
|
|
379
380
|
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels.js'
|
|
380
381
|
export * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification.js'
|
|
@@ -406,8 +407,8 @@ export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
|
|
|
406
407
|
export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
|
|
407
408
|
export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
|
|
408
409
|
export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
|
|
409
|
-
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
410
410
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
|
|
411
|
+
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
|
|
411
412
|
export * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
|
|
412
413
|
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
|
|
413
414
|
export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
|
|
@@ -464,7 +465,6 @@ export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
464
465
|
export * as AppBskyNotificationUnregisterPush from './types/app/bsky/notification/unregisterPush.js'
|
|
465
466
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
|
|
466
467
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
467
|
-
export * as AppBskyUnspeccedCheckHandleAvailability from './types/app/bsky/unspecced/checkHandleAvailability.js'
|
|
468
468
|
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
469
469
|
export * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'
|
|
470
470
|
export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
@@ -1717,6 +1717,17 @@ export class ComAtprotoTempNS {
|
|
|
1717
1717
|
)
|
|
1718
1718
|
}
|
|
1719
1719
|
|
|
1720
|
+
checkHandleAvailability(
|
|
1721
|
+
params?: ComAtprotoTempCheckHandleAvailability.QueryParams,
|
|
1722
|
+
opts?: ComAtprotoTempCheckHandleAvailability.CallOptions,
|
|
1723
|
+
): Promise<ComAtprotoTempCheckHandleAvailability.Response> {
|
|
1724
|
+
return this._client
|
|
1725
|
+
.call('com.atproto.temp.checkHandleAvailability', params, undefined, opts)
|
|
1726
|
+
.catch((e) => {
|
|
1727
|
+
throw ComAtprotoTempCheckHandleAvailability.toKnownErr(e)
|
|
1728
|
+
})
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1720
1731
|
checkSignupQueue(
|
|
1721
1732
|
params?: ComAtprotoTempCheckSignupQueue.QueryParams,
|
|
1722
1733
|
opts?: ComAtprotoTempCheckSignupQueue.CallOptions,
|
|
@@ -2191,13 +2202,6 @@ export class AppBskyFeedNS {
|
|
|
2191
2202
|
})
|
|
2192
2203
|
}
|
|
2193
2204
|
|
|
2194
|
-
getPosts(
|
|
2195
|
-
params?: AppBskyFeedGetPosts.QueryParams,
|
|
2196
|
-
opts?: AppBskyFeedGetPosts.CallOptions,
|
|
2197
|
-
): Promise<AppBskyFeedGetPosts.Response> {
|
|
2198
|
-
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
2205
|
getPostThread(
|
|
2202
2206
|
params?: AppBskyFeedGetPostThread.QueryParams,
|
|
2203
2207
|
opts?: AppBskyFeedGetPostThread.CallOptions,
|
|
@@ -2209,6 +2213,13 @@ export class AppBskyFeedNS {
|
|
|
2209
2213
|
})
|
|
2210
2214
|
}
|
|
2211
2215
|
|
|
2216
|
+
getPosts(
|
|
2217
|
+
params?: AppBskyFeedGetPosts.QueryParams,
|
|
2218
|
+
opts?: AppBskyFeedGetPosts.CallOptions,
|
|
2219
|
+
): Promise<AppBskyFeedGetPosts.Response> {
|
|
2220
|
+
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2212
2223
|
getQuotes(
|
|
2213
2224
|
params?: AppBskyFeedGetQuotes.QueryParams,
|
|
2214
2225
|
opts?: AppBskyFeedGetQuotes.CallOptions,
|
|
@@ -3905,22 +3916,6 @@ export class AppBskyUnspeccedNS {
|
|
|
3905
3916
|
this._client = client
|
|
3906
3917
|
}
|
|
3907
3918
|
|
|
3908
|
-
checkHandleAvailability(
|
|
3909
|
-
params?: AppBskyUnspeccedCheckHandleAvailability.QueryParams,
|
|
3910
|
-
opts?: AppBskyUnspeccedCheckHandleAvailability.CallOptions,
|
|
3911
|
-
): Promise<AppBskyUnspeccedCheckHandleAvailability.Response> {
|
|
3912
|
-
return this._client
|
|
3913
|
-
.call(
|
|
3914
|
-
'app.bsky.unspecced.checkHandleAvailability',
|
|
3915
|
-
params,
|
|
3916
|
-
undefined,
|
|
3917
|
-
opts,
|
|
3918
|
-
)
|
|
3919
|
-
.catch((e) => {
|
|
3920
|
-
throw AppBskyUnspeccedCheckHandleAvailability.toKnownErr(e)
|
|
3921
|
-
})
|
|
3922
|
-
}
|
|
3923
|
-
|
|
3924
3919
|
getAgeAssuranceState(
|
|
3925
3920
|
params?: AppBskyUnspeccedGetAgeAssuranceState.QueryParams,
|
|
3926
3921
|
opts?: AppBskyUnspeccedGetAgeAssuranceState.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -4449,6 +4449,104 @@ export const schemaDict = {
|
|
|
4449
4449
|
},
|
|
4450
4450
|
},
|
|
4451
4451
|
},
|
|
4452
|
+
ComAtprotoTempCheckHandleAvailability: {
|
|
4453
|
+
lexicon: 1,
|
|
4454
|
+
id: 'com.atproto.temp.checkHandleAvailability',
|
|
4455
|
+
defs: {
|
|
4456
|
+
main: {
|
|
4457
|
+
type: 'query',
|
|
4458
|
+
description:
|
|
4459
|
+
'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.',
|
|
4460
|
+
parameters: {
|
|
4461
|
+
type: 'params',
|
|
4462
|
+
required: ['handle'],
|
|
4463
|
+
properties: {
|
|
4464
|
+
handle: {
|
|
4465
|
+
type: 'string',
|
|
4466
|
+
format: 'handle',
|
|
4467
|
+
description:
|
|
4468
|
+
'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
4469
|
+
},
|
|
4470
|
+
email: {
|
|
4471
|
+
type: 'string',
|
|
4472
|
+
description:
|
|
4473
|
+
'User-provided email. Might be used to build handle suggestions.',
|
|
4474
|
+
},
|
|
4475
|
+
birthDate: {
|
|
4476
|
+
type: 'string',
|
|
4477
|
+
format: 'datetime',
|
|
4478
|
+
description:
|
|
4479
|
+
'User-provided birth date. Might be used to build handle suggestions.',
|
|
4480
|
+
},
|
|
4481
|
+
},
|
|
4482
|
+
},
|
|
4483
|
+
output: {
|
|
4484
|
+
encoding: 'application/json',
|
|
4485
|
+
schema: {
|
|
4486
|
+
type: 'object',
|
|
4487
|
+
required: ['handle', 'result'],
|
|
4488
|
+
properties: {
|
|
4489
|
+
handle: {
|
|
4490
|
+
type: 'string',
|
|
4491
|
+
format: 'handle',
|
|
4492
|
+
description: 'Echo of the input handle.',
|
|
4493
|
+
},
|
|
4494
|
+
result: {
|
|
4495
|
+
type: 'union',
|
|
4496
|
+
refs: [
|
|
4497
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultAvailable',
|
|
4498
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultUnavailable',
|
|
4499
|
+
],
|
|
4500
|
+
},
|
|
4501
|
+
},
|
|
4502
|
+
},
|
|
4503
|
+
},
|
|
4504
|
+
errors: [
|
|
4505
|
+
{
|
|
4506
|
+
name: 'InvalidEmail',
|
|
4507
|
+
description: 'An invalid email was provided.',
|
|
4508
|
+
},
|
|
4509
|
+
],
|
|
4510
|
+
},
|
|
4511
|
+
resultAvailable: {
|
|
4512
|
+
type: 'object',
|
|
4513
|
+
description: 'Indicates the provided handle is available.',
|
|
4514
|
+
properties: {},
|
|
4515
|
+
},
|
|
4516
|
+
resultUnavailable: {
|
|
4517
|
+
type: 'object',
|
|
4518
|
+
description:
|
|
4519
|
+
'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
4520
|
+
required: ['suggestions'],
|
|
4521
|
+
properties: {
|
|
4522
|
+
suggestions: {
|
|
4523
|
+
type: 'array',
|
|
4524
|
+
description:
|
|
4525
|
+
'List of suggested handles based on the provided inputs.',
|
|
4526
|
+
items: {
|
|
4527
|
+
type: 'ref',
|
|
4528
|
+
ref: 'lex:com.atproto.temp.checkHandleAvailability#suggestion',
|
|
4529
|
+
},
|
|
4530
|
+
},
|
|
4531
|
+
},
|
|
4532
|
+
},
|
|
4533
|
+
suggestion: {
|
|
4534
|
+
type: 'object',
|
|
4535
|
+
required: ['handle', 'method'],
|
|
4536
|
+
properties: {
|
|
4537
|
+
handle: {
|
|
4538
|
+
type: 'string',
|
|
4539
|
+
format: 'handle',
|
|
4540
|
+
},
|
|
4541
|
+
method: {
|
|
4542
|
+
type: 'string',
|
|
4543
|
+
description:
|
|
4544
|
+
'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
4545
|
+
},
|
|
4546
|
+
},
|
|
4547
|
+
},
|
|
4548
|
+
},
|
|
4549
|
+
},
|
|
4452
4550
|
ComAtprotoTempCheckSignupQueue: {
|
|
4453
4551
|
lexicon: 1,
|
|
4454
4552
|
id: 'com.atproto.temp.checkSignupQueue',
|
|
@@ -7282,48 +7380,6 @@ export const schemaDict = {
|
|
|
7282
7380
|
},
|
|
7283
7381
|
},
|
|
7284
7382
|
},
|
|
7285
|
-
AppBskyFeedGetPosts: {
|
|
7286
|
-
lexicon: 1,
|
|
7287
|
-
id: 'app.bsky.feed.getPosts',
|
|
7288
|
-
defs: {
|
|
7289
|
-
main: {
|
|
7290
|
-
type: 'query',
|
|
7291
|
-
description:
|
|
7292
|
-
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7293
|
-
parameters: {
|
|
7294
|
-
type: 'params',
|
|
7295
|
-
required: ['uris'],
|
|
7296
|
-
properties: {
|
|
7297
|
-
uris: {
|
|
7298
|
-
type: 'array',
|
|
7299
|
-
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7300
|
-
items: {
|
|
7301
|
-
type: 'string',
|
|
7302
|
-
format: 'at-uri',
|
|
7303
|
-
},
|
|
7304
|
-
maxLength: 25,
|
|
7305
|
-
},
|
|
7306
|
-
},
|
|
7307
|
-
},
|
|
7308
|
-
output: {
|
|
7309
|
-
encoding: 'application/json',
|
|
7310
|
-
schema: {
|
|
7311
|
-
type: 'object',
|
|
7312
|
-
required: ['posts'],
|
|
7313
|
-
properties: {
|
|
7314
|
-
posts: {
|
|
7315
|
-
type: 'array',
|
|
7316
|
-
items: {
|
|
7317
|
-
type: 'ref',
|
|
7318
|
-
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7319
|
-
},
|
|
7320
|
-
},
|
|
7321
|
-
},
|
|
7322
|
-
},
|
|
7323
|
-
},
|
|
7324
|
-
},
|
|
7325
|
-
},
|
|
7326
|
-
},
|
|
7327
7383
|
AppBskyFeedGetPostThread: {
|
|
7328
7384
|
lexicon: 1,
|
|
7329
7385
|
id: 'app.bsky.feed.getPostThread',
|
|
@@ -7388,6 +7444,48 @@ export const schemaDict = {
|
|
|
7388
7444
|
},
|
|
7389
7445
|
},
|
|
7390
7446
|
},
|
|
7447
|
+
AppBskyFeedGetPosts: {
|
|
7448
|
+
lexicon: 1,
|
|
7449
|
+
id: 'app.bsky.feed.getPosts',
|
|
7450
|
+
defs: {
|
|
7451
|
+
main: {
|
|
7452
|
+
type: 'query',
|
|
7453
|
+
description:
|
|
7454
|
+
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7455
|
+
parameters: {
|
|
7456
|
+
type: 'params',
|
|
7457
|
+
required: ['uris'],
|
|
7458
|
+
properties: {
|
|
7459
|
+
uris: {
|
|
7460
|
+
type: 'array',
|
|
7461
|
+
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7462
|
+
items: {
|
|
7463
|
+
type: 'string',
|
|
7464
|
+
format: 'at-uri',
|
|
7465
|
+
},
|
|
7466
|
+
maxLength: 25,
|
|
7467
|
+
},
|
|
7468
|
+
},
|
|
7469
|
+
},
|
|
7470
|
+
output: {
|
|
7471
|
+
encoding: 'application/json',
|
|
7472
|
+
schema: {
|
|
7473
|
+
type: 'object',
|
|
7474
|
+
required: ['posts'],
|
|
7475
|
+
properties: {
|
|
7476
|
+
posts: {
|
|
7477
|
+
type: 'array',
|
|
7478
|
+
items: {
|
|
7479
|
+
type: 'ref',
|
|
7480
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7481
|
+
},
|
|
7482
|
+
},
|
|
7483
|
+
},
|
|
7484
|
+
},
|
|
7485
|
+
},
|
|
7486
|
+
},
|
|
7487
|
+
},
|
|
7488
|
+
},
|
|
7391
7489
|
AppBskyFeedGetQuotes: {
|
|
7392
7490
|
lexicon: 1,
|
|
7393
7491
|
id: 'app.bsky.feed.getQuotes',
|
|
@@ -10511,104 +10609,6 @@ export const schemaDict = {
|
|
|
10511
10609
|
},
|
|
10512
10610
|
},
|
|
10513
10611
|
},
|
|
10514
|
-
AppBskyUnspeccedCheckHandleAvailability: {
|
|
10515
|
-
lexicon: 1,
|
|
10516
|
-
id: 'app.bsky.unspecced.checkHandleAvailability',
|
|
10517
|
-
defs: {
|
|
10518
|
-
main: {
|
|
10519
|
-
type: 'query',
|
|
10520
|
-
description:
|
|
10521
|
-
'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.',
|
|
10522
|
-
parameters: {
|
|
10523
|
-
type: 'params',
|
|
10524
|
-
required: ['handle'],
|
|
10525
|
-
properties: {
|
|
10526
|
-
handle: {
|
|
10527
|
-
type: 'string',
|
|
10528
|
-
format: 'handle',
|
|
10529
|
-
description:
|
|
10530
|
-
'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
10531
|
-
},
|
|
10532
|
-
email: {
|
|
10533
|
-
type: 'string',
|
|
10534
|
-
description:
|
|
10535
|
-
'User-provided email. Might be used to build handle suggestions.',
|
|
10536
|
-
},
|
|
10537
|
-
birthDate: {
|
|
10538
|
-
type: 'string',
|
|
10539
|
-
format: 'datetime',
|
|
10540
|
-
description:
|
|
10541
|
-
'User-provided birth date. Might be used to build handle suggestions.',
|
|
10542
|
-
},
|
|
10543
|
-
},
|
|
10544
|
-
},
|
|
10545
|
-
output: {
|
|
10546
|
-
encoding: 'application/json',
|
|
10547
|
-
schema: {
|
|
10548
|
-
type: 'object',
|
|
10549
|
-
required: ['handle', 'result'],
|
|
10550
|
-
properties: {
|
|
10551
|
-
handle: {
|
|
10552
|
-
type: 'string',
|
|
10553
|
-
format: 'handle',
|
|
10554
|
-
description: 'Echo of the input handle.',
|
|
10555
|
-
},
|
|
10556
|
-
result: {
|
|
10557
|
-
type: 'union',
|
|
10558
|
-
refs: [
|
|
10559
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultAvailable',
|
|
10560
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultUnavailable',
|
|
10561
|
-
],
|
|
10562
|
-
},
|
|
10563
|
-
},
|
|
10564
|
-
},
|
|
10565
|
-
},
|
|
10566
|
-
errors: [
|
|
10567
|
-
{
|
|
10568
|
-
name: 'InvalidEmail',
|
|
10569
|
-
description: 'An invalid email was provided.',
|
|
10570
|
-
},
|
|
10571
|
-
],
|
|
10572
|
-
},
|
|
10573
|
-
resultAvailable: {
|
|
10574
|
-
type: 'object',
|
|
10575
|
-
description: 'Indicates the provided handle is available.',
|
|
10576
|
-
properties: {},
|
|
10577
|
-
},
|
|
10578
|
-
resultUnavailable: {
|
|
10579
|
-
type: 'object',
|
|
10580
|
-
description:
|
|
10581
|
-
'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
10582
|
-
required: ['suggestions'],
|
|
10583
|
-
properties: {
|
|
10584
|
-
suggestions: {
|
|
10585
|
-
type: 'array',
|
|
10586
|
-
description:
|
|
10587
|
-
'List of suggested handles based on the provided inputs.',
|
|
10588
|
-
items: {
|
|
10589
|
-
type: 'ref',
|
|
10590
|
-
ref: 'lex:app.bsky.unspecced.checkHandleAvailability#suggestion',
|
|
10591
|
-
},
|
|
10592
|
-
},
|
|
10593
|
-
},
|
|
10594
|
-
},
|
|
10595
|
-
suggestion: {
|
|
10596
|
-
type: 'object',
|
|
10597
|
-
required: ['handle', 'method'],
|
|
10598
|
-
properties: {
|
|
10599
|
-
handle: {
|
|
10600
|
-
type: 'string',
|
|
10601
|
-
format: 'handle',
|
|
10602
|
-
},
|
|
10603
|
-
method: {
|
|
10604
|
-
type: 'string',
|
|
10605
|
-
description:
|
|
10606
|
-
'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
10607
|
-
},
|
|
10608
|
-
},
|
|
10609
|
-
},
|
|
10610
|
-
},
|
|
10611
|
-
},
|
|
10612
10612
|
AppBskyUnspeccedDefs: {
|
|
10613
10613
|
lexicon: 1,
|
|
10614
10614
|
id: 'app.bsky.unspecced.defs',
|
|
@@ -17745,6 +17745,8 @@ export const ids = {
|
|
|
17745
17745
|
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
|
|
17746
17746
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
17747
17747
|
ComAtprotoTempAddReservedHandle: 'com.atproto.temp.addReservedHandle',
|
|
17748
|
+
ComAtprotoTempCheckHandleAvailability:
|
|
17749
|
+
'com.atproto.temp.checkHandleAvailability',
|
|
17748
17750
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
17749
17751
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
17750
17752
|
ComAtprotoTempRequestPhoneVerification:
|
|
@@ -17777,8 +17779,8 @@ export const ids = {
|
|
|
17777
17779
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
|
17778
17780
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
|
17779
17781
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
|
17780
|
-
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
17781
17782
|
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
17783
|
+
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
17782
17784
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
|
17783
17785
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
17784
17786
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
|
@@ -17839,8 +17841,6 @@ export const ids = {
|
|
|
17839
17841
|
AppBskyNotificationUnregisterPush: 'app.bsky.notification.unregisterPush',
|
|
17840
17842
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
17841
17843
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
17842
|
-
AppBskyUnspeccedCheckHandleAvailability:
|
|
17843
|
-
'app.bsky.unspecced.checkHandleAvailability',
|
|
17844
17844
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
|
17845
17845
|
AppBskyUnspeccedGetAgeAssuranceState:
|
|
17846
17846
|
'app.bsky.unspecced.getAgeAssuranceState',
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
const is$typed = _is$typed,
|
|
15
15
|
validate = _validate
|
|
16
|
-
const id = '
|
|
16
|
+
const id = 'com.atproto.temp.checkHandleAvailability'
|
|
17
17
|
|
|
18
18
|
export type QueryParams = {
|
|
19
19
|
/** Tentative handle. Will be checked for availability or used to build handle suggestions. */
|
|
@@ -61,7 +61,7 @@ export function toKnownErr(e: any) {
|
|
|
61
61
|
|
|
62
62
|
/** Indicates the provided handle is available. */
|
|
63
63
|
export interface ResultAvailable {
|
|
64
|
-
$type?: '
|
|
64
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultAvailable'
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
const hashResultAvailable = 'resultAvailable'
|
|
@@ -76,7 +76,7 @@ export function validateResultAvailable<V>(v: V) {
|
|
|
76
76
|
|
|
77
77
|
/** Indicates the provided handle is unavailable and gives suggestions of available handles. */
|
|
78
78
|
export interface ResultUnavailable {
|
|
79
|
-
$type?: '
|
|
79
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultUnavailable'
|
|
80
80
|
/** List of suggested handles based on the provided inputs. */
|
|
81
81
|
suggestions: Suggestion[]
|
|
82
82
|
}
|
|
@@ -92,7 +92,7 @@ export function validateResultUnavailable<V>(v: V) {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface Suggestion {
|
|
95
|
-
$type?: '
|
|
95
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#suggestion'
|
|
96
96
|
handle: string
|
|
97
97
|
/** Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. */
|
|
98
98
|
method: string
|