@atproto/api 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +10 -0
- package/dist/client/lexicons.d.ts +221 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +5 -0
- package/dist/client/types/com/atproto/admin/disableInviteCodes.d.ts +18 -0
- package/dist/client/types/com/atproto/admin/getInviteCodes.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +1 -0
- package/dist/client/types/com/atproto/server/createInviteCode.d.ts +1 -0
- package/dist/client/types/com/atproto/server/createSession.d.ts +1 -0
- package/dist/client/types/com/atproto/server/defs.d.ts +20 -0
- package/dist/client/types/com/atproto/server/getAccountInviteCodes.d.ts +23 -0
- package/dist/client/types/com/atproto/server/getSession.d.ts +1 -0
- package/dist/index.js +512 -203
- package/dist/index.js.map +4 -4
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/agent.ts +4 -0
- package/src/client/index.ts +41 -0
- package/src/client/lexicons.ts +237 -7
- package/src/client/types/com/atproto/admin/defs.ts +5 -0
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +33 -0
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +39 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +1 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +1 -0
- package/src/client/types/com/atproto/server/createInviteCode.ts +1 -0
- package/src/client/types/com/atproto/server/createSession.ts +1 -0
- package/src/client/types/com/atproto/server/defs.ts +48 -0
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +44 -0
- package/src/types.ts +1 -0
- package/tests/agent.test.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ var src_exports4 = {};
|
|
|
80
80
|
__export(src_exports4, {
|
|
81
81
|
ActorNS: () => ActorNS,
|
|
82
82
|
AdminNS: () => AdminNS,
|
|
83
|
-
AppBskyActorDefs: () =>
|
|
83
|
+
AppBskyActorDefs: () => defs_exports4,
|
|
84
84
|
AppBskyActorGetProfile: () => getProfile_exports,
|
|
85
85
|
AppBskyActorGetProfiles: () => getProfiles_exports,
|
|
86
86
|
AppBskyActorGetSuggestions: () => getSuggestions_exports,
|
|
@@ -91,7 +91,7 @@ __export(src_exports4, {
|
|
|
91
91
|
AppBskyEmbedImages: () => images_exports,
|
|
92
92
|
AppBskyEmbedRecord: () => record_exports,
|
|
93
93
|
AppBskyEmbedRecordWithMedia: () => recordWithMedia_exports,
|
|
94
|
-
AppBskyFeedDefs: () =>
|
|
94
|
+
AppBskyFeedDefs: () => defs_exports5,
|
|
95
95
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
96
96
|
AppBskyFeedGetLikes: () => getLikes_exports,
|
|
97
97
|
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
|
@@ -123,6 +123,8 @@ __export(src_exports4, {
|
|
|
123
123
|
COM_ATPROTO_ADMIN: () => COM_ATPROTO_ADMIN,
|
|
124
124
|
COM_ATPROTO_MODERATION: () => COM_ATPROTO_MODERATION,
|
|
125
125
|
ComAtprotoAdminDefs: () => defs_exports,
|
|
126
|
+
ComAtprotoAdminDisableInviteCodes: () => disableInviteCodes_exports,
|
|
127
|
+
ComAtprotoAdminGetInviteCodes: () => getInviteCodes_exports,
|
|
126
128
|
ComAtprotoAdminGetModerationAction: () => getModerationAction_exports,
|
|
127
129
|
ComAtprotoAdminGetModerationActions: () => getModerationActions_exports,
|
|
128
130
|
ComAtprotoAdminGetModerationReport: () => getModerationReport_exports,
|
|
@@ -149,9 +151,11 @@ __export(src_exports4, {
|
|
|
149
151
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
150
152
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
151
153
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
154
|
+
ComAtprotoServerDefs: () => defs_exports3,
|
|
152
155
|
ComAtprotoServerDeleteAccount: () => deleteAccount_exports,
|
|
153
156
|
ComAtprotoServerDeleteSession: () => deleteSession_exports,
|
|
154
157
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
158
|
+
ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
|
|
155
159
|
ComAtprotoServerGetSession: () => getSession_exports,
|
|
156
160
|
ComAtprotoServerRefreshSession: () => refreshSession_exports,
|
|
157
161
|
ComAtprotoServerRequestAccountDelete: () => requestAccountDelete_exports,
|
|
@@ -6866,11 +6870,8 @@ function getMethodSchemaHTTPMethod(schema2) {
|
|
|
6866
6870
|
return "get";
|
|
6867
6871
|
}
|
|
6868
6872
|
function constructMethodCallUri(nsid2, schema2, serviceUri, params2) {
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
origin += "/";
|
|
6872
|
-
}
|
|
6873
|
-
const uri2 = new URL(`${origin}xrpc/${nsid2}`);
|
|
6873
|
+
const uri2 = new URL(serviceUri);
|
|
6874
|
+
uri2.pathname = `/xrpc/${nsid2}`;
|
|
6874
6875
|
if (params2) {
|
|
6875
6876
|
for (const [key, value] of Object.entries(params2)) {
|
|
6876
6877
|
const paramSchema = schema2.parameters?.properties?.[key];
|
|
@@ -7386,6 +7387,17 @@ var schemaDict = {
|
|
|
7386
7387
|
moderation: {
|
|
7387
7388
|
type: "ref",
|
|
7388
7389
|
ref: "lex:com.atproto.admin.defs#moderation"
|
|
7390
|
+
},
|
|
7391
|
+
invitedBy: {
|
|
7392
|
+
type: "ref",
|
|
7393
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7394
|
+
},
|
|
7395
|
+
invites: {
|
|
7396
|
+
type: "array",
|
|
7397
|
+
items: {
|
|
7398
|
+
type: "ref",
|
|
7399
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7400
|
+
}
|
|
7389
7401
|
}
|
|
7390
7402
|
}
|
|
7391
7403
|
},
|
|
@@ -7423,6 +7435,17 @@ var schemaDict = {
|
|
|
7423
7435
|
moderation: {
|
|
7424
7436
|
type: "ref",
|
|
7425
7437
|
ref: "lex:com.atproto.admin.defs#moderationDetail"
|
|
7438
|
+
},
|
|
7439
|
+
invitedBy: {
|
|
7440
|
+
type: "ref",
|
|
7441
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7442
|
+
},
|
|
7443
|
+
invites: {
|
|
7444
|
+
type: "array",
|
|
7445
|
+
items: {
|
|
7446
|
+
type: "ref",
|
|
7447
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7448
|
+
}
|
|
7426
7449
|
}
|
|
7427
7450
|
}
|
|
7428
7451
|
},
|
|
@@ -7618,6 +7641,84 @@ var schemaDict = {
|
|
|
7618
7641
|
}
|
|
7619
7642
|
}
|
|
7620
7643
|
},
|
|
7644
|
+
ComAtprotoAdminDisableInviteCodes: {
|
|
7645
|
+
lexicon: 1,
|
|
7646
|
+
id: "com.atproto.admin.disableInviteCodes",
|
|
7647
|
+
defs: {
|
|
7648
|
+
main: {
|
|
7649
|
+
type: "procedure",
|
|
7650
|
+
description: "Disable some set of codes and/or all codes associated with a set of users",
|
|
7651
|
+
input: {
|
|
7652
|
+
encoding: "application/json",
|
|
7653
|
+
schema: {
|
|
7654
|
+
type: "object",
|
|
7655
|
+
properties: {
|
|
7656
|
+
codes: {
|
|
7657
|
+
type: "array",
|
|
7658
|
+
items: {
|
|
7659
|
+
type: "string"
|
|
7660
|
+
}
|
|
7661
|
+
},
|
|
7662
|
+
accounts: {
|
|
7663
|
+
type: "array",
|
|
7664
|
+
items: {
|
|
7665
|
+
type: "string"
|
|
7666
|
+
}
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
}
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
},
|
|
7674
|
+
ComAtprotoAdminGetInviteCodes: {
|
|
7675
|
+
lexicon: 1,
|
|
7676
|
+
id: "com.atproto.admin.getInviteCodes",
|
|
7677
|
+
defs: {
|
|
7678
|
+
main: {
|
|
7679
|
+
type: "query",
|
|
7680
|
+
description: "Admin view of invite codes",
|
|
7681
|
+
parameters: {
|
|
7682
|
+
type: "params",
|
|
7683
|
+
properties: {
|
|
7684
|
+
sort: {
|
|
7685
|
+
type: "string",
|
|
7686
|
+
knownValues: ["recent", "usage"],
|
|
7687
|
+
default: "recent"
|
|
7688
|
+
},
|
|
7689
|
+
limit: {
|
|
7690
|
+
type: "integer",
|
|
7691
|
+
minimum: 1,
|
|
7692
|
+
maximum: 500,
|
|
7693
|
+
default: 100
|
|
7694
|
+
},
|
|
7695
|
+
cursor: {
|
|
7696
|
+
type: "string"
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7699
|
+
},
|
|
7700
|
+
output: {
|
|
7701
|
+
encoding: "application/json",
|
|
7702
|
+
schema: {
|
|
7703
|
+
type: "object",
|
|
7704
|
+
required: ["codes"],
|
|
7705
|
+
properties: {
|
|
7706
|
+
cursor: {
|
|
7707
|
+
type: "string"
|
|
7708
|
+
},
|
|
7709
|
+
codes: {
|
|
7710
|
+
type: "array",
|
|
7711
|
+
items: {
|
|
7712
|
+
type: "ref",
|
|
7713
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
7714
|
+
}
|
|
7715
|
+
}
|
|
7716
|
+
}
|
|
7717
|
+
}
|
|
7718
|
+
}
|
|
7719
|
+
}
|
|
7720
|
+
}
|
|
7721
|
+
},
|
|
7621
7722
|
ComAtprotoAdminGetModerationAction: {
|
|
7622
7723
|
lexicon: 1,
|
|
7623
7724
|
id: "com.atproto.admin.getModerationAction",
|
|
@@ -7911,6 +8012,9 @@ var schemaDict = {
|
|
|
7911
8012
|
term: {
|
|
7912
8013
|
type: "string"
|
|
7913
8014
|
},
|
|
8015
|
+
invitedBy: {
|
|
8016
|
+
type: "string"
|
|
8017
|
+
},
|
|
7914
8018
|
limit: {
|
|
7915
8019
|
type: "integer",
|
|
7916
8020
|
minimum: 1,
|
|
@@ -8509,6 +8613,9 @@ var schemaDict = {
|
|
|
8509
8613
|
default: 50,
|
|
8510
8614
|
description: "The number of records to return."
|
|
8511
8615
|
},
|
|
8616
|
+
cursor: {
|
|
8617
|
+
type: "string"
|
|
8618
|
+
},
|
|
8512
8619
|
rkeyStart: {
|
|
8513
8620
|
type: "string",
|
|
8514
8621
|
description: "The lowest sort-ordered rkey to start from (exclusive)"
|
|
@@ -8773,6 +8880,10 @@ var schemaDict = {
|
|
|
8773
8880
|
properties: {
|
|
8774
8881
|
useCount: {
|
|
8775
8882
|
type: "integer"
|
|
8883
|
+
},
|
|
8884
|
+
forAccount: {
|
|
8885
|
+
type: "string",
|
|
8886
|
+
format: "did"
|
|
8776
8887
|
}
|
|
8777
8888
|
}
|
|
8778
8889
|
}
|
|
@@ -8834,6 +8945,9 @@ var schemaDict = {
|
|
|
8834
8945
|
did: {
|
|
8835
8946
|
type: "string",
|
|
8836
8947
|
format: "did"
|
|
8948
|
+
},
|
|
8949
|
+
email: {
|
|
8950
|
+
type: "string"
|
|
8837
8951
|
}
|
|
8838
8952
|
}
|
|
8839
8953
|
}
|
|
@@ -8846,6 +8960,66 @@ var schemaDict = {
|
|
|
8846
8960
|
}
|
|
8847
8961
|
}
|
|
8848
8962
|
},
|
|
8963
|
+
ComAtprotoServerDefs: {
|
|
8964
|
+
lexicon: 1,
|
|
8965
|
+
id: "com.atproto.server.defs",
|
|
8966
|
+
defs: {
|
|
8967
|
+
inviteCode: {
|
|
8968
|
+
type: "object",
|
|
8969
|
+
required: [
|
|
8970
|
+
"code",
|
|
8971
|
+
"available",
|
|
8972
|
+
"disabled",
|
|
8973
|
+
"forAccount",
|
|
8974
|
+
"createdBy",
|
|
8975
|
+
"createdAt",
|
|
8976
|
+
"uses"
|
|
8977
|
+
],
|
|
8978
|
+
properties: {
|
|
8979
|
+
code: {
|
|
8980
|
+
type: "string"
|
|
8981
|
+
},
|
|
8982
|
+
available: {
|
|
8983
|
+
type: "integer"
|
|
8984
|
+
},
|
|
8985
|
+
disabled: {
|
|
8986
|
+
type: "boolean"
|
|
8987
|
+
},
|
|
8988
|
+
forAccount: {
|
|
8989
|
+
type: "string"
|
|
8990
|
+
},
|
|
8991
|
+
createdBy: {
|
|
8992
|
+
type: "string"
|
|
8993
|
+
},
|
|
8994
|
+
createdAt: {
|
|
8995
|
+
type: "string",
|
|
8996
|
+
format: "datetime"
|
|
8997
|
+
},
|
|
8998
|
+
uses: {
|
|
8999
|
+
type: "array",
|
|
9000
|
+
items: {
|
|
9001
|
+
type: "ref",
|
|
9002
|
+
ref: "lex:com.atproto.server.defs#inviteCodeUse"
|
|
9003
|
+
}
|
|
9004
|
+
}
|
|
9005
|
+
}
|
|
9006
|
+
},
|
|
9007
|
+
inviteCodeUse: {
|
|
9008
|
+
type: "object",
|
|
9009
|
+
required: ["usedBy", "usedAt"],
|
|
9010
|
+
properties: {
|
|
9011
|
+
usedBy: {
|
|
9012
|
+
type: "string",
|
|
9013
|
+
format: "did"
|
|
9014
|
+
},
|
|
9015
|
+
usedAt: {
|
|
9016
|
+
type: "string",
|
|
9017
|
+
format: "datetime"
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
}
|
|
9021
|
+
}
|
|
9022
|
+
},
|
|
8849
9023
|
ComAtprotoServerDeleteAccount: {
|
|
8850
9024
|
lexicon: 1,
|
|
8851
9025
|
id: "com.atproto.server.deleteAccount",
|
|
@@ -8936,6 +9110,50 @@ var schemaDict = {
|
|
|
8936
9110
|
}
|
|
8937
9111
|
}
|
|
8938
9112
|
},
|
|
9113
|
+
ComAtprotoServerGetAccountInviteCodes: {
|
|
9114
|
+
lexicon: 1,
|
|
9115
|
+
id: "com.atproto.server.getAccountInviteCodes",
|
|
9116
|
+
defs: {
|
|
9117
|
+
main: {
|
|
9118
|
+
type: "query",
|
|
9119
|
+
description: "Get all invite codes for a given account",
|
|
9120
|
+
parameters: {
|
|
9121
|
+
type: "params",
|
|
9122
|
+
properties: {
|
|
9123
|
+
includeUsed: {
|
|
9124
|
+
type: "boolean",
|
|
9125
|
+
default: true
|
|
9126
|
+
},
|
|
9127
|
+
createAvailable: {
|
|
9128
|
+
type: "boolean",
|
|
9129
|
+
default: true
|
|
9130
|
+
}
|
|
9131
|
+
}
|
|
9132
|
+
},
|
|
9133
|
+
output: {
|
|
9134
|
+
encoding: "application/json",
|
|
9135
|
+
schema: {
|
|
9136
|
+
type: "object",
|
|
9137
|
+
required: ["codes"],
|
|
9138
|
+
properties: {
|
|
9139
|
+
codes: {
|
|
9140
|
+
type: "array",
|
|
9141
|
+
items: {
|
|
9142
|
+
type: "ref",
|
|
9143
|
+
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
},
|
|
9149
|
+
errors: [
|
|
9150
|
+
{
|
|
9151
|
+
name: "DuplicateCreate"
|
|
9152
|
+
}
|
|
9153
|
+
]
|
|
9154
|
+
}
|
|
9155
|
+
}
|
|
9156
|
+
},
|
|
8939
9157
|
ComAtprotoServerGetSession: {
|
|
8940
9158
|
lexicon: 1,
|
|
8941
9159
|
id: "com.atproto.server.getSession",
|
|
@@ -8956,6 +9174,9 @@ var schemaDict = {
|
|
|
8956
9174
|
did: {
|
|
8957
9175
|
type: "string",
|
|
8958
9176
|
format: "did"
|
|
9177
|
+
},
|
|
9178
|
+
email: {
|
|
9179
|
+
type: "string"
|
|
8959
9180
|
}
|
|
8960
9181
|
}
|
|
8961
9182
|
}
|
|
@@ -9597,7 +9818,8 @@ var schemaDict = {
|
|
|
9597
9818
|
},
|
|
9598
9819
|
displayName: {
|
|
9599
9820
|
type: "string",
|
|
9600
|
-
|
|
9821
|
+
maxGraphemes: 64,
|
|
9822
|
+
maxLength: 640
|
|
9601
9823
|
},
|
|
9602
9824
|
avatar: {
|
|
9603
9825
|
type: "string"
|
|
@@ -9622,11 +9844,13 @@ var schemaDict = {
|
|
|
9622
9844
|
},
|
|
9623
9845
|
displayName: {
|
|
9624
9846
|
type: "string",
|
|
9625
|
-
|
|
9847
|
+
maxGraphemes: 64,
|
|
9848
|
+
maxLength: 640
|
|
9626
9849
|
},
|
|
9627
9850
|
description: {
|
|
9628
9851
|
type: "string",
|
|
9629
|
-
|
|
9852
|
+
maxGraphemes: 256,
|
|
9853
|
+
maxLength: 2560
|
|
9630
9854
|
},
|
|
9631
9855
|
avatar: {
|
|
9632
9856
|
type: "string"
|
|
@@ -9655,11 +9879,13 @@ var schemaDict = {
|
|
|
9655
9879
|
},
|
|
9656
9880
|
displayName: {
|
|
9657
9881
|
type: "string",
|
|
9658
|
-
|
|
9882
|
+
maxGraphemes: 64,
|
|
9883
|
+
maxLength: 640
|
|
9659
9884
|
},
|
|
9660
9885
|
description: {
|
|
9661
9886
|
type: "string",
|
|
9662
|
-
|
|
9887
|
+
maxGraphemes: 256,
|
|
9888
|
+
maxLength: 2560
|
|
9663
9889
|
},
|
|
9664
9890
|
avatar: {
|
|
9665
9891
|
type: "string"
|
|
@@ -9824,11 +10050,13 @@ var schemaDict = {
|
|
|
9824
10050
|
properties: {
|
|
9825
10051
|
displayName: {
|
|
9826
10052
|
type: "string",
|
|
9827
|
-
|
|
10053
|
+
maxGraphemes: 64,
|
|
10054
|
+
maxLength: 640
|
|
9828
10055
|
},
|
|
9829
10056
|
description: {
|
|
9830
10057
|
type: "string",
|
|
9831
|
-
|
|
10058
|
+
maxGraphemes: 256,
|
|
10059
|
+
maxLength: 2560
|
|
9832
10060
|
},
|
|
9833
10061
|
avatar: {
|
|
9834
10062
|
type: "blob",
|
|
@@ -11217,12 +11445,34 @@ var schemaDict = {
|
|
|
11217
11445
|
var schemas = Object.values(schemaDict);
|
|
11218
11446
|
var lexicons = new Lexicons(schemas);
|
|
11219
11447
|
|
|
11448
|
+
// src/client/types/com/atproto/admin/disableInviteCodes.ts
|
|
11449
|
+
var disableInviteCodes_exports = {};
|
|
11450
|
+
__export(disableInviteCodes_exports, {
|
|
11451
|
+
toKnownErr: () => toKnownErr
|
|
11452
|
+
});
|
|
11453
|
+
function toKnownErr(e) {
|
|
11454
|
+
if (e instanceof XRPCError) {
|
|
11455
|
+
}
|
|
11456
|
+
return e;
|
|
11457
|
+
}
|
|
11458
|
+
|
|
11459
|
+
// src/client/types/com/atproto/admin/getInviteCodes.ts
|
|
11460
|
+
var getInviteCodes_exports = {};
|
|
11461
|
+
__export(getInviteCodes_exports, {
|
|
11462
|
+
toKnownErr: () => toKnownErr2
|
|
11463
|
+
});
|
|
11464
|
+
function toKnownErr2(e) {
|
|
11465
|
+
if (e instanceof XRPCError) {
|
|
11466
|
+
}
|
|
11467
|
+
return e;
|
|
11468
|
+
}
|
|
11469
|
+
|
|
11220
11470
|
// src/client/types/com/atproto/admin/getModerationAction.ts
|
|
11221
11471
|
var getModerationAction_exports = {};
|
|
11222
11472
|
__export(getModerationAction_exports, {
|
|
11223
|
-
toKnownErr: () =>
|
|
11473
|
+
toKnownErr: () => toKnownErr3
|
|
11224
11474
|
});
|
|
11225
|
-
function
|
|
11475
|
+
function toKnownErr3(e) {
|
|
11226
11476
|
if (e instanceof XRPCError) {
|
|
11227
11477
|
}
|
|
11228
11478
|
return e;
|
|
@@ -11231,9 +11481,9 @@ function toKnownErr(e) {
|
|
|
11231
11481
|
// src/client/types/com/atproto/admin/getModerationActions.ts
|
|
11232
11482
|
var getModerationActions_exports = {};
|
|
11233
11483
|
__export(getModerationActions_exports, {
|
|
11234
|
-
toKnownErr: () =>
|
|
11484
|
+
toKnownErr: () => toKnownErr4
|
|
11235
11485
|
});
|
|
11236
|
-
function
|
|
11486
|
+
function toKnownErr4(e) {
|
|
11237
11487
|
if (e instanceof XRPCError) {
|
|
11238
11488
|
}
|
|
11239
11489
|
return e;
|
|
@@ -11242,9 +11492,9 @@ function toKnownErr2(e) {
|
|
|
11242
11492
|
// src/client/types/com/atproto/admin/getModerationReport.ts
|
|
11243
11493
|
var getModerationReport_exports = {};
|
|
11244
11494
|
__export(getModerationReport_exports, {
|
|
11245
|
-
toKnownErr: () =>
|
|
11495
|
+
toKnownErr: () => toKnownErr5
|
|
11246
11496
|
});
|
|
11247
|
-
function
|
|
11497
|
+
function toKnownErr5(e) {
|
|
11248
11498
|
if (e instanceof XRPCError) {
|
|
11249
11499
|
}
|
|
11250
11500
|
return e;
|
|
@@ -11253,9 +11503,9 @@ function toKnownErr3(e) {
|
|
|
11253
11503
|
// src/client/types/com/atproto/admin/getModerationReports.ts
|
|
11254
11504
|
var getModerationReports_exports = {};
|
|
11255
11505
|
__export(getModerationReports_exports, {
|
|
11256
|
-
toKnownErr: () =>
|
|
11506
|
+
toKnownErr: () => toKnownErr6
|
|
11257
11507
|
});
|
|
11258
|
-
function
|
|
11508
|
+
function toKnownErr6(e) {
|
|
11259
11509
|
if (e instanceof XRPCError) {
|
|
11260
11510
|
}
|
|
11261
11511
|
return e;
|
|
@@ -11264,9 +11514,9 @@ function toKnownErr4(e) {
|
|
|
11264
11514
|
// src/client/types/com/atproto/admin/getRecord.ts
|
|
11265
11515
|
var getRecord_exports = {};
|
|
11266
11516
|
__export(getRecord_exports, {
|
|
11267
|
-
toKnownErr: () =>
|
|
11517
|
+
toKnownErr: () => toKnownErr7
|
|
11268
11518
|
});
|
|
11269
|
-
function
|
|
11519
|
+
function toKnownErr7(e) {
|
|
11270
11520
|
if (e instanceof XRPCError) {
|
|
11271
11521
|
}
|
|
11272
11522
|
return e;
|
|
@@ -11275,9 +11525,9 @@ function toKnownErr5(e) {
|
|
|
11275
11525
|
// src/client/types/com/atproto/admin/getRepo.ts
|
|
11276
11526
|
var getRepo_exports = {};
|
|
11277
11527
|
__export(getRepo_exports, {
|
|
11278
|
-
toKnownErr: () =>
|
|
11528
|
+
toKnownErr: () => toKnownErr8
|
|
11279
11529
|
});
|
|
11280
|
-
function
|
|
11530
|
+
function toKnownErr8(e) {
|
|
11281
11531
|
if (e instanceof XRPCError) {
|
|
11282
11532
|
}
|
|
11283
11533
|
return e;
|
|
@@ -11286,9 +11536,9 @@ function toKnownErr6(e) {
|
|
|
11286
11536
|
// src/client/types/com/atproto/admin/resolveModerationReports.ts
|
|
11287
11537
|
var resolveModerationReports_exports = {};
|
|
11288
11538
|
__export(resolveModerationReports_exports, {
|
|
11289
|
-
toKnownErr: () =>
|
|
11539
|
+
toKnownErr: () => toKnownErr9
|
|
11290
11540
|
});
|
|
11291
|
-
function
|
|
11541
|
+
function toKnownErr9(e) {
|
|
11292
11542
|
if (e instanceof XRPCError) {
|
|
11293
11543
|
}
|
|
11294
11544
|
return e;
|
|
@@ -11297,9 +11547,9 @@ function toKnownErr7(e) {
|
|
|
11297
11547
|
// src/client/types/com/atproto/admin/reverseModerationAction.ts
|
|
11298
11548
|
var reverseModerationAction_exports = {};
|
|
11299
11549
|
__export(reverseModerationAction_exports, {
|
|
11300
|
-
toKnownErr: () =>
|
|
11550
|
+
toKnownErr: () => toKnownErr10
|
|
11301
11551
|
});
|
|
11302
|
-
function
|
|
11552
|
+
function toKnownErr10(e) {
|
|
11303
11553
|
if (e instanceof XRPCError) {
|
|
11304
11554
|
}
|
|
11305
11555
|
return e;
|
|
@@ -11308,9 +11558,9 @@ function toKnownErr8(e) {
|
|
|
11308
11558
|
// src/client/types/com/atproto/admin/searchRepos.ts
|
|
11309
11559
|
var searchRepos_exports = {};
|
|
11310
11560
|
__export(searchRepos_exports, {
|
|
11311
|
-
toKnownErr: () =>
|
|
11561
|
+
toKnownErr: () => toKnownErr11
|
|
11312
11562
|
});
|
|
11313
|
-
function
|
|
11563
|
+
function toKnownErr11(e) {
|
|
11314
11564
|
if (e instanceof XRPCError) {
|
|
11315
11565
|
}
|
|
11316
11566
|
return e;
|
|
@@ -11320,14 +11570,14 @@ function toKnownErr9(e) {
|
|
|
11320
11570
|
var takeModerationAction_exports = {};
|
|
11321
11571
|
__export(takeModerationAction_exports, {
|
|
11322
11572
|
SubjectHasActionError: () => SubjectHasActionError,
|
|
11323
|
-
toKnownErr: () =>
|
|
11573
|
+
toKnownErr: () => toKnownErr12
|
|
11324
11574
|
});
|
|
11325
11575
|
var SubjectHasActionError = class extends XRPCError {
|
|
11326
11576
|
constructor(src2) {
|
|
11327
11577
|
super(src2.status, src2.error, src2.message);
|
|
11328
11578
|
}
|
|
11329
11579
|
};
|
|
11330
|
-
function
|
|
11580
|
+
function toKnownErr12(e) {
|
|
11331
11581
|
if (e instanceof XRPCError) {
|
|
11332
11582
|
if (e.error === "SubjectHasAction")
|
|
11333
11583
|
return new SubjectHasActionError(e);
|
|
@@ -11338,9 +11588,9 @@ function toKnownErr10(e) {
|
|
|
11338
11588
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
11339
11589
|
var resolveHandle_exports = {};
|
|
11340
11590
|
__export(resolveHandle_exports, {
|
|
11341
|
-
toKnownErr: () =>
|
|
11591
|
+
toKnownErr: () => toKnownErr13
|
|
11342
11592
|
});
|
|
11343
|
-
function
|
|
11593
|
+
function toKnownErr13(e) {
|
|
11344
11594
|
if (e instanceof XRPCError) {
|
|
11345
11595
|
}
|
|
11346
11596
|
return e;
|
|
@@ -11349,9 +11599,9 @@ function toKnownErr11(e) {
|
|
|
11349
11599
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
11350
11600
|
var updateHandle_exports = {};
|
|
11351
11601
|
__export(updateHandle_exports, {
|
|
11352
|
-
toKnownErr: () =>
|
|
11602
|
+
toKnownErr: () => toKnownErr14
|
|
11353
11603
|
});
|
|
11354
|
-
function
|
|
11604
|
+
function toKnownErr14(e) {
|
|
11355
11605
|
if (e instanceof XRPCError) {
|
|
11356
11606
|
}
|
|
11357
11607
|
return e;
|
|
@@ -11360,9 +11610,9 @@ function toKnownErr12(e) {
|
|
|
11360
11610
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
11361
11611
|
var createReport_exports = {};
|
|
11362
11612
|
__export(createReport_exports, {
|
|
11363
|
-
toKnownErr: () =>
|
|
11613
|
+
toKnownErr: () => toKnownErr15
|
|
11364
11614
|
});
|
|
11365
|
-
function
|
|
11615
|
+
function toKnownErr15(e) {
|
|
11366
11616
|
if (e instanceof XRPCError) {
|
|
11367
11617
|
}
|
|
11368
11618
|
return e;
|
|
@@ -11375,7 +11625,7 @@ __export(applyWrites_exports, {
|
|
|
11375
11625
|
isCreate: () => isCreate,
|
|
11376
11626
|
isDelete: () => isDelete,
|
|
11377
11627
|
isUpdate: () => isUpdate,
|
|
11378
|
-
toKnownErr: () =>
|
|
11628
|
+
toKnownErr: () => toKnownErr16,
|
|
11379
11629
|
validateCreate: () => validateCreate,
|
|
11380
11630
|
validateDelete: () => validateDelete,
|
|
11381
11631
|
validateUpdate: () => validateUpdate
|
|
@@ -11395,7 +11645,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
11395
11645
|
super(src2.status, src2.error, src2.message);
|
|
11396
11646
|
}
|
|
11397
11647
|
};
|
|
11398
|
-
function
|
|
11648
|
+
function toKnownErr16(e) {
|
|
11399
11649
|
if (e instanceof XRPCError) {
|
|
11400
11650
|
if (e.error === "InvalidSwap")
|
|
11401
11651
|
return new InvalidSwapError(e);
|
|
@@ -11425,14 +11675,14 @@ function validateDelete(v) {
|
|
|
11425
11675
|
var createRecord_exports = {};
|
|
11426
11676
|
__export(createRecord_exports, {
|
|
11427
11677
|
InvalidSwapError: () => InvalidSwapError2,
|
|
11428
|
-
toKnownErr: () =>
|
|
11678
|
+
toKnownErr: () => toKnownErr17
|
|
11429
11679
|
});
|
|
11430
11680
|
var InvalidSwapError2 = class extends XRPCError {
|
|
11431
11681
|
constructor(src2) {
|
|
11432
11682
|
super(src2.status, src2.error, src2.message);
|
|
11433
11683
|
}
|
|
11434
11684
|
};
|
|
11435
|
-
function
|
|
11685
|
+
function toKnownErr17(e) {
|
|
11436
11686
|
if (e instanceof XRPCError) {
|
|
11437
11687
|
if (e.error === "InvalidSwap")
|
|
11438
11688
|
return new InvalidSwapError2(e);
|
|
@@ -11444,14 +11694,14 @@ function toKnownErr15(e) {
|
|
|
11444
11694
|
var deleteRecord_exports = {};
|
|
11445
11695
|
__export(deleteRecord_exports, {
|
|
11446
11696
|
InvalidSwapError: () => InvalidSwapError3,
|
|
11447
|
-
toKnownErr: () =>
|
|
11697
|
+
toKnownErr: () => toKnownErr18
|
|
11448
11698
|
});
|
|
11449
11699
|
var InvalidSwapError3 = class extends XRPCError {
|
|
11450
11700
|
constructor(src2) {
|
|
11451
11701
|
super(src2.status, src2.error, src2.message);
|
|
11452
11702
|
}
|
|
11453
11703
|
};
|
|
11454
|
-
function
|
|
11704
|
+
function toKnownErr18(e) {
|
|
11455
11705
|
if (e instanceof XRPCError) {
|
|
11456
11706
|
if (e.error === "InvalidSwap")
|
|
11457
11707
|
return new InvalidSwapError3(e);
|
|
@@ -11462,9 +11712,9 @@ function toKnownErr16(e) {
|
|
|
11462
11712
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
11463
11713
|
var describeRepo_exports = {};
|
|
11464
11714
|
__export(describeRepo_exports, {
|
|
11465
|
-
toKnownErr: () =>
|
|
11715
|
+
toKnownErr: () => toKnownErr19
|
|
11466
11716
|
});
|
|
11467
|
-
function
|
|
11717
|
+
function toKnownErr19(e) {
|
|
11468
11718
|
if (e instanceof XRPCError) {
|
|
11469
11719
|
}
|
|
11470
11720
|
return e;
|
|
@@ -11473,9 +11723,9 @@ function toKnownErr17(e) {
|
|
|
11473
11723
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
11474
11724
|
var getRecord_exports2 = {};
|
|
11475
11725
|
__export(getRecord_exports2, {
|
|
11476
|
-
toKnownErr: () =>
|
|
11726
|
+
toKnownErr: () => toKnownErr20
|
|
11477
11727
|
});
|
|
11478
|
-
function
|
|
11728
|
+
function toKnownErr20(e) {
|
|
11479
11729
|
if (e instanceof XRPCError) {
|
|
11480
11730
|
}
|
|
11481
11731
|
return e;
|
|
@@ -11485,10 +11735,10 @@ function toKnownErr18(e) {
|
|
|
11485
11735
|
var listRecords_exports = {};
|
|
11486
11736
|
__export(listRecords_exports, {
|
|
11487
11737
|
isRecord: () => isRecord,
|
|
11488
|
-
toKnownErr: () =>
|
|
11738
|
+
toKnownErr: () => toKnownErr21,
|
|
11489
11739
|
validateRecord: () => validateRecord
|
|
11490
11740
|
});
|
|
11491
|
-
function
|
|
11741
|
+
function toKnownErr21(e) {
|
|
11492
11742
|
if (e instanceof XRPCError) {
|
|
11493
11743
|
}
|
|
11494
11744
|
return e;
|
|
@@ -11504,14 +11754,14 @@ function validateRecord(v) {
|
|
|
11504
11754
|
var putRecord_exports = {};
|
|
11505
11755
|
__export(putRecord_exports, {
|
|
11506
11756
|
InvalidSwapError: () => InvalidSwapError4,
|
|
11507
|
-
toKnownErr: () =>
|
|
11757
|
+
toKnownErr: () => toKnownErr22
|
|
11508
11758
|
});
|
|
11509
11759
|
var InvalidSwapError4 = class extends XRPCError {
|
|
11510
11760
|
constructor(src2) {
|
|
11511
11761
|
super(src2.status, src2.error, src2.message);
|
|
11512
11762
|
}
|
|
11513
11763
|
};
|
|
11514
|
-
function
|
|
11764
|
+
function toKnownErr22(e) {
|
|
11515
11765
|
if (e instanceof XRPCError) {
|
|
11516
11766
|
if (e.error === "InvalidSwap")
|
|
11517
11767
|
return new InvalidSwapError4(e);
|
|
@@ -11522,9 +11772,9 @@ function toKnownErr20(e) {
|
|
|
11522
11772
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
11523
11773
|
var uploadBlob_exports = {};
|
|
11524
11774
|
__export(uploadBlob_exports, {
|
|
11525
|
-
toKnownErr: () =>
|
|
11775
|
+
toKnownErr: () => toKnownErr23
|
|
11526
11776
|
});
|
|
11527
|
-
function
|
|
11777
|
+
function toKnownErr23(e) {
|
|
11528
11778
|
if (e instanceof XRPCError) {
|
|
11529
11779
|
}
|
|
11530
11780
|
return e;
|
|
@@ -11538,7 +11788,7 @@ __export(createAccount_exports, {
|
|
|
11538
11788
|
InvalidInviteCodeError: () => InvalidInviteCodeError,
|
|
11539
11789
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
11540
11790
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
11541
|
-
toKnownErr: () =>
|
|
11791
|
+
toKnownErr: () => toKnownErr24
|
|
11542
11792
|
});
|
|
11543
11793
|
var InvalidHandleError2 = class extends XRPCError {
|
|
11544
11794
|
constructor(src2) {
|
|
@@ -11565,7 +11815,7 @@ var UnsupportedDomainError = class extends XRPCError {
|
|
|
11565
11815
|
super(src2.status, src2.error, src2.message);
|
|
11566
11816
|
}
|
|
11567
11817
|
};
|
|
11568
|
-
function
|
|
11818
|
+
function toKnownErr24(e) {
|
|
11569
11819
|
if (e instanceof XRPCError) {
|
|
11570
11820
|
if (e.error === "InvalidHandle")
|
|
11571
11821
|
return new InvalidHandleError2(e);
|
|
@@ -11584,9 +11834,9 @@ function toKnownErr22(e) {
|
|
|
11584
11834
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
11585
11835
|
var createInviteCode_exports = {};
|
|
11586
11836
|
__export(createInviteCode_exports, {
|
|
11587
|
-
toKnownErr: () =>
|
|
11837
|
+
toKnownErr: () => toKnownErr25
|
|
11588
11838
|
});
|
|
11589
|
-
function
|
|
11839
|
+
function toKnownErr25(e) {
|
|
11590
11840
|
if (e instanceof XRPCError) {
|
|
11591
11841
|
}
|
|
11592
11842
|
return e;
|
|
@@ -11596,14 +11846,14 @@ function toKnownErr23(e) {
|
|
|
11596
11846
|
var createSession_exports = {};
|
|
11597
11847
|
__export(createSession_exports, {
|
|
11598
11848
|
AccountTakedownError: () => AccountTakedownError,
|
|
11599
|
-
toKnownErr: () =>
|
|
11849
|
+
toKnownErr: () => toKnownErr26
|
|
11600
11850
|
});
|
|
11601
11851
|
var AccountTakedownError = class extends XRPCError {
|
|
11602
11852
|
constructor(src2) {
|
|
11603
11853
|
super(src2.status, src2.error, src2.message);
|
|
11604
11854
|
}
|
|
11605
11855
|
};
|
|
11606
|
-
function
|
|
11856
|
+
function toKnownErr26(e) {
|
|
11607
11857
|
if (e instanceof XRPCError) {
|
|
11608
11858
|
if (e.error === "AccountTakedown")
|
|
11609
11859
|
return new AccountTakedownError(e);
|
|
@@ -11616,7 +11866,7 @@ var deleteAccount_exports = {};
|
|
|
11616
11866
|
__export(deleteAccount_exports, {
|
|
11617
11867
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
11618
11868
|
InvalidTokenError: () => InvalidTokenError,
|
|
11619
|
-
toKnownErr: () =>
|
|
11869
|
+
toKnownErr: () => toKnownErr27
|
|
11620
11870
|
});
|
|
11621
11871
|
var ExpiredTokenError = class extends XRPCError {
|
|
11622
11872
|
constructor(src2) {
|
|
@@ -11628,7 +11878,7 @@ var InvalidTokenError = class extends XRPCError {
|
|
|
11628
11878
|
super(src2.status, src2.error, src2.message);
|
|
11629
11879
|
}
|
|
11630
11880
|
};
|
|
11631
|
-
function
|
|
11881
|
+
function toKnownErr27(e) {
|
|
11632
11882
|
if (e instanceof XRPCError) {
|
|
11633
11883
|
if (e.error === "ExpiredToken")
|
|
11634
11884
|
return new ExpiredTokenError(e);
|
|
@@ -11641,9 +11891,9 @@ function toKnownErr25(e) {
|
|
|
11641
11891
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
11642
11892
|
var deleteSession_exports = {};
|
|
11643
11893
|
__export(deleteSession_exports, {
|
|
11644
|
-
toKnownErr: () =>
|
|
11894
|
+
toKnownErr: () => toKnownErr28
|
|
11645
11895
|
});
|
|
11646
|
-
function
|
|
11896
|
+
function toKnownErr28(e) {
|
|
11647
11897
|
if (e instanceof XRPCError) {
|
|
11648
11898
|
}
|
|
11649
11899
|
return e;
|
|
@@ -11653,10 +11903,10 @@ function toKnownErr26(e) {
|
|
|
11653
11903
|
var describeServer_exports = {};
|
|
11654
11904
|
__export(describeServer_exports, {
|
|
11655
11905
|
isLinks: () => isLinks,
|
|
11656
|
-
toKnownErr: () =>
|
|
11906
|
+
toKnownErr: () => toKnownErr29,
|
|
11657
11907
|
validateLinks: () => validateLinks
|
|
11658
11908
|
});
|
|
11659
|
-
function
|
|
11909
|
+
function toKnownErr29(e) {
|
|
11660
11910
|
if (e instanceof XRPCError) {
|
|
11661
11911
|
}
|
|
11662
11912
|
return e;
|
|
@@ -11668,12 +11918,31 @@ function validateLinks(v) {
|
|
|
11668
11918
|
return lexicons.validate("com.atproto.server.describeServer#links", v);
|
|
11669
11919
|
}
|
|
11670
11920
|
|
|
11921
|
+
// src/client/types/com/atproto/server/getAccountInviteCodes.ts
|
|
11922
|
+
var getAccountInviteCodes_exports = {};
|
|
11923
|
+
__export(getAccountInviteCodes_exports, {
|
|
11924
|
+
DuplicateCreateError: () => DuplicateCreateError,
|
|
11925
|
+
toKnownErr: () => toKnownErr30
|
|
11926
|
+
});
|
|
11927
|
+
var DuplicateCreateError = class extends XRPCError {
|
|
11928
|
+
constructor(src2) {
|
|
11929
|
+
super(src2.status, src2.error, src2.message);
|
|
11930
|
+
}
|
|
11931
|
+
};
|
|
11932
|
+
function toKnownErr30(e) {
|
|
11933
|
+
if (e instanceof XRPCError) {
|
|
11934
|
+
if (e.error === "DuplicateCreate")
|
|
11935
|
+
return new DuplicateCreateError(e);
|
|
11936
|
+
}
|
|
11937
|
+
return e;
|
|
11938
|
+
}
|
|
11939
|
+
|
|
11671
11940
|
// src/client/types/com/atproto/server/getSession.ts
|
|
11672
11941
|
var getSession_exports = {};
|
|
11673
11942
|
__export(getSession_exports, {
|
|
11674
|
-
toKnownErr: () =>
|
|
11943
|
+
toKnownErr: () => toKnownErr31
|
|
11675
11944
|
});
|
|
11676
|
-
function
|
|
11945
|
+
function toKnownErr31(e) {
|
|
11677
11946
|
if (e instanceof XRPCError) {
|
|
11678
11947
|
}
|
|
11679
11948
|
return e;
|
|
@@ -11683,14 +11952,14 @@ function toKnownErr28(e) {
|
|
|
11683
11952
|
var refreshSession_exports = {};
|
|
11684
11953
|
__export(refreshSession_exports, {
|
|
11685
11954
|
AccountTakedownError: () => AccountTakedownError2,
|
|
11686
|
-
toKnownErr: () =>
|
|
11955
|
+
toKnownErr: () => toKnownErr32
|
|
11687
11956
|
});
|
|
11688
11957
|
var AccountTakedownError2 = class extends XRPCError {
|
|
11689
11958
|
constructor(src2) {
|
|
11690
11959
|
super(src2.status, src2.error, src2.message);
|
|
11691
11960
|
}
|
|
11692
11961
|
};
|
|
11693
|
-
function
|
|
11962
|
+
function toKnownErr32(e) {
|
|
11694
11963
|
if (e instanceof XRPCError) {
|
|
11695
11964
|
if (e.error === "AccountTakedown")
|
|
11696
11965
|
return new AccountTakedownError2(e);
|
|
@@ -11701,9 +11970,9 @@ function toKnownErr29(e) {
|
|
|
11701
11970
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
11702
11971
|
var requestAccountDelete_exports = {};
|
|
11703
11972
|
__export(requestAccountDelete_exports, {
|
|
11704
|
-
toKnownErr: () =>
|
|
11973
|
+
toKnownErr: () => toKnownErr33
|
|
11705
11974
|
});
|
|
11706
|
-
function
|
|
11975
|
+
function toKnownErr33(e) {
|
|
11707
11976
|
if (e instanceof XRPCError) {
|
|
11708
11977
|
}
|
|
11709
11978
|
return e;
|
|
@@ -11712,9 +11981,9 @@ function toKnownErr30(e) {
|
|
|
11712
11981
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
11713
11982
|
var requestPasswordReset_exports = {};
|
|
11714
11983
|
__export(requestPasswordReset_exports, {
|
|
11715
|
-
toKnownErr: () =>
|
|
11984
|
+
toKnownErr: () => toKnownErr34
|
|
11716
11985
|
});
|
|
11717
|
-
function
|
|
11986
|
+
function toKnownErr34(e) {
|
|
11718
11987
|
if (e instanceof XRPCError) {
|
|
11719
11988
|
}
|
|
11720
11989
|
return e;
|
|
@@ -11725,7 +11994,7 @@ var resetPassword_exports = {};
|
|
|
11725
11994
|
__export(resetPassword_exports, {
|
|
11726
11995
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
11727
11996
|
InvalidTokenError: () => InvalidTokenError2,
|
|
11728
|
-
toKnownErr: () =>
|
|
11997
|
+
toKnownErr: () => toKnownErr35
|
|
11729
11998
|
});
|
|
11730
11999
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
11731
12000
|
constructor(src2) {
|
|
@@ -11737,7 +12006,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
11737
12006
|
super(src2.status, src2.error, src2.message);
|
|
11738
12007
|
}
|
|
11739
12008
|
};
|
|
11740
|
-
function
|
|
12009
|
+
function toKnownErr35(e) {
|
|
11741
12010
|
if (e instanceof XRPCError) {
|
|
11742
12011
|
if (e.error === "ExpiredToken")
|
|
11743
12012
|
return new ExpiredTokenError2(e);
|
|
@@ -11750,9 +12019,9 @@ function toKnownErr32(e) {
|
|
|
11750
12019
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
11751
12020
|
var getBlob_exports = {};
|
|
11752
12021
|
__export(getBlob_exports, {
|
|
11753
|
-
toKnownErr: () =>
|
|
12022
|
+
toKnownErr: () => toKnownErr36
|
|
11754
12023
|
});
|
|
11755
|
-
function
|
|
12024
|
+
function toKnownErr36(e) {
|
|
11756
12025
|
if (e instanceof XRPCError) {
|
|
11757
12026
|
}
|
|
11758
12027
|
return e;
|
|
@@ -11761,9 +12030,9 @@ function toKnownErr33(e) {
|
|
|
11761
12030
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
11762
12031
|
var getBlocks_exports = {};
|
|
11763
12032
|
__export(getBlocks_exports, {
|
|
11764
|
-
toKnownErr: () =>
|
|
12033
|
+
toKnownErr: () => toKnownErr37
|
|
11765
12034
|
});
|
|
11766
|
-
function
|
|
12035
|
+
function toKnownErr37(e) {
|
|
11767
12036
|
if (e instanceof XRPCError) {
|
|
11768
12037
|
}
|
|
11769
12038
|
return e;
|
|
@@ -11772,9 +12041,9 @@ function toKnownErr34(e) {
|
|
|
11772
12041
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
11773
12042
|
var getCheckout_exports = {};
|
|
11774
12043
|
__export(getCheckout_exports, {
|
|
11775
|
-
toKnownErr: () =>
|
|
12044
|
+
toKnownErr: () => toKnownErr38
|
|
11776
12045
|
});
|
|
11777
|
-
function
|
|
12046
|
+
function toKnownErr38(e) {
|
|
11778
12047
|
if (e instanceof XRPCError) {
|
|
11779
12048
|
}
|
|
11780
12049
|
return e;
|
|
@@ -11783,9 +12052,9 @@ function toKnownErr35(e) {
|
|
|
11783
12052
|
// src/client/types/com/atproto/sync/getCommitPath.ts
|
|
11784
12053
|
var getCommitPath_exports = {};
|
|
11785
12054
|
__export(getCommitPath_exports, {
|
|
11786
|
-
toKnownErr: () =>
|
|
12055
|
+
toKnownErr: () => toKnownErr39
|
|
11787
12056
|
});
|
|
11788
|
-
function
|
|
12057
|
+
function toKnownErr39(e) {
|
|
11789
12058
|
if (e instanceof XRPCError) {
|
|
11790
12059
|
}
|
|
11791
12060
|
return e;
|
|
@@ -11794,9 +12063,9 @@ function toKnownErr36(e) {
|
|
|
11794
12063
|
// src/client/types/com/atproto/sync/getHead.ts
|
|
11795
12064
|
var getHead_exports = {};
|
|
11796
12065
|
__export(getHead_exports, {
|
|
11797
|
-
toKnownErr: () =>
|
|
12066
|
+
toKnownErr: () => toKnownErr40
|
|
11798
12067
|
});
|
|
11799
|
-
function
|
|
12068
|
+
function toKnownErr40(e) {
|
|
11800
12069
|
if (e instanceof XRPCError) {
|
|
11801
12070
|
}
|
|
11802
12071
|
return e;
|
|
@@ -11805,9 +12074,9 @@ function toKnownErr37(e) {
|
|
|
11805
12074
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
11806
12075
|
var getRecord_exports3 = {};
|
|
11807
12076
|
__export(getRecord_exports3, {
|
|
11808
|
-
toKnownErr: () =>
|
|
12077
|
+
toKnownErr: () => toKnownErr41
|
|
11809
12078
|
});
|
|
11810
|
-
function
|
|
12079
|
+
function toKnownErr41(e) {
|
|
11811
12080
|
if (e instanceof XRPCError) {
|
|
11812
12081
|
}
|
|
11813
12082
|
return e;
|
|
@@ -11816,9 +12085,9 @@ function toKnownErr38(e) {
|
|
|
11816
12085
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
11817
12086
|
var getRepo_exports2 = {};
|
|
11818
12087
|
__export(getRepo_exports2, {
|
|
11819
|
-
toKnownErr: () =>
|
|
12088
|
+
toKnownErr: () => toKnownErr42
|
|
11820
12089
|
});
|
|
11821
|
-
function
|
|
12090
|
+
function toKnownErr42(e) {
|
|
11822
12091
|
if (e instanceof XRPCError) {
|
|
11823
12092
|
}
|
|
11824
12093
|
return e;
|
|
@@ -11827,9 +12096,9 @@ function toKnownErr39(e) {
|
|
|
11827
12096
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
11828
12097
|
var listBlobs_exports = {};
|
|
11829
12098
|
__export(listBlobs_exports, {
|
|
11830
|
-
toKnownErr: () =>
|
|
12099
|
+
toKnownErr: () => toKnownErr43
|
|
11831
12100
|
});
|
|
11832
|
-
function
|
|
12101
|
+
function toKnownErr43(e) {
|
|
11833
12102
|
if (e instanceof XRPCError) {
|
|
11834
12103
|
}
|
|
11835
12104
|
return e;
|
|
@@ -11838,9 +12107,9 @@ function toKnownErr40(e) {
|
|
|
11838
12107
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
11839
12108
|
var notifyOfUpdate_exports = {};
|
|
11840
12109
|
__export(notifyOfUpdate_exports, {
|
|
11841
|
-
toKnownErr: () =>
|
|
12110
|
+
toKnownErr: () => toKnownErr44
|
|
11842
12111
|
});
|
|
11843
|
-
function
|
|
12112
|
+
function toKnownErr44(e) {
|
|
11844
12113
|
if (e instanceof XRPCError) {
|
|
11845
12114
|
}
|
|
11846
12115
|
return e;
|
|
@@ -11849,9 +12118,9 @@ function toKnownErr41(e) {
|
|
|
11849
12118
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
11850
12119
|
var requestCrawl_exports = {};
|
|
11851
12120
|
__export(requestCrawl_exports, {
|
|
11852
|
-
toKnownErr: () =>
|
|
12121
|
+
toKnownErr: () => toKnownErr45
|
|
11853
12122
|
});
|
|
11854
|
-
function
|
|
12123
|
+
function toKnownErr45(e) {
|
|
11855
12124
|
if (e instanceof XRPCError) {
|
|
11856
12125
|
}
|
|
11857
12126
|
return e;
|
|
@@ -11860,9 +12129,9 @@ function toKnownErr42(e) {
|
|
|
11860
12129
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
11861
12130
|
var getProfile_exports = {};
|
|
11862
12131
|
__export(getProfile_exports, {
|
|
11863
|
-
toKnownErr: () =>
|
|
12132
|
+
toKnownErr: () => toKnownErr46
|
|
11864
12133
|
});
|
|
11865
|
-
function
|
|
12134
|
+
function toKnownErr46(e) {
|
|
11866
12135
|
if (e instanceof XRPCError) {
|
|
11867
12136
|
}
|
|
11868
12137
|
return e;
|
|
@@ -11871,9 +12140,9 @@ function toKnownErr43(e) {
|
|
|
11871
12140
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
11872
12141
|
var getProfiles_exports = {};
|
|
11873
12142
|
__export(getProfiles_exports, {
|
|
11874
|
-
toKnownErr: () =>
|
|
12143
|
+
toKnownErr: () => toKnownErr47
|
|
11875
12144
|
});
|
|
11876
|
-
function
|
|
12145
|
+
function toKnownErr47(e) {
|
|
11877
12146
|
if (e instanceof XRPCError) {
|
|
11878
12147
|
}
|
|
11879
12148
|
return e;
|
|
@@ -11882,9 +12151,9 @@ function toKnownErr44(e) {
|
|
|
11882
12151
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
11883
12152
|
var getSuggestions_exports = {};
|
|
11884
12153
|
__export(getSuggestions_exports, {
|
|
11885
|
-
toKnownErr: () =>
|
|
12154
|
+
toKnownErr: () => toKnownErr48
|
|
11886
12155
|
});
|
|
11887
|
-
function
|
|
12156
|
+
function toKnownErr48(e) {
|
|
11888
12157
|
if (e instanceof XRPCError) {
|
|
11889
12158
|
}
|
|
11890
12159
|
return e;
|
|
@@ -11893,9 +12162,9 @@ function toKnownErr45(e) {
|
|
|
11893
12162
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
11894
12163
|
var searchActors_exports = {};
|
|
11895
12164
|
__export(searchActors_exports, {
|
|
11896
|
-
toKnownErr: () =>
|
|
12165
|
+
toKnownErr: () => toKnownErr49
|
|
11897
12166
|
});
|
|
11898
|
-
function
|
|
12167
|
+
function toKnownErr49(e) {
|
|
11899
12168
|
if (e instanceof XRPCError) {
|
|
11900
12169
|
}
|
|
11901
12170
|
return e;
|
|
@@ -11904,9 +12173,9 @@ function toKnownErr46(e) {
|
|
|
11904
12173
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
11905
12174
|
var searchActorsTypeahead_exports = {};
|
|
11906
12175
|
__export(searchActorsTypeahead_exports, {
|
|
11907
|
-
toKnownErr: () =>
|
|
12176
|
+
toKnownErr: () => toKnownErr50
|
|
11908
12177
|
});
|
|
11909
|
-
function
|
|
12178
|
+
function toKnownErr50(e) {
|
|
11910
12179
|
if (e instanceof XRPCError) {
|
|
11911
12180
|
}
|
|
11912
12181
|
return e;
|
|
@@ -11915,9 +12184,9 @@ function toKnownErr47(e) {
|
|
|
11915
12184
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
11916
12185
|
var getAuthorFeed_exports = {};
|
|
11917
12186
|
__export(getAuthorFeed_exports, {
|
|
11918
|
-
toKnownErr: () =>
|
|
12187
|
+
toKnownErr: () => toKnownErr51
|
|
11919
12188
|
});
|
|
11920
|
-
function
|
|
12189
|
+
function toKnownErr51(e) {
|
|
11921
12190
|
if (e instanceof XRPCError) {
|
|
11922
12191
|
}
|
|
11923
12192
|
return e;
|
|
@@ -11927,10 +12196,10 @@ function toKnownErr48(e) {
|
|
|
11927
12196
|
var getLikes_exports = {};
|
|
11928
12197
|
__export(getLikes_exports, {
|
|
11929
12198
|
isLike: () => isLike,
|
|
11930
|
-
toKnownErr: () =>
|
|
12199
|
+
toKnownErr: () => toKnownErr52,
|
|
11931
12200
|
validateLike: () => validateLike
|
|
11932
12201
|
});
|
|
11933
|
-
function
|
|
12202
|
+
function toKnownErr52(e) {
|
|
11934
12203
|
if (e instanceof XRPCError) {
|
|
11935
12204
|
}
|
|
11936
12205
|
return e;
|
|
@@ -11946,14 +12215,14 @@ function validateLike(v) {
|
|
|
11946
12215
|
var getPostThread_exports = {};
|
|
11947
12216
|
__export(getPostThread_exports, {
|
|
11948
12217
|
NotFoundError: () => NotFoundError,
|
|
11949
|
-
toKnownErr: () =>
|
|
12218
|
+
toKnownErr: () => toKnownErr53
|
|
11950
12219
|
});
|
|
11951
12220
|
var NotFoundError = class extends XRPCError {
|
|
11952
12221
|
constructor(src2) {
|
|
11953
12222
|
super(src2.status, src2.error, src2.message);
|
|
11954
12223
|
}
|
|
11955
12224
|
};
|
|
11956
|
-
function
|
|
12225
|
+
function toKnownErr53(e) {
|
|
11957
12226
|
if (e instanceof XRPCError) {
|
|
11958
12227
|
if (e.error === "NotFound")
|
|
11959
12228
|
return new NotFoundError(e);
|
|
@@ -11964,9 +12233,9 @@ function toKnownErr50(e) {
|
|
|
11964
12233
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
11965
12234
|
var getRepostedBy_exports = {};
|
|
11966
12235
|
__export(getRepostedBy_exports, {
|
|
11967
|
-
toKnownErr: () =>
|
|
12236
|
+
toKnownErr: () => toKnownErr54
|
|
11968
12237
|
});
|
|
11969
|
-
function
|
|
12238
|
+
function toKnownErr54(e) {
|
|
11970
12239
|
if (e instanceof XRPCError) {
|
|
11971
12240
|
}
|
|
11972
12241
|
return e;
|
|
@@ -11975,9 +12244,9 @@ function toKnownErr51(e) {
|
|
|
11975
12244
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
11976
12245
|
var getTimeline_exports = {};
|
|
11977
12246
|
__export(getTimeline_exports, {
|
|
11978
|
-
toKnownErr: () =>
|
|
12247
|
+
toKnownErr: () => toKnownErr55
|
|
11979
12248
|
});
|
|
11980
|
-
function
|
|
12249
|
+
function toKnownErr55(e) {
|
|
11981
12250
|
if (e instanceof XRPCError) {
|
|
11982
12251
|
}
|
|
11983
12252
|
return e;
|
|
@@ -11986,9 +12255,9 @@ function toKnownErr52(e) {
|
|
|
11986
12255
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
11987
12256
|
var getFollowers_exports = {};
|
|
11988
12257
|
__export(getFollowers_exports, {
|
|
11989
|
-
toKnownErr: () =>
|
|
12258
|
+
toKnownErr: () => toKnownErr56
|
|
11990
12259
|
});
|
|
11991
|
-
function
|
|
12260
|
+
function toKnownErr56(e) {
|
|
11992
12261
|
if (e instanceof XRPCError) {
|
|
11993
12262
|
}
|
|
11994
12263
|
return e;
|
|
@@ -11997,9 +12266,9 @@ function toKnownErr53(e) {
|
|
|
11997
12266
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
11998
12267
|
var getFollows_exports = {};
|
|
11999
12268
|
__export(getFollows_exports, {
|
|
12000
|
-
toKnownErr: () =>
|
|
12269
|
+
toKnownErr: () => toKnownErr57
|
|
12001
12270
|
});
|
|
12002
|
-
function
|
|
12271
|
+
function toKnownErr57(e) {
|
|
12003
12272
|
if (e instanceof XRPCError) {
|
|
12004
12273
|
}
|
|
12005
12274
|
return e;
|
|
@@ -12008,9 +12277,9 @@ function toKnownErr54(e) {
|
|
|
12008
12277
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
12009
12278
|
var getMutes_exports = {};
|
|
12010
12279
|
__export(getMutes_exports, {
|
|
12011
|
-
toKnownErr: () =>
|
|
12280
|
+
toKnownErr: () => toKnownErr58
|
|
12012
12281
|
});
|
|
12013
|
-
function
|
|
12282
|
+
function toKnownErr58(e) {
|
|
12014
12283
|
if (e instanceof XRPCError) {
|
|
12015
12284
|
}
|
|
12016
12285
|
return e;
|
|
@@ -12019,9 +12288,9 @@ function toKnownErr55(e) {
|
|
|
12019
12288
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
12020
12289
|
var muteActor_exports = {};
|
|
12021
12290
|
__export(muteActor_exports, {
|
|
12022
|
-
toKnownErr: () =>
|
|
12291
|
+
toKnownErr: () => toKnownErr59
|
|
12023
12292
|
});
|
|
12024
|
-
function
|
|
12293
|
+
function toKnownErr59(e) {
|
|
12025
12294
|
if (e instanceof XRPCError) {
|
|
12026
12295
|
}
|
|
12027
12296
|
return e;
|
|
@@ -12030,9 +12299,9 @@ function toKnownErr56(e) {
|
|
|
12030
12299
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
12031
12300
|
var unmuteActor_exports = {};
|
|
12032
12301
|
__export(unmuteActor_exports, {
|
|
12033
|
-
toKnownErr: () =>
|
|
12302
|
+
toKnownErr: () => toKnownErr60
|
|
12034
12303
|
});
|
|
12035
|
-
function
|
|
12304
|
+
function toKnownErr60(e) {
|
|
12036
12305
|
if (e instanceof XRPCError) {
|
|
12037
12306
|
}
|
|
12038
12307
|
return e;
|
|
@@ -12041,9 +12310,9 @@ function toKnownErr57(e) {
|
|
|
12041
12310
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
12042
12311
|
var getUnreadCount_exports = {};
|
|
12043
12312
|
__export(getUnreadCount_exports, {
|
|
12044
|
-
toKnownErr: () =>
|
|
12313
|
+
toKnownErr: () => toKnownErr61
|
|
12045
12314
|
});
|
|
12046
|
-
function
|
|
12315
|
+
function toKnownErr61(e) {
|
|
12047
12316
|
if (e instanceof XRPCError) {
|
|
12048
12317
|
}
|
|
12049
12318
|
return e;
|
|
@@ -12053,10 +12322,10 @@ function toKnownErr58(e) {
|
|
|
12053
12322
|
var listNotifications_exports = {};
|
|
12054
12323
|
__export(listNotifications_exports, {
|
|
12055
12324
|
isNotification: () => isNotification,
|
|
12056
|
-
toKnownErr: () =>
|
|
12325
|
+
toKnownErr: () => toKnownErr62,
|
|
12057
12326
|
validateNotification: () => validateNotification
|
|
12058
12327
|
});
|
|
12059
|
-
function
|
|
12328
|
+
function toKnownErr62(e) {
|
|
12060
12329
|
if (e instanceof XRPCError) {
|
|
12061
12330
|
}
|
|
12062
12331
|
return e;
|
|
@@ -12074,9 +12343,9 @@ function validateNotification(v) {
|
|
|
12074
12343
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
12075
12344
|
var updateSeen_exports = {};
|
|
12076
12345
|
__export(updateSeen_exports, {
|
|
12077
|
-
toKnownErr: () =>
|
|
12346
|
+
toKnownErr: () => toKnownErr63
|
|
12078
12347
|
});
|
|
12079
|
-
function
|
|
12348
|
+
function toKnownErr63(e) {
|
|
12080
12349
|
if (e instanceof XRPCError) {
|
|
12081
12350
|
}
|
|
12082
12351
|
return e;
|
|
@@ -12085,9 +12354,9 @@ function toKnownErr60(e) {
|
|
|
12085
12354
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
12086
12355
|
var getPopular_exports = {};
|
|
12087
12356
|
__export(getPopular_exports, {
|
|
12088
|
-
toKnownErr: () =>
|
|
12357
|
+
toKnownErr: () => toKnownErr64
|
|
12089
12358
|
});
|
|
12090
|
-
function
|
|
12359
|
+
function toKnownErr64(e) {
|
|
12091
12360
|
if (e instanceof XRPCError) {
|
|
12092
12361
|
}
|
|
12093
12362
|
return e;
|
|
@@ -12254,6 +12523,27 @@ function validateMain(v) {
|
|
|
12254
12523
|
return lexicons.validate("com.atproto.repo.strongRef#main", v);
|
|
12255
12524
|
}
|
|
12256
12525
|
|
|
12526
|
+
// src/client/types/com/atproto/server/defs.ts
|
|
12527
|
+
var defs_exports3 = {};
|
|
12528
|
+
__export(defs_exports3, {
|
|
12529
|
+
isInviteCode: () => isInviteCode,
|
|
12530
|
+
isInviteCodeUse: () => isInviteCodeUse,
|
|
12531
|
+
validateInviteCode: () => validateInviteCode,
|
|
12532
|
+
validateInviteCodeUse: () => validateInviteCodeUse
|
|
12533
|
+
});
|
|
12534
|
+
function isInviteCode(v) {
|
|
12535
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.defs#inviteCode";
|
|
12536
|
+
}
|
|
12537
|
+
function validateInviteCode(v) {
|
|
12538
|
+
return lexicons.validate("com.atproto.server.defs#inviteCode", v);
|
|
12539
|
+
}
|
|
12540
|
+
function isInviteCodeUse(v) {
|
|
12541
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.defs#inviteCodeUse";
|
|
12542
|
+
}
|
|
12543
|
+
function validateInviteCodeUse(v) {
|
|
12544
|
+
return lexicons.validate("com.atproto.server.defs#inviteCodeUse", v);
|
|
12545
|
+
}
|
|
12546
|
+
|
|
12257
12547
|
// src/client/types/com/atproto/sync/subscribeRepos.ts
|
|
12258
12548
|
var subscribeRepos_exports = {};
|
|
12259
12549
|
__export(subscribeRepos_exports, {
|
|
@@ -12308,8 +12598,8 @@ function validateRepoOp(v) {
|
|
|
12308
12598
|
}
|
|
12309
12599
|
|
|
12310
12600
|
// src/client/types/app/bsky/actor/defs.ts
|
|
12311
|
-
var
|
|
12312
|
-
__export(
|
|
12601
|
+
var defs_exports4 = {};
|
|
12602
|
+
__export(defs_exports4, {
|
|
12313
12603
|
isProfileView: () => isProfileView,
|
|
12314
12604
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
12315
12605
|
isProfileViewDetailed: () => isProfileViewDetailed,
|
|
@@ -12490,8 +12780,8 @@ function validateView4(v) {
|
|
|
12490
12780
|
}
|
|
12491
12781
|
|
|
12492
12782
|
// src/client/types/app/bsky/feed/defs.ts
|
|
12493
|
-
var
|
|
12494
|
-
__export(
|
|
12783
|
+
var defs_exports5 = {};
|
|
12784
|
+
__export(defs_exports5, {
|
|
12495
12785
|
isFeedViewPost: () => isFeedViewPost,
|
|
12496
12786
|
isNotFoundPost: () => isNotFoundPost,
|
|
12497
12787
|
isPostView: () => isPostView,
|
|
@@ -12714,54 +13004,64 @@ var AdminNS = class {
|
|
|
12714
13004
|
constructor(service) {
|
|
12715
13005
|
this._service = service;
|
|
12716
13006
|
}
|
|
13007
|
+
disableInviteCodes(data, opts) {
|
|
13008
|
+
return this._service.xrpc.call("com.atproto.admin.disableInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
13009
|
+
throw toKnownErr(e);
|
|
13010
|
+
});
|
|
13011
|
+
}
|
|
13012
|
+
getInviteCodes(params2, opts) {
|
|
13013
|
+
return this._service.xrpc.call("com.atproto.admin.getInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13014
|
+
throw toKnownErr2(e);
|
|
13015
|
+
});
|
|
13016
|
+
}
|
|
12717
13017
|
getModerationAction(params2, opts) {
|
|
12718
13018
|
return this._service.xrpc.call("com.atproto.admin.getModerationAction", params2, void 0, opts).catch((e) => {
|
|
12719
|
-
throw
|
|
13019
|
+
throw toKnownErr3(e);
|
|
12720
13020
|
});
|
|
12721
13021
|
}
|
|
12722
13022
|
getModerationActions(params2, opts) {
|
|
12723
13023
|
return this._service.xrpc.call("com.atproto.admin.getModerationActions", params2, void 0, opts).catch((e) => {
|
|
12724
|
-
throw
|
|
13024
|
+
throw toKnownErr4(e);
|
|
12725
13025
|
});
|
|
12726
13026
|
}
|
|
12727
13027
|
getModerationReport(params2, opts) {
|
|
12728
13028
|
return this._service.xrpc.call("com.atproto.admin.getModerationReport", params2, void 0, opts).catch((e) => {
|
|
12729
|
-
throw
|
|
13029
|
+
throw toKnownErr5(e);
|
|
12730
13030
|
});
|
|
12731
13031
|
}
|
|
12732
13032
|
getModerationReports(params2, opts) {
|
|
12733
13033
|
return this._service.xrpc.call("com.atproto.admin.getModerationReports", params2, void 0, opts).catch((e) => {
|
|
12734
|
-
throw
|
|
13034
|
+
throw toKnownErr6(e);
|
|
12735
13035
|
});
|
|
12736
13036
|
}
|
|
12737
13037
|
getRecord(params2, opts) {
|
|
12738
13038
|
return this._service.xrpc.call("com.atproto.admin.getRecord", params2, void 0, opts).catch((e) => {
|
|
12739
|
-
throw
|
|
13039
|
+
throw toKnownErr7(e);
|
|
12740
13040
|
});
|
|
12741
13041
|
}
|
|
12742
13042
|
getRepo(params2, opts) {
|
|
12743
13043
|
return this._service.xrpc.call("com.atproto.admin.getRepo", params2, void 0, opts).catch((e) => {
|
|
12744
|
-
throw
|
|
13044
|
+
throw toKnownErr8(e);
|
|
12745
13045
|
});
|
|
12746
13046
|
}
|
|
12747
13047
|
resolveModerationReports(data, opts) {
|
|
12748
13048
|
return this._service.xrpc.call("com.atproto.admin.resolveModerationReports", opts?.qp, data, opts).catch((e) => {
|
|
12749
|
-
throw
|
|
13049
|
+
throw toKnownErr9(e);
|
|
12750
13050
|
});
|
|
12751
13051
|
}
|
|
12752
13052
|
reverseModerationAction(data, opts) {
|
|
12753
13053
|
return this._service.xrpc.call("com.atproto.admin.reverseModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
12754
|
-
throw
|
|
13054
|
+
throw toKnownErr10(e);
|
|
12755
13055
|
});
|
|
12756
13056
|
}
|
|
12757
13057
|
searchRepos(params2, opts) {
|
|
12758
13058
|
return this._service.xrpc.call("com.atproto.admin.searchRepos", params2, void 0, opts).catch((e) => {
|
|
12759
|
-
throw
|
|
13059
|
+
throw toKnownErr11(e);
|
|
12760
13060
|
});
|
|
12761
13061
|
}
|
|
12762
13062
|
takeModerationAction(data, opts) {
|
|
12763
13063
|
return this._service.xrpc.call("com.atproto.admin.takeModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
12764
|
-
throw
|
|
13064
|
+
throw toKnownErr12(e);
|
|
12765
13065
|
});
|
|
12766
13066
|
}
|
|
12767
13067
|
};
|
|
@@ -12771,12 +13071,12 @@ var IdentityNS = class {
|
|
|
12771
13071
|
}
|
|
12772
13072
|
resolveHandle(params2, opts) {
|
|
12773
13073
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
12774
|
-
throw
|
|
13074
|
+
throw toKnownErr13(e);
|
|
12775
13075
|
});
|
|
12776
13076
|
}
|
|
12777
13077
|
updateHandle(data, opts) {
|
|
12778
13078
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
12779
|
-
throw
|
|
13079
|
+
throw toKnownErr14(e);
|
|
12780
13080
|
});
|
|
12781
13081
|
}
|
|
12782
13082
|
};
|
|
@@ -12786,7 +13086,7 @@ var ModerationNS = class {
|
|
|
12786
13086
|
}
|
|
12787
13087
|
createReport(data, opts) {
|
|
12788
13088
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
12789
|
-
throw
|
|
13089
|
+
throw toKnownErr15(e);
|
|
12790
13090
|
});
|
|
12791
13091
|
}
|
|
12792
13092
|
};
|
|
@@ -12796,42 +13096,42 @@ var RepoNS = class {
|
|
|
12796
13096
|
}
|
|
12797
13097
|
applyWrites(data, opts) {
|
|
12798
13098
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
12799
|
-
throw
|
|
13099
|
+
throw toKnownErr16(e);
|
|
12800
13100
|
});
|
|
12801
13101
|
}
|
|
12802
13102
|
createRecord(data, opts) {
|
|
12803
13103
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
12804
|
-
throw
|
|
13104
|
+
throw toKnownErr17(e);
|
|
12805
13105
|
});
|
|
12806
13106
|
}
|
|
12807
13107
|
deleteRecord(data, opts) {
|
|
12808
13108
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
12809
|
-
throw
|
|
13109
|
+
throw toKnownErr18(e);
|
|
12810
13110
|
});
|
|
12811
13111
|
}
|
|
12812
13112
|
describeRepo(params2, opts) {
|
|
12813
13113
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
12814
|
-
throw
|
|
13114
|
+
throw toKnownErr19(e);
|
|
12815
13115
|
});
|
|
12816
13116
|
}
|
|
12817
13117
|
getRecord(params2, opts) {
|
|
12818
13118
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
12819
|
-
throw
|
|
13119
|
+
throw toKnownErr20(e);
|
|
12820
13120
|
});
|
|
12821
13121
|
}
|
|
12822
13122
|
listRecords(params2, opts) {
|
|
12823
13123
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
12824
|
-
throw
|
|
13124
|
+
throw toKnownErr21(e);
|
|
12825
13125
|
});
|
|
12826
13126
|
}
|
|
12827
13127
|
putRecord(data, opts) {
|
|
12828
13128
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
12829
|
-
throw
|
|
13129
|
+
throw toKnownErr22(e);
|
|
12830
13130
|
});
|
|
12831
13131
|
}
|
|
12832
13132
|
uploadBlob(data, opts) {
|
|
12833
13133
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
12834
|
-
throw
|
|
13134
|
+
throw toKnownErr23(e);
|
|
12835
13135
|
});
|
|
12836
13136
|
}
|
|
12837
13137
|
};
|
|
@@ -12841,57 +13141,62 @@ var ServerNS = class {
|
|
|
12841
13141
|
}
|
|
12842
13142
|
createAccount(data, opts) {
|
|
12843
13143
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
12844
|
-
throw
|
|
13144
|
+
throw toKnownErr24(e);
|
|
12845
13145
|
});
|
|
12846
13146
|
}
|
|
12847
13147
|
createInviteCode(data, opts) {
|
|
12848
13148
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
12849
|
-
throw
|
|
13149
|
+
throw toKnownErr25(e);
|
|
12850
13150
|
});
|
|
12851
13151
|
}
|
|
12852
13152
|
createSession(data, opts) {
|
|
12853
13153
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
12854
|
-
throw
|
|
13154
|
+
throw toKnownErr26(e);
|
|
12855
13155
|
});
|
|
12856
13156
|
}
|
|
12857
13157
|
deleteAccount(data, opts) {
|
|
12858
13158
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
12859
|
-
throw
|
|
13159
|
+
throw toKnownErr27(e);
|
|
12860
13160
|
});
|
|
12861
13161
|
}
|
|
12862
13162
|
deleteSession(data, opts) {
|
|
12863
13163
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
12864
|
-
throw
|
|
13164
|
+
throw toKnownErr28(e);
|
|
12865
13165
|
});
|
|
12866
13166
|
}
|
|
12867
13167
|
describeServer(params2, opts) {
|
|
12868
13168
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
12869
|
-
throw
|
|
13169
|
+
throw toKnownErr29(e);
|
|
13170
|
+
});
|
|
13171
|
+
}
|
|
13172
|
+
getAccountInviteCodes(params2, opts) {
|
|
13173
|
+
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13174
|
+
throw toKnownErr30(e);
|
|
12870
13175
|
});
|
|
12871
13176
|
}
|
|
12872
13177
|
getSession(params2, opts) {
|
|
12873
13178
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
12874
|
-
throw
|
|
13179
|
+
throw toKnownErr31(e);
|
|
12875
13180
|
});
|
|
12876
13181
|
}
|
|
12877
13182
|
refreshSession(data, opts) {
|
|
12878
13183
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
12879
|
-
throw
|
|
13184
|
+
throw toKnownErr32(e);
|
|
12880
13185
|
});
|
|
12881
13186
|
}
|
|
12882
13187
|
requestAccountDelete(data, opts) {
|
|
12883
13188
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
12884
|
-
throw
|
|
13189
|
+
throw toKnownErr33(e);
|
|
12885
13190
|
});
|
|
12886
13191
|
}
|
|
12887
13192
|
requestPasswordReset(data, opts) {
|
|
12888
13193
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
12889
|
-
throw
|
|
13194
|
+
throw toKnownErr34(e);
|
|
12890
13195
|
});
|
|
12891
13196
|
}
|
|
12892
13197
|
resetPassword(data, opts) {
|
|
12893
13198
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
12894
|
-
throw
|
|
13199
|
+
throw toKnownErr35(e);
|
|
12895
13200
|
});
|
|
12896
13201
|
}
|
|
12897
13202
|
};
|
|
@@ -12901,52 +13206,52 @@ var SyncNS = class {
|
|
|
12901
13206
|
}
|
|
12902
13207
|
getBlob(params2, opts) {
|
|
12903
13208
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
12904
|
-
throw
|
|
13209
|
+
throw toKnownErr36(e);
|
|
12905
13210
|
});
|
|
12906
13211
|
}
|
|
12907
13212
|
getBlocks(params2, opts) {
|
|
12908
13213
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
12909
|
-
throw
|
|
13214
|
+
throw toKnownErr37(e);
|
|
12910
13215
|
});
|
|
12911
13216
|
}
|
|
12912
13217
|
getCheckout(params2, opts) {
|
|
12913
13218
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
12914
|
-
throw
|
|
13219
|
+
throw toKnownErr38(e);
|
|
12915
13220
|
});
|
|
12916
13221
|
}
|
|
12917
13222
|
getCommitPath(params2, opts) {
|
|
12918
13223
|
return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
|
|
12919
|
-
throw
|
|
13224
|
+
throw toKnownErr39(e);
|
|
12920
13225
|
});
|
|
12921
13226
|
}
|
|
12922
13227
|
getHead(params2, opts) {
|
|
12923
13228
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
12924
|
-
throw
|
|
13229
|
+
throw toKnownErr40(e);
|
|
12925
13230
|
});
|
|
12926
13231
|
}
|
|
12927
13232
|
getRecord(params2, opts) {
|
|
12928
13233
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
12929
|
-
throw
|
|
13234
|
+
throw toKnownErr41(e);
|
|
12930
13235
|
});
|
|
12931
13236
|
}
|
|
12932
13237
|
getRepo(params2, opts) {
|
|
12933
13238
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
12934
|
-
throw
|
|
13239
|
+
throw toKnownErr42(e);
|
|
12935
13240
|
});
|
|
12936
13241
|
}
|
|
12937
13242
|
listBlobs(params2, opts) {
|
|
12938
13243
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
12939
|
-
throw
|
|
13244
|
+
throw toKnownErr43(e);
|
|
12940
13245
|
});
|
|
12941
13246
|
}
|
|
12942
13247
|
notifyOfUpdate(params2, opts) {
|
|
12943
13248
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", params2, void 0, opts).catch((e) => {
|
|
12944
|
-
throw
|
|
13249
|
+
throw toKnownErr44(e);
|
|
12945
13250
|
});
|
|
12946
13251
|
}
|
|
12947
13252
|
requestCrawl(params2, opts) {
|
|
12948
13253
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", params2, void 0, opts).catch((e) => {
|
|
12949
|
-
throw
|
|
13254
|
+
throw toKnownErr45(e);
|
|
12950
13255
|
});
|
|
12951
13256
|
}
|
|
12952
13257
|
};
|
|
@@ -12975,27 +13280,27 @@ var ActorNS = class {
|
|
|
12975
13280
|
}
|
|
12976
13281
|
getProfile(params2, opts) {
|
|
12977
13282
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
12978
|
-
throw
|
|
13283
|
+
throw toKnownErr46(e);
|
|
12979
13284
|
});
|
|
12980
13285
|
}
|
|
12981
13286
|
getProfiles(params2, opts) {
|
|
12982
13287
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
12983
|
-
throw
|
|
13288
|
+
throw toKnownErr47(e);
|
|
12984
13289
|
});
|
|
12985
13290
|
}
|
|
12986
13291
|
getSuggestions(params2, opts) {
|
|
12987
13292
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
12988
|
-
throw
|
|
13293
|
+
throw toKnownErr48(e);
|
|
12989
13294
|
});
|
|
12990
13295
|
}
|
|
12991
13296
|
searchActors(params2, opts) {
|
|
12992
13297
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
12993
|
-
throw
|
|
13298
|
+
throw toKnownErr49(e);
|
|
12994
13299
|
});
|
|
12995
13300
|
}
|
|
12996
13301
|
searchActorsTypeahead(params2, opts) {
|
|
12997
13302
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
12998
|
-
throw
|
|
13303
|
+
throw toKnownErr50(e);
|
|
12999
13304
|
});
|
|
13000
13305
|
}
|
|
13001
13306
|
};
|
|
@@ -13050,27 +13355,27 @@ var FeedNS = class {
|
|
|
13050
13355
|
}
|
|
13051
13356
|
getAuthorFeed(params2, opts) {
|
|
13052
13357
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
13053
|
-
throw
|
|
13358
|
+
throw toKnownErr51(e);
|
|
13054
13359
|
});
|
|
13055
13360
|
}
|
|
13056
13361
|
getLikes(params2, opts) {
|
|
13057
13362
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
13058
|
-
throw
|
|
13363
|
+
throw toKnownErr52(e);
|
|
13059
13364
|
});
|
|
13060
13365
|
}
|
|
13061
13366
|
getPostThread(params2, opts) {
|
|
13062
13367
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
13063
|
-
throw
|
|
13368
|
+
throw toKnownErr53(e);
|
|
13064
13369
|
});
|
|
13065
13370
|
}
|
|
13066
13371
|
getRepostedBy(params2, opts) {
|
|
13067
13372
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
13068
|
-
throw
|
|
13373
|
+
throw toKnownErr54(e);
|
|
13069
13374
|
});
|
|
13070
13375
|
}
|
|
13071
13376
|
getTimeline(params2, opts) {
|
|
13072
13377
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
13073
|
-
throw
|
|
13378
|
+
throw toKnownErr55(e);
|
|
13074
13379
|
});
|
|
13075
13380
|
}
|
|
13076
13381
|
};
|
|
@@ -13192,27 +13497,27 @@ var GraphNS = class {
|
|
|
13192
13497
|
}
|
|
13193
13498
|
getFollowers(params2, opts) {
|
|
13194
13499
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
13195
|
-
throw
|
|
13500
|
+
throw toKnownErr56(e);
|
|
13196
13501
|
});
|
|
13197
13502
|
}
|
|
13198
13503
|
getFollows(params2, opts) {
|
|
13199
13504
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
13200
|
-
throw
|
|
13505
|
+
throw toKnownErr57(e);
|
|
13201
13506
|
});
|
|
13202
13507
|
}
|
|
13203
13508
|
getMutes(params2, opts) {
|
|
13204
13509
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
13205
|
-
throw
|
|
13510
|
+
throw toKnownErr58(e);
|
|
13206
13511
|
});
|
|
13207
13512
|
}
|
|
13208
13513
|
muteActor(data, opts) {
|
|
13209
13514
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
13210
|
-
throw
|
|
13515
|
+
throw toKnownErr59(e);
|
|
13211
13516
|
});
|
|
13212
13517
|
}
|
|
13213
13518
|
unmuteActor(data, opts) {
|
|
13214
13519
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
13215
|
-
throw
|
|
13520
|
+
throw toKnownErr60(e);
|
|
13216
13521
|
});
|
|
13217
13522
|
}
|
|
13218
13523
|
};
|
|
@@ -13259,17 +13564,17 @@ var NotificationNS = class {
|
|
|
13259
13564
|
}
|
|
13260
13565
|
getUnreadCount(params2, opts) {
|
|
13261
13566
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
13262
|
-
throw
|
|
13567
|
+
throw toKnownErr61(e);
|
|
13263
13568
|
});
|
|
13264
13569
|
}
|
|
13265
13570
|
listNotifications(params2, opts) {
|
|
13266
13571
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
13267
|
-
throw
|
|
13572
|
+
throw toKnownErr62(e);
|
|
13268
13573
|
});
|
|
13269
13574
|
}
|
|
13270
13575
|
updateSeen(data, opts) {
|
|
13271
13576
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
13272
|
-
throw
|
|
13577
|
+
throw toKnownErr63(e);
|
|
13273
13578
|
});
|
|
13274
13579
|
}
|
|
13275
13580
|
};
|
|
@@ -13284,7 +13589,7 @@ var UnspeccedNS = class {
|
|
|
13284
13589
|
}
|
|
13285
13590
|
getPopular(params2, opts) {
|
|
13286
13591
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
13287
|
-
throw
|
|
13592
|
+
throw toKnownErr64(e);
|
|
13288
13593
|
});
|
|
13289
13594
|
}
|
|
13290
13595
|
};
|
|
@@ -13327,7 +13632,8 @@ var _AtpAgent = class {
|
|
|
13327
13632
|
accessJwt: res.data.accessJwt,
|
|
13328
13633
|
refreshJwt: res.data.refreshJwt,
|
|
13329
13634
|
handle: res.data.handle,
|
|
13330
|
-
did: res.data.did
|
|
13635
|
+
did: res.data.did,
|
|
13636
|
+
email: opts.email
|
|
13331
13637
|
};
|
|
13332
13638
|
return res;
|
|
13333
13639
|
} catch (e) {
|
|
@@ -13351,7 +13657,8 @@ var _AtpAgent = class {
|
|
|
13351
13657
|
accessJwt: res.data.accessJwt,
|
|
13352
13658
|
refreshJwt: res.data.refreshJwt,
|
|
13353
13659
|
handle: res.data.handle,
|
|
13354
|
-
did: res.data.did
|
|
13660
|
+
did: res.data.did,
|
|
13661
|
+
email: res.data.email
|
|
13355
13662
|
};
|
|
13356
13663
|
return res;
|
|
13357
13664
|
} catch (e) {
|
|
@@ -13372,6 +13679,8 @@ var _AtpAgent = class {
|
|
|
13372
13679
|
if (!res.success || res.data.did !== this.session.did) {
|
|
13373
13680
|
throw new Error("Invalid session");
|
|
13374
13681
|
}
|
|
13682
|
+
this.session.email = res.data.email;
|
|
13683
|
+
this.session.handle = res.data.handle;
|
|
13375
13684
|
return res;
|
|
13376
13685
|
} catch (e) {
|
|
13377
13686
|
this.session = void 0;
|