@atproto/api 0.9.8 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/bsky-agent.d.ts +6 -1
- package/dist/client/index.d.ts +30 -9
- package/dist/client/lexicons.d.ts +392 -110
- package/dist/client/types/app/bsky/actor/defs.d.ts +20 -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 +991 -538
- 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 +140 -39
- package/src/client/lexicons.ts +429 -138
- package/src/client/types/app/bsky/actor/defs.ts +59 -0
- package/src/client/types/app/bsky/feed/post.ts +1 -1
- 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/{temp/pushBlob.ts → identity/submitPlcOperation.ts} +6 -6
- 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
|
@@ -8978,8 +8978,12 @@ __export(src_exports2, {
|
|
|
8978
8978
|
ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
|
|
8979
8979
|
ComAtprotoAdminUpdateCommunicationTemplate: () => updateCommunicationTemplate_exports,
|
|
8980
8980
|
ComAtprotoAdminUpdateSubjectStatus: () => updateSubjectStatus_exports,
|
|
8981
|
+
ComAtprotoIdentityGetRecommendedDidCredentials: () => getRecommendedDidCredentials_exports,
|
|
8981
8982
|
ComAtprotoIdentityNS: () => ComAtprotoIdentityNS,
|
|
8983
|
+
ComAtprotoIdentityRequestPlcOperationSignature: () => requestPlcOperationSignature_exports,
|
|
8982
8984
|
ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
|
|
8985
|
+
ComAtprotoIdentitySignPlcOperation: () => signPlcOperation_exports,
|
|
8986
|
+
ComAtprotoIdentitySubmitPlcOperation: () => submitPlcOperation_exports,
|
|
8983
8987
|
ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
|
|
8984
8988
|
ComAtprotoLabelDefs: () => defs_exports2,
|
|
8985
8989
|
ComAtprotoLabelNS: () => ComAtprotoLabelNS,
|
|
@@ -8994,22 +8998,28 @@ __export(src_exports2, {
|
|
|
8994
8998
|
ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
|
|
8995
8999
|
ComAtprotoRepoDescribeRepo: () => describeRepo_exports,
|
|
8996
9000
|
ComAtprotoRepoGetRecord: () => getRecord_exports2,
|
|
9001
|
+
ComAtprotoRepoImportRepo: () => importRepo_exports,
|
|
9002
|
+
ComAtprotoRepoListMissingBlobs: () => listMissingBlobs_exports,
|
|
8997
9003
|
ComAtprotoRepoListRecords: () => listRecords_exports,
|
|
8998
9004
|
ComAtprotoRepoNS: () => ComAtprotoRepoNS,
|
|
8999
9005
|
ComAtprotoRepoPutRecord: () => putRecord_exports,
|
|
9000
9006
|
ComAtprotoRepoStrongRef: () => strongRef_exports,
|
|
9001
9007
|
ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
|
|
9008
|
+
ComAtprotoServerActivateAccount: () => activateAccount_exports,
|
|
9009
|
+
ComAtprotoServerCheckAccountStatus: () => checkAccountStatus_exports,
|
|
9002
9010
|
ComAtprotoServerConfirmEmail: () => confirmEmail_exports,
|
|
9003
9011
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
9004
9012
|
ComAtprotoServerCreateAppPassword: () => createAppPassword_exports,
|
|
9005
9013
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
9006
9014
|
ComAtprotoServerCreateInviteCodes: () => createInviteCodes_exports,
|
|
9007
9015
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
9016
|
+
ComAtprotoServerDeactivateAccount: () => deactivateAccount_exports,
|
|
9008
9017
|
ComAtprotoServerDefs: () => defs_exports4,
|
|
9009
9018
|
ComAtprotoServerDeleteAccount: () => deleteAccount_exports2,
|
|
9010
9019
|
ComAtprotoServerDeleteSession: () => deleteSession_exports,
|
|
9011
9020
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
9012
9021
|
ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
|
|
9022
|
+
ComAtprotoServerGetServiceAuth: () => getServiceAuth_exports,
|
|
9013
9023
|
ComAtprotoServerGetSession: () => getSession_exports,
|
|
9014
9024
|
ComAtprotoServerListAppPasswords: () => listAppPasswords_exports,
|
|
9015
9025
|
ComAtprotoServerNS: () => ComAtprotoServerNS,
|
|
@@ -9037,11 +9047,8 @@ __export(src_exports2, {
|
|
|
9037
9047
|
ComAtprotoSyncSubscribeRepos: () => subscribeRepos_exports,
|
|
9038
9048
|
ComAtprotoTempCheckSignupQueue: () => checkSignupQueue_exports,
|
|
9039
9049
|
ComAtprotoTempFetchLabels: () => fetchLabels_exports,
|
|
9040
|
-
ComAtprotoTempImportRepo: () => importRepo_exports,
|
|
9041
9050
|
ComAtprotoTempNS: () => ComAtprotoTempNS,
|
|
9042
|
-
ComAtprotoTempPushBlob: () => pushBlob_exports,
|
|
9043
9051
|
ComAtprotoTempRequestPhoneVerification: () => requestPhoneVerification_exports,
|
|
9044
|
-
ComAtprotoTempTransferAccount: () => transferAccount_exports,
|
|
9045
9052
|
ComNS: () => ComNS,
|
|
9046
9053
|
FollowRecord: () => FollowRecord,
|
|
9047
9054
|
GeneratorRecord: () => GeneratorRecord,
|
|
@@ -17615,6 +17622,53 @@ var schemaDict = {
|
|
|
17615
17622
|
}
|
|
17616
17623
|
}
|
|
17617
17624
|
},
|
|
17625
|
+
ComAtprotoIdentityGetRecommendedDidCredentials: {
|
|
17626
|
+
lexicon: 1,
|
|
17627
|
+
id: "com.atproto.identity.getRecommendedDidCredentials",
|
|
17628
|
+
defs: {
|
|
17629
|
+
main: {
|
|
17630
|
+
type: "query",
|
|
17631
|
+
description: "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
|
|
17632
|
+
output: {
|
|
17633
|
+
encoding: "application/json",
|
|
17634
|
+
schema: {
|
|
17635
|
+
type: "object",
|
|
17636
|
+
properties: {
|
|
17637
|
+
rotationKeys: {
|
|
17638
|
+
description: "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
|
|
17639
|
+
type: "array",
|
|
17640
|
+
items: {
|
|
17641
|
+
type: "string"
|
|
17642
|
+
}
|
|
17643
|
+
},
|
|
17644
|
+
alsoKnownAs: {
|
|
17645
|
+
type: "array",
|
|
17646
|
+
items: {
|
|
17647
|
+
type: "string"
|
|
17648
|
+
}
|
|
17649
|
+
},
|
|
17650
|
+
verificationMethods: {
|
|
17651
|
+
type: "unknown"
|
|
17652
|
+
},
|
|
17653
|
+
services: {
|
|
17654
|
+
type: "unknown"
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17657
|
+
}
|
|
17658
|
+
}
|
|
17659
|
+
}
|
|
17660
|
+
}
|
|
17661
|
+
},
|
|
17662
|
+
ComAtprotoIdentityRequestPlcOperationSignature: {
|
|
17663
|
+
lexicon: 1,
|
|
17664
|
+
id: "com.atproto.identity.requestPlcOperationSignature",
|
|
17665
|
+
defs: {
|
|
17666
|
+
main: {
|
|
17667
|
+
type: "procedure",
|
|
17668
|
+
description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
|
|
17669
|
+
}
|
|
17670
|
+
}
|
|
17671
|
+
},
|
|
17618
17672
|
ComAtprotoIdentityResolveHandle: {
|
|
17619
17673
|
lexicon: 1,
|
|
17620
17674
|
id: "com.atproto.identity.resolveHandle",
|
|
@@ -17649,6 +17703,81 @@ var schemaDict = {
|
|
|
17649
17703
|
}
|
|
17650
17704
|
}
|
|
17651
17705
|
},
|
|
17706
|
+
ComAtprotoIdentitySignPlcOperation: {
|
|
17707
|
+
lexicon: 1,
|
|
17708
|
+
id: "com.atproto.identity.signPlcOperation",
|
|
17709
|
+
defs: {
|
|
17710
|
+
main: {
|
|
17711
|
+
type: "procedure",
|
|
17712
|
+
description: "Signs a PLC operation to update some value(s) in the requesting DID's document.",
|
|
17713
|
+
input: {
|
|
17714
|
+
encoding: "application/json",
|
|
17715
|
+
schema: {
|
|
17716
|
+
type: "object",
|
|
17717
|
+
properties: {
|
|
17718
|
+
token: {
|
|
17719
|
+
description: "A token received through com.atproto.identity.requestPlcOperationSignature",
|
|
17720
|
+
type: "string"
|
|
17721
|
+
},
|
|
17722
|
+
rotationKeys: {
|
|
17723
|
+
type: "array",
|
|
17724
|
+
items: {
|
|
17725
|
+
type: "string"
|
|
17726
|
+
}
|
|
17727
|
+
},
|
|
17728
|
+
alsoKnownAs: {
|
|
17729
|
+
type: "array",
|
|
17730
|
+
items: {
|
|
17731
|
+
type: "string"
|
|
17732
|
+
}
|
|
17733
|
+
},
|
|
17734
|
+
verificationMethods: {
|
|
17735
|
+
type: "unknown"
|
|
17736
|
+
},
|
|
17737
|
+
services: {
|
|
17738
|
+
type: "unknown"
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17741
|
+
}
|
|
17742
|
+
},
|
|
17743
|
+
output: {
|
|
17744
|
+
encoding: "application/json",
|
|
17745
|
+
schema: {
|
|
17746
|
+
type: "object",
|
|
17747
|
+
required: ["operation"],
|
|
17748
|
+
properties: {
|
|
17749
|
+
operation: {
|
|
17750
|
+
type: "unknown",
|
|
17751
|
+
description: "A signed DID PLC operation."
|
|
17752
|
+
}
|
|
17753
|
+
}
|
|
17754
|
+
}
|
|
17755
|
+
}
|
|
17756
|
+
}
|
|
17757
|
+
}
|
|
17758
|
+
},
|
|
17759
|
+
ComAtprotoIdentitySubmitPlcOperation: {
|
|
17760
|
+
lexicon: 1,
|
|
17761
|
+
id: "com.atproto.identity.submitPlcOperation",
|
|
17762
|
+
defs: {
|
|
17763
|
+
main: {
|
|
17764
|
+
type: "procedure",
|
|
17765
|
+
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",
|
|
17766
|
+
input: {
|
|
17767
|
+
encoding: "application/json",
|
|
17768
|
+
schema: {
|
|
17769
|
+
type: "object",
|
|
17770
|
+
required: ["operation"],
|
|
17771
|
+
properties: {
|
|
17772
|
+
operation: {
|
|
17773
|
+
type: "unknown"
|
|
17774
|
+
}
|
|
17775
|
+
}
|
|
17776
|
+
}
|
|
17777
|
+
}
|
|
17778
|
+
}
|
|
17779
|
+
}
|
|
17780
|
+
},
|
|
17652
17781
|
ComAtprotoIdentityUpdateHandle: {
|
|
17653
17782
|
lexicon: 1,
|
|
17654
17783
|
id: "com.atproto.identity.updateHandle",
|
|
@@ -18321,6 +18450,76 @@ var schemaDict = {
|
|
|
18321
18450
|
}
|
|
18322
18451
|
}
|
|
18323
18452
|
},
|
|
18453
|
+
ComAtprotoRepoImportRepo: {
|
|
18454
|
+
lexicon: 1,
|
|
18455
|
+
id: "com.atproto.repo.importRepo",
|
|
18456
|
+
defs: {
|
|
18457
|
+
main: {
|
|
18458
|
+
type: "procedure",
|
|
18459
|
+
description: "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
|
|
18460
|
+
input: {
|
|
18461
|
+
encoding: "application/vnd.ipld.car"
|
|
18462
|
+
}
|
|
18463
|
+
}
|
|
18464
|
+
}
|
|
18465
|
+
},
|
|
18466
|
+
ComAtprotoRepoListMissingBlobs: {
|
|
18467
|
+
lexicon: 1,
|
|
18468
|
+
id: "com.atproto.repo.listMissingBlobs",
|
|
18469
|
+
defs: {
|
|
18470
|
+
main: {
|
|
18471
|
+
type: "query",
|
|
18472
|
+
description: "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
|
|
18473
|
+
parameters: {
|
|
18474
|
+
type: "params",
|
|
18475
|
+
properties: {
|
|
18476
|
+
limit: {
|
|
18477
|
+
type: "integer",
|
|
18478
|
+
minimum: 1,
|
|
18479
|
+
maximum: 1e3,
|
|
18480
|
+
default: 500
|
|
18481
|
+
},
|
|
18482
|
+
cursor: {
|
|
18483
|
+
type: "string"
|
|
18484
|
+
}
|
|
18485
|
+
}
|
|
18486
|
+
},
|
|
18487
|
+
output: {
|
|
18488
|
+
encoding: "application/json",
|
|
18489
|
+
schema: {
|
|
18490
|
+
type: "object",
|
|
18491
|
+
required: ["blobs"],
|
|
18492
|
+
properties: {
|
|
18493
|
+
cursor: {
|
|
18494
|
+
type: "string"
|
|
18495
|
+
},
|
|
18496
|
+
blobs: {
|
|
18497
|
+
type: "array",
|
|
18498
|
+
items: {
|
|
18499
|
+
type: "ref",
|
|
18500
|
+
ref: "lex:com.atproto.repo.listMissingBlobs#recordBlob"
|
|
18501
|
+
}
|
|
18502
|
+
}
|
|
18503
|
+
}
|
|
18504
|
+
}
|
|
18505
|
+
}
|
|
18506
|
+
},
|
|
18507
|
+
recordBlob: {
|
|
18508
|
+
type: "object",
|
|
18509
|
+
required: ["cid", "recordUri"],
|
|
18510
|
+
properties: {
|
|
18511
|
+
cid: {
|
|
18512
|
+
type: "string",
|
|
18513
|
+
format: "cid"
|
|
18514
|
+
},
|
|
18515
|
+
recordUri: {
|
|
18516
|
+
type: "string",
|
|
18517
|
+
format: "at-uri"
|
|
18518
|
+
}
|
|
18519
|
+
}
|
|
18520
|
+
}
|
|
18521
|
+
}
|
|
18522
|
+
},
|
|
18324
18523
|
ComAtprotoRepoListRecords: {
|
|
18325
18524
|
lexicon: 1,
|
|
18326
18525
|
id: "com.atproto.repo.listRecords",
|
|
@@ -18527,6 +18726,73 @@ var schemaDict = {
|
|
|
18527
18726
|
}
|
|
18528
18727
|
}
|
|
18529
18728
|
},
|
|
18729
|
+
ComAtprotoServerActivateAccount: {
|
|
18730
|
+
lexicon: 1,
|
|
18731
|
+
id: "com.atproto.server.activateAccount",
|
|
18732
|
+
defs: {
|
|
18733
|
+
main: {
|
|
18734
|
+
type: "procedure",
|
|
18735
|
+
description: "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
|
|
18736
|
+
}
|
|
18737
|
+
}
|
|
18738
|
+
},
|
|
18739
|
+
ComAtprotoServerCheckAccountStatus: {
|
|
18740
|
+
lexicon: 1,
|
|
18741
|
+
id: "com.atproto.server.checkAccountStatus",
|
|
18742
|
+
defs: {
|
|
18743
|
+
main: {
|
|
18744
|
+
type: "query",
|
|
18745
|
+
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.",
|
|
18746
|
+
output: {
|
|
18747
|
+
encoding: "application/json",
|
|
18748
|
+
schema: {
|
|
18749
|
+
type: "object",
|
|
18750
|
+
required: [
|
|
18751
|
+
"activated",
|
|
18752
|
+
"validDid",
|
|
18753
|
+
"repoCommit",
|
|
18754
|
+
"repoRev",
|
|
18755
|
+
"repoBlocks",
|
|
18756
|
+
"indexedRecords",
|
|
18757
|
+
"privateStateValues",
|
|
18758
|
+
"expectedBlobs",
|
|
18759
|
+
"importedBlobs"
|
|
18760
|
+
],
|
|
18761
|
+
properties: {
|
|
18762
|
+
activated: {
|
|
18763
|
+
type: "boolean"
|
|
18764
|
+
},
|
|
18765
|
+
validDid: {
|
|
18766
|
+
type: "boolean"
|
|
18767
|
+
},
|
|
18768
|
+
repoCommit: {
|
|
18769
|
+
type: "string",
|
|
18770
|
+
format: "cid"
|
|
18771
|
+
},
|
|
18772
|
+
repoRev: {
|
|
18773
|
+
type: "string"
|
|
18774
|
+
},
|
|
18775
|
+
repoBlocks: {
|
|
18776
|
+
type: "integer"
|
|
18777
|
+
},
|
|
18778
|
+
indexedRecords: {
|
|
18779
|
+
type: "integer"
|
|
18780
|
+
},
|
|
18781
|
+
privateStateValues: {
|
|
18782
|
+
type: "integer"
|
|
18783
|
+
},
|
|
18784
|
+
expectedBlobs: {
|
|
18785
|
+
type: "integer"
|
|
18786
|
+
},
|
|
18787
|
+
importedBlobs: {
|
|
18788
|
+
type: "integer"
|
|
18789
|
+
}
|
|
18790
|
+
}
|
|
18791
|
+
}
|
|
18792
|
+
}
|
|
18793
|
+
}
|
|
18794
|
+
}
|
|
18795
|
+
},
|
|
18530
18796
|
ComAtprotoServerConfirmEmail: {
|
|
18531
18797
|
lexicon: 1,
|
|
18532
18798
|
id: "com.atproto.server.confirmEmail",
|
|
@@ -18887,6 +19153,29 @@ var schemaDict = {
|
|
|
18887
19153
|
}
|
|
18888
19154
|
}
|
|
18889
19155
|
},
|
|
19156
|
+
ComAtprotoServerDeactivateAccount: {
|
|
19157
|
+
lexicon: 1,
|
|
19158
|
+
id: "com.atproto.server.deactivateAccount",
|
|
19159
|
+
defs: {
|
|
19160
|
+
main: {
|
|
19161
|
+
type: "procedure",
|
|
19162
|
+
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.",
|
|
19163
|
+
input: {
|
|
19164
|
+
encoding: "application/json",
|
|
19165
|
+
schema: {
|
|
19166
|
+
type: "object",
|
|
19167
|
+
properties: {
|
|
19168
|
+
deleteAfter: {
|
|
19169
|
+
type: "string",
|
|
19170
|
+
format: "datetime",
|
|
19171
|
+
description: "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
|
|
19172
|
+
}
|
|
19173
|
+
}
|
|
19174
|
+
}
|
|
19175
|
+
}
|
|
19176
|
+
}
|
|
19177
|
+
}
|
|
19178
|
+
},
|
|
18890
19179
|
ComAtprotoServerDefs: {
|
|
18891
19180
|
lexicon: 1,
|
|
18892
19181
|
id: "com.atproto.server.defs",
|
|
@@ -19005,7 +19294,7 @@ var schemaDict = {
|
|
|
19005
19294
|
encoding: "application/json",
|
|
19006
19295
|
schema: {
|
|
19007
19296
|
type: "object",
|
|
19008
|
-
required: ["availableUserDomains"],
|
|
19297
|
+
required: ["did", "availableUserDomains"],
|
|
19009
19298
|
properties: {
|
|
19010
19299
|
inviteCodeRequired: {
|
|
19011
19300
|
type: "boolean",
|
|
@@ -19026,6 +19315,10 @@ var schemaDict = {
|
|
|
19026
19315
|
type: "ref",
|
|
19027
19316
|
description: "URLs of service policy documents.",
|
|
19028
19317
|
ref: "lex:com.atproto.server.describeServer#links"
|
|
19318
|
+
},
|
|
19319
|
+
did: {
|
|
19320
|
+
type: "string",
|
|
19321
|
+
format: "did"
|
|
19029
19322
|
}
|
|
19030
19323
|
}
|
|
19031
19324
|
}
|
|
@@ -19089,6 +19382,39 @@ var schemaDict = {
|
|
|
19089
19382
|
}
|
|
19090
19383
|
}
|
|
19091
19384
|
},
|
|
19385
|
+
ComAtprotoServerGetServiceAuth: {
|
|
19386
|
+
lexicon: 1,
|
|
19387
|
+
id: "com.atproto.server.getServiceAuth",
|
|
19388
|
+
defs: {
|
|
19389
|
+
main: {
|
|
19390
|
+
type: "query",
|
|
19391
|
+
description: "Get a signed token on behalf of the requesting DID for the requested service.",
|
|
19392
|
+
parameters: {
|
|
19393
|
+
type: "params",
|
|
19394
|
+
required: ["aud"],
|
|
19395
|
+
properties: {
|
|
19396
|
+
aud: {
|
|
19397
|
+
type: "string",
|
|
19398
|
+
format: "did",
|
|
19399
|
+
description: "The DID of the service that the token will be used to authenticate with"
|
|
19400
|
+
}
|
|
19401
|
+
}
|
|
19402
|
+
},
|
|
19403
|
+
output: {
|
|
19404
|
+
encoding: "application/json",
|
|
19405
|
+
schema: {
|
|
19406
|
+
type: "object",
|
|
19407
|
+
required: ["token"],
|
|
19408
|
+
properties: {
|
|
19409
|
+
token: {
|
|
19410
|
+
type: "string"
|
|
19411
|
+
}
|
|
19412
|
+
}
|
|
19413
|
+
}
|
|
19414
|
+
}
|
|
19415
|
+
}
|
|
19416
|
+
}
|
|
19417
|
+
},
|
|
19092
19418
|
ComAtprotoServerGetSession: {
|
|
19093
19419
|
lexicon: 1,
|
|
19094
19420
|
id: "com.atproto.server.getSession",
|
|
@@ -19813,6 +20139,7 @@ var schemaDict = {
|
|
|
19813
20139
|
type: "union",
|
|
19814
20140
|
refs: [
|
|
19815
20141
|
"lex:com.atproto.sync.subscribeRepos#commit",
|
|
20142
|
+
"lex:com.atproto.sync.subscribeRepos#identity",
|
|
19816
20143
|
"lex:com.atproto.sync.subscribeRepos#handle",
|
|
19817
20144
|
"lex:com.atproto.sync.subscribeRepos#migrate",
|
|
19818
20145
|
"lex:com.atproto.sync.subscribeRepos#tombstone",
|
|
@@ -19909,10 +20236,10 @@ var schemaDict = {
|
|
|
19909
20236
|
}
|
|
19910
20237
|
}
|
|
19911
20238
|
},
|
|
19912
|
-
|
|
20239
|
+
identity: {
|
|
19913
20240
|
type: "object",
|
|
19914
|
-
description: "Represents
|
|
19915
|
-
required: ["seq", "did", "
|
|
20241
|
+
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.",
|
|
20242
|
+
required: ["seq", "did", "time"],
|
|
19916
20243
|
properties: {
|
|
19917
20244
|
seq: {
|
|
19918
20245
|
type: "integer"
|
|
@@ -19921,21 +20248,39 @@ var schemaDict = {
|
|
|
19921
20248
|
type: "string",
|
|
19922
20249
|
format: "did"
|
|
19923
20250
|
},
|
|
19924
|
-
handle: {
|
|
19925
|
-
type: "string",
|
|
19926
|
-
format: "handle"
|
|
19927
|
-
},
|
|
19928
20251
|
time: {
|
|
19929
20252
|
type: "string",
|
|
19930
20253
|
format: "datetime"
|
|
19931
20254
|
}
|
|
19932
20255
|
}
|
|
19933
20256
|
},
|
|
19934
|
-
|
|
20257
|
+
handle: {
|
|
19935
20258
|
type: "object",
|
|
19936
|
-
description: "Represents an
|
|
19937
|
-
required: ["seq", "did", "
|
|
19938
|
-
|
|
20259
|
+
description: "Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
|
|
20260
|
+
required: ["seq", "did", "handle", "time"],
|
|
20261
|
+
properties: {
|
|
20262
|
+
seq: {
|
|
20263
|
+
type: "integer"
|
|
20264
|
+
},
|
|
20265
|
+
did: {
|
|
20266
|
+
type: "string",
|
|
20267
|
+
format: "did"
|
|
20268
|
+
},
|
|
20269
|
+
handle: {
|
|
20270
|
+
type: "string",
|
|
20271
|
+
format: "handle"
|
|
20272
|
+
},
|
|
20273
|
+
time: {
|
|
20274
|
+
type: "string",
|
|
20275
|
+
format: "datetime"
|
|
20276
|
+
}
|
|
20277
|
+
}
|
|
20278
|
+
},
|
|
20279
|
+
migrate: {
|
|
20280
|
+
type: "object",
|
|
20281
|
+
description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead",
|
|
20282
|
+
required: ["seq", "did", "migrateTo", "time"],
|
|
20283
|
+
nullable: ["migrateTo"],
|
|
19939
20284
|
properties: {
|
|
19940
20285
|
seq: {
|
|
19941
20286
|
type: "integer"
|
|
@@ -19955,7 +20300,7 @@ var schemaDict = {
|
|
|
19955
20300
|
},
|
|
19956
20301
|
tombstone: {
|
|
19957
20302
|
type: "object",
|
|
19958
|
-
description: "Indicates that an account has been deleted.",
|
|
20303
|
+
description: "Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event",
|
|
19959
20304
|
required: ["seq", "did", "time"],
|
|
19960
20305
|
properties: {
|
|
19961
20306
|
seq: {
|
|
@@ -20073,57 +20418,6 @@ var schemaDict = {
|
|
|
20073
20418
|
}
|
|
20074
20419
|
}
|
|
20075
20420
|
},
|
|
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
20421
|
ComAtprotoTempRequestPhoneVerification: {
|
|
20128
20422
|
lexicon: 1,
|
|
20129
20423
|
id: "com.atproto.temp.requestPhoneVerification",
|
|
@@ -20146,82 +20440,6 @@ var schemaDict = {
|
|
|
20146
20440
|
}
|
|
20147
20441
|
}
|
|
20148
20442
|
},
|
|
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
20443
|
AppBskyActorDefs: {
|
|
20226
20444
|
lexicon: 1,
|
|
20227
20445
|
id: "app.bsky.actor.defs",
|
|
@@ -20517,6 +20735,61 @@ var schemaDict = {
|
|
|
20517
20735
|
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
|
20518
20736
|
}
|
|
20519
20737
|
}
|
|
20738
|
+
},
|
|
20739
|
+
mutedWordTarget: {
|
|
20740
|
+
type: "string",
|
|
20741
|
+
knownValues: ["content", "tag"],
|
|
20742
|
+
maxLength: 640,
|
|
20743
|
+
maxGraphemes: 64
|
|
20744
|
+
},
|
|
20745
|
+
mutedWord: {
|
|
20746
|
+
type: "object",
|
|
20747
|
+
description: "A word that the account owner has muted.",
|
|
20748
|
+
required: ["value", "targets"],
|
|
20749
|
+
properties: {
|
|
20750
|
+
value: {
|
|
20751
|
+
type: "string",
|
|
20752
|
+
description: "The muted word itself.",
|
|
20753
|
+
maxLength: 1e4,
|
|
20754
|
+
maxGraphemes: 1e3
|
|
20755
|
+
},
|
|
20756
|
+
targets: {
|
|
20757
|
+
type: "array",
|
|
20758
|
+
description: "The intended targets of the muted word.",
|
|
20759
|
+
items: {
|
|
20760
|
+
type: "ref",
|
|
20761
|
+
ref: "lex:app.bsky.actor.defs#mutedWordTarget"
|
|
20762
|
+
}
|
|
20763
|
+
}
|
|
20764
|
+
}
|
|
20765
|
+
},
|
|
20766
|
+
mutedWordsPref: {
|
|
20767
|
+
type: "object",
|
|
20768
|
+
required: ["items"],
|
|
20769
|
+
properties: {
|
|
20770
|
+
items: {
|
|
20771
|
+
type: "array",
|
|
20772
|
+
items: {
|
|
20773
|
+
type: "ref",
|
|
20774
|
+
ref: "lex:app.bsky.actor.defs#mutedWord"
|
|
20775
|
+
},
|
|
20776
|
+
description: "A list of words the account owner has muted."
|
|
20777
|
+
}
|
|
20778
|
+
}
|
|
20779
|
+
},
|
|
20780
|
+
hiddenPostsPref: {
|
|
20781
|
+
type: "object",
|
|
20782
|
+
required: ["items"],
|
|
20783
|
+
properties: {
|
|
20784
|
+
items: {
|
|
20785
|
+
type: "array",
|
|
20786
|
+
items: {
|
|
20787
|
+
type: "string",
|
|
20788
|
+
format: "at-uri"
|
|
20789
|
+
},
|
|
20790
|
+
description: "A list of URIs of posts the account owner has hidden."
|
|
20791
|
+
}
|
|
20792
|
+
}
|
|
20520
20793
|
}
|
|
20521
20794
|
}
|
|
20522
20795
|
},
|
|
@@ -22383,7 +22656,7 @@ var schemaDict = {
|
|
|
22383
22656
|
},
|
|
22384
22657
|
tags: {
|
|
22385
22658
|
type: "array",
|
|
22386
|
-
description: "Additional
|
|
22659
|
+
description: "Additional hashtags, in addition to any included in post text and facets.",
|
|
22387
22660
|
maxLength: 8,
|
|
22388
22661
|
items: {
|
|
22389
22662
|
type: "string",
|
|
@@ -24277,12 +24550,56 @@ function toKnownErr23(e) {
|
|
|
24277
24550
|
return e;
|
|
24278
24551
|
}
|
|
24279
24552
|
|
|
24553
|
+
// src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts
|
|
24554
|
+
var getRecommendedDidCredentials_exports = {};
|
|
24555
|
+
__export(getRecommendedDidCredentials_exports, {
|
|
24556
|
+
toKnownErr: () => toKnownErr24
|
|
24557
|
+
});
|
|
24558
|
+
function toKnownErr24(e) {
|
|
24559
|
+
if (e instanceof XRPCError) {
|
|
24560
|
+
}
|
|
24561
|
+
return e;
|
|
24562
|
+
}
|
|
24563
|
+
|
|
24564
|
+
// src/client/types/com/atproto/identity/requestPlcOperationSignature.ts
|
|
24565
|
+
var requestPlcOperationSignature_exports = {};
|
|
24566
|
+
__export(requestPlcOperationSignature_exports, {
|
|
24567
|
+
toKnownErr: () => toKnownErr25
|
|
24568
|
+
});
|
|
24569
|
+
function toKnownErr25(e) {
|
|
24570
|
+
if (e instanceof XRPCError) {
|
|
24571
|
+
}
|
|
24572
|
+
return e;
|
|
24573
|
+
}
|
|
24574
|
+
|
|
24280
24575
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
24281
24576
|
var resolveHandle_exports = {};
|
|
24282
24577
|
__export(resolveHandle_exports, {
|
|
24283
|
-
toKnownErr: () =>
|
|
24578
|
+
toKnownErr: () => toKnownErr26
|
|
24284
24579
|
});
|
|
24285
|
-
function
|
|
24580
|
+
function toKnownErr26(e) {
|
|
24581
|
+
if (e instanceof XRPCError) {
|
|
24582
|
+
}
|
|
24583
|
+
return e;
|
|
24584
|
+
}
|
|
24585
|
+
|
|
24586
|
+
// src/client/types/com/atproto/identity/signPlcOperation.ts
|
|
24587
|
+
var signPlcOperation_exports = {};
|
|
24588
|
+
__export(signPlcOperation_exports, {
|
|
24589
|
+
toKnownErr: () => toKnownErr27
|
|
24590
|
+
});
|
|
24591
|
+
function toKnownErr27(e) {
|
|
24592
|
+
if (e instanceof XRPCError) {
|
|
24593
|
+
}
|
|
24594
|
+
return e;
|
|
24595
|
+
}
|
|
24596
|
+
|
|
24597
|
+
// src/client/types/com/atproto/identity/submitPlcOperation.ts
|
|
24598
|
+
var submitPlcOperation_exports = {};
|
|
24599
|
+
__export(submitPlcOperation_exports, {
|
|
24600
|
+
toKnownErr: () => toKnownErr28
|
|
24601
|
+
});
|
|
24602
|
+
function toKnownErr28(e) {
|
|
24286
24603
|
if (e instanceof XRPCError) {
|
|
24287
24604
|
}
|
|
24288
24605
|
return e;
|
|
@@ -24291,9 +24608,9 @@ function toKnownErr24(e) {
|
|
|
24291
24608
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
24292
24609
|
var updateHandle_exports = {};
|
|
24293
24610
|
__export(updateHandle_exports, {
|
|
24294
|
-
toKnownErr: () =>
|
|
24611
|
+
toKnownErr: () => toKnownErr29
|
|
24295
24612
|
});
|
|
24296
|
-
function
|
|
24613
|
+
function toKnownErr29(e) {
|
|
24297
24614
|
if (e instanceof XRPCError) {
|
|
24298
24615
|
}
|
|
24299
24616
|
return e;
|
|
@@ -24302,9 +24619,9 @@ function toKnownErr25(e) {
|
|
|
24302
24619
|
// src/client/types/com/atproto/label/queryLabels.ts
|
|
24303
24620
|
var queryLabels_exports = {};
|
|
24304
24621
|
__export(queryLabels_exports, {
|
|
24305
|
-
toKnownErr: () =>
|
|
24622
|
+
toKnownErr: () => toKnownErr30
|
|
24306
24623
|
});
|
|
24307
|
-
function
|
|
24624
|
+
function toKnownErr30(e) {
|
|
24308
24625
|
if (e instanceof XRPCError) {
|
|
24309
24626
|
}
|
|
24310
24627
|
return e;
|
|
@@ -24313,9 +24630,9 @@ function toKnownErr26(e) {
|
|
|
24313
24630
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
24314
24631
|
var createReport_exports = {};
|
|
24315
24632
|
__export(createReport_exports, {
|
|
24316
|
-
toKnownErr: () =>
|
|
24633
|
+
toKnownErr: () => toKnownErr31
|
|
24317
24634
|
});
|
|
24318
|
-
function
|
|
24635
|
+
function toKnownErr31(e) {
|
|
24319
24636
|
if (e instanceof XRPCError) {
|
|
24320
24637
|
}
|
|
24321
24638
|
return e;
|
|
@@ -24328,7 +24645,7 @@ __export(applyWrites_exports, {
|
|
|
24328
24645
|
isCreate: () => isCreate,
|
|
24329
24646
|
isDelete: () => isDelete,
|
|
24330
24647
|
isUpdate: () => isUpdate,
|
|
24331
|
-
toKnownErr: () =>
|
|
24648
|
+
toKnownErr: () => toKnownErr32,
|
|
24332
24649
|
validateCreate: () => validateCreate,
|
|
24333
24650
|
validateDelete: () => validateDelete,
|
|
24334
24651
|
validateUpdate: () => validateUpdate
|
|
@@ -24348,7 +24665,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
24348
24665
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24349
24666
|
}
|
|
24350
24667
|
};
|
|
24351
|
-
function
|
|
24668
|
+
function toKnownErr32(e) {
|
|
24352
24669
|
if (e instanceof XRPCError) {
|
|
24353
24670
|
if (e.error === "InvalidSwap")
|
|
24354
24671
|
return new InvalidSwapError(e);
|
|
@@ -24378,14 +24695,14 @@ function validateDelete(v) {
|
|
|
24378
24695
|
var createRecord_exports = {};
|
|
24379
24696
|
__export(createRecord_exports, {
|
|
24380
24697
|
InvalidSwapError: () => InvalidSwapError2,
|
|
24381
|
-
toKnownErr: () =>
|
|
24698
|
+
toKnownErr: () => toKnownErr33
|
|
24382
24699
|
});
|
|
24383
24700
|
var InvalidSwapError2 = class extends XRPCError {
|
|
24384
24701
|
constructor(src2) {
|
|
24385
24702
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24386
24703
|
}
|
|
24387
24704
|
};
|
|
24388
|
-
function
|
|
24705
|
+
function toKnownErr33(e) {
|
|
24389
24706
|
if (e instanceof XRPCError) {
|
|
24390
24707
|
if (e.error === "InvalidSwap")
|
|
24391
24708
|
return new InvalidSwapError2(e);
|
|
@@ -24397,14 +24714,14 @@ function toKnownErr29(e) {
|
|
|
24397
24714
|
var deleteRecord_exports = {};
|
|
24398
24715
|
__export(deleteRecord_exports, {
|
|
24399
24716
|
InvalidSwapError: () => InvalidSwapError3,
|
|
24400
|
-
toKnownErr: () =>
|
|
24717
|
+
toKnownErr: () => toKnownErr34
|
|
24401
24718
|
});
|
|
24402
24719
|
var InvalidSwapError3 = class extends XRPCError {
|
|
24403
24720
|
constructor(src2) {
|
|
24404
24721
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24405
24722
|
}
|
|
24406
24723
|
};
|
|
24407
|
-
function
|
|
24724
|
+
function toKnownErr34(e) {
|
|
24408
24725
|
if (e instanceof XRPCError) {
|
|
24409
24726
|
if (e.error === "InvalidSwap")
|
|
24410
24727
|
return new InvalidSwapError3(e);
|
|
@@ -24415,9 +24732,9 @@ function toKnownErr30(e) {
|
|
|
24415
24732
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
24416
24733
|
var describeRepo_exports = {};
|
|
24417
24734
|
__export(describeRepo_exports, {
|
|
24418
|
-
toKnownErr: () =>
|
|
24735
|
+
toKnownErr: () => toKnownErr35
|
|
24419
24736
|
});
|
|
24420
|
-
function
|
|
24737
|
+
function toKnownErr35(e) {
|
|
24421
24738
|
if (e instanceof XRPCError) {
|
|
24422
24739
|
}
|
|
24423
24740
|
return e;
|
|
@@ -24426,45 +24743,75 @@ function toKnownErr31(e) {
|
|
|
24426
24743
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
24427
24744
|
var getRecord_exports2 = {};
|
|
24428
24745
|
__export(getRecord_exports2, {
|
|
24429
|
-
toKnownErr: () =>
|
|
24746
|
+
toKnownErr: () => toKnownErr36
|
|
24430
24747
|
});
|
|
24431
|
-
function
|
|
24748
|
+
function toKnownErr36(e) {
|
|
24432
24749
|
if (e instanceof XRPCError) {
|
|
24433
24750
|
}
|
|
24434
24751
|
return e;
|
|
24435
24752
|
}
|
|
24436
24753
|
|
|
24437
|
-
// src/client/types/com/atproto/repo/
|
|
24438
|
-
var
|
|
24439
|
-
__export(
|
|
24440
|
-
|
|
24441
|
-
toKnownErr: () => toKnownErr33,
|
|
24442
|
-
validateRecord: () => validateRecord
|
|
24754
|
+
// src/client/types/com/atproto/repo/importRepo.ts
|
|
24755
|
+
var importRepo_exports = {};
|
|
24756
|
+
__export(importRepo_exports, {
|
|
24757
|
+
toKnownErr: () => toKnownErr37
|
|
24443
24758
|
});
|
|
24444
|
-
function
|
|
24759
|
+
function toKnownErr37(e) {
|
|
24445
24760
|
if (e instanceof XRPCError) {
|
|
24446
24761
|
}
|
|
24447
24762
|
return e;
|
|
24448
24763
|
}
|
|
24449
|
-
|
|
24450
|
-
|
|
24764
|
+
|
|
24765
|
+
// src/client/types/com/atproto/repo/listMissingBlobs.ts
|
|
24766
|
+
var listMissingBlobs_exports = {};
|
|
24767
|
+
__export(listMissingBlobs_exports, {
|
|
24768
|
+
isRecordBlob: () => isRecordBlob,
|
|
24769
|
+
toKnownErr: () => toKnownErr38,
|
|
24770
|
+
validateRecordBlob: () => validateRecordBlob
|
|
24771
|
+
});
|
|
24772
|
+
function toKnownErr38(e) {
|
|
24773
|
+
if (e instanceof XRPCError) {
|
|
24774
|
+
}
|
|
24775
|
+
return e;
|
|
24451
24776
|
}
|
|
24452
|
-
function
|
|
24453
|
-
return
|
|
24777
|
+
function isRecordBlob(v) {
|
|
24778
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.listMissingBlobs#recordBlob";
|
|
24779
|
+
}
|
|
24780
|
+
function validateRecordBlob(v) {
|
|
24781
|
+
return lexicons.validate("com.atproto.repo.listMissingBlobs#recordBlob", v);
|
|
24782
|
+
}
|
|
24783
|
+
|
|
24784
|
+
// src/client/types/com/atproto/repo/listRecords.ts
|
|
24785
|
+
var listRecords_exports = {};
|
|
24786
|
+
__export(listRecords_exports, {
|
|
24787
|
+
isRecord: () => isRecord,
|
|
24788
|
+
toKnownErr: () => toKnownErr39,
|
|
24789
|
+
validateRecord: () => validateRecord
|
|
24790
|
+
});
|
|
24791
|
+
function toKnownErr39(e) {
|
|
24792
|
+
if (e instanceof XRPCError) {
|
|
24793
|
+
}
|
|
24794
|
+
return e;
|
|
24795
|
+
}
|
|
24796
|
+
function isRecord(v) {
|
|
24797
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.listRecords#record";
|
|
24798
|
+
}
|
|
24799
|
+
function validateRecord(v) {
|
|
24800
|
+
return lexicons.validate("com.atproto.repo.listRecords#record", v);
|
|
24454
24801
|
}
|
|
24455
24802
|
|
|
24456
24803
|
// src/client/types/com/atproto/repo/putRecord.ts
|
|
24457
24804
|
var putRecord_exports = {};
|
|
24458
24805
|
__export(putRecord_exports, {
|
|
24459
24806
|
InvalidSwapError: () => InvalidSwapError4,
|
|
24460
|
-
toKnownErr: () =>
|
|
24807
|
+
toKnownErr: () => toKnownErr40
|
|
24461
24808
|
});
|
|
24462
24809
|
var InvalidSwapError4 = class extends XRPCError {
|
|
24463
24810
|
constructor(src2) {
|
|
24464
24811
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24465
24812
|
}
|
|
24466
24813
|
};
|
|
24467
|
-
function
|
|
24814
|
+
function toKnownErr40(e) {
|
|
24468
24815
|
if (e instanceof XRPCError) {
|
|
24469
24816
|
if (e.error === "InvalidSwap")
|
|
24470
24817
|
return new InvalidSwapError4(e);
|
|
@@ -24475,9 +24822,31 @@ function toKnownErr34(e) {
|
|
|
24475
24822
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
24476
24823
|
var uploadBlob_exports = {};
|
|
24477
24824
|
__export(uploadBlob_exports, {
|
|
24478
|
-
toKnownErr: () =>
|
|
24825
|
+
toKnownErr: () => toKnownErr41
|
|
24479
24826
|
});
|
|
24480
|
-
function
|
|
24827
|
+
function toKnownErr41(e) {
|
|
24828
|
+
if (e instanceof XRPCError) {
|
|
24829
|
+
}
|
|
24830
|
+
return e;
|
|
24831
|
+
}
|
|
24832
|
+
|
|
24833
|
+
// src/client/types/com/atproto/server/activateAccount.ts
|
|
24834
|
+
var activateAccount_exports = {};
|
|
24835
|
+
__export(activateAccount_exports, {
|
|
24836
|
+
toKnownErr: () => toKnownErr42
|
|
24837
|
+
});
|
|
24838
|
+
function toKnownErr42(e) {
|
|
24839
|
+
if (e instanceof XRPCError) {
|
|
24840
|
+
}
|
|
24841
|
+
return e;
|
|
24842
|
+
}
|
|
24843
|
+
|
|
24844
|
+
// src/client/types/com/atproto/server/checkAccountStatus.ts
|
|
24845
|
+
var checkAccountStatus_exports = {};
|
|
24846
|
+
__export(checkAccountStatus_exports, {
|
|
24847
|
+
toKnownErr: () => toKnownErr43
|
|
24848
|
+
});
|
|
24849
|
+
function toKnownErr43(e) {
|
|
24481
24850
|
if (e instanceof XRPCError) {
|
|
24482
24851
|
}
|
|
24483
24852
|
return e;
|
|
@@ -24490,7 +24859,7 @@ __export(confirmEmail_exports, {
|
|
|
24490
24859
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
24491
24860
|
InvalidEmailError: () => InvalidEmailError,
|
|
24492
24861
|
InvalidTokenError: () => InvalidTokenError,
|
|
24493
|
-
toKnownErr: () =>
|
|
24862
|
+
toKnownErr: () => toKnownErr44
|
|
24494
24863
|
});
|
|
24495
24864
|
var AccountNotFoundError = class extends XRPCError {
|
|
24496
24865
|
constructor(src2) {
|
|
@@ -24512,7 +24881,7 @@ var InvalidEmailError = class extends XRPCError {
|
|
|
24512
24881
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24513
24882
|
}
|
|
24514
24883
|
};
|
|
24515
|
-
function
|
|
24884
|
+
function toKnownErr44(e) {
|
|
24516
24885
|
if (e instanceof XRPCError) {
|
|
24517
24886
|
if (e.error === "AccountNotFound")
|
|
24518
24887
|
return new AccountNotFoundError(e);
|
|
@@ -24536,7 +24905,7 @@ __export(createAccount_exports, {
|
|
|
24536
24905
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
24537
24906
|
UnresolvableDidError: () => UnresolvableDidError,
|
|
24538
24907
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
24539
|
-
toKnownErr: () =>
|
|
24908
|
+
toKnownErr: () => toKnownErr45
|
|
24540
24909
|
});
|
|
24541
24910
|
var InvalidHandleError2 = class extends XRPCError {
|
|
24542
24911
|
constructor(src2) {
|
|
@@ -24573,7 +24942,7 @@ var IncompatibleDidDocError = class extends XRPCError {
|
|
|
24573
24942
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24574
24943
|
}
|
|
24575
24944
|
};
|
|
24576
|
-
function
|
|
24945
|
+
function toKnownErr45(e) {
|
|
24577
24946
|
if (e instanceof XRPCError) {
|
|
24578
24947
|
if (e.error === "InvalidHandle")
|
|
24579
24948
|
return new InvalidHandleError2(e);
|
|
@@ -24598,7 +24967,7 @@ var createAppPassword_exports = {};
|
|
|
24598
24967
|
__export(createAppPassword_exports, {
|
|
24599
24968
|
AccountTakedownError: () => AccountTakedownError,
|
|
24600
24969
|
isAppPassword: () => isAppPassword,
|
|
24601
|
-
toKnownErr: () =>
|
|
24970
|
+
toKnownErr: () => toKnownErr46,
|
|
24602
24971
|
validateAppPassword: () => validateAppPassword
|
|
24603
24972
|
});
|
|
24604
24973
|
var AccountTakedownError = class extends XRPCError {
|
|
@@ -24606,7 +24975,7 @@ var AccountTakedownError = class extends XRPCError {
|
|
|
24606
24975
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24607
24976
|
}
|
|
24608
24977
|
};
|
|
24609
|
-
function
|
|
24978
|
+
function toKnownErr46(e) {
|
|
24610
24979
|
if (e instanceof XRPCError) {
|
|
24611
24980
|
if (e.error === "AccountTakedown")
|
|
24612
24981
|
return new AccountTakedownError(e);
|
|
@@ -24623,9 +24992,9 @@ function validateAppPassword(v) {
|
|
|
24623
24992
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
24624
24993
|
var createInviteCode_exports = {};
|
|
24625
24994
|
__export(createInviteCode_exports, {
|
|
24626
|
-
toKnownErr: () =>
|
|
24995
|
+
toKnownErr: () => toKnownErr47
|
|
24627
24996
|
});
|
|
24628
|
-
function
|
|
24997
|
+
function toKnownErr47(e) {
|
|
24629
24998
|
if (e instanceof XRPCError) {
|
|
24630
24999
|
}
|
|
24631
25000
|
return e;
|
|
@@ -24635,10 +25004,10 @@ function toKnownErr39(e) {
|
|
|
24635
25004
|
var createInviteCodes_exports = {};
|
|
24636
25005
|
__export(createInviteCodes_exports, {
|
|
24637
25006
|
isAccountCodes: () => isAccountCodes,
|
|
24638
|
-
toKnownErr: () =>
|
|
25007
|
+
toKnownErr: () => toKnownErr48,
|
|
24639
25008
|
validateAccountCodes: () => validateAccountCodes
|
|
24640
25009
|
});
|
|
24641
|
-
function
|
|
25010
|
+
function toKnownErr48(e) {
|
|
24642
25011
|
if (e instanceof XRPCError) {
|
|
24643
25012
|
}
|
|
24644
25013
|
return e;
|
|
@@ -24654,14 +25023,14 @@ function validateAccountCodes(v) {
|
|
|
24654
25023
|
var createSession_exports = {};
|
|
24655
25024
|
__export(createSession_exports, {
|
|
24656
25025
|
AccountTakedownError: () => AccountTakedownError2,
|
|
24657
|
-
toKnownErr: () =>
|
|
25026
|
+
toKnownErr: () => toKnownErr49
|
|
24658
25027
|
});
|
|
24659
25028
|
var AccountTakedownError2 = class extends XRPCError {
|
|
24660
25029
|
constructor(src2) {
|
|
24661
25030
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24662
25031
|
}
|
|
24663
25032
|
};
|
|
24664
|
-
function
|
|
25033
|
+
function toKnownErr49(e) {
|
|
24665
25034
|
if (e instanceof XRPCError) {
|
|
24666
25035
|
if (e.error === "AccountTakedown")
|
|
24667
25036
|
return new AccountTakedownError2(e);
|
|
@@ -24669,12 +25038,23 @@ function toKnownErr41(e) {
|
|
|
24669
25038
|
return e;
|
|
24670
25039
|
}
|
|
24671
25040
|
|
|
25041
|
+
// src/client/types/com/atproto/server/deactivateAccount.ts
|
|
25042
|
+
var deactivateAccount_exports = {};
|
|
25043
|
+
__export(deactivateAccount_exports, {
|
|
25044
|
+
toKnownErr: () => toKnownErr50
|
|
25045
|
+
});
|
|
25046
|
+
function toKnownErr50(e) {
|
|
25047
|
+
if (e instanceof XRPCError) {
|
|
25048
|
+
}
|
|
25049
|
+
return e;
|
|
25050
|
+
}
|
|
25051
|
+
|
|
24672
25052
|
// src/client/types/com/atproto/server/deleteAccount.ts
|
|
24673
25053
|
var deleteAccount_exports2 = {};
|
|
24674
25054
|
__export(deleteAccount_exports2, {
|
|
24675
25055
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
24676
25056
|
InvalidTokenError: () => InvalidTokenError2,
|
|
24677
|
-
toKnownErr: () =>
|
|
25057
|
+
toKnownErr: () => toKnownErr51
|
|
24678
25058
|
});
|
|
24679
25059
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
24680
25060
|
constructor(src2) {
|
|
@@ -24686,7 +25066,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
24686
25066
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24687
25067
|
}
|
|
24688
25068
|
};
|
|
24689
|
-
function
|
|
25069
|
+
function toKnownErr51(e) {
|
|
24690
25070
|
if (e instanceof XRPCError) {
|
|
24691
25071
|
if (e.error === "ExpiredToken")
|
|
24692
25072
|
return new ExpiredTokenError2(e);
|
|
@@ -24699,9 +25079,9 @@ function toKnownErr42(e) {
|
|
|
24699
25079
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
24700
25080
|
var deleteSession_exports = {};
|
|
24701
25081
|
__export(deleteSession_exports, {
|
|
24702
|
-
toKnownErr: () =>
|
|
25082
|
+
toKnownErr: () => toKnownErr52
|
|
24703
25083
|
});
|
|
24704
|
-
function
|
|
25084
|
+
function toKnownErr52(e) {
|
|
24705
25085
|
if (e instanceof XRPCError) {
|
|
24706
25086
|
}
|
|
24707
25087
|
return e;
|
|
@@ -24711,10 +25091,10 @@ function toKnownErr43(e) {
|
|
|
24711
25091
|
var describeServer_exports = {};
|
|
24712
25092
|
__export(describeServer_exports, {
|
|
24713
25093
|
isLinks: () => isLinks,
|
|
24714
|
-
toKnownErr: () =>
|
|
25094
|
+
toKnownErr: () => toKnownErr53,
|
|
24715
25095
|
validateLinks: () => validateLinks
|
|
24716
25096
|
});
|
|
24717
|
-
function
|
|
25097
|
+
function toKnownErr53(e) {
|
|
24718
25098
|
if (e instanceof XRPCError) {
|
|
24719
25099
|
}
|
|
24720
25100
|
return e;
|
|
@@ -24730,14 +25110,14 @@ function validateLinks(v) {
|
|
|
24730
25110
|
var getAccountInviteCodes_exports = {};
|
|
24731
25111
|
__export(getAccountInviteCodes_exports, {
|
|
24732
25112
|
DuplicateCreateError: () => DuplicateCreateError,
|
|
24733
|
-
toKnownErr: () =>
|
|
25113
|
+
toKnownErr: () => toKnownErr54
|
|
24734
25114
|
});
|
|
24735
25115
|
var DuplicateCreateError = class extends XRPCError {
|
|
24736
25116
|
constructor(src2) {
|
|
24737
25117
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24738
25118
|
}
|
|
24739
25119
|
};
|
|
24740
|
-
function
|
|
25120
|
+
function toKnownErr54(e) {
|
|
24741
25121
|
if (e instanceof XRPCError) {
|
|
24742
25122
|
if (e.error === "DuplicateCreate")
|
|
24743
25123
|
return new DuplicateCreateError(e);
|
|
@@ -24745,12 +25125,23 @@ function toKnownErr45(e) {
|
|
|
24745
25125
|
return e;
|
|
24746
25126
|
}
|
|
24747
25127
|
|
|
25128
|
+
// src/client/types/com/atproto/server/getServiceAuth.ts
|
|
25129
|
+
var getServiceAuth_exports = {};
|
|
25130
|
+
__export(getServiceAuth_exports, {
|
|
25131
|
+
toKnownErr: () => toKnownErr55
|
|
25132
|
+
});
|
|
25133
|
+
function toKnownErr55(e) {
|
|
25134
|
+
if (e instanceof XRPCError) {
|
|
25135
|
+
}
|
|
25136
|
+
return e;
|
|
25137
|
+
}
|
|
25138
|
+
|
|
24748
25139
|
// src/client/types/com/atproto/server/getSession.ts
|
|
24749
25140
|
var getSession_exports = {};
|
|
24750
25141
|
__export(getSession_exports, {
|
|
24751
|
-
toKnownErr: () =>
|
|
25142
|
+
toKnownErr: () => toKnownErr56
|
|
24752
25143
|
});
|
|
24753
|
-
function
|
|
25144
|
+
function toKnownErr56(e) {
|
|
24754
25145
|
if (e instanceof XRPCError) {
|
|
24755
25146
|
}
|
|
24756
25147
|
return e;
|
|
@@ -24761,7 +25152,7 @@ var listAppPasswords_exports = {};
|
|
|
24761
25152
|
__export(listAppPasswords_exports, {
|
|
24762
25153
|
AccountTakedownError: () => AccountTakedownError3,
|
|
24763
25154
|
isAppPassword: () => isAppPassword2,
|
|
24764
|
-
toKnownErr: () =>
|
|
25155
|
+
toKnownErr: () => toKnownErr57,
|
|
24765
25156
|
validateAppPassword: () => validateAppPassword2
|
|
24766
25157
|
});
|
|
24767
25158
|
var AccountTakedownError3 = class extends XRPCError {
|
|
@@ -24769,7 +25160,7 @@ var AccountTakedownError3 = class extends XRPCError {
|
|
|
24769
25160
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24770
25161
|
}
|
|
24771
25162
|
};
|
|
24772
|
-
function
|
|
25163
|
+
function toKnownErr57(e) {
|
|
24773
25164
|
if (e instanceof XRPCError) {
|
|
24774
25165
|
if (e.error === "AccountTakedown")
|
|
24775
25166
|
return new AccountTakedownError3(e);
|
|
@@ -24787,14 +25178,14 @@ function validateAppPassword2(v) {
|
|
|
24787
25178
|
var refreshSession_exports = {};
|
|
24788
25179
|
__export(refreshSession_exports, {
|
|
24789
25180
|
AccountTakedownError: () => AccountTakedownError4,
|
|
24790
|
-
toKnownErr: () =>
|
|
25181
|
+
toKnownErr: () => toKnownErr58
|
|
24791
25182
|
});
|
|
24792
25183
|
var AccountTakedownError4 = class extends XRPCError {
|
|
24793
25184
|
constructor(src2) {
|
|
24794
25185
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24795
25186
|
}
|
|
24796
25187
|
};
|
|
24797
|
-
function
|
|
25188
|
+
function toKnownErr58(e) {
|
|
24798
25189
|
if (e instanceof XRPCError) {
|
|
24799
25190
|
if (e.error === "AccountTakedown")
|
|
24800
25191
|
return new AccountTakedownError4(e);
|
|
@@ -24805,9 +25196,9 @@ function toKnownErr48(e) {
|
|
|
24805
25196
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
24806
25197
|
var requestAccountDelete_exports = {};
|
|
24807
25198
|
__export(requestAccountDelete_exports, {
|
|
24808
|
-
toKnownErr: () =>
|
|
25199
|
+
toKnownErr: () => toKnownErr59
|
|
24809
25200
|
});
|
|
24810
|
-
function
|
|
25201
|
+
function toKnownErr59(e) {
|
|
24811
25202
|
if (e instanceof XRPCError) {
|
|
24812
25203
|
}
|
|
24813
25204
|
return e;
|
|
@@ -24816,9 +25207,9 @@ function toKnownErr49(e) {
|
|
|
24816
25207
|
// src/client/types/com/atproto/server/requestEmailConfirmation.ts
|
|
24817
25208
|
var requestEmailConfirmation_exports = {};
|
|
24818
25209
|
__export(requestEmailConfirmation_exports, {
|
|
24819
|
-
toKnownErr: () =>
|
|
25210
|
+
toKnownErr: () => toKnownErr60
|
|
24820
25211
|
});
|
|
24821
|
-
function
|
|
25212
|
+
function toKnownErr60(e) {
|
|
24822
25213
|
if (e instanceof XRPCError) {
|
|
24823
25214
|
}
|
|
24824
25215
|
return e;
|
|
@@ -24827,9 +25218,9 @@ function toKnownErr50(e) {
|
|
|
24827
25218
|
// src/client/types/com/atproto/server/requestEmailUpdate.ts
|
|
24828
25219
|
var requestEmailUpdate_exports = {};
|
|
24829
25220
|
__export(requestEmailUpdate_exports, {
|
|
24830
|
-
toKnownErr: () =>
|
|
25221
|
+
toKnownErr: () => toKnownErr61
|
|
24831
25222
|
});
|
|
24832
|
-
function
|
|
25223
|
+
function toKnownErr61(e) {
|
|
24833
25224
|
if (e instanceof XRPCError) {
|
|
24834
25225
|
}
|
|
24835
25226
|
return e;
|
|
@@ -24838,9 +25229,9 @@ function toKnownErr51(e) {
|
|
|
24838
25229
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
24839
25230
|
var requestPasswordReset_exports = {};
|
|
24840
25231
|
__export(requestPasswordReset_exports, {
|
|
24841
|
-
toKnownErr: () =>
|
|
25232
|
+
toKnownErr: () => toKnownErr62
|
|
24842
25233
|
});
|
|
24843
|
-
function
|
|
25234
|
+
function toKnownErr62(e) {
|
|
24844
25235
|
if (e instanceof XRPCError) {
|
|
24845
25236
|
}
|
|
24846
25237
|
return e;
|
|
@@ -24849,9 +25240,9 @@ function toKnownErr52(e) {
|
|
|
24849
25240
|
// src/client/types/com/atproto/server/reserveSigningKey.ts
|
|
24850
25241
|
var reserveSigningKey_exports = {};
|
|
24851
25242
|
__export(reserveSigningKey_exports, {
|
|
24852
|
-
toKnownErr: () =>
|
|
25243
|
+
toKnownErr: () => toKnownErr63
|
|
24853
25244
|
});
|
|
24854
|
-
function
|
|
25245
|
+
function toKnownErr63(e) {
|
|
24855
25246
|
if (e instanceof XRPCError) {
|
|
24856
25247
|
}
|
|
24857
25248
|
return e;
|
|
@@ -24862,7 +25253,7 @@ var resetPassword_exports = {};
|
|
|
24862
25253
|
__export(resetPassword_exports, {
|
|
24863
25254
|
ExpiredTokenError: () => ExpiredTokenError3,
|
|
24864
25255
|
InvalidTokenError: () => InvalidTokenError3,
|
|
24865
|
-
toKnownErr: () =>
|
|
25256
|
+
toKnownErr: () => toKnownErr64
|
|
24866
25257
|
});
|
|
24867
25258
|
var ExpiredTokenError3 = class extends XRPCError {
|
|
24868
25259
|
constructor(src2) {
|
|
@@ -24874,7 +25265,7 @@ var InvalidTokenError3 = class extends XRPCError {
|
|
|
24874
25265
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24875
25266
|
}
|
|
24876
25267
|
};
|
|
24877
|
-
function
|
|
25268
|
+
function toKnownErr64(e) {
|
|
24878
25269
|
if (e instanceof XRPCError) {
|
|
24879
25270
|
if (e.error === "ExpiredToken")
|
|
24880
25271
|
return new ExpiredTokenError3(e);
|
|
@@ -24887,9 +25278,9 @@ function toKnownErr54(e) {
|
|
|
24887
25278
|
// src/client/types/com/atproto/server/revokeAppPassword.ts
|
|
24888
25279
|
var revokeAppPassword_exports = {};
|
|
24889
25280
|
__export(revokeAppPassword_exports, {
|
|
24890
|
-
toKnownErr: () =>
|
|
25281
|
+
toKnownErr: () => toKnownErr65
|
|
24891
25282
|
});
|
|
24892
|
-
function
|
|
25283
|
+
function toKnownErr65(e) {
|
|
24893
25284
|
if (e instanceof XRPCError) {
|
|
24894
25285
|
}
|
|
24895
25286
|
return e;
|
|
@@ -24901,7 +25292,7 @@ __export(updateEmail_exports, {
|
|
|
24901
25292
|
ExpiredTokenError: () => ExpiredTokenError4,
|
|
24902
25293
|
InvalidTokenError: () => InvalidTokenError4,
|
|
24903
25294
|
TokenRequiredError: () => TokenRequiredError,
|
|
24904
|
-
toKnownErr: () =>
|
|
25295
|
+
toKnownErr: () => toKnownErr66
|
|
24905
25296
|
});
|
|
24906
25297
|
var ExpiredTokenError4 = class extends XRPCError {
|
|
24907
25298
|
constructor(src2) {
|
|
@@ -24918,7 +25309,7 @@ var TokenRequiredError = class extends XRPCError {
|
|
|
24918
25309
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24919
25310
|
}
|
|
24920
25311
|
};
|
|
24921
|
-
function
|
|
25312
|
+
function toKnownErr66(e) {
|
|
24922
25313
|
if (e instanceof XRPCError) {
|
|
24923
25314
|
if (e.error === "ExpiredToken")
|
|
24924
25315
|
return new ExpiredTokenError4(e);
|
|
@@ -24933,9 +25324,9 @@ function toKnownErr56(e) {
|
|
|
24933
25324
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
24934
25325
|
var getBlob_exports = {};
|
|
24935
25326
|
__export(getBlob_exports, {
|
|
24936
|
-
toKnownErr: () =>
|
|
25327
|
+
toKnownErr: () => toKnownErr67
|
|
24937
25328
|
});
|
|
24938
|
-
function
|
|
25329
|
+
function toKnownErr67(e) {
|
|
24939
25330
|
if (e instanceof XRPCError) {
|
|
24940
25331
|
}
|
|
24941
25332
|
return e;
|
|
@@ -24944,9 +25335,9 @@ function toKnownErr57(e) {
|
|
|
24944
25335
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
24945
25336
|
var getBlocks_exports = {};
|
|
24946
25337
|
__export(getBlocks_exports, {
|
|
24947
|
-
toKnownErr: () =>
|
|
25338
|
+
toKnownErr: () => toKnownErr68
|
|
24948
25339
|
});
|
|
24949
|
-
function
|
|
25340
|
+
function toKnownErr68(e) {
|
|
24950
25341
|
if (e instanceof XRPCError) {
|
|
24951
25342
|
}
|
|
24952
25343
|
return e;
|
|
@@ -24955,9 +25346,9 @@ function toKnownErr58(e) {
|
|
|
24955
25346
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
24956
25347
|
var getCheckout_exports = {};
|
|
24957
25348
|
__export(getCheckout_exports, {
|
|
24958
|
-
toKnownErr: () =>
|
|
25349
|
+
toKnownErr: () => toKnownErr69
|
|
24959
25350
|
});
|
|
24960
|
-
function
|
|
25351
|
+
function toKnownErr69(e) {
|
|
24961
25352
|
if (e instanceof XRPCError) {
|
|
24962
25353
|
}
|
|
24963
25354
|
return e;
|
|
@@ -24967,14 +25358,14 @@ function toKnownErr59(e) {
|
|
|
24967
25358
|
var getHead_exports = {};
|
|
24968
25359
|
__export(getHead_exports, {
|
|
24969
25360
|
HeadNotFoundError: () => HeadNotFoundError,
|
|
24970
|
-
toKnownErr: () =>
|
|
25361
|
+
toKnownErr: () => toKnownErr70
|
|
24971
25362
|
});
|
|
24972
25363
|
var HeadNotFoundError = class extends XRPCError {
|
|
24973
25364
|
constructor(src2) {
|
|
24974
25365
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24975
25366
|
}
|
|
24976
25367
|
};
|
|
24977
|
-
function
|
|
25368
|
+
function toKnownErr70(e) {
|
|
24978
25369
|
if (e instanceof XRPCError) {
|
|
24979
25370
|
if (e.error === "HeadNotFound")
|
|
24980
25371
|
return new HeadNotFoundError(e);
|
|
@@ -24986,14 +25377,14 @@ function toKnownErr60(e) {
|
|
|
24986
25377
|
var getLatestCommit_exports = {};
|
|
24987
25378
|
__export(getLatestCommit_exports, {
|
|
24988
25379
|
RepoNotFoundError: () => RepoNotFoundError2,
|
|
24989
|
-
toKnownErr: () =>
|
|
25380
|
+
toKnownErr: () => toKnownErr71
|
|
24990
25381
|
});
|
|
24991
25382
|
var RepoNotFoundError2 = class extends XRPCError {
|
|
24992
25383
|
constructor(src2) {
|
|
24993
25384
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24994
25385
|
}
|
|
24995
25386
|
};
|
|
24996
|
-
function
|
|
25387
|
+
function toKnownErr71(e) {
|
|
24997
25388
|
if (e instanceof XRPCError) {
|
|
24998
25389
|
if (e.error === "RepoNotFound")
|
|
24999
25390
|
return new RepoNotFoundError2(e);
|
|
@@ -25004,9 +25395,9 @@ function toKnownErr61(e) {
|
|
|
25004
25395
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
25005
25396
|
var getRecord_exports3 = {};
|
|
25006
25397
|
__export(getRecord_exports3, {
|
|
25007
|
-
toKnownErr: () =>
|
|
25398
|
+
toKnownErr: () => toKnownErr72
|
|
25008
25399
|
});
|
|
25009
|
-
function
|
|
25400
|
+
function toKnownErr72(e) {
|
|
25010
25401
|
if (e instanceof XRPCError) {
|
|
25011
25402
|
}
|
|
25012
25403
|
return e;
|
|
@@ -25015,9 +25406,9 @@ function toKnownErr62(e) {
|
|
|
25015
25406
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
25016
25407
|
var getRepo_exports2 = {};
|
|
25017
25408
|
__export(getRepo_exports2, {
|
|
25018
|
-
toKnownErr: () =>
|
|
25409
|
+
toKnownErr: () => toKnownErr73
|
|
25019
25410
|
});
|
|
25020
|
-
function
|
|
25411
|
+
function toKnownErr73(e) {
|
|
25021
25412
|
if (e instanceof XRPCError) {
|
|
25022
25413
|
}
|
|
25023
25414
|
return e;
|
|
@@ -25026,9 +25417,9 @@ function toKnownErr63(e) {
|
|
|
25026
25417
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
25027
25418
|
var listBlobs_exports = {};
|
|
25028
25419
|
__export(listBlobs_exports, {
|
|
25029
|
-
toKnownErr: () =>
|
|
25420
|
+
toKnownErr: () => toKnownErr74
|
|
25030
25421
|
});
|
|
25031
|
-
function
|
|
25422
|
+
function toKnownErr74(e) {
|
|
25032
25423
|
if (e instanceof XRPCError) {
|
|
25033
25424
|
}
|
|
25034
25425
|
return e;
|
|
@@ -25038,10 +25429,10 @@ function toKnownErr64(e) {
|
|
|
25038
25429
|
var listRepos_exports = {};
|
|
25039
25430
|
__export(listRepos_exports, {
|
|
25040
25431
|
isRepo: () => isRepo,
|
|
25041
|
-
toKnownErr: () =>
|
|
25432
|
+
toKnownErr: () => toKnownErr75,
|
|
25042
25433
|
validateRepo: () => validateRepo
|
|
25043
25434
|
});
|
|
25044
|
-
function
|
|
25435
|
+
function toKnownErr75(e) {
|
|
25045
25436
|
if (e instanceof XRPCError) {
|
|
25046
25437
|
}
|
|
25047
25438
|
return e;
|
|
@@ -25056,9 +25447,9 @@ function validateRepo(v) {
|
|
|
25056
25447
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
25057
25448
|
var notifyOfUpdate_exports = {};
|
|
25058
25449
|
__export(notifyOfUpdate_exports, {
|
|
25059
|
-
toKnownErr: () =>
|
|
25450
|
+
toKnownErr: () => toKnownErr76
|
|
25060
25451
|
});
|
|
25061
|
-
function
|
|
25452
|
+
function toKnownErr76(e) {
|
|
25062
25453
|
if (e instanceof XRPCError) {
|
|
25063
25454
|
}
|
|
25064
25455
|
return e;
|
|
@@ -25067,9 +25458,9 @@ function toKnownErr66(e) {
|
|
|
25067
25458
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
25068
25459
|
var requestCrawl_exports = {};
|
|
25069
25460
|
__export(requestCrawl_exports, {
|
|
25070
|
-
toKnownErr: () =>
|
|
25461
|
+
toKnownErr: () => toKnownErr77
|
|
25071
25462
|
});
|
|
25072
|
-
function
|
|
25463
|
+
function toKnownErr77(e) {
|
|
25073
25464
|
if (e instanceof XRPCError) {
|
|
25074
25465
|
}
|
|
25075
25466
|
return e;
|
|
@@ -25078,9 +25469,9 @@ function toKnownErr67(e) {
|
|
|
25078
25469
|
// src/client/types/com/atproto/temp/checkSignupQueue.ts
|
|
25079
25470
|
var checkSignupQueue_exports = {};
|
|
25080
25471
|
__export(checkSignupQueue_exports, {
|
|
25081
|
-
toKnownErr: () =>
|
|
25472
|
+
toKnownErr: () => toKnownErr78
|
|
25082
25473
|
});
|
|
25083
|
-
function
|
|
25474
|
+
function toKnownErr78(e) {
|
|
25084
25475
|
if (e instanceof XRPCError) {
|
|
25085
25476
|
}
|
|
25086
25477
|
return e;
|
|
@@ -25089,31 +25480,9 @@ function toKnownErr68(e) {
|
|
|
25089
25480
|
// src/client/types/com/atproto/temp/fetchLabels.ts
|
|
25090
25481
|
var fetchLabels_exports = {};
|
|
25091
25482
|
__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
|
|
25483
|
+
toKnownErr: () => toKnownErr79
|
|
25115
25484
|
});
|
|
25116
|
-
function
|
|
25485
|
+
function toKnownErr79(e) {
|
|
25117
25486
|
if (e instanceof XRPCError) {
|
|
25118
25487
|
}
|
|
25119
25488
|
return e;
|
|
@@ -25122,77 +25491,10 @@ function toKnownErr71(e) {
|
|
|
25122
25491
|
// src/client/types/com/atproto/temp/requestPhoneVerification.ts
|
|
25123
25492
|
var requestPhoneVerification_exports = {};
|
|
25124
25493
|
__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
|
|
25494
|
+
toKnownErr: () => toKnownErr80
|
|
25144
25495
|
});
|
|
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) {
|
|
25496
|
+
function toKnownErr80(e) {
|
|
25181
25497
|
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
25498
|
}
|
|
25197
25499
|
return e;
|
|
25198
25500
|
}
|
|
@@ -25200,9 +25502,9 @@ function toKnownErr73(e) {
|
|
|
25200
25502
|
// src/client/types/app/bsky/actor/getPreferences.ts
|
|
25201
25503
|
var getPreferences_exports = {};
|
|
25202
25504
|
__export(getPreferences_exports, {
|
|
25203
|
-
toKnownErr: () =>
|
|
25505
|
+
toKnownErr: () => toKnownErr81
|
|
25204
25506
|
});
|
|
25205
|
-
function
|
|
25507
|
+
function toKnownErr81(e) {
|
|
25206
25508
|
if (e instanceof XRPCError) {
|
|
25207
25509
|
}
|
|
25208
25510
|
return e;
|
|
@@ -25211,9 +25513,9 @@ function toKnownErr74(e) {
|
|
|
25211
25513
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
25212
25514
|
var getProfile_exports = {};
|
|
25213
25515
|
__export(getProfile_exports, {
|
|
25214
|
-
toKnownErr: () =>
|
|
25516
|
+
toKnownErr: () => toKnownErr82
|
|
25215
25517
|
});
|
|
25216
|
-
function
|
|
25518
|
+
function toKnownErr82(e) {
|
|
25217
25519
|
if (e instanceof XRPCError) {
|
|
25218
25520
|
}
|
|
25219
25521
|
return e;
|
|
@@ -25222,9 +25524,9 @@ function toKnownErr75(e) {
|
|
|
25222
25524
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
25223
25525
|
var getProfiles_exports = {};
|
|
25224
25526
|
__export(getProfiles_exports, {
|
|
25225
|
-
toKnownErr: () =>
|
|
25527
|
+
toKnownErr: () => toKnownErr83
|
|
25226
25528
|
});
|
|
25227
|
-
function
|
|
25529
|
+
function toKnownErr83(e) {
|
|
25228
25530
|
if (e instanceof XRPCError) {
|
|
25229
25531
|
}
|
|
25230
25532
|
return e;
|
|
@@ -25233,9 +25535,9 @@ function toKnownErr76(e) {
|
|
|
25233
25535
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
25234
25536
|
var getSuggestions_exports = {};
|
|
25235
25537
|
__export(getSuggestions_exports, {
|
|
25236
|
-
toKnownErr: () =>
|
|
25538
|
+
toKnownErr: () => toKnownErr84
|
|
25237
25539
|
});
|
|
25238
|
-
function
|
|
25540
|
+
function toKnownErr84(e) {
|
|
25239
25541
|
if (e instanceof XRPCError) {
|
|
25240
25542
|
}
|
|
25241
25543
|
return e;
|
|
@@ -25244,9 +25546,9 @@ function toKnownErr77(e) {
|
|
|
25244
25546
|
// src/client/types/app/bsky/actor/putPreferences.ts
|
|
25245
25547
|
var putPreferences_exports = {};
|
|
25246
25548
|
__export(putPreferences_exports, {
|
|
25247
|
-
toKnownErr: () =>
|
|
25549
|
+
toKnownErr: () => toKnownErr85
|
|
25248
25550
|
});
|
|
25249
|
-
function
|
|
25551
|
+
function toKnownErr85(e) {
|
|
25250
25552
|
if (e instanceof XRPCError) {
|
|
25251
25553
|
}
|
|
25252
25554
|
return e;
|
|
@@ -25255,9 +25557,9 @@ function toKnownErr78(e) {
|
|
|
25255
25557
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
25256
25558
|
var searchActors_exports = {};
|
|
25257
25559
|
__export(searchActors_exports, {
|
|
25258
|
-
toKnownErr: () =>
|
|
25560
|
+
toKnownErr: () => toKnownErr86
|
|
25259
25561
|
});
|
|
25260
|
-
function
|
|
25562
|
+
function toKnownErr86(e) {
|
|
25261
25563
|
if (e instanceof XRPCError) {
|
|
25262
25564
|
}
|
|
25263
25565
|
return e;
|
|
@@ -25266,9 +25568,9 @@ function toKnownErr79(e) {
|
|
|
25266
25568
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
25267
25569
|
var searchActorsTypeahead_exports = {};
|
|
25268
25570
|
__export(searchActorsTypeahead_exports, {
|
|
25269
|
-
toKnownErr: () =>
|
|
25571
|
+
toKnownErr: () => toKnownErr87
|
|
25270
25572
|
});
|
|
25271
|
-
function
|
|
25573
|
+
function toKnownErr87(e) {
|
|
25272
25574
|
if (e instanceof XRPCError) {
|
|
25273
25575
|
}
|
|
25274
25576
|
return e;
|
|
@@ -25279,11 +25581,11 @@ var describeFeedGenerator_exports = {};
|
|
|
25279
25581
|
__export(describeFeedGenerator_exports, {
|
|
25280
25582
|
isFeed: () => isFeed,
|
|
25281
25583
|
isLinks: () => isLinks2,
|
|
25282
|
-
toKnownErr: () =>
|
|
25584
|
+
toKnownErr: () => toKnownErr88,
|
|
25283
25585
|
validateFeed: () => validateFeed,
|
|
25284
25586
|
validateLinks: () => validateLinks2
|
|
25285
25587
|
});
|
|
25286
|
-
function
|
|
25588
|
+
function toKnownErr88(e) {
|
|
25287
25589
|
if (e instanceof XRPCError) {
|
|
25288
25590
|
}
|
|
25289
25591
|
return e;
|
|
@@ -25304,9 +25606,9 @@ function validateLinks2(v) {
|
|
|
25304
25606
|
// src/client/types/app/bsky/feed/getActorFeeds.ts
|
|
25305
25607
|
var getActorFeeds_exports = {};
|
|
25306
25608
|
__export(getActorFeeds_exports, {
|
|
25307
|
-
toKnownErr: () =>
|
|
25609
|
+
toKnownErr: () => toKnownErr89
|
|
25308
25610
|
});
|
|
25309
|
-
function
|
|
25611
|
+
function toKnownErr89(e) {
|
|
25310
25612
|
if (e instanceof XRPCError) {
|
|
25311
25613
|
}
|
|
25312
25614
|
return e;
|
|
@@ -25317,7 +25619,7 @@ var getActorLikes_exports = {};
|
|
|
25317
25619
|
__export(getActorLikes_exports, {
|
|
25318
25620
|
BlockedActorError: () => BlockedActorError,
|
|
25319
25621
|
BlockedByActorError: () => BlockedByActorError,
|
|
25320
|
-
toKnownErr: () =>
|
|
25622
|
+
toKnownErr: () => toKnownErr90
|
|
25321
25623
|
});
|
|
25322
25624
|
var BlockedActorError = class extends XRPCError {
|
|
25323
25625
|
constructor(src2) {
|
|
@@ -25329,7 +25631,7 @@ var BlockedByActorError = class extends XRPCError {
|
|
|
25329
25631
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25330
25632
|
}
|
|
25331
25633
|
};
|
|
25332
|
-
function
|
|
25634
|
+
function toKnownErr90(e) {
|
|
25333
25635
|
if (e instanceof XRPCError) {
|
|
25334
25636
|
if (e.error === "BlockedActor")
|
|
25335
25637
|
return new BlockedActorError(e);
|
|
@@ -25344,7 +25646,7 @@ var getAuthorFeed_exports = {};
|
|
|
25344
25646
|
__export(getAuthorFeed_exports, {
|
|
25345
25647
|
BlockedActorError: () => BlockedActorError2,
|
|
25346
25648
|
BlockedByActorError: () => BlockedByActorError2,
|
|
25347
|
-
toKnownErr: () =>
|
|
25649
|
+
toKnownErr: () => toKnownErr91
|
|
25348
25650
|
});
|
|
25349
25651
|
var BlockedActorError2 = class extends XRPCError {
|
|
25350
25652
|
constructor(src2) {
|
|
@@ -25356,7 +25658,7 @@ var BlockedByActorError2 = class extends XRPCError {
|
|
|
25356
25658
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25357
25659
|
}
|
|
25358
25660
|
};
|
|
25359
|
-
function
|
|
25661
|
+
function toKnownErr91(e) {
|
|
25360
25662
|
if (e instanceof XRPCError) {
|
|
25361
25663
|
if (e.error === "BlockedActor")
|
|
25362
25664
|
return new BlockedActorError2(e);
|
|
@@ -25370,14 +25672,14 @@ function toKnownErr84(e) {
|
|
|
25370
25672
|
var getFeed_exports = {};
|
|
25371
25673
|
__export(getFeed_exports, {
|
|
25372
25674
|
UnknownFeedError: () => UnknownFeedError,
|
|
25373
|
-
toKnownErr: () =>
|
|
25675
|
+
toKnownErr: () => toKnownErr92
|
|
25374
25676
|
});
|
|
25375
25677
|
var UnknownFeedError = class extends XRPCError {
|
|
25376
25678
|
constructor(src2) {
|
|
25377
25679
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25378
25680
|
}
|
|
25379
25681
|
};
|
|
25380
|
-
function
|
|
25682
|
+
function toKnownErr92(e) {
|
|
25381
25683
|
if (e instanceof XRPCError) {
|
|
25382
25684
|
if (e.error === "UnknownFeed")
|
|
25383
25685
|
return new UnknownFeedError(e);
|
|
@@ -25388,9 +25690,9 @@ function toKnownErr85(e) {
|
|
|
25388
25690
|
// src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
25389
25691
|
var getFeedGenerator_exports = {};
|
|
25390
25692
|
__export(getFeedGenerator_exports, {
|
|
25391
|
-
toKnownErr: () =>
|
|
25693
|
+
toKnownErr: () => toKnownErr93
|
|
25392
25694
|
});
|
|
25393
|
-
function
|
|
25695
|
+
function toKnownErr93(e) {
|
|
25394
25696
|
if (e instanceof XRPCError) {
|
|
25395
25697
|
}
|
|
25396
25698
|
return e;
|
|
@@ -25399,9 +25701,9 @@ function toKnownErr86(e) {
|
|
|
25399
25701
|
// src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
25400
25702
|
var getFeedGenerators_exports = {};
|
|
25401
25703
|
__export(getFeedGenerators_exports, {
|
|
25402
|
-
toKnownErr: () =>
|
|
25704
|
+
toKnownErr: () => toKnownErr94
|
|
25403
25705
|
});
|
|
25404
|
-
function
|
|
25706
|
+
function toKnownErr94(e) {
|
|
25405
25707
|
if (e instanceof XRPCError) {
|
|
25406
25708
|
}
|
|
25407
25709
|
return e;
|
|
@@ -25411,14 +25713,14 @@ function toKnownErr87(e) {
|
|
|
25411
25713
|
var getFeedSkeleton_exports = {};
|
|
25412
25714
|
__export(getFeedSkeleton_exports, {
|
|
25413
25715
|
UnknownFeedError: () => UnknownFeedError2,
|
|
25414
|
-
toKnownErr: () =>
|
|
25716
|
+
toKnownErr: () => toKnownErr95
|
|
25415
25717
|
});
|
|
25416
25718
|
var UnknownFeedError2 = class extends XRPCError {
|
|
25417
25719
|
constructor(src2) {
|
|
25418
25720
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25419
25721
|
}
|
|
25420
25722
|
};
|
|
25421
|
-
function
|
|
25723
|
+
function toKnownErr95(e) {
|
|
25422
25724
|
if (e instanceof XRPCError) {
|
|
25423
25725
|
if (e.error === "UnknownFeed")
|
|
25424
25726
|
return new UnknownFeedError2(e);
|
|
@@ -25430,10 +25732,10 @@ function toKnownErr88(e) {
|
|
|
25430
25732
|
var getLikes_exports = {};
|
|
25431
25733
|
__export(getLikes_exports, {
|
|
25432
25734
|
isLike: () => isLike,
|
|
25433
|
-
toKnownErr: () =>
|
|
25735
|
+
toKnownErr: () => toKnownErr96,
|
|
25434
25736
|
validateLike: () => validateLike
|
|
25435
25737
|
});
|
|
25436
|
-
function
|
|
25738
|
+
function toKnownErr96(e) {
|
|
25437
25739
|
if (e instanceof XRPCError) {
|
|
25438
25740
|
}
|
|
25439
25741
|
return e;
|
|
@@ -25449,14 +25751,14 @@ function validateLike(v) {
|
|
|
25449
25751
|
var getListFeed_exports = {};
|
|
25450
25752
|
__export(getListFeed_exports, {
|
|
25451
25753
|
UnknownListError: () => UnknownListError,
|
|
25452
|
-
toKnownErr: () =>
|
|
25754
|
+
toKnownErr: () => toKnownErr97
|
|
25453
25755
|
});
|
|
25454
25756
|
var UnknownListError = class extends XRPCError {
|
|
25455
25757
|
constructor(src2) {
|
|
25456
25758
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25457
25759
|
}
|
|
25458
25760
|
};
|
|
25459
|
-
function
|
|
25761
|
+
function toKnownErr97(e) {
|
|
25460
25762
|
if (e instanceof XRPCError) {
|
|
25461
25763
|
if (e.error === "UnknownList")
|
|
25462
25764
|
return new UnknownListError(e);
|
|
@@ -25468,14 +25770,14 @@ function toKnownErr90(e) {
|
|
|
25468
25770
|
var getPostThread_exports = {};
|
|
25469
25771
|
__export(getPostThread_exports, {
|
|
25470
25772
|
NotFoundError: () => NotFoundError,
|
|
25471
|
-
toKnownErr: () =>
|
|
25773
|
+
toKnownErr: () => toKnownErr98
|
|
25472
25774
|
});
|
|
25473
25775
|
var NotFoundError = class extends XRPCError {
|
|
25474
25776
|
constructor(src2) {
|
|
25475
25777
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25476
25778
|
}
|
|
25477
25779
|
};
|
|
25478
|
-
function
|
|
25780
|
+
function toKnownErr98(e) {
|
|
25479
25781
|
if (e instanceof XRPCError) {
|
|
25480
25782
|
if (e.error === "NotFound")
|
|
25481
25783
|
return new NotFoundError(e);
|
|
@@ -25486,9 +25788,9 @@ function toKnownErr91(e) {
|
|
|
25486
25788
|
// src/client/types/app/bsky/feed/getPosts.ts
|
|
25487
25789
|
var getPosts_exports = {};
|
|
25488
25790
|
__export(getPosts_exports, {
|
|
25489
|
-
toKnownErr: () =>
|
|
25791
|
+
toKnownErr: () => toKnownErr99
|
|
25490
25792
|
});
|
|
25491
|
-
function
|
|
25793
|
+
function toKnownErr99(e) {
|
|
25492
25794
|
if (e instanceof XRPCError) {
|
|
25493
25795
|
}
|
|
25494
25796
|
return e;
|
|
@@ -25497,9 +25799,9 @@ function toKnownErr92(e) {
|
|
|
25497
25799
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
25498
25800
|
var getRepostedBy_exports = {};
|
|
25499
25801
|
__export(getRepostedBy_exports, {
|
|
25500
|
-
toKnownErr: () =>
|
|
25802
|
+
toKnownErr: () => toKnownErr100
|
|
25501
25803
|
});
|
|
25502
|
-
function
|
|
25804
|
+
function toKnownErr100(e) {
|
|
25503
25805
|
if (e instanceof XRPCError) {
|
|
25504
25806
|
}
|
|
25505
25807
|
return e;
|
|
@@ -25508,9 +25810,9 @@ function toKnownErr93(e) {
|
|
|
25508
25810
|
// src/client/types/app/bsky/feed/getSuggestedFeeds.ts
|
|
25509
25811
|
var getSuggestedFeeds_exports = {};
|
|
25510
25812
|
__export(getSuggestedFeeds_exports, {
|
|
25511
|
-
toKnownErr: () =>
|
|
25813
|
+
toKnownErr: () => toKnownErr101
|
|
25512
25814
|
});
|
|
25513
|
-
function
|
|
25815
|
+
function toKnownErr101(e) {
|
|
25514
25816
|
if (e instanceof XRPCError) {
|
|
25515
25817
|
}
|
|
25516
25818
|
return e;
|
|
@@ -25519,9 +25821,9 @@ function toKnownErr94(e) {
|
|
|
25519
25821
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
25520
25822
|
var getTimeline_exports = {};
|
|
25521
25823
|
__export(getTimeline_exports, {
|
|
25522
|
-
toKnownErr: () =>
|
|
25824
|
+
toKnownErr: () => toKnownErr102
|
|
25523
25825
|
});
|
|
25524
|
-
function
|
|
25826
|
+
function toKnownErr102(e) {
|
|
25525
25827
|
if (e instanceof XRPCError) {
|
|
25526
25828
|
}
|
|
25527
25829
|
return e;
|
|
@@ -25531,14 +25833,14 @@ function toKnownErr95(e) {
|
|
|
25531
25833
|
var searchPosts_exports = {};
|
|
25532
25834
|
__export(searchPosts_exports, {
|
|
25533
25835
|
BadQueryStringError: () => BadQueryStringError,
|
|
25534
|
-
toKnownErr: () =>
|
|
25836
|
+
toKnownErr: () => toKnownErr103
|
|
25535
25837
|
});
|
|
25536
25838
|
var BadQueryStringError = class extends XRPCError {
|
|
25537
25839
|
constructor(src2) {
|
|
25538
25840
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25539
25841
|
}
|
|
25540
25842
|
};
|
|
25541
|
-
function
|
|
25843
|
+
function toKnownErr103(e) {
|
|
25542
25844
|
if (e instanceof XRPCError) {
|
|
25543
25845
|
if (e.error === "BadQueryString")
|
|
25544
25846
|
return new BadQueryStringError(e);
|
|
@@ -25549,9 +25851,9 @@ function toKnownErr96(e) {
|
|
|
25549
25851
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
25550
25852
|
var getBlocks_exports2 = {};
|
|
25551
25853
|
__export(getBlocks_exports2, {
|
|
25552
|
-
toKnownErr: () =>
|
|
25854
|
+
toKnownErr: () => toKnownErr104
|
|
25553
25855
|
});
|
|
25554
|
-
function
|
|
25856
|
+
function toKnownErr104(e) {
|
|
25555
25857
|
if (e instanceof XRPCError) {
|
|
25556
25858
|
}
|
|
25557
25859
|
return e;
|
|
@@ -25560,9 +25862,9 @@ function toKnownErr97(e) {
|
|
|
25560
25862
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
25561
25863
|
var getFollowers_exports = {};
|
|
25562
25864
|
__export(getFollowers_exports, {
|
|
25563
|
-
toKnownErr: () =>
|
|
25865
|
+
toKnownErr: () => toKnownErr105
|
|
25564
25866
|
});
|
|
25565
|
-
function
|
|
25867
|
+
function toKnownErr105(e) {
|
|
25566
25868
|
if (e instanceof XRPCError) {
|
|
25567
25869
|
}
|
|
25568
25870
|
return e;
|
|
@@ -25571,9 +25873,9 @@ function toKnownErr98(e) {
|
|
|
25571
25873
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
25572
25874
|
var getFollows_exports = {};
|
|
25573
25875
|
__export(getFollows_exports, {
|
|
25574
|
-
toKnownErr: () =>
|
|
25876
|
+
toKnownErr: () => toKnownErr106
|
|
25575
25877
|
});
|
|
25576
|
-
function
|
|
25878
|
+
function toKnownErr106(e) {
|
|
25577
25879
|
if (e instanceof XRPCError) {
|
|
25578
25880
|
}
|
|
25579
25881
|
return e;
|
|
@@ -25582,9 +25884,9 @@ function toKnownErr99(e) {
|
|
|
25582
25884
|
// src/client/types/app/bsky/graph/getList.ts
|
|
25583
25885
|
var getList_exports = {};
|
|
25584
25886
|
__export(getList_exports, {
|
|
25585
|
-
toKnownErr: () =>
|
|
25887
|
+
toKnownErr: () => toKnownErr107
|
|
25586
25888
|
});
|
|
25587
|
-
function
|
|
25889
|
+
function toKnownErr107(e) {
|
|
25588
25890
|
if (e instanceof XRPCError) {
|
|
25589
25891
|
}
|
|
25590
25892
|
return e;
|
|
@@ -25593,9 +25895,9 @@ function toKnownErr100(e) {
|
|
|
25593
25895
|
// src/client/types/app/bsky/graph/getListBlocks.ts
|
|
25594
25896
|
var getListBlocks_exports = {};
|
|
25595
25897
|
__export(getListBlocks_exports, {
|
|
25596
|
-
toKnownErr: () =>
|
|
25898
|
+
toKnownErr: () => toKnownErr108
|
|
25597
25899
|
});
|
|
25598
|
-
function
|
|
25900
|
+
function toKnownErr108(e) {
|
|
25599
25901
|
if (e instanceof XRPCError) {
|
|
25600
25902
|
}
|
|
25601
25903
|
return e;
|
|
@@ -25604,9 +25906,9 @@ function toKnownErr101(e) {
|
|
|
25604
25906
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
25605
25907
|
var getListMutes_exports = {};
|
|
25606
25908
|
__export(getListMutes_exports, {
|
|
25607
|
-
toKnownErr: () =>
|
|
25909
|
+
toKnownErr: () => toKnownErr109
|
|
25608
25910
|
});
|
|
25609
|
-
function
|
|
25911
|
+
function toKnownErr109(e) {
|
|
25610
25912
|
if (e instanceof XRPCError) {
|
|
25611
25913
|
}
|
|
25612
25914
|
return e;
|
|
@@ -25615,9 +25917,9 @@ function toKnownErr102(e) {
|
|
|
25615
25917
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
25616
25918
|
var getLists_exports = {};
|
|
25617
25919
|
__export(getLists_exports, {
|
|
25618
|
-
toKnownErr: () =>
|
|
25920
|
+
toKnownErr: () => toKnownErr110
|
|
25619
25921
|
});
|
|
25620
|
-
function
|
|
25922
|
+
function toKnownErr110(e) {
|
|
25621
25923
|
if (e instanceof XRPCError) {
|
|
25622
25924
|
}
|
|
25623
25925
|
return e;
|
|
@@ -25626,9 +25928,9 @@ function toKnownErr103(e) {
|
|
|
25626
25928
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
25627
25929
|
var getMutes_exports = {};
|
|
25628
25930
|
__export(getMutes_exports, {
|
|
25629
|
-
toKnownErr: () =>
|
|
25931
|
+
toKnownErr: () => toKnownErr111
|
|
25630
25932
|
});
|
|
25631
|
-
function
|
|
25933
|
+
function toKnownErr111(e) {
|
|
25632
25934
|
if (e instanceof XRPCError) {
|
|
25633
25935
|
}
|
|
25634
25936
|
return e;
|
|
@@ -25638,14 +25940,14 @@ function toKnownErr104(e) {
|
|
|
25638
25940
|
var getRelationships_exports = {};
|
|
25639
25941
|
__export(getRelationships_exports, {
|
|
25640
25942
|
ActorNotFoundError: () => ActorNotFoundError,
|
|
25641
|
-
toKnownErr: () =>
|
|
25943
|
+
toKnownErr: () => toKnownErr112
|
|
25642
25944
|
});
|
|
25643
25945
|
var ActorNotFoundError = class extends XRPCError {
|
|
25644
25946
|
constructor(src2) {
|
|
25645
25947
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25646
25948
|
}
|
|
25647
25949
|
};
|
|
25648
|
-
function
|
|
25950
|
+
function toKnownErr112(e) {
|
|
25649
25951
|
if (e instanceof XRPCError) {
|
|
25650
25952
|
if (e.error === "ActorNotFound")
|
|
25651
25953
|
return new ActorNotFoundError(e);
|
|
@@ -25656,9 +25958,9 @@ function toKnownErr105(e) {
|
|
|
25656
25958
|
// src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
25657
25959
|
var getSuggestedFollowsByActor_exports = {};
|
|
25658
25960
|
__export(getSuggestedFollowsByActor_exports, {
|
|
25659
|
-
toKnownErr: () =>
|
|
25961
|
+
toKnownErr: () => toKnownErr113
|
|
25660
25962
|
});
|
|
25661
|
-
function
|
|
25963
|
+
function toKnownErr113(e) {
|
|
25662
25964
|
if (e instanceof XRPCError) {
|
|
25663
25965
|
}
|
|
25664
25966
|
return e;
|
|
@@ -25667,9 +25969,9 @@ function toKnownErr106(e) {
|
|
|
25667
25969
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
25668
25970
|
var muteActor_exports = {};
|
|
25669
25971
|
__export(muteActor_exports, {
|
|
25670
|
-
toKnownErr: () =>
|
|
25972
|
+
toKnownErr: () => toKnownErr114
|
|
25671
25973
|
});
|
|
25672
|
-
function
|
|
25974
|
+
function toKnownErr114(e) {
|
|
25673
25975
|
if (e instanceof XRPCError) {
|
|
25674
25976
|
}
|
|
25675
25977
|
return e;
|
|
@@ -25678,9 +25980,9 @@ function toKnownErr107(e) {
|
|
|
25678
25980
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
25679
25981
|
var muteActorList_exports = {};
|
|
25680
25982
|
__export(muteActorList_exports, {
|
|
25681
|
-
toKnownErr: () =>
|
|
25983
|
+
toKnownErr: () => toKnownErr115
|
|
25682
25984
|
});
|
|
25683
|
-
function
|
|
25985
|
+
function toKnownErr115(e) {
|
|
25684
25986
|
if (e instanceof XRPCError) {
|
|
25685
25987
|
}
|
|
25686
25988
|
return e;
|
|
@@ -25689,9 +25991,9 @@ function toKnownErr108(e) {
|
|
|
25689
25991
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
25690
25992
|
var unmuteActor_exports = {};
|
|
25691
25993
|
__export(unmuteActor_exports, {
|
|
25692
|
-
toKnownErr: () =>
|
|
25994
|
+
toKnownErr: () => toKnownErr116
|
|
25693
25995
|
});
|
|
25694
|
-
function
|
|
25996
|
+
function toKnownErr116(e) {
|
|
25695
25997
|
if (e instanceof XRPCError) {
|
|
25696
25998
|
}
|
|
25697
25999
|
return e;
|
|
@@ -25700,9 +26002,9 @@ function toKnownErr109(e) {
|
|
|
25700
26002
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
25701
26003
|
var unmuteActorList_exports = {};
|
|
25702
26004
|
__export(unmuteActorList_exports, {
|
|
25703
|
-
toKnownErr: () =>
|
|
26005
|
+
toKnownErr: () => toKnownErr117
|
|
25704
26006
|
});
|
|
25705
|
-
function
|
|
26007
|
+
function toKnownErr117(e) {
|
|
25706
26008
|
if (e instanceof XRPCError) {
|
|
25707
26009
|
}
|
|
25708
26010
|
return e;
|
|
@@ -25711,9 +26013,9 @@ function toKnownErr110(e) {
|
|
|
25711
26013
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
25712
26014
|
var getUnreadCount_exports = {};
|
|
25713
26015
|
__export(getUnreadCount_exports, {
|
|
25714
|
-
toKnownErr: () =>
|
|
26016
|
+
toKnownErr: () => toKnownErr118
|
|
25715
26017
|
});
|
|
25716
|
-
function
|
|
26018
|
+
function toKnownErr118(e) {
|
|
25717
26019
|
if (e instanceof XRPCError) {
|
|
25718
26020
|
}
|
|
25719
26021
|
return e;
|
|
@@ -25723,10 +26025,10 @@ function toKnownErr111(e) {
|
|
|
25723
26025
|
var listNotifications_exports = {};
|
|
25724
26026
|
__export(listNotifications_exports, {
|
|
25725
26027
|
isNotification: () => isNotification,
|
|
25726
|
-
toKnownErr: () =>
|
|
26028
|
+
toKnownErr: () => toKnownErr119,
|
|
25727
26029
|
validateNotification: () => validateNotification
|
|
25728
26030
|
});
|
|
25729
|
-
function
|
|
26031
|
+
function toKnownErr119(e) {
|
|
25730
26032
|
if (e instanceof XRPCError) {
|
|
25731
26033
|
}
|
|
25732
26034
|
return e;
|
|
@@ -25741,9 +26043,9 @@ function validateNotification(v) {
|
|
|
25741
26043
|
// src/client/types/app/bsky/notification/registerPush.ts
|
|
25742
26044
|
var registerPush_exports = {};
|
|
25743
26045
|
__export(registerPush_exports, {
|
|
25744
|
-
toKnownErr: () =>
|
|
26046
|
+
toKnownErr: () => toKnownErr120
|
|
25745
26047
|
});
|
|
25746
|
-
function
|
|
26048
|
+
function toKnownErr120(e) {
|
|
25747
26049
|
if (e instanceof XRPCError) {
|
|
25748
26050
|
}
|
|
25749
26051
|
return e;
|
|
@@ -25752,9 +26054,9 @@ function toKnownErr113(e) {
|
|
|
25752
26054
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
25753
26055
|
var updateSeen_exports = {};
|
|
25754
26056
|
__export(updateSeen_exports, {
|
|
25755
|
-
toKnownErr: () =>
|
|
26057
|
+
toKnownErr: () => toKnownErr121
|
|
25756
26058
|
});
|
|
25757
|
-
function
|
|
26059
|
+
function toKnownErr121(e) {
|
|
25758
26060
|
if (e instanceof XRPCError) {
|
|
25759
26061
|
}
|
|
25760
26062
|
return e;
|
|
@@ -25763,9 +26065,9 @@ function toKnownErr114(e) {
|
|
|
25763
26065
|
// src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
25764
26066
|
var getPopularFeedGenerators_exports = {};
|
|
25765
26067
|
__export(getPopularFeedGenerators_exports, {
|
|
25766
|
-
toKnownErr: () =>
|
|
26068
|
+
toKnownErr: () => toKnownErr122
|
|
25767
26069
|
});
|
|
25768
|
-
function
|
|
26070
|
+
function toKnownErr122(e) {
|
|
25769
26071
|
if (e instanceof XRPCError) {
|
|
25770
26072
|
}
|
|
25771
26073
|
return e;
|
|
@@ -25775,10 +26077,10 @@ function toKnownErr115(e) {
|
|
|
25775
26077
|
var getTaggedSuggestions_exports = {};
|
|
25776
26078
|
__export(getTaggedSuggestions_exports, {
|
|
25777
26079
|
isSuggestion: () => isSuggestion,
|
|
25778
|
-
toKnownErr: () =>
|
|
26080
|
+
toKnownErr: () => toKnownErr123,
|
|
25779
26081
|
validateSuggestion: () => validateSuggestion
|
|
25780
26082
|
});
|
|
25781
|
-
function
|
|
26083
|
+
function toKnownErr123(e) {
|
|
25782
26084
|
if (e instanceof XRPCError) {
|
|
25783
26085
|
}
|
|
25784
26086
|
return e;
|
|
@@ -25794,14 +26096,14 @@ function validateSuggestion(v) {
|
|
|
25794
26096
|
var searchActorsSkeleton_exports = {};
|
|
25795
26097
|
__export(searchActorsSkeleton_exports, {
|
|
25796
26098
|
BadQueryStringError: () => BadQueryStringError2,
|
|
25797
|
-
toKnownErr: () =>
|
|
26099
|
+
toKnownErr: () => toKnownErr124
|
|
25798
26100
|
});
|
|
25799
26101
|
var BadQueryStringError2 = class extends XRPCError {
|
|
25800
26102
|
constructor(src2) {
|
|
25801
26103
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25802
26104
|
}
|
|
25803
26105
|
};
|
|
25804
|
-
function
|
|
26106
|
+
function toKnownErr124(e) {
|
|
25805
26107
|
if (e instanceof XRPCError) {
|
|
25806
26108
|
if (e.error === "BadQueryString")
|
|
25807
26109
|
return new BadQueryStringError2(e);
|
|
@@ -25813,14 +26115,14 @@ function toKnownErr117(e) {
|
|
|
25813
26115
|
var searchPostsSkeleton_exports = {};
|
|
25814
26116
|
__export(searchPostsSkeleton_exports, {
|
|
25815
26117
|
BadQueryStringError: () => BadQueryStringError3,
|
|
25816
|
-
toKnownErr: () =>
|
|
26118
|
+
toKnownErr: () => toKnownErr125
|
|
25817
26119
|
});
|
|
25818
26120
|
var BadQueryStringError3 = class extends XRPCError {
|
|
25819
26121
|
constructor(src2) {
|
|
25820
26122
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
25821
26123
|
}
|
|
25822
26124
|
};
|
|
25823
|
-
function
|
|
26125
|
+
function toKnownErr125(e) {
|
|
25824
26126
|
if (e instanceof XRPCError) {
|
|
25825
26127
|
if (e.error === "BadQueryString")
|
|
25826
26128
|
return new BadQueryStringError3(e);
|
|
@@ -26211,12 +26513,14 @@ var subscribeRepos_exports = {};
|
|
|
26211
26513
|
__export(subscribeRepos_exports, {
|
|
26212
26514
|
isCommit: () => isCommit,
|
|
26213
26515
|
isHandle: () => isHandle,
|
|
26516
|
+
isIdentity: () => isIdentity,
|
|
26214
26517
|
isInfo: () => isInfo2,
|
|
26215
26518
|
isMigrate: () => isMigrate,
|
|
26216
26519
|
isRepoOp: () => isRepoOp,
|
|
26217
26520
|
isTombstone: () => isTombstone,
|
|
26218
26521
|
validateCommit: () => validateCommit,
|
|
26219
26522
|
validateHandle: () => validateHandle,
|
|
26523
|
+
validateIdentity: () => validateIdentity,
|
|
26220
26524
|
validateInfo: () => validateInfo2,
|
|
26221
26525
|
validateMigrate: () => validateMigrate,
|
|
26222
26526
|
validateRepoOp: () => validateRepoOp,
|
|
@@ -26228,6 +26532,12 @@ function isCommit(v) {
|
|
|
26228
26532
|
function validateCommit(v) {
|
|
26229
26533
|
return lexicons.validate("com.atproto.sync.subscribeRepos#commit", v);
|
|
26230
26534
|
}
|
|
26535
|
+
function isIdentity(v) {
|
|
26536
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#identity";
|
|
26537
|
+
}
|
|
26538
|
+
function validateIdentity(v) {
|
|
26539
|
+
return lexicons.validate("com.atproto.sync.subscribeRepos#identity", v);
|
|
26540
|
+
}
|
|
26231
26541
|
function isHandle(v) {
|
|
26232
26542
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#handle";
|
|
26233
26543
|
}
|
|
@@ -26265,7 +26575,10 @@ __export(defs_exports5, {
|
|
|
26265
26575
|
isAdultContentPref: () => isAdultContentPref,
|
|
26266
26576
|
isContentLabelPref: () => isContentLabelPref,
|
|
26267
26577
|
isFeedViewPref: () => isFeedViewPref,
|
|
26578
|
+
isHiddenPostsPref: () => isHiddenPostsPref,
|
|
26268
26579
|
isInterestsPref: () => isInterestsPref,
|
|
26580
|
+
isMutedWord: () => isMutedWord,
|
|
26581
|
+
isMutedWordsPref: () => isMutedWordsPref,
|
|
26269
26582
|
isPersonalDetailsPref: () => isPersonalDetailsPref,
|
|
26270
26583
|
isProfileView: () => isProfileView,
|
|
26271
26584
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
@@ -26276,7 +26589,10 @@ __export(defs_exports5, {
|
|
|
26276
26589
|
validateAdultContentPref: () => validateAdultContentPref,
|
|
26277
26590
|
validateContentLabelPref: () => validateContentLabelPref,
|
|
26278
26591
|
validateFeedViewPref: () => validateFeedViewPref,
|
|
26592
|
+
validateHiddenPostsPref: () => validateHiddenPostsPref,
|
|
26279
26593
|
validateInterestsPref: () => validateInterestsPref,
|
|
26594
|
+
validateMutedWord: () => validateMutedWord,
|
|
26595
|
+
validateMutedWordsPref: () => validateMutedWordsPref,
|
|
26280
26596
|
validatePersonalDetailsPref: () => validatePersonalDetailsPref,
|
|
26281
26597
|
validateProfileView: () => validateProfileView,
|
|
26282
26598
|
validateProfileViewBasic: () => validateProfileViewBasic,
|
|
@@ -26345,11 +26661,29 @@ function isThreadViewPref(v) {
|
|
|
26345
26661
|
function validateThreadViewPref(v) {
|
|
26346
26662
|
return lexicons.validate("app.bsky.actor.defs#threadViewPref", v);
|
|
26347
26663
|
}
|
|
26348
|
-
function isInterestsPref(v) {
|
|
26349
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#interestsPref";
|
|
26664
|
+
function isInterestsPref(v) {
|
|
26665
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#interestsPref";
|
|
26666
|
+
}
|
|
26667
|
+
function validateInterestsPref(v) {
|
|
26668
|
+
return lexicons.validate("app.bsky.actor.defs#interestsPref", v);
|
|
26669
|
+
}
|
|
26670
|
+
function isMutedWord(v) {
|
|
26671
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWord";
|
|
26672
|
+
}
|
|
26673
|
+
function validateMutedWord(v) {
|
|
26674
|
+
return lexicons.validate("app.bsky.actor.defs#mutedWord", v);
|
|
26675
|
+
}
|
|
26676
|
+
function isMutedWordsPref(v) {
|
|
26677
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWordsPref";
|
|
26678
|
+
}
|
|
26679
|
+
function validateMutedWordsPref(v) {
|
|
26680
|
+
return lexicons.validate("app.bsky.actor.defs#mutedWordsPref", v);
|
|
26350
26681
|
}
|
|
26351
|
-
function
|
|
26352
|
-
return
|
|
26682
|
+
function isHiddenPostsPref(v) {
|
|
26683
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#hiddenPostsPref";
|
|
26684
|
+
}
|
|
26685
|
+
function validateHiddenPostsPref(v) {
|
|
26686
|
+
return lexicons.validate("app.bsky.actor.defs#hiddenPostsPref", v);
|
|
26353
26687
|
}
|
|
26354
26688
|
|
|
26355
26689
|
// src/client/types/app/bsky/actor/profile.ts
|
|
@@ -27113,14 +27447,34 @@ var ComAtprotoIdentityNS = class {
|
|
|
27113
27447
|
constructor(service2) {
|
|
27114
27448
|
this._service = service2;
|
|
27115
27449
|
}
|
|
27450
|
+
getRecommendedDidCredentials(params2, opts) {
|
|
27451
|
+
return this._service.xrpc.call("com.atproto.identity.getRecommendedDidCredentials", params2, void 0, opts).catch((e) => {
|
|
27452
|
+
throw toKnownErr24(e);
|
|
27453
|
+
});
|
|
27454
|
+
}
|
|
27455
|
+
requestPlcOperationSignature(data, opts) {
|
|
27456
|
+
return this._service.xrpc.call("com.atproto.identity.requestPlcOperationSignature", opts?.qp, data, opts).catch((e) => {
|
|
27457
|
+
throw toKnownErr25(e);
|
|
27458
|
+
});
|
|
27459
|
+
}
|
|
27116
27460
|
resolveHandle(params2, opts) {
|
|
27117
27461
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
27118
|
-
throw
|
|
27462
|
+
throw toKnownErr26(e);
|
|
27463
|
+
});
|
|
27464
|
+
}
|
|
27465
|
+
signPlcOperation(data, opts) {
|
|
27466
|
+
return this._service.xrpc.call("com.atproto.identity.signPlcOperation", opts?.qp, data, opts).catch((e) => {
|
|
27467
|
+
throw toKnownErr27(e);
|
|
27468
|
+
});
|
|
27469
|
+
}
|
|
27470
|
+
submitPlcOperation(data, opts) {
|
|
27471
|
+
return this._service.xrpc.call("com.atproto.identity.submitPlcOperation", opts?.qp, data, opts).catch((e) => {
|
|
27472
|
+
throw toKnownErr28(e);
|
|
27119
27473
|
});
|
|
27120
27474
|
}
|
|
27121
27475
|
updateHandle(data, opts) {
|
|
27122
27476
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
27123
|
-
throw
|
|
27477
|
+
throw toKnownErr29(e);
|
|
27124
27478
|
});
|
|
27125
27479
|
}
|
|
27126
27480
|
};
|
|
@@ -27130,7 +27484,7 @@ var ComAtprotoLabelNS = class {
|
|
|
27130
27484
|
}
|
|
27131
27485
|
queryLabels(params2, opts) {
|
|
27132
27486
|
return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
|
|
27133
|
-
throw
|
|
27487
|
+
throw toKnownErr30(e);
|
|
27134
27488
|
});
|
|
27135
27489
|
}
|
|
27136
27490
|
};
|
|
@@ -27140,7 +27494,7 @@ var ComAtprotoModerationNS = class {
|
|
|
27140
27494
|
}
|
|
27141
27495
|
createReport(data, opts) {
|
|
27142
27496
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
27143
|
-
throw
|
|
27497
|
+
throw toKnownErr31(e);
|
|
27144
27498
|
});
|
|
27145
27499
|
}
|
|
27146
27500
|
};
|
|
@@ -27150,42 +27504,52 @@ var ComAtprotoRepoNS = class {
|
|
|
27150
27504
|
}
|
|
27151
27505
|
applyWrites(data, opts) {
|
|
27152
27506
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
27153
|
-
throw
|
|
27507
|
+
throw toKnownErr32(e);
|
|
27154
27508
|
});
|
|
27155
27509
|
}
|
|
27156
27510
|
createRecord(data, opts) {
|
|
27157
27511
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
27158
|
-
throw
|
|
27512
|
+
throw toKnownErr33(e);
|
|
27159
27513
|
});
|
|
27160
27514
|
}
|
|
27161
27515
|
deleteRecord(data, opts) {
|
|
27162
27516
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
27163
|
-
throw
|
|
27517
|
+
throw toKnownErr34(e);
|
|
27164
27518
|
});
|
|
27165
27519
|
}
|
|
27166
27520
|
describeRepo(params2, opts) {
|
|
27167
27521
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
27168
|
-
throw
|
|
27522
|
+
throw toKnownErr35(e);
|
|
27169
27523
|
});
|
|
27170
27524
|
}
|
|
27171
27525
|
getRecord(params2, opts) {
|
|
27172
27526
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
27173
|
-
throw
|
|
27527
|
+
throw toKnownErr36(e);
|
|
27528
|
+
});
|
|
27529
|
+
}
|
|
27530
|
+
importRepo(data, opts) {
|
|
27531
|
+
return this._service.xrpc.call("com.atproto.repo.importRepo", opts?.qp, data, opts).catch((e) => {
|
|
27532
|
+
throw toKnownErr37(e);
|
|
27533
|
+
});
|
|
27534
|
+
}
|
|
27535
|
+
listMissingBlobs(params2, opts) {
|
|
27536
|
+
return this._service.xrpc.call("com.atproto.repo.listMissingBlobs", params2, void 0, opts).catch((e) => {
|
|
27537
|
+
throw toKnownErr38(e);
|
|
27174
27538
|
});
|
|
27175
27539
|
}
|
|
27176
27540
|
listRecords(params2, opts) {
|
|
27177
27541
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
27178
|
-
throw
|
|
27542
|
+
throw toKnownErr39(e);
|
|
27179
27543
|
});
|
|
27180
27544
|
}
|
|
27181
27545
|
putRecord(data, opts) {
|
|
27182
27546
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
27183
|
-
throw
|
|
27547
|
+
throw toKnownErr40(e);
|
|
27184
27548
|
});
|
|
27185
27549
|
}
|
|
27186
27550
|
uploadBlob(data, opts) {
|
|
27187
27551
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
27188
|
-
throw
|
|
27552
|
+
throw toKnownErr41(e);
|
|
27189
27553
|
});
|
|
27190
27554
|
}
|
|
27191
27555
|
};
|
|
@@ -27193,109 +27557,129 @@ var ComAtprotoServerNS = class {
|
|
|
27193
27557
|
constructor(service2) {
|
|
27194
27558
|
this._service = service2;
|
|
27195
27559
|
}
|
|
27560
|
+
activateAccount(data, opts) {
|
|
27561
|
+
return this._service.xrpc.call("com.atproto.server.activateAccount", opts?.qp, data, opts).catch((e) => {
|
|
27562
|
+
throw toKnownErr42(e);
|
|
27563
|
+
});
|
|
27564
|
+
}
|
|
27565
|
+
checkAccountStatus(params2, opts) {
|
|
27566
|
+
return this._service.xrpc.call("com.atproto.server.checkAccountStatus", params2, void 0, opts).catch((e) => {
|
|
27567
|
+
throw toKnownErr43(e);
|
|
27568
|
+
});
|
|
27569
|
+
}
|
|
27196
27570
|
confirmEmail(data, opts) {
|
|
27197
27571
|
return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
|
|
27198
|
-
throw
|
|
27572
|
+
throw toKnownErr44(e);
|
|
27199
27573
|
});
|
|
27200
27574
|
}
|
|
27201
27575
|
createAccount(data, opts) {
|
|
27202
27576
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
27203
|
-
throw
|
|
27577
|
+
throw toKnownErr45(e);
|
|
27204
27578
|
});
|
|
27205
27579
|
}
|
|
27206
27580
|
createAppPassword(data, opts) {
|
|
27207
27581
|
return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
27208
|
-
throw
|
|
27582
|
+
throw toKnownErr46(e);
|
|
27209
27583
|
});
|
|
27210
27584
|
}
|
|
27211
27585
|
createInviteCode(data, opts) {
|
|
27212
27586
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
27213
|
-
throw
|
|
27587
|
+
throw toKnownErr47(e);
|
|
27214
27588
|
});
|
|
27215
27589
|
}
|
|
27216
27590
|
createInviteCodes(data, opts) {
|
|
27217
27591
|
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
27218
|
-
throw
|
|
27592
|
+
throw toKnownErr48(e);
|
|
27219
27593
|
});
|
|
27220
27594
|
}
|
|
27221
27595
|
createSession(data, opts) {
|
|
27222
27596
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
27223
|
-
throw
|
|
27597
|
+
throw toKnownErr49(e);
|
|
27598
|
+
});
|
|
27599
|
+
}
|
|
27600
|
+
deactivateAccount(data, opts) {
|
|
27601
|
+
return this._service.xrpc.call("com.atproto.server.deactivateAccount", opts?.qp, data, opts).catch((e) => {
|
|
27602
|
+
throw toKnownErr50(e);
|
|
27224
27603
|
});
|
|
27225
27604
|
}
|
|
27226
27605
|
deleteAccount(data, opts) {
|
|
27227
27606
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
27228
|
-
throw
|
|
27607
|
+
throw toKnownErr51(e);
|
|
27229
27608
|
});
|
|
27230
27609
|
}
|
|
27231
27610
|
deleteSession(data, opts) {
|
|
27232
27611
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
27233
|
-
throw
|
|
27612
|
+
throw toKnownErr52(e);
|
|
27234
27613
|
});
|
|
27235
27614
|
}
|
|
27236
27615
|
describeServer(params2, opts) {
|
|
27237
27616
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
27238
|
-
throw
|
|
27617
|
+
throw toKnownErr53(e);
|
|
27239
27618
|
});
|
|
27240
27619
|
}
|
|
27241
27620
|
getAccountInviteCodes(params2, opts) {
|
|
27242
27621
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
27243
|
-
throw
|
|
27622
|
+
throw toKnownErr54(e);
|
|
27623
|
+
});
|
|
27624
|
+
}
|
|
27625
|
+
getServiceAuth(params2, opts) {
|
|
27626
|
+
return this._service.xrpc.call("com.atproto.server.getServiceAuth", params2, void 0, opts).catch((e) => {
|
|
27627
|
+
throw toKnownErr55(e);
|
|
27244
27628
|
});
|
|
27245
27629
|
}
|
|
27246
27630
|
getSession(params2, opts) {
|
|
27247
27631
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
27248
|
-
throw
|
|
27632
|
+
throw toKnownErr56(e);
|
|
27249
27633
|
});
|
|
27250
27634
|
}
|
|
27251
27635
|
listAppPasswords(params2, opts) {
|
|
27252
27636
|
return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
|
|
27253
|
-
throw
|
|
27637
|
+
throw toKnownErr57(e);
|
|
27254
27638
|
});
|
|
27255
27639
|
}
|
|
27256
27640
|
refreshSession(data, opts) {
|
|
27257
27641
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
27258
|
-
throw
|
|
27642
|
+
throw toKnownErr58(e);
|
|
27259
27643
|
});
|
|
27260
27644
|
}
|
|
27261
27645
|
requestAccountDelete(data, opts) {
|
|
27262
27646
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
27263
|
-
throw
|
|
27647
|
+
throw toKnownErr59(e);
|
|
27264
27648
|
});
|
|
27265
27649
|
}
|
|
27266
27650
|
requestEmailConfirmation(data, opts) {
|
|
27267
27651
|
return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
|
|
27268
|
-
throw
|
|
27652
|
+
throw toKnownErr60(e);
|
|
27269
27653
|
});
|
|
27270
27654
|
}
|
|
27271
27655
|
requestEmailUpdate(data, opts) {
|
|
27272
27656
|
return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
|
|
27273
|
-
throw
|
|
27657
|
+
throw toKnownErr61(e);
|
|
27274
27658
|
});
|
|
27275
27659
|
}
|
|
27276
27660
|
requestPasswordReset(data, opts) {
|
|
27277
27661
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
27278
|
-
throw
|
|
27662
|
+
throw toKnownErr62(e);
|
|
27279
27663
|
});
|
|
27280
27664
|
}
|
|
27281
27665
|
reserveSigningKey(data, opts) {
|
|
27282
27666
|
return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
|
|
27283
|
-
throw
|
|
27667
|
+
throw toKnownErr63(e);
|
|
27284
27668
|
});
|
|
27285
27669
|
}
|
|
27286
27670
|
resetPassword(data, opts) {
|
|
27287
27671
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
27288
|
-
throw
|
|
27672
|
+
throw toKnownErr64(e);
|
|
27289
27673
|
});
|
|
27290
27674
|
}
|
|
27291
27675
|
revokeAppPassword(data, opts) {
|
|
27292
27676
|
return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
27293
|
-
throw
|
|
27677
|
+
throw toKnownErr65(e);
|
|
27294
27678
|
});
|
|
27295
27679
|
}
|
|
27296
27680
|
updateEmail(data, opts) {
|
|
27297
27681
|
return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
|
|
27298
|
-
throw
|
|
27682
|
+
throw toKnownErr66(e);
|
|
27299
27683
|
});
|
|
27300
27684
|
}
|
|
27301
27685
|
};
|
|
@@ -27305,57 +27689,57 @@ var ComAtprotoSyncNS = class {
|
|
|
27305
27689
|
}
|
|
27306
27690
|
getBlob(params2, opts) {
|
|
27307
27691
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
27308
|
-
throw
|
|
27692
|
+
throw toKnownErr67(e);
|
|
27309
27693
|
});
|
|
27310
27694
|
}
|
|
27311
27695
|
getBlocks(params2, opts) {
|
|
27312
27696
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
27313
|
-
throw
|
|
27697
|
+
throw toKnownErr68(e);
|
|
27314
27698
|
});
|
|
27315
27699
|
}
|
|
27316
27700
|
getCheckout(params2, opts) {
|
|
27317
27701
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
27318
|
-
throw
|
|
27702
|
+
throw toKnownErr69(e);
|
|
27319
27703
|
});
|
|
27320
27704
|
}
|
|
27321
27705
|
getHead(params2, opts) {
|
|
27322
27706
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
27323
|
-
throw
|
|
27707
|
+
throw toKnownErr70(e);
|
|
27324
27708
|
});
|
|
27325
27709
|
}
|
|
27326
27710
|
getLatestCommit(params2, opts) {
|
|
27327
27711
|
return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
|
|
27328
|
-
throw
|
|
27712
|
+
throw toKnownErr71(e);
|
|
27329
27713
|
});
|
|
27330
27714
|
}
|
|
27331
27715
|
getRecord(params2, opts) {
|
|
27332
27716
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
27333
|
-
throw
|
|
27717
|
+
throw toKnownErr72(e);
|
|
27334
27718
|
});
|
|
27335
27719
|
}
|
|
27336
27720
|
getRepo(params2, opts) {
|
|
27337
27721
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
27338
|
-
throw
|
|
27722
|
+
throw toKnownErr73(e);
|
|
27339
27723
|
});
|
|
27340
27724
|
}
|
|
27341
27725
|
listBlobs(params2, opts) {
|
|
27342
27726
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
27343
|
-
throw
|
|
27727
|
+
throw toKnownErr74(e);
|
|
27344
27728
|
});
|
|
27345
27729
|
}
|
|
27346
27730
|
listRepos(params2, opts) {
|
|
27347
27731
|
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
27348
|
-
throw
|
|
27732
|
+
throw toKnownErr75(e);
|
|
27349
27733
|
});
|
|
27350
27734
|
}
|
|
27351
27735
|
notifyOfUpdate(data, opts) {
|
|
27352
27736
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
|
|
27353
|
-
throw
|
|
27737
|
+
throw toKnownErr76(e);
|
|
27354
27738
|
});
|
|
27355
27739
|
}
|
|
27356
27740
|
requestCrawl(data, opts) {
|
|
27357
27741
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
|
|
27358
|
-
throw
|
|
27742
|
+
throw toKnownErr77(e);
|
|
27359
27743
|
});
|
|
27360
27744
|
}
|
|
27361
27745
|
};
|
|
@@ -27365,32 +27749,17 @@ var ComAtprotoTempNS = class {
|
|
|
27365
27749
|
}
|
|
27366
27750
|
checkSignupQueue(params2, opts) {
|
|
27367
27751
|
return this._service.xrpc.call("com.atproto.temp.checkSignupQueue", params2, void 0, opts).catch((e) => {
|
|
27368
|
-
throw
|
|
27752
|
+
throw toKnownErr78(e);
|
|
27369
27753
|
});
|
|
27370
27754
|
}
|
|
27371
27755
|
fetchLabels(params2, opts) {
|
|
27372
27756
|
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);
|
|
27757
|
+
throw toKnownErr79(e);
|
|
27384
27758
|
});
|
|
27385
27759
|
}
|
|
27386
27760
|
requestPhoneVerification(data, opts) {
|
|
27387
27761
|
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);
|
|
27762
|
+
throw toKnownErr80(e);
|
|
27394
27763
|
});
|
|
27395
27764
|
}
|
|
27396
27765
|
};
|
|
@@ -27419,37 +27788,37 @@ var AppBskyActorNS = class {
|
|
|
27419
27788
|
}
|
|
27420
27789
|
getPreferences(params2, opts) {
|
|
27421
27790
|
return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
|
|
27422
|
-
throw
|
|
27791
|
+
throw toKnownErr81(e);
|
|
27423
27792
|
});
|
|
27424
27793
|
}
|
|
27425
27794
|
getProfile(params2, opts) {
|
|
27426
27795
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
27427
|
-
throw
|
|
27796
|
+
throw toKnownErr82(e);
|
|
27428
27797
|
});
|
|
27429
27798
|
}
|
|
27430
27799
|
getProfiles(params2, opts) {
|
|
27431
27800
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
27432
|
-
throw
|
|
27801
|
+
throw toKnownErr83(e);
|
|
27433
27802
|
});
|
|
27434
27803
|
}
|
|
27435
27804
|
getSuggestions(params2, opts) {
|
|
27436
27805
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
27437
|
-
throw
|
|
27806
|
+
throw toKnownErr84(e);
|
|
27438
27807
|
});
|
|
27439
27808
|
}
|
|
27440
27809
|
putPreferences(data, opts) {
|
|
27441
27810
|
return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
|
|
27442
|
-
throw
|
|
27811
|
+
throw toKnownErr85(e);
|
|
27443
27812
|
});
|
|
27444
27813
|
}
|
|
27445
27814
|
searchActors(params2, opts) {
|
|
27446
27815
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
27447
|
-
throw
|
|
27816
|
+
throw toKnownErr86(e);
|
|
27448
27817
|
});
|
|
27449
27818
|
}
|
|
27450
27819
|
searchActorsTypeahead(params2, opts) {
|
|
27451
27820
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
27452
|
-
throw
|
|
27821
|
+
throw toKnownErr87(e);
|
|
27453
27822
|
});
|
|
27454
27823
|
}
|
|
27455
27824
|
};
|
|
@@ -27496,82 +27865,82 @@ var AppBskyFeedNS = class {
|
|
|
27496
27865
|
}
|
|
27497
27866
|
describeFeedGenerator(params2, opts) {
|
|
27498
27867
|
return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
27499
|
-
throw
|
|
27868
|
+
throw toKnownErr88(e);
|
|
27500
27869
|
});
|
|
27501
27870
|
}
|
|
27502
27871
|
getActorFeeds(params2, opts) {
|
|
27503
27872
|
return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
|
|
27504
|
-
throw
|
|
27873
|
+
throw toKnownErr89(e);
|
|
27505
27874
|
});
|
|
27506
27875
|
}
|
|
27507
27876
|
getActorLikes(params2, opts) {
|
|
27508
27877
|
return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
|
|
27509
|
-
throw
|
|
27878
|
+
throw toKnownErr90(e);
|
|
27510
27879
|
});
|
|
27511
27880
|
}
|
|
27512
27881
|
getAuthorFeed(params2, opts) {
|
|
27513
27882
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
27514
|
-
throw
|
|
27883
|
+
throw toKnownErr91(e);
|
|
27515
27884
|
});
|
|
27516
27885
|
}
|
|
27517
27886
|
getFeed(params2, opts) {
|
|
27518
27887
|
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
27519
|
-
throw
|
|
27888
|
+
throw toKnownErr92(e);
|
|
27520
27889
|
});
|
|
27521
27890
|
}
|
|
27522
27891
|
getFeedGenerator(params2, opts) {
|
|
27523
27892
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
27524
|
-
throw
|
|
27893
|
+
throw toKnownErr93(e);
|
|
27525
27894
|
});
|
|
27526
27895
|
}
|
|
27527
27896
|
getFeedGenerators(params2, opts) {
|
|
27528
27897
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
27529
|
-
throw
|
|
27898
|
+
throw toKnownErr94(e);
|
|
27530
27899
|
});
|
|
27531
27900
|
}
|
|
27532
27901
|
getFeedSkeleton(params2, opts) {
|
|
27533
27902
|
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
27534
|
-
throw
|
|
27903
|
+
throw toKnownErr95(e);
|
|
27535
27904
|
});
|
|
27536
27905
|
}
|
|
27537
27906
|
getLikes(params2, opts) {
|
|
27538
27907
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
27539
|
-
throw
|
|
27908
|
+
throw toKnownErr96(e);
|
|
27540
27909
|
});
|
|
27541
27910
|
}
|
|
27542
27911
|
getListFeed(params2, opts) {
|
|
27543
27912
|
return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
|
|
27544
|
-
throw
|
|
27913
|
+
throw toKnownErr97(e);
|
|
27545
27914
|
});
|
|
27546
27915
|
}
|
|
27547
27916
|
getPostThread(params2, opts) {
|
|
27548
27917
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
27549
|
-
throw
|
|
27918
|
+
throw toKnownErr98(e);
|
|
27550
27919
|
});
|
|
27551
27920
|
}
|
|
27552
27921
|
getPosts(params2, opts) {
|
|
27553
27922
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
27554
|
-
throw
|
|
27923
|
+
throw toKnownErr99(e);
|
|
27555
27924
|
});
|
|
27556
27925
|
}
|
|
27557
27926
|
getRepostedBy(params2, opts) {
|
|
27558
27927
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
27559
|
-
throw
|
|
27928
|
+
throw toKnownErr100(e);
|
|
27560
27929
|
});
|
|
27561
27930
|
}
|
|
27562
27931
|
getSuggestedFeeds(params2, opts) {
|
|
27563
27932
|
return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
|
|
27564
|
-
throw
|
|
27933
|
+
throw toKnownErr101(e);
|
|
27565
27934
|
});
|
|
27566
27935
|
}
|
|
27567
27936
|
getTimeline(params2, opts) {
|
|
27568
27937
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
27569
|
-
throw
|
|
27938
|
+
throw toKnownErr102(e);
|
|
27570
27939
|
});
|
|
27571
27940
|
}
|
|
27572
27941
|
searchPosts(params2, opts) {
|
|
27573
27942
|
return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
|
|
27574
|
-
throw
|
|
27943
|
+
throw toKnownErr103(e);
|
|
27575
27944
|
});
|
|
27576
27945
|
}
|
|
27577
27946
|
};
|
|
@@ -27721,72 +28090,72 @@ var AppBskyGraphNS = class {
|
|
|
27721
28090
|
}
|
|
27722
28091
|
getBlocks(params2, opts) {
|
|
27723
28092
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
27724
|
-
throw
|
|
28093
|
+
throw toKnownErr104(e);
|
|
27725
28094
|
});
|
|
27726
28095
|
}
|
|
27727
28096
|
getFollowers(params2, opts) {
|
|
27728
28097
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
27729
|
-
throw
|
|
28098
|
+
throw toKnownErr105(e);
|
|
27730
28099
|
});
|
|
27731
28100
|
}
|
|
27732
28101
|
getFollows(params2, opts) {
|
|
27733
28102
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
27734
|
-
throw
|
|
28103
|
+
throw toKnownErr106(e);
|
|
27735
28104
|
});
|
|
27736
28105
|
}
|
|
27737
28106
|
getList(params2, opts) {
|
|
27738
28107
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
27739
|
-
throw
|
|
28108
|
+
throw toKnownErr107(e);
|
|
27740
28109
|
});
|
|
27741
28110
|
}
|
|
27742
28111
|
getListBlocks(params2, opts) {
|
|
27743
28112
|
return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
|
|
27744
|
-
throw
|
|
28113
|
+
throw toKnownErr108(e);
|
|
27745
28114
|
});
|
|
27746
28115
|
}
|
|
27747
28116
|
getListMutes(params2, opts) {
|
|
27748
28117
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
27749
|
-
throw
|
|
28118
|
+
throw toKnownErr109(e);
|
|
27750
28119
|
});
|
|
27751
28120
|
}
|
|
27752
28121
|
getLists(params2, opts) {
|
|
27753
28122
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
27754
|
-
throw
|
|
28123
|
+
throw toKnownErr110(e);
|
|
27755
28124
|
});
|
|
27756
28125
|
}
|
|
27757
28126
|
getMutes(params2, opts) {
|
|
27758
28127
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
27759
|
-
throw
|
|
28128
|
+
throw toKnownErr111(e);
|
|
27760
28129
|
});
|
|
27761
28130
|
}
|
|
27762
28131
|
getRelationships(params2, opts) {
|
|
27763
28132
|
return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
|
|
27764
|
-
throw
|
|
28133
|
+
throw toKnownErr112(e);
|
|
27765
28134
|
});
|
|
27766
28135
|
}
|
|
27767
28136
|
getSuggestedFollowsByActor(params2, opts) {
|
|
27768
28137
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
27769
|
-
throw
|
|
28138
|
+
throw toKnownErr113(e);
|
|
27770
28139
|
});
|
|
27771
28140
|
}
|
|
27772
28141
|
muteActor(data, opts) {
|
|
27773
28142
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
27774
|
-
throw
|
|
28143
|
+
throw toKnownErr114(e);
|
|
27775
28144
|
});
|
|
27776
28145
|
}
|
|
27777
28146
|
muteActorList(data, opts) {
|
|
27778
28147
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
27779
|
-
throw
|
|
28148
|
+
throw toKnownErr115(e);
|
|
27780
28149
|
});
|
|
27781
28150
|
}
|
|
27782
28151
|
unmuteActor(data, opts) {
|
|
27783
28152
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
27784
|
-
throw
|
|
28153
|
+
throw toKnownErr116(e);
|
|
27785
28154
|
});
|
|
27786
28155
|
}
|
|
27787
28156
|
unmuteActorList(data, opts) {
|
|
27788
28157
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
27789
|
-
throw
|
|
28158
|
+
throw toKnownErr117(e);
|
|
27790
28159
|
});
|
|
27791
28160
|
}
|
|
27792
28161
|
};
|
|
@@ -27931,22 +28300,22 @@ var AppBskyNotificationNS = class {
|
|
|
27931
28300
|
}
|
|
27932
28301
|
getUnreadCount(params2, opts) {
|
|
27933
28302
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
27934
|
-
throw
|
|
28303
|
+
throw toKnownErr118(e);
|
|
27935
28304
|
});
|
|
27936
28305
|
}
|
|
27937
28306
|
listNotifications(params2, opts) {
|
|
27938
28307
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
27939
|
-
throw
|
|
28308
|
+
throw toKnownErr119(e);
|
|
27940
28309
|
});
|
|
27941
28310
|
}
|
|
27942
28311
|
registerPush(data, opts) {
|
|
27943
28312
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
27944
|
-
throw
|
|
28313
|
+
throw toKnownErr120(e);
|
|
27945
28314
|
});
|
|
27946
28315
|
}
|
|
27947
28316
|
updateSeen(data, opts) {
|
|
27948
28317
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
27949
|
-
throw
|
|
28318
|
+
throw toKnownErr121(e);
|
|
27950
28319
|
});
|
|
27951
28320
|
}
|
|
27952
28321
|
};
|
|
@@ -27961,22 +28330,22 @@ var AppBskyUnspeccedNS = class {
|
|
|
27961
28330
|
}
|
|
27962
28331
|
getPopularFeedGenerators(params2, opts) {
|
|
27963
28332
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
27964
|
-
throw
|
|
28333
|
+
throw toKnownErr122(e);
|
|
27965
28334
|
});
|
|
27966
28335
|
}
|
|
27967
28336
|
getTaggedSuggestions(params2, opts) {
|
|
27968
28337
|
return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
|
|
27969
|
-
throw
|
|
28338
|
+
throw toKnownErr123(e);
|
|
27970
28339
|
});
|
|
27971
28340
|
}
|
|
27972
28341
|
searchActorsSkeleton(params2, opts) {
|
|
27973
28342
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
27974
|
-
throw
|
|
28343
|
+
throw toKnownErr124(e);
|
|
27975
28344
|
});
|
|
27976
28345
|
}
|
|
27977
28346
|
searchPostsSkeleton(params2, opts) {
|
|
27978
28347
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
27979
|
-
throw
|
|
28348
|
+
throw toKnownErr125(e);
|
|
27980
28349
|
});
|
|
27981
28350
|
}
|
|
27982
28351
|
};
|
|
@@ -31666,7 +32035,9 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31666
32035
|
birthDate: void 0,
|
|
31667
32036
|
interests: {
|
|
31668
32037
|
tags: []
|
|
31669
|
-
}
|
|
32038
|
+
},
|
|
32039
|
+
mutedWords: [],
|
|
32040
|
+
hiddenPosts: []
|
|
31670
32041
|
};
|
|
31671
32042
|
const res = await this.app.bsky.actor.getPreferences({});
|
|
31672
32043
|
for (const pref of res.data.preferences) {
|
|
@@ -31696,6 +32067,12 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31696
32067
|
} else if (defs_exports5.isInterestsPref(pref) && defs_exports5.validateInterestsPref(pref).success) {
|
|
31697
32068
|
const { $type, ...v } = pref;
|
|
31698
32069
|
prefs.interests = { ...prefs.interests, ...v };
|
|
32070
|
+
} else if (defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success) {
|
|
32071
|
+
const { $type, ...v } = pref;
|
|
32072
|
+
prefs.mutedWords = v.items;
|
|
32073
|
+
} else if (defs_exports5.isHiddenPostsPref(pref) && defs_exports5.validateHiddenPostsPref(pref).success) {
|
|
32074
|
+
const { $type, ...v } = pref;
|
|
32075
|
+
prefs.hiddenPosts = v.items;
|
|
31699
32076
|
}
|
|
31700
32077
|
}
|
|
31701
32078
|
return prefs;
|
|
@@ -31806,6 +32183,21 @@ var BskyAgent = class extends AtpAgent {
|
|
|
31806
32183
|
return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#interestsPref" }]);
|
|
31807
32184
|
});
|
|
31808
32185
|
}
|
|
32186
|
+
async upsertMutedWords(mutedWords) {
|
|
32187
|
+
await updateMutedWords(this, mutedWords, "upsert");
|
|
32188
|
+
}
|
|
32189
|
+
async updateMutedWord(mutedWord) {
|
|
32190
|
+
await updateMutedWords(this, [mutedWord], "update");
|
|
32191
|
+
}
|
|
32192
|
+
async removeMutedWord(mutedWord) {
|
|
32193
|
+
await updateMutedWords(this, [mutedWord], "remove");
|
|
32194
|
+
}
|
|
32195
|
+
async hidePost(postUri) {
|
|
32196
|
+
await updateHiddenPost(this, postUri, "hide");
|
|
32197
|
+
}
|
|
32198
|
+
async unhidePost(postUri) {
|
|
32199
|
+
await updateHiddenPost(this, postUri, "unhide");
|
|
32200
|
+
}
|
|
31809
32201
|
};
|
|
31810
32202
|
async function updatePreferences(agent, cb) {
|
|
31811
32203
|
const res = await agent.app.bsky.actor.getPreferences({});
|
|
@@ -31837,4 +32229,65 @@ async function updateFeedPreferences(agent, cb) {
|
|
|
31837
32229
|
});
|
|
31838
32230
|
return res;
|
|
31839
32231
|
}
|
|
32232
|
+
async function updateMutedWords(agent, mutedWords, action) {
|
|
32233
|
+
const sanitizeMutedWord = (word) => ({
|
|
32234
|
+
value: word.value.replace(/^#/, ""),
|
|
32235
|
+
targets: word.targets
|
|
32236
|
+
});
|
|
32237
|
+
await updatePreferences(agent, (prefs) => {
|
|
32238
|
+
let mutedWordsPref = prefs.findLast((pref) => defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success);
|
|
32239
|
+
if (mutedWordsPref && defs_exports5.isMutedWordsPref(mutedWordsPref)) {
|
|
32240
|
+
if (action === "upsert" || action === "update") {
|
|
32241
|
+
for (const newItem of mutedWords) {
|
|
32242
|
+
let foundMatch = false;
|
|
32243
|
+
for (const existingItem of mutedWordsPref.items) {
|
|
32244
|
+
if (existingItem.value === newItem.value) {
|
|
32245
|
+
existingItem.targets = action === "upsert" ? Array.from(/* @__PURE__ */ new Set([...existingItem.targets, ...newItem.targets])) : newItem.targets;
|
|
32246
|
+
foundMatch = true;
|
|
32247
|
+
break;
|
|
32248
|
+
}
|
|
32249
|
+
}
|
|
32250
|
+
if (action === "upsert" && !foundMatch) {
|
|
32251
|
+
mutedWordsPref.items.push(sanitizeMutedWord(newItem));
|
|
32252
|
+
}
|
|
32253
|
+
}
|
|
32254
|
+
} else if (action === "remove") {
|
|
32255
|
+
for (const word of mutedWords) {
|
|
32256
|
+
for (let i = 0; i < mutedWordsPref.items.length; i++) {
|
|
32257
|
+
const existing = mutedWordsPref.items[i];
|
|
32258
|
+
if (existing.value === sanitizeMutedWord(word).value) {
|
|
32259
|
+
mutedWordsPref.items.splice(i, 1);
|
|
32260
|
+
break;
|
|
32261
|
+
}
|
|
32262
|
+
}
|
|
32263
|
+
}
|
|
32264
|
+
}
|
|
32265
|
+
} else {
|
|
32266
|
+
if (action === "upsert") {
|
|
32267
|
+
mutedWordsPref = {
|
|
32268
|
+
items: mutedWords.map(sanitizeMutedWord)
|
|
32269
|
+
};
|
|
32270
|
+
}
|
|
32271
|
+
}
|
|
32272
|
+
return prefs.filter((p) => !defs_exports5.isMutedWordsPref(p)).concat([
|
|
32273
|
+
{ ...mutedWordsPref, $type: "app.bsky.actor.defs#mutedWordsPref" }
|
|
32274
|
+
]);
|
|
32275
|
+
});
|
|
32276
|
+
}
|
|
32277
|
+
async function updateHiddenPost(agent, postUri, action) {
|
|
32278
|
+
await updatePreferences(agent, (prefs) => {
|
|
32279
|
+
let pref = prefs.findLast((pref2) => defs_exports5.isHiddenPostsPref(pref2) && defs_exports5.validateHiddenPostsPref(pref2).success);
|
|
32280
|
+
if (pref && defs_exports5.isHiddenPostsPref(pref)) {
|
|
32281
|
+
pref.items = action === "hide" ? Array.from(/* @__PURE__ */ new Set([...pref.items, postUri])) : pref.items.filter((uri2) => uri2 !== postUri);
|
|
32282
|
+
} else {
|
|
32283
|
+
if (action === "hide") {
|
|
32284
|
+
pref = {
|
|
32285
|
+
$type: "app.bsky.actor.defs#hiddenPostsPref",
|
|
32286
|
+
items: [postUri]
|
|
32287
|
+
};
|
|
32288
|
+
}
|
|
32289
|
+
}
|
|
32290
|
+
return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#hiddenPostsPref" }]);
|
|
32291
|
+
});
|
|
32292
|
+
}
|
|
31840
32293
|
//# sourceMappingURL=index.js.map
|