@atproto/api 0.2.5 → 0.2.6
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/dist/client/index.d.ts +19 -0
- package/dist/client/lexicons.d.ts +364 -7
- package/dist/client/types/app/bsky/actor/defs.d.ts +4 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +2 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +2 -0
- package/dist/client/types/com/atproto/{handle/update.d.ts → admin/updateAccountHandle.d.ts} +1 -0
- package/dist/client/types/com/atproto/label/defs.d.ts +12 -0
- package/dist/client/types/{app/bsky/feed/getAuthorFeed.d.ts → com/atproto/label/queryLabels.d.ts} +4 -3
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +16 -0
- package/dist/client/types/com/atproto/{account/createInviteCode.d.ts → server/createInviteCodes.d.ts} +3 -1
- package/dist/client/types/com/atproto/server/createSession.d.ts +1 -1
- package/dist/client/types/{app/bsky/actor/getSuggestions.d.ts → com/atproto/sync/listRepos.d.ts} +9 -2
- package/dist/index.js +674 -229
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +66 -0
- package/src/client/lexicons.ts +377 -10
- package/src/client/types/app/bsky/actor/defs.ts +4 -0
- package/src/client/types/app/bsky/feed/defs.ts +2 -0
- package/src/client/types/app/bsky/notification/listNotifications.ts +2 -0
- package/src/client/types/com/atproto/admin/defs.ts +4 -1
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +2 -0
- package/src/client/types/com/atproto/admin/updateAccountHandle.ts +33 -0
- package/src/client/types/com/atproto/label/defs.ts +36 -0
- package/src/client/types/com/atproto/label/queryLabels.ts +42 -0
- package/src/client/types/com/atproto/label/subscribeLabels.ts +45 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +2 -2
- package/src/client/types/com/atproto/server/createInviteCodes.ts +40 -0
- package/src/client/types/com/atproto/server/createSession.ts +1 -1
- package/src/client/types/com/atproto/sync/listRepos.ts +55 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/agent.d.ts +0 -27
- package/dist/bsky-agent.d.ts +0 -43
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -16
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +0 -19
- package/dist/client/types/app/bsky/actor/profile.d.ts +0 -10
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/embed/external.d.ts +0 -31
- package/dist/client/types/app/bsky/embed/images.d.ts +0 -28
- package/dist/client/types/app/bsky/embed/record.d.ts +0 -41
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +0 -24
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getLikes.d.ts +0 -34
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +0 -26
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/like.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/post.d.ts +0 -43
- package/dist/client/types/app/bsky/feed/repost.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/follow.d.ts +0 -8
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +0 -23
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +0 -23
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +0 -21
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/muteActor.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/client/types/app/bsky/richtext/facet.d.ts +0 -30
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +0 -21
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +0 -22
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +0 -23
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +0 -17
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +0 -16
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +0 -22
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +0 -22
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +0 -18
- package/dist/client/types/com/atproto/identity/updateHandle.d.ts +0 -17
- package/dist/client/types/com/atproto/moderation/createReport.d.ts +0 -38
- package/dist/client/types/com/atproto/moderation/defs.d.ts +0 -3
- package/dist/client/types/com/atproto/repo/applyWrites.d.ts +0 -47
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +0 -31
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +0 -24
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +0 -23
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +0 -32
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +0 -20
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/createAccount.d.ts +0 -44
- package/dist/client/types/com/atproto/server/deleteAccount.d.ts +0 -25
- package/dist/client/types/com/atproto/server/deleteSession.d.ts +0 -13
- package/dist/client/types/com/atproto/server/describeServer.d.ts +0 -27
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +0 -24
- package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/server/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/server/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getBlob.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +0 -15
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/getHead.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +0 -17
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +0 -16
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +0 -20
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +0 -13
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +0 -13
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +0 -58
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/client/util.d.ts +0 -2
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/index.d.ts +0 -10
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/detection.d.ts +0 -4
- package/dist/rich-text/rich-text.d.ts +0 -39
- package/dist/rich-text/sanitization.d.ts +0 -4
- package/dist/rich-text/sanitize.d.ts +0 -4
- package/dist/rich-text/unicode.d.ts +0 -11
- package/dist/session.d.ts +0 -42
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ var src_exports4 = {};
|
|
|
80
80
|
__export(src_exports4, {
|
|
81
81
|
ActorNS: () => ActorNS,
|
|
82
82
|
AdminNS: () => AdminNS,
|
|
83
|
-
AppBskyActorDefs: () =>
|
|
83
|
+
AppBskyActorDefs: () => defs_exports5,
|
|
84
84
|
AppBskyActorGetProfile: () => getProfile_exports,
|
|
85
85
|
AppBskyActorGetProfiles: () => getProfiles_exports,
|
|
86
86
|
AppBskyActorGetSuggestions: () => getSuggestions_exports,
|
|
@@ -91,7 +91,7 @@ __export(src_exports4, {
|
|
|
91
91
|
AppBskyEmbedImages: () => images_exports,
|
|
92
92
|
AppBskyEmbedRecord: () => record_exports,
|
|
93
93
|
AppBskyEmbedRecordWithMedia: () => recordWithMedia_exports,
|
|
94
|
-
AppBskyFeedDefs: () =>
|
|
94
|
+
AppBskyFeedDefs: () => defs_exports6,
|
|
95
95
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
96
96
|
AppBskyFeedGetLikes: () => getLikes_exports,
|
|
97
97
|
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
|
@@ -135,10 +135,14 @@ __export(src_exports4, {
|
|
|
135
135
|
ComAtprotoAdminReverseModerationAction: () => reverseModerationAction_exports,
|
|
136
136
|
ComAtprotoAdminSearchRepos: () => searchRepos_exports,
|
|
137
137
|
ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
|
|
138
|
+
ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
|
|
138
139
|
ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
|
|
139
140
|
ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
|
|
141
|
+
ComAtprotoLabelDefs: () => defs_exports2,
|
|
142
|
+
ComAtprotoLabelQueryLabels: () => queryLabels_exports,
|
|
143
|
+
ComAtprotoLabelSubscribeLabels: () => subscribeLabels_exports,
|
|
140
144
|
ComAtprotoModerationCreateReport: () => createReport_exports,
|
|
141
|
-
ComAtprotoModerationDefs: () =>
|
|
145
|
+
ComAtprotoModerationDefs: () => defs_exports3,
|
|
142
146
|
ComAtprotoRepoApplyWrites: () => applyWrites_exports,
|
|
143
147
|
ComAtprotoRepoCreateRecord: () => createRecord_exports,
|
|
144
148
|
ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
|
|
@@ -150,8 +154,9 @@ __export(src_exports4, {
|
|
|
150
154
|
ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
|
|
151
155
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
152
156
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
157
|
+
ComAtprotoServerCreateInviteCodes: () => createInviteCodes_exports,
|
|
153
158
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
154
|
-
ComAtprotoServerDefs: () =>
|
|
159
|
+
ComAtprotoServerDefs: () => defs_exports4,
|
|
155
160
|
ComAtprotoServerDeleteAccount: () => deleteAccount_exports,
|
|
156
161
|
ComAtprotoServerDeleteSession: () => deleteSession_exports,
|
|
157
162
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
@@ -169,6 +174,7 @@ __export(src_exports4, {
|
|
|
169
174
|
ComAtprotoSyncGetRecord: () => getRecord_exports3,
|
|
170
175
|
ComAtprotoSyncGetRepo: () => getRepo_exports2,
|
|
171
176
|
ComAtprotoSyncListBlobs: () => listBlobs_exports,
|
|
177
|
+
ComAtprotoSyncListRepos: () => listRepos_exports,
|
|
172
178
|
ComAtprotoSyncNotifyOfUpdate: () => notifyOfUpdate_exports,
|
|
173
179
|
ComAtprotoSyncRequestCrawl: () => requestCrawl_exports,
|
|
174
180
|
ComAtprotoSyncSubscribeRepos: () => subscribeRepos_exports,
|
|
@@ -178,6 +184,7 @@ __export(src_exports4, {
|
|
|
178
184
|
FollowRecord: () => FollowRecord,
|
|
179
185
|
GraphNS: () => GraphNS,
|
|
180
186
|
IdentityNS: () => IdentityNS,
|
|
187
|
+
LabelNS: () => LabelNS,
|
|
181
188
|
LikeRecord: () => LikeRecord,
|
|
182
189
|
ModerationNS: () => ModerationNS,
|
|
183
190
|
NotificationNS: () => NotificationNS,
|
|
@@ -5283,6 +5290,7 @@ var famousAccounts = [
|
|
|
5283
5290
|
"nfl",
|
|
5284
5291
|
"niallofficial",
|
|
5285
5292
|
"nickiminaj",
|
|
5293
|
+
"npr",
|
|
5286
5294
|
"nytimes",
|
|
5287
5295
|
"onedirection",
|
|
5288
5296
|
"oprah",
|
|
@@ -5668,15 +5676,6 @@ var lexBoolean = mod.object({
|
|
|
5668
5676
|
default: mod.boolean().optional(),
|
|
5669
5677
|
const: mod.boolean().optional()
|
|
5670
5678
|
});
|
|
5671
|
-
var lexFloat = mod.object({
|
|
5672
|
-
type: mod.literal("float"),
|
|
5673
|
-
description: mod.string().optional(),
|
|
5674
|
-
default: mod.number().optional(),
|
|
5675
|
-
minimum: mod.number().optional(),
|
|
5676
|
-
maximum: mod.number().optional(),
|
|
5677
|
-
enum: mod.number().array().optional(),
|
|
5678
|
-
const: mod.number().optional()
|
|
5679
|
-
});
|
|
5680
5679
|
var lexInteger = mod.object({
|
|
5681
5680
|
type: mod.literal("integer"),
|
|
5682
5681
|
description: mod.string().optional(),
|
|
@@ -5715,7 +5714,6 @@ var lexUnknown = mod.object({
|
|
|
5715
5714
|
});
|
|
5716
5715
|
var lexPrimitive = mod.union([
|
|
5717
5716
|
lexBoolean,
|
|
5718
|
-
lexFloat,
|
|
5719
5717
|
lexInteger,
|
|
5720
5718
|
lexString,
|
|
5721
5719
|
lexUnknown
|
|
@@ -5832,7 +5830,6 @@ var lexUserType = mod.union([
|
|
|
5832
5830
|
lexToken,
|
|
5833
5831
|
lexObject,
|
|
5834
5832
|
lexBoolean,
|
|
5835
|
-
lexFloat,
|
|
5836
5833
|
lexInteger,
|
|
5837
5834
|
lexString,
|
|
5838
5835
|
lexBytes,
|
|
@@ -5985,8 +5982,6 @@ function validate(lexicons2, path, def2, value) {
|
|
|
5985
5982
|
switch (def2.type) {
|
|
5986
5983
|
case "boolean":
|
|
5987
5984
|
return boolean(lexicons2, path, def2, value);
|
|
5988
|
-
case "float":
|
|
5989
|
-
return float(lexicons2, path, def2, value);
|
|
5990
5985
|
case "integer":
|
|
5991
5986
|
return integer(lexicons2, path, def2, value);
|
|
5992
5987
|
case "string":
|
|
@@ -6031,7 +6026,7 @@ function boolean(lexicons2, path, def2, value) {
|
|
|
6031
6026
|
}
|
|
6032
6027
|
return { success: true, value };
|
|
6033
6028
|
}
|
|
6034
|
-
function
|
|
6029
|
+
function integer(lexicons2, path, def2, value) {
|
|
6035
6030
|
def2 = def2;
|
|
6036
6031
|
const type = typeof value;
|
|
6037
6032
|
if (type === "undefined") {
|
|
@@ -6040,12 +6035,12 @@ function float(lexicons2, path, def2, value) {
|
|
|
6040
6035
|
}
|
|
6041
6036
|
return {
|
|
6042
6037
|
success: false,
|
|
6043
|
-
error: new ValidationError(`${path} must be
|
|
6038
|
+
error: new ValidationError(`${path} must be an integer`)
|
|
6044
6039
|
};
|
|
6045
|
-
} else if (
|
|
6040
|
+
} else if (!Number.isInteger(value)) {
|
|
6046
6041
|
return {
|
|
6047
6042
|
success: false,
|
|
6048
|
-
error: new ValidationError(`${path} must be
|
|
6043
|
+
error: new ValidationError(`${path} must be an integer`)
|
|
6049
6044
|
};
|
|
6050
6045
|
}
|
|
6051
6046
|
if (typeof def2.const === "number") {
|
|
@@ -6088,22 +6083,6 @@ function float(lexicons2, path, def2, value) {
|
|
|
6088
6083
|
}
|
|
6089
6084
|
return { success: true, value };
|
|
6090
6085
|
}
|
|
6091
|
-
function integer(lexicons2, path, def2, value) {
|
|
6092
|
-
def2 = def2;
|
|
6093
|
-
const numRes = float(lexicons2, path, def2, value);
|
|
6094
|
-
if (!numRes.success) {
|
|
6095
|
-
return numRes;
|
|
6096
|
-
} else {
|
|
6097
|
-
value = numRes.value;
|
|
6098
|
-
}
|
|
6099
|
-
if (!Number.isInteger(value)) {
|
|
6100
|
-
return {
|
|
6101
|
-
success: false,
|
|
6102
|
-
error: new ValidationError(`${path} must be an integer`)
|
|
6103
|
-
};
|
|
6104
|
-
}
|
|
6105
|
-
return { success: true, value };
|
|
6106
|
-
}
|
|
6107
6086
|
function string2(lexicons2, path, def2, value) {
|
|
6108
6087
|
def2 = def2;
|
|
6109
6088
|
if (typeof value === "undefined") {
|
|
@@ -6315,8 +6294,6 @@ function validate2(lexicons2, path, def2, value) {
|
|
|
6315
6294
|
switch (def2.type) {
|
|
6316
6295
|
case "boolean":
|
|
6317
6296
|
return boolean(lexicons2, path, def2, value);
|
|
6318
|
-
case "float":
|
|
6319
|
-
return float(lexicons2, path, def2, value);
|
|
6320
6297
|
case "integer":
|
|
6321
6298
|
return integer(lexicons2, path, def2, value);
|
|
6322
6299
|
case "string":
|
|
@@ -7133,6 +7110,18 @@ var schemaDict = {
|
|
|
7133
7110
|
type: "string"
|
|
7134
7111
|
}
|
|
7135
7112
|
},
|
|
7113
|
+
createLabelVals: {
|
|
7114
|
+
type: "array",
|
|
7115
|
+
items: {
|
|
7116
|
+
type: "string"
|
|
7117
|
+
}
|
|
7118
|
+
},
|
|
7119
|
+
negateLabelVals: {
|
|
7120
|
+
type: "array",
|
|
7121
|
+
items: {
|
|
7122
|
+
type: "string"
|
|
7123
|
+
}
|
|
7124
|
+
},
|
|
7136
7125
|
reason: {
|
|
7137
7126
|
type: "string"
|
|
7138
7127
|
},
|
|
@@ -7190,6 +7179,18 @@ var schemaDict = {
|
|
|
7190
7179
|
ref: "lex:com.atproto.admin.defs#blobView"
|
|
7191
7180
|
}
|
|
7192
7181
|
},
|
|
7182
|
+
createLabelVals: {
|
|
7183
|
+
type: "array",
|
|
7184
|
+
items: {
|
|
7185
|
+
type: "string"
|
|
7186
|
+
}
|
|
7187
|
+
},
|
|
7188
|
+
negateLabelVals: {
|
|
7189
|
+
type: "array",
|
|
7190
|
+
items: {
|
|
7191
|
+
type: "string"
|
|
7192
|
+
}
|
|
7193
|
+
},
|
|
7193
7194
|
reason: {
|
|
7194
7195
|
type: "string"
|
|
7195
7196
|
},
|
|
@@ -7391,13 +7392,6 @@ var schemaDict = {
|
|
|
7391
7392
|
invitedBy: {
|
|
7392
7393
|
type: "ref",
|
|
7393
7394
|
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7394
|
-
},
|
|
7395
|
-
invites: {
|
|
7396
|
-
type: "array",
|
|
7397
|
-
items: {
|
|
7398
|
-
type: "ref",
|
|
7399
|
-
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7400
|
-
}
|
|
7401
7395
|
}
|
|
7402
7396
|
}
|
|
7403
7397
|
},
|
|
@@ -8083,6 +8077,18 @@ var schemaDict = {
|
|
|
8083
8077
|
format: "cid"
|
|
8084
8078
|
}
|
|
8085
8079
|
},
|
|
8080
|
+
createLabelVals: {
|
|
8081
|
+
type: "array",
|
|
8082
|
+
items: {
|
|
8083
|
+
type: "string"
|
|
8084
|
+
}
|
|
8085
|
+
},
|
|
8086
|
+
negateLabelVals: {
|
|
8087
|
+
type: "array",
|
|
8088
|
+
items: {
|
|
8089
|
+
type: "string"
|
|
8090
|
+
}
|
|
8091
|
+
},
|
|
8086
8092
|
reason: {
|
|
8087
8093
|
type: "string"
|
|
8088
8094
|
},
|
|
@@ -8108,6 +8114,33 @@ var schemaDict = {
|
|
|
8108
8114
|
}
|
|
8109
8115
|
}
|
|
8110
8116
|
},
|
|
8117
|
+
ComAtprotoAdminUpdateAccountHandle: {
|
|
8118
|
+
lexicon: 1,
|
|
8119
|
+
id: "com.atproto.admin.updateAccountHandle",
|
|
8120
|
+
defs: {
|
|
8121
|
+
main: {
|
|
8122
|
+
type: "procedure",
|
|
8123
|
+
description: "Administrative action to update an accounts handle",
|
|
8124
|
+
input: {
|
|
8125
|
+
encoding: "application/json",
|
|
8126
|
+
schema: {
|
|
8127
|
+
type: "object",
|
|
8128
|
+
required: ["did", "handle"],
|
|
8129
|
+
properties: {
|
|
8130
|
+
did: {
|
|
8131
|
+
type: "string",
|
|
8132
|
+
format: "did"
|
|
8133
|
+
},
|
|
8134
|
+
handle: {
|
|
8135
|
+
type: "string",
|
|
8136
|
+
format: "handle"
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
8140
|
+
}
|
|
8141
|
+
}
|
|
8142
|
+
}
|
|
8143
|
+
},
|
|
8111
8144
|
ComAtprotoIdentityResolveHandle: {
|
|
8112
8145
|
lexicon: 1,
|
|
8113
8146
|
id: "com.atproto.identity.resolveHandle",
|
|
@@ -8164,6 +8197,169 @@ var schemaDict = {
|
|
|
8164
8197
|
}
|
|
8165
8198
|
}
|
|
8166
8199
|
},
|
|
8200
|
+
ComAtprotoLabelDefs: {
|
|
8201
|
+
lexicon: 1,
|
|
8202
|
+
id: "com.atproto.label.defs",
|
|
8203
|
+
defs: {
|
|
8204
|
+
label: {
|
|
8205
|
+
type: "object",
|
|
8206
|
+
description: "Metadata tag on an atproto resource (eg, repo or record)",
|
|
8207
|
+
required: ["src", "uri", "val", "cts"],
|
|
8208
|
+
properties: {
|
|
8209
|
+
src: {
|
|
8210
|
+
type: "string",
|
|
8211
|
+
format: "did",
|
|
8212
|
+
description: "DID of the actor who created this label"
|
|
8213
|
+
},
|
|
8214
|
+
uri: {
|
|
8215
|
+
type: "string",
|
|
8216
|
+
format: "uri",
|
|
8217
|
+
description: "AT URI of the record, repository (account), or other resource which this label applies to"
|
|
8218
|
+
},
|
|
8219
|
+
cid: {
|
|
8220
|
+
type: "string",
|
|
8221
|
+
format: "cid",
|
|
8222
|
+
description: "optionally, CID specifying the specific version of 'uri' resource this label applies to"
|
|
8223
|
+
},
|
|
8224
|
+
val: {
|
|
8225
|
+
type: "string",
|
|
8226
|
+
maxLength: 128,
|
|
8227
|
+
description: "the short string name of the value or type of this label"
|
|
8228
|
+
},
|
|
8229
|
+
neg: {
|
|
8230
|
+
type: "boolean",
|
|
8231
|
+
description: "if true, this is a negation label, overwriting a previous label"
|
|
8232
|
+
},
|
|
8233
|
+
cts: {
|
|
8234
|
+
type: "string",
|
|
8235
|
+
format: "datetime",
|
|
8236
|
+
description: "timestamp when this label was created"
|
|
8237
|
+
}
|
|
8238
|
+
}
|
|
8239
|
+
}
|
|
8240
|
+
}
|
|
8241
|
+
},
|
|
8242
|
+
ComAtprotoLabelQueryLabels: {
|
|
8243
|
+
lexicon: 1,
|
|
8244
|
+
id: "com.atproto.label.queryLabels",
|
|
8245
|
+
defs: {
|
|
8246
|
+
main: {
|
|
8247
|
+
type: "query",
|
|
8248
|
+
description: "Find labels relevant to the provided URI patterns.",
|
|
8249
|
+
parameters: {
|
|
8250
|
+
type: "params",
|
|
8251
|
+
required: ["uriPatterns"],
|
|
8252
|
+
properties: {
|
|
8253
|
+
uriPatterns: {
|
|
8254
|
+
type: "array",
|
|
8255
|
+
items: {
|
|
8256
|
+
type: "string"
|
|
8257
|
+
},
|
|
8258
|
+
description: "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI"
|
|
8259
|
+
},
|
|
8260
|
+
sources: {
|
|
8261
|
+
type: "array",
|
|
8262
|
+
items: {
|
|
8263
|
+
type: "string",
|
|
8264
|
+
format: "did"
|
|
8265
|
+
},
|
|
8266
|
+
description: "Optional list of label sources (DIDs) to filter on"
|
|
8267
|
+
},
|
|
8268
|
+
limit: {
|
|
8269
|
+
type: "integer",
|
|
8270
|
+
minimum: 1,
|
|
8271
|
+
maximum: 250,
|
|
8272
|
+
default: 50
|
|
8273
|
+
},
|
|
8274
|
+
cursor: {
|
|
8275
|
+
type: "string"
|
|
8276
|
+
}
|
|
8277
|
+
}
|
|
8278
|
+
},
|
|
8279
|
+
output: {
|
|
8280
|
+
encoding: "application/json",
|
|
8281
|
+
schema: {
|
|
8282
|
+
type: "object",
|
|
8283
|
+
required: ["labels"],
|
|
8284
|
+
properties: {
|
|
8285
|
+
cursor: {
|
|
8286
|
+
type: "string"
|
|
8287
|
+
},
|
|
8288
|
+
labels: {
|
|
8289
|
+
type: "array",
|
|
8290
|
+
items: {
|
|
8291
|
+
type: "ref",
|
|
8292
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
8293
|
+
}
|
|
8294
|
+
}
|
|
8295
|
+
}
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
}
|
|
8299
|
+
}
|
|
8300
|
+
},
|
|
8301
|
+
ComAtprotoLabelSubscribeLabels: {
|
|
8302
|
+
lexicon: 1,
|
|
8303
|
+
id: "com.atproto.label.subscribeLabels",
|
|
8304
|
+
defs: {
|
|
8305
|
+
main: {
|
|
8306
|
+
type: "subscription",
|
|
8307
|
+
description: "Subscribe to label updates",
|
|
8308
|
+
parameters: {
|
|
8309
|
+
type: "params",
|
|
8310
|
+
properties: {
|
|
8311
|
+
cursor: {
|
|
8312
|
+
type: "integer",
|
|
8313
|
+
description: "The last known event to backfill from."
|
|
8314
|
+
}
|
|
8315
|
+
}
|
|
8316
|
+
},
|
|
8317
|
+
message: {
|
|
8318
|
+
schema: {
|
|
8319
|
+
type: "union",
|
|
8320
|
+
refs: [
|
|
8321
|
+
"lex:com.atproto.label.subscribeLabels#labels",
|
|
8322
|
+
"lex:com.atproto.label.subscribeLabels#info"
|
|
8323
|
+
]
|
|
8324
|
+
}
|
|
8325
|
+
},
|
|
8326
|
+
errors: [
|
|
8327
|
+
{
|
|
8328
|
+
name: "FutureCursor"
|
|
8329
|
+
}
|
|
8330
|
+
]
|
|
8331
|
+
},
|
|
8332
|
+
labels: {
|
|
8333
|
+
type: "object",
|
|
8334
|
+
required: ["seq", "labels"],
|
|
8335
|
+
properties: {
|
|
8336
|
+
seq: {
|
|
8337
|
+
type: "integer"
|
|
8338
|
+
},
|
|
8339
|
+
labels: {
|
|
8340
|
+
type: "array",
|
|
8341
|
+
items: {
|
|
8342
|
+
type: "ref",
|
|
8343
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
8344
|
+
}
|
|
8345
|
+
}
|
|
8346
|
+
}
|
|
8347
|
+
},
|
|
8348
|
+
info: {
|
|
8349
|
+
type: "object",
|
|
8350
|
+
required: ["name"],
|
|
8351
|
+
properties: {
|
|
8352
|
+
name: {
|
|
8353
|
+
type: "string",
|
|
8354
|
+
knownValues: ["OutdatedCursor"]
|
|
8355
|
+
},
|
|
8356
|
+
message: {
|
|
8357
|
+
type: "string"
|
|
8358
|
+
}
|
|
8359
|
+
}
|
|
8360
|
+
}
|
|
8361
|
+
}
|
|
8362
|
+
},
|
|
8167
8363
|
ComAtprotoModerationCreateReport: {
|
|
8168
8364
|
lexicon: 1,
|
|
8169
8365
|
id: "com.atproto.moderation.createReport",
|
|
@@ -8618,11 +8814,11 @@ var schemaDict = {
|
|
|
8618
8814
|
},
|
|
8619
8815
|
rkeyStart: {
|
|
8620
8816
|
type: "string",
|
|
8621
|
-
description: "The lowest sort-ordered rkey to start from (exclusive)"
|
|
8817
|
+
description: "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"
|
|
8622
8818
|
},
|
|
8623
8819
|
rkeyEnd: {
|
|
8624
8820
|
type: "string",
|
|
8625
|
-
description: "The highest sort-ordered rkey to stop at (exclusive)"
|
|
8821
|
+
description: "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"
|
|
8626
8822
|
},
|
|
8627
8823
|
reverse: {
|
|
8628
8824
|
type: "boolean",
|
|
@@ -8903,6 +9099,51 @@ var schemaDict = {
|
|
|
8903
9099
|
}
|
|
8904
9100
|
}
|
|
8905
9101
|
},
|
|
9102
|
+
ComAtprotoServerCreateInviteCodes: {
|
|
9103
|
+
lexicon: 1,
|
|
9104
|
+
id: "com.atproto.server.createInviteCodes",
|
|
9105
|
+
defs: {
|
|
9106
|
+
main: {
|
|
9107
|
+
type: "procedure",
|
|
9108
|
+
description: "Create an invite code.",
|
|
9109
|
+
input: {
|
|
9110
|
+
encoding: "application/json",
|
|
9111
|
+
schema: {
|
|
9112
|
+
type: "object",
|
|
9113
|
+
required: ["codeCount", "useCount"],
|
|
9114
|
+
properties: {
|
|
9115
|
+
codeCount: {
|
|
9116
|
+
type: "integer",
|
|
9117
|
+
default: 1
|
|
9118
|
+
},
|
|
9119
|
+
useCount: {
|
|
9120
|
+
type: "integer"
|
|
9121
|
+
},
|
|
9122
|
+
forAccount: {
|
|
9123
|
+
type: "string",
|
|
9124
|
+
format: "did"
|
|
9125
|
+
}
|
|
9126
|
+
}
|
|
9127
|
+
}
|
|
9128
|
+
},
|
|
9129
|
+
output: {
|
|
9130
|
+
encoding: "application/json",
|
|
9131
|
+
schema: {
|
|
9132
|
+
type: "object",
|
|
9133
|
+
required: ["codes"],
|
|
9134
|
+
properties: {
|
|
9135
|
+
codes: {
|
|
9136
|
+
type: "array",
|
|
9137
|
+
items: {
|
|
9138
|
+
type: "string"
|
|
9139
|
+
}
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
}
|
|
9143
|
+
}
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
},
|
|
8906
9147
|
ComAtprotoServerCreateSession: {
|
|
8907
9148
|
lexicon: 1,
|
|
8908
9149
|
id: "com.atproto.server.createSession",
|
|
@@ -8914,7 +9155,7 @@ var schemaDict = {
|
|
|
8914
9155
|
encoding: "application/json",
|
|
8915
9156
|
schema: {
|
|
8916
9157
|
type: "object",
|
|
8917
|
-
required: ["password"],
|
|
9158
|
+
required: ["identifier", "password"],
|
|
8918
9159
|
properties: {
|
|
8919
9160
|
identifier: {
|
|
8920
9161
|
type: "string",
|
|
@@ -9574,28 +9815,85 @@ var schemaDict = {
|
|
|
9574
9815
|
}
|
|
9575
9816
|
}
|
|
9576
9817
|
},
|
|
9577
|
-
|
|
9818
|
+
ComAtprotoSyncListRepos: {
|
|
9578
9819
|
lexicon: 1,
|
|
9579
|
-
id: "com.atproto.sync.
|
|
9820
|
+
id: "com.atproto.sync.listRepos",
|
|
9580
9821
|
defs: {
|
|
9581
9822
|
main: {
|
|
9582
9823
|
type: "query",
|
|
9583
|
-
description: "
|
|
9824
|
+
description: "List dids and root cids of hosted repos",
|
|
9584
9825
|
parameters: {
|
|
9585
9826
|
type: "params",
|
|
9586
|
-
required: ["hostname"],
|
|
9587
9827
|
properties: {
|
|
9588
|
-
|
|
9589
|
-
type: "
|
|
9590
|
-
|
|
9828
|
+
limit: {
|
|
9829
|
+
type: "integer",
|
|
9830
|
+
minimum: 1,
|
|
9831
|
+
maximum: 1e3,
|
|
9832
|
+
default: 500
|
|
9833
|
+
},
|
|
9834
|
+
cursor: {
|
|
9835
|
+
type: "string"
|
|
9591
9836
|
}
|
|
9592
9837
|
}
|
|
9593
|
-
}
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9838
|
+
},
|
|
9839
|
+
output: {
|
|
9840
|
+
encoding: "application/json",
|
|
9841
|
+
schema: {
|
|
9842
|
+
type: "object",
|
|
9843
|
+
required: ["repos"],
|
|
9844
|
+
properties: {
|
|
9845
|
+
cursor: {
|
|
9846
|
+
type: "string"
|
|
9847
|
+
},
|
|
9848
|
+
repos: {
|
|
9849
|
+
type: "array",
|
|
9850
|
+
items: {
|
|
9851
|
+
type: "ref",
|
|
9852
|
+
ref: "lex:com.atproto.sync.listRepos#repo"
|
|
9853
|
+
}
|
|
9854
|
+
}
|
|
9855
|
+
}
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
9858
|
+
},
|
|
9859
|
+
repo: {
|
|
9860
|
+
type: "object",
|
|
9861
|
+
required: ["did", "head"],
|
|
9862
|
+
properties: {
|
|
9863
|
+
did: {
|
|
9864
|
+
type: "string",
|
|
9865
|
+
format: "did"
|
|
9866
|
+
},
|
|
9867
|
+
head: {
|
|
9868
|
+
type: "string",
|
|
9869
|
+
format: "cid"
|
|
9870
|
+
}
|
|
9871
|
+
}
|
|
9872
|
+
}
|
|
9873
|
+
}
|
|
9874
|
+
},
|
|
9875
|
+
ComAtprotoSyncNotifyOfUpdate: {
|
|
9876
|
+
lexicon: 1,
|
|
9877
|
+
id: "com.atproto.sync.notifyOfUpdate",
|
|
9878
|
+
defs: {
|
|
9879
|
+
main: {
|
|
9880
|
+
type: "query",
|
|
9881
|
+
description: "Notify a crawling service of a recent update. Often when a long break between updates causes the connection with the crawling service to break.",
|
|
9882
|
+
parameters: {
|
|
9883
|
+
type: "params",
|
|
9884
|
+
required: ["hostname"],
|
|
9885
|
+
properties: {
|
|
9886
|
+
hostname: {
|
|
9887
|
+
type: "string",
|
|
9888
|
+
description: "Hostname of the service that is notifying of update."
|
|
9889
|
+
}
|
|
9890
|
+
}
|
|
9891
|
+
}
|
|
9892
|
+
}
|
|
9893
|
+
}
|
|
9894
|
+
},
|
|
9895
|
+
ComAtprotoSyncRequestCrawl: {
|
|
9896
|
+
lexicon: 1,
|
|
9599
9897
|
id: "com.atproto.sync.requestCrawl",
|
|
9600
9898
|
defs: {
|
|
9601
9899
|
main: {
|
|
@@ -9827,6 +10125,13 @@ var schemaDict = {
|
|
|
9827
10125
|
viewer: {
|
|
9828
10126
|
type: "ref",
|
|
9829
10127
|
ref: "lex:app.bsky.actor.defs#viewerState"
|
|
10128
|
+
},
|
|
10129
|
+
labels: {
|
|
10130
|
+
type: "array",
|
|
10131
|
+
items: {
|
|
10132
|
+
type: "ref",
|
|
10133
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
10134
|
+
}
|
|
9830
10135
|
}
|
|
9831
10136
|
}
|
|
9832
10137
|
},
|
|
@@ -9862,6 +10167,13 @@ var schemaDict = {
|
|
|
9862
10167
|
viewer: {
|
|
9863
10168
|
type: "ref",
|
|
9864
10169
|
ref: "lex:app.bsky.actor.defs#viewerState"
|
|
10170
|
+
},
|
|
10171
|
+
labels: {
|
|
10172
|
+
type: "array",
|
|
10173
|
+
items: {
|
|
10174
|
+
type: "ref",
|
|
10175
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
10176
|
+
}
|
|
9865
10177
|
}
|
|
9866
10178
|
}
|
|
9867
10179
|
},
|
|
@@ -9909,6 +10221,13 @@ var schemaDict = {
|
|
|
9909
10221
|
viewer: {
|
|
9910
10222
|
type: "ref",
|
|
9911
10223
|
ref: "lex:app.bsky.actor.defs#viewerState"
|
|
10224
|
+
},
|
|
10225
|
+
labels: {
|
|
10226
|
+
type: "array",
|
|
10227
|
+
items: {
|
|
10228
|
+
type: "ref",
|
|
10229
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
10230
|
+
}
|
|
9912
10231
|
}
|
|
9913
10232
|
}
|
|
9914
10233
|
},
|
|
@@ -10453,6 +10772,13 @@ var schemaDict = {
|
|
|
10453
10772
|
viewer: {
|
|
10454
10773
|
type: "ref",
|
|
10455
10774
|
ref: "lex:app.bsky.feed.defs#viewerState"
|
|
10775
|
+
},
|
|
10776
|
+
labels: {
|
|
10777
|
+
type: "array",
|
|
10778
|
+
items: {
|
|
10779
|
+
type: "ref",
|
|
10780
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
10781
|
+
}
|
|
10456
10782
|
}
|
|
10457
10783
|
}
|
|
10458
10784
|
},
|
|
@@ -11307,6 +11633,13 @@ var schemaDict = {
|
|
|
11307
11633
|
indexedAt: {
|
|
11308
11634
|
type: "string",
|
|
11309
11635
|
format: "datetime"
|
|
11636
|
+
},
|
|
11637
|
+
labels: {
|
|
11638
|
+
type: "array",
|
|
11639
|
+
items: {
|
|
11640
|
+
type: "ref",
|
|
11641
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
11642
|
+
}
|
|
11310
11643
|
}
|
|
11311
11644
|
}
|
|
11312
11645
|
}
|
|
@@ -11585,12 +11918,23 @@ function toKnownErr12(e) {
|
|
|
11585
11918
|
return e;
|
|
11586
11919
|
}
|
|
11587
11920
|
|
|
11921
|
+
// src/client/types/com/atproto/admin/updateAccountHandle.ts
|
|
11922
|
+
var updateAccountHandle_exports = {};
|
|
11923
|
+
__export(updateAccountHandle_exports, {
|
|
11924
|
+
toKnownErr: () => toKnownErr13
|
|
11925
|
+
});
|
|
11926
|
+
function toKnownErr13(e) {
|
|
11927
|
+
if (e instanceof XRPCError) {
|
|
11928
|
+
}
|
|
11929
|
+
return e;
|
|
11930
|
+
}
|
|
11931
|
+
|
|
11588
11932
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
11589
11933
|
var resolveHandle_exports = {};
|
|
11590
11934
|
__export(resolveHandle_exports, {
|
|
11591
|
-
toKnownErr: () =>
|
|
11935
|
+
toKnownErr: () => toKnownErr14
|
|
11592
11936
|
});
|
|
11593
|
-
function
|
|
11937
|
+
function toKnownErr14(e) {
|
|
11594
11938
|
if (e instanceof XRPCError) {
|
|
11595
11939
|
}
|
|
11596
11940
|
return e;
|
|
@@ -11599,9 +11943,20 @@ function toKnownErr13(e) {
|
|
|
11599
11943
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
11600
11944
|
var updateHandle_exports = {};
|
|
11601
11945
|
__export(updateHandle_exports, {
|
|
11602
|
-
toKnownErr: () =>
|
|
11946
|
+
toKnownErr: () => toKnownErr15
|
|
11603
11947
|
});
|
|
11604
|
-
function
|
|
11948
|
+
function toKnownErr15(e) {
|
|
11949
|
+
if (e instanceof XRPCError) {
|
|
11950
|
+
}
|
|
11951
|
+
return e;
|
|
11952
|
+
}
|
|
11953
|
+
|
|
11954
|
+
// src/client/types/com/atproto/label/queryLabels.ts
|
|
11955
|
+
var queryLabels_exports = {};
|
|
11956
|
+
__export(queryLabels_exports, {
|
|
11957
|
+
toKnownErr: () => toKnownErr16
|
|
11958
|
+
});
|
|
11959
|
+
function toKnownErr16(e) {
|
|
11605
11960
|
if (e instanceof XRPCError) {
|
|
11606
11961
|
}
|
|
11607
11962
|
return e;
|
|
@@ -11610,9 +11965,9 @@ function toKnownErr14(e) {
|
|
|
11610
11965
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
11611
11966
|
var createReport_exports = {};
|
|
11612
11967
|
__export(createReport_exports, {
|
|
11613
|
-
toKnownErr: () =>
|
|
11968
|
+
toKnownErr: () => toKnownErr17
|
|
11614
11969
|
});
|
|
11615
|
-
function
|
|
11970
|
+
function toKnownErr17(e) {
|
|
11616
11971
|
if (e instanceof XRPCError) {
|
|
11617
11972
|
}
|
|
11618
11973
|
return e;
|
|
@@ -11625,7 +11980,7 @@ __export(applyWrites_exports, {
|
|
|
11625
11980
|
isCreate: () => isCreate,
|
|
11626
11981
|
isDelete: () => isDelete,
|
|
11627
11982
|
isUpdate: () => isUpdate,
|
|
11628
|
-
toKnownErr: () =>
|
|
11983
|
+
toKnownErr: () => toKnownErr18,
|
|
11629
11984
|
validateCreate: () => validateCreate,
|
|
11630
11985
|
validateDelete: () => validateDelete,
|
|
11631
11986
|
validateUpdate: () => validateUpdate
|
|
@@ -11645,7 +12000,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
11645
12000
|
super(src2.status, src2.error, src2.message);
|
|
11646
12001
|
}
|
|
11647
12002
|
};
|
|
11648
|
-
function
|
|
12003
|
+
function toKnownErr18(e) {
|
|
11649
12004
|
if (e instanceof XRPCError) {
|
|
11650
12005
|
if (e.error === "InvalidSwap")
|
|
11651
12006
|
return new InvalidSwapError(e);
|
|
@@ -11675,14 +12030,14 @@ function validateDelete(v) {
|
|
|
11675
12030
|
var createRecord_exports = {};
|
|
11676
12031
|
__export(createRecord_exports, {
|
|
11677
12032
|
InvalidSwapError: () => InvalidSwapError2,
|
|
11678
|
-
toKnownErr: () =>
|
|
12033
|
+
toKnownErr: () => toKnownErr19
|
|
11679
12034
|
});
|
|
11680
12035
|
var InvalidSwapError2 = class extends XRPCError {
|
|
11681
12036
|
constructor(src2) {
|
|
11682
12037
|
super(src2.status, src2.error, src2.message);
|
|
11683
12038
|
}
|
|
11684
12039
|
};
|
|
11685
|
-
function
|
|
12040
|
+
function toKnownErr19(e) {
|
|
11686
12041
|
if (e instanceof XRPCError) {
|
|
11687
12042
|
if (e.error === "InvalidSwap")
|
|
11688
12043
|
return new InvalidSwapError2(e);
|
|
@@ -11694,14 +12049,14 @@ function toKnownErr17(e) {
|
|
|
11694
12049
|
var deleteRecord_exports = {};
|
|
11695
12050
|
__export(deleteRecord_exports, {
|
|
11696
12051
|
InvalidSwapError: () => InvalidSwapError3,
|
|
11697
|
-
toKnownErr: () =>
|
|
12052
|
+
toKnownErr: () => toKnownErr20
|
|
11698
12053
|
});
|
|
11699
12054
|
var InvalidSwapError3 = class extends XRPCError {
|
|
11700
12055
|
constructor(src2) {
|
|
11701
12056
|
super(src2.status, src2.error, src2.message);
|
|
11702
12057
|
}
|
|
11703
12058
|
};
|
|
11704
|
-
function
|
|
12059
|
+
function toKnownErr20(e) {
|
|
11705
12060
|
if (e instanceof XRPCError) {
|
|
11706
12061
|
if (e.error === "InvalidSwap")
|
|
11707
12062
|
return new InvalidSwapError3(e);
|
|
@@ -11712,9 +12067,9 @@ function toKnownErr18(e) {
|
|
|
11712
12067
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
11713
12068
|
var describeRepo_exports = {};
|
|
11714
12069
|
__export(describeRepo_exports, {
|
|
11715
|
-
toKnownErr: () =>
|
|
12070
|
+
toKnownErr: () => toKnownErr21
|
|
11716
12071
|
});
|
|
11717
|
-
function
|
|
12072
|
+
function toKnownErr21(e) {
|
|
11718
12073
|
if (e instanceof XRPCError) {
|
|
11719
12074
|
}
|
|
11720
12075
|
return e;
|
|
@@ -11723,9 +12078,9 @@ function toKnownErr19(e) {
|
|
|
11723
12078
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
11724
12079
|
var getRecord_exports2 = {};
|
|
11725
12080
|
__export(getRecord_exports2, {
|
|
11726
|
-
toKnownErr: () =>
|
|
12081
|
+
toKnownErr: () => toKnownErr22
|
|
11727
12082
|
});
|
|
11728
|
-
function
|
|
12083
|
+
function toKnownErr22(e) {
|
|
11729
12084
|
if (e instanceof XRPCError) {
|
|
11730
12085
|
}
|
|
11731
12086
|
return e;
|
|
@@ -11735,10 +12090,10 @@ function toKnownErr20(e) {
|
|
|
11735
12090
|
var listRecords_exports = {};
|
|
11736
12091
|
__export(listRecords_exports, {
|
|
11737
12092
|
isRecord: () => isRecord,
|
|
11738
|
-
toKnownErr: () =>
|
|
12093
|
+
toKnownErr: () => toKnownErr23,
|
|
11739
12094
|
validateRecord: () => validateRecord
|
|
11740
12095
|
});
|
|
11741
|
-
function
|
|
12096
|
+
function toKnownErr23(e) {
|
|
11742
12097
|
if (e instanceof XRPCError) {
|
|
11743
12098
|
}
|
|
11744
12099
|
return e;
|
|
@@ -11754,14 +12109,14 @@ function validateRecord(v) {
|
|
|
11754
12109
|
var putRecord_exports = {};
|
|
11755
12110
|
__export(putRecord_exports, {
|
|
11756
12111
|
InvalidSwapError: () => InvalidSwapError4,
|
|
11757
|
-
toKnownErr: () =>
|
|
12112
|
+
toKnownErr: () => toKnownErr24
|
|
11758
12113
|
});
|
|
11759
12114
|
var InvalidSwapError4 = class extends XRPCError {
|
|
11760
12115
|
constructor(src2) {
|
|
11761
12116
|
super(src2.status, src2.error, src2.message);
|
|
11762
12117
|
}
|
|
11763
12118
|
};
|
|
11764
|
-
function
|
|
12119
|
+
function toKnownErr24(e) {
|
|
11765
12120
|
if (e instanceof XRPCError) {
|
|
11766
12121
|
if (e.error === "InvalidSwap")
|
|
11767
12122
|
return new InvalidSwapError4(e);
|
|
@@ -11772,9 +12127,9 @@ function toKnownErr22(e) {
|
|
|
11772
12127
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
11773
12128
|
var uploadBlob_exports = {};
|
|
11774
12129
|
__export(uploadBlob_exports, {
|
|
11775
|
-
toKnownErr: () =>
|
|
12130
|
+
toKnownErr: () => toKnownErr25
|
|
11776
12131
|
});
|
|
11777
|
-
function
|
|
12132
|
+
function toKnownErr25(e) {
|
|
11778
12133
|
if (e instanceof XRPCError) {
|
|
11779
12134
|
}
|
|
11780
12135
|
return e;
|
|
@@ -11788,7 +12143,7 @@ __export(createAccount_exports, {
|
|
|
11788
12143
|
InvalidInviteCodeError: () => InvalidInviteCodeError,
|
|
11789
12144
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
11790
12145
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
11791
|
-
toKnownErr: () =>
|
|
12146
|
+
toKnownErr: () => toKnownErr26
|
|
11792
12147
|
});
|
|
11793
12148
|
var InvalidHandleError2 = class extends XRPCError {
|
|
11794
12149
|
constructor(src2) {
|
|
@@ -11815,7 +12170,7 @@ var UnsupportedDomainError = class extends XRPCError {
|
|
|
11815
12170
|
super(src2.status, src2.error, src2.message);
|
|
11816
12171
|
}
|
|
11817
12172
|
};
|
|
11818
|
-
function
|
|
12173
|
+
function toKnownErr26(e) {
|
|
11819
12174
|
if (e instanceof XRPCError) {
|
|
11820
12175
|
if (e.error === "InvalidHandle")
|
|
11821
12176
|
return new InvalidHandleError2(e);
|
|
@@ -11834,9 +12189,20 @@ function toKnownErr24(e) {
|
|
|
11834
12189
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
11835
12190
|
var createInviteCode_exports = {};
|
|
11836
12191
|
__export(createInviteCode_exports, {
|
|
11837
|
-
toKnownErr: () =>
|
|
12192
|
+
toKnownErr: () => toKnownErr27
|
|
11838
12193
|
});
|
|
11839
|
-
function
|
|
12194
|
+
function toKnownErr27(e) {
|
|
12195
|
+
if (e instanceof XRPCError) {
|
|
12196
|
+
}
|
|
12197
|
+
return e;
|
|
12198
|
+
}
|
|
12199
|
+
|
|
12200
|
+
// src/client/types/com/atproto/server/createInviteCodes.ts
|
|
12201
|
+
var createInviteCodes_exports = {};
|
|
12202
|
+
__export(createInviteCodes_exports, {
|
|
12203
|
+
toKnownErr: () => toKnownErr28
|
|
12204
|
+
});
|
|
12205
|
+
function toKnownErr28(e) {
|
|
11840
12206
|
if (e instanceof XRPCError) {
|
|
11841
12207
|
}
|
|
11842
12208
|
return e;
|
|
@@ -11846,14 +12212,14 @@ function toKnownErr25(e) {
|
|
|
11846
12212
|
var createSession_exports = {};
|
|
11847
12213
|
__export(createSession_exports, {
|
|
11848
12214
|
AccountTakedownError: () => AccountTakedownError,
|
|
11849
|
-
toKnownErr: () =>
|
|
12215
|
+
toKnownErr: () => toKnownErr29
|
|
11850
12216
|
});
|
|
11851
12217
|
var AccountTakedownError = class extends XRPCError {
|
|
11852
12218
|
constructor(src2) {
|
|
11853
12219
|
super(src2.status, src2.error, src2.message);
|
|
11854
12220
|
}
|
|
11855
12221
|
};
|
|
11856
|
-
function
|
|
12222
|
+
function toKnownErr29(e) {
|
|
11857
12223
|
if (e instanceof XRPCError) {
|
|
11858
12224
|
if (e.error === "AccountTakedown")
|
|
11859
12225
|
return new AccountTakedownError(e);
|
|
@@ -11866,7 +12232,7 @@ var deleteAccount_exports = {};
|
|
|
11866
12232
|
__export(deleteAccount_exports, {
|
|
11867
12233
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
11868
12234
|
InvalidTokenError: () => InvalidTokenError,
|
|
11869
|
-
toKnownErr: () =>
|
|
12235
|
+
toKnownErr: () => toKnownErr30
|
|
11870
12236
|
});
|
|
11871
12237
|
var ExpiredTokenError = class extends XRPCError {
|
|
11872
12238
|
constructor(src2) {
|
|
@@ -11878,7 +12244,7 @@ var InvalidTokenError = class extends XRPCError {
|
|
|
11878
12244
|
super(src2.status, src2.error, src2.message);
|
|
11879
12245
|
}
|
|
11880
12246
|
};
|
|
11881
|
-
function
|
|
12247
|
+
function toKnownErr30(e) {
|
|
11882
12248
|
if (e instanceof XRPCError) {
|
|
11883
12249
|
if (e.error === "ExpiredToken")
|
|
11884
12250
|
return new ExpiredTokenError(e);
|
|
@@ -11891,9 +12257,9 @@ function toKnownErr27(e) {
|
|
|
11891
12257
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
11892
12258
|
var deleteSession_exports = {};
|
|
11893
12259
|
__export(deleteSession_exports, {
|
|
11894
|
-
toKnownErr: () =>
|
|
12260
|
+
toKnownErr: () => toKnownErr31
|
|
11895
12261
|
});
|
|
11896
|
-
function
|
|
12262
|
+
function toKnownErr31(e) {
|
|
11897
12263
|
if (e instanceof XRPCError) {
|
|
11898
12264
|
}
|
|
11899
12265
|
return e;
|
|
@@ -11903,10 +12269,10 @@ function toKnownErr28(e) {
|
|
|
11903
12269
|
var describeServer_exports = {};
|
|
11904
12270
|
__export(describeServer_exports, {
|
|
11905
12271
|
isLinks: () => isLinks,
|
|
11906
|
-
toKnownErr: () =>
|
|
12272
|
+
toKnownErr: () => toKnownErr32,
|
|
11907
12273
|
validateLinks: () => validateLinks
|
|
11908
12274
|
});
|
|
11909
|
-
function
|
|
12275
|
+
function toKnownErr32(e) {
|
|
11910
12276
|
if (e instanceof XRPCError) {
|
|
11911
12277
|
}
|
|
11912
12278
|
return e;
|
|
@@ -11922,14 +12288,14 @@ function validateLinks(v) {
|
|
|
11922
12288
|
var getAccountInviteCodes_exports = {};
|
|
11923
12289
|
__export(getAccountInviteCodes_exports, {
|
|
11924
12290
|
DuplicateCreateError: () => DuplicateCreateError,
|
|
11925
|
-
toKnownErr: () =>
|
|
12291
|
+
toKnownErr: () => toKnownErr33
|
|
11926
12292
|
});
|
|
11927
12293
|
var DuplicateCreateError = class extends XRPCError {
|
|
11928
12294
|
constructor(src2) {
|
|
11929
12295
|
super(src2.status, src2.error, src2.message);
|
|
11930
12296
|
}
|
|
11931
12297
|
};
|
|
11932
|
-
function
|
|
12298
|
+
function toKnownErr33(e) {
|
|
11933
12299
|
if (e instanceof XRPCError) {
|
|
11934
12300
|
if (e.error === "DuplicateCreate")
|
|
11935
12301
|
return new DuplicateCreateError(e);
|
|
@@ -11940,9 +12306,9 @@ function toKnownErr30(e) {
|
|
|
11940
12306
|
// src/client/types/com/atproto/server/getSession.ts
|
|
11941
12307
|
var getSession_exports = {};
|
|
11942
12308
|
__export(getSession_exports, {
|
|
11943
|
-
toKnownErr: () =>
|
|
12309
|
+
toKnownErr: () => toKnownErr34
|
|
11944
12310
|
});
|
|
11945
|
-
function
|
|
12311
|
+
function toKnownErr34(e) {
|
|
11946
12312
|
if (e instanceof XRPCError) {
|
|
11947
12313
|
}
|
|
11948
12314
|
return e;
|
|
@@ -11952,14 +12318,14 @@ function toKnownErr31(e) {
|
|
|
11952
12318
|
var refreshSession_exports = {};
|
|
11953
12319
|
__export(refreshSession_exports, {
|
|
11954
12320
|
AccountTakedownError: () => AccountTakedownError2,
|
|
11955
|
-
toKnownErr: () =>
|
|
12321
|
+
toKnownErr: () => toKnownErr35
|
|
11956
12322
|
});
|
|
11957
12323
|
var AccountTakedownError2 = class extends XRPCError {
|
|
11958
12324
|
constructor(src2) {
|
|
11959
12325
|
super(src2.status, src2.error, src2.message);
|
|
11960
12326
|
}
|
|
11961
12327
|
};
|
|
11962
|
-
function
|
|
12328
|
+
function toKnownErr35(e) {
|
|
11963
12329
|
if (e instanceof XRPCError) {
|
|
11964
12330
|
if (e.error === "AccountTakedown")
|
|
11965
12331
|
return new AccountTakedownError2(e);
|
|
@@ -11970,9 +12336,9 @@ function toKnownErr32(e) {
|
|
|
11970
12336
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
11971
12337
|
var requestAccountDelete_exports = {};
|
|
11972
12338
|
__export(requestAccountDelete_exports, {
|
|
11973
|
-
toKnownErr: () =>
|
|
12339
|
+
toKnownErr: () => toKnownErr36
|
|
11974
12340
|
});
|
|
11975
|
-
function
|
|
12341
|
+
function toKnownErr36(e) {
|
|
11976
12342
|
if (e instanceof XRPCError) {
|
|
11977
12343
|
}
|
|
11978
12344
|
return e;
|
|
@@ -11981,9 +12347,9 @@ function toKnownErr33(e) {
|
|
|
11981
12347
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
11982
12348
|
var requestPasswordReset_exports = {};
|
|
11983
12349
|
__export(requestPasswordReset_exports, {
|
|
11984
|
-
toKnownErr: () =>
|
|
12350
|
+
toKnownErr: () => toKnownErr37
|
|
11985
12351
|
});
|
|
11986
|
-
function
|
|
12352
|
+
function toKnownErr37(e) {
|
|
11987
12353
|
if (e instanceof XRPCError) {
|
|
11988
12354
|
}
|
|
11989
12355
|
return e;
|
|
@@ -11994,7 +12360,7 @@ var resetPassword_exports = {};
|
|
|
11994
12360
|
__export(resetPassword_exports, {
|
|
11995
12361
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
11996
12362
|
InvalidTokenError: () => InvalidTokenError2,
|
|
11997
|
-
toKnownErr: () =>
|
|
12363
|
+
toKnownErr: () => toKnownErr38
|
|
11998
12364
|
});
|
|
11999
12365
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
12000
12366
|
constructor(src2) {
|
|
@@ -12006,7 +12372,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
12006
12372
|
super(src2.status, src2.error, src2.message);
|
|
12007
12373
|
}
|
|
12008
12374
|
};
|
|
12009
|
-
function
|
|
12375
|
+
function toKnownErr38(e) {
|
|
12010
12376
|
if (e instanceof XRPCError) {
|
|
12011
12377
|
if (e.error === "ExpiredToken")
|
|
12012
12378
|
return new ExpiredTokenError2(e);
|
|
@@ -12019,9 +12385,9 @@ function toKnownErr35(e) {
|
|
|
12019
12385
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
12020
12386
|
var getBlob_exports = {};
|
|
12021
12387
|
__export(getBlob_exports, {
|
|
12022
|
-
toKnownErr: () =>
|
|
12388
|
+
toKnownErr: () => toKnownErr39
|
|
12023
12389
|
});
|
|
12024
|
-
function
|
|
12390
|
+
function toKnownErr39(e) {
|
|
12025
12391
|
if (e instanceof XRPCError) {
|
|
12026
12392
|
}
|
|
12027
12393
|
return e;
|
|
@@ -12030,9 +12396,9 @@ function toKnownErr36(e) {
|
|
|
12030
12396
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
12031
12397
|
var getBlocks_exports = {};
|
|
12032
12398
|
__export(getBlocks_exports, {
|
|
12033
|
-
toKnownErr: () =>
|
|
12399
|
+
toKnownErr: () => toKnownErr40
|
|
12034
12400
|
});
|
|
12035
|
-
function
|
|
12401
|
+
function toKnownErr40(e) {
|
|
12036
12402
|
if (e instanceof XRPCError) {
|
|
12037
12403
|
}
|
|
12038
12404
|
return e;
|
|
@@ -12041,9 +12407,9 @@ function toKnownErr37(e) {
|
|
|
12041
12407
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
12042
12408
|
var getCheckout_exports = {};
|
|
12043
12409
|
__export(getCheckout_exports, {
|
|
12044
|
-
toKnownErr: () =>
|
|
12410
|
+
toKnownErr: () => toKnownErr41
|
|
12045
12411
|
});
|
|
12046
|
-
function
|
|
12412
|
+
function toKnownErr41(e) {
|
|
12047
12413
|
if (e instanceof XRPCError) {
|
|
12048
12414
|
}
|
|
12049
12415
|
return e;
|
|
@@ -12052,9 +12418,9 @@ function toKnownErr38(e) {
|
|
|
12052
12418
|
// src/client/types/com/atproto/sync/getCommitPath.ts
|
|
12053
12419
|
var getCommitPath_exports = {};
|
|
12054
12420
|
__export(getCommitPath_exports, {
|
|
12055
|
-
toKnownErr: () =>
|
|
12421
|
+
toKnownErr: () => toKnownErr42
|
|
12056
12422
|
});
|
|
12057
|
-
function
|
|
12423
|
+
function toKnownErr42(e) {
|
|
12058
12424
|
if (e instanceof XRPCError) {
|
|
12059
12425
|
}
|
|
12060
12426
|
return e;
|
|
@@ -12063,9 +12429,9 @@ function toKnownErr39(e) {
|
|
|
12063
12429
|
// src/client/types/com/atproto/sync/getHead.ts
|
|
12064
12430
|
var getHead_exports = {};
|
|
12065
12431
|
__export(getHead_exports, {
|
|
12066
|
-
toKnownErr: () =>
|
|
12432
|
+
toKnownErr: () => toKnownErr43
|
|
12067
12433
|
});
|
|
12068
|
-
function
|
|
12434
|
+
function toKnownErr43(e) {
|
|
12069
12435
|
if (e instanceof XRPCError) {
|
|
12070
12436
|
}
|
|
12071
12437
|
return e;
|
|
@@ -12074,9 +12440,9 @@ function toKnownErr40(e) {
|
|
|
12074
12440
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
12075
12441
|
var getRecord_exports3 = {};
|
|
12076
12442
|
__export(getRecord_exports3, {
|
|
12077
|
-
toKnownErr: () =>
|
|
12443
|
+
toKnownErr: () => toKnownErr44
|
|
12078
12444
|
});
|
|
12079
|
-
function
|
|
12445
|
+
function toKnownErr44(e) {
|
|
12080
12446
|
if (e instanceof XRPCError) {
|
|
12081
12447
|
}
|
|
12082
12448
|
return e;
|
|
@@ -12085,9 +12451,9 @@ function toKnownErr41(e) {
|
|
|
12085
12451
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
12086
12452
|
var getRepo_exports2 = {};
|
|
12087
12453
|
__export(getRepo_exports2, {
|
|
12088
|
-
toKnownErr: () =>
|
|
12454
|
+
toKnownErr: () => toKnownErr45
|
|
12089
12455
|
});
|
|
12090
|
-
function
|
|
12456
|
+
function toKnownErr45(e) {
|
|
12091
12457
|
if (e instanceof XRPCError) {
|
|
12092
12458
|
}
|
|
12093
12459
|
return e;
|
|
@@ -12096,20 +12462,39 @@ function toKnownErr42(e) {
|
|
|
12096
12462
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
12097
12463
|
var listBlobs_exports = {};
|
|
12098
12464
|
__export(listBlobs_exports, {
|
|
12099
|
-
toKnownErr: () =>
|
|
12465
|
+
toKnownErr: () => toKnownErr46
|
|
12100
12466
|
});
|
|
12101
|
-
function
|
|
12467
|
+
function toKnownErr46(e) {
|
|
12468
|
+
if (e instanceof XRPCError) {
|
|
12469
|
+
}
|
|
12470
|
+
return e;
|
|
12471
|
+
}
|
|
12472
|
+
|
|
12473
|
+
// src/client/types/com/atproto/sync/listRepos.ts
|
|
12474
|
+
var listRepos_exports = {};
|
|
12475
|
+
__export(listRepos_exports, {
|
|
12476
|
+
isRepo: () => isRepo,
|
|
12477
|
+
toKnownErr: () => toKnownErr47,
|
|
12478
|
+
validateRepo: () => validateRepo
|
|
12479
|
+
});
|
|
12480
|
+
function toKnownErr47(e) {
|
|
12102
12481
|
if (e instanceof XRPCError) {
|
|
12103
12482
|
}
|
|
12104
12483
|
return e;
|
|
12105
12484
|
}
|
|
12485
|
+
function isRepo(v) {
|
|
12486
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.listRepos#repo";
|
|
12487
|
+
}
|
|
12488
|
+
function validateRepo(v) {
|
|
12489
|
+
return lexicons.validate("com.atproto.sync.listRepos#repo", v);
|
|
12490
|
+
}
|
|
12106
12491
|
|
|
12107
12492
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
12108
12493
|
var notifyOfUpdate_exports = {};
|
|
12109
12494
|
__export(notifyOfUpdate_exports, {
|
|
12110
|
-
toKnownErr: () =>
|
|
12495
|
+
toKnownErr: () => toKnownErr48
|
|
12111
12496
|
});
|
|
12112
|
-
function
|
|
12497
|
+
function toKnownErr48(e) {
|
|
12113
12498
|
if (e instanceof XRPCError) {
|
|
12114
12499
|
}
|
|
12115
12500
|
return e;
|
|
@@ -12118,9 +12503,9 @@ function toKnownErr44(e) {
|
|
|
12118
12503
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
12119
12504
|
var requestCrawl_exports = {};
|
|
12120
12505
|
__export(requestCrawl_exports, {
|
|
12121
|
-
toKnownErr: () =>
|
|
12506
|
+
toKnownErr: () => toKnownErr49
|
|
12122
12507
|
});
|
|
12123
|
-
function
|
|
12508
|
+
function toKnownErr49(e) {
|
|
12124
12509
|
if (e instanceof XRPCError) {
|
|
12125
12510
|
}
|
|
12126
12511
|
return e;
|
|
@@ -12129,9 +12514,9 @@ function toKnownErr45(e) {
|
|
|
12129
12514
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
12130
12515
|
var getProfile_exports = {};
|
|
12131
12516
|
__export(getProfile_exports, {
|
|
12132
|
-
toKnownErr: () =>
|
|
12517
|
+
toKnownErr: () => toKnownErr50
|
|
12133
12518
|
});
|
|
12134
|
-
function
|
|
12519
|
+
function toKnownErr50(e) {
|
|
12135
12520
|
if (e instanceof XRPCError) {
|
|
12136
12521
|
}
|
|
12137
12522
|
return e;
|
|
@@ -12140,9 +12525,9 @@ function toKnownErr46(e) {
|
|
|
12140
12525
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
12141
12526
|
var getProfiles_exports = {};
|
|
12142
12527
|
__export(getProfiles_exports, {
|
|
12143
|
-
toKnownErr: () =>
|
|
12528
|
+
toKnownErr: () => toKnownErr51
|
|
12144
12529
|
});
|
|
12145
|
-
function
|
|
12530
|
+
function toKnownErr51(e) {
|
|
12146
12531
|
if (e instanceof XRPCError) {
|
|
12147
12532
|
}
|
|
12148
12533
|
return e;
|
|
@@ -12151,9 +12536,9 @@ function toKnownErr47(e) {
|
|
|
12151
12536
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
12152
12537
|
var getSuggestions_exports = {};
|
|
12153
12538
|
__export(getSuggestions_exports, {
|
|
12154
|
-
toKnownErr: () =>
|
|
12539
|
+
toKnownErr: () => toKnownErr52
|
|
12155
12540
|
});
|
|
12156
|
-
function
|
|
12541
|
+
function toKnownErr52(e) {
|
|
12157
12542
|
if (e instanceof XRPCError) {
|
|
12158
12543
|
}
|
|
12159
12544
|
return e;
|
|
@@ -12162,9 +12547,9 @@ function toKnownErr48(e) {
|
|
|
12162
12547
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
12163
12548
|
var searchActors_exports = {};
|
|
12164
12549
|
__export(searchActors_exports, {
|
|
12165
|
-
toKnownErr: () =>
|
|
12550
|
+
toKnownErr: () => toKnownErr53
|
|
12166
12551
|
});
|
|
12167
|
-
function
|
|
12552
|
+
function toKnownErr53(e) {
|
|
12168
12553
|
if (e instanceof XRPCError) {
|
|
12169
12554
|
}
|
|
12170
12555
|
return e;
|
|
@@ -12173,9 +12558,9 @@ function toKnownErr49(e) {
|
|
|
12173
12558
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
12174
12559
|
var searchActorsTypeahead_exports = {};
|
|
12175
12560
|
__export(searchActorsTypeahead_exports, {
|
|
12176
|
-
toKnownErr: () =>
|
|
12561
|
+
toKnownErr: () => toKnownErr54
|
|
12177
12562
|
});
|
|
12178
|
-
function
|
|
12563
|
+
function toKnownErr54(e) {
|
|
12179
12564
|
if (e instanceof XRPCError) {
|
|
12180
12565
|
}
|
|
12181
12566
|
return e;
|
|
@@ -12184,9 +12569,9 @@ function toKnownErr50(e) {
|
|
|
12184
12569
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
12185
12570
|
var getAuthorFeed_exports = {};
|
|
12186
12571
|
__export(getAuthorFeed_exports, {
|
|
12187
|
-
toKnownErr: () =>
|
|
12572
|
+
toKnownErr: () => toKnownErr55
|
|
12188
12573
|
});
|
|
12189
|
-
function
|
|
12574
|
+
function toKnownErr55(e) {
|
|
12190
12575
|
if (e instanceof XRPCError) {
|
|
12191
12576
|
}
|
|
12192
12577
|
return e;
|
|
@@ -12196,10 +12581,10 @@ function toKnownErr51(e) {
|
|
|
12196
12581
|
var getLikes_exports = {};
|
|
12197
12582
|
__export(getLikes_exports, {
|
|
12198
12583
|
isLike: () => isLike,
|
|
12199
|
-
toKnownErr: () =>
|
|
12584
|
+
toKnownErr: () => toKnownErr56,
|
|
12200
12585
|
validateLike: () => validateLike
|
|
12201
12586
|
});
|
|
12202
|
-
function
|
|
12587
|
+
function toKnownErr56(e) {
|
|
12203
12588
|
if (e instanceof XRPCError) {
|
|
12204
12589
|
}
|
|
12205
12590
|
return e;
|
|
@@ -12215,14 +12600,14 @@ function validateLike(v) {
|
|
|
12215
12600
|
var getPostThread_exports = {};
|
|
12216
12601
|
__export(getPostThread_exports, {
|
|
12217
12602
|
NotFoundError: () => NotFoundError,
|
|
12218
|
-
toKnownErr: () =>
|
|
12603
|
+
toKnownErr: () => toKnownErr57
|
|
12219
12604
|
});
|
|
12220
12605
|
var NotFoundError = class extends XRPCError {
|
|
12221
12606
|
constructor(src2) {
|
|
12222
12607
|
super(src2.status, src2.error, src2.message);
|
|
12223
12608
|
}
|
|
12224
12609
|
};
|
|
12225
|
-
function
|
|
12610
|
+
function toKnownErr57(e) {
|
|
12226
12611
|
if (e instanceof XRPCError) {
|
|
12227
12612
|
if (e.error === "NotFound")
|
|
12228
12613
|
return new NotFoundError(e);
|
|
@@ -12233,9 +12618,9 @@ function toKnownErr53(e) {
|
|
|
12233
12618
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
12234
12619
|
var getRepostedBy_exports = {};
|
|
12235
12620
|
__export(getRepostedBy_exports, {
|
|
12236
|
-
toKnownErr: () =>
|
|
12621
|
+
toKnownErr: () => toKnownErr58
|
|
12237
12622
|
});
|
|
12238
|
-
function
|
|
12623
|
+
function toKnownErr58(e) {
|
|
12239
12624
|
if (e instanceof XRPCError) {
|
|
12240
12625
|
}
|
|
12241
12626
|
return e;
|
|
@@ -12244,9 +12629,9 @@ function toKnownErr54(e) {
|
|
|
12244
12629
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
12245
12630
|
var getTimeline_exports = {};
|
|
12246
12631
|
__export(getTimeline_exports, {
|
|
12247
|
-
toKnownErr: () =>
|
|
12632
|
+
toKnownErr: () => toKnownErr59
|
|
12248
12633
|
});
|
|
12249
|
-
function
|
|
12634
|
+
function toKnownErr59(e) {
|
|
12250
12635
|
if (e instanceof XRPCError) {
|
|
12251
12636
|
}
|
|
12252
12637
|
return e;
|
|
@@ -12255,9 +12640,9 @@ function toKnownErr55(e) {
|
|
|
12255
12640
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
12256
12641
|
var getFollowers_exports = {};
|
|
12257
12642
|
__export(getFollowers_exports, {
|
|
12258
|
-
toKnownErr: () =>
|
|
12643
|
+
toKnownErr: () => toKnownErr60
|
|
12259
12644
|
});
|
|
12260
|
-
function
|
|
12645
|
+
function toKnownErr60(e) {
|
|
12261
12646
|
if (e instanceof XRPCError) {
|
|
12262
12647
|
}
|
|
12263
12648
|
return e;
|
|
@@ -12266,9 +12651,9 @@ function toKnownErr56(e) {
|
|
|
12266
12651
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
12267
12652
|
var getFollows_exports = {};
|
|
12268
12653
|
__export(getFollows_exports, {
|
|
12269
|
-
toKnownErr: () =>
|
|
12654
|
+
toKnownErr: () => toKnownErr61
|
|
12270
12655
|
});
|
|
12271
|
-
function
|
|
12656
|
+
function toKnownErr61(e) {
|
|
12272
12657
|
if (e instanceof XRPCError) {
|
|
12273
12658
|
}
|
|
12274
12659
|
return e;
|
|
@@ -12277,9 +12662,9 @@ function toKnownErr57(e) {
|
|
|
12277
12662
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
12278
12663
|
var getMutes_exports = {};
|
|
12279
12664
|
__export(getMutes_exports, {
|
|
12280
|
-
toKnownErr: () =>
|
|
12665
|
+
toKnownErr: () => toKnownErr62
|
|
12281
12666
|
});
|
|
12282
|
-
function
|
|
12667
|
+
function toKnownErr62(e) {
|
|
12283
12668
|
if (e instanceof XRPCError) {
|
|
12284
12669
|
}
|
|
12285
12670
|
return e;
|
|
@@ -12288,9 +12673,9 @@ function toKnownErr58(e) {
|
|
|
12288
12673
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
12289
12674
|
var muteActor_exports = {};
|
|
12290
12675
|
__export(muteActor_exports, {
|
|
12291
|
-
toKnownErr: () =>
|
|
12676
|
+
toKnownErr: () => toKnownErr63
|
|
12292
12677
|
});
|
|
12293
|
-
function
|
|
12678
|
+
function toKnownErr63(e) {
|
|
12294
12679
|
if (e instanceof XRPCError) {
|
|
12295
12680
|
}
|
|
12296
12681
|
return e;
|
|
@@ -12299,9 +12684,9 @@ function toKnownErr59(e) {
|
|
|
12299
12684
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
12300
12685
|
var unmuteActor_exports = {};
|
|
12301
12686
|
__export(unmuteActor_exports, {
|
|
12302
|
-
toKnownErr: () =>
|
|
12687
|
+
toKnownErr: () => toKnownErr64
|
|
12303
12688
|
});
|
|
12304
|
-
function
|
|
12689
|
+
function toKnownErr64(e) {
|
|
12305
12690
|
if (e instanceof XRPCError) {
|
|
12306
12691
|
}
|
|
12307
12692
|
return e;
|
|
@@ -12310,9 +12695,9 @@ function toKnownErr60(e) {
|
|
|
12310
12695
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
12311
12696
|
var getUnreadCount_exports = {};
|
|
12312
12697
|
__export(getUnreadCount_exports, {
|
|
12313
|
-
toKnownErr: () =>
|
|
12698
|
+
toKnownErr: () => toKnownErr65
|
|
12314
12699
|
});
|
|
12315
|
-
function
|
|
12700
|
+
function toKnownErr65(e) {
|
|
12316
12701
|
if (e instanceof XRPCError) {
|
|
12317
12702
|
}
|
|
12318
12703
|
return e;
|
|
@@ -12322,10 +12707,10 @@ function toKnownErr61(e) {
|
|
|
12322
12707
|
var listNotifications_exports = {};
|
|
12323
12708
|
__export(listNotifications_exports, {
|
|
12324
12709
|
isNotification: () => isNotification,
|
|
12325
|
-
toKnownErr: () =>
|
|
12710
|
+
toKnownErr: () => toKnownErr66,
|
|
12326
12711
|
validateNotification: () => validateNotification
|
|
12327
12712
|
});
|
|
12328
|
-
function
|
|
12713
|
+
function toKnownErr66(e) {
|
|
12329
12714
|
if (e instanceof XRPCError) {
|
|
12330
12715
|
}
|
|
12331
12716
|
return e;
|
|
@@ -12343,9 +12728,9 @@ function validateNotification(v) {
|
|
|
12343
12728
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
12344
12729
|
var updateSeen_exports = {};
|
|
12345
12730
|
__export(updateSeen_exports, {
|
|
12346
|
-
toKnownErr: () =>
|
|
12731
|
+
toKnownErr: () => toKnownErr67
|
|
12347
12732
|
});
|
|
12348
|
-
function
|
|
12733
|
+
function toKnownErr67(e) {
|
|
12349
12734
|
if (e instanceof XRPCError) {
|
|
12350
12735
|
}
|
|
12351
12736
|
return e;
|
|
@@ -12354,9 +12739,9 @@ function toKnownErr63(e) {
|
|
|
12354
12739
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
12355
12740
|
var getPopular_exports = {};
|
|
12356
12741
|
__export(getPopular_exports, {
|
|
12357
|
-
toKnownErr: () =>
|
|
12742
|
+
toKnownErr: () => toKnownErr68
|
|
12358
12743
|
});
|
|
12359
|
-
function
|
|
12744
|
+
function toKnownErr68(e) {
|
|
12360
12745
|
if (e instanceof XRPCError) {
|
|
12361
12746
|
}
|
|
12362
12747
|
return e;
|
|
@@ -12501,9 +12886,43 @@ function validateVideoDetails(v) {
|
|
|
12501
12886
|
return lexicons.validate("com.atproto.admin.defs#videoDetails", v);
|
|
12502
12887
|
}
|
|
12503
12888
|
|
|
12504
|
-
// src/client/types/com/atproto/
|
|
12889
|
+
// src/client/types/com/atproto/label/defs.ts
|
|
12505
12890
|
var defs_exports2 = {};
|
|
12506
12891
|
__export(defs_exports2, {
|
|
12892
|
+
isLabel: () => isLabel,
|
|
12893
|
+
validateLabel: () => validateLabel
|
|
12894
|
+
});
|
|
12895
|
+
function isLabel(v) {
|
|
12896
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.label.defs#label";
|
|
12897
|
+
}
|
|
12898
|
+
function validateLabel(v) {
|
|
12899
|
+
return lexicons.validate("com.atproto.label.defs#label", v);
|
|
12900
|
+
}
|
|
12901
|
+
|
|
12902
|
+
// src/client/types/com/atproto/label/subscribeLabels.ts
|
|
12903
|
+
var subscribeLabels_exports = {};
|
|
12904
|
+
__export(subscribeLabels_exports, {
|
|
12905
|
+
isInfo: () => isInfo,
|
|
12906
|
+
isLabels: () => isLabels,
|
|
12907
|
+
validateInfo: () => validateInfo,
|
|
12908
|
+
validateLabels: () => validateLabels
|
|
12909
|
+
});
|
|
12910
|
+
function isLabels(v) {
|
|
12911
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.label.subscribeLabels#labels";
|
|
12912
|
+
}
|
|
12913
|
+
function validateLabels(v) {
|
|
12914
|
+
return lexicons.validate("com.atproto.label.subscribeLabels#labels", v);
|
|
12915
|
+
}
|
|
12916
|
+
function isInfo(v) {
|
|
12917
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.label.subscribeLabels#info";
|
|
12918
|
+
}
|
|
12919
|
+
function validateInfo(v) {
|
|
12920
|
+
return lexicons.validate("com.atproto.label.subscribeLabels#info", v);
|
|
12921
|
+
}
|
|
12922
|
+
|
|
12923
|
+
// src/client/types/com/atproto/moderation/defs.ts
|
|
12924
|
+
var defs_exports3 = {};
|
|
12925
|
+
__export(defs_exports3, {
|
|
12507
12926
|
REASONOTHER: () => REASONOTHER,
|
|
12508
12927
|
REASONSPAM: () => REASONSPAM
|
|
12509
12928
|
});
|
|
@@ -12524,8 +12943,8 @@ function validateMain(v) {
|
|
|
12524
12943
|
}
|
|
12525
12944
|
|
|
12526
12945
|
// src/client/types/com/atproto/server/defs.ts
|
|
12527
|
-
var
|
|
12528
|
-
__export(
|
|
12946
|
+
var defs_exports4 = {};
|
|
12947
|
+
__export(defs_exports4, {
|
|
12529
12948
|
isInviteCode: () => isInviteCode,
|
|
12530
12949
|
isInviteCodeUse: () => isInviteCodeUse,
|
|
12531
12950
|
validateInviteCode: () => validateInviteCode,
|
|
@@ -12549,13 +12968,13 @@ var subscribeRepos_exports = {};
|
|
|
12549
12968
|
__export(subscribeRepos_exports, {
|
|
12550
12969
|
isCommit: () => isCommit,
|
|
12551
12970
|
isHandle: () => isHandle,
|
|
12552
|
-
isInfo: () =>
|
|
12971
|
+
isInfo: () => isInfo2,
|
|
12553
12972
|
isMigrate: () => isMigrate,
|
|
12554
12973
|
isRepoOp: () => isRepoOp,
|
|
12555
12974
|
isTombstone: () => isTombstone,
|
|
12556
12975
|
validateCommit: () => validateCommit,
|
|
12557
12976
|
validateHandle: () => validateHandle,
|
|
12558
|
-
validateInfo: () =>
|
|
12977
|
+
validateInfo: () => validateInfo2,
|
|
12559
12978
|
validateMigrate: () => validateMigrate,
|
|
12560
12979
|
validateRepoOp: () => validateRepoOp,
|
|
12561
12980
|
validateTombstone: () => validateTombstone
|
|
@@ -12584,10 +13003,10 @@ function isTombstone(v) {
|
|
|
12584
13003
|
function validateTombstone(v) {
|
|
12585
13004
|
return lexicons.validate("com.atproto.sync.subscribeRepos#tombstone", v);
|
|
12586
13005
|
}
|
|
12587
|
-
function
|
|
13006
|
+
function isInfo2(v) {
|
|
12588
13007
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#info";
|
|
12589
13008
|
}
|
|
12590
|
-
function
|
|
13009
|
+
function validateInfo2(v) {
|
|
12591
13010
|
return lexicons.validate("com.atproto.sync.subscribeRepos#info", v);
|
|
12592
13011
|
}
|
|
12593
13012
|
function isRepoOp(v) {
|
|
@@ -12598,8 +13017,8 @@ function validateRepoOp(v) {
|
|
|
12598
13017
|
}
|
|
12599
13018
|
|
|
12600
13019
|
// src/client/types/app/bsky/actor/defs.ts
|
|
12601
|
-
var
|
|
12602
|
-
__export(
|
|
13020
|
+
var defs_exports5 = {};
|
|
13021
|
+
__export(defs_exports5, {
|
|
12603
13022
|
isProfileView: () => isProfileView,
|
|
12604
13023
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
12605
13024
|
isProfileViewDetailed: () => isProfileViewDetailed,
|
|
@@ -12780,8 +13199,8 @@ function validateView4(v) {
|
|
|
12780
13199
|
}
|
|
12781
13200
|
|
|
12782
13201
|
// src/client/types/app/bsky/feed/defs.ts
|
|
12783
|
-
var
|
|
12784
|
-
__export(
|
|
13202
|
+
var defs_exports6 = {};
|
|
13203
|
+
__export(defs_exports6, {
|
|
12785
13204
|
isFeedViewPost: () => isFeedViewPost,
|
|
12786
13205
|
isNotFoundPost: () => isNotFoundPost,
|
|
12787
13206
|
isPostView: () => isPostView,
|
|
@@ -12994,6 +13413,7 @@ var AtprotoNS = class {
|
|
|
12994
13413
|
this._service = service;
|
|
12995
13414
|
this.admin = new AdminNS(service);
|
|
12996
13415
|
this.identity = new IdentityNS(service);
|
|
13416
|
+
this.label = new LabelNS(service);
|
|
12997
13417
|
this.moderation = new ModerationNS(service);
|
|
12998
13418
|
this.repo = new RepoNS(service);
|
|
12999
13419
|
this.server = new ServerNS(service);
|
|
@@ -13064,6 +13484,11 @@ var AdminNS = class {
|
|
|
13064
13484
|
throw toKnownErr12(e);
|
|
13065
13485
|
});
|
|
13066
13486
|
}
|
|
13487
|
+
updateAccountHandle(data, opts) {
|
|
13488
|
+
return this._service.xrpc.call("com.atproto.admin.updateAccountHandle", opts?.qp, data, opts).catch((e) => {
|
|
13489
|
+
throw toKnownErr13(e);
|
|
13490
|
+
});
|
|
13491
|
+
}
|
|
13067
13492
|
};
|
|
13068
13493
|
var IdentityNS = class {
|
|
13069
13494
|
constructor(service) {
|
|
@@ -13071,12 +13496,22 @@ var IdentityNS = class {
|
|
|
13071
13496
|
}
|
|
13072
13497
|
resolveHandle(params2, opts) {
|
|
13073
13498
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
13074
|
-
throw
|
|
13499
|
+
throw toKnownErr14(e);
|
|
13075
13500
|
});
|
|
13076
13501
|
}
|
|
13077
13502
|
updateHandle(data, opts) {
|
|
13078
13503
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
13079
|
-
throw
|
|
13504
|
+
throw toKnownErr15(e);
|
|
13505
|
+
});
|
|
13506
|
+
}
|
|
13507
|
+
};
|
|
13508
|
+
var LabelNS = class {
|
|
13509
|
+
constructor(service) {
|
|
13510
|
+
this._service = service;
|
|
13511
|
+
}
|
|
13512
|
+
queryLabels(params2, opts) {
|
|
13513
|
+
return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
|
|
13514
|
+
throw toKnownErr16(e);
|
|
13080
13515
|
});
|
|
13081
13516
|
}
|
|
13082
13517
|
};
|
|
@@ -13086,7 +13521,7 @@ var ModerationNS = class {
|
|
|
13086
13521
|
}
|
|
13087
13522
|
createReport(data, opts) {
|
|
13088
13523
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
13089
|
-
throw
|
|
13524
|
+
throw toKnownErr17(e);
|
|
13090
13525
|
});
|
|
13091
13526
|
}
|
|
13092
13527
|
};
|
|
@@ -13096,42 +13531,42 @@ var RepoNS = class {
|
|
|
13096
13531
|
}
|
|
13097
13532
|
applyWrites(data, opts) {
|
|
13098
13533
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
13099
|
-
throw
|
|
13534
|
+
throw toKnownErr18(e);
|
|
13100
13535
|
});
|
|
13101
13536
|
}
|
|
13102
13537
|
createRecord(data, opts) {
|
|
13103
13538
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
13104
|
-
throw
|
|
13539
|
+
throw toKnownErr19(e);
|
|
13105
13540
|
});
|
|
13106
13541
|
}
|
|
13107
13542
|
deleteRecord(data, opts) {
|
|
13108
13543
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
13109
|
-
throw
|
|
13544
|
+
throw toKnownErr20(e);
|
|
13110
13545
|
});
|
|
13111
13546
|
}
|
|
13112
13547
|
describeRepo(params2, opts) {
|
|
13113
13548
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
13114
|
-
throw
|
|
13549
|
+
throw toKnownErr21(e);
|
|
13115
13550
|
});
|
|
13116
13551
|
}
|
|
13117
13552
|
getRecord(params2, opts) {
|
|
13118
13553
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
13119
|
-
throw
|
|
13554
|
+
throw toKnownErr22(e);
|
|
13120
13555
|
});
|
|
13121
13556
|
}
|
|
13122
13557
|
listRecords(params2, opts) {
|
|
13123
13558
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
13124
|
-
throw
|
|
13559
|
+
throw toKnownErr23(e);
|
|
13125
13560
|
});
|
|
13126
13561
|
}
|
|
13127
13562
|
putRecord(data, opts) {
|
|
13128
13563
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
13129
|
-
throw
|
|
13564
|
+
throw toKnownErr24(e);
|
|
13130
13565
|
});
|
|
13131
13566
|
}
|
|
13132
13567
|
uploadBlob(data, opts) {
|
|
13133
13568
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
13134
|
-
throw
|
|
13569
|
+
throw toKnownErr25(e);
|
|
13135
13570
|
});
|
|
13136
13571
|
}
|
|
13137
13572
|
};
|
|
@@ -13141,62 +13576,67 @@ var ServerNS = class {
|
|
|
13141
13576
|
}
|
|
13142
13577
|
createAccount(data, opts) {
|
|
13143
13578
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
13144
|
-
throw
|
|
13579
|
+
throw toKnownErr26(e);
|
|
13145
13580
|
});
|
|
13146
13581
|
}
|
|
13147
13582
|
createInviteCode(data, opts) {
|
|
13148
13583
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
13149
|
-
throw
|
|
13584
|
+
throw toKnownErr27(e);
|
|
13585
|
+
});
|
|
13586
|
+
}
|
|
13587
|
+
createInviteCodes(data, opts) {
|
|
13588
|
+
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
13589
|
+
throw toKnownErr28(e);
|
|
13150
13590
|
});
|
|
13151
13591
|
}
|
|
13152
13592
|
createSession(data, opts) {
|
|
13153
13593
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
13154
|
-
throw
|
|
13594
|
+
throw toKnownErr29(e);
|
|
13155
13595
|
});
|
|
13156
13596
|
}
|
|
13157
13597
|
deleteAccount(data, opts) {
|
|
13158
13598
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
13159
|
-
throw
|
|
13599
|
+
throw toKnownErr30(e);
|
|
13160
13600
|
});
|
|
13161
13601
|
}
|
|
13162
13602
|
deleteSession(data, opts) {
|
|
13163
13603
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
13164
|
-
throw
|
|
13604
|
+
throw toKnownErr31(e);
|
|
13165
13605
|
});
|
|
13166
13606
|
}
|
|
13167
13607
|
describeServer(params2, opts) {
|
|
13168
13608
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
13169
|
-
throw
|
|
13609
|
+
throw toKnownErr32(e);
|
|
13170
13610
|
});
|
|
13171
13611
|
}
|
|
13172
13612
|
getAccountInviteCodes(params2, opts) {
|
|
13173
13613
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13174
|
-
throw
|
|
13614
|
+
throw toKnownErr33(e);
|
|
13175
13615
|
});
|
|
13176
13616
|
}
|
|
13177
13617
|
getSession(params2, opts) {
|
|
13178
13618
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
13179
|
-
throw
|
|
13619
|
+
throw toKnownErr34(e);
|
|
13180
13620
|
});
|
|
13181
13621
|
}
|
|
13182
13622
|
refreshSession(data, opts) {
|
|
13183
13623
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
13184
|
-
throw
|
|
13624
|
+
throw toKnownErr35(e);
|
|
13185
13625
|
});
|
|
13186
13626
|
}
|
|
13187
13627
|
requestAccountDelete(data, opts) {
|
|
13188
13628
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
13189
|
-
throw
|
|
13629
|
+
throw toKnownErr36(e);
|
|
13190
13630
|
});
|
|
13191
13631
|
}
|
|
13192
13632
|
requestPasswordReset(data, opts) {
|
|
13193
13633
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
13194
|
-
throw
|
|
13634
|
+
throw toKnownErr37(e);
|
|
13195
13635
|
});
|
|
13196
13636
|
}
|
|
13197
13637
|
resetPassword(data, opts) {
|
|
13198
13638
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
13199
|
-
throw
|
|
13639
|
+
throw toKnownErr38(e);
|
|
13200
13640
|
});
|
|
13201
13641
|
}
|
|
13202
13642
|
};
|
|
@@ -13206,52 +13646,57 @@ var SyncNS = class {
|
|
|
13206
13646
|
}
|
|
13207
13647
|
getBlob(params2, opts) {
|
|
13208
13648
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
13209
|
-
throw
|
|
13649
|
+
throw toKnownErr39(e);
|
|
13210
13650
|
});
|
|
13211
13651
|
}
|
|
13212
13652
|
getBlocks(params2, opts) {
|
|
13213
13653
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
13214
|
-
throw
|
|
13654
|
+
throw toKnownErr40(e);
|
|
13215
13655
|
});
|
|
13216
13656
|
}
|
|
13217
13657
|
getCheckout(params2, opts) {
|
|
13218
13658
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
13219
|
-
throw
|
|
13659
|
+
throw toKnownErr41(e);
|
|
13220
13660
|
});
|
|
13221
13661
|
}
|
|
13222
13662
|
getCommitPath(params2, opts) {
|
|
13223
13663
|
return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
|
|
13224
|
-
throw
|
|
13664
|
+
throw toKnownErr42(e);
|
|
13225
13665
|
});
|
|
13226
13666
|
}
|
|
13227
13667
|
getHead(params2, opts) {
|
|
13228
13668
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
13229
|
-
throw
|
|
13669
|
+
throw toKnownErr43(e);
|
|
13230
13670
|
});
|
|
13231
13671
|
}
|
|
13232
13672
|
getRecord(params2, opts) {
|
|
13233
13673
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
13234
|
-
throw
|
|
13674
|
+
throw toKnownErr44(e);
|
|
13235
13675
|
});
|
|
13236
13676
|
}
|
|
13237
13677
|
getRepo(params2, opts) {
|
|
13238
13678
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
13239
|
-
throw
|
|
13679
|
+
throw toKnownErr45(e);
|
|
13240
13680
|
});
|
|
13241
13681
|
}
|
|
13242
13682
|
listBlobs(params2, opts) {
|
|
13243
13683
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
13244
|
-
throw
|
|
13684
|
+
throw toKnownErr46(e);
|
|
13685
|
+
});
|
|
13686
|
+
}
|
|
13687
|
+
listRepos(params2, opts) {
|
|
13688
|
+
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
13689
|
+
throw toKnownErr47(e);
|
|
13245
13690
|
});
|
|
13246
13691
|
}
|
|
13247
13692
|
notifyOfUpdate(params2, opts) {
|
|
13248
13693
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", params2, void 0, opts).catch((e) => {
|
|
13249
|
-
throw
|
|
13694
|
+
throw toKnownErr48(e);
|
|
13250
13695
|
});
|
|
13251
13696
|
}
|
|
13252
13697
|
requestCrawl(params2, opts) {
|
|
13253
13698
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", params2, void 0, opts).catch((e) => {
|
|
13254
|
-
throw
|
|
13699
|
+
throw toKnownErr49(e);
|
|
13255
13700
|
});
|
|
13256
13701
|
}
|
|
13257
13702
|
};
|
|
@@ -13280,27 +13725,27 @@ var ActorNS = class {
|
|
|
13280
13725
|
}
|
|
13281
13726
|
getProfile(params2, opts) {
|
|
13282
13727
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
13283
|
-
throw
|
|
13728
|
+
throw toKnownErr50(e);
|
|
13284
13729
|
});
|
|
13285
13730
|
}
|
|
13286
13731
|
getProfiles(params2, opts) {
|
|
13287
13732
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
13288
|
-
throw
|
|
13733
|
+
throw toKnownErr51(e);
|
|
13289
13734
|
});
|
|
13290
13735
|
}
|
|
13291
13736
|
getSuggestions(params2, opts) {
|
|
13292
13737
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
13293
|
-
throw
|
|
13738
|
+
throw toKnownErr52(e);
|
|
13294
13739
|
});
|
|
13295
13740
|
}
|
|
13296
13741
|
searchActors(params2, opts) {
|
|
13297
13742
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
13298
|
-
throw
|
|
13743
|
+
throw toKnownErr53(e);
|
|
13299
13744
|
});
|
|
13300
13745
|
}
|
|
13301
13746
|
searchActorsTypeahead(params2, opts) {
|
|
13302
13747
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
13303
|
-
throw
|
|
13748
|
+
throw toKnownErr54(e);
|
|
13304
13749
|
});
|
|
13305
13750
|
}
|
|
13306
13751
|
};
|
|
@@ -13355,27 +13800,27 @@ var FeedNS = class {
|
|
|
13355
13800
|
}
|
|
13356
13801
|
getAuthorFeed(params2, opts) {
|
|
13357
13802
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
13358
|
-
throw
|
|
13803
|
+
throw toKnownErr55(e);
|
|
13359
13804
|
});
|
|
13360
13805
|
}
|
|
13361
13806
|
getLikes(params2, opts) {
|
|
13362
13807
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
13363
|
-
throw
|
|
13808
|
+
throw toKnownErr56(e);
|
|
13364
13809
|
});
|
|
13365
13810
|
}
|
|
13366
13811
|
getPostThread(params2, opts) {
|
|
13367
13812
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
13368
|
-
throw
|
|
13813
|
+
throw toKnownErr57(e);
|
|
13369
13814
|
});
|
|
13370
13815
|
}
|
|
13371
13816
|
getRepostedBy(params2, opts) {
|
|
13372
13817
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
13373
|
-
throw
|
|
13818
|
+
throw toKnownErr58(e);
|
|
13374
13819
|
});
|
|
13375
13820
|
}
|
|
13376
13821
|
getTimeline(params2, opts) {
|
|
13377
13822
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
13378
|
-
throw
|
|
13823
|
+
throw toKnownErr59(e);
|
|
13379
13824
|
});
|
|
13380
13825
|
}
|
|
13381
13826
|
};
|
|
@@ -13497,27 +13942,27 @@ var GraphNS = class {
|
|
|
13497
13942
|
}
|
|
13498
13943
|
getFollowers(params2, opts) {
|
|
13499
13944
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
13500
|
-
throw
|
|
13945
|
+
throw toKnownErr60(e);
|
|
13501
13946
|
});
|
|
13502
13947
|
}
|
|
13503
13948
|
getFollows(params2, opts) {
|
|
13504
13949
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
13505
|
-
throw
|
|
13950
|
+
throw toKnownErr61(e);
|
|
13506
13951
|
});
|
|
13507
13952
|
}
|
|
13508
13953
|
getMutes(params2, opts) {
|
|
13509
13954
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
13510
|
-
throw
|
|
13955
|
+
throw toKnownErr62(e);
|
|
13511
13956
|
});
|
|
13512
13957
|
}
|
|
13513
13958
|
muteActor(data, opts) {
|
|
13514
13959
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
13515
|
-
throw
|
|
13960
|
+
throw toKnownErr63(e);
|
|
13516
13961
|
});
|
|
13517
13962
|
}
|
|
13518
13963
|
unmuteActor(data, opts) {
|
|
13519
13964
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
13520
|
-
throw
|
|
13965
|
+
throw toKnownErr64(e);
|
|
13521
13966
|
});
|
|
13522
13967
|
}
|
|
13523
13968
|
};
|
|
@@ -13564,17 +14009,17 @@ var NotificationNS = class {
|
|
|
13564
14009
|
}
|
|
13565
14010
|
getUnreadCount(params2, opts) {
|
|
13566
14011
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
13567
|
-
throw
|
|
14012
|
+
throw toKnownErr65(e);
|
|
13568
14013
|
});
|
|
13569
14014
|
}
|
|
13570
14015
|
listNotifications(params2, opts) {
|
|
13571
14016
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
13572
|
-
throw
|
|
14017
|
+
throw toKnownErr66(e);
|
|
13573
14018
|
});
|
|
13574
14019
|
}
|
|
13575
14020
|
updateSeen(data, opts) {
|
|
13576
14021
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
13577
|
-
throw
|
|
14022
|
+
throw toKnownErr67(e);
|
|
13578
14023
|
});
|
|
13579
14024
|
}
|
|
13580
14025
|
};
|
|
@@ -13589,7 +14034,7 @@ var UnspeccedNS = class {
|
|
|
13589
14034
|
}
|
|
13590
14035
|
getPopular(params2, opts) {
|
|
13591
14036
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
13592
|
-
throw
|
|
14037
|
+
throw toKnownErr68(e);
|
|
13593
14038
|
});
|
|
13594
14039
|
}
|
|
13595
14040
|
};
|