@atproto/api 0.9.8 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/bsky-agent.d.ts +6 -1
- package/dist/client/index.d.ts +33 -9
- package/dist/client/lexicons.d.ts +419 -110
- package/dist/client/types/app/bsky/actor/defs.d.ts +21 -1
- package/dist/client/types/com/atproto/admin/updateAccountPassword.d.ts +18 -0
- package/dist/client/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +20 -0
- package/dist/client/types/com/atproto/{temp/pushBlob.d.ts → identity/requestPlcOperationSignature.d.ts} +1 -3
- package/dist/client/types/com/atproto/identity/signPlcOperation.d.ts +26 -0
- package/dist/client/types/com/atproto/identity/submitPlcOperation.d.ts +17 -0
- package/dist/client/types/com/atproto/{temp → repo}/importRepo.d.ts +0 -2
- package/dist/client/types/com/atproto/repo/listMissingBlobs.d.ts +28 -0
- package/dist/client/types/com/atproto/server/activateAccount.d.ts +13 -0
- package/dist/client/types/com/atproto/server/checkAccountStatus.d.ts +25 -0
- package/dist/client/types/com/atproto/server/deactivateAccount.d.ts +17 -0
- package/dist/client/types/com/atproto/server/describeServer.d.ts +1 -0
- package/dist/client/types/com/atproto/server/getServiceAuth.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +8 -0
- package/dist/index.js +1028 -530
- package/dist/index.js.map +3 -3
- package/dist/types.d.ts +3 -0
- package/package.json +2 -2
- package/src/bsky-agent.ts +136 -0
- package/src/client/index.ts +153 -39
- package/src/client/lexicons.ts +460 -138
- package/src/client/types/app/bsky/actor/defs.ts +61 -0
- package/src/client/types/app/bsky/feed/post.ts +1 -1
- package/src/client/types/com/atproto/{temp/pushBlob.ts → admin/updateAccountPassword.ts} +6 -5
- package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +37 -0
- package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +28 -0
- package/src/client/types/com/atproto/identity/signPlcOperation.ts +44 -0
- package/src/client/types/com/atproto/identity/submitPlcOperation.ts +32 -0
- package/src/client/types/com/atproto/{temp → repo}/importRepo.ts +1 -5
- package/src/client/types/com/atproto/repo/listMissingBlobs.ts +55 -0
- package/src/client/types/com/atproto/server/activateAccount.ts +28 -0
- package/src/client/types/com/atproto/server/checkAccountStatus.ts +41 -0
- package/src/client/types/com/atproto/server/deactivateAccount.ts +33 -0
- package/src/client/types/com/atproto/server/describeServer.ts +1 -0
- package/src/client/types/com/atproto/server/getServiceAuth.ts +36 -0
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +23 -3
- package/src/types.ts +3 -0
- package/tests/agent.test.ts +1 -0
- package/tests/bsky-agent.test.ts +183 -0
- package/dist/client/types/com/atproto/temp/transferAccount.d.ts +0 -48
- package/src/client/types/com/atproto/temp/transferAccount.ts +0 -92
package/dist/index.js
CHANGED
|
@@ -8976,10 +8976,15 @@ __export(src_exports2, {
|
|
|
8976
8976
|
ComAtprotoAdminSendEmail: () => sendEmail_exports,
|
|
8977
8977
|
ComAtprotoAdminUpdateAccountEmail: () => updateAccountEmail_exports,
|
|
8978
8978
|
ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
|
|
8979
|
+
ComAtprotoAdminUpdateAccountPassword: () => updateAccountPassword_exports,
|
|
8979
8980
|
ComAtprotoAdminUpdateCommunicationTemplate: () => updateCommunicationTemplate_exports,
|
|
8980
8981
|
ComAtprotoAdminUpdateSubjectStatus: () => updateSubjectStatus_exports,
|
|
8982
|
+
ComAtprotoIdentityGetRecommendedDidCredentials: () => getRecommendedDidCredentials_exports,
|
|
8981
8983
|
ComAtprotoIdentityNS: () => ComAtprotoIdentityNS,
|
|
8984
|
+
ComAtprotoIdentityRequestPlcOperationSignature: () => requestPlcOperationSignature_exports,
|
|
8982
8985
|
ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
|
|
8986
|
+
ComAtprotoIdentitySignPlcOperation: () => signPlcOperation_exports,
|
|
8987
|
+
ComAtprotoIdentitySubmitPlcOperation: () => submitPlcOperation_exports,
|
|
8983
8988
|
ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
|
|
8984
8989
|
ComAtprotoLabelDefs: () => defs_exports2,
|
|
8985
8990
|
ComAtprotoLabelNS: () => ComAtprotoLabelNS,
|
|
@@ -8994,22 +8999,28 @@ __export(src_exports2, {
|
|
|
8994
8999
|
ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
|
|
8995
9000
|
ComAtprotoRepoDescribeRepo: () => describeRepo_exports,
|
|
8996
9001
|
ComAtprotoRepoGetRecord: () => getRecord_exports2,
|
|
9002
|
+
ComAtprotoRepoImportRepo: () => importRepo_exports,
|
|
9003
|
+
ComAtprotoRepoListMissingBlobs: () => listMissingBlobs_exports,
|
|
8997
9004
|
ComAtprotoRepoListRecords: () => listRecords_exports,
|
|
8998
9005
|
ComAtprotoRepoNS: () => ComAtprotoRepoNS,
|
|
8999
9006
|
ComAtprotoRepoPutRecord: () => putRecord_exports,
|
|
9000
9007
|
ComAtprotoRepoStrongRef: () => strongRef_exports,
|
|
9001
9008
|
ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
|
|
9009
|
+
ComAtprotoServerActivateAccount: () => activateAccount_exports,
|
|
9010
|
+
ComAtprotoServerCheckAccountStatus: () => checkAccountStatus_exports,
|
|
9002
9011
|
ComAtprotoServerConfirmEmail: () => confirmEmail_exports,
|
|
9003
9012
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
9004
9013
|
ComAtprotoServerCreateAppPassword: () => createAppPassword_exports,
|
|
9005
9014
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
9006
9015
|
ComAtprotoServerCreateInviteCodes: () => createInviteCodes_exports,
|
|
9007
9016
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
9017
|
+
ComAtprotoServerDeactivateAccount: () => deactivateAccount_exports,
|
|
9008
9018
|
ComAtprotoServerDefs: () => defs_exports4,
|
|
9009
9019
|
ComAtprotoServerDeleteAccount: () => deleteAccount_exports2,
|
|
9010
9020
|
ComAtprotoServerDeleteSession: () => deleteSession_exports,
|
|
9011
9021
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
9012
9022
|
ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
|
|
9023
|
+
ComAtprotoServerGetServiceAuth: () => getServiceAuth_exports,
|
|
9013
9024
|
ComAtprotoServerGetSession: () => getSession_exports,
|
|
9014
9025
|
ComAtprotoServerListAppPasswords: () => listAppPasswords_exports,
|
|
9015
9026
|
ComAtprotoServerNS: () => ComAtprotoServerNS,
|
|
@@ -9037,11 +9048,8 @@ __export(src_exports2, {
|
|
|
9037
9048
|
ComAtprotoSyncSubscribeRepos: () => subscribeRepos_exports,
|
|
9038
9049
|
ComAtprotoTempCheckSignupQueue: () => checkSignupQueue_exports,
|
|
9039
9050
|
ComAtprotoTempFetchLabels: () => fetchLabels_exports,
|
|
9040
|
-
ComAtprotoTempImportRepo: () => importRepo_exports,
|
|
9041
9051
|
ComAtprotoTempNS: () => ComAtprotoTempNS,
|
|
9042
|
-
ComAtprotoTempPushBlob: () => pushBlob_exports,
|
|
9043
9052
|
ComAtprotoTempRequestPhoneVerification: () => requestPhoneVerification_exports,
|
|
9044
|
-
ComAtprotoTempTransferAccount: () => transferAccount_exports,
|
|
9045
9053
|
ComNS: () => ComNS,
|
|
9046
9054
|
FollowRecord: () => FollowRecord,
|
|
9047
9055
|
GeneratorRecord: () => GeneratorRecord,
|
|
@@ -17513,6 +17521,32 @@ var schemaDict = {
|
|
|
17513
17521
|
}
|
|
17514
17522
|
}
|
|
17515
17523
|
},
|
|
17524
|
+
ComAtprotoAdminUpdateAccountPassword: {
|
|
17525
|
+
lexicon: 1,
|
|
17526
|
+
id: "com.atproto.admin.updateAccountPassword",
|
|
17527
|
+
defs: {
|
|
17528
|
+
main: {
|
|
17529
|
+
type: "procedure",
|
|
17530
|
+
description: "Update the password for a user account as an administrator.",
|
|
17531
|
+
input: {
|
|
17532
|
+
encoding: "application/json",
|
|
17533
|
+
schema: {
|
|
17534
|
+
type: "object",
|
|
17535
|
+
required: ["did", "password"],
|
|
17536
|
+
properties: {
|
|
17537
|
+
did: {
|
|
17538
|
+
type: "string",
|
|
17539
|
+
format: "did"
|
|
17540
|
+
},
|
|
17541
|
+
password: {
|
|
17542
|
+
type: "string"
|
|
17543
|
+
}
|
|
17544
|
+
}
|
|
17545
|
+
}
|
|
17546
|
+
}
|
|
17547
|
+
}
|
|
17548
|
+
}
|
|
17549
|
+
},
|
|
17516
17550
|
ComAtprotoAdminUpdateCommunicationTemplate: {
|
|
17517
17551
|
lexicon: 1,
|
|
17518
17552
|
id: "com.atproto.admin.updateCommunicationTemplate",
|
|
@@ -17615,6 +17649,53 @@ var schemaDict = {
|
|
|
17615
17649
|
}
|
|
17616
17650
|
}
|
|
17617
17651
|
},
|
|
17652
|
+
ComAtprotoIdentityGetRecommendedDidCredentials: {
|
|
17653
|
+
lexicon: 1,
|
|
17654
|
+
id: "com.atproto.identity.getRecommendedDidCredentials",
|
|
17655
|
+
defs: {
|
|
17656
|
+
main: {
|
|
17657
|
+
type: "query",
|
|
17658
|
+
description: "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
|
|
17659
|
+
output: {
|
|
17660
|
+
encoding: "application/json",
|
|
17661
|
+
schema: {
|
|
17662
|
+
type: "object",
|
|
17663
|
+
properties: {
|
|
17664
|
+
rotationKeys: {
|
|
17665
|
+
description: "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
|
|
17666
|
+
type: "array",
|
|
17667
|
+
items: {
|
|
17668
|
+
type: "string"
|
|
17669
|
+
}
|
|
17670
|
+
},
|
|
17671
|
+
alsoKnownAs: {
|
|
17672
|
+
type: "array",
|
|
17673
|
+
items: {
|
|
17674
|
+
type: "string"
|
|
17675
|
+
}
|
|
17676
|
+
},
|
|
17677
|
+
verificationMethods: {
|
|
17678
|
+
type: "unknown"
|
|
17679
|
+
},
|
|
17680
|
+
services: {
|
|
17681
|
+
type: "unknown"
|
|
17682
|
+
}
|
|
17683
|
+
}
|
|
17684
|
+
}
|
|
17685
|
+
}
|
|
17686
|
+
}
|
|
17687
|
+
}
|
|
17688
|
+
},
|
|
17689
|
+
ComAtprotoIdentityRequestPlcOperationSignature: {
|
|
17690
|
+
lexicon: 1,
|
|
17691
|
+
id: "com.atproto.identity.requestPlcOperationSignature",
|
|
17692
|
+
defs: {
|
|
17693
|
+
main: {
|
|
17694
|
+
type: "procedure",
|
|
17695
|
+
description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
|
|
17696
|
+
}
|
|
17697
|
+
}
|
|
17698
|
+
},
|
|
17618
17699
|
ComAtprotoIdentityResolveHandle: {
|
|
17619
17700
|
lexicon: 1,
|
|
17620
17701
|
id: "com.atproto.identity.resolveHandle",
|
|
@@ -17649,6 +17730,81 @@ var schemaDict = {
|
|
|
17649
17730
|
}
|
|
17650
17731
|
}
|
|
17651
17732
|
},
|
|
17733
|
+
ComAtprotoIdentitySignPlcOperation: {
|
|
17734
|
+
lexicon: 1,
|
|
17735
|
+
id: "com.atproto.identity.signPlcOperation",
|
|
17736
|
+
defs: {
|
|
17737
|
+
main: {
|
|
17738
|
+
type: "procedure",
|
|
17739
|
+
description: "Signs a PLC operation to update some value(s) in the requesting DID's document.",
|
|
17740
|
+
input: {
|
|
17741
|
+
encoding: "application/json",
|
|
17742
|
+
schema: {
|
|
17743
|
+
type: "object",
|
|
17744
|
+
properties: {
|
|
17745
|
+
token: {
|
|
17746
|
+
description: "A token received through com.atproto.identity.requestPlcOperationSignature",
|
|
17747
|
+
type: "string"
|
|
17748
|
+
},
|
|
17749
|
+
rotationKeys: {
|
|
17750
|
+
type: "array",
|
|
17751
|
+
items: {
|
|
17752
|
+
type: "string"
|
|
17753
|
+
}
|
|
17754
|
+
},
|
|
17755
|
+
alsoKnownAs: {
|
|
17756
|
+
type: "array",
|
|
17757
|
+
items: {
|
|
17758
|
+
type: "string"
|
|
17759
|
+
}
|
|
17760
|
+
},
|
|
17761
|
+
verificationMethods: {
|
|
17762
|
+
type: "unknown"
|
|
17763
|
+
},
|
|
17764
|
+
services: {
|
|
17765
|
+
type: "unknown"
|
|
17766
|
+
}
|
|
17767
|
+
}
|
|
17768
|
+
}
|
|
17769
|
+
},
|
|
17770
|
+
output: {
|
|
17771
|
+
encoding: "application/json",
|
|
17772
|
+
schema: {
|
|
17773
|
+
type: "object",
|
|
17774
|
+
required: ["operation"],
|
|
17775
|
+
properties: {
|
|
17776
|
+
operation: {
|
|
17777
|
+
type: "unknown",
|
|
17778
|
+
description: "A signed DID PLC operation."
|
|
17779
|
+
}
|
|
17780
|
+
}
|
|
17781
|
+
}
|
|
17782
|
+
}
|
|
17783
|
+
}
|
|
17784
|
+
}
|
|
17785
|
+
},
|
|
17786
|
+
ComAtprotoIdentitySubmitPlcOperation: {
|
|
17787
|
+
lexicon: 1,
|
|
17788
|
+
id: "com.atproto.identity.submitPlcOperation",
|
|
17789
|
+
defs: {
|
|
17790
|
+
main: {
|
|
17791
|
+
type: "procedure",
|
|
17792
|
+
description: "Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry",
|
|
17793
|
+
input: {
|
|
17794
|
+
encoding: "application/json",
|
|
17795
|
+
schema: {
|
|
17796
|
+
type: "object",
|
|
17797
|
+
required: ["operation"],
|
|
17798
|
+
properties: {
|
|
17799
|
+
operation: {
|
|
17800
|
+
type: "unknown"
|
|
17801
|
+
}
|
|
17802
|
+
}
|
|
17803
|
+
}
|
|
17804
|
+
}
|
|
17805
|
+
}
|
|
17806
|
+
}
|
|
17807
|
+
},
|
|
17652
17808
|
ComAtprotoIdentityUpdateHandle: {
|
|
17653
17809
|
lexicon: 1,
|
|
17654
17810
|
id: "com.atproto.identity.updateHandle",
|
|
@@ -18321,6 +18477,76 @@ var schemaDict = {
|
|
|
18321
18477
|
}
|
|
18322
18478
|
}
|
|
18323
18479
|
},
|
|
18480
|
+
ComAtprotoRepoImportRepo: {
|
|
18481
|
+
lexicon: 1,
|
|
18482
|
+
id: "com.atproto.repo.importRepo",
|
|
18483
|
+
defs: {
|
|
18484
|
+
main: {
|
|
18485
|
+
type: "procedure",
|
|
18486
|
+
description: "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
|
|
18487
|
+
input: {
|
|
18488
|
+
encoding: "application/vnd.ipld.car"
|
|
18489
|
+
}
|
|
18490
|
+
}
|
|
18491
|
+
}
|
|
18492
|
+
},
|
|
18493
|
+
ComAtprotoRepoListMissingBlobs: {
|
|
18494
|
+
lexicon: 1,
|
|
18495
|
+
id: "com.atproto.repo.listMissingBlobs",
|
|
18496
|
+
defs: {
|
|
18497
|
+
main: {
|
|
18498
|
+
type: "query",
|
|
18499
|
+
description: "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
|
|
18500
|
+
parameters: {
|
|
18501
|
+
type: "params",
|
|
18502
|
+
properties: {
|
|
18503
|
+
limit: {
|
|
18504
|
+
type: "integer",
|
|
18505
|
+
minimum: 1,
|
|
18506
|
+
maximum: 1e3,
|
|
18507
|
+
default: 500
|
|
18508
|
+
},
|
|
18509
|
+
cursor: {
|
|
18510
|
+
type: "string"
|
|
18511
|
+
}
|
|
18512
|
+
}
|
|
18513
|
+
},
|
|
18514
|
+
output: {
|
|
18515
|
+
encoding: "application/json",
|
|
18516
|
+
schema: {
|
|
18517
|
+
type: "object",
|
|
18518
|
+
required: ["blobs"],
|
|
18519
|
+
properties: {
|
|
18520
|
+
cursor: {
|
|
18521
|
+
type: "string"
|
|
18522
|
+
},
|
|
18523
|
+
blobs: {
|
|
18524
|
+
type: "array",
|
|
18525
|
+
items: {
|
|
18526
|
+
type: "ref",
|
|
18527
|
+
ref: "lex:com.atproto.repo.listMissingBlobs#recordBlob"
|
|
18528
|
+
}
|
|
18529
|
+
}
|
|
18530
|
+
}
|
|
18531
|
+
}
|
|
18532
|
+
}
|
|
18533
|
+
},
|
|
18534
|
+
recordBlob: {
|
|
18535
|
+
type: "object",
|
|
18536
|
+
required: ["cid", "recordUri"],
|
|
18537
|
+
properties: {
|
|
18538
|
+
cid: {
|
|
18539
|
+
type: "string",
|
|
18540
|
+
format: "cid"
|
|
18541
|
+
},
|
|
18542
|
+
recordUri: {
|
|
18543
|
+
type: "string",
|
|
18544
|
+
format: "at-uri"
|
|
18545
|
+
}
|
|
18546
|
+
}
|
|
18547
|
+
}
|
|
18548
|
+
}
|
|
18549
|
+
},
|
|
18324
18550
|
ComAtprotoRepoListRecords: {
|
|
18325
18551
|
lexicon: 1,
|
|
18326
18552
|
id: "com.atproto.repo.listRecords",
|
|
@@ -18527,6 +18753,73 @@ var schemaDict = {
|
|
|
18527
18753
|
}
|
|
18528
18754
|
}
|
|
18529
18755
|
},
|
|
18756
|
+
ComAtprotoServerActivateAccount: {
|
|
18757
|
+
lexicon: 1,
|
|
18758
|
+
id: "com.atproto.server.activateAccount",
|
|
18759
|
+
defs: {
|
|
18760
|
+
main: {
|
|
18761
|
+
type: "procedure",
|
|
18762
|
+
description: "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
|
|
18763
|
+
}
|
|
18764
|
+
}
|
|
18765
|
+
},
|
|
18766
|
+
ComAtprotoServerCheckAccountStatus: {
|
|
18767
|
+
lexicon: 1,
|
|
18768
|
+
id: "com.atproto.server.checkAccountStatus",
|
|
18769
|
+
defs: {
|
|
18770
|
+
main: {
|
|
18771
|
+
type: "query",
|
|
18772
|
+
description: "Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.",
|
|
18773
|
+
output: {
|
|
18774
|
+
encoding: "application/json",
|
|
18775
|
+
schema: {
|
|
18776
|
+
type: "object",
|
|
18777
|
+
required: [
|
|
18778
|
+
"activated",
|
|
18779
|
+
"validDid",
|
|
18780
|
+
"repoCommit",
|
|
18781
|
+
"repoRev",
|
|
18782
|
+
"repoBlocks",
|
|
18783
|
+
"indexedRecords",
|
|
18784
|
+
"privateStateValues",
|
|
18785
|
+
"expectedBlobs",
|
|
18786
|
+
"importedBlobs"
|
|
18787
|
+
],
|
|
18788
|
+
properties: {
|
|
18789
|
+
activated: {
|
|
18790
|
+
type: "boolean"
|
|
18791
|
+
},
|
|
18792
|
+
validDid: {
|
|
18793
|
+
type: "boolean"
|
|
18794
|
+
},
|
|
18795
|
+
repoCommit: {
|
|
18796
|
+
type: "string",
|
|
18797
|
+
format: "cid"
|
|
18798
|
+
},
|
|
18799
|
+
repoRev: {
|
|
18800
|
+
type: "string"
|
|
18801
|
+
},
|
|
18802
|
+
repoBlocks: {
|
|
18803
|
+
type: "integer"
|
|
18804
|
+
},
|
|
18805
|
+
indexedRecords: {
|
|
18806
|
+
type: "integer"
|
|
18807
|
+
},
|
|
18808
|
+
privateStateValues: {
|
|
18809
|
+
type: "integer"
|
|
18810
|
+
},
|
|
18811
|
+
expectedBlobs: {
|
|
18812
|
+
type: "integer"
|
|
18813
|
+
},
|
|
18814
|
+
importedBlobs: {
|
|
18815
|
+
type: "integer"
|
|
18816
|
+
}
|
|
18817
|
+
}
|
|
18818
|
+
}
|
|
18819
|
+
}
|
|
18820
|
+
}
|
|
18821
|
+
}
|
|
18822
|
+
},
|
|
18530
18823
|
ComAtprotoServerConfirmEmail: {
|
|
18531
18824
|
lexicon: 1,
|
|
18532
18825
|
id: "com.atproto.server.confirmEmail",
|
|
@@ -18887,6 +19180,29 @@ var schemaDict = {
|
|
|
18887
19180
|
}
|
|
18888
19181
|
}
|
|
18889
19182
|
},
|
|
19183
|
+
ComAtprotoServerDeactivateAccount: {
|
|
19184
|
+
lexicon: 1,
|
|
19185
|
+
id: "com.atproto.server.deactivateAccount",
|
|
19186
|
+
defs: {
|
|
19187
|
+
main: {
|
|
19188
|
+
type: "procedure",
|
|
19189
|
+
description: "Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.",
|
|
19190
|
+
input: {
|
|
19191
|
+
encoding: "application/json",
|
|
19192
|
+
schema: {
|
|
19193
|
+
type: "object",
|
|
19194
|
+
properties: {
|
|
19195
|
+
deleteAfter: {
|
|
19196
|
+
type: "string",
|
|
19197
|
+
format: "datetime",
|
|
19198
|
+
description: "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
|
|
19199
|
+
}
|
|
19200
|
+
}
|
|
19201
|
+
}
|
|
19202
|
+
}
|
|
19203
|
+
}
|
|
19204
|
+
}
|
|
19205
|
+
},
|
|
18890
19206
|
ComAtprotoServerDefs: {
|
|
18891
19207
|
lexicon: 1,
|
|
18892
19208
|
id: "com.atproto.server.defs",
|
|
@@ -19005,7 +19321,7 @@ var schemaDict = {
|
|
|
19005
19321
|
encoding: "application/json",
|
|
19006
19322
|
schema: {
|
|
19007
19323
|
type: "object",
|
|
19008
|
-
required: ["availableUserDomains"],
|
|
19324
|
+
required: ["did", "availableUserDomains"],
|
|
19009
19325
|
properties: {
|
|
19010
19326
|
inviteCodeRequired: {
|
|
19011
19327
|
type: "boolean",
|
|
@@ -19026,6 +19342,10 @@ var schemaDict = {
|
|
|
19026
19342
|
type: "ref",
|
|
19027
19343
|
description: "URLs of service policy documents.",
|
|
19028
19344
|
ref: "lex:com.atproto.server.describeServer#links"
|
|
19345
|
+
},
|
|
19346
|
+
did: {
|
|
19347
|
+
type: "string",
|
|
19348
|
+
format: "did"
|
|
19029
19349
|
}
|
|
19030
19350
|
}
|
|
19031
19351
|
}
|
|
@@ -19089,6 +19409,39 @@ var schemaDict = {
|
|
|
19089
19409
|
}
|
|
19090
19410
|
}
|
|
19091
19411
|
},
|
|
19412
|
+
ComAtprotoServerGetServiceAuth: {
|
|
19413
|
+
lexicon: 1,
|
|
19414
|
+
id: "com.atproto.server.getServiceAuth",
|
|
19415
|
+
defs: {
|
|
19416
|
+
main: {
|
|
19417
|
+
type: "query",
|
|
19418
|
+
description: "Get a signed token on behalf of the requesting DID for the requested service.",
|
|
19419
|
+
parameters: {
|
|
19420
|
+
type: "params",
|
|
19421
|
+
required: ["aud"],
|
|
19422
|
+
properties: {
|
|
19423
|
+
aud: {
|
|
19424
|
+
type: "string",
|
|
19425
|
+
format: "did",
|
|
19426
|
+
description: "The DID of the service that the token will be used to authenticate with"
|
|
19427
|
+
}
|
|
19428
|
+
}
|
|
19429
|
+
},
|
|
19430
|
+
output: {
|
|
19431
|
+
encoding: "application/json",
|
|
19432
|
+
schema: {
|
|
19433
|
+
type: "object",
|
|
19434
|
+
required: ["token"],
|
|
19435
|
+
properties: {
|
|
19436
|
+
token: {
|
|
19437
|
+
type: "string"
|
|
19438
|
+
}
|
|
19439
|
+
}
|
|
19440
|
+
}
|
|
19441
|
+
}
|
|
19442
|
+
}
|
|
19443
|
+
}
|
|
19444
|
+
},
|
|
19092
19445
|
ComAtprotoServerGetSession: {
|
|
19093
19446
|
lexicon: 1,
|
|
19094
19447
|
id: "com.atproto.server.getSession",
|
|
@@ -19813,6 +20166,7 @@ var schemaDict = {
|
|
|
19813
20166
|
type: "union",
|
|
19814
20167
|
refs: [
|
|
19815
20168
|
"lex:com.atproto.sync.subscribeRepos#commit",
|
|
20169
|
+
"lex:com.atproto.sync.subscribeRepos#identity",
|
|
19816
20170
|
"lex:com.atproto.sync.subscribeRepos#handle",
|
|
19817
20171
|
"lex:com.atproto.sync.subscribeRepos#migrate",
|
|
19818
20172
|
"lex:com.atproto.sync.subscribeRepos#tombstone",
|
|
@@ -19909,9 +20263,27 @@ var schemaDict = {
|
|
|
19909
20263
|
}
|
|
19910
20264
|
}
|
|
19911
20265
|
},
|
|
20266
|
+
identity: {
|
|
20267
|
+
type: "object",
|
|
20268
|
+
description: "Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",
|
|
20269
|
+
required: ["seq", "did", "time"],
|
|
20270
|
+
properties: {
|
|
20271
|
+
seq: {
|
|
20272
|
+
type: "integer"
|
|
20273
|
+
},
|
|
20274
|
+
did: {
|
|
20275
|
+
type: "string",
|
|
20276
|
+
format: "did"
|
|
20277
|
+
},
|
|
20278
|
+
time: {
|
|
20279
|
+
type: "string",
|
|
20280
|
+
format: "datetime"
|
|
20281
|
+
}
|
|
20282
|
+
}
|
|
20283
|
+
},
|
|
19912
20284
|
handle: {
|
|
19913
20285
|
type: "object",
|
|
19914
|
-
description: "Represents an update of the account's handle, or transition to/from invalid state.",
|
|
20286
|
+
description: "Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
|
|
19915
20287
|
required: ["seq", "did", "handle", "time"],
|
|
19916
20288
|
properties: {
|
|
19917
20289
|
seq: {
|
|
@@ -19933,7 +20305,7 @@ var schemaDict = {
|
|
|
19933
20305
|
},
|
|
19934
20306
|
migrate: {
|
|
19935
20307
|
type: "object",
|
|
19936
|
-
description: "Represents an account moving from one PDS instance to another. NOTE: not implemented;
|
|
20308
|
+
description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead",
|
|
19937
20309
|
required: ["seq", "did", "migrateTo", "time"],
|
|
19938
20310
|
nullable: ["migrateTo"],
|
|
19939
20311
|
properties: {
|
|
@@ -19955,7 +20327,7 @@ var schemaDict = {
|
|
|
19955
20327
|
},
|
|
19956
20328
|
tombstone: {
|
|
19957
20329
|
type: "object",
|
|
19958
|
-
description: "Indicates that an account has been deleted.",
|
|
20330
|
+
description: "Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event",
|
|
19959
20331
|
required: ["seq", "did", "time"],
|
|
19960
20332
|
properties: {
|
|
19961
20333
|
seq: {
|
|
@@ -20073,57 +20445,6 @@ var schemaDict = {
|
|
|
20073
20445
|
}
|
|
20074
20446
|
}
|
|
20075
20447
|
},
|
|
20076
|
-
ComAtprotoTempImportRepo: {
|
|
20077
|
-
lexicon: 1,
|
|
20078
|
-
id: "com.atproto.temp.importRepo",
|
|
20079
|
-
defs: {
|
|
20080
|
-
main: {
|
|
20081
|
-
type: "procedure",
|
|
20082
|
-
description: "Gets the did's repo, optionally catching up from a specific revision.",
|
|
20083
|
-
parameters: {
|
|
20084
|
-
type: "params",
|
|
20085
|
-
required: ["did"],
|
|
20086
|
-
properties: {
|
|
20087
|
-
did: {
|
|
20088
|
-
type: "string",
|
|
20089
|
-
format: "did",
|
|
20090
|
-
description: "The DID of the repo."
|
|
20091
|
-
}
|
|
20092
|
-
}
|
|
20093
|
-
},
|
|
20094
|
-
input: {
|
|
20095
|
-
encoding: "application/vnd.ipld.car"
|
|
20096
|
-
},
|
|
20097
|
-
output: {
|
|
20098
|
-
encoding: "text/plain"
|
|
20099
|
-
}
|
|
20100
|
-
}
|
|
20101
|
-
}
|
|
20102
|
-
},
|
|
20103
|
-
ComAtprotoTempPushBlob: {
|
|
20104
|
-
lexicon: 1,
|
|
20105
|
-
id: "com.atproto.temp.pushBlob",
|
|
20106
|
-
defs: {
|
|
20107
|
-
main: {
|
|
20108
|
-
type: "procedure",
|
|
20109
|
-
description: "Gets the did's repo, optionally catching up from a specific revision.",
|
|
20110
|
-
parameters: {
|
|
20111
|
-
type: "params",
|
|
20112
|
-
required: ["did"],
|
|
20113
|
-
properties: {
|
|
20114
|
-
did: {
|
|
20115
|
-
type: "string",
|
|
20116
|
-
format: "did",
|
|
20117
|
-
description: "The DID of the repo."
|
|
20118
|
-
}
|
|
20119
|
-
}
|
|
20120
|
-
},
|
|
20121
|
-
input: {
|
|
20122
|
-
encoding: "*/*"
|
|
20123
|
-
}
|
|
20124
|
-
}
|
|
20125
|
-
}
|
|
20126
|
-
},
|
|
20127
20448
|
ComAtprotoTempRequestPhoneVerification: {
|
|
20128
20449
|
lexicon: 1,
|
|
20129
20450
|
id: "com.atproto.temp.requestPhoneVerification",
|
|
@@ -20146,82 +20467,6 @@ var schemaDict = {
|
|
|
20146
20467
|
}
|
|
20147
20468
|
}
|
|
20148
20469
|
},
|
|
20149
|
-
ComAtprotoTempTransferAccount: {
|
|
20150
|
-
lexicon: 1,
|
|
20151
|
-
id: "com.atproto.temp.transferAccount",
|
|
20152
|
-
defs: {
|
|
20153
|
-
main: {
|
|
20154
|
-
type: "procedure",
|
|
20155
|
-
description: "Transfer an account. NOTE: temporary method, necessarily how account migration will be implemented.",
|
|
20156
|
-
input: {
|
|
20157
|
-
encoding: "application/json",
|
|
20158
|
-
schema: {
|
|
20159
|
-
type: "object",
|
|
20160
|
-
required: ["handle", "did", "plcOp"],
|
|
20161
|
-
properties: {
|
|
20162
|
-
handle: {
|
|
20163
|
-
type: "string",
|
|
20164
|
-
format: "handle"
|
|
20165
|
-
},
|
|
20166
|
-
did: {
|
|
20167
|
-
type: "string",
|
|
20168
|
-
format: "did"
|
|
20169
|
-
},
|
|
20170
|
-
plcOp: {
|
|
20171
|
-
type: "unknown"
|
|
20172
|
-
}
|
|
20173
|
-
}
|
|
20174
|
-
}
|
|
20175
|
-
},
|
|
20176
|
-
output: {
|
|
20177
|
-
encoding: "application/json",
|
|
20178
|
-
schema: {
|
|
20179
|
-
type: "object",
|
|
20180
|
-
required: ["accessJwt", "refreshJwt", "handle", "did"],
|
|
20181
|
-
properties: {
|
|
20182
|
-
accessJwt: {
|
|
20183
|
-
type: "string"
|
|
20184
|
-
},
|
|
20185
|
-
refreshJwt: {
|
|
20186
|
-
type: "string"
|
|
20187
|
-
},
|
|
20188
|
-
handle: {
|
|
20189
|
-
type: "string",
|
|
20190
|
-
format: "handle"
|
|
20191
|
-
},
|
|
20192
|
-
did: {
|
|
20193
|
-
type: "string",
|
|
20194
|
-
format: "did"
|
|
20195
|
-
}
|
|
20196
|
-
}
|
|
20197
|
-
}
|
|
20198
|
-
},
|
|
20199
|
-
errors: [
|
|
20200
|
-
{
|
|
20201
|
-
name: "InvalidHandle"
|
|
20202
|
-
},
|
|
20203
|
-
{
|
|
20204
|
-
name: "InvalidPassword"
|
|
20205
|
-
},
|
|
20206
|
-
{
|
|
20207
|
-
name: "InvalidInviteCode"
|
|
20208
|
-
},
|
|
20209
|
-
{
|
|
20210
|
-
name: "HandleNotAvailable"
|
|
20211
|
-
},
|
|
20212
|
-
{
|
|
20213
|
-
name: "UnsupportedDomain"
|
|
20214
|
-
},
|
|
20215
|
-
{
|
|
20216
|
-
name: "UnresolvableDid"
|
|
20217
|
-
},
|
|
20218
|
-
{
|
|
20219
|
-
name: "IncompatibleDidDoc"
|
|
20220
|
-
}
|
|
20221
|
-
]
|
|
20222
|
-
}
|
|
20223
|
-
}
|
|
20224
|
-
},
|
|
20225
20470
|
AppBskyActorDefs: {
|
|
20226
20471
|
lexicon: 1,
|
|
20227
20472
|
id: "app.bsky.actor.defs",
|
|
@@ -20398,7 +20643,9 @@ var schemaDict = {
|
|
|
20398
20643
|
"lex:app.bsky.actor.defs#personalDetailsPref",
|
|
20399
20644
|
"lex:app.bsky.actor.defs#feedViewPref",
|
|
20400
20645
|
"lex:app.bsky.actor.defs#threadViewPref",
|
|
20401
|
-
"lex:app.bsky.actor.defs#interestsPref"
|
|
20646
|
+
"lex:app.bsky.actor.defs#interestsPref",
|
|
20647
|
+
"lex:app.bsky.actor.defs#mutedWordsPref",
|
|
20648
|
+
"lex:app.bsky.actor.defs#hiddenPostsPref"
|
|
20402
20649
|
]
|
|
20403
20650
|
}
|
|
20404
20651
|
},
|
|
@@ -20502,19 +20749,74 @@ var schemaDict = {
|
|
|
20502
20749
|
}
|
|
20503
20750
|
}
|
|
20504
20751
|
},
|
|
20505
|
-
interestsPref: {
|
|
20752
|
+
interestsPref: {
|
|
20753
|
+
type: "object",
|
|
20754
|
+
required: ["tags"],
|
|
20755
|
+
properties: {
|
|
20756
|
+
tags: {
|
|
20757
|
+
type: "array",
|
|
20758
|
+
maxLength: 100,
|
|
20759
|
+
items: {
|
|
20760
|
+
type: "string",
|
|
20761
|
+
maxLength: 640,
|
|
20762
|
+
maxGraphemes: 64
|
|
20763
|
+
},
|
|
20764
|
+
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
|
20765
|
+
}
|
|
20766
|
+
}
|
|
20767
|
+
},
|
|
20768
|
+
mutedWordTarget: {
|
|
20769
|
+
type: "string",
|
|
20770
|
+
knownValues: ["content", "tag"],
|
|
20771
|
+
maxLength: 640,
|
|
20772
|
+
maxGraphemes: 64
|
|
20773
|
+
},
|
|
20774
|
+
mutedWord: {
|
|
20775
|
+
type: "object",
|
|
20776
|
+
description: "A word that the account owner has muted.",
|
|
20777
|
+
required: ["value", "targets"],
|
|
20778
|
+
properties: {
|
|
20779
|
+
value: {
|
|
20780
|
+
type: "string",
|
|
20781
|
+
description: "The muted word itself.",
|
|
20782
|
+
maxLength: 1e4,
|
|
20783
|
+
maxGraphemes: 1e3
|
|
20784
|
+
},
|
|
20785
|
+
targets: {
|
|
20786
|
+
type: "array",
|
|
20787
|
+
description: "The intended targets of the muted word.",
|
|
20788
|
+
items: {
|
|
20789
|
+
type: "ref",
|
|
20790
|
+
ref: "lex:app.bsky.actor.defs#mutedWordTarget"
|
|
20791
|
+
}
|
|
20792
|
+
}
|
|
20793
|
+
}
|
|
20794
|
+
},
|
|
20795
|
+
mutedWordsPref: {
|
|
20796
|
+
type: "object",
|
|
20797
|
+
required: ["items"],
|
|
20798
|
+
properties: {
|
|
20799
|
+
items: {
|
|
20800
|
+
type: "array",
|
|
20801
|
+
items: {
|
|
20802
|
+
type: "ref",
|
|
20803
|
+
ref: "lex:app.bsky.actor.defs#mutedWord"
|
|
20804
|
+
},
|
|
20805
|
+
description: "A list of words the account owner has muted."
|
|
20806
|
+
}
|
|
20807
|
+
}
|
|
20808
|
+
},
|
|
20809
|
+
hiddenPostsPref: {
|
|
20506
20810
|
type: "object",
|
|
20507
|
-
required: ["
|
|
20811
|
+
required: ["items"],
|
|
20508
20812
|
properties: {
|
|
20509
|
-
|
|
20813
|
+
items: {
|
|
20510
20814
|
type: "array",
|
|
20511
|
-
maxLength: 100,
|
|
20512
20815
|
items: {
|
|
20513
20816
|
type: "string",
|
|
20514
|
-
|
|
20515
|
-
maxGraphemes: 64
|
|
20817
|
+
format: "at-uri"
|
|
20516
20818
|
},
|
|
20517
|
-
description: "A list of
|
|
20819
|
+
description: "A list of URIs of posts the account owner has hidden."
|
|
20518
20820
|
}
|
|
20519
20821
|
}
|
|
20520
20822
|
}
|
|
@@ -22383,7 +22685,7 @@ var schemaDict = {
|
|
|
22383
22685
|
},
|
|
22384
22686
|
tags: {
|
|
22385
22687
|
type: "array",
|
|
22386
|
-
description: "Additional
|
|
22688
|
+
description: "Additional hashtags, in addition to any included in post text and facets.",
|
|
22387
22689
|
maxLength: 8,
|
|
22388
22690
|
items: {
|
|
22389
22691
|
type: "string",
|
|
@@ -24255,12 +24557,23 @@ function toKnownErr21(e) {
|
|
|
24255
24557
|
return e;
|
|
24256
24558
|
}
|
|
24257
24559
|
|
|
24560
|
+
// src/client/types/com/atproto/admin/updateAccountPassword.ts
|
|
24561
|
+
var updateAccountPassword_exports = {};
|
|
24562
|
+
__export(updateAccountPassword_exports, {
|
|
24563
|
+
toKnownErr: () => toKnownErr22
|
|
24564
|
+
});
|
|
24565
|
+
function toKnownErr22(e) {
|
|
24566
|
+
if (e instanceof XRPCError) {
|
|
24567
|
+
}
|
|
24568
|
+
return e;
|
|
24569
|
+
}
|
|
24570
|
+
|
|
24258
24571
|
// src/client/types/com/atproto/admin/updateCommunicationTemplate.ts
|
|
24259
24572
|
var updateCommunicationTemplate_exports = {};
|
|
24260
24573
|
__export(updateCommunicationTemplate_exports, {
|
|
24261
|
-
toKnownErr: () =>
|
|
24574
|
+
toKnownErr: () => toKnownErr23
|
|
24262
24575
|
});
|
|
24263
|
-
function
|
|
24576
|
+
function toKnownErr23(e) {
|
|
24264
24577
|
if (e instanceof XRPCError) {
|
|
24265
24578
|
}
|
|
24266
24579
|
return e;
|
|
@@ -24269,9 +24582,31 @@ function toKnownErr22(e) {
|
|
|
24269
24582
|
// src/client/types/com/atproto/admin/updateSubjectStatus.ts
|
|
24270
24583
|
var updateSubjectStatus_exports = {};
|
|
24271
24584
|
__export(updateSubjectStatus_exports, {
|
|
24272
|
-
toKnownErr: () =>
|
|
24585
|
+
toKnownErr: () => toKnownErr24
|
|
24273
24586
|
});
|
|
24274
|
-
function
|
|
24587
|
+
function toKnownErr24(e) {
|
|
24588
|
+
if (e instanceof XRPCError) {
|
|
24589
|
+
}
|
|
24590
|
+
return e;
|
|
24591
|
+
}
|
|
24592
|
+
|
|
24593
|
+
// src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts
|
|
24594
|
+
var getRecommendedDidCredentials_exports = {};
|
|
24595
|
+
__export(getRecommendedDidCredentials_exports, {
|
|
24596
|
+
toKnownErr: () => toKnownErr25
|
|
24597
|
+
});
|
|
24598
|
+
function toKnownErr25(e) {
|
|
24599
|
+
if (e instanceof XRPCError) {
|
|
24600
|
+
}
|
|
24601
|
+
return e;
|
|
24602
|
+
}
|
|
24603
|
+
|
|
24604
|
+
// src/client/types/com/atproto/identity/requestPlcOperationSignature.ts
|
|
24605
|
+
var requestPlcOperationSignature_exports = {};
|
|
24606
|
+
__export(requestPlcOperationSignature_exports, {
|
|
24607
|
+
toKnownErr: () => toKnownErr26
|
|
24608
|
+
});
|
|
24609
|
+
function toKnownErr26(e) {
|
|
24275
24610
|
if (e instanceof XRPCError) {
|
|
24276
24611
|
}
|
|
24277
24612
|
return e;
|
|
@@ -24280,9 +24615,31 @@ function toKnownErr23(e) {
|
|
|
24280
24615
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
24281
24616
|
var resolveHandle_exports = {};
|
|
24282
24617
|
__export(resolveHandle_exports, {
|
|
24283
|
-
toKnownErr: () =>
|
|
24618
|
+
toKnownErr: () => toKnownErr27
|
|
24284
24619
|
});
|
|
24285
|
-
function
|
|
24620
|
+
function toKnownErr27(e) {
|
|
24621
|
+
if (e instanceof XRPCError) {
|
|
24622
|
+
}
|
|
24623
|
+
return e;
|
|
24624
|
+
}
|
|
24625
|
+
|
|
24626
|
+
// src/client/types/com/atproto/identity/signPlcOperation.ts
|
|
24627
|
+
var signPlcOperation_exports = {};
|
|
24628
|
+
__export(signPlcOperation_exports, {
|
|
24629
|
+
toKnownErr: () => toKnownErr28
|
|
24630
|
+
});
|
|
24631
|
+
function toKnownErr28(e) {
|
|
24632
|
+
if (e instanceof XRPCError) {
|
|
24633
|
+
}
|
|
24634
|
+
return e;
|
|
24635
|
+
}
|
|
24636
|
+
|
|
24637
|
+
// src/client/types/com/atproto/identity/submitPlcOperation.ts
|
|
24638
|
+
var submitPlcOperation_exports = {};
|
|
24639
|
+
__export(submitPlcOperation_exports, {
|
|
24640
|
+
toKnownErr: () => toKnownErr29
|
|
24641
|
+
});
|
|
24642
|
+
function toKnownErr29(e) {
|
|
24286
24643
|
if (e instanceof XRPCError) {
|
|
24287
24644
|
}
|
|
24288
24645
|
return e;
|
|
@@ -24291,9 +24648,9 @@ function toKnownErr24(e) {
|
|
|
24291
24648
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
24292
24649
|
var updateHandle_exports = {};
|
|
24293
24650
|
__export(updateHandle_exports, {
|
|
24294
|
-
toKnownErr: () =>
|
|
24651
|
+
toKnownErr: () => toKnownErr30
|
|
24295
24652
|
});
|
|
24296
|
-
function
|
|
24653
|
+
function toKnownErr30(e) {
|
|
24297
24654
|
if (e instanceof XRPCError) {
|
|
24298
24655
|
}
|
|
24299
24656
|
return e;
|
|
@@ -24302,9 +24659,9 @@ function toKnownErr25(e) {
|
|
|
24302
24659
|
// src/client/types/com/atproto/label/queryLabels.ts
|
|
24303
24660
|
var queryLabels_exports = {};
|
|
24304
24661
|
__export(queryLabels_exports, {
|
|
24305
|
-
toKnownErr: () =>
|
|
24662
|
+
toKnownErr: () => toKnownErr31
|
|
24306
24663
|
});
|
|
24307
|
-
function
|
|
24664
|
+
function toKnownErr31(e) {
|
|
24308
24665
|
if (e instanceof XRPCError) {
|
|
24309
24666
|
}
|
|
24310
24667
|
return e;
|
|
@@ -24313,9 +24670,9 @@ function toKnownErr26(e) {
|
|
|
24313
24670
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
24314
24671
|
var createReport_exports = {};
|
|
24315
24672
|
__export(createReport_exports, {
|
|
24316
|
-
toKnownErr: () =>
|
|
24673
|
+
toKnownErr: () => toKnownErr32
|
|
24317
24674
|
});
|
|
24318
|
-
function
|
|
24675
|
+
function toKnownErr32(e) {
|
|
24319
24676
|
if (e instanceof XRPCError) {
|
|
24320
24677
|
}
|
|
24321
24678
|
return e;
|
|
@@ -24328,7 +24685,7 @@ __export(applyWrites_exports, {
|
|
|
24328
24685
|
isCreate: () => isCreate,
|
|
24329
24686
|
isDelete: () => isDelete,
|
|
24330
24687
|
isUpdate: () => isUpdate,
|
|
24331
|
-
toKnownErr: () =>
|
|
24688
|
+
toKnownErr: () => toKnownErr33,
|
|
24332
24689
|
validateCreate: () => validateCreate,
|
|
24333
24690
|
validateDelete: () => validateDelete,
|
|
24334
24691
|
validateUpdate: () => validateUpdate
|
|
@@ -24348,7 +24705,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
24348
24705
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24349
24706
|
}
|
|
24350
24707
|
};
|
|
24351
|
-
function
|
|
24708
|
+
function toKnownErr33(e) {
|
|
24352
24709
|
if (e instanceof XRPCError) {
|
|
24353
24710
|
if (e.error === "InvalidSwap")
|
|
24354
24711
|
return new InvalidSwapError(e);
|
|
@@ -24378,14 +24735,14 @@ function validateDelete(v) {
|
|
|
24378
24735
|
var createRecord_exports = {};
|
|
24379
24736
|
__export(createRecord_exports, {
|
|
24380
24737
|
InvalidSwapError: () => InvalidSwapError2,
|
|
24381
|
-
toKnownErr: () =>
|
|
24738
|
+
toKnownErr: () => toKnownErr34
|
|
24382
24739
|
});
|
|
24383
24740
|
var InvalidSwapError2 = class extends XRPCError {
|
|
24384
24741
|
constructor(src2) {
|
|
24385
24742
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24386
24743
|
}
|
|
24387
24744
|
};
|
|
24388
|
-
function
|
|
24745
|
+
function toKnownErr34(e) {
|
|
24389
24746
|
if (e instanceof XRPCError) {
|
|
24390
24747
|
if (e.error === "InvalidSwap")
|
|
24391
24748
|
return new InvalidSwapError2(e);
|
|
@@ -24397,14 +24754,14 @@ function toKnownErr29(e) {
|
|
|
24397
24754
|
var deleteRecord_exports = {};
|
|
24398
24755
|
__export(deleteRecord_exports, {
|
|
24399
24756
|
InvalidSwapError: () => InvalidSwapError3,
|
|
24400
|
-
toKnownErr: () =>
|
|
24757
|
+
toKnownErr: () => toKnownErr35
|
|
24401
24758
|
});
|
|
24402
24759
|
var InvalidSwapError3 = class extends XRPCError {
|
|
24403
24760
|
constructor(src2) {
|
|
24404
24761
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24405
24762
|
}
|
|
24406
24763
|
};
|
|
24407
|
-
function
|
|
24764
|
+
function toKnownErr35(e) {
|
|
24408
24765
|
if (e instanceof XRPCError) {
|
|
24409
24766
|
if (e.error === "InvalidSwap")
|
|
24410
24767
|
return new InvalidSwapError3(e);
|
|
@@ -24415,9 +24772,9 @@ function toKnownErr30(e) {
|
|
|
24415
24772
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
24416
24773
|
var describeRepo_exports = {};
|
|
24417
24774
|
__export(describeRepo_exports, {
|
|
24418
|
-
toKnownErr: () =>
|
|
24775
|
+
toKnownErr: () => toKnownErr36
|
|
24419
24776
|
});
|
|
24420
|
-
function
|
|
24777
|
+
function toKnownErr36(e) {
|
|
24421
24778
|
if (e instanceof XRPCError) {
|
|
24422
24779
|
}
|
|
24423
24780
|
return e;
|
|
@@ -24426,22 +24783,52 @@ function toKnownErr31(e) {
|
|
|
24426
24783
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
24427
24784
|
var getRecord_exports2 = {};
|
|
24428
24785
|
__export(getRecord_exports2, {
|
|
24429
|
-
toKnownErr: () =>
|
|
24786
|
+
toKnownErr: () => toKnownErr37
|
|
24430
24787
|
});
|
|
24431
|
-
function
|
|
24788
|
+
function toKnownErr37(e) {
|
|
24789
|
+
if (e instanceof XRPCError) {
|
|
24790
|
+
}
|
|
24791
|
+
return e;
|
|
24792
|
+
}
|
|
24793
|
+
|
|
24794
|
+
// src/client/types/com/atproto/repo/importRepo.ts
|
|
24795
|
+
var importRepo_exports = {};
|
|
24796
|
+
__export(importRepo_exports, {
|
|
24797
|
+
toKnownErr: () => toKnownErr38
|
|
24798
|
+
});
|
|
24799
|
+
function toKnownErr38(e) {
|
|
24800
|
+
if (e instanceof XRPCError) {
|
|
24801
|
+
}
|
|
24802
|
+
return e;
|
|
24803
|
+
}
|
|
24804
|
+
|
|
24805
|
+
// src/client/types/com/atproto/repo/listMissingBlobs.ts
|
|
24806
|
+
var listMissingBlobs_exports = {};
|
|
24807
|
+
__export(listMissingBlobs_exports, {
|
|
24808
|
+
isRecordBlob: () => isRecordBlob,
|
|
24809
|
+
toKnownErr: () => toKnownErr39,
|
|
24810
|
+
validateRecordBlob: () => validateRecordBlob
|
|
24811
|
+
});
|
|
24812
|
+
function toKnownErr39(e) {
|
|
24432
24813
|
if (e instanceof XRPCError) {
|
|
24433
24814
|
}
|
|
24434
24815
|
return e;
|
|
24435
24816
|
}
|
|
24817
|
+
function isRecordBlob(v) {
|
|
24818
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.listMissingBlobs#recordBlob";
|
|
24819
|
+
}
|
|
24820
|
+
function validateRecordBlob(v) {
|
|
24821
|
+
return lexicons.validate("com.atproto.repo.listMissingBlobs#recordBlob", v);
|
|
24822
|
+
}
|
|
24436
24823
|
|
|
24437
24824
|
// src/client/types/com/atproto/repo/listRecords.ts
|
|
24438
24825
|
var listRecords_exports = {};
|
|
24439
24826
|
__export(listRecords_exports, {
|
|
24440
24827
|
isRecord: () => isRecord,
|
|
24441
|
-
toKnownErr: () =>
|
|
24828
|
+
toKnownErr: () => toKnownErr40,
|
|
24442
24829
|
validateRecord: () => validateRecord
|
|
24443
24830
|
});
|
|
24444
|
-
function
|
|
24831
|
+
function toKnownErr40(e) {
|
|
24445
24832
|
if (e instanceof XRPCError) {
|
|
24446
24833
|
}
|
|
24447
24834
|
return e;
|
|
@@ -24457,14 +24844,14 @@ function validateRecord(v) {
|
|
|
24457
24844
|
var putRecord_exports = {};
|
|
24458
24845
|
__export(putRecord_exports, {
|
|
24459
24846
|
InvalidSwapError: () => InvalidSwapError4,
|
|
24460
|
-
toKnownErr: () =>
|
|
24847
|
+
toKnownErr: () => toKnownErr41
|
|
24461
24848
|
});
|
|
24462
24849
|
var InvalidSwapError4 = class extends XRPCError {
|
|
24463
24850
|
constructor(src2) {
|
|
24464
24851
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24465
24852
|
}
|
|
24466
24853
|
};
|
|
24467
|
-
function
|
|
24854
|
+
function toKnownErr41(e) {
|
|
24468
24855
|
if (e instanceof XRPCError) {
|
|
24469
24856
|
if (e.error === "InvalidSwap")
|
|
24470
24857
|
return new InvalidSwapError4(e);
|
|
@@ -24475,9 +24862,31 @@ function toKnownErr34(e) {
|
|
|
24475
24862
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
24476
24863
|
var uploadBlob_exports = {};
|
|
24477
24864
|
__export(uploadBlob_exports, {
|
|
24478
|
-
toKnownErr: () =>
|
|
24865
|
+
toKnownErr: () => toKnownErr42
|
|
24479
24866
|
});
|
|
24480
|
-
function
|
|
24867
|
+
function toKnownErr42(e) {
|
|
24868
|
+
if (e instanceof XRPCError) {
|
|
24869
|
+
}
|
|
24870
|
+
return e;
|
|
24871
|
+
}
|
|
24872
|
+
|
|
24873
|
+
// src/client/types/com/atproto/server/activateAccount.ts
|
|
24874
|
+
var activateAccount_exports = {};
|
|
24875
|
+
__export(activateAccount_exports, {
|
|
24876
|
+
toKnownErr: () => toKnownErr43
|
|
24877
|
+
});
|
|
24878
|
+
function toKnownErr43(e) {
|
|
24879
|
+
if (e instanceof XRPCError) {
|
|
24880
|
+
}
|
|
24881
|
+
return e;
|
|
24882
|
+
}
|
|
24883
|
+
|
|
24884
|
+
// src/client/types/com/atproto/server/checkAccountStatus.ts
|
|
24885
|
+
var checkAccountStatus_exports = {};
|
|
24886
|
+
__export(checkAccountStatus_exports, {
|
|
24887
|
+
toKnownErr: () => toKnownErr44
|
|
24888
|
+
});
|
|
24889
|
+
function toKnownErr44(e) {
|
|
24481
24890
|
if (e instanceof XRPCError) {
|
|
24482
24891
|
}
|
|
24483
24892
|
return e;
|
|
@@ -24490,7 +24899,7 @@ __export(confirmEmail_exports, {
|
|
|
24490
24899
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
24491
24900
|
InvalidEmailError: () => InvalidEmailError,
|
|
24492
24901
|
InvalidTokenError: () => InvalidTokenError,
|
|
24493
|
-
toKnownErr: () =>
|
|
24902
|
+
toKnownErr: () => toKnownErr45
|
|
24494
24903
|
});
|
|
24495
24904
|
var AccountNotFoundError = class extends XRPCError {
|
|
24496
24905
|
constructor(src2) {
|
|
@@ -24512,7 +24921,7 @@ var InvalidEmailError = class extends XRPCError {
|
|
|
24512
24921
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24513
24922
|
}
|
|
24514
24923
|
};
|
|
24515
|
-
function
|
|
24924
|
+
function toKnownErr45(e) {
|
|
24516
24925
|
if (e instanceof XRPCError) {
|
|
24517
24926
|
if (e.error === "AccountNotFound")
|
|
24518
24927
|
return new AccountNotFoundError(e);
|
|
@@ -24536,7 +24945,7 @@ __export(createAccount_exports, {
|
|
|
24536
24945
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
24537
24946
|
UnresolvableDidError: () => UnresolvableDidError,
|
|
24538
24947
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
24539
|
-
toKnownErr: () =>
|
|
24948
|
+
toKnownErr: () => toKnownErr46
|
|
24540
24949
|
});
|
|
24541
24950
|
var InvalidHandleError2 = class extends XRPCError {
|
|
24542
24951
|
constructor(src2) {
|
|
@@ -24573,7 +24982,7 @@ var IncompatibleDidDocError = class extends XRPCError {
|
|
|
24573
24982
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24574
24983
|
}
|
|
24575
24984
|
};
|
|
24576
|
-
function
|
|
24985
|
+
function toKnownErr46(e) {
|
|
24577
24986
|
if (e instanceof XRPCError) {
|
|
24578
24987
|
if (e.error === "InvalidHandle")
|
|
24579
24988
|
return new InvalidHandleError2(e);
|
|
@@ -24598,7 +25007,7 @@ var createAppPassword_exports = {};
|
|
|
24598
25007
|
__export(createAppPassword_exports, {
|
|
24599
25008
|
AccountTakedownError: () => AccountTakedownError,
|
|
24600
25009
|
isAppPassword: () => isAppPassword,
|
|
24601
|
-
toKnownErr: () =>
|
|
25010
|
+
toKnownErr: () => toKnownErr47,
|
|
24602
25011
|
validateAppPassword: () => validateAppPassword
|
|
24603
25012
|
});
|
|
24604
25013
|
var AccountTakedownError = class extends XRPCError {
|
|
@@ -24606,7 +25015,7 @@ var AccountTakedownError = class extends XRPCError {
|
|
|
24606
25015
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24607
25016
|
}
|
|
24608
25017
|
};
|
|
24609
|
-
function
|
|
25018
|
+
function toKnownErr47(e) {
|
|
24610
25019
|
if (e instanceof XRPCError) {
|
|
24611
25020
|
if (e.error === "AccountTakedown")
|
|
24612
25021
|
return new AccountTakedownError(e);
|
|
@@ -24623,9 +25032,9 @@ function validateAppPassword(v) {
|
|
|
24623
25032
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
24624
25033
|
var createInviteCode_exports = {};
|
|
24625
25034
|
__export(createInviteCode_exports, {
|
|
24626
|
-
toKnownErr: () =>
|
|
25035
|
+
toKnownErr: () => toKnownErr48
|
|
24627
25036
|
});
|
|
24628
|
-
function
|
|
25037
|
+
function toKnownErr48(e) {
|
|
24629
25038
|
if (e instanceof XRPCError) {
|
|
24630
25039
|
}
|
|
24631
25040
|
return e;
|
|
@@ -24635,10 +25044,10 @@ function toKnownErr39(e) {
|
|
|
24635
25044
|
var createInviteCodes_exports = {};
|
|
24636
25045
|
__export(createInviteCodes_exports, {
|
|
24637
25046
|
isAccountCodes: () => isAccountCodes,
|
|
24638
|
-
toKnownErr: () =>
|
|
25047
|
+
toKnownErr: () => toKnownErr49,
|
|
24639
25048
|
validateAccountCodes: () => validateAccountCodes
|
|
24640
25049
|
});
|
|
24641
|
-
function
|
|
25050
|
+
function toKnownErr49(e) {
|
|
24642
25051
|
if (e instanceof XRPCError) {
|
|
24643
25052
|
}
|
|
24644
25053
|
return e;
|
|
@@ -24654,14 +25063,14 @@ function validateAccountCodes(v) {
|
|
|
24654
25063
|
var createSession_exports = {};
|
|
24655
25064
|
__export(createSession_exports, {
|
|
24656
25065
|
AccountTakedownError: () => AccountTakedownError2,
|
|
24657
|
-
toKnownErr: () =>
|
|
25066
|
+
toKnownErr: () => toKnownErr50
|
|
24658
25067
|
});
|
|
24659
25068
|
var AccountTakedownError2 = class extends XRPCError {
|
|
24660
25069
|
constructor(src2) {
|
|
24661
25070
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24662
25071
|
}
|
|
24663
25072
|
};
|
|
24664
|
-
function
|
|
25073
|
+
function toKnownErr50(e) {
|
|
24665
25074
|
if (e instanceof XRPCError) {
|
|
24666
25075
|
if (e.error === "AccountTakedown")
|
|
24667
25076
|
return new AccountTakedownError2(e);
|
|
@@ -24669,12 +25078,23 @@ function toKnownErr41(e) {
|
|
|
24669
25078
|
return e;
|
|
24670
25079
|
}
|
|
24671
25080
|
|
|
25081
|
+
// src/client/types/com/atproto/server/deactivateAccount.ts
|
|
25082
|
+
var deactivateAccount_exports = {};
|
|
25083
|
+
__export(deactivateAccount_exports, {
|
|
25084
|
+
toKnownErr: () => toKnownErr51
|
|
25085
|
+
});
|
|
25086
|
+
function toKnownErr51(e) {
|
|
25087
|
+
if (e instanceof XRPCError) {
|
|
25088
|
+
}
|
|
25089
|
+
return e;
|
|
25090
|
+
}
|
|
25091
|
+
|
|
24672
25092
|
// src/client/types/com/atproto/server/deleteAccount.ts
|
|
24673
25093
|
var deleteAccount_exports2 = {};
|
|
24674
25094
|
__export(deleteAccount_exports2, {
|
|
24675
25095
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
24676
25096
|
InvalidTokenError: () => InvalidTokenError2,
|
|
24677
|
-
toKnownErr: () =>
|
|
25097
|
+
toKnownErr: () => toKnownErr52
|
|
24678
25098
|
});
|
|
24679
25099
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
24680
25100
|
constructor(src2) {
|
|
@@ -24686,7 +25106,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
24686
25106
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24687
25107
|
}
|
|
24688
25108
|
};
|
|
24689
|
-
function
|
|
25109
|
+
function toKnownErr52(e) {
|
|
24690
25110
|
if (e instanceof XRPCError) {
|
|
24691
25111
|
if (e.error === "ExpiredToken")
|
|
24692
25112
|
return new ExpiredTokenError2(e);
|
|
@@ -24699,9 +25119,9 @@ function toKnownErr42(e) {
|
|
|
24699
25119
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
24700
25120
|
var deleteSession_exports = {};
|
|
24701
25121
|
__export(deleteSession_exports, {
|
|
24702
|
-
toKnownErr: () =>
|
|
25122
|
+
toKnownErr: () => toKnownErr53
|
|
24703
25123
|
});
|
|
24704
|
-
function
|
|
25124
|
+
function toKnownErr53(e) {
|
|
24705
25125
|
if (e instanceof XRPCError) {
|
|
24706
25126
|
}
|
|
24707
25127
|
return e;
|
|
@@ -24711,10 +25131,10 @@ function toKnownErr43(e) {
|
|
|
24711
25131
|
var describeServer_exports = {};
|
|
24712
25132
|
__export(describeServer_exports, {
|
|
24713
25133
|
isLinks: () => isLinks,
|
|
24714
|
-
toKnownErr: () =>
|
|
25134
|
+
toKnownErr: () => toKnownErr54,
|
|
24715
25135
|
validateLinks: () => validateLinks
|
|
24716
25136
|
});
|
|
24717
|
-
function
|
|
25137
|
+
function toKnownErr54(e) {
|
|
24718
25138
|
if (e instanceof XRPCError) {
|
|
24719
25139
|
}
|
|
24720
25140
|
return e;
|
|
@@ -24730,14 +25150,14 @@ function validateLinks(v) {
|
|
|
24730
25150
|
var getAccountInviteCodes_exports = {};
|
|
24731
25151
|
__export(getAccountInviteCodes_exports, {
|
|
24732
25152
|
DuplicateCreateError: () => DuplicateCreateError,
|
|
24733
|
-
toKnownErr: () =>
|
|
25153
|
+
toKnownErr: () => toKnownErr55
|
|
24734
25154
|
});
|
|
24735
25155
|
var DuplicateCreateError = class extends XRPCError {
|
|
24736
25156
|
constructor(src2) {
|
|
24737
25157
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24738
25158
|
}
|
|
24739
25159
|
};
|
|
24740
|
-
function
|
|
25160
|
+
function toKnownErr55(e) {
|
|
24741
25161
|
if (e instanceof XRPCError) {
|
|
24742
25162
|
if (e.error === "DuplicateCreate")
|
|
24743
25163
|
return new DuplicateCreateError(e);
|
|
@@ -24745,12 +25165,23 @@ function toKnownErr45(e) {
|
|
|
24745
25165
|
return e;
|
|
24746
25166
|
}
|
|
24747
25167
|
|
|
25168
|
+
// src/client/types/com/atproto/server/getServiceAuth.ts
|
|
25169
|
+
var getServiceAuth_exports = {};
|
|
25170
|
+
__export(getServiceAuth_exports, {
|
|
25171
|
+
toKnownErr: () => toKnownErr56
|
|
25172
|
+
});
|
|
25173
|
+
function toKnownErr56(e) {
|
|
25174
|
+
if (e instanceof XRPCError) {
|
|
25175
|
+
}
|
|
25176
|
+
return e;
|
|
25177
|
+
}
|
|
25178
|
+
|
|
24748
25179
|
// src/client/types/com/atproto/server/getSession.ts
|
|
24749
25180
|
var getSession_exports = {};
|
|
24750
25181
|
__export(getSession_exports, {
|
|
24751
|
-
toKnownErr: () =>
|
|
25182
|
+
toKnownErr: () => toKnownErr57
|
|
24752
25183
|
});
|
|
24753
|
-
function
|
|
25184
|
+
function toKnownErr57(e) {
|
|
24754
25185
|
if (e instanceof XRPCError) {
|
|
24755
25186
|
}
|
|
24756
25187
|
return e;
|
|
@@ -24761,7 +25192,7 @@ var listAppPasswords_exports = {};
|
|
|
24761
25192
|
__export(listAppPasswords_exports, {
|
|
24762
25193
|
AccountTakedownError: () => AccountTakedownError3,
|
|
24763
25194
|
isAppPassword: () => isAppPassword2,
|
|
24764
|
-
toKnownErr: () =>
|
|
25195
|
+
toKnownErr: () => toKnownErr58,
|
|
24765
25196
|
validateAppPassword: () => validateAppPassword2
|
|
24766
25197
|
});
|
|
24767
25198
|
var AccountTakedownError3 = class extends XRPCError {
|
|
@@ -24769,7 +25200,7 @@ var AccountTakedownError3 = class extends XRPCError {
|
|
|
24769
25200
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24770
25201
|
}
|
|
24771
25202
|
};
|
|
24772
|
-
function
|
|
25203
|
+
function toKnownErr58(e) {
|
|
24773
25204
|
if (e instanceof XRPCError) {
|
|
24774
25205
|
if (e.error === "AccountTakedown")
|
|
24775
25206
|
return new AccountTakedownError3(e);
|
|
@@ -24787,14 +25218,14 @@ function validateAppPassword2(v) {
|
|
|
24787
25218
|
var refreshSession_exports = {};
|
|
24788
25219
|
__export(refreshSession_exports, {
|
|
24789
25220
|
AccountTakedownError: () => AccountTakedownError4,
|
|
24790
|
-
toKnownErr: () =>
|
|
25221
|
+
toKnownErr: () => toKnownErr59
|
|
24791
25222
|
});
|
|
24792
25223
|
var AccountTakedownError4 = class extends XRPCError {
|
|
24793
25224
|
constructor(src2) {
|
|
24794
25225
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24795
25226
|
}
|
|
24796
25227
|
};
|
|
24797
|
-
function
|
|
25228
|
+
function toKnownErr59(e) {
|
|
24798
25229
|
if (e instanceof XRPCError) {
|
|
24799
25230
|
if (e.error === "AccountTakedown")
|
|
24800
25231
|
return new AccountTakedownError4(e);
|
|
@@ -24805,9 +25236,9 @@ function toKnownErr48(e) {
|
|
|
24805
25236
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
24806
25237
|
var requestAccountDelete_exports = {};
|
|
24807
25238
|
__export(requestAccountDelete_exports, {
|
|
24808
|
-
toKnownErr: () =>
|
|
25239
|
+
toKnownErr: () => toKnownErr60
|
|
24809
25240
|
});
|
|
24810
|
-
function
|
|
25241
|
+
function toKnownErr60(e) {
|
|
24811
25242
|
if (e instanceof XRPCError) {
|
|
24812
25243
|
}
|
|
24813
25244
|
return e;
|
|
@@ -24816,9 +25247,9 @@ function toKnownErr49(e) {
|
|
|
24816
25247
|
// src/client/types/com/atproto/server/requestEmailConfirmation.ts
|
|
24817
25248
|
var requestEmailConfirmation_exports = {};
|
|
24818
25249
|
__export(requestEmailConfirmation_exports, {
|
|
24819
|
-
toKnownErr: () =>
|
|
25250
|
+
toKnownErr: () => toKnownErr61
|
|
24820
25251
|
});
|
|
24821
|
-
function
|
|
25252
|
+
function toKnownErr61(e) {
|
|
24822
25253
|
if (e instanceof XRPCError) {
|
|
24823
25254
|
}
|
|
24824
25255
|
return e;
|
|
@@ -24827,9 +25258,9 @@ function toKnownErr50(e) {
|
|
|
24827
25258
|
// src/client/types/com/atproto/server/requestEmailUpdate.ts
|
|
24828
25259
|
var requestEmailUpdate_exports = {};
|
|
24829
25260
|
__export(requestEmailUpdate_exports, {
|
|
24830
|
-
toKnownErr: () =>
|
|
25261
|
+
toKnownErr: () => toKnownErr62
|
|
24831
25262
|
});
|
|
24832
|
-
function
|
|
25263
|
+
function toKnownErr62(e) {
|
|
24833
25264
|
if (e instanceof XRPCError) {
|
|
24834
25265
|
}
|
|
24835
25266
|
return e;
|
|
@@ -24838,9 +25269,9 @@ function toKnownErr51(e) {
|
|
|
24838
25269
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
24839
25270
|
var requestPasswordReset_exports = {};
|
|
24840
25271
|
__export(requestPasswordReset_exports, {
|
|
24841
|
-
toKnownErr: () =>
|
|
25272
|
+
toKnownErr: () => toKnownErr63
|
|
24842
25273
|
});
|
|
24843
|
-
function
|
|
25274
|
+
function toKnownErr63(e) {
|
|
24844
25275
|
if (e instanceof XRPCError) {
|
|
24845
25276
|
}
|
|
24846
25277
|
return e;
|
|
@@ -24849,9 +25280,9 @@ function toKnownErr52(e) {
|
|
|
24849
25280
|
// src/client/types/com/atproto/server/reserveSigningKey.ts
|
|
24850
25281
|
var reserveSigningKey_exports = {};
|
|
24851
25282
|
__export(reserveSigningKey_exports, {
|
|
24852
|
-
toKnownErr: () =>
|
|
25283
|
+
toKnownErr: () => toKnownErr64
|
|
24853
25284
|
});
|
|
24854
|
-
function
|
|
25285
|
+
function toKnownErr64(e) {
|
|
24855
25286
|
if (e instanceof XRPCError) {
|
|
24856
25287
|
}
|
|
24857
25288
|
return e;
|
|
@@ -24862,7 +25293,7 @@ var resetPassword_exports = {};
|
|
|
24862
25293
|
__export(resetPassword_exports, {
|
|
24863
25294
|
ExpiredTokenError: () => ExpiredTokenError3,
|
|
24864
25295
|
InvalidTokenError: () => InvalidTokenError3,
|
|
24865
|
-
toKnownErr: () =>
|
|
25296
|
+
toKnownErr: () => toKnownErr65
|
|
24866
25297
|
});
|
|
24867
25298
|
var ExpiredTokenError3 = class extends XRPCError {
|
|
24868
25299
|
constructor(src2) {
|
|
@@ -24874,7 +25305,7 @@ var InvalidTokenError3 = class extends XRPCError {
|
|
|
24874
25305
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24875
25306
|
}
|
|
24876
25307
|
};
|
|
24877
|
-
function
|
|
25308
|
+
function toKnownErr65(e) {
|
|
24878
25309
|
if (e instanceof XRPCError) {
|
|
24879
25310
|
if (e.error === "ExpiredToken")
|
|
24880
25311
|
return new ExpiredTokenError3(e);
|
|
@@ -24887,9 +25318,9 @@ function toKnownErr54(e) {
|
|
|
24887
25318
|
// src/client/types/com/atproto/server/revokeAppPassword.ts
|
|
24888
25319
|
var revokeAppPassword_exports = {};
|
|
24889
25320
|
__export(revokeAppPassword_exports, {
|
|
24890
|
-
toKnownErr: () =>
|
|
25321
|
+
toKnownErr: () => toKnownErr66
|
|
24891
25322
|
});
|
|
24892
|
-
function
|
|
25323
|
+
function toKnownErr66(e) {
|
|
24893
25324
|
if (e instanceof XRPCError) {
|
|
24894
25325
|
}
|
|
24895
25326
|
return e;
|
|
@@ -24901,7 +25332,7 @@ __export(updateEmail_exports, {
|
|
|
24901
25332
|
ExpiredTokenError: () => ExpiredTokenError4,
|
|
24902
25333
|
InvalidTokenError: () => InvalidTokenError4,
|
|
24903
25334
|
TokenRequiredError: () => TokenRequiredError,
|
|
24904
|
-
toKnownErr: () =>
|
|
25335
|
+
toKnownErr: () => toKnownErr67
|
|
24905
25336
|
});
|
|
24906
25337
|
var ExpiredTokenError4 = class extends XRPCError {
|
|
24907
25338
|
constructor(src2) {
|
|
@@ -24918,7 +25349,7 @@ var TokenRequiredError = class extends XRPCError {
|
|
|
24918
25349
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24919
25350
|
}
|
|
24920
25351
|
};
|
|
24921
|
-
function
|
|
25352
|
+
function toKnownErr67(e) {
|
|
24922
25353
|
if (e instanceof XRPCError) {
|
|
24923
25354
|
if (e.error === "ExpiredToken")
|
|
24924
25355
|
return new ExpiredTokenError4(e);
|
|
@@ -24933,9 +25364,9 @@ function toKnownErr56(e) {
|
|
|
24933
25364
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
24934
25365
|
var getBlob_exports = {};
|
|
24935
25366
|
__export(getBlob_exports, {
|
|
24936
|
-
toKnownErr: () =>
|
|
25367
|
+
toKnownErr: () => toKnownErr68
|
|
24937
25368
|
});
|
|
24938
|
-
function
|
|
25369
|
+
function toKnownErr68(e) {
|
|
24939
25370
|
if (e instanceof XRPCError) {
|
|
24940
25371
|
}
|
|
24941
25372
|
return e;
|
|
@@ -24944,9 +25375,9 @@ function toKnownErr57(e) {
|
|
|
24944
25375
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
24945
25376
|
var getBlocks_exports = {};
|
|
24946
25377
|
__export(getBlocks_exports, {
|
|
24947
|
-
toKnownErr: () =>
|
|
25378
|
+
toKnownErr: () => toKnownErr69
|
|
24948
25379
|
});
|
|
24949
|
-
function
|
|
25380
|
+
function toKnownErr69(e) {
|
|
24950
25381
|
if (e instanceof XRPCError) {
|
|
24951
25382
|
}
|
|
24952
25383
|
return e;
|
|
@@ -24955,9 +25386,9 @@ function toKnownErr58(e) {
|
|
|
24955
25386
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
24956
25387
|
var getCheckout_exports = {};
|
|
24957
25388
|
__export(getCheckout_exports, {
|
|
24958
|
-
toKnownErr: () =>
|
|
25389
|
+
toKnownErr: () => toKnownErr70
|
|
24959
25390
|
});
|
|
24960
|
-
function
|
|
25391
|
+
function toKnownErr70(e) {
|
|
24961
25392
|
if (e instanceof XRPCError) {
|
|
24962
25393
|
}
|
|
24963
25394
|
return e;
|
|
@@ -24967,14 +25398,14 @@ function toKnownErr59(e) {
|
|
|
24967
25398
|
var getHead_exports = {};
|
|
24968
25399
|
__export(getHead_exports, {
|
|
24969
25400
|
HeadNotFoundError: () => HeadNotFoundError,
|
|
24970
|
-
toKnownErr: () =>
|
|
25401
|
+
toKnownErr: () => toKnownErr71
|
|
24971
25402
|
});
|
|
24972
25403
|
var HeadNotFoundError = class extends XRPCError {
|
|
24973
25404
|
constructor(src2) {
|
|
24974
25405
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24975
25406
|
}
|
|
24976
25407
|
};
|
|
24977
|
-
function
|
|
25408
|
+
function toKnownErr71(e) {
|
|
24978
25409
|
if (e instanceof XRPCError) {
|
|
24979
25410
|
if (e.error === "HeadNotFound")
|
|
24980
25411
|
return new HeadNotFoundError(e);
|
|
@@ -24986,14 +25417,14 @@ function toKnownErr60(e) {
|
|
|
24986
25417
|
var getLatestCommit_exports = {};
|
|
24987
25418
|
__export(getLatestCommit_exports, {
|
|
24988
25419
|
RepoNotFoundError: () => RepoNotFoundError2,
|
|
24989
|
-
toKnownErr: () =>
|
|
25420
|
+
toKnownErr: () => toKnownErr72
|
|
24990
25421
|
});
|
|
24991
25422
|
var RepoNotFoundError2 = class extends XRPCError {
|
|
24992
25423
|
constructor(src2) {
|
|
24993
25424
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24994
25425
|
}
|
|
24995
25426
|
};
|
|
24996
|
-
function
|
|
25427
|
+
function toKnownErr72(e) {
|
|
24997
25428
|
if (e instanceof XRPCError) {
|
|
24998
25429
|
if (e.error === "RepoNotFound")
|
|
24999
25430
|
return new RepoNotFoundError2(e);
|
|
@@ -25004,9 +25435,9 @@ function toKnownErr61(e) {
|
|
|
25004
25435
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
25005
25436
|
var getRecord_exports3 = {};
|
|
25006
25437
|
__export(getRecord_exports3, {
|
|
25007
|
-
toKnownErr: () =>
|
|
25438
|
+
toKnownErr: () => toKnownErr73
|
|
25008
25439
|
});
|
|
25009
|
-
function
|
|
25440
|
+
function toKnownErr73(e) {
|
|
25010
25441
|
if (e instanceof XRPCError) {
|
|
25011
25442
|
}
|
|
25012
25443
|
return e;
|
|
@@ -25015,9 +25446,9 @@ function toKnownErr62(e) {
|
|
|
25015
25446
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
25016
25447
|
var getRepo_exports2 = {};
|
|
25017
25448
|
__export(getRepo_exports2, {
|
|
25018
|
-
toKnownErr: () =>
|
|
25449
|
+
toKnownErr: () => toKnownErr74
|
|
25019
25450
|
});
|
|
25020
|
-
function
|
|
25451
|
+
function toKnownErr74(e) {
|
|
25021
25452
|
if (e instanceof XRPCError) {
|
|
25022
25453
|
}
|
|
25023
25454
|
return e;
|
|
@@ -25026,9 +25457,9 @@ function toKnownErr63(e) {
|
|
|
25026
25457
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
25027
25458
|
var listBlobs_exports = {};
|
|
25028
25459
|
__export(listBlobs_exports, {
|
|
25029
|
-
toKnownErr: () =>
|
|
25460
|
+
toKnownErr: () => toKnownErr75
|
|
25030
25461
|
});
|
|
25031
|
-
function
|
|
25462
|
+
function toKnownErr75(e) {
|
|
25032
25463
|
if (e instanceof XRPCError) {
|
|
25033
25464
|
}
|
|
25034
25465
|
return e;
|
|
@@ -25038,10 +25469,10 @@ function toKnownErr64(e) {
|
|
|
25038
25469
|
var listRepos_exports = {};
|
|
25039
25470
|
__export(listRepos_exports, {
|
|
25040
25471
|
isRepo: () => isRepo,
|
|
25041
|
-
toKnownErr: () =>
|
|
25472
|
+
toKnownErr: () => toKnownErr76,
|
|
25042
25473
|
validateRepo: () => validateRepo
|
|
25043
25474
|
});
|
|
25044
|
-
function
|
|
25475
|
+
function toKnownErr76(e) {
|
|
25045
25476
|
if (e instanceof XRPCError) {
|
|
25046
25477
|
}
|
|
25047
25478
|
return e;
|
|
@@ -25056,9 +25487,9 @@ function validateRepo(v) {
|
|
|
25056
25487
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
25057
25488
|
var notifyOfUpdate_exports = {};
|
|
25058
25489
|
__export(notifyOfUpdate_exports, {
|
|
25059
|
-
toKnownErr: () =>
|
|
25490
|
+
toKnownErr: () => toKnownErr77
|
|
25060
25491
|
});
|
|
25061
|
-
function
|
|
25492
|
+
function toKnownErr77(e) {
|
|
25062
25493
|
if (e instanceof XRPCError) {
|
|
25063
25494
|
}
|
|
25064
25495
|
return e;
|
|
@@ -25067,9 +25498,9 @@ function toKnownErr66(e) {
|
|
|
25067
25498
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
25068
25499
|
var requestCrawl_exports = {};
|
|
25069
25500
|
__export(requestCrawl_exports, {
|
|
25070
|
-
toKnownErr: () =>
|
|
25501
|
+
toKnownErr: () => toKnownErr78
|
|
25071
25502
|
});
|
|
25072
|
-
function
|
|
25503
|
+
function toKnownErr78(e) {
|
|
25073
25504
|
if (e instanceof XRPCError) {
|
|
25074
25505
|
}
|
|
25075
25506
|
return e;
|
|
@@ -25078,9 +25509,9 @@ function toKnownErr67(e) {
|
|
|
25078
25509
|
// src/client/types/com/atproto/temp/checkSignupQueue.ts
|
|
25079
25510
|
var checkSignupQueue_exports = {};
|
|
25080
25511
|
__export(checkSignupQueue_exports, {
|
|
25081
|
-
toKnownErr: () =>
|
|
25512
|
+
toKnownErr: () => toKnownErr79
|
|
25082
25513
|
});
|
|
25083
|
-
function
|
|
25514
|
+
function toKnownErr79(e) {
|
|
25084
25515
|
if (e instanceof XRPCError) {
|
|
25085
25516
|
}
|
|
25086
25517
|
return e;
|
|
@@ -25089,31 +25520,9 @@ function toKnownErr68(e) {
|
|
|
25089
25520
|
// src/client/types/com/atproto/temp/fetchLabels.ts
|
|
25090
25521
|
var fetchLabels_exports = {};
|
|
25091
25522
|
__export(fetchLabels_exports, {
|
|
25092
|
-
toKnownErr: () =>
|
|
25093
|
-
});
|
|
25094
|
-
function toKnownErr69(e) {
|
|
25095
|
-
if (e instanceof XRPCError) {
|
|
25096
|
-
}
|
|
25097
|
-
return e;
|
|
25098
|
-
}
|
|
25099
|
-
|
|
25100
|
-
// src/client/types/com/atproto/temp/importRepo.ts
|
|
25101
|
-
var importRepo_exports = {};
|
|
25102
|
-
__export(importRepo_exports, {
|
|
25103
|
-
toKnownErr: () => toKnownErr70
|
|
25104
|
-
});
|
|
25105
|
-
function toKnownErr70(e) {
|
|
25106
|
-
if (e instanceof XRPCError) {
|
|
25107
|
-
}
|
|
25108
|
-
return e;
|
|
25109
|
-
}
|
|
25110
|
-
|
|
25111
|
-
// src/client/types/com/atproto/temp/pushBlob.ts
|
|
25112
|
-
var pushBlob_exports = {};
|
|
25113
|
-
__export(pushBlob_exports, {
|
|
25114
|
-
toKnownErr: () => toKnownErr71
|
|
25523
|
+
toKnownErr: () => toKnownErr80
|
|
25115
25524
|
});
|
|
25116
|
-
function
|
|
25525
|
+
function toKnownErr80(e) {
|
|
25117
25526
|
if (e instanceof XRPCError) {
|
|
25118
25527
|
}
|
|
25119
25528
|
return e;
|
|
@@ -25122,77 +25531,10 @@ function toKnownErr71(e) {
|
|
|
25122
25531
|
// src/client/types/com/atproto/temp/requestPhoneVerification.ts
|
|
25123
25532
|
var requestPhoneVerification_exports = {};
|
|
25124
25533
|
__export(requestPhoneVerification_exports, {
|
|
25125
|
-
toKnownErr: () =>
|
|
25126
|
-
});
|
|
25127
|
-
function toKnownErr72(e) {
|
|
25128
|
-
if (e instanceof XRPCError) {
|
|
25129
|
-
}
|
|
25130
|
-
return e;
|
|
25131
|
-
}
|
|
25132
|
-
|
|
25133
|
-
// src/client/types/com/atproto/temp/transferAccount.ts
|
|
25134
|
-
var transferAccount_exports = {};
|
|
25135
|
-
__export(transferAccount_exports, {
|
|
25136
|
-
HandleNotAvailableError: () => HandleNotAvailableError2,
|
|
25137
|
-
IncompatibleDidDocError: () => IncompatibleDidDocError2,
|
|
25138
|
-
InvalidHandleError: () => InvalidHandleError3,
|
|
25139
|
-
InvalidInviteCodeError: () => InvalidInviteCodeError2,
|
|
25140
|
-
InvalidPasswordError: () => InvalidPasswordError2,
|
|
25141
|
-
UnresolvableDidError: () => UnresolvableDidError2,
|
|
25142
|
-
UnsupportedDomainError: () => UnsupportedDomainError2,
|
|
25143
|
-
toKnownErr: () => toKnownErr73
|
|
25534
|
+
toKnownErr: () => toKnownErr81
|
|
25144
25535
|
});
|
|
25145
|
-
|
|
25146
|
-
constructor(src2) {
|
|
25147
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25148
|
-
}
|
|
25149
|
-
};
|
|
25150
|
-
var InvalidPasswordError2 = class extends XRPCError {
|
|
25151
|
-
constructor(src2) {
|
|
25152
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25153
|
-
}
|
|
25154
|
-
};
|
|
25155
|
-
var InvalidInviteCodeError2 = class extends XRPCError {
|
|
25156
|
-
constructor(src2) {
|
|
25157
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25158
|
-
}
|
|
25159
|
-
};
|
|
25160
|
-
var HandleNotAvailableError2 = class extends XRPCError {
|
|
25161
|
-
constructor(src2) {
|
|
25162
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25163
|
-
}
|
|
25164
|
-
};
|
|
25165
|
-
var UnsupportedDomainError2 = class extends XRPCError {
|
|
25166
|
-
constructor(src2) {
|
|
25167
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25168
|
-
}
|
|
25169
|
-
};
|
|
25170
|
-
var UnresolvableDidError2 = class extends XRPCError {
|
|
25171
|
-
constructor(src2) {
|
|
25172
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25173
|
-
}
|
|
25174
|
-
};
|
|
25175
|
-
var IncompatibleDidDocError2 = class extends XRPCError {
|
|
25176
|
-
constructor(src2) {
|
|
25177
|
-
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25178
|
-
}
|
|
25179
|
-
};
|
|
25180
|
-
function toKnownErr73(e) {
|
|
25536
|
+
function toKnownErr81(e) {
|
|
25181
25537
|
if (e instanceof XRPCError) {
|
|
25182
|
-
if (e.error === "InvalidHandle")
|
|
25183
|
-
return new InvalidHandleError3(e);
|
|
25184
|
-
if (e.error === "InvalidPassword")
|
|
25185
|
-
return new InvalidPasswordError2(e);
|
|
25186
|
-
if (e.error === "InvalidInviteCode")
|
|
25187
|
-
return new InvalidInviteCodeError2(e);
|
|
25188
|
-
if (e.error === "HandleNotAvailable")
|
|
25189
|
-
return new HandleNotAvailableError2(e);
|
|
25190
|
-
if (e.error === "UnsupportedDomain")
|
|
25191
|
-
return new UnsupportedDomainError2(e);
|
|
25192
|
-
if (e.error === "UnresolvableDid")
|
|
25193
|
-
return new UnresolvableDidError2(e);
|
|
25194
|
-
if (e.error === "IncompatibleDidDoc")
|
|
25195
|
-
return new IncompatibleDidDocError2(e);
|
|
25196
25538
|
}
|
|
25197
25539
|
return e;
|
|
25198
25540
|
}
|
|
@@ -25200,9 +25542,9 @@ function toKnownErr73(e) {
|
|
|
25200
25542
|
// src/client/types/app/bsky/actor/getPreferences.ts
|
|
25201
25543
|
var getPreferences_exports = {};
|
|
25202
25544
|
__export(getPreferences_exports, {
|
|
25203
|
-
toKnownErr: () =>
|
|
25545
|
+
toKnownErr: () => toKnownErr82
|
|
25204
25546
|
});
|
|
25205
|
-
function
|
|
25547
|
+
function toKnownErr82(e) {
|
|
25206
25548
|
if (e instanceof XRPCError) {
|
|
25207
25549
|
}
|
|
25208
25550
|
return e;
|
|
@@ -25211,9 +25553,9 @@ function toKnownErr74(e) {
|
|
|
25211
25553
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
25212
25554
|
var getProfile_exports = {};
|
|
25213
25555
|
__export(getProfile_exports, {
|
|
25214
|
-
toKnownErr: () =>
|
|
25556
|
+
toKnownErr: () => toKnownErr83
|
|
25215
25557
|
});
|
|
25216
|
-
function
|
|
25558
|
+
function toKnownErr83(e) {
|
|
25217
25559
|
if (e instanceof XRPCError) {
|
|
25218
25560
|
}
|
|
25219
25561
|
return e;
|
|
@@ -25222,9 +25564,9 @@ function toKnownErr75(e) {
|
|
|
25222
25564
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
25223
25565
|
var getProfiles_exports = {};
|
|
25224
25566
|
__export(getProfiles_exports, {
|
|
25225
|
-
toKnownErr: () =>
|
|
25567
|
+
toKnownErr: () => toKnownErr84
|
|
25226
25568
|
});
|
|
25227
|
-
function
|
|
25569
|
+
function toKnownErr84(e) {
|
|
25228
25570
|
if (e instanceof XRPCError) {
|
|
25229
25571
|
}
|
|
25230
25572
|
return e;
|
|
@@ -25233,9 +25575,9 @@ function toKnownErr76(e) {
|
|
|
25233
25575
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
25234
25576
|
var getSuggestions_exports = {};
|
|
25235
25577
|
__export(getSuggestions_exports, {
|
|
25236
|
-
toKnownErr: () =>
|
|
25578
|
+
toKnownErr: () => toKnownErr85
|
|
25237
25579
|
});
|
|
25238
|
-
function
|
|
25580
|
+
function toKnownErr85(e) {
|
|
25239
25581
|
if (e instanceof XRPCError) {
|
|
25240
25582
|
}
|
|
25241
25583
|
return e;
|
|
@@ -25244,9 +25586,9 @@ function toKnownErr77(e) {
|
|
|
25244
25586
|
// src/client/types/app/bsky/actor/putPreferences.ts
|
|
25245
25587
|
var putPreferences_exports = {};
|
|
25246
25588
|
__export(putPreferences_exports, {
|
|
25247
|
-
toKnownErr: () =>
|
|
25589
|
+
toKnownErr: () => toKnownErr86
|
|
25248
25590
|
});
|
|
25249
|
-
function
|
|
25591
|
+
function toKnownErr86(e) {
|
|
25250
25592
|
if (e instanceof XRPCError) {
|
|
25251
25593
|
}
|
|
25252
25594
|
return e;
|
|
@@ -25255,9 +25597,9 @@ function toKnownErr78(e) {
|
|
|
25255
25597
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
25256
25598
|
var searchActors_exports = {};
|
|
25257
25599
|
__export(searchActors_exports, {
|
|
25258
|
-
toKnownErr: () =>
|
|
25600
|
+
toKnownErr: () => toKnownErr87
|
|
25259
25601
|
});
|
|
25260
|
-
function
|
|
25602
|
+
function toKnownErr87(e) {
|
|
25261
25603
|
if (e instanceof XRPCError) {
|
|
25262
25604
|
}
|
|
25263
25605
|
return e;
|
|
@@ -25266,9 +25608,9 @@ function toKnownErr79(e) {
|
|
|
25266
25608
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
25267
25609
|
var searchActorsTypeahead_exports = {};
|
|
25268
25610
|
__export(searchActorsTypeahead_exports, {
|
|
25269
|
-
toKnownErr: () =>
|
|
25611
|
+
toKnownErr: () => toKnownErr88
|
|
25270
25612
|
});
|
|
25271
|
-
function
|
|
25613
|
+
function toKnownErr88(e) {
|
|
25272
25614
|
if (e instanceof XRPCError) {
|
|
25273
25615
|
}
|
|
25274
25616
|
return e;
|
|
@@ -25279,11 +25621,11 @@ var describeFeedGenerator_exports = {};
|
|
|
25279
25621
|
__export(describeFeedGenerator_exports, {
|
|
25280
25622
|
isFeed: () => isFeed,
|
|
25281
25623
|
isLinks: () => isLinks2,
|
|
25282
|
-
toKnownErr: () =>
|
|
25624
|
+
toKnownErr: () => toKnownErr89,
|
|
25283
25625
|
validateFeed: () => validateFeed,
|
|
25284
25626
|
validateLinks: () => validateLinks2
|
|
25285
25627
|
});
|
|
25286
|
-
function
|
|
25628
|
+
function toKnownErr89(e) {
|
|
25287
25629
|
if (e instanceof XRPCError) {
|
|
25288
25630
|
}
|
|
25289
25631
|
return e;
|
|
@@ -25304,9 +25646,9 @@ function validateLinks2(v) {
|
|
|
25304
25646
|
// src/client/types/app/bsky/feed/getActorFeeds.ts
|
|
25305
25647
|
var getActorFeeds_exports = {};
|
|
25306
25648
|
__export(getActorFeeds_exports, {
|
|
25307
|
-
toKnownErr: () =>
|
|
25649
|
+
toKnownErr: () => toKnownErr90
|
|
25308
25650
|
});
|
|
25309
|
-
function
|
|
25651
|
+
function toKnownErr90(e) {
|
|
25310
25652
|
if (e instanceof XRPCError) {
|
|
25311
25653
|
}
|
|
25312
25654
|
return e;
|
|
@@ -25317,7 +25659,7 @@ var getActorLikes_exports = {};
|
|
|
25317
25659
|
__export(getActorLikes_exports, {
|
|
25318
25660
|
BlockedActorError: () => BlockedActorError,
|
|
25319
25661
|
BlockedByActorError: () => BlockedByActorError,
|
|
25320
|
-
toKnownErr: () =>
|
|
25662
|
+
toKnownErr: () => toKnownErr91
|
|
25321
25663
|
});
|
|
25322
25664
|
var BlockedActorError = class extends XRPCError {
|
|
25323
25665
|
constructor(src2) {
|
|
@@ -25329,7 +25671,7 @@ var BlockedByActorError = class extends XRPCError {
|
|
|
25329
25671
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25330
25672
|
}
|
|
25331
25673
|
};
|
|
25332
|
-
function
|
|
25674
|
+
function toKnownErr91(e) {
|
|
25333
25675
|
if (e instanceof XRPCError) {
|
|
25334
25676
|
if (e.error === "BlockedActor")
|
|
25335
25677
|
return new BlockedActorError(e);
|
|
@@ -25344,7 +25686,7 @@ var getAuthorFeed_exports = {};
|
|
|
25344
25686
|
__export(getAuthorFeed_exports, {
|
|
25345
25687
|
BlockedActorError: () => BlockedActorError2,
|
|
25346
25688
|
BlockedByActorError: () => BlockedByActorError2,
|
|
25347
|
-
toKnownErr: () =>
|
|
25689
|
+
toKnownErr: () => toKnownErr92
|
|
25348
25690
|
});
|
|
25349
25691
|
var BlockedActorError2 = class extends XRPCError {
|
|
25350
25692
|
constructor(src2) {
|
|
@@ -25356,7 +25698,7 @@ var BlockedByActorError2 = class extends XRPCError {
|
|
|
25356
25698
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25357
25699
|
}
|
|
25358
25700
|
};
|
|
25359
|
-
function
|
|
25701
|
+
function toKnownErr92(e) {
|
|
25360
25702
|
if (e instanceof XRPCError) {
|
|
25361
25703
|
if (e.error === "BlockedActor")
|
|
25362
25704
|
return new BlockedActorError2(e);
|
|
@@ -25370,14 +25712,14 @@ function toKnownErr84(e) {
|
|
|
25370
25712
|
var getFeed_exports = {};
|
|
25371
25713
|
__export(getFeed_exports, {
|
|
25372
25714
|
UnknownFeedError: () => UnknownFeedError,
|
|
25373
|
-
toKnownErr: () =>
|
|
25715
|
+
toKnownErr: () => toKnownErr93
|
|
25374
25716
|
});
|
|
25375
25717
|
var UnknownFeedError = class extends XRPCError {
|
|
25376
25718
|
constructor(src2) {
|
|
25377
25719
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25378
25720
|
}
|
|
25379
25721
|
};
|
|
25380
|
-
function
|
|
25722
|
+
function toKnownErr93(e) {
|
|
25381
25723
|
if (e instanceof XRPCError) {
|
|
25382
25724
|
if (e.error === "UnknownFeed")
|
|
25383
25725
|
return new UnknownFeedError(e);
|
|
@@ -25388,9 +25730,9 @@ function toKnownErr85(e) {
|
|
|
25388
25730
|
// src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
25389
25731
|
var getFeedGenerator_exports = {};
|
|
25390
25732
|
__export(getFeedGenerator_exports, {
|
|
25391
|
-
toKnownErr: () =>
|
|
25733
|
+
toKnownErr: () => toKnownErr94
|
|
25392
25734
|
});
|
|
25393
|
-
function
|
|
25735
|
+
function toKnownErr94(e) {
|
|
25394
25736
|
if (e instanceof XRPCError) {
|
|
25395
25737
|
}
|
|
25396
25738
|
return e;
|
|
@@ -25399,9 +25741,9 @@ function toKnownErr86(e) {
|
|
|
25399
25741
|
// src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
25400
25742
|
var getFeedGenerators_exports = {};
|
|
25401
25743
|
__export(getFeedGenerators_exports, {
|
|
25402
|
-
toKnownErr: () =>
|
|
25744
|
+
toKnownErr: () => toKnownErr95
|
|
25403
25745
|
});
|
|
25404
|
-
function
|
|
25746
|
+
function toKnownErr95(e) {
|
|
25405
25747
|
if (e instanceof XRPCError) {
|
|
25406
25748
|
}
|
|
25407
25749
|
return e;
|
|
@@ -25411,14 +25753,14 @@ function toKnownErr87(e) {
|
|
|
25411
25753
|
var getFeedSkeleton_exports = {};
|
|
25412
25754
|
__export(getFeedSkeleton_exports, {
|
|
25413
25755
|
UnknownFeedError: () => UnknownFeedError2,
|
|
25414
|
-
toKnownErr: () =>
|
|
25756
|
+
toKnownErr: () => toKnownErr96
|
|
25415
25757
|
});
|
|
25416
25758
|
var UnknownFeedError2 = class extends XRPCError {
|
|
25417
25759
|
constructor(src2) {
|
|
25418
25760
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25419
25761
|
}
|
|
25420
25762
|
};
|
|
25421
|
-
function
|
|
25763
|
+
function toKnownErr96(e) {
|
|
25422
25764
|
if (e instanceof XRPCError) {
|
|
25423
25765
|
if (e.error === "UnknownFeed")
|
|
25424
25766
|
return new UnknownFeedError2(e);
|
|
@@ -25430,10 +25772,10 @@ function toKnownErr88(e) {
|
|
|
25430
25772
|
var getLikes_exports = {};
|
|
25431
25773
|
__export(getLikes_exports, {
|
|
25432
25774
|
isLike: () => isLike,
|
|
25433
|
-
toKnownErr: () =>
|
|
25775
|
+
toKnownErr: () => toKnownErr97,
|
|
25434
25776
|
validateLike: () => validateLike
|
|
25435
25777
|
});
|
|
25436
|
-
function
|
|
25778
|
+
function toKnownErr97(e) {
|
|
25437
25779
|
if (e instanceof XRPCError) {
|
|
25438
25780
|
}
|
|
25439
25781
|
return e;
|
|
@@ -25449,14 +25791,14 @@ function validateLike(v) {
|
|
|
25449
25791
|
var getListFeed_exports = {};
|
|
25450
25792
|
__export(getListFeed_exports, {
|
|
25451
25793
|
UnknownListError: () => UnknownListError,
|
|
25452
|
-
toKnownErr: () =>
|
|
25794
|
+
toKnownErr: () => toKnownErr98
|
|
25453
25795
|
});
|
|
25454
25796
|
var UnknownListError = class extends XRPCError {
|
|
25455
25797
|
constructor(src2) {
|
|
25456
25798
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25457
25799
|
}
|
|
25458
25800
|
};
|
|
25459
|
-
function
|
|
25801
|
+
function toKnownErr98(e) {
|
|
25460
25802
|
if (e instanceof XRPCError) {
|
|
25461
25803
|
if (e.error === "UnknownList")
|
|
25462
25804
|
return new UnknownListError(e);
|
|
@@ -25468,14 +25810,14 @@ function toKnownErr90(e) {
|
|
|
25468
25810
|
var getPostThread_exports = {};
|
|
25469
25811
|
__export(getPostThread_exports, {
|
|
25470
25812
|
NotFoundError: () => NotFoundError,
|
|
25471
|
-
toKnownErr: () =>
|
|
25813
|
+
toKnownErr: () => toKnownErr99
|
|
25472
25814
|
});
|
|
25473
25815
|
var NotFoundError = class extends XRPCError {
|
|
25474
25816
|
constructor(src2) {
|
|
25475
25817
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25476
25818
|
}
|
|
25477
25819
|
};
|
|
25478
|
-
function
|
|
25820
|
+
function toKnownErr99(e) {
|
|
25479
25821
|
if (e instanceof XRPCError) {
|
|
25480
25822
|
if (e.error === "NotFound")
|
|
25481
25823
|
return new NotFoundError(e);
|
|
@@ -25486,9 +25828,9 @@ function toKnownErr91(e) {
|
|
|
25486
25828
|
// src/client/types/app/bsky/feed/getPosts.ts
|
|
25487
25829
|
var getPosts_exports = {};
|
|
25488
25830
|
__export(getPosts_exports, {
|
|
25489
|
-
toKnownErr: () =>
|
|
25831
|
+
toKnownErr: () => toKnownErr100
|
|
25490
25832
|
});
|
|
25491
|
-
function
|
|
25833
|
+
function toKnownErr100(e) {
|
|
25492
25834
|
if (e instanceof XRPCError) {
|
|
25493
25835
|
}
|
|
25494
25836
|
return e;
|
|
@@ -25497,9 +25839,9 @@ function toKnownErr92(e) {
|
|
|
25497
25839
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
25498
25840
|
var getRepostedBy_exports = {};
|
|
25499
25841
|
__export(getRepostedBy_exports, {
|
|
25500
|
-
toKnownErr: () =>
|
|
25842
|
+
toKnownErr: () => toKnownErr101
|
|
25501
25843
|
});
|
|
25502
|
-
function
|
|
25844
|
+
function toKnownErr101(e) {
|
|
25503
25845
|
if (e instanceof XRPCError) {
|
|
25504
25846
|
}
|
|
25505
25847
|
return e;
|
|
@@ -25508,9 +25850,9 @@ function toKnownErr93(e) {
|
|
|
25508
25850
|
// src/client/types/app/bsky/feed/getSuggestedFeeds.ts
|
|
25509
25851
|
var getSuggestedFeeds_exports = {};
|
|
25510
25852
|
__export(getSuggestedFeeds_exports, {
|
|
25511
|
-
toKnownErr: () =>
|
|
25853
|
+
toKnownErr: () => toKnownErr102
|
|
25512
25854
|
});
|
|
25513
|
-
function
|
|
25855
|
+
function toKnownErr102(e) {
|
|
25514
25856
|
if (e instanceof XRPCError) {
|
|
25515
25857
|
}
|
|
25516
25858
|
return e;
|
|
@@ -25519,9 +25861,9 @@ function toKnownErr94(e) {
|
|
|
25519
25861
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
25520
25862
|
var getTimeline_exports = {};
|
|
25521
25863
|
__export(getTimeline_exports, {
|
|
25522
|
-
toKnownErr: () =>
|
|
25864
|
+
toKnownErr: () => toKnownErr103
|
|
25523
25865
|
});
|
|
25524
|
-
function
|
|
25866
|
+
function toKnownErr103(e) {
|
|
25525
25867
|
if (e instanceof XRPCError) {
|
|
25526
25868
|
}
|
|
25527
25869
|
return e;
|
|
@@ -25531,14 +25873,14 @@ function toKnownErr95(e) {
|
|
|
25531
25873
|
var searchPosts_exports = {};
|
|
25532
25874
|
__export(searchPosts_exports, {
|
|
25533
25875
|
BadQueryStringError: () => BadQueryStringError,
|
|
25534
|
-
toKnownErr: () =>
|
|
25876
|
+
toKnownErr: () => toKnownErr104
|
|
25535
25877
|
});
|
|
25536
25878
|
var BadQueryStringError = class extends XRPCError {
|
|
25537
25879
|
constructor(src2) {
|
|
25538
25880
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25539
25881
|
}
|
|
25540
25882
|
};
|
|
25541
|
-
function
|
|
25883
|
+
function toKnownErr104(e) {
|
|
25542
25884
|
if (e instanceof XRPCError) {
|
|
25543
25885
|
if (e.error === "BadQueryString")
|
|
25544
25886
|
return new BadQueryStringError(e);
|
|
@@ -25549,9 +25891,9 @@ function toKnownErr96(e) {
|
|
|
25549
25891
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
25550
25892
|
var getBlocks_exports2 = {};
|
|
25551
25893
|
__export(getBlocks_exports2, {
|
|
25552
|
-
toKnownErr: () =>
|
|
25894
|
+
toKnownErr: () => toKnownErr105
|
|
25553
25895
|
});
|
|
25554
|
-
function
|
|
25896
|
+
function toKnownErr105(e) {
|
|
25555
25897
|
if (e instanceof XRPCError) {
|
|
25556
25898
|
}
|
|
25557
25899
|
return e;
|
|
@@ -25560,9 +25902,9 @@ function toKnownErr97(e) {
|
|
|
25560
25902
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
25561
25903
|
var getFollowers_exports = {};
|
|
25562
25904
|
__export(getFollowers_exports, {
|
|
25563
|
-
toKnownErr: () =>
|
|
25905
|
+
toKnownErr: () => toKnownErr106
|
|
25564
25906
|
});
|
|
25565
|
-
function
|
|
25907
|
+
function toKnownErr106(e) {
|
|
25566
25908
|
if (e instanceof XRPCError) {
|
|
25567
25909
|
}
|
|
25568
25910
|
return e;
|
|
@@ -25571,9 +25913,9 @@ function toKnownErr98(e) {
|
|
|
25571
25913
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
25572
25914
|
var getFollows_exports = {};
|
|
25573
25915
|
__export(getFollows_exports, {
|
|
25574
|
-
toKnownErr: () =>
|
|
25916
|
+
toKnownErr: () => toKnownErr107
|
|
25575
25917
|
});
|
|
25576
|
-
function
|
|
25918
|
+
function toKnownErr107(e) {
|
|
25577
25919
|
if (e instanceof XRPCError) {
|
|
25578
25920
|
}
|
|
25579
25921
|
return e;
|
|
@@ -25582,9 +25924,9 @@ function toKnownErr99(e) {
|
|
|
25582
25924
|
// src/client/types/app/bsky/graph/getList.ts
|
|
25583
25925
|
var getList_exports = {};
|
|
25584
25926
|
__export(getList_exports, {
|
|
25585
|
-
toKnownErr: () =>
|
|
25927
|
+
toKnownErr: () => toKnownErr108
|
|
25586
25928
|
});
|
|
25587
|
-
function
|
|
25929
|
+
function toKnownErr108(e) {
|
|
25588
25930
|
if (e instanceof XRPCError) {
|
|
25589
25931
|
}
|
|
25590
25932
|
return e;
|
|
@@ -25593,9 +25935,9 @@ function toKnownErr100(e) {
|
|
|
25593
25935
|
// src/client/types/app/bsky/graph/getListBlocks.ts
|
|
25594
25936
|
var getListBlocks_exports = {};
|
|
25595
25937
|
__export(getListBlocks_exports, {
|
|
25596
|
-
toKnownErr: () =>
|
|
25938
|
+
toKnownErr: () => toKnownErr109
|
|
25597
25939
|
});
|
|
25598
|
-
function
|
|
25940
|
+
function toKnownErr109(e) {
|
|
25599
25941
|
if (e instanceof XRPCError) {
|
|
25600
25942
|
}
|
|
25601
25943
|
return e;
|
|
@@ -25604,9 +25946,9 @@ function toKnownErr101(e) {
|
|
|
25604
25946
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
25605
25947
|
var getListMutes_exports = {};
|
|
25606
25948
|
__export(getListMutes_exports, {
|
|
25607
|
-
toKnownErr: () =>
|
|
25949
|
+
toKnownErr: () => toKnownErr110
|
|
25608
25950
|
});
|
|
25609
|
-
function
|
|
25951
|
+
function toKnownErr110(e) {
|
|
25610
25952
|
if (e instanceof XRPCError) {
|
|
25611
25953
|
}
|
|
25612
25954
|
return e;
|
|
@@ -25615,9 +25957,9 @@ function toKnownErr102(e) {
|
|
|
25615
25957
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
25616
25958
|
var getLists_exports = {};
|
|
25617
25959
|
__export(getLists_exports, {
|
|
25618
|
-
toKnownErr: () =>
|
|
25960
|
+
toKnownErr: () => toKnownErr111
|
|
25619
25961
|
});
|
|
25620
|
-
function
|
|
25962
|
+
function toKnownErr111(e) {
|
|
25621
25963
|
if (e instanceof XRPCError) {
|
|
25622
25964
|
}
|
|
25623
25965
|
return e;
|
|
@@ -25626,9 +25968,9 @@ function toKnownErr103(e) {
|
|
|
25626
25968
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
25627
25969
|
var getMutes_exports = {};
|
|
25628
25970
|
__export(getMutes_exports, {
|
|
25629
|
-
toKnownErr: () =>
|
|
25971
|
+
toKnownErr: () => toKnownErr112
|
|
25630
25972
|
});
|
|
25631
|
-
function
|
|
25973
|
+
function toKnownErr112(e) {
|
|
25632
25974
|
if (e instanceof XRPCError) {
|
|
25633
25975
|
}
|
|
25634
25976
|
return e;
|
|
@@ -25638,14 +25980,14 @@ function toKnownErr104(e) {
|
|
|
25638
25980
|
var getRelationships_exports = {};
|
|
25639
25981
|
__export(getRelationships_exports, {
|
|
25640
25982
|
ActorNotFoundError: () => ActorNotFoundError,
|
|
25641
|
-
toKnownErr: () =>
|
|
25983
|
+
toKnownErr: () => toKnownErr113
|
|
25642
25984
|
});
|
|
25643
25985
|
var ActorNotFoundError = class extends XRPCError {
|
|
25644
25986
|
constructor(src2) {
|
|
25645
25987
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25646
25988
|
}
|
|
25647
25989
|
};
|
|
25648
|
-
function
|
|
25990
|
+
function toKnownErr113(e) {
|
|
25649
25991
|
if (e instanceof XRPCError) {
|
|
25650
25992
|
if (e.error === "ActorNotFound")
|
|
25651
25993
|
return new ActorNotFoundError(e);
|
|
@@ -25656,9 +25998,9 @@ function toKnownErr105(e) {
|
|
|
25656
25998
|
// src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
25657
25999
|
var getSuggestedFollowsByActor_exports = {};
|
|
25658
26000
|
__export(getSuggestedFollowsByActor_exports, {
|
|
25659
|
-
toKnownErr: () =>
|
|
26001
|
+
toKnownErr: () => toKnownErr114
|
|
25660
26002
|
});
|
|
25661
|
-
function
|
|
26003
|
+
function toKnownErr114(e) {
|
|
25662
26004
|
if (e instanceof XRPCError) {
|
|
25663
26005
|
}
|
|
25664
26006
|
return e;
|
|
@@ -25667,9 +26009,9 @@ function toKnownErr106(e) {
|
|
|
25667
26009
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
25668
26010
|
var muteActor_exports = {};
|
|
25669
26011
|
__export(muteActor_exports, {
|
|
25670
|
-
toKnownErr: () =>
|
|
26012
|
+
toKnownErr: () => toKnownErr115
|
|
25671
26013
|
});
|
|
25672
|
-
function
|
|
26014
|
+
function toKnownErr115(e) {
|
|
25673
26015
|
if (e instanceof XRPCError) {
|
|
25674
26016
|
}
|
|
25675
26017
|
return e;
|
|
@@ -25678,9 +26020,9 @@ function toKnownErr107(e) {
|
|
|
25678
26020
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
25679
26021
|
var muteActorList_exports = {};
|
|
25680
26022
|
__export(muteActorList_exports, {
|
|
25681
|
-
toKnownErr: () =>
|
|
26023
|
+
toKnownErr: () => toKnownErr116
|
|
25682
26024
|
});
|
|
25683
|
-
function
|
|
26025
|
+
function toKnownErr116(e) {
|
|
25684
26026
|
if (e instanceof XRPCError) {
|
|
25685
26027
|
}
|
|
25686
26028
|
return e;
|
|
@@ -25689,9 +26031,9 @@ function toKnownErr108(e) {
|
|
|
25689
26031
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
25690
26032
|
var unmuteActor_exports = {};
|
|
25691
26033
|
__export(unmuteActor_exports, {
|
|
25692
|
-
toKnownErr: () =>
|
|
26034
|
+
toKnownErr: () => toKnownErr117
|
|
25693
26035
|
});
|
|
25694
|
-
function
|
|
26036
|
+
function toKnownErr117(e) {
|
|
25695
26037
|
if (e instanceof XRPCError) {
|
|
25696
26038
|
}
|
|
25697
26039
|
return e;
|
|
@@ -25700,9 +26042,9 @@ function toKnownErr109(e) {
|
|
|
25700
26042
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
25701
26043
|
var unmuteActorList_exports = {};
|
|
25702
26044
|
__export(unmuteActorList_exports, {
|
|
25703
|
-
toKnownErr: () =>
|
|
26045
|
+
toKnownErr: () => toKnownErr118
|
|
25704
26046
|
});
|
|
25705
|
-
function
|
|
26047
|
+
function toKnownErr118(e) {
|
|
25706
26048
|
if (e instanceof XRPCError) {
|
|
25707
26049
|
}
|
|
25708
26050
|
return e;
|
|
@@ -25711,9 +26053,9 @@ function toKnownErr110(e) {
|
|
|
25711
26053
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
25712
26054
|
var getUnreadCount_exports = {};
|
|
25713
26055
|
__export(getUnreadCount_exports, {
|
|
25714
|
-
toKnownErr: () =>
|
|
26056
|
+
toKnownErr: () => toKnownErr119
|
|
25715
26057
|
});
|
|
25716
|
-
function
|
|
26058
|
+
function toKnownErr119(e) {
|
|
25717
26059
|
if (e instanceof XRPCError) {
|
|
25718
26060
|
}
|
|
25719
26061
|
return e;
|
|
@@ -25723,10 +26065,10 @@ function toKnownErr111(e) {
|
|
|
25723
26065
|
var listNotifications_exports = {};
|
|
25724
26066
|
__export(listNotifications_exports, {
|
|
25725
26067
|
isNotification: () => isNotification,
|
|
25726
|
-
toKnownErr: () =>
|
|
26068
|
+
toKnownErr: () => toKnownErr120,
|
|
25727
26069
|
validateNotification: () => validateNotification
|
|
25728
26070
|
});
|
|
25729
|
-
function
|
|
26071
|
+
function toKnownErr120(e) {
|
|
25730
26072
|
if (e instanceof XRPCError) {
|
|
25731
26073
|
}
|
|
25732
26074
|
return e;
|
|
@@ -25741,9 +26083,9 @@ function validateNotification(v) {
|
|
|
25741
26083
|
// src/client/types/app/bsky/notification/registerPush.ts
|
|
25742
26084
|
var registerPush_exports = {};
|
|
25743
26085
|
__export(registerPush_exports, {
|
|
25744
|
-
toKnownErr: () =>
|
|
26086
|
+
toKnownErr: () => toKnownErr121
|
|
25745
26087
|
});
|
|
25746
|
-
function
|
|
26088
|
+
function toKnownErr121(e) {
|
|
25747
26089
|
if (e instanceof XRPCError) {
|
|
25748
26090
|
}
|
|
25749
26091
|
return e;
|
|
@@ -25752,9 +26094,9 @@ function toKnownErr113(e) {
|
|
|
25752
26094
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
25753
26095
|
var updateSeen_exports = {};
|
|
25754
26096
|
__export(updateSeen_exports, {
|
|
25755
|
-
toKnownErr: () =>
|
|
26097
|
+
toKnownErr: () => toKnownErr122
|
|
25756
26098
|
});
|
|
25757
|
-
function
|
|
26099
|
+
function toKnownErr122(e) {
|
|
25758
26100
|
if (e instanceof XRPCError) {
|
|
25759
26101
|
}
|
|
25760
26102
|
return e;
|
|
@@ -25763,9 +26105,9 @@ function toKnownErr114(e) {
|
|
|
25763
26105
|
// src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
25764
26106
|
var getPopularFeedGenerators_exports = {};
|
|
25765
26107
|
__export(getPopularFeedGenerators_exports, {
|
|
25766
|
-
toKnownErr: () =>
|
|
26108
|
+
toKnownErr: () => toKnownErr123
|
|
25767
26109
|
});
|
|
25768
|
-
function
|
|
26110
|
+
function toKnownErr123(e) {
|
|
25769
26111
|
if (e instanceof XRPCError) {
|
|
25770
26112
|
}
|
|
25771
26113
|
return e;
|
|
@@ -25775,10 +26117,10 @@ function toKnownErr115(e) {
|
|
|
25775
26117
|
var getTaggedSuggestions_exports = {};
|
|
25776
26118
|
__export(getTaggedSuggestions_exports, {
|
|
25777
26119
|
isSuggestion: () => isSuggestion,
|
|
25778
|
-
toKnownErr: () =>
|
|
26120
|
+
toKnownErr: () => toKnownErr124,
|
|
25779
26121
|
validateSuggestion: () => validateSuggestion
|
|
25780
26122
|
});
|
|
25781
|
-
function
|
|
26123
|
+
function toKnownErr124(e) {
|
|
25782
26124
|
if (e instanceof XRPCError) {
|
|
25783
26125
|
}
|
|
25784
26126
|
return e;
|
|
@@ -25794,14 +26136,14 @@ function validateSuggestion(v) {
|
|
|
25794
26136
|
var searchActorsSkeleton_exports = {};
|
|
25795
26137
|
__export(searchActorsSkeleton_exports, {
|
|
25796
26138
|
BadQueryStringError: () => BadQueryStringError2,
|
|
25797
|
-
toKnownErr: () =>
|
|
26139
|
+
toKnownErr: () => toKnownErr125
|
|
25798
26140
|
});
|
|
25799
26141
|
var BadQueryStringError2 = class extends XRPCError {
|
|
25800
26142
|
constructor(src2) {
|
|
25801
26143
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25802
26144
|
}
|
|
25803
26145
|
};
|
|
25804
|
-
function
|
|
26146
|
+
function toKnownErr125(e) {
|
|
25805
26147
|
if (e instanceof XRPCError) {
|
|
25806
26148
|
if (e.error === "BadQueryString")
|
|
25807
26149
|
return new BadQueryStringError2(e);
|
|
@@ -25813,14 +26155,14 @@ function toKnownErr117(e) {
|
|
|
25813
26155
|
var searchPostsSkeleton_exports = {};
|
|
25814
26156
|
__export(searchPostsSkeleton_exports, {
|
|
25815
26157
|
BadQueryStringError: () => BadQueryStringError3,
|
|
25816
|
-
toKnownErr: () =>
|
|
26158
|
+
toKnownErr: () => toKnownErr126
|
|
25817
26159
|
});
|
|
25818
26160
|
var BadQueryStringError3 = class extends XRPCError {
|
|
25819
26161
|
constructor(src2) {
|
|
25820
26162
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25821
26163
|
}
|
|
25822
26164
|
};
|
|
25823
|
-
function
|
|
26165
|
+
function toKnownErr126(e) {
|
|
25824
26166
|
if (e instanceof XRPCError) {
|
|
25825
26167
|
if (e.error === "BadQueryString")
|
|
25826
26168
|
return new BadQueryStringError3(e);
|
|
@@ -26211,12 +26553,14 @@ var subscribeRepos_exports = {};
|
|
|
26211
26553
|
__export(subscribeRepos_exports, {
|
|
26212
26554
|
isCommit: () => isCommit,
|
|
26213
26555
|
isHandle: () => isHandle,
|
|
26556
|
+
isIdentity: () => isIdentity,
|
|
26214
26557
|
isInfo: () => isInfo2,
|
|
26215
26558
|
isMigrate: () => isMigrate,
|
|
26216
26559
|
isRepoOp: () => isRepoOp,
|
|
26217
26560
|
isTombstone: () => isTombstone,
|
|
26218
26561
|
validateCommit: () => validateCommit,
|
|
26219
26562
|
validateHandle: () => validateHandle,
|
|
26563
|
+
validateIdentity: () => validateIdentity,
|
|
26220
26564
|
validateInfo: () => validateInfo2,
|
|
26221
26565
|
validateMigrate: () => validateMigrate,
|
|
26222
26566
|
validateRepoOp: () => validateRepoOp,
|
|
@@ -26228,6 +26572,12 @@ function isCommit(v) {
|
|
|
26228
26572
|
function validateCommit(v) {
|
|
26229
26573
|
return lexicons.validate("com.atproto.sync.subscribeRepos#commit", v);
|
|
26230
26574
|
}
|
|
26575
|
+
function isIdentity(v) {
|
|
26576
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#identity";
|
|
26577
|
+
}
|
|
26578
|
+
function validateIdentity(v) {
|
|
26579
|
+
return lexicons.validate("com.atproto.sync.subscribeRepos#identity", v);
|
|
26580
|
+
}
|
|
26231
26581
|
function isHandle(v) {
|
|
26232
26582
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#handle";
|
|
26233
26583
|
}
|
|
@@ -26265,7 +26615,10 @@ __export(defs_exports5, {
|
|
|
26265
26615
|
isAdultContentPref: () => isAdultContentPref,
|
|
26266
26616
|
isContentLabelPref: () => isContentLabelPref,
|
|
26267
26617
|
isFeedViewPref: () => isFeedViewPref,
|
|
26618
|
+
isHiddenPostsPref: () => isHiddenPostsPref,
|
|
26268
26619
|
isInterestsPref: () => isInterestsPref,
|
|
26620
|
+
isMutedWord: () => isMutedWord,
|
|
26621
|
+
isMutedWordsPref: () => isMutedWordsPref,
|
|
26269
26622
|
isPersonalDetailsPref: () => isPersonalDetailsPref,
|
|
26270
26623
|
isProfileView: () => isProfileView,
|
|
26271
26624
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
@@ -26276,7 +26629,10 @@ __export(defs_exports5, {
|
|
|
26276
26629
|
validateAdultContentPref: () => validateAdultContentPref,
|
|
26277
26630
|
validateContentLabelPref: () => validateContentLabelPref,
|
|
26278
26631
|
validateFeedViewPref: () => validateFeedViewPref,
|
|
26632
|
+
validateHiddenPostsPref: () => validateHiddenPostsPref,
|
|
26279
26633
|
validateInterestsPref: () => validateInterestsPref,
|
|
26634
|
+
validateMutedWord: () => validateMutedWord,
|
|
26635
|
+
validateMutedWordsPref: () => validateMutedWordsPref,
|
|
26280
26636
|
validatePersonalDetailsPref: () => validatePersonalDetailsPref,
|
|
26281
26637
|
validateProfileView: () => validateProfileView,
|
|
26282
26638
|
validateProfileViewBasic: () => validateProfileViewBasic,
|
|
@@ -26351,6 +26707,24 @@ function isInterestsPref(v) {
|
|
|
26351
26707
|
function validateInterestsPref(v) {
|
|
26352
26708
|
return lexicons.validate("app.bsky.actor.defs#interestsPref", v);
|
|
26353
26709
|
}
|
|
26710
|
+
function isMutedWord(v) {
|
|
26711
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWord";
|
|
26712
|
+
}
|
|
26713
|
+
function validateMutedWord(v) {
|
|
26714
|
+
return lexicons.validate("app.bsky.actor.defs#mutedWord", v);
|
|
26715
|
+
}
|
|
26716
|
+
function isMutedWordsPref(v) {
|
|
26717
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWordsPref";
|
|
26718
|
+
}
|
|
26719
|
+
function validateMutedWordsPref(v) {
|
|
26720
|
+
return lexicons.validate("app.bsky.actor.defs#mutedWordsPref", v);
|
|
26721
|
+
}
|
|
26722
|
+
function isHiddenPostsPref(v) {
|
|
26723
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#hiddenPostsPref";
|
|
26724
|
+
}
|
|
26725
|
+
function validateHiddenPostsPref(v) {
|
|
26726
|
+
return lexicons.validate("app.bsky.actor.defs#hiddenPostsPref", v);
|
|
26727
|
+
}
|
|
26354
26728
|
|
|
26355
26729
|
// src/client/types/app/bsky/actor/profile.ts
|
|
26356
26730
|
var profile_exports = {};
|
|
@@ -27098,14 +27472,19 @@ var ComAtprotoAdminNS = class {
|
|
|
27098
27472
|
throw toKnownErr21(e);
|
|
27099
27473
|
});
|
|
27100
27474
|
}
|
|
27475
|
+
updateAccountPassword(data, opts) {
|
|
27476
|
+
return this._service.xrpc.call("com.atproto.admin.updateAccountPassword", opts?.qp, data, opts).catch((e) => {
|
|
27477
|
+
throw toKnownErr22(e);
|
|
27478
|
+
});
|
|
27479
|
+
}
|
|
27101
27480
|
updateCommunicationTemplate(data, opts) {
|
|
27102
27481
|
return this._service.xrpc.call("com.atproto.admin.updateCommunicationTemplate", opts?.qp, data, opts).catch((e) => {
|
|
27103
|
-
throw
|
|
27482
|
+
throw toKnownErr23(e);
|
|
27104
27483
|
});
|
|
27105
27484
|
}
|
|
27106
27485
|
updateSubjectStatus(data, opts) {
|
|
27107
27486
|
return this._service.xrpc.call("com.atproto.admin.updateSubjectStatus", opts?.qp, data, opts).catch((e) => {
|
|
27108
|
-
throw
|
|
27487
|
+
throw toKnownErr24(e);
|
|
27109
27488
|
});
|
|
27110
27489
|
}
|
|
27111
27490
|
};
|
|
@@ -27113,14 +27492,34 @@ var ComAtprotoIdentityNS = class {
|
|
|
27113
27492
|
constructor(service2) {
|
|
27114
27493
|
this._service = service2;
|
|
27115
27494
|
}
|
|
27495
|
+
getRecommendedDidCredentials(params2, opts) {
|
|
27496
|
+
return this._service.xrpc.call("com.atproto.identity.getRecommendedDidCredentials", params2, void 0, opts).catch((e) => {
|
|
27497
|
+
throw toKnownErr25(e);
|
|
27498
|
+
});
|
|
27499
|
+
}
|
|
27500
|
+
requestPlcOperationSignature(data, opts) {
|
|
27501
|
+
return this._service.xrpc.call("com.atproto.identity.requestPlcOperationSignature", opts?.qp, data, opts).catch((e) => {
|
|
27502
|
+
throw toKnownErr26(e);
|
|
27503
|
+
});
|
|
27504
|
+
}
|
|
27116
27505
|
resolveHandle(params2, opts) {
|
|
27117
27506
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
27118
|
-
throw
|
|
27507
|
+
throw toKnownErr27(e);
|
|
27508
|
+
});
|
|
27509
|
+
}
|
|
27510
|
+
signPlcOperation(data, opts) {
|
|
27511
|
+
return this._service.xrpc.call("com.atproto.identity.signPlcOperation", opts?.qp, data, opts).catch((e) => {
|
|
27512
|
+
throw toKnownErr28(e);
|
|
27513
|
+
});
|
|
27514
|
+
}
|
|
27515
|
+
submitPlcOperation(data, opts) {
|
|
27516
|
+
return this._service.xrpc.call("com.atproto.identity.submitPlcOperation", opts?.qp, data, opts).catch((e) => {
|
|
27517
|
+
throw toKnownErr29(e);
|
|
27119
27518
|
});
|
|
27120
27519
|
}
|
|
27121
27520
|
updateHandle(data, opts) {
|
|
27122
27521
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
27123
|
-
throw
|
|
27522
|
+
throw toKnownErr30(e);
|
|
27124
27523
|
});
|
|
27125
27524
|
}
|
|
27126
27525
|
};
|
|
@@ -27130,7 +27529,7 @@ var ComAtprotoLabelNS = class {
|
|
|
27130
27529
|
}
|
|
27131
27530
|
queryLabels(params2, opts) {
|
|
27132
27531
|
return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
|
|
27133
|
-
throw
|
|
27532
|
+
throw toKnownErr31(e);
|
|
27134
27533
|
});
|
|
27135
27534
|
}
|
|
27136
27535
|
};
|
|
@@ -27140,7 +27539,7 @@ var ComAtprotoModerationNS = class {
|
|
|
27140
27539
|
}
|
|
27141
27540
|
createReport(data, opts) {
|
|
27142
27541
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
27143
|
-
throw
|
|
27542
|
+
throw toKnownErr32(e);
|
|
27144
27543
|
});
|
|
27145
27544
|
}
|
|
27146
27545
|
};
|
|
@@ -27150,42 +27549,52 @@ var ComAtprotoRepoNS = class {
|
|
|
27150
27549
|
}
|
|
27151
27550
|
applyWrites(data, opts) {
|
|
27152
27551
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
27153
|
-
throw
|
|
27552
|
+
throw toKnownErr33(e);
|
|
27154
27553
|
});
|
|
27155
27554
|
}
|
|
27156
27555
|
createRecord(data, opts) {
|
|
27157
27556
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
27158
|
-
throw
|
|
27557
|
+
throw toKnownErr34(e);
|
|
27159
27558
|
});
|
|
27160
27559
|
}
|
|
27161
27560
|
deleteRecord(data, opts) {
|
|
27162
27561
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
27163
|
-
throw
|
|
27562
|
+
throw toKnownErr35(e);
|
|
27164
27563
|
});
|
|
27165
27564
|
}
|
|
27166
27565
|
describeRepo(params2, opts) {
|
|
27167
27566
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
27168
|
-
throw
|
|
27567
|
+
throw toKnownErr36(e);
|
|
27169
27568
|
});
|
|
27170
27569
|
}
|
|
27171
27570
|
getRecord(params2, opts) {
|
|
27172
27571
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
27173
|
-
throw
|
|
27572
|
+
throw toKnownErr37(e);
|
|
27573
|
+
});
|
|
27574
|
+
}
|
|
27575
|
+
importRepo(data, opts) {
|
|
27576
|
+
return this._service.xrpc.call("com.atproto.repo.importRepo", opts?.qp, data, opts).catch((e) => {
|
|
27577
|
+
throw toKnownErr38(e);
|
|
27578
|
+
});
|
|
27579
|
+
}
|
|
27580
|
+
listMissingBlobs(params2, opts) {
|
|
27581
|
+
return this._service.xrpc.call("com.atproto.repo.listMissingBlobs", params2, void 0, opts).catch((e) => {
|
|
27582
|
+
throw toKnownErr39(e);
|
|
27174
27583
|
});
|
|
27175
27584
|
}
|
|
27176
27585
|
listRecords(params2, opts) {
|
|
27177
27586
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
27178
|
-
throw
|
|
27587
|
+
throw toKnownErr40(e);
|
|
27179
27588
|
});
|
|
27180
27589
|
}
|
|
27181
27590
|
putRecord(data, opts) {
|
|
27182
27591
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
27183
|
-
throw
|
|
27592
|
+
throw toKnownErr41(e);
|
|
27184
27593
|
});
|
|
27185
27594
|
}
|
|
27186
27595
|
uploadBlob(data, opts) {
|
|
27187
27596
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
27188
|
-
throw
|
|
27597
|
+
throw toKnownErr42(e);
|
|
27189
27598
|
});
|
|
27190
27599
|
}
|
|
27191
27600
|
};
|
|
@@ -27193,109 +27602,129 @@ var ComAtprotoServerNS = class {
|
|
|
27193
27602
|
constructor(service2) {
|
|
27194
27603
|
this._service = service2;
|
|
27195
27604
|
}
|
|
27605
|
+
activateAccount(data, opts) {
|
|
27606
|
+
return this._service.xrpc.call("com.atproto.server.activateAccount", opts?.qp, data, opts).catch((e) => {
|
|
27607
|
+
throw toKnownErr43(e);
|
|
27608
|
+
});
|
|
27609
|
+
}
|
|
27610
|
+
checkAccountStatus(params2, opts) {
|
|
27611
|
+
return this._service.xrpc.call("com.atproto.server.checkAccountStatus", params2, void 0, opts).catch((e) => {
|
|
27612
|
+
throw toKnownErr44(e);
|
|
27613
|
+
});
|
|
27614
|
+
}
|
|
27196
27615
|
confirmEmail(data, opts) {
|
|
27197
27616
|
return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
|
|
27198
|
-
throw
|
|
27617
|
+
throw toKnownErr45(e);
|
|
27199
27618
|
});
|
|
27200
27619
|
}
|
|
27201
27620
|
createAccount(data, opts) {
|
|
27202
27621
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
27203
|
-
throw
|
|
27622
|
+
throw toKnownErr46(e);
|
|
27204
27623
|
});
|
|
27205
27624
|
}
|
|
27206
27625
|
createAppPassword(data, opts) {
|
|
27207
27626
|
return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
27208
|
-
throw
|
|
27627
|
+
throw toKnownErr47(e);
|
|
27209
27628
|
});
|
|
27210
27629
|
}
|
|
27211
27630
|
createInviteCode(data, opts) {
|
|
27212
27631
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
27213
|
-
throw
|
|
27632
|
+
throw toKnownErr48(e);
|
|
27214
27633
|
});
|
|
27215
27634
|
}
|
|
27216
27635
|
createInviteCodes(data, opts) {
|
|
27217
27636
|
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
27218
|
-
throw
|
|
27637
|
+
throw toKnownErr49(e);
|
|
27219
27638
|
});
|
|
27220
27639
|
}
|
|
27221
27640
|
createSession(data, opts) {
|
|
27222
27641
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
27223
|
-
throw
|
|
27642
|
+
throw toKnownErr50(e);
|
|
27643
|
+
});
|
|
27644
|
+
}
|
|
27645
|
+
deactivateAccount(data, opts) {
|
|
27646
|
+
return this._service.xrpc.call("com.atproto.server.deactivateAccount", opts?.qp, data, opts).catch((e) => {
|
|
27647
|
+
throw toKnownErr51(e);
|
|
27224
27648
|
});
|
|
27225
27649
|
}
|
|
27226
27650
|
deleteAccount(data, opts) {
|
|
27227
27651
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
27228
|
-
throw
|
|
27652
|
+
throw toKnownErr52(e);
|
|
27229
27653
|
});
|
|
27230
27654
|
}
|
|
27231
27655
|
deleteSession(data, opts) {
|
|
27232
27656
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
27233
|
-
throw
|
|
27657
|
+
throw toKnownErr53(e);
|
|
27234
27658
|
});
|
|
27235
27659
|
}
|
|
27236
27660
|
describeServer(params2, opts) {
|
|
27237
27661
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
27238
|
-
throw
|
|
27662
|
+
throw toKnownErr54(e);
|
|
27239
27663
|
});
|
|
27240
27664
|
}
|
|
27241
27665
|
getAccountInviteCodes(params2, opts) {
|
|
27242
27666
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
27243
|
-
throw
|
|
27667
|
+
throw toKnownErr55(e);
|
|
27668
|
+
});
|
|
27669
|
+
}
|
|
27670
|
+
getServiceAuth(params2, opts) {
|
|
27671
|
+
return this._service.xrpc.call("com.atproto.server.getServiceAuth", params2, void 0, opts).catch((e) => {
|
|
27672
|
+
throw toKnownErr56(e);
|
|
27244
27673
|
});
|
|
27245
27674
|
}
|
|
27246
27675
|
getSession(params2, opts) {
|
|
27247
27676
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
27248
|
-
throw
|
|
27677
|
+
throw toKnownErr57(e);
|
|
27249
27678
|
});
|
|
27250
27679
|
}
|
|
27251
27680
|
listAppPasswords(params2, opts) {
|
|
27252
27681
|
return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
|
|
27253
|
-
throw
|
|
27682
|
+
throw toKnownErr58(e);
|
|
27254
27683
|
});
|
|
27255
27684
|
}
|
|
27256
27685
|
refreshSession(data, opts) {
|
|
27257
27686
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
27258
|
-
throw
|
|
27687
|
+
throw toKnownErr59(e);
|
|
27259
27688
|
});
|
|
27260
27689
|
}
|
|
27261
27690
|
requestAccountDelete(data, opts) {
|
|
27262
27691
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
27263
|
-
throw
|
|
27692
|
+
throw toKnownErr60(e);
|
|
27264
27693
|
});
|
|
27265
27694
|
}
|
|
27266
27695
|
requestEmailConfirmation(data, opts) {
|
|
27267
27696
|
return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
|
|
27268
|
-
throw
|
|
27697
|
+
throw toKnownErr61(e);
|
|
27269
27698
|
});
|
|
27270
27699
|
}
|
|
27271
27700
|
requestEmailUpdate(data, opts) {
|
|
27272
27701
|
return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
|
|
27273
|
-
throw
|
|
27702
|
+
throw toKnownErr62(e);
|
|
27274
27703
|
});
|
|
27275
27704
|
}
|
|
27276
27705
|
requestPasswordReset(data, opts) {
|
|
27277
27706
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
27278
|
-
throw
|
|
27707
|
+
throw toKnownErr63(e);
|
|
27279
27708
|
});
|
|
27280
27709
|
}
|
|
27281
27710
|
reserveSigningKey(data, opts) {
|
|
27282
27711
|
return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
|
|
27283
|
-
throw
|
|
27712
|
+
throw toKnownErr64(e);
|
|
27284
27713
|
});
|
|
27285
27714
|
}
|
|
27286
27715
|
resetPassword(data, opts) {
|
|
27287
27716
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
27288
|
-
throw
|
|
27717
|
+
throw toKnownErr65(e);
|
|
27289
27718
|
});
|
|
27290
27719
|
}
|
|
27291
27720
|
revokeAppPassword(data, opts) {
|
|
27292
27721
|
return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
27293
|
-
throw
|
|
27722
|
+
throw toKnownErr66(e);
|
|
27294
27723
|
});
|
|
27295
27724
|
}
|
|
27296
27725
|
updateEmail(data, opts) {
|
|
27297
27726
|
return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
|
|
27298
|
-
throw
|
|
27727
|
+
throw toKnownErr67(e);
|
|
27299
27728
|
});
|
|
27300
27729
|
}
|
|
27301
27730
|
};
|
|
@@ -27305,57 +27734,57 @@ var ComAtprotoSyncNS = class {
|
|
|
27305
27734
|
}
|
|
27306
27735
|
getBlob(params2, opts) {
|
|
27307
27736
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
27308
|
-
throw
|
|
27737
|
+
throw toKnownErr68(e);
|
|
27309
27738
|
});
|
|
27310
27739
|
}
|
|
27311
27740
|
getBlocks(params2, opts) {
|
|
27312
27741
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
27313
|
-
throw
|
|
27742
|
+
throw toKnownErr69(e);
|
|
27314
27743
|
});
|
|
27315
27744
|
}
|
|
27316
27745
|
getCheckout(params2, opts) {
|
|
27317
27746
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
27318
|
-
throw
|
|
27747
|
+
throw toKnownErr70(e);
|
|
27319
27748
|
});
|
|
27320
27749
|
}
|
|
27321
27750
|
getHead(params2, opts) {
|
|
27322
27751
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
27323
|
-
throw
|
|
27752
|
+
throw toKnownErr71(e);
|
|
27324
27753
|
});
|
|
27325
27754
|
}
|
|
27326
27755
|
getLatestCommit(params2, opts) {
|
|
27327
27756
|
return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
|
|
27328
|
-
throw
|
|
27757
|
+
throw toKnownErr72(e);
|
|
27329
27758
|
});
|
|
27330
27759
|
}
|
|
27331
27760
|
getRecord(params2, opts) {
|
|
27332
27761
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
27333
|
-
throw
|
|
27762
|
+
throw toKnownErr73(e);
|
|
27334
27763
|
});
|
|
27335
27764
|
}
|
|
27336
27765
|
getRepo(params2, opts) {
|
|
27337
27766
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
27338
|
-
throw
|
|
27767
|
+
throw toKnownErr74(e);
|
|
27339
27768
|
});
|
|
27340
27769
|
}
|
|
27341
27770
|
listBlobs(params2, opts) {
|
|
27342
27771
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
27343
|
-
throw
|
|
27772
|
+
throw toKnownErr75(e);
|
|
27344
27773
|
});
|
|
27345
27774
|
}
|
|
27346
27775
|
listRepos(params2, opts) {
|
|
27347
27776
|
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
27348
|
-
throw
|
|
27777
|
+
throw toKnownErr76(e);
|
|
27349
27778
|
});
|
|
27350
27779
|
}
|
|
27351
27780
|
notifyOfUpdate(data, opts) {
|
|
27352
27781
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
|
|
27353
|
-
throw
|
|
27782
|
+
throw toKnownErr77(e);
|
|
27354
27783
|
});
|
|
27355
27784
|
}
|
|
27356
27785
|
requestCrawl(data, opts) {
|
|
27357
27786
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
|
|
27358
|
-
throw
|
|
27787
|
+
throw toKnownErr78(e);
|
|
27359
27788
|
});
|
|
27360
27789
|
}
|
|
27361
27790
|
};
|
|
@@ -27365,32 +27794,17 @@ var ComAtprotoTempNS = class {
|
|
|
27365
27794
|
}
|
|
27366
27795
|
checkSignupQueue(params2, opts) {
|
|
27367
27796
|
return this._service.xrpc.call("com.atproto.temp.checkSignupQueue", params2, void 0, opts).catch((e) => {
|
|
27368
|
-
throw
|
|
27797
|
+
throw toKnownErr79(e);
|
|
27369
27798
|
});
|
|
27370
27799
|
}
|
|
27371
27800
|
fetchLabels(params2, opts) {
|
|
27372
27801
|
return this._service.xrpc.call("com.atproto.temp.fetchLabels", params2, void 0, opts).catch((e) => {
|
|
27373
|
-
throw
|
|
27374
|
-
});
|
|
27375
|
-
}
|
|
27376
|
-
importRepo(data, opts) {
|
|
27377
|
-
return this._service.xrpc.call("com.atproto.temp.importRepo", opts?.qp, data, opts).catch((e) => {
|
|
27378
|
-
throw toKnownErr70(e);
|
|
27379
|
-
});
|
|
27380
|
-
}
|
|
27381
|
-
pushBlob(data, opts) {
|
|
27382
|
-
return this._service.xrpc.call("com.atproto.temp.pushBlob", opts?.qp, data, opts).catch((e) => {
|
|
27383
|
-
throw toKnownErr71(e);
|
|
27802
|
+
throw toKnownErr80(e);
|
|
27384
27803
|
});
|
|
27385
27804
|
}
|
|
27386
27805
|
requestPhoneVerification(data, opts) {
|
|
27387
27806
|
return this._service.xrpc.call("com.atproto.temp.requestPhoneVerification", opts?.qp, data, opts).catch((e) => {
|
|
27388
|
-
throw
|
|
27389
|
-
});
|
|
27390
|
-
}
|
|
27391
|
-
transferAccount(data, opts) {
|
|
27392
|
-
return this._service.xrpc.call("com.atproto.temp.transferAccount", opts?.qp, data, opts).catch((e) => {
|
|
27393
|
-
throw toKnownErr73(e);
|
|
27807
|
+
throw toKnownErr81(e);
|
|
27394
27808
|
});
|
|
27395
27809
|
}
|
|
27396
27810
|
};
|
|
@@ -27419,37 +27833,37 @@ var AppBskyActorNS = class {
|
|
|
27419
27833
|
}
|
|
27420
27834
|
getPreferences(params2, opts) {
|
|
27421
27835
|
return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
|
|
27422
|
-
throw
|
|
27836
|
+
throw toKnownErr82(e);
|
|
27423
27837
|
});
|
|
27424
27838
|
}
|
|
27425
27839
|
getProfile(params2, opts) {
|
|
27426
27840
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
27427
|
-
throw
|
|
27841
|
+
throw toKnownErr83(e);
|
|
27428
27842
|
});
|
|
27429
27843
|
}
|
|
27430
27844
|
getProfiles(params2, opts) {
|
|
27431
27845
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
27432
|
-
throw
|
|
27846
|
+
throw toKnownErr84(e);
|
|
27433
27847
|
});
|
|
27434
27848
|
}
|
|
27435
27849
|
getSuggestions(params2, opts) {
|
|
27436
27850
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
27437
|
-
throw
|
|
27851
|
+
throw toKnownErr85(e);
|
|
27438
27852
|
});
|
|
27439
27853
|
}
|
|
27440
27854
|
putPreferences(data, opts) {
|
|
27441
27855
|
return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
|
|
27442
|
-
throw
|
|
27856
|
+
throw toKnownErr86(e);
|
|
27443
27857
|
});
|
|
27444
27858
|
}
|
|
27445
27859
|
searchActors(params2, opts) {
|
|
27446
27860
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
27447
|
-
throw
|
|
27861
|
+
throw toKnownErr87(e);
|
|
27448
27862
|
});
|
|
27449
27863
|
}
|
|
27450
27864
|
searchActorsTypeahead(params2, opts) {
|
|
27451
27865
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
27452
|
-
throw
|
|
27866
|
+
throw toKnownErr88(e);
|
|
27453
27867
|
});
|
|
27454
27868
|
}
|
|
27455
27869
|
};
|
|
@@ -27496,82 +27910,82 @@ var AppBskyFeedNS = class {
|
|
|
27496
27910
|
}
|
|
27497
27911
|
describeFeedGenerator(params2, opts) {
|
|
27498
27912
|
return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
27499
|
-
throw
|
|
27913
|
+
throw toKnownErr89(e);
|
|
27500
27914
|
});
|
|
27501
27915
|
}
|
|
27502
27916
|
getActorFeeds(params2, opts) {
|
|
27503
27917
|
return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
|
|
27504
|
-
throw
|
|
27918
|
+
throw toKnownErr90(e);
|
|
27505
27919
|
});
|
|
27506
27920
|
}
|
|
27507
27921
|
getActorLikes(params2, opts) {
|
|
27508
27922
|
return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
|
|
27509
|
-
throw
|
|
27923
|
+
throw toKnownErr91(e);
|
|
27510
27924
|
});
|
|
27511
27925
|
}
|
|
27512
27926
|
getAuthorFeed(params2, opts) {
|
|
27513
27927
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
27514
|
-
throw
|
|
27928
|
+
throw toKnownErr92(e);
|
|
27515
27929
|
});
|
|
27516
27930
|
}
|
|
27517
27931
|
getFeed(params2, opts) {
|
|
27518
27932
|
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
27519
|
-
throw
|
|
27933
|
+
throw toKnownErr93(e);
|
|
27520
27934
|
});
|
|
27521
27935
|
}
|
|
27522
27936
|
getFeedGenerator(params2, opts) {
|
|
27523
27937
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
27524
|
-
throw
|
|
27938
|
+
throw toKnownErr94(e);
|
|
27525
27939
|
});
|
|
27526
27940
|
}
|
|
27527
27941
|
getFeedGenerators(params2, opts) {
|
|
27528
27942
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
27529
|
-
throw
|
|
27943
|
+
throw toKnownErr95(e);
|
|
27530
27944
|
});
|
|
27531
27945
|
}
|
|
27532
27946
|
getFeedSkeleton(params2, opts) {
|
|
27533
27947
|
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
27534
|
-
throw
|
|
27948
|
+
throw toKnownErr96(e);
|
|
27535
27949
|
});
|
|
27536
27950
|
}
|
|
27537
27951
|
getLikes(params2, opts) {
|
|
27538
27952
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
27539
|
-
throw
|
|
27953
|
+
throw toKnownErr97(e);
|
|
27540
27954
|
});
|
|
27541
27955
|
}
|
|
27542
27956
|
getListFeed(params2, opts) {
|
|
27543
27957
|
return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
|
|
27544
|
-
throw
|
|
27958
|
+
throw toKnownErr98(e);
|
|
27545
27959
|
});
|
|
27546
27960
|
}
|
|
27547
27961
|
getPostThread(params2, opts) {
|
|
27548
27962
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
27549
|
-
throw
|
|
27963
|
+
throw toKnownErr99(e);
|
|
27550
27964
|
});
|
|
27551
27965
|
}
|
|
27552
27966
|
getPosts(params2, opts) {
|
|
27553
27967
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
27554
|
-
throw
|
|
27968
|
+
throw toKnownErr100(e);
|
|
27555
27969
|
});
|
|
27556
27970
|
}
|
|
27557
27971
|
getRepostedBy(params2, opts) {
|
|
27558
27972
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
27559
|
-
throw
|
|
27973
|
+
throw toKnownErr101(e);
|
|
27560
27974
|
});
|
|
27561
27975
|
}
|
|
27562
27976
|
getSuggestedFeeds(params2, opts) {
|
|
27563
27977
|
return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
|
|
27564
|
-
throw
|
|
27978
|
+
throw toKnownErr102(e);
|
|
27565
27979
|
});
|
|
27566
27980
|
}
|
|
27567
27981
|
getTimeline(params2, opts) {
|
|
27568
27982
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
27569
|
-
throw
|
|
27983
|
+
throw toKnownErr103(e);
|
|
27570
27984
|
});
|
|
27571
27985
|
}
|
|
27572
27986
|
searchPosts(params2, opts) {
|
|
27573
27987
|
return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
|
|
27574
|
-
throw
|
|
27988
|
+
throw toKnownErr104(e);
|
|
27575
27989
|
});
|
|
27576
27990
|
}
|
|
27577
27991
|
};
|
|
@@ -27721,72 +28135,72 @@ var AppBskyGraphNS = class {
|
|
|
27721
28135
|
}
|
|
27722
28136
|
getBlocks(params2, opts) {
|
|
27723
28137
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
27724
|
-
throw
|
|
28138
|
+
throw toKnownErr105(e);
|
|
27725
28139
|
});
|
|
27726
28140
|
}
|
|
27727
28141
|
getFollowers(params2, opts) {
|
|
27728
28142
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
27729
|
-
throw
|
|
28143
|
+
throw toKnownErr106(e);
|
|
27730
28144
|
});
|
|
27731
28145
|
}
|
|
27732
28146
|
getFollows(params2, opts) {
|
|
27733
28147
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
27734
|
-
throw
|
|
28148
|
+
throw toKnownErr107(e);
|
|
27735
28149
|
});
|
|
27736
28150
|
}
|
|
27737
28151
|
getList(params2, opts) {
|
|
27738
28152
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
27739
|
-
throw
|
|
28153
|
+
throw toKnownErr108(e);
|
|
27740
28154
|
});
|
|
27741
28155
|
}
|
|
27742
28156
|
getListBlocks(params2, opts) {
|
|
27743
28157
|
return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
|
|
27744
|
-
throw
|
|
28158
|
+
throw toKnownErr109(e);
|
|
27745
28159
|
});
|
|
27746
28160
|
}
|
|
27747
28161
|
getListMutes(params2, opts) {
|
|
27748
28162
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
27749
|
-
throw
|
|
28163
|
+
throw toKnownErr110(e);
|
|
27750
28164
|
});
|
|
27751
28165
|
}
|
|
27752
28166
|
getLists(params2, opts) {
|
|
27753
28167
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
27754
|
-
throw
|
|
28168
|
+
throw toKnownErr111(e);
|
|
27755
28169
|
});
|
|
27756
28170
|
}
|
|
27757
28171
|
getMutes(params2, opts) {
|
|
27758
28172
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
27759
|
-
throw
|
|
28173
|
+
throw toKnownErr112(e);
|
|
27760
28174
|
});
|
|
27761
28175
|
}
|
|
27762
28176
|
getRelationships(params2, opts) {
|
|
27763
28177
|
return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
|
|
27764
|
-
throw
|
|
28178
|
+
throw toKnownErr113(e);
|
|
27765
28179
|
});
|
|
27766
28180
|
}
|
|
27767
28181
|
getSuggestedFollowsByActor(params2, opts) {
|
|
27768
28182
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
27769
|
-
throw
|
|
28183
|
+
throw toKnownErr114(e);
|
|
27770
28184
|
});
|
|
27771
28185
|
}
|
|
27772
28186
|
muteActor(data, opts) {
|
|
27773
28187
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
27774
|
-
throw
|
|
28188
|
+
throw toKnownErr115(e);
|
|
27775
28189
|
});
|
|
27776
28190
|
}
|
|
27777
28191
|
muteActorList(data, opts) {
|
|
27778
28192
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
27779
|
-
throw
|
|
28193
|
+
throw toKnownErr116(e);
|
|
27780
28194
|
});
|
|
27781
28195
|
}
|
|
27782
28196
|
unmuteActor(data, opts) {
|
|
27783
28197
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
27784
|
-
throw
|
|
28198
|
+
throw toKnownErr117(e);
|
|
27785
28199
|
});
|
|
27786
28200
|
}
|
|
27787
28201
|
unmuteActorList(data, opts) {
|
|
27788
28202
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
27789
|
-
throw
|
|
28203
|
+
throw toKnownErr118(e);
|
|
27790
28204
|
});
|
|
27791
28205
|
}
|
|
27792
28206
|
};
|
|
@@ -27931,22 +28345,22 @@ var AppBskyNotificationNS = class {
|
|
|
27931
28345
|
}
|
|
27932
28346
|
getUnreadCount(params2, opts) {
|
|
27933
28347
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
27934
|
-
throw
|
|
28348
|
+
throw toKnownErr119(e);
|
|
27935
28349
|
});
|
|
27936
28350
|
}
|
|
27937
28351
|
listNotifications(params2, opts) {
|
|
27938
28352
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
27939
|
-
throw
|
|
28353
|
+
throw toKnownErr120(e);
|
|
27940
28354
|
});
|
|
27941
28355
|
}
|
|
27942
28356
|
registerPush(data, opts) {
|
|
27943
28357
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
27944
|
-
throw
|
|
28358
|
+
throw toKnownErr121(e);
|
|
27945
28359
|
});
|
|
27946
28360
|
}
|
|
27947
28361
|
updateSeen(data, opts) {
|
|
27948
28362
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
27949
|
-
throw
|
|
28363
|
+
throw toKnownErr122(e);
|
|
27950
28364
|
});
|
|
27951
28365
|
}
|
|
27952
28366
|
};
|
|
@@ -27961,22 +28375,22 @@ var AppBskyUnspeccedNS = class {
|
|
|
27961
28375
|
}
|
|
27962
28376
|
getPopularFeedGenerators(params2, opts) {
|
|
27963
28377
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
27964
|
-
throw
|
|
28378
|
+
throw toKnownErr123(e);
|
|
27965
28379
|
});
|
|
27966
28380
|
}
|
|
27967
28381
|
getTaggedSuggestions(params2, opts) {
|
|
27968
28382
|
return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
|
|
27969
|
-
throw
|
|
28383
|
+
throw toKnownErr124(e);
|
|
27970
28384
|
});
|
|
27971
28385
|
}
|
|
27972
28386
|
searchActorsSkeleton(params2, opts) {
|
|
27973
28387
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
27974
|
-
throw
|
|
28388
|
+
throw toKnownErr125(e);
|
|
27975
28389
|
});
|
|
27976
28390
|
}
|
|
27977
28391
|
searchPostsSkeleton(params2, opts) {
|
|
27978
28392
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
27979
|
-
throw
|
|
28393
|
+
throw toKnownErr126(e);
|
|
27980
28394
|
});
|
|
27981
28395
|
}
|
|
27982
28396
|
};
|
|
@@ -31666,7 +32080,9 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31666
32080
|
birthDate: void 0,
|
|
31667
32081
|
interests: {
|
|
31668
32082
|
tags: []
|
|
31669
|
-
}
|
|
32083
|
+
},
|
|
32084
|
+
mutedWords: [],
|
|
32085
|
+
hiddenPosts: []
|
|
31670
32086
|
};
|
|
31671
32087
|
const res = await this.app.bsky.actor.getPreferences({});
|
|
31672
32088
|
for (const pref of res.data.preferences) {
|
|
@@ -31696,6 +32112,12 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31696
32112
|
} else if (defs_exports5.isInterestsPref(pref) && defs_exports5.validateInterestsPref(pref).success) {
|
|
31697
32113
|
const { $type, ...v } = pref;
|
|
31698
32114
|
prefs.interests = { ...prefs.interests, ...v };
|
|
32115
|
+
} else if (defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success) {
|
|
32116
|
+
const { $type, ...v } = pref;
|
|
32117
|
+
prefs.mutedWords = v.items;
|
|
32118
|
+
} else if (defs_exports5.isHiddenPostsPref(pref) && defs_exports5.validateHiddenPostsPref(pref).success) {
|
|
32119
|
+
const { $type, ...v } = pref;
|
|
32120
|
+
prefs.hiddenPosts = v.items;
|
|
31699
32121
|
}
|
|
31700
32122
|
}
|
|
31701
32123
|
return prefs;
|
|
@@ -31806,6 +32228,21 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31806
32228
|
return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#interestsPref" }]);
|
|
31807
32229
|
});
|
|
31808
32230
|
}
|
|
32231
|
+
async upsertMutedWords(mutedWords) {
|
|
32232
|
+
await updateMutedWords(this, mutedWords, "upsert");
|
|
32233
|
+
}
|
|
32234
|
+
async updateMutedWord(mutedWord) {
|
|
32235
|
+
await updateMutedWords(this, [mutedWord], "update");
|
|
32236
|
+
}
|
|
32237
|
+
async removeMutedWord(mutedWord) {
|
|
32238
|
+
await updateMutedWords(this, [mutedWord], "remove");
|
|
32239
|
+
}
|
|
32240
|
+
async hidePost(postUri) {
|
|
32241
|
+
await updateHiddenPost(this, postUri, "hide");
|
|
32242
|
+
}
|
|
32243
|
+
async unhidePost(postUri) {
|
|
32244
|
+
await updateHiddenPost(this, postUri, "unhide");
|
|
32245
|
+
}
|
|
31809
32246
|
};
|
|
31810
32247
|
async function updatePreferences(agent, cb) {
|
|
31811
32248
|
const res = await agent.app.bsky.actor.getPreferences({});
|
|
@@ -31837,4 +32274,65 @@ async function updateFeedPreferences(agent, cb) {
|
|
|
31837
32274
|
});
|
|
31838
32275
|
return res;
|
|
31839
32276
|
}
|
|
32277
|
+
async function updateMutedWords(agent, mutedWords, action) {
|
|
32278
|
+
const sanitizeMutedWord = (word) => ({
|
|
32279
|
+
value: word.value.replace(/^#/, ""),
|
|
32280
|
+
targets: word.targets
|
|
32281
|
+
});
|
|
32282
|
+
await updatePreferences(agent, (prefs) => {
|
|
32283
|
+
let mutedWordsPref = prefs.findLast((pref) => defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success);
|
|
32284
|
+
if (mutedWordsPref && defs_exports5.isMutedWordsPref(mutedWordsPref)) {
|
|
32285
|
+
if (action === "upsert" || action === "update") {
|
|
32286
|
+
for (const newItem of mutedWords) {
|
|
32287
|
+
let foundMatch = false;
|
|
32288
|
+
for (const existingItem of mutedWordsPref.items) {
|
|
32289
|
+
if (existingItem.value === newItem.value) {
|
|
32290
|
+
existingItem.targets = action === "upsert" ? Array.from(/* @__PURE__ */ new Set([...existingItem.targets, ...newItem.targets])) : newItem.targets;
|
|
32291
|
+
foundMatch = true;
|
|
32292
|
+
break;
|
|
32293
|
+
}
|
|
32294
|
+
}
|
|
32295
|
+
if (action === "upsert" && !foundMatch) {
|
|
32296
|
+
mutedWordsPref.items.push(sanitizeMutedWord(newItem));
|
|
32297
|
+
}
|
|
32298
|
+
}
|
|
32299
|
+
} else if (action === "remove") {
|
|
32300
|
+
for (const word of mutedWords) {
|
|
32301
|
+
for (let i = 0; i < mutedWordsPref.items.length; i++) {
|
|
32302
|
+
const existing = mutedWordsPref.items[i];
|
|
32303
|
+
if (existing.value === sanitizeMutedWord(word).value) {
|
|
32304
|
+
mutedWordsPref.items.splice(i, 1);
|
|
32305
|
+
break;
|
|
32306
|
+
}
|
|
32307
|
+
}
|
|
32308
|
+
}
|
|
32309
|
+
}
|
|
32310
|
+
} else {
|
|
32311
|
+
if (action === "upsert") {
|
|
32312
|
+
mutedWordsPref = {
|
|
32313
|
+
items: mutedWords.map(sanitizeMutedWord)
|
|
32314
|
+
};
|
|
32315
|
+
}
|
|
32316
|
+
}
|
|
32317
|
+
return prefs.filter((p) => !defs_exports5.isMutedWordsPref(p)).concat([
|
|
32318
|
+
{ ...mutedWordsPref, $type: "app.bsky.actor.defs#mutedWordsPref" }
|
|
32319
|
+
]);
|
|
32320
|
+
});
|
|
32321
|
+
}
|
|
32322
|
+
async function updateHiddenPost(agent, postUri, action) {
|
|
32323
|
+
await updatePreferences(agent, (prefs) => {
|
|
32324
|
+
let pref = prefs.findLast((pref2) => defs_exports5.isHiddenPostsPref(pref2) && defs_exports5.validateHiddenPostsPref(pref2).success);
|
|
32325
|
+
if (pref && defs_exports5.isHiddenPostsPref(pref)) {
|
|
32326
|
+
pref.items = action === "hide" ? Array.from(/* @__PURE__ */ new Set([...pref.items, postUri])) : pref.items.filter((uri2) => uri2 !== postUri);
|
|
32327
|
+
} else {
|
|
32328
|
+
if (action === "hide") {
|
|
32329
|
+
pref = {
|
|
32330
|
+
$type: "app.bsky.actor.defs#hiddenPostsPref",
|
|
32331
|
+
items: [postUri]
|
|
32332
|
+
};
|
|
32333
|
+
}
|
|
32334
|
+
}
|
|
32335
|
+
return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#hiddenPostsPref" }]);
|
|
32336
|
+
});
|
|
32337
|
+
}
|
|
31840
32338
|
//# sourceMappingURL=index.js.map
|