@atproto/api 0.2.3 → 0.2.4
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 +10 -0
- package/dist/client/lexicons.d.ts +205 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +5 -0
- package/dist/client/types/com/atproto/admin/disableInviteCodes.d.ts +18 -0
- package/dist/client/types/com/atproto/admin/getInviteCodes.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/client/types/com/atproto/server/createInviteCode.d.ts +1 -0
- package/dist/client/types/com/atproto/server/defs.d.ts +20 -0
- package/dist/client/types/com/atproto/server/getAccountInviteCodes.d.ts +23 -0
- package/dist/index.js +481 -189
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +41 -0
- package/src/client/lexicons.ts +217 -0
- package/src/client/types/com/atproto/admin/defs.ts +5 -0
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +33 -0
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +39 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +1 -0
- package/src/client/types/com/atproto/server/createInviteCode.ts +1 -0
- package/src/client/types/com/atproto/server/defs.ts +48 -0
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +44 -0
- package/tsconfig.build.tsbuildinfo +1 -1
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_exports4,
|
|
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_exports5,
|
|
95
95
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
96
96
|
AppBskyFeedGetLikes: () => getLikes_exports,
|
|
97
97
|
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
|
@@ -123,6 +123,8 @@ __export(src_exports4, {
|
|
|
123
123
|
COM_ATPROTO_ADMIN: () => COM_ATPROTO_ADMIN,
|
|
124
124
|
COM_ATPROTO_MODERATION: () => COM_ATPROTO_MODERATION,
|
|
125
125
|
ComAtprotoAdminDefs: () => defs_exports,
|
|
126
|
+
ComAtprotoAdminDisableInviteCodes: () => disableInviteCodes_exports,
|
|
127
|
+
ComAtprotoAdminGetInviteCodes: () => getInviteCodes_exports,
|
|
126
128
|
ComAtprotoAdminGetModerationAction: () => getModerationAction_exports,
|
|
127
129
|
ComAtprotoAdminGetModerationActions: () => getModerationActions_exports,
|
|
128
130
|
ComAtprotoAdminGetModerationReport: () => getModerationReport_exports,
|
|
@@ -149,9 +151,11 @@ __export(src_exports4, {
|
|
|
149
151
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
150
152
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
151
153
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
154
|
+
ComAtprotoServerDefs: () => defs_exports3,
|
|
152
155
|
ComAtprotoServerDeleteAccount: () => deleteAccount_exports,
|
|
153
156
|
ComAtprotoServerDeleteSession: () => deleteSession_exports,
|
|
154
157
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
158
|
+
ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
|
|
155
159
|
ComAtprotoServerGetSession: () => getSession_exports,
|
|
156
160
|
ComAtprotoServerRefreshSession: () => refreshSession_exports,
|
|
157
161
|
ComAtprotoServerRequestAccountDelete: () => requestAccountDelete_exports,
|
|
@@ -7383,6 +7387,17 @@ var schemaDict = {
|
|
|
7383
7387
|
moderation: {
|
|
7384
7388
|
type: "ref",
|
|
7385
7389
|
ref: "lex:com.atproto.admin.defs#moderation"
|
|
7390
|
+
},
|
|
7391
|
+
invitedBy: {
|
|
7392
|
+
type: "ref",
|
|
7393
|
+
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
|
+
}
|
|
7386
7401
|
}
|
|
7387
7402
|
}
|
|
7388
7403
|
},
|
|
@@ -7420,6 +7435,17 @@ var schemaDict = {
|
|
|
7420
7435
|
moderation: {
|
|
7421
7436
|
type: "ref",
|
|
7422
7437
|
ref: "lex:com.atproto.admin.defs#moderationDetail"
|
|
7438
|
+
},
|
|
7439
|
+
invitedBy: {
|
|
7440
|
+
type: "ref",
|
|
7441
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7442
|
+
},
|
|
7443
|
+
invites: {
|
|
7444
|
+
type: "array",
|
|
7445
|
+
items: {
|
|
7446
|
+
type: "ref",
|
|
7447
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7448
|
+
}
|
|
7423
7449
|
}
|
|
7424
7450
|
}
|
|
7425
7451
|
},
|
|
@@ -7615,6 +7641,84 @@ var schemaDict = {
|
|
|
7615
7641
|
}
|
|
7616
7642
|
}
|
|
7617
7643
|
},
|
|
7644
|
+
ComAtprotoAdminDisableInviteCodes: {
|
|
7645
|
+
lexicon: 1,
|
|
7646
|
+
id: "com.atproto.admin.disableInviteCodes",
|
|
7647
|
+
defs: {
|
|
7648
|
+
main: {
|
|
7649
|
+
type: "procedure",
|
|
7650
|
+
description: "Disable some set of codes and/or all codes associated with a set of users",
|
|
7651
|
+
input: {
|
|
7652
|
+
encoding: "application/json",
|
|
7653
|
+
schema: {
|
|
7654
|
+
type: "object",
|
|
7655
|
+
properties: {
|
|
7656
|
+
codes: {
|
|
7657
|
+
type: "array",
|
|
7658
|
+
items: {
|
|
7659
|
+
type: "string"
|
|
7660
|
+
}
|
|
7661
|
+
},
|
|
7662
|
+
accounts: {
|
|
7663
|
+
type: "array",
|
|
7664
|
+
items: {
|
|
7665
|
+
type: "string"
|
|
7666
|
+
}
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
}
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
},
|
|
7674
|
+
ComAtprotoAdminGetInviteCodes: {
|
|
7675
|
+
lexicon: 1,
|
|
7676
|
+
id: "com.atproto.admin.getInviteCodes",
|
|
7677
|
+
defs: {
|
|
7678
|
+
main: {
|
|
7679
|
+
type: "query",
|
|
7680
|
+
description: "Admin view of invite codes",
|
|
7681
|
+
parameters: {
|
|
7682
|
+
type: "params",
|
|
7683
|
+
properties: {
|
|
7684
|
+
sort: {
|
|
7685
|
+
type: "string",
|
|
7686
|
+
knownValues: ["recent", "usage"],
|
|
7687
|
+
default: "recent"
|
|
7688
|
+
},
|
|
7689
|
+
limit: {
|
|
7690
|
+
type: "integer",
|
|
7691
|
+
minimum: 1,
|
|
7692
|
+
maximum: 500,
|
|
7693
|
+
default: 100
|
|
7694
|
+
},
|
|
7695
|
+
cursor: {
|
|
7696
|
+
type: "string"
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7699
|
+
},
|
|
7700
|
+
output: {
|
|
7701
|
+
encoding: "application/json",
|
|
7702
|
+
schema: {
|
|
7703
|
+
type: "object",
|
|
7704
|
+
required: ["codes"],
|
|
7705
|
+
properties: {
|
|
7706
|
+
cursor: {
|
|
7707
|
+
type: "string"
|
|
7708
|
+
},
|
|
7709
|
+
codes: {
|
|
7710
|
+
type: "array",
|
|
7711
|
+
items: {
|
|
7712
|
+
type: "ref",
|
|
7713
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7714
|
+
}
|
|
7715
|
+
}
|
|
7716
|
+
}
|
|
7717
|
+
}
|
|
7718
|
+
}
|
|
7719
|
+
}
|
|
7720
|
+
}
|
|
7721
|
+
},
|
|
7618
7722
|
ComAtprotoAdminGetModerationAction: {
|
|
7619
7723
|
lexicon: 1,
|
|
7620
7724
|
id: "com.atproto.admin.getModerationAction",
|
|
@@ -7908,6 +8012,9 @@ var schemaDict = {
|
|
|
7908
8012
|
term: {
|
|
7909
8013
|
type: "string"
|
|
7910
8014
|
},
|
|
8015
|
+
invitedBy: {
|
|
8016
|
+
type: "string"
|
|
8017
|
+
},
|
|
7911
8018
|
limit: {
|
|
7912
8019
|
type: "integer",
|
|
7913
8020
|
minimum: 1,
|
|
@@ -8773,6 +8880,10 @@ var schemaDict = {
|
|
|
8773
8880
|
properties: {
|
|
8774
8881
|
useCount: {
|
|
8775
8882
|
type: "integer"
|
|
8883
|
+
},
|
|
8884
|
+
forAccount: {
|
|
8885
|
+
type: "string",
|
|
8886
|
+
format: "did"
|
|
8776
8887
|
}
|
|
8777
8888
|
}
|
|
8778
8889
|
}
|
|
@@ -8849,6 +8960,66 @@ var schemaDict = {
|
|
|
8849
8960
|
}
|
|
8850
8961
|
}
|
|
8851
8962
|
},
|
|
8963
|
+
ComAtprotoServerDefs: {
|
|
8964
|
+
lexicon: 1,
|
|
8965
|
+
id: "com.atproto.server.defs",
|
|
8966
|
+
defs: {
|
|
8967
|
+
inviteCode: {
|
|
8968
|
+
type: "object",
|
|
8969
|
+
required: [
|
|
8970
|
+
"code",
|
|
8971
|
+
"available",
|
|
8972
|
+
"disabled",
|
|
8973
|
+
"forAccount",
|
|
8974
|
+
"createdBy",
|
|
8975
|
+
"createdAt",
|
|
8976
|
+
"uses"
|
|
8977
|
+
],
|
|
8978
|
+
properties: {
|
|
8979
|
+
code: {
|
|
8980
|
+
type: "string"
|
|
8981
|
+
},
|
|
8982
|
+
available: {
|
|
8983
|
+
type: "integer"
|
|
8984
|
+
},
|
|
8985
|
+
disabled: {
|
|
8986
|
+
type: "boolean"
|
|
8987
|
+
},
|
|
8988
|
+
forAccount: {
|
|
8989
|
+
type: "string"
|
|
8990
|
+
},
|
|
8991
|
+
createdBy: {
|
|
8992
|
+
type: "string"
|
|
8993
|
+
},
|
|
8994
|
+
createdAt: {
|
|
8995
|
+
type: "string",
|
|
8996
|
+
format: "datetime"
|
|
8997
|
+
},
|
|
8998
|
+
uses: {
|
|
8999
|
+
type: "array",
|
|
9000
|
+
items: {
|
|
9001
|
+
type: "ref",
|
|
9002
|
+
ref: "lex:com.atproto.server.defs#inviteCodeUse"
|
|
9003
|
+
}
|
|
9004
|
+
}
|
|
9005
|
+
}
|
|
9006
|
+
},
|
|
9007
|
+
inviteCodeUse: {
|
|
9008
|
+
type: "object",
|
|
9009
|
+
required: ["usedBy", "usedAt"],
|
|
9010
|
+
properties: {
|
|
9011
|
+
usedBy: {
|
|
9012
|
+
type: "string",
|
|
9013
|
+
format: "did"
|
|
9014
|
+
},
|
|
9015
|
+
usedAt: {
|
|
9016
|
+
type: "string",
|
|
9017
|
+
format: "datetime"
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
}
|
|
9021
|
+
}
|
|
9022
|
+
},
|
|
8852
9023
|
ComAtprotoServerDeleteAccount: {
|
|
8853
9024
|
lexicon: 1,
|
|
8854
9025
|
id: "com.atproto.server.deleteAccount",
|
|
@@ -8939,6 +9110,50 @@ var schemaDict = {
|
|
|
8939
9110
|
}
|
|
8940
9111
|
}
|
|
8941
9112
|
},
|
|
9113
|
+
ComAtprotoServerGetAccountInviteCodes: {
|
|
9114
|
+
lexicon: 1,
|
|
9115
|
+
id: "com.atproto.server.getAccountInviteCodes",
|
|
9116
|
+
defs: {
|
|
9117
|
+
main: {
|
|
9118
|
+
type: "query",
|
|
9119
|
+
description: "Get all invite codes for a given account",
|
|
9120
|
+
parameters: {
|
|
9121
|
+
type: "params",
|
|
9122
|
+
properties: {
|
|
9123
|
+
includeUsed: {
|
|
9124
|
+
type: "boolean",
|
|
9125
|
+
default: true
|
|
9126
|
+
},
|
|
9127
|
+
createAvailable: {
|
|
9128
|
+
type: "boolean",
|
|
9129
|
+
default: true
|
|
9130
|
+
}
|
|
9131
|
+
}
|
|
9132
|
+
},
|
|
9133
|
+
output: {
|
|
9134
|
+
encoding: "application/json",
|
|
9135
|
+
schema: {
|
|
9136
|
+
type: "object",
|
|
9137
|
+
required: ["codes"],
|
|
9138
|
+
properties: {
|
|
9139
|
+
codes: {
|
|
9140
|
+
type: "array",
|
|
9141
|
+
items: {
|
|
9142
|
+
type: "ref",
|
|
9143
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
},
|
|
9149
|
+
errors: [
|
|
9150
|
+
{
|
|
9151
|
+
name: "DuplicateCreate"
|
|
9152
|
+
}
|
|
9153
|
+
]
|
|
9154
|
+
}
|
|
9155
|
+
}
|
|
9156
|
+
},
|
|
8942
9157
|
ComAtprotoServerGetSession: {
|
|
8943
9158
|
lexicon: 1,
|
|
8944
9159
|
id: "com.atproto.server.getSession",
|
|
@@ -11230,12 +11445,34 @@ var schemaDict = {
|
|
|
11230
11445
|
var schemas = Object.values(schemaDict);
|
|
11231
11446
|
var lexicons = new Lexicons(schemas);
|
|
11232
11447
|
|
|
11448
|
+
// src/client/types/com/atproto/admin/disableInviteCodes.ts
|
|
11449
|
+
var disableInviteCodes_exports = {};
|
|
11450
|
+
__export(disableInviteCodes_exports, {
|
|
11451
|
+
toKnownErr: () => toKnownErr
|
|
11452
|
+
});
|
|
11453
|
+
function toKnownErr(e) {
|
|
11454
|
+
if (e instanceof XRPCError) {
|
|
11455
|
+
}
|
|
11456
|
+
return e;
|
|
11457
|
+
}
|
|
11458
|
+
|
|
11459
|
+
// src/client/types/com/atproto/admin/getInviteCodes.ts
|
|
11460
|
+
var getInviteCodes_exports = {};
|
|
11461
|
+
__export(getInviteCodes_exports, {
|
|
11462
|
+
toKnownErr: () => toKnownErr2
|
|
11463
|
+
});
|
|
11464
|
+
function toKnownErr2(e) {
|
|
11465
|
+
if (e instanceof XRPCError) {
|
|
11466
|
+
}
|
|
11467
|
+
return e;
|
|
11468
|
+
}
|
|
11469
|
+
|
|
11233
11470
|
// src/client/types/com/atproto/admin/getModerationAction.ts
|
|
11234
11471
|
var getModerationAction_exports = {};
|
|
11235
11472
|
__export(getModerationAction_exports, {
|
|
11236
|
-
toKnownErr: () =>
|
|
11473
|
+
toKnownErr: () => toKnownErr3
|
|
11237
11474
|
});
|
|
11238
|
-
function
|
|
11475
|
+
function toKnownErr3(e) {
|
|
11239
11476
|
if (e instanceof XRPCError) {
|
|
11240
11477
|
}
|
|
11241
11478
|
return e;
|
|
@@ -11244,9 +11481,9 @@ function toKnownErr(e) {
|
|
|
11244
11481
|
// src/client/types/com/atproto/admin/getModerationActions.ts
|
|
11245
11482
|
var getModerationActions_exports = {};
|
|
11246
11483
|
__export(getModerationActions_exports, {
|
|
11247
|
-
toKnownErr: () =>
|
|
11484
|
+
toKnownErr: () => toKnownErr4
|
|
11248
11485
|
});
|
|
11249
|
-
function
|
|
11486
|
+
function toKnownErr4(e) {
|
|
11250
11487
|
if (e instanceof XRPCError) {
|
|
11251
11488
|
}
|
|
11252
11489
|
return e;
|
|
@@ -11255,9 +11492,9 @@ function toKnownErr2(e) {
|
|
|
11255
11492
|
// src/client/types/com/atproto/admin/getModerationReport.ts
|
|
11256
11493
|
var getModerationReport_exports = {};
|
|
11257
11494
|
__export(getModerationReport_exports, {
|
|
11258
|
-
toKnownErr: () =>
|
|
11495
|
+
toKnownErr: () => toKnownErr5
|
|
11259
11496
|
});
|
|
11260
|
-
function
|
|
11497
|
+
function toKnownErr5(e) {
|
|
11261
11498
|
if (e instanceof XRPCError) {
|
|
11262
11499
|
}
|
|
11263
11500
|
return e;
|
|
@@ -11266,9 +11503,9 @@ function toKnownErr3(e) {
|
|
|
11266
11503
|
// src/client/types/com/atproto/admin/getModerationReports.ts
|
|
11267
11504
|
var getModerationReports_exports = {};
|
|
11268
11505
|
__export(getModerationReports_exports, {
|
|
11269
|
-
toKnownErr: () =>
|
|
11506
|
+
toKnownErr: () => toKnownErr6
|
|
11270
11507
|
});
|
|
11271
|
-
function
|
|
11508
|
+
function toKnownErr6(e) {
|
|
11272
11509
|
if (e instanceof XRPCError) {
|
|
11273
11510
|
}
|
|
11274
11511
|
return e;
|
|
@@ -11277,9 +11514,9 @@ function toKnownErr4(e) {
|
|
|
11277
11514
|
// src/client/types/com/atproto/admin/getRecord.ts
|
|
11278
11515
|
var getRecord_exports = {};
|
|
11279
11516
|
__export(getRecord_exports, {
|
|
11280
|
-
toKnownErr: () =>
|
|
11517
|
+
toKnownErr: () => toKnownErr7
|
|
11281
11518
|
});
|
|
11282
|
-
function
|
|
11519
|
+
function toKnownErr7(e) {
|
|
11283
11520
|
if (e instanceof XRPCError) {
|
|
11284
11521
|
}
|
|
11285
11522
|
return e;
|
|
@@ -11288,9 +11525,9 @@ function toKnownErr5(e) {
|
|
|
11288
11525
|
// src/client/types/com/atproto/admin/getRepo.ts
|
|
11289
11526
|
var getRepo_exports = {};
|
|
11290
11527
|
__export(getRepo_exports, {
|
|
11291
|
-
toKnownErr: () =>
|
|
11528
|
+
toKnownErr: () => toKnownErr8
|
|
11292
11529
|
});
|
|
11293
|
-
function
|
|
11530
|
+
function toKnownErr8(e) {
|
|
11294
11531
|
if (e instanceof XRPCError) {
|
|
11295
11532
|
}
|
|
11296
11533
|
return e;
|
|
@@ -11299,9 +11536,9 @@ function toKnownErr6(e) {
|
|
|
11299
11536
|
// src/client/types/com/atproto/admin/resolveModerationReports.ts
|
|
11300
11537
|
var resolveModerationReports_exports = {};
|
|
11301
11538
|
__export(resolveModerationReports_exports, {
|
|
11302
|
-
toKnownErr: () =>
|
|
11539
|
+
toKnownErr: () => toKnownErr9
|
|
11303
11540
|
});
|
|
11304
|
-
function
|
|
11541
|
+
function toKnownErr9(e) {
|
|
11305
11542
|
if (e instanceof XRPCError) {
|
|
11306
11543
|
}
|
|
11307
11544
|
return e;
|
|
@@ -11310,9 +11547,9 @@ function toKnownErr7(e) {
|
|
|
11310
11547
|
// src/client/types/com/atproto/admin/reverseModerationAction.ts
|
|
11311
11548
|
var reverseModerationAction_exports = {};
|
|
11312
11549
|
__export(reverseModerationAction_exports, {
|
|
11313
|
-
toKnownErr: () =>
|
|
11550
|
+
toKnownErr: () => toKnownErr10
|
|
11314
11551
|
});
|
|
11315
|
-
function
|
|
11552
|
+
function toKnownErr10(e) {
|
|
11316
11553
|
if (e instanceof XRPCError) {
|
|
11317
11554
|
}
|
|
11318
11555
|
return e;
|
|
@@ -11321,9 +11558,9 @@ function toKnownErr8(e) {
|
|
|
11321
11558
|
// src/client/types/com/atproto/admin/searchRepos.ts
|
|
11322
11559
|
var searchRepos_exports = {};
|
|
11323
11560
|
__export(searchRepos_exports, {
|
|
11324
|
-
toKnownErr: () =>
|
|
11561
|
+
toKnownErr: () => toKnownErr11
|
|
11325
11562
|
});
|
|
11326
|
-
function
|
|
11563
|
+
function toKnownErr11(e) {
|
|
11327
11564
|
if (e instanceof XRPCError) {
|
|
11328
11565
|
}
|
|
11329
11566
|
return e;
|
|
@@ -11333,14 +11570,14 @@ function toKnownErr9(e) {
|
|
|
11333
11570
|
var takeModerationAction_exports = {};
|
|
11334
11571
|
__export(takeModerationAction_exports, {
|
|
11335
11572
|
SubjectHasActionError: () => SubjectHasActionError,
|
|
11336
|
-
toKnownErr: () =>
|
|
11573
|
+
toKnownErr: () => toKnownErr12
|
|
11337
11574
|
});
|
|
11338
11575
|
var SubjectHasActionError = class extends XRPCError {
|
|
11339
11576
|
constructor(src2) {
|
|
11340
11577
|
super(src2.status, src2.error, src2.message);
|
|
11341
11578
|
}
|
|
11342
11579
|
};
|
|
11343
|
-
function
|
|
11580
|
+
function toKnownErr12(e) {
|
|
11344
11581
|
if (e instanceof XRPCError) {
|
|
11345
11582
|
if (e.error === "SubjectHasAction")
|
|
11346
11583
|
return new SubjectHasActionError(e);
|
|
@@ -11351,9 +11588,9 @@ function toKnownErr10(e) {
|
|
|
11351
11588
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
11352
11589
|
var resolveHandle_exports = {};
|
|
11353
11590
|
__export(resolveHandle_exports, {
|
|
11354
|
-
toKnownErr: () =>
|
|
11591
|
+
toKnownErr: () => toKnownErr13
|
|
11355
11592
|
});
|
|
11356
|
-
function
|
|
11593
|
+
function toKnownErr13(e) {
|
|
11357
11594
|
if (e instanceof XRPCError) {
|
|
11358
11595
|
}
|
|
11359
11596
|
return e;
|
|
@@ -11362,9 +11599,9 @@ function toKnownErr11(e) {
|
|
|
11362
11599
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
11363
11600
|
var updateHandle_exports = {};
|
|
11364
11601
|
__export(updateHandle_exports, {
|
|
11365
|
-
toKnownErr: () =>
|
|
11602
|
+
toKnownErr: () => toKnownErr14
|
|
11366
11603
|
});
|
|
11367
|
-
function
|
|
11604
|
+
function toKnownErr14(e) {
|
|
11368
11605
|
if (e instanceof XRPCError) {
|
|
11369
11606
|
}
|
|
11370
11607
|
return e;
|
|
@@ -11373,9 +11610,9 @@ function toKnownErr12(e) {
|
|
|
11373
11610
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
11374
11611
|
var createReport_exports = {};
|
|
11375
11612
|
__export(createReport_exports, {
|
|
11376
|
-
toKnownErr: () =>
|
|
11613
|
+
toKnownErr: () => toKnownErr15
|
|
11377
11614
|
});
|
|
11378
|
-
function
|
|
11615
|
+
function toKnownErr15(e) {
|
|
11379
11616
|
if (e instanceof XRPCError) {
|
|
11380
11617
|
}
|
|
11381
11618
|
return e;
|
|
@@ -11388,7 +11625,7 @@ __export(applyWrites_exports, {
|
|
|
11388
11625
|
isCreate: () => isCreate,
|
|
11389
11626
|
isDelete: () => isDelete,
|
|
11390
11627
|
isUpdate: () => isUpdate,
|
|
11391
|
-
toKnownErr: () =>
|
|
11628
|
+
toKnownErr: () => toKnownErr16,
|
|
11392
11629
|
validateCreate: () => validateCreate,
|
|
11393
11630
|
validateDelete: () => validateDelete,
|
|
11394
11631
|
validateUpdate: () => validateUpdate
|
|
@@ -11408,7 +11645,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
11408
11645
|
super(src2.status, src2.error, src2.message);
|
|
11409
11646
|
}
|
|
11410
11647
|
};
|
|
11411
|
-
function
|
|
11648
|
+
function toKnownErr16(e) {
|
|
11412
11649
|
if (e instanceof XRPCError) {
|
|
11413
11650
|
if (e.error === "InvalidSwap")
|
|
11414
11651
|
return new InvalidSwapError(e);
|
|
@@ -11438,14 +11675,14 @@ function validateDelete(v) {
|
|
|
11438
11675
|
var createRecord_exports = {};
|
|
11439
11676
|
__export(createRecord_exports, {
|
|
11440
11677
|
InvalidSwapError: () => InvalidSwapError2,
|
|
11441
|
-
toKnownErr: () =>
|
|
11678
|
+
toKnownErr: () => toKnownErr17
|
|
11442
11679
|
});
|
|
11443
11680
|
var InvalidSwapError2 = class extends XRPCError {
|
|
11444
11681
|
constructor(src2) {
|
|
11445
11682
|
super(src2.status, src2.error, src2.message);
|
|
11446
11683
|
}
|
|
11447
11684
|
};
|
|
11448
|
-
function
|
|
11685
|
+
function toKnownErr17(e) {
|
|
11449
11686
|
if (e instanceof XRPCError) {
|
|
11450
11687
|
if (e.error === "InvalidSwap")
|
|
11451
11688
|
return new InvalidSwapError2(e);
|
|
@@ -11457,14 +11694,14 @@ function toKnownErr15(e) {
|
|
|
11457
11694
|
var deleteRecord_exports = {};
|
|
11458
11695
|
__export(deleteRecord_exports, {
|
|
11459
11696
|
InvalidSwapError: () => InvalidSwapError3,
|
|
11460
|
-
toKnownErr: () =>
|
|
11697
|
+
toKnownErr: () => toKnownErr18
|
|
11461
11698
|
});
|
|
11462
11699
|
var InvalidSwapError3 = class extends XRPCError {
|
|
11463
11700
|
constructor(src2) {
|
|
11464
11701
|
super(src2.status, src2.error, src2.message);
|
|
11465
11702
|
}
|
|
11466
11703
|
};
|
|
11467
|
-
function
|
|
11704
|
+
function toKnownErr18(e) {
|
|
11468
11705
|
if (e instanceof XRPCError) {
|
|
11469
11706
|
if (e.error === "InvalidSwap")
|
|
11470
11707
|
return new InvalidSwapError3(e);
|
|
@@ -11475,9 +11712,9 @@ function toKnownErr16(e) {
|
|
|
11475
11712
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
11476
11713
|
var describeRepo_exports = {};
|
|
11477
11714
|
__export(describeRepo_exports, {
|
|
11478
|
-
toKnownErr: () =>
|
|
11715
|
+
toKnownErr: () => toKnownErr19
|
|
11479
11716
|
});
|
|
11480
|
-
function
|
|
11717
|
+
function toKnownErr19(e) {
|
|
11481
11718
|
if (e instanceof XRPCError) {
|
|
11482
11719
|
}
|
|
11483
11720
|
return e;
|
|
@@ -11486,9 +11723,9 @@ function toKnownErr17(e) {
|
|
|
11486
11723
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
11487
11724
|
var getRecord_exports2 = {};
|
|
11488
11725
|
__export(getRecord_exports2, {
|
|
11489
|
-
toKnownErr: () =>
|
|
11726
|
+
toKnownErr: () => toKnownErr20
|
|
11490
11727
|
});
|
|
11491
|
-
function
|
|
11728
|
+
function toKnownErr20(e) {
|
|
11492
11729
|
if (e instanceof XRPCError) {
|
|
11493
11730
|
}
|
|
11494
11731
|
return e;
|
|
@@ -11498,10 +11735,10 @@ function toKnownErr18(e) {
|
|
|
11498
11735
|
var listRecords_exports = {};
|
|
11499
11736
|
__export(listRecords_exports, {
|
|
11500
11737
|
isRecord: () => isRecord,
|
|
11501
|
-
toKnownErr: () =>
|
|
11738
|
+
toKnownErr: () => toKnownErr21,
|
|
11502
11739
|
validateRecord: () => validateRecord
|
|
11503
11740
|
});
|
|
11504
|
-
function
|
|
11741
|
+
function toKnownErr21(e) {
|
|
11505
11742
|
if (e instanceof XRPCError) {
|
|
11506
11743
|
}
|
|
11507
11744
|
return e;
|
|
@@ -11517,14 +11754,14 @@ function validateRecord(v) {
|
|
|
11517
11754
|
var putRecord_exports = {};
|
|
11518
11755
|
__export(putRecord_exports, {
|
|
11519
11756
|
InvalidSwapError: () => InvalidSwapError4,
|
|
11520
|
-
toKnownErr: () =>
|
|
11757
|
+
toKnownErr: () => toKnownErr22
|
|
11521
11758
|
});
|
|
11522
11759
|
var InvalidSwapError4 = class extends XRPCError {
|
|
11523
11760
|
constructor(src2) {
|
|
11524
11761
|
super(src2.status, src2.error, src2.message);
|
|
11525
11762
|
}
|
|
11526
11763
|
};
|
|
11527
|
-
function
|
|
11764
|
+
function toKnownErr22(e) {
|
|
11528
11765
|
if (e instanceof XRPCError) {
|
|
11529
11766
|
if (e.error === "InvalidSwap")
|
|
11530
11767
|
return new InvalidSwapError4(e);
|
|
@@ -11535,9 +11772,9 @@ function toKnownErr20(e) {
|
|
|
11535
11772
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
11536
11773
|
var uploadBlob_exports = {};
|
|
11537
11774
|
__export(uploadBlob_exports, {
|
|
11538
|
-
toKnownErr: () =>
|
|
11775
|
+
toKnownErr: () => toKnownErr23
|
|
11539
11776
|
});
|
|
11540
|
-
function
|
|
11777
|
+
function toKnownErr23(e) {
|
|
11541
11778
|
if (e instanceof XRPCError) {
|
|
11542
11779
|
}
|
|
11543
11780
|
return e;
|
|
@@ -11551,7 +11788,7 @@ __export(createAccount_exports, {
|
|
|
11551
11788
|
InvalidInviteCodeError: () => InvalidInviteCodeError,
|
|
11552
11789
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
11553
11790
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
11554
|
-
toKnownErr: () =>
|
|
11791
|
+
toKnownErr: () => toKnownErr24
|
|
11555
11792
|
});
|
|
11556
11793
|
var InvalidHandleError2 = class extends XRPCError {
|
|
11557
11794
|
constructor(src2) {
|
|
@@ -11578,7 +11815,7 @@ var UnsupportedDomainError = class extends XRPCError {
|
|
|
11578
11815
|
super(src2.status, src2.error, src2.message);
|
|
11579
11816
|
}
|
|
11580
11817
|
};
|
|
11581
|
-
function
|
|
11818
|
+
function toKnownErr24(e) {
|
|
11582
11819
|
if (e instanceof XRPCError) {
|
|
11583
11820
|
if (e.error === "InvalidHandle")
|
|
11584
11821
|
return new InvalidHandleError2(e);
|
|
@@ -11597,9 +11834,9 @@ function toKnownErr22(e) {
|
|
|
11597
11834
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
11598
11835
|
var createInviteCode_exports = {};
|
|
11599
11836
|
__export(createInviteCode_exports, {
|
|
11600
|
-
toKnownErr: () =>
|
|
11837
|
+
toKnownErr: () => toKnownErr25
|
|
11601
11838
|
});
|
|
11602
|
-
function
|
|
11839
|
+
function toKnownErr25(e) {
|
|
11603
11840
|
if (e instanceof XRPCError) {
|
|
11604
11841
|
}
|
|
11605
11842
|
return e;
|
|
@@ -11609,14 +11846,14 @@ function toKnownErr23(e) {
|
|
|
11609
11846
|
var createSession_exports = {};
|
|
11610
11847
|
__export(createSession_exports, {
|
|
11611
11848
|
AccountTakedownError: () => AccountTakedownError,
|
|
11612
|
-
toKnownErr: () =>
|
|
11849
|
+
toKnownErr: () => toKnownErr26
|
|
11613
11850
|
});
|
|
11614
11851
|
var AccountTakedownError = class extends XRPCError {
|
|
11615
11852
|
constructor(src2) {
|
|
11616
11853
|
super(src2.status, src2.error, src2.message);
|
|
11617
11854
|
}
|
|
11618
11855
|
};
|
|
11619
|
-
function
|
|
11856
|
+
function toKnownErr26(e) {
|
|
11620
11857
|
if (e instanceof XRPCError) {
|
|
11621
11858
|
if (e.error === "AccountTakedown")
|
|
11622
11859
|
return new AccountTakedownError(e);
|
|
@@ -11629,7 +11866,7 @@ var deleteAccount_exports = {};
|
|
|
11629
11866
|
__export(deleteAccount_exports, {
|
|
11630
11867
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
11631
11868
|
InvalidTokenError: () => InvalidTokenError,
|
|
11632
|
-
toKnownErr: () =>
|
|
11869
|
+
toKnownErr: () => toKnownErr27
|
|
11633
11870
|
});
|
|
11634
11871
|
var ExpiredTokenError = class extends XRPCError {
|
|
11635
11872
|
constructor(src2) {
|
|
@@ -11641,7 +11878,7 @@ var InvalidTokenError = class extends XRPCError {
|
|
|
11641
11878
|
super(src2.status, src2.error, src2.message);
|
|
11642
11879
|
}
|
|
11643
11880
|
};
|
|
11644
|
-
function
|
|
11881
|
+
function toKnownErr27(e) {
|
|
11645
11882
|
if (e instanceof XRPCError) {
|
|
11646
11883
|
if (e.error === "ExpiredToken")
|
|
11647
11884
|
return new ExpiredTokenError(e);
|
|
@@ -11654,9 +11891,9 @@ function toKnownErr25(e) {
|
|
|
11654
11891
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
11655
11892
|
var deleteSession_exports = {};
|
|
11656
11893
|
__export(deleteSession_exports, {
|
|
11657
|
-
toKnownErr: () =>
|
|
11894
|
+
toKnownErr: () => toKnownErr28
|
|
11658
11895
|
});
|
|
11659
|
-
function
|
|
11896
|
+
function toKnownErr28(e) {
|
|
11660
11897
|
if (e instanceof XRPCError) {
|
|
11661
11898
|
}
|
|
11662
11899
|
return e;
|
|
@@ -11666,10 +11903,10 @@ function toKnownErr26(e) {
|
|
|
11666
11903
|
var describeServer_exports = {};
|
|
11667
11904
|
__export(describeServer_exports, {
|
|
11668
11905
|
isLinks: () => isLinks,
|
|
11669
|
-
toKnownErr: () =>
|
|
11906
|
+
toKnownErr: () => toKnownErr29,
|
|
11670
11907
|
validateLinks: () => validateLinks
|
|
11671
11908
|
});
|
|
11672
|
-
function
|
|
11909
|
+
function toKnownErr29(e) {
|
|
11673
11910
|
if (e instanceof XRPCError) {
|
|
11674
11911
|
}
|
|
11675
11912
|
return e;
|
|
@@ -11681,12 +11918,31 @@ function validateLinks(v) {
|
|
|
11681
11918
|
return lexicons.validate("com.atproto.server.describeServer#links", v);
|
|
11682
11919
|
}
|
|
11683
11920
|
|
|
11921
|
+
// src/client/types/com/atproto/server/getAccountInviteCodes.ts
|
|
11922
|
+
var getAccountInviteCodes_exports = {};
|
|
11923
|
+
__export(getAccountInviteCodes_exports, {
|
|
11924
|
+
DuplicateCreateError: () => DuplicateCreateError,
|
|
11925
|
+
toKnownErr: () => toKnownErr30
|
|
11926
|
+
});
|
|
11927
|
+
var DuplicateCreateError = class extends XRPCError {
|
|
11928
|
+
constructor(src2) {
|
|
11929
|
+
super(src2.status, src2.error, src2.message);
|
|
11930
|
+
}
|
|
11931
|
+
};
|
|
11932
|
+
function toKnownErr30(e) {
|
|
11933
|
+
if (e instanceof XRPCError) {
|
|
11934
|
+
if (e.error === "DuplicateCreate")
|
|
11935
|
+
return new DuplicateCreateError(e);
|
|
11936
|
+
}
|
|
11937
|
+
return e;
|
|
11938
|
+
}
|
|
11939
|
+
|
|
11684
11940
|
// src/client/types/com/atproto/server/getSession.ts
|
|
11685
11941
|
var getSession_exports = {};
|
|
11686
11942
|
__export(getSession_exports, {
|
|
11687
|
-
toKnownErr: () =>
|
|
11943
|
+
toKnownErr: () => toKnownErr31
|
|
11688
11944
|
});
|
|
11689
|
-
function
|
|
11945
|
+
function toKnownErr31(e) {
|
|
11690
11946
|
if (e instanceof XRPCError) {
|
|
11691
11947
|
}
|
|
11692
11948
|
return e;
|
|
@@ -11696,14 +11952,14 @@ function toKnownErr28(e) {
|
|
|
11696
11952
|
var refreshSession_exports = {};
|
|
11697
11953
|
__export(refreshSession_exports, {
|
|
11698
11954
|
AccountTakedownError: () => AccountTakedownError2,
|
|
11699
|
-
toKnownErr: () =>
|
|
11955
|
+
toKnownErr: () => toKnownErr32
|
|
11700
11956
|
});
|
|
11701
11957
|
var AccountTakedownError2 = class extends XRPCError {
|
|
11702
11958
|
constructor(src2) {
|
|
11703
11959
|
super(src2.status, src2.error, src2.message);
|
|
11704
11960
|
}
|
|
11705
11961
|
};
|
|
11706
|
-
function
|
|
11962
|
+
function toKnownErr32(e) {
|
|
11707
11963
|
if (e instanceof XRPCError) {
|
|
11708
11964
|
if (e.error === "AccountTakedown")
|
|
11709
11965
|
return new AccountTakedownError2(e);
|
|
@@ -11714,9 +11970,9 @@ function toKnownErr29(e) {
|
|
|
11714
11970
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
11715
11971
|
var requestAccountDelete_exports = {};
|
|
11716
11972
|
__export(requestAccountDelete_exports, {
|
|
11717
|
-
toKnownErr: () =>
|
|
11973
|
+
toKnownErr: () => toKnownErr33
|
|
11718
11974
|
});
|
|
11719
|
-
function
|
|
11975
|
+
function toKnownErr33(e) {
|
|
11720
11976
|
if (e instanceof XRPCError) {
|
|
11721
11977
|
}
|
|
11722
11978
|
return e;
|
|
@@ -11725,9 +11981,9 @@ function toKnownErr30(e) {
|
|
|
11725
11981
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
11726
11982
|
var requestPasswordReset_exports = {};
|
|
11727
11983
|
__export(requestPasswordReset_exports, {
|
|
11728
|
-
toKnownErr: () =>
|
|
11984
|
+
toKnownErr: () => toKnownErr34
|
|
11729
11985
|
});
|
|
11730
|
-
function
|
|
11986
|
+
function toKnownErr34(e) {
|
|
11731
11987
|
if (e instanceof XRPCError) {
|
|
11732
11988
|
}
|
|
11733
11989
|
return e;
|
|
@@ -11738,7 +11994,7 @@ var resetPassword_exports = {};
|
|
|
11738
11994
|
__export(resetPassword_exports, {
|
|
11739
11995
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
11740
11996
|
InvalidTokenError: () => InvalidTokenError2,
|
|
11741
|
-
toKnownErr: () =>
|
|
11997
|
+
toKnownErr: () => toKnownErr35
|
|
11742
11998
|
});
|
|
11743
11999
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
11744
12000
|
constructor(src2) {
|
|
@@ -11750,7 +12006,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
11750
12006
|
super(src2.status, src2.error, src2.message);
|
|
11751
12007
|
}
|
|
11752
12008
|
};
|
|
11753
|
-
function
|
|
12009
|
+
function toKnownErr35(e) {
|
|
11754
12010
|
if (e instanceof XRPCError) {
|
|
11755
12011
|
if (e.error === "ExpiredToken")
|
|
11756
12012
|
return new ExpiredTokenError2(e);
|
|
@@ -11763,9 +12019,9 @@ function toKnownErr32(e) {
|
|
|
11763
12019
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
11764
12020
|
var getBlob_exports = {};
|
|
11765
12021
|
__export(getBlob_exports, {
|
|
11766
|
-
toKnownErr: () =>
|
|
12022
|
+
toKnownErr: () => toKnownErr36
|
|
11767
12023
|
});
|
|
11768
|
-
function
|
|
12024
|
+
function toKnownErr36(e) {
|
|
11769
12025
|
if (e instanceof XRPCError) {
|
|
11770
12026
|
}
|
|
11771
12027
|
return e;
|
|
@@ -11774,9 +12030,9 @@ function toKnownErr33(e) {
|
|
|
11774
12030
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
11775
12031
|
var getBlocks_exports = {};
|
|
11776
12032
|
__export(getBlocks_exports, {
|
|
11777
|
-
toKnownErr: () =>
|
|
12033
|
+
toKnownErr: () => toKnownErr37
|
|
11778
12034
|
});
|
|
11779
|
-
function
|
|
12035
|
+
function toKnownErr37(e) {
|
|
11780
12036
|
if (e instanceof XRPCError) {
|
|
11781
12037
|
}
|
|
11782
12038
|
return e;
|
|
@@ -11785,9 +12041,9 @@ function toKnownErr34(e) {
|
|
|
11785
12041
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
11786
12042
|
var getCheckout_exports = {};
|
|
11787
12043
|
__export(getCheckout_exports, {
|
|
11788
|
-
toKnownErr: () =>
|
|
12044
|
+
toKnownErr: () => toKnownErr38
|
|
11789
12045
|
});
|
|
11790
|
-
function
|
|
12046
|
+
function toKnownErr38(e) {
|
|
11791
12047
|
if (e instanceof XRPCError) {
|
|
11792
12048
|
}
|
|
11793
12049
|
return e;
|
|
@@ -11796,9 +12052,9 @@ function toKnownErr35(e) {
|
|
|
11796
12052
|
// src/client/types/com/atproto/sync/getCommitPath.ts
|
|
11797
12053
|
var getCommitPath_exports = {};
|
|
11798
12054
|
__export(getCommitPath_exports, {
|
|
11799
|
-
toKnownErr: () =>
|
|
12055
|
+
toKnownErr: () => toKnownErr39
|
|
11800
12056
|
});
|
|
11801
|
-
function
|
|
12057
|
+
function toKnownErr39(e) {
|
|
11802
12058
|
if (e instanceof XRPCError) {
|
|
11803
12059
|
}
|
|
11804
12060
|
return e;
|
|
@@ -11807,9 +12063,9 @@ function toKnownErr36(e) {
|
|
|
11807
12063
|
// src/client/types/com/atproto/sync/getHead.ts
|
|
11808
12064
|
var getHead_exports = {};
|
|
11809
12065
|
__export(getHead_exports, {
|
|
11810
|
-
toKnownErr: () =>
|
|
12066
|
+
toKnownErr: () => toKnownErr40
|
|
11811
12067
|
});
|
|
11812
|
-
function
|
|
12068
|
+
function toKnownErr40(e) {
|
|
11813
12069
|
if (e instanceof XRPCError) {
|
|
11814
12070
|
}
|
|
11815
12071
|
return e;
|
|
@@ -11818,9 +12074,9 @@ function toKnownErr37(e) {
|
|
|
11818
12074
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
11819
12075
|
var getRecord_exports3 = {};
|
|
11820
12076
|
__export(getRecord_exports3, {
|
|
11821
|
-
toKnownErr: () =>
|
|
12077
|
+
toKnownErr: () => toKnownErr41
|
|
11822
12078
|
});
|
|
11823
|
-
function
|
|
12079
|
+
function toKnownErr41(e) {
|
|
11824
12080
|
if (e instanceof XRPCError) {
|
|
11825
12081
|
}
|
|
11826
12082
|
return e;
|
|
@@ -11829,9 +12085,9 @@ function toKnownErr38(e) {
|
|
|
11829
12085
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
11830
12086
|
var getRepo_exports2 = {};
|
|
11831
12087
|
__export(getRepo_exports2, {
|
|
11832
|
-
toKnownErr: () =>
|
|
12088
|
+
toKnownErr: () => toKnownErr42
|
|
11833
12089
|
});
|
|
11834
|
-
function
|
|
12090
|
+
function toKnownErr42(e) {
|
|
11835
12091
|
if (e instanceof XRPCError) {
|
|
11836
12092
|
}
|
|
11837
12093
|
return e;
|
|
@@ -11840,9 +12096,9 @@ function toKnownErr39(e) {
|
|
|
11840
12096
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
11841
12097
|
var listBlobs_exports = {};
|
|
11842
12098
|
__export(listBlobs_exports, {
|
|
11843
|
-
toKnownErr: () =>
|
|
12099
|
+
toKnownErr: () => toKnownErr43
|
|
11844
12100
|
});
|
|
11845
|
-
function
|
|
12101
|
+
function toKnownErr43(e) {
|
|
11846
12102
|
if (e instanceof XRPCError) {
|
|
11847
12103
|
}
|
|
11848
12104
|
return e;
|
|
@@ -11851,9 +12107,9 @@ function toKnownErr40(e) {
|
|
|
11851
12107
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
11852
12108
|
var notifyOfUpdate_exports = {};
|
|
11853
12109
|
__export(notifyOfUpdate_exports, {
|
|
11854
|
-
toKnownErr: () =>
|
|
12110
|
+
toKnownErr: () => toKnownErr44
|
|
11855
12111
|
});
|
|
11856
|
-
function
|
|
12112
|
+
function toKnownErr44(e) {
|
|
11857
12113
|
if (e instanceof XRPCError) {
|
|
11858
12114
|
}
|
|
11859
12115
|
return e;
|
|
@@ -11862,9 +12118,9 @@ function toKnownErr41(e) {
|
|
|
11862
12118
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
11863
12119
|
var requestCrawl_exports = {};
|
|
11864
12120
|
__export(requestCrawl_exports, {
|
|
11865
|
-
toKnownErr: () =>
|
|
12121
|
+
toKnownErr: () => toKnownErr45
|
|
11866
12122
|
});
|
|
11867
|
-
function
|
|
12123
|
+
function toKnownErr45(e) {
|
|
11868
12124
|
if (e instanceof XRPCError) {
|
|
11869
12125
|
}
|
|
11870
12126
|
return e;
|
|
@@ -11873,9 +12129,9 @@ function toKnownErr42(e) {
|
|
|
11873
12129
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
11874
12130
|
var getProfile_exports = {};
|
|
11875
12131
|
__export(getProfile_exports, {
|
|
11876
|
-
toKnownErr: () =>
|
|
12132
|
+
toKnownErr: () => toKnownErr46
|
|
11877
12133
|
});
|
|
11878
|
-
function
|
|
12134
|
+
function toKnownErr46(e) {
|
|
11879
12135
|
if (e instanceof XRPCError) {
|
|
11880
12136
|
}
|
|
11881
12137
|
return e;
|
|
@@ -11884,9 +12140,9 @@ function toKnownErr43(e) {
|
|
|
11884
12140
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
11885
12141
|
var getProfiles_exports = {};
|
|
11886
12142
|
__export(getProfiles_exports, {
|
|
11887
|
-
toKnownErr: () =>
|
|
12143
|
+
toKnownErr: () => toKnownErr47
|
|
11888
12144
|
});
|
|
11889
|
-
function
|
|
12145
|
+
function toKnownErr47(e) {
|
|
11890
12146
|
if (e instanceof XRPCError) {
|
|
11891
12147
|
}
|
|
11892
12148
|
return e;
|
|
@@ -11895,9 +12151,9 @@ function toKnownErr44(e) {
|
|
|
11895
12151
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
11896
12152
|
var getSuggestions_exports = {};
|
|
11897
12153
|
__export(getSuggestions_exports, {
|
|
11898
|
-
toKnownErr: () =>
|
|
12154
|
+
toKnownErr: () => toKnownErr48
|
|
11899
12155
|
});
|
|
11900
|
-
function
|
|
12156
|
+
function toKnownErr48(e) {
|
|
11901
12157
|
if (e instanceof XRPCError) {
|
|
11902
12158
|
}
|
|
11903
12159
|
return e;
|
|
@@ -11906,9 +12162,9 @@ function toKnownErr45(e) {
|
|
|
11906
12162
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
11907
12163
|
var searchActors_exports = {};
|
|
11908
12164
|
__export(searchActors_exports, {
|
|
11909
|
-
toKnownErr: () =>
|
|
12165
|
+
toKnownErr: () => toKnownErr49
|
|
11910
12166
|
});
|
|
11911
|
-
function
|
|
12167
|
+
function toKnownErr49(e) {
|
|
11912
12168
|
if (e instanceof XRPCError) {
|
|
11913
12169
|
}
|
|
11914
12170
|
return e;
|
|
@@ -11917,9 +12173,9 @@ function toKnownErr46(e) {
|
|
|
11917
12173
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
11918
12174
|
var searchActorsTypeahead_exports = {};
|
|
11919
12175
|
__export(searchActorsTypeahead_exports, {
|
|
11920
|
-
toKnownErr: () =>
|
|
12176
|
+
toKnownErr: () => toKnownErr50
|
|
11921
12177
|
});
|
|
11922
|
-
function
|
|
12178
|
+
function toKnownErr50(e) {
|
|
11923
12179
|
if (e instanceof XRPCError) {
|
|
11924
12180
|
}
|
|
11925
12181
|
return e;
|
|
@@ -11928,9 +12184,9 @@ function toKnownErr47(e) {
|
|
|
11928
12184
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
11929
12185
|
var getAuthorFeed_exports = {};
|
|
11930
12186
|
__export(getAuthorFeed_exports, {
|
|
11931
|
-
toKnownErr: () =>
|
|
12187
|
+
toKnownErr: () => toKnownErr51
|
|
11932
12188
|
});
|
|
11933
|
-
function
|
|
12189
|
+
function toKnownErr51(e) {
|
|
11934
12190
|
if (e instanceof XRPCError) {
|
|
11935
12191
|
}
|
|
11936
12192
|
return e;
|
|
@@ -11940,10 +12196,10 @@ function toKnownErr48(e) {
|
|
|
11940
12196
|
var getLikes_exports = {};
|
|
11941
12197
|
__export(getLikes_exports, {
|
|
11942
12198
|
isLike: () => isLike,
|
|
11943
|
-
toKnownErr: () =>
|
|
12199
|
+
toKnownErr: () => toKnownErr52,
|
|
11944
12200
|
validateLike: () => validateLike
|
|
11945
12201
|
});
|
|
11946
|
-
function
|
|
12202
|
+
function toKnownErr52(e) {
|
|
11947
12203
|
if (e instanceof XRPCError) {
|
|
11948
12204
|
}
|
|
11949
12205
|
return e;
|
|
@@ -11959,14 +12215,14 @@ function validateLike(v) {
|
|
|
11959
12215
|
var getPostThread_exports = {};
|
|
11960
12216
|
__export(getPostThread_exports, {
|
|
11961
12217
|
NotFoundError: () => NotFoundError,
|
|
11962
|
-
toKnownErr: () =>
|
|
12218
|
+
toKnownErr: () => toKnownErr53
|
|
11963
12219
|
});
|
|
11964
12220
|
var NotFoundError = class extends XRPCError {
|
|
11965
12221
|
constructor(src2) {
|
|
11966
12222
|
super(src2.status, src2.error, src2.message);
|
|
11967
12223
|
}
|
|
11968
12224
|
};
|
|
11969
|
-
function
|
|
12225
|
+
function toKnownErr53(e) {
|
|
11970
12226
|
if (e instanceof XRPCError) {
|
|
11971
12227
|
if (e.error === "NotFound")
|
|
11972
12228
|
return new NotFoundError(e);
|
|
@@ -11977,9 +12233,9 @@ function toKnownErr50(e) {
|
|
|
11977
12233
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
11978
12234
|
var getRepostedBy_exports = {};
|
|
11979
12235
|
__export(getRepostedBy_exports, {
|
|
11980
|
-
toKnownErr: () =>
|
|
12236
|
+
toKnownErr: () => toKnownErr54
|
|
11981
12237
|
});
|
|
11982
|
-
function
|
|
12238
|
+
function toKnownErr54(e) {
|
|
11983
12239
|
if (e instanceof XRPCError) {
|
|
11984
12240
|
}
|
|
11985
12241
|
return e;
|
|
@@ -11988,9 +12244,9 @@ function toKnownErr51(e) {
|
|
|
11988
12244
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
11989
12245
|
var getTimeline_exports = {};
|
|
11990
12246
|
__export(getTimeline_exports, {
|
|
11991
|
-
toKnownErr: () =>
|
|
12247
|
+
toKnownErr: () => toKnownErr55
|
|
11992
12248
|
});
|
|
11993
|
-
function
|
|
12249
|
+
function toKnownErr55(e) {
|
|
11994
12250
|
if (e instanceof XRPCError) {
|
|
11995
12251
|
}
|
|
11996
12252
|
return e;
|
|
@@ -11999,9 +12255,9 @@ function toKnownErr52(e) {
|
|
|
11999
12255
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
12000
12256
|
var getFollowers_exports = {};
|
|
12001
12257
|
__export(getFollowers_exports, {
|
|
12002
|
-
toKnownErr: () =>
|
|
12258
|
+
toKnownErr: () => toKnownErr56
|
|
12003
12259
|
});
|
|
12004
|
-
function
|
|
12260
|
+
function toKnownErr56(e) {
|
|
12005
12261
|
if (e instanceof XRPCError) {
|
|
12006
12262
|
}
|
|
12007
12263
|
return e;
|
|
@@ -12010,9 +12266,9 @@ function toKnownErr53(e) {
|
|
|
12010
12266
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
12011
12267
|
var getFollows_exports = {};
|
|
12012
12268
|
__export(getFollows_exports, {
|
|
12013
|
-
toKnownErr: () =>
|
|
12269
|
+
toKnownErr: () => toKnownErr57
|
|
12014
12270
|
});
|
|
12015
|
-
function
|
|
12271
|
+
function toKnownErr57(e) {
|
|
12016
12272
|
if (e instanceof XRPCError) {
|
|
12017
12273
|
}
|
|
12018
12274
|
return e;
|
|
@@ -12021,9 +12277,9 @@ function toKnownErr54(e) {
|
|
|
12021
12277
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
12022
12278
|
var getMutes_exports = {};
|
|
12023
12279
|
__export(getMutes_exports, {
|
|
12024
|
-
toKnownErr: () =>
|
|
12280
|
+
toKnownErr: () => toKnownErr58
|
|
12025
12281
|
});
|
|
12026
|
-
function
|
|
12282
|
+
function toKnownErr58(e) {
|
|
12027
12283
|
if (e instanceof XRPCError) {
|
|
12028
12284
|
}
|
|
12029
12285
|
return e;
|
|
@@ -12032,9 +12288,9 @@ function toKnownErr55(e) {
|
|
|
12032
12288
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
12033
12289
|
var muteActor_exports = {};
|
|
12034
12290
|
__export(muteActor_exports, {
|
|
12035
|
-
toKnownErr: () =>
|
|
12291
|
+
toKnownErr: () => toKnownErr59
|
|
12036
12292
|
});
|
|
12037
|
-
function
|
|
12293
|
+
function toKnownErr59(e) {
|
|
12038
12294
|
if (e instanceof XRPCError) {
|
|
12039
12295
|
}
|
|
12040
12296
|
return e;
|
|
@@ -12043,9 +12299,9 @@ function toKnownErr56(e) {
|
|
|
12043
12299
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
12044
12300
|
var unmuteActor_exports = {};
|
|
12045
12301
|
__export(unmuteActor_exports, {
|
|
12046
|
-
toKnownErr: () =>
|
|
12302
|
+
toKnownErr: () => toKnownErr60
|
|
12047
12303
|
});
|
|
12048
|
-
function
|
|
12304
|
+
function toKnownErr60(e) {
|
|
12049
12305
|
if (e instanceof XRPCError) {
|
|
12050
12306
|
}
|
|
12051
12307
|
return e;
|
|
@@ -12054,9 +12310,9 @@ function toKnownErr57(e) {
|
|
|
12054
12310
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
12055
12311
|
var getUnreadCount_exports = {};
|
|
12056
12312
|
__export(getUnreadCount_exports, {
|
|
12057
|
-
toKnownErr: () =>
|
|
12313
|
+
toKnownErr: () => toKnownErr61
|
|
12058
12314
|
});
|
|
12059
|
-
function
|
|
12315
|
+
function toKnownErr61(e) {
|
|
12060
12316
|
if (e instanceof XRPCError) {
|
|
12061
12317
|
}
|
|
12062
12318
|
return e;
|
|
@@ -12066,10 +12322,10 @@ function toKnownErr58(e) {
|
|
|
12066
12322
|
var listNotifications_exports = {};
|
|
12067
12323
|
__export(listNotifications_exports, {
|
|
12068
12324
|
isNotification: () => isNotification,
|
|
12069
|
-
toKnownErr: () =>
|
|
12325
|
+
toKnownErr: () => toKnownErr62,
|
|
12070
12326
|
validateNotification: () => validateNotification
|
|
12071
12327
|
});
|
|
12072
|
-
function
|
|
12328
|
+
function toKnownErr62(e) {
|
|
12073
12329
|
if (e instanceof XRPCError) {
|
|
12074
12330
|
}
|
|
12075
12331
|
return e;
|
|
@@ -12087,9 +12343,9 @@ function validateNotification(v) {
|
|
|
12087
12343
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
12088
12344
|
var updateSeen_exports = {};
|
|
12089
12345
|
__export(updateSeen_exports, {
|
|
12090
|
-
toKnownErr: () =>
|
|
12346
|
+
toKnownErr: () => toKnownErr63
|
|
12091
12347
|
});
|
|
12092
|
-
function
|
|
12348
|
+
function toKnownErr63(e) {
|
|
12093
12349
|
if (e instanceof XRPCError) {
|
|
12094
12350
|
}
|
|
12095
12351
|
return e;
|
|
@@ -12098,9 +12354,9 @@ function toKnownErr60(e) {
|
|
|
12098
12354
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
12099
12355
|
var getPopular_exports = {};
|
|
12100
12356
|
__export(getPopular_exports, {
|
|
12101
|
-
toKnownErr: () =>
|
|
12357
|
+
toKnownErr: () => toKnownErr64
|
|
12102
12358
|
});
|
|
12103
|
-
function
|
|
12359
|
+
function toKnownErr64(e) {
|
|
12104
12360
|
if (e instanceof XRPCError) {
|
|
12105
12361
|
}
|
|
12106
12362
|
return e;
|
|
@@ -12267,6 +12523,27 @@ function validateMain(v) {
|
|
|
12267
12523
|
return lexicons.validate("com.atproto.repo.strongRef#main", v);
|
|
12268
12524
|
}
|
|
12269
12525
|
|
|
12526
|
+
// src/client/types/com/atproto/server/defs.ts
|
|
12527
|
+
var defs_exports3 = {};
|
|
12528
|
+
__export(defs_exports3, {
|
|
12529
|
+
isInviteCode: () => isInviteCode,
|
|
12530
|
+
isInviteCodeUse: () => isInviteCodeUse,
|
|
12531
|
+
validateInviteCode: () => validateInviteCode,
|
|
12532
|
+
validateInviteCodeUse: () => validateInviteCodeUse
|
|
12533
|
+
});
|
|
12534
|
+
function isInviteCode(v) {
|
|
12535
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.defs#inviteCode";
|
|
12536
|
+
}
|
|
12537
|
+
function validateInviteCode(v) {
|
|
12538
|
+
return lexicons.validate("com.atproto.server.defs#inviteCode", v);
|
|
12539
|
+
}
|
|
12540
|
+
function isInviteCodeUse(v) {
|
|
12541
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.defs#inviteCodeUse";
|
|
12542
|
+
}
|
|
12543
|
+
function validateInviteCodeUse(v) {
|
|
12544
|
+
return lexicons.validate("com.atproto.server.defs#inviteCodeUse", v);
|
|
12545
|
+
}
|
|
12546
|
+
|
|
12270
12547
|
// src/client/types/com/atproto/sync/subscribeRepos.ts
|
|
12271
12548
|
var subscribeRepos_exports = {};
|
|
12272
12549
|
__export(subscribeRepos_exports, {
|
|
@@ -12321,8 +12598,8 @@ function validateRepoOp(v) {
|
|
|
12321
12598
|
}
|
|
12322
12599
|
|
|
12323
12600
|
// src/client/types/app/bsky/actor/defs.ts
|
|
12324
|
-
var
|
|
12325
|
-
__export(
|
|
12601
|
+
var defs_exports4 = {};
|
|
12602
|
+
__export(defs_exports4, {
|
|
12326
12603
|
isProfileView: () => isProfileView,
|
|
12327
12604
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
12328
12605
|
isProfileViewDetailed: () => isProfileViewDetailed,
|
|
@@ -12503,8 +12780,8 @@ function validateView4(v) {
|
|
|
12503
12780
|
}
|
|
12504
12781
|
|
|
12505
12782
|
// src/client/types/app/bsky/feed/defs.ts
|
|
12506
|
-
var
|
|
12507
|
-
__export(
|
|
12783
|
+
var defs_exports5 = {};
|
|
12784
|
+
__export(defs_exports5, {
|
|
12508
12785
|
isFeedViewPost: () => isFeedViewPost,
|
|
12509
12786
|
isNotFoundPost: () => isNotFoundPost,
|
|
12510
12787
|
isPostView: () => isPostView,
|
|
@@ -12727,54 +13004,64 @@ var AdminNS = class {
|
|
|
12727
13004
|
constructor(service) {
|
|
12728
13005
|
this._service = service;
|
|
12729
13006
|
}
|
|
13007
|
+
disableInviteCodes(data, opts) {
|
|
13008
|
+
return this._service.xrpc.call("com.atproto.admin.disableInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
13009
|
+
throw toKnownErr(e);
|
|
13010
|
+
});
|
|
13011
|
+
}
|
|
13012
|
+
getInviteCodes(params2, opts) {
|
|
13013
|
+
return this._service.xrpc.call("com.atproto.admin.getInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13014
|
+
throw toKnownErr2(e);
|
|
13015
|
+
});
|
|
13016
|
+
}
|
|
12730
13017
|
getModerationAction(params2, opts) {
|
|
12731
13018
|
return this._service.xrpc.call("com.atproto.admin.getModerationAction", params2, void 0, opts).catch((e) => {
|
|
12732
|
-
throw
|
|
13019
|
+
throw toKnownErr3(e);
|
|
12733
13020
|
});
|
|
12734
13021
|
}
|
|
12735
13022
|
getModerationActions(params2, opts) {
|
|
12736
13023
|
return this._service.xrpc.call("com.atproto.admin.getModerationActions", params2, void 0, opts).catch((e) => {
|
|
12737
|
-
throw
|
|
13024
|
+
throw toKnownErr4(e);
|
|
12738
13025
|
});
|
|
12739
13026
|
}
|
|
12740
13027
|
getModerationReport(params2, opts) {
|
|
12741
13028
|
return this._service.xrpc.call("com.atproto.admin.getModerationReport", params2, void 0, opts).catch((e) => {
|
|
12742
|
-
throw
|
|
13029
|
+
throw toKnownErr5(e);
|
|
12743
13030
|
});
|
|
12744
13031
|
}
|
|
12745
13032
|
getModerationReports(params2, opts) {
|
|
12746
13033
|
return this._service.xrpc.call("com.atproto.admin.getModerationReports", params2, void 0, opts).catch((e) => {
|
|
12747
|
-
throw
|
|
13034
|
+
throw toKnownErr6(e);
|
|
12748
13035
|
});
|
|
12749
13036
|
}
|
|
12750
13037
|
getRecord(params2, opts) {
|
|
12751
13038
|
return this._service.xrpc.call("com.atproto.admin.getRecord", params2, void 0, opts).catch((e) => {
|
|
12752
|
-
throw
|
|
13039
|
+
throw toKnownErr7(e);
|
|
12753
13040
|
});
|
|
12754
13041
|
}
|
|
12755
13042
|
getRepo(params2, opts) {
|
|
12756
13043
|
return this._service.xrpc.call("com.atproto.admin.getRepo", params2, void 0, opts).catch((e) => {
|
|
12757
|
-
throw
|
|
13044
|
+
throw toKnownErr8(e);
|
|
12758
13045
|
});
|
|
12759
13046
|
}
|
|
12760
13047
|
resolveModerationReports(data, opts) {
|
|
12761
13048
|
return this._service.xrpc.call("com.atproto.admin.resolveModerationReports", opts?.qp, data, opts).catch((e) => {
|
|
12762
|
-
throw
|
|
13049
|
+
throw toKnownErr9(e);
|
|
12763
13050
|
});
|
|
12764
13051
|
}
|
|
12765
13052
|
reverseModerationAction(data, opts) {
|
|
12766
13053
|
return this._service.xrpc.call("com.atproto.admin.reverseModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
12767
|
-
throw
|
|
13054
|
+
throw toKnownErr10(e);
|
|
12768
13055
|
});
|
|
12769
13056
|
}
|
|
12770
13057
|
searchRepos(params2, opts) {
|
|
12771
13058
|
return this._service.xrpc.call("com.atproto.admin.searchRepos", params2, void 0, opts).catch((e) => {
|
|
12772
|
-
throw
|
|
13059
|
+
throw toKnownErr11(e);
|
|
12773
13060
|
});
|
|
12774
13061
|
}
|
|
12775
13062
|
takeModerationAction(data, opts) {
|
|
12776
13063
|
return this._service.xrpc.call("com.atproto.admin.takeModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
12777
|
-
throw
|
|
13064
|
+
throw toKnownErr12(e);
|
|
12778
13065
|
});
|
|
12779
13066
|
}
|
|
12780
13067
|
};
|
|
@@ -12784,12 +13071,12 @@ var IdentityNS = class {
|
|
|
12784
13071
|
}
|
|
12785
13072
|
resolveHandle(params2, opts) {
|
|
12786
13073
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
12787
|
-
throw
|
|
13074
|
+
throw toKnownErr13(e);
|
|
12788
13075
|
});
|
|
12789
13076
|
}
|
|
12790
13077
|
updateHandle(data, opts) {
|
|
12791
13078
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
12792
|
-
throw
|
|
13079
|
+
throw toKnownErr14(e);
|
|
12793
13080
|
});
|
|
12794
13081
|
}
|
|
12795
13082
|
};
|
|
@@ -12799,7 +13086,7 @@ var ModerationNS = class {
|
|
|
12799
13086
|
}
|
|
12800
13087
|
createReport(data, opts) {
|
|
12801
13088
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
12802
|
-
throw
|
|
13089
|
+
throw toKnownErr15(e);
|
|
12803
13090
|
});
|
|
12804
13091
|
}
|
|
12805
13092
|
};
|
|
@@ -12809,42 +13096,42 @@ var RepoNS = class {
|
|
|
12809
13096
|
}
|
|
12810
13097
|
applyWrites(data, opts) {
|
|
12811
13098
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
12812
|
-
throw
|
|
13099
|
+
throw toKnownErr16(e);
|
|
12813
13100
|
});
|
|
12814
13101
|
}
|
|
12815
13102
|
createRecord(data, opts) {
|
|
12816
13103
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
12817
|
-
throw
|
|
13104
|
+
throw toKnownErr17(e);
|
|
12818
13105
|
});
|
|
12819
13106
|
}
|
|
12820
13107
|
deleteRecord(data, opts) {
|
|
12821
13108
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
12822
|
-
throw
|
|
13109
|
+
throw toKnownErr18(e);
|
|
12823
13110
|
});
|
|
12824
13111
|
}
|
|
12825
13112
|
describeRepo(params2, opts) {
|
|
12826
13113
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
12827
|
-
throw
|
|
13114
|
+
throw toKnownErr19(e);
|
|
12828
13115
|
});
|
|
12829
13116
|
}
|
|
12830
13117
|
getRecord(params2, opts) {
|
|
12831
13118
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
12832
|
-
throw
|
|
13119
|
+
throw toKnownErr20(e);
|
|
12833
13120
|
});
|
|
12834
13121
|
}
|
|
12835
13122
|
listRecords(params2, opts) {
|
|
12836
13123
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
12837
|
-
throw
|
|
13124
|
+
throw toKnownErr21(e);
|
|
12838
13125
|
});
|
|
12839
13126
|
}
|
|
12840
13127
|
putRecord(data, opts) {
|
|
12841
13128
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
12842
|
-
throw
|
|
13129
|
+
throw toKnownErr22(e);
|
|
12843
13130
|
});
|
|
12844
13131
|
}
|
|
12845
13132
|
uploadBlob(data, opts) {
|
|
12846
13133
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
12847
|
-
throw
|
|
13134
|
+
throw toKnownErr23(e);
|
|
12848
13135
|
});
|
|
12849
13136
|
}
|
|
12850
13137
|
};
|
|
@@ -12854,57 +13141,62 @@ var ServerNS = class {
|
|
|
12854
13141
|
}
|
|
12855
13142
|
createAccount(data, opts) {
|
|
12856
13143
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
12857
|
-
throw
|
|
13144
|
+
throw toKnownErr24(e);
|
|
12858
13145
|
});
|
|
12859
13146
|
}
|
|
12860
13147
|
createInviteCode(data, opts) {
|
|
12861
13148
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
12862
|
-
throw
|
|
13149
|
+
throw toKnownErr25(e);
|
|
12863
13150
|
});
|
|
12864
13151
|
}
|
|
12865
13152
|
createSession(data, opts) {
|
|
12866
13153
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
12867
|
-
throw
|
|
13154
|
+
throw toKnownErr26(e);
|
|
12868
13155
|
});
|
|
12869
13156
|
}
|
|
12870
13157
|
deleteAccount(data, opts) {
|
|
12871
13158
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
12872
|
-
throw
|
|
13159
|
+
throw toKnownErr27(e);
|
|
12873
13160
|
});
|
|
12874
13161
|
}
|
|
12875
13162
|
deleteSession(data, opts) {
|
|
12876
13163
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
12877
|
-
throw
|
|
13164
|
+
throw toKnownErr28(e);
|
|
12878
13165
|
});
|
|
12879
13166
|
}
|
|
12880
13167
|
describeServer(params2, opts) {
|
|
12881
13168
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
12882
|
-
throw
|
|
13169
|
+
throw toKnownErr29(e);
|
|
13170
|
+
});
|
|
13171
|
+
}
|
|
13172
|
+
getAccountInviteCodes(params2, opts) {
|
|
13173
|
+
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13174
|
+
throw toKnownErr30(e);
|
|
12883
13175
|
});
|
|
12884
13176
|
}
|
|
12885
13177
|
getSession(params2, opts) {
|
|
12886
13178
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
12887
|
-
throw
|
|
13179
|
+
throw toKnownErr31(e);
|
|
12888
13180
|
});
|
|
12889
13181
|
}
|
|
12890
13182
|
refreshSession(data, opts) {
|
|
12891
13183
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
12892
|
-
throw
|
|
13184
|
+
throw toKnownErr32(e);
|
|
12893
13185
|
});
|
|
12894
13186
|
}
|
|
12895
13187
|
requestAccountDelete(data, opts) {
|
|
12896
13188
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
12897
|
-
throw
|
|
13189
|
+
throw toKnownErr33(e);
|
|
12898
13190
|
});
|
|
12899
13191
|
}
|
|
12900
13192
|
requestPasswordReset(data, opts) {
|
|
12901
13193
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
12902
|
-
throw
|
|
13194
|
+
throw toKnownErr34(e);
|
|
12903
13195
|
});
|
|
12904
13196
|
}
|
|
12905
13197
|
resetPassword(data, opts) {
|
|
12906
13198
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
12907
|
-
throw
|
|
13199
|
+
throw toKnownErr35(e);
|
|
12908
13200
|
});
|
|
12909
13201
|
}
|
|
12910
13202
|
};
|
|
@@ -12914,52 +13206,52 @@ var SyncNS = class {
|
|
|
12914
13206
|
}
|
|
12915
13207
|
getBlob(params2, opts) {
|
|
12916
13208
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
12917
|
-
throw
|
|
13209
|
+
throw toKnownErr36(e);
|
|
12918
13210
|
});
|
|
12919
13211
|
}
|
|
12920
13212
|
getBlocks(params2, opts) {
|
|
12921
13213
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
12922
|
-
throw
|
|
13214
|
+
throw toKnownErr37(e);
|
|
12923
13215
|
});
|
|
12924
13216
|
}
|
|
12925
13217
|
getCheckout(params2, opts) {
|
|
12926
13218
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
12927
|
-
throw
|
|
13219
|
+
throw toKnownErr38(e);
|
|
12928
13220
|
});
|
|
12929
13221
|
}
|
|
12930
13222
|
getCommitPath(params2, opts) {
|
|
12931
13223
|
return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
|
|
12932
|
-
throw
|
|
13224
|
+
throw toKnownErr39(e);
|
|
12933
13225
|
});
|
|
12934
13226
|
}
|
|
12935
13227
|
getHead(params2, opts) {
|
|
12936
13228
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
12937
|
-
throw
|
|
13229
|
+
throw toKnownErr40(e);
|
|
12938
13230
|
});
|
|
12939
13231
|
}
|
|
12940
13232
|
getRecord(params2, opts) {
|
|
12941
13233
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
12942
|
-
throw
|
|
13234
|
+
throw toKnownErr41(e);
|
|
12943
13235
|
});
|
|
12944
13236
|
}
|
|
12945
13237
|
getRepo(params2, opts) {
|
|
12946
13238
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
12947
|
-
throw
|
|
13239
|
+
throw toKnownErr42(e);
|
|
12948
13240
|
});
|
|
12949
13241
|
}
|
|
12950
13242
|
listBlobs(params2, opts) {
|
|
12951
13243
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
12952
|
-
throw
|
|
13244
|
+
throw toKnownErr43(e);
|
|
12953
13245
|
});
|
|
12954
13246
|
}
|
|
12955
13247
|
notifyOfUpdate(params2, opts) {
|
|
12956
13248
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", params2, void 0, opts).catch((e) => {
|
|
12957
|
-
throw
|
|
13249
|
+
throw toKnownErr44(e);
|
|
12958
13250
|
});
|
|
12959
13251
|
}
|
|
12960
13252
|
requestCrawl(params2, opts) {
|
|
12961
13253
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", params2, void 0, opts).catch((e) => {
|
|
12962
|
-
throw
|
|
13254
|
+
throw toKnownErr45(e);
|
|
12963
13255
|
});
|
|
12964
13256
|
}
|
|
12965
13257
|
};
|
|
@@ -12988,27 +13280,27 @@ var ActorNS = class {
|
|
|
12988
13280
|
}
|
|
12989
13281
|
getProfile(params2, opts) {
|
|
12990
13282
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
12991
|
-
throw
|
|
13283
|
+
throw toKnownErr46(e);
|
|
12992
13284
|
});
|
|
12993
13285
|
}
|
|
12994
13286
|
getProfiles(params2, opts) {
|
|
12995
13287
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
12996
|
-
throw
|
|
13288
|
+
throw toKnownErr47(e);
|
|
12997
13289
|
});
|
|
12998
13290
|
}
|
|
12999
13291
|
getSuggestions(params2, opts) {
|
|
13000
13292
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
13001
|
-
throw
|
|
13293
|
+
throw toKnownErr48(e);
|
|
13002
13294
|
});
|
|
13003
13295
|
}
|
|
13004
13296
|
searchActors(params2, opts) {
|
|
13005
13297
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
13006
|
-
throw
|
|
13298
|
+
throw toKnownErr49(e);
|
|
13007
13299
|
});
|
|
13008
13300
|
}
|
|
13009
13301
|
searchActorsTypeahead(params2, opts) {
|
|
13010
13302
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
13011
|
-
throw
|
|
13303
|
+
throw toKnownErr50(e);
|
|
13012
13304
|
});
|
|
13013
13305
|
}
|
|
13014
13306
|
};
|
|
@@ -13063,27 +13355,27 @@ var FeedNS = class {
|
|
|
13063
13355
|
}
|
|
13064
13356
|
getAuthorFeed(params2, opts) {
|
|
13065
13357
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
13066
|
-
throw
|
|
13358
|
+
throw toKnownErr51(e);
|
|
13067
13359
|
});
|
|
13068
13360
|
}
|
|
13069
13361
|
getLikes(params2, opts) {
|
|
13070
13362
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
13071
|
-
throw
|
|
13363
|
+
throw toKnownErr52(e);
|
|
13072
13364
|
});
|
|
13073
13365
|
}
|
|
13074
13366
|
getPostThread(params2, opts) {
|
|
13075
13367
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
13076
|
-
throw
|
|
13368
|
+
throw toKnownErr53(e);
|
|
13077
13369
|
});
|
|
13078
13370
|
}
|
|
13079
13371
|
getRepostedBy(params2, opts) {
|
|
13080
13372
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
13081
|
-
throw
|
|
13373
|
+
throw toKnownErr54(e);
|
|
13082
13374
|
});
|
|
13083
13375
|
}
|
|
13084
13376
|
getTimeline(params2, opts) {
|
|
13085
13377
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
13086
|
-
throw
|
|
13378
|
+
throw toKnownErr55(e);
|
|
13087
13379
|
});
|
|
13088
13380
|
}
|
|
13089
13381
|
};
|
|
@@ -13205,27 +13497,27 @@ var GraphNS = class {
|
|
|
13205
13497
|
}
|
|
13206
13498
|
getFollowers(params2, opts) {
|
|
13207
13499
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
13208
|
-
throw
|
|
13500
|
+
throw toKnownErr56(e);
|
|
13209
13501
|
});
|
|
13210
13502
|
}
|
|
13211
13503
|
getFollows(params2, opts) {
|
|
13212
13504
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
13213
|
-
throw
|
|
13505
|
+
throw toKnownErr57(e);
|
|
13214
13506
|
});
|
|
13215
13507
|
}
|
|
13216
13508
|
getMutes(params2, opts) {
|
|
13217
13509
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
13218
|
-
throw
|
|
13510
|
+
throw toKnownErr58(e);
|
|
13219
13511
|
});
|
|
13220
13512
|
}
|
|
13221
13513
|
muteActor(data, opts) {
|
|
13222
13514
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
13223
|
-
throw
|
|
13515
|
+
throw toKnownErr59(e);
|
|
13224
13516
|
});
|
|
13225
13517
|
}
|
|
13226
13518
|
unmuteActor(data, opts) {
|
|
13227
13519
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
13228
|
-
throw
|
|
13520
|
+
throw toKnownErr60(e);
|
|
13229
13521
|
});
|
|
13230
13522
|
}
|
|
13231
13523
|
};
|
|
@@ -13272,17 +13564,17 @@ var NotificationNS = class {
|
|
|
13272
13564
|
}
|
|
13273
13565
|
getUnreadCount(params2, opts) {
|
|
13274
13566
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
13275
|
-
throw
|
|
13567
|
+
throw toKnownErr61(e);
|
|
13276
13568
|
});
|
|
13277
13569
|
}
|
|
13278
13570
|
listNotifications(params2, opts) {
|
|
13279
13571
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
13280
|
-
throw
|
|
13572
|
+
throw toKnownErr62(e);
|
|
13281
13573
|
});
|
|
13282
13574
|
}
|
|
13283
13575
|
updateSeen(data, opts) {
|
|
13284
13576
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
13285
|
-
throw
|
|
13577
|
+
throw toKnownErr63(e);
|
|
13286
13578
|
});
|
|
13287
13579
|
}
|
|
13288
13580
|
};
|
|
@@ -13297,7 +13589,7 @@ var UnspeccedNS = class {
|
|
|
13297
13589
|
}
|
|
13298
13590
|
getPopular(params2, opts) {
|
|
13299
13591
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
13300
|
-
throw
|
|
13592
|
+
throw toKnownErr64(e);
|
|
13301
13593
|
});
|
|
13302
13594
|
}
|
|
13303
13595
|
};
|