@atproto/api 0.2.7 → 0.2.8
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/README.md +4 -4
- package/dist/client/index.d.ts +16 -0
- package/dist/client/lexicons.d.ts +207 -2
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/admin/updateAccountEmail.d.ts +18 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +5 -1
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts +31 -0
- package/dist/client/types/com/atproto/server/createInviteCodes.d.ts +10 -2
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +28 -0
- package/dist/client/types/com/atproto/server/revokeAppPassword.d.ts +17 -0
- package/dist/index.js +517 -182
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +56 -0
- package/src/client/lexicons.ts +221 -7
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +3 -1
- package/src/client/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/client/types/com/atproto/admin/defs.ts +3 -0
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +34 -0
- package/src/client/types/com/atproto/moderation/defs.ts +14 -2
- package/src/client/types/com/atproto/server/createAppPassword.ts +64 -0
- package/src/client/types/com/atproto/server/createInviteCodes.ts +23 -2
- package/src/client/types/com/atproto/server/listAppPasswords.ts +58 -0
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +32 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -135,6 +135,7 @@ __export(src_exports4, {
|
|
|
135
135
|
ComAtprotoAdminReverseModerationAction: () => reverseModerationAction_exports,
|
|
136
136
|
ComAtprotoAdminSearchRepos: () => searchRepos_exports,
|
|
137
137
|
ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
|
|
138
|
+
ComAtprotoAdminUpdateAccountEmail: () => updateAccountEmail_exports,
|
|
138
139
|
ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
|
|
139
140
|
ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
|
|
140
141
|
ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
|
|
@@ -153,6 +154,7 @@ __export(src_exports4, {
|
|
|
153
154
|
ComAtprotoRepoStrongRef: () => strongRef_exports,
|
|
154
155
|
ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
|
|
155
156
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
157
|
+
ComAtprotoServerCreateAppPassword: () => createAppPassword_exports,
|
|
156
158
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
157
159
|
ComAtprotoServerCreateInviteCodes: () => createInviteCodes_exports,
|
|
158
160
|
ComAtprotoServerCreateSession: () => createSession_exports,
|
|
@@ -162,10 +164,12 @@ __export(src_exports4, {
|
|
|
162
164
|
ComAtprotoServerDescribeServer: () => describeServer_exports,
|
|
163
165
|
ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
|
|
164
166
|
ComAtprotoServerGetSession: () => getSession_exports,
|
|
167
|
+
ComAtprotoServerListAppPasswords: () => listAppPasswords_exports,
|
|
165
168
|
ComAtprotoServerRefreshSession: () => refreshSession_exports,
|
|
166
169
|
ComAtprotoServerRequestAccountDelete: () => requestAccountDelete_exports,
|
|
167
170
|
ComAtprotoServerRequestPasswordReset: () => requestPasswordReset_exports,
|
|
168
171
|
ComAtprotoServerResetPassword: () => resetPassword_exports,
|
|
172
|
+
ComAtprotoServerRevokeAppPassword: () => revokeAppPassword_exports,
|
|
169
173
|
ComAtprotoSyncGetBlob: () => getBlob_exports,
|
|
170
174
|
ComAtprotoSyncGetBlocks: () => getBlocks_exports,
|
|
171
175
|
ComAtprotoSyncGetCheckout: () => getCheckout_exports,
|
|
@@ -7430,6 +7434,13 @@ var schemaDict = {
|
|
|
7430
7434
|
type: "ref",
|
|
7431
7435
|
ref: "lex:com.atproto.admin.defs#moderationDetail"
|
|
7432
7436
|
},
|
|
7437
|
+
labels: {
|
|
7438
|
+
type: "array",
|
|
7439
|
+
items: {
|
|
7440
|
+
type: "ref",
|
|
7441
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
7442
|
+
}
|
|
7443
|
+
},
|
|
7433
7444
|
invitedBy: {
|
|
7434
7445
|
type: "ref",
|
|
7435
7446
|
ref: "lex:com.atproto.server.defs#inviteCode"
|
|
@@ -7527,6 +7538,13 @@ var schemaDict = {
|
|
|
7527
7538
|
ref: "lex:com.atproto.admin.defs#blobView"
|
|
7528
7539
|
}
|
|
7529
7540
|
},
|
|
7541
|
+
labels: {
|
|
7542
|
+
type: "array",
|
|
7543
|
+
items: {
|
|
7544
|
+
type: "ref",
|
|
7545
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
7546
|
+
}
|
|
7547
|
+
},
|
|
7530
7548
|
indexedAt: {
|
|
7531
7549
|
type: "string",
|
|
7532
7550
|
format: "datetime"
|
|
@@ -8114,13 +8132,40 @@ var schemaDict = {
|
|
|
8114
8132
|
}
|
|
8115
8133
|
}
|
|
8116
8134
|
},
|
|
8135
|
+
ComAtprotoAdminUpdateAccountEmail: {
|
|
8136
|
+
lexicon: 1,
|
|
8137
|
+
id: "com.atproto.admin.updateAccountEmail",
|
|
8138
|
+
defs: {
|
|
8139
|
+
main: {
|
|
8140
|
+
type: "procedure",
|
|
8141
|
+
description: "Administrative action to update an account's email",
|
|
8142
|
+
input: {
|
|
8143
|
+
encoding: "application/json",
|
|
8144
|
+
schema: {
|
|
8145
|
+
type: "object",
|
|
8146
|
+
required: ["account", "email"],
|
|
8147
|
+
properties: {
|
|
8148
|
+
account: {
|
|
8149
|
+
type: "string",
|
|
8150
|
+
format: "at-identifier",
|
|
8151
|
+
description: "The handle or DID of the repo."
|
|
8152
|
+
},
|
|
8153
|
+
email: {
|
|
8154
|
+
type: "string"
|
|
8155
|
+
}
|
|
8156
|
+
}
|
|
8157
|
+
}
|
|
8158
|
+
}
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
},
|
|
8117
8162
|
ComAtprotoAdminUpdateAccountHandle: {
|
|
8118
8163
|
lexicon: 1,
|
|
8119
8164
|
id: "com.atproto.admin.updateAccountHandle",
|
|
8120
8165
|
defs: {
|
|
8121
8166
|
main: {
|
|
8122
8167
|
type: "procedure",
|
|
8123
|
-
description: "Administrative action to update an
|
|
8168
|
+
description: "Administrative action to update an account's handle",
|
|
8124
8169
|
input: {
|
|
8125
8170
|
encoding: "application/json",
|
|
8126
8171
|
schema: {
|
|
@@ -8441,16 +8486,36 @@ var schemaDict = {
|
|
|
8441
8486
|
type: "string",
|
|
8442
8487
|
knownValues: [
|
|
8443
8488
|
"com.atproto.moderation.defs#reasonSpam",
|
|
8489
|
+
"com.atproto.moderation.defs#reasonViolation",
|
|
8490
|
+
"com.atproto.moderation.defs#reasonMisleading",
|
|
8491
|
+
"com.atproto.moderation.defs#reasonSexual",
|
|
8492
|
+
"com.atproto.moderation.defs#reasonRude",
|
|
8444
8493
|
"com.atproto.moderation.defs#reasonOther"
|
|
8445
8494
|
]
|
|
8446
8495
|
},
|
|
8447
8496
|
reasonSpam: {
|
|
8448
8497
|
type: "token",
|
|
8449
|
-
description: "
|
|
8498
|
+
description: "Spam: frequent unwanted promotion, replies, mentions"
|
|
8499
|
+
},
|
|
8500
|
+
reasonViolation: {
|
|
8501
|
+
type: "token",
|
|
8502
|
+
description: "Direct violation of server rules, laws, terms of service"
|
|
8503
|
+
},
|
|
8504
|
+
reasonMisleading: {
|
|
8505
|
+
type: "token",
|
|
8506
|
+
description: "Misleading identity, affiliation, or content"
|
|
8507
|
+
},
|
|
8508
|
+
reasonSexual: {
|
|
8509
|
+
type: "token",
|
|
8510
|
+
description: "Unwanted or mis-labeled sexual content"
|
|
8511
|
+
},
|
|
8512
|
+
reasonRude: {
|
|
8513
|
+
type: "token",
|
|
8514
|
+
description: "Rude, harassing, explicit, or otherwise unwelcoming behavior"
|
|
8450
8515
|
},
|
|
8451
8516
|
reasonOther: {
|
|
8452
8517
|
type: "token",
|
|
8453
|
-
description: "
|
|
8518
|
+
description: "Other: reports not falling under another report category"
|
|
8454
8519
|
}
|
|
8455
8520
|
}
|
|
8456
8521
|
},
|
|
@@ -9061,6 +9126,56 @@ var schemaDict = {
|
|
|
9061
9126
|
}
|
|
9062
9127
|
}
|
|
9063
9128
|
},
|
|
9129
|
+
ComAtprotoServerCreateAppPassword: {
|
|
9130
|
+
lexicon: 1,
|
|
9131
|
+
id: "com.atproto.server.createAppPassword",
|
|
9132
|
+
defs: {
|
|
9133
|
+
main: {
|
|
9134
|
+
type: "procedure",
|
|
9135
|
+
description: "Create an app-specific password.",
|
|
9136
|
+
input: {
|
|
9137
|
+
encoding: "application/json",
|
|
9138
|
+
schema: {
|
|
9139
|
+
type: "object",
|
|
9140
|
+
required: ["name"],
|
|
9141
|
+
properties: {
|
|
9142
|
+
name: {
|
|
9143
|
+
type: "string"
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
}
|
|
9147
|
+
},
|
|
9148
|
+
output: {
|
|
9149
|
+
encoding: "application/json",
|
|
9150
|
+
schema: {
|
|
9151
|
+
type: "ref",
|
|
9152
|
+
ref: "lex:com.atproto.server.createAppPassword#appPassword"
|
|
9153
|
+
}
|
|
9154
|
+
},
|
|
9155
|
+
errors: [
|
|
9156
|
+
{
|
|
9157
|
+
name: "AccountTakedown"
|
|
9158
|
+
}
|
|
9159
|
+
]
|
|
9160
|
+
},
|
|
9161
|
+
appPassword: {
|
|
9162
|
+
type: "object",
|
|
9163
|
+
required: ["name", "password", "createdAt"],
|
|
9164
|
+
properties: {
|
|
9165
|
+
name: {
|
|
9166
|
+
type: "string"
|
|
9167
|
+
},
|
|
9168
|
+
password: {
|
|
9169
|
+
type: "string"
|
|
9170
|
+
},
|
|
9171
|
+
createdAt: {
|
|
9172
|
+
type: "string",
|
|
9173
|
+
format: "datetime"
|
|
9174
|
+
}
|
|
9175
|
+
}
|
|
9176
|
+
}
|
|
9177
|
+
}
|
|
9178
|
+
},
|
|
9064
9179
|
ComAtprotoServerCreateInviteCode: {
|
|
9065
9180
|
lexicon: 1,
|
|
9066
9181
|
id: "com.atproto.server.createInviteCode",
|
|
@@ -9119,9 +9234,12 @@ var schemaDict = {
|
|
|
9119
9234
|
useCount: {
|
|
9120
9235
|
type: "integer"
|
|
9121
9236
|
},
|
|
9122
|
-
|
|
9123
|
-
type: "
|
|
9124
|
-
|
|
9237
|
+
forAccounts: {
|
|
9238
|
+
type: "array",
|
|
9239
|
+
items: {
|
|
9240
|
+
type: "string",
|
|
9241
|
+
format: "did"
|
|
9242
|
+
}
|
|
9125
9243
|
}
|
|
9126
9244
|
}
|
|
9127
9245
|
}
|
|
@@ -9135,12 +9253,28 @@ var schemaDict = {
|
|
|
9135
9253
|
codes: {
|
|
9136
9254
|
type: "array",
|
|
9137
9255
|
items: {
|
|
9138
|
-
type: "
|
|
9256
|
+
type: "ref",
|
|
9257
|
+
ref: "lex:com.atproto.server.createInviteCodes#accountCodes"
|
|
9139
9258
|
}
|
|
9140
9259
|
}
|
|
9141
9260
|
}
|
|
9142
9261
|
}
|
|
9143
9262
|
}
|
|
9263
|
+
},
|
|
9264
|
+
accountCodes: {
|
|
9265
|
+
type: "object",
|
|
9266
|
+
required: ["account", "codes"],
|
|
9267
|
+
properties: {
|
|
9268
|
+
account: {
|
|
9269
|
+
type: "string"
|
|
9270
|
+
},
|
|
9271
|
+
codes: {
|
|
9272
|
+
type: "array",
|
|
9273
|
+
items: {
|
|
9274
|
+
type: "string"
|
|
9275
|
+
}
|
|
9276
|
+
}
|
|
9277
|
+
}
|
|
9144
9278
|
}
|
|
9145
9279
|
}
|
|
9146
9280
|
},
|
|
@@ -9425,6 +9559,50 @@ var schemaDict = {
|
|
|
9425
9559
|
}
|
|
9426
9560
|
}
|
|
9427
9561
|
},
|
|
9562
|
+
ComAtprotoServerListAppPasswords: {
|
|
9563
|
+
lexicon: 1,
|
|
9564
|
+
id: "com.atproto.server.listAppPasswords",
|
|
9565
|
+
defs: {
|
|
9566
|
+
main: {
|
|
9567
|
+
type: "query",
|
|
9568
|
+
description: "List all app-specific passwords.",
|
|
9569
|
+
output: {
|
|
9570
|
+
encoding: "application/json",
|
|
9571
|
+
schema: {
|
|
9572
|
+
type: "object",
|
|
9573
|
+
required: ["passwords"],
|
|
9574
|
+
properties: {
|
|
9575
|
+
passwords: {
|
|
9576
|
+
type: "array",
|
|
9577
|
+
items: {
|
|
9578
|
+
type: "ref",
|
|
9579
|
+
ref: "lex:com.atproto.server.listAppPasswords#appPassword"
|
|
9580
|
+
}
|
|
9581
|
+
}
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
},
|
|
9585
|
+
errors: [
|
|
9586
|
+
{
|
|
9587
|
+
name: "AccountTakedown"
|
|
9588
|
+
}
|
|
9589
|
+
]
|
|
9590
|
+
},
|
|
9591
|
+
appPassword: {
|
|
9592
|
+
type: "object",
|
|
9593
|
+
required: ["name", "createdAt"],
|
|
9594
|
+
properties: {
|
|
9595
|
+
name: {
|
|
9596
|
+
type: "string"
|
|
9597
|
+
},
|
|
9598
|
+
createdAt: {
|
|
9599
|
+
type: "string",
|
|
9600
|
+
format: "datetime"
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9603
|
+
}
|
|
9604
|
+
}
|
|
9605
|
+
},
|
|
9428
9606
|
ComAtprotoServerRefreshSession: {
|
|
9429
9607
|
lexicon: 1,
|
|
9430
9608
|
id: "com.atproto.server.refreshSession",
|
|
@@ -9528,6 +9706,28 @@ var schemaDict = {
|
|
|
9528
9706
|
}
|
|
9529
9707
|
}
|
|
9530
9708
|
},
|
|
9709
|
+
ComAtprotoServerRevokeAppPassword: {
|
|
9710
|
+
lexicon: 1,
|
|
9711
|
+
id: "com.atproto.server.revokeAppPassword",
|
|
9712
|
+
defs: {
|
|
9713
|
+
main: {
|
|
9714
|
+
type: "procedure",
|
|
9715
|
+
description: "Revoke an app-specific password by name.",
|
|
9716
|
+
input: {
|
|
9717
|
+
encoding: "application/json",
|
|
9718
|
+
schema: {
|
|
9719
|
+
type: "object",
|
|
9720
|
+
required: ["name"],
|
|
9721
|
+
properties: {
|
|
9722
|
+
name: {
|
|
9723
|
+
type: "string"
|
|
9724
|
+
}
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
}
|
|
9728
|
+
}
|
|
9729
|
+
}
|
|
9730
|
+
},
|
|
9531
9731
|
ComAtprotoSyncGetBlob: {
|
|
9532
9732
|
lexicon: 1,
|
|
9533
9733
|
id: "com.atproto.sync.getBlob",
|
|
@@ -11529,6 +11729,15 @@ var schemaDict = {
|
|
|
11529
11729
|
defs: {
|
|
11530
11730
|
main: {
|
|
11531
11731
|
type: "query",
|
|
11732
|
+
parameters: {
|
|
11733
|
+
type: "params",
|
|
11734
|
+
properties: {
|
|
11735
|
+
seenAt: {
|
|
11736
|
+
type: "string",
|
|
11737
|
+
format: "datetime"
|
|
11738
|
+
}
|
|
11739
|
+
}
|
|
11740
|
+
},
|
|
11532
11741
|
output: {
|
|
11533
11742
|
encoding: "application/json",
|
|
11534
11743
|
schema: {
|
|
@@ -11561,6 +11770,10 @@ var schemaDict = {
|
|
|
11561
11770
|
},
|
|
11562
11771
|
cursor: {
|
|
11563
11772
|
type: "string"
|
|
11773
|
+
},
|
|
11774
|
+
seenAt: {
|
|
11775
|
+
type: "string",
|
|
11776
|
+
format: "datetime"
|
|
11564
11777
|
}
|
|
11565
11778
|
}
|
|
11566
11779
|
},
|
|
@@ -11918,12 +12131,23 @@ function toKnownErr12(e) {
|
|
|
11918
12131
|
return e;
|
|
11919
12132
|
}
|
|
11920
12133
|
|
|
12134
|
+
// src/client/types/com/atproto/admin/updateAccountEmail.ts
|
|
12135
|
+
var updateAccountEmail_exports = {};
|
|
12136
|
+
__export(updateAccountEmail_exports, {
|
|
12137
|
+
toKnownErr: () => toKnownErr13
|
|
12138
|
+
});
|
|
12139
|
+
function toKnownErr13(e) {
|
|
12140
|
+
if (e instanceof XRPCError) {
|
|
12141
|
+
}
|
|
12142
|
+
return e;
|
|
12143
|
+
}
|
|
12144
|
+
|
|
11921
12145
|
// src/client/types/com/atproto/admin/updateAccountHandle.ts
|
|
11922
12146
|
var updateAccountHandle_exports = {};
|
|
11923
12147
|
__export(updateAccountHandle_exports, {
|
|
11924
|
-
toKnownErr: () =>
|
|
12148
|
+
toKnownErr: () => toKnownErr14
|
|
11925
12149
|
});
|
|
11926
|
-
function
|
|
12150
|
+
function toKnownErr14(e) {
|
|
11927
12151
|
if (e instanceof XRPCError) {
|
|
11928
12152
|
}
|
|
11929
12153
|
return e;
|
|
@@ -11932,9 +12156,9 @@ function toKnownErr13(e) {
|
|
|
11932
12156
|
// src/client/types/com/atproto/identity/resolveHandle.ts
|
|
11933
12157
|
var resolveHandle_exports = {};
|
|
11934
12158
|
__export(resolveHandle_exports, {
|
|
11935
|
-
toKnownErr: () =>
|
|
12159
|
+
toKnownErr: () => toKnownErr15
|
|
11936
12160
|
});
|
|
11937
|
-
function
|
|
12161
|
+
function toKnownErr15(e) {
|
|
11938
12162
|
if (e instanceof XRPCError) {
|
|
11939
12163
|
}
|
|
11940
12164
|
return e;
|
|
@@ -11943,9 +12167,9 @@ function toKnownErr14(e) {
|
|
|
11943
12167
|
// src/client/types/com/atproto/identity/updateHandle.ts
|
|
11944
12168
|
var updateHandle_exports = {};
|
|
11945
12169
|
__export(updateHandle_exports, {
|
|
11946
|
-
toKnownErr: () =>
|
|
12170
|
+
toKnownErr: () => toKnownErr16
|
|
11947
12171
|
});
|
|
11948
|
-
function
|
|
12172
|
+
function toKnownErr16(e) {
|
|
11949
12173
|
if (e instanceof XRPCError) {
|
|
11950
12174
|
}
|
|
11951
12175
|
return e;
|
|
@@ -11954,9 +12178,9 @@ function toKnownErr15(e) {
|
|
|
11954
12178
|
// src/client/types/com/atproto/label/queryLabels.ts
|
|
11955
12179
|
var queryLabels_exports = {};
|
|
11956
12180
|
__export(queryLabels_exports, {
|
|
11957
|
-
toKnownErr: () =>
|
|
12181
|
+
toKnownErr: () => toKnownErr17
|
|
11958
12182
|
});
|
|
11959
|
-
function
|
|
12183
|
+
function toKnownErr17(e) {
|
|
11960
12184
|
if (e instanceof XRPCError) {
|
|
11961
12185
|
}
|
|
11962
12186
|
return e;
|
|
@@ -11965,9 +12189,9 @@ function toKnownErr16(e) {
|
|
|
11965
12189
|
// src/client/types/com/atproto/moderation/createReport.ts
|
|
11966
12190
|
var createReport_exports = {};
|
|
11967
12191
|
__export(createReport_exports, {
|
|
11968
|
-
toKnownErr: () =>
|
|
12192
|
+
toKnownErr: () => toKnownErr18
|
|
11969
12193
|
});
|
|
11970
|
-
function
|
|
12194
|
+
function toKnownErr18(e) {
|
|
11971
12195
|
if (e instanceof XRPCError) {
|
|
11972
12196
|
}
|
|
11973
12197
|
return e;
|
|
@@ -11980,7 +12204,7 @@ __export(applyWrites_exports, {
|
|
|
11980
12204
|
isCreate: () => isCreate,
|
|
11981
12205
|
isDelete: () => isDelete,
|
|
11982
12206
|
isUpdate: () => isUpdate,
|
|
11983
|
-
toKnownErr: () =>
|
|
12207
|
+
toKnownErr: () => toKnownErr19,
|
|
11984
12208
|
validateCreate: () => validateCreate,
|
|
11985
12209
|
validateDelete: () => validateDelete,
|
|
11986
12210
|
validateUpdate: () => validateUpdate
|
|
@@ -12000,7 +12224,7 @@ var InvalidSwapError = class extends XRPCError {
|
|
|
12000
12224
|
super(src2.status, src2.error, src2.message);
|
|
12001
12225
|
}
|
|
12002
12226
|
};
|
|
12003
|
-
function
|
|
12227
|
+
function toKnownErr19(e) {
|
|
12004
12228
|
if (e instanceof XRPCError) {
|
|
12005
12229
|
if (e.error === "InvalidSwap")
|
|
12006
12230
|
return new InvalidSwapError(e);
|
|
@@ -12030,14 +12254,14 @@ function validateDelete(v) {
|
|
|
12030
12254
|
var createRecord_exports = {};
|
|
12031
12255
|
__export(createRecord_exports, {
|
|
12032
12256
|
InvalidSwapError: () => InvalidSwapError2,
|
|
12033
|
-
toKnownErr: () =>
|
|
12257
|
+
toKnownErr: () => toKnownErr20
|
|
12034
12258
|
});
|
|
12035
12259
|
var InvalidSwapError2 = class extends XRPCError {
|
|
12036
12260
|
constructor(src2) {
|
|
12037
12261
|
super(src2.status, src2.error, src2.message);
|
|
12038
12262
|
}
|
|
12039
12263
|
};
|
|
12040
|
-
function
|
|
12264
|
+
function toKnownErr20(e) {
|
|
12041
12265
|
if (e instanceof XRPCError) {
|
|
12042
12266
|
if (e.error === "InvalidSwap")
|
|
12043
12267
|
return new InvalidSwapError2(e);
|
|
@@ -12049,14 +12273,14 @@ function toKnownErr19(e) {
|
|
|
12049
12273
|
var deleteRecord_exports = {};
|
|
12050
12274
|
__export(deleteRecord_exports, {
|
|
12051
12275
|
InvalidSwapError: () => InvalidSwapError3,
|
|
12052
|
-
toKnownErr: () =>
|
|
12276
|
+
toKnownErr: () => toKnownErr21
|
|
12053
12277
|
});
|
|
12054
12278
|
var InvalidSwapError3 = class extends XRPCError {
|
|
12055
12279
|
constructor(src2) {
|
|
12056
12280
|
super(src2.status, src2.error, src2.message);
|
|
12057
12281
|
}
|
|
12058
12282
|
};
|
|
12059
|
-
function
|
|
12283
|
+
function toKnownErr21(e) {
|
|
12060
12284
|
if (e instanceof XRPCError) {
|
|
12061
12285
|
if (e.error === "InvalidSwap")
|
|
12062
12286
|
return new InvalidSwapError3(e);
|
|
@@ -12067,9 +12291,9 @@ function toKnownErr20(e) {
|
|
|
12067
12291
|
// src/client/types/com/atproto/repo/describeRepo.ts
|
|
12068
12292
|
var describeRepo_exports = {};
|
|
12069
12293
|
__export(describeRepo_exports, {
|
|
12070
|
-
toKnownErr: () =>
|
|
12294
|
+
toKnownErr: () => toKnownErr22
|
|
12071
12295
|
});
|
|
12072
|
-
function
|
|
12296
|
+
function toKnownErr22(e) {
|
|
12073
12297
|
if (e instanceof XRPCError) {
|
|
12074
12298
|
}
|
|
12075
12299
|
return e;
|
|
@@ -12078,9 +12302,9 @@ function toKnownErr21(e) {
|
|
|
12078
12302
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
12079
12303
|
var getRecord_exports2 = {};
|
|
12080
12304
|
__export(getRecord_exports2, {
|
|
12081
|
-
toKnownErr: () =>
|
|
12305
|
+
toKnownErr: () => toKnownErr23
|
|
12082
12306
|
});
|
|
12083
|
-
function
|
|
12307
|
+
function toKnownErr23(e) {
|
|
12084
12308
|
if (e instanceof XRPCError) {
|
|
12085
12309
|
}
|
|
12086
12310
|
return e;
|
|
@@ -12090,10 +12314,10 @@ function toKnownErr22(e) {
|
|
|
12090
12314
|
var listRecords_exports = {};
|
|
12091
12315
|
__export(listRecords_exports, {
|
|
12092
12316
|
isRecord: () => isRecord,
|
|
12093
|
-
toKnownErr: () =>
|
|
12317
|
+
toKnownErr: () => toKnownErr24,
|
|
12094
12318
|
validateRecord: () => validateRecord
|
|
12095
12319
|
});
|
|
12096
|
-
function
|
|
12320
|
+
function toKnownErr24(e) {
|
|
12097
12321
|
if (e instanceof XRPCError) {
|
|
12098
12322
|
}
|
|
12099
12323
|
return e;
|
|
@@ -12109,14 +12333,14 @@ function validateRecord(v) {
|
|
|
12109
12333
|
var putRecord_exports = {};
|
|
12110
12334
|
__export(putRecord_exports, {
|
|
12111
12335
|
InvalidSwapError: () => InvalidSwapError4,
|
|
12112
|
-
toKnownErr: () =>
|
|
12336
|
+
toKnownErr: () => toKnownErr25
|
|
12113
12337
|
});
|
|
12114
12338
|
var InvalidSwapError4 = class extends XRPCError {
|
|
12115
12339
|
constructor(src2) {
|
|
12116
12340
|
super(src2.status, src2.error, src2.message);
|
|
12117
12341
|
}
|
|
12118
12342
|
};
|
|
12119
|
-
function
|
|
12343
|
+
function toKnownErr25(e) {
|
|
12120
12344
|
if (e instanceof XRPCError) {
|
|
12121
12345
|
if (e.error === "InvalidSwap")
|
|
12122
12346
|
return new InvalidSwapError4(e);
|
|
@@ -12127,9 +12351,9 @@ function toKnownErr24(e) {
|
|
|
12127
12351
|
// src/client/types/com/atproto/repo/uploadBlob.ts
|
|
12128
12352
|
var uploadBlob_exports = {};
|
|
12129
12353
|
__export(uploadBlob_exports, {
|
|
12130
|
-
toKnownErr: () =>
|
|
12354
|
+
toKnownErr: () => toKnownErr26
|
|
12131
12355
|
});
|
|
12132
|
-
function
|
|
12356
|
+
function toKnownErr26(e) {
|
|
12133
12357
|
if (e instanceof XRPCError) {
|
|
12134
12358
|
}
|
|
12135
12359
|
return e;
|
|
@@ -12143,7 +12367,7 @@ __export(createAccount_exports, {
|
|
|
12143
12367
|
InvalidInviteCodeError: () => InvalidInviteCodeError,
|
|
12144
12368
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
12145
12369
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
12146
|
-
toKnownErr: () =>
|
|
12370
|
+
toKnownErr: () => toKnownErr27
|
|
12147
12371
|
});
|
|
12148
12372
|
var InvalidHandleError2 = class extends XRPCError {
|
|
12149
12373
|
constructor(src2) {
|
|
@@ -12170,7 +12394,7 @@ var UnsupportedDomainError = class extends XRPCError {
|
|
|
12170
12394
|
super(src2.status, src2.error, src2.message);
|
|
12171
12395
|
}
|
|
12172
12396
|
};
|
|
12173
|
-
function
|
|
12397
|
+
function toKnownErr27(e) {
|
|
12174
12398
|
if (e instanceof XRPCError) {
|
|
12175
12399
|
if (e.error === "InvalidHandle")
|
|
12176
12400
|
return new InvalidHandleError2(e);
|
|
@@ -12186,12 +12410,42 @@ function toKnownErr26(e) {
|
|
|
12186
12410
|
return e;
|
|
12187
12411
|
}
|
|
12188
12412
|
|
|
12413
|
+
// src/client/types/com/atproto/server/createAppPassword.ts
|
|
12414
|
+
var createAppPassword_exports = {};
|
|
12415
|
+
__export(createAppPassword_exports, {
|
|
12416
|
+
AccountTakedownError: () => AccountTakedownError,
|
|
12417
|
+
isAppPassword: () => isAppPassword,
|
|
12418
|
+
toKnownErr: () => toKnownErr28,
|
|
12419
|
+
validateAppPassword: () => validateAppPassword
|
|
12420
|
+
});
|
|
12421
|
+
var AccountTakedownError = class extends XRPCError {
|
|
12422
|
+
constructor(src2) {
|
|
12423
|
+
super(src2.status, src2.error, src2.message);
|
|
12424
|
+
}
|
|
12425
|
+
};
|
|
12426
|
+
function toKnownErr28(e) {
|
|
12427
|
+
if (e instanceof XRPCError) {
|
|
12428
|
+
if (e.error === "AccountTakedown")
|
|
12429
|
+
return new AccountTakedownError(e);
|
|
12430
|
+
}
|
|
12431
|
+
return e;
|
|
12432
|
+
}
|
|
12433
|
+
function isAppPassword(v) {
|
|
12434
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.createAppPassword#appPassword";
|
|
12435
|
+
}
|
|
12436
|
+
function validateAppPassword(v) {
|
|
12437
|
+
return lexicons.validate(
|
|
12438
|
+
"com.atproto.server.createAppPassword#appPassword",
|
|
12439
|
+
v
|
|
12440
|
+
);
|
|
12441
|
+
}
|
|
12442
|
+
|
|
12189
12443
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
12190
12444
|
var createInviteCode_exports = {};
|
|
12191
12445
|
__export(createInviteCode_exports, {
|
|
12192
|
-
toKnownErr: () =>
|
|
12446
|
+
toKnownErr: () => toKnownErr29
|
|
12193
12447
|
});
|
|
12194
|
-
function
|
|
12448
|
+
function toKnownErr29(e) {
|
|
12195
12449
|
if (e instanceof XRPCError) {
|
|
12196
12450
|
}
|
|
12197
12451
|
return e;
|
|
@@ -12200,29 +12454,40 @@ function toKnownErr27(e) {
|
|
|
12200
12454
|
// src/client/types/com/atproto/server/createInviteCodes.ts
|
|
12201
12455
|
var createInviteCodes_exports = {};
|
|
12202
12456
|
__export(createInviteCodes_exports, {
|
|
12203
|
-
|
|
12457
|
+
isAccountCodes: () => isAccountCodes,
|
|
12458
|
+
toKnownErr: () => toKnownErr30,
|
|
12459
|
+
validateAccountCodes: () => validateAccountCodes
|
|
12204
12460
|
});
|
|
12205
|
-
function
|
|
12461
|
+
function toKnownErr30(e) {
|
|
12206
12462
|
if (e instanceof XRPCError) {
|
|
12207
12463
|
}
|
|
12208
12464
|
return e;
|
|
12209
12465
|
}
|
|
12466
|
+
function isAccountCodes(v) {
|
|
12467
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.createInviteCodes#accountCodes";
|
|
12468
|
+
}
|
|
12469
|
+
function validateAccountCodes(v) {
|
|
12470
|
+
return lexicons.validate(
|
|
12471
|
+
"com.atproto.server.createInviteCodes#accountCodes",
|
|
12472
|
+
v
|
|
12473
|
+
);
|
|
12474
|
+
}
|
|
12210
12475
|
|
|
12211
12476
|
// src/client/types/com/atproto/server/createSession.ts
|
|
12212
12477
|
var createSession_exports = {};
|
|
12213
12478
|
__export(createSession_exports, {
|
|
12214
|
-
AccountTakedownError: () =>
|
|
12215
|
-
toKnownErr: () =>
|
|
12479
|
+
AccountTakedownError: () => AccountTakedownError2,
|
|
12480
|
+
toKnownErr: () => toKnownErr31
|
|
12216
12481
|
});
|
|
12217
|
-
var
|
|
12482
|
+
var AccountTakedownError2 = class extends XRPCError {
|
|
12218
12483
|
constructor(src2) {
|
|
12219
12484
|
super(src2.status, src2.error, src2.message);
|
|
12220
12485
|
}
|
|
12221
12486
|
};
|
|
12222
|
-
function
|
|
12487
|
+
function toKnownErr31(e) {
|
|
12223
12488
|
if (e instanceof XRPCError) {
|
|
12224
12489
|
if (e.error === "AccountTakedown")
|
|
12225
|
-
return new
|
|
12490
|
+
return new AccountTakedownError2(e);
|
|
12226
12491
|
}
|
|
12227
12492
|
return e;
|
|
12228
12493
|
}
|
|
@@ -12232,7 +12497,7 @@ var deleteAccount_exports = {};
|
|
|
12232
12497
|
__export(deleteAccount_exports, {
|
|
12233
12498
|
ExpiredTokenError: () => ExpiredTokenError,
|
|
12234
12499
|
InvalidTokenError: () => InvalidTokenError,
|
|
12235
|
-
toKnownErr: () =>
|
|
12500
|
+
toKnownErr: () => toKnownErr32
|
|
12236
12501
|
});
|
|
12237
12502
|
var ExpiredTokenError = class extends XRPCError {
|
|
12238
12503
|
constructor(src2) {
|
|
@@ -12244,7 +12509,7 @@ var InvalidTokenError = class extends XRPCError {
|
|
|
12244
12509
|
super(src2.status, src2.error, src2.message);
|
|
12245
12510
|
}
|
|
12246
12511
|
};
|
|
12247
|
-
function
|
|
12512
|
+
function toKnownErr32(e) {
|
|
12248
12513
|
if (e instanceof XRPCError) {
|
|
12249
12514
|
if (e.error === "ExpiredToken")
|
|
12250
12515
|
return new ExpiredTokenError(e);
|
|
@@ -12257,9 +12522,9 @@ function toKnownErr30(e) {
|
|
|
12257
12522
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
12258
12523
|
var deleteSession_exports = {};
|
|
12259
12524
|
__export(deleteSession_exports, {
|
|
12260
|
-
toKnownErr: () =>
|
|
12525
|
+
toKnownErr: () => toKnownErr33
|
|
12261
12526
|
});
|
|
12262
|
-
function
|
|
12527
|
+
function toKnownErr33(e) {
|
|
12263
12528
|
if (e instanceof XRPCError) {
|
|
12264
12529
|
}
|
|
12265
12530
|
return e;
|
|
@@ -12269,10 +12534,10 @@ function toKnownErr31(e) {
|
|
|
12269
12534
|
var describeServer_exports = {};
|
|
12270
12535
|
__export(describeServer_exports, {
|
|
12271
12536
|
isLinks: () => isLinks,
|
|
12272
|
-
toKnownErr: () =>
|
|
12537
|
+
toKnownErr: () => toKnownErr34,
|
|
12273
12538
|
validateLinks: () => validateLinks
|
|
12274
12539
|
});
|
|
12275
|
-
function
|
|
12540
|
+
function toKnownErr34(e) {
|
|
12276
12541
|
if (e instanceof XRPCError) {
|
|
12277
12542
|
}
|
|
12278
12543
|
return e;
|
|
@@ -12288,14 +12553,14 @@ function validateLinks(v) {
|
|
|
12288
12553
|
var getAccountInviteCodes_exports = {};
|
|
12289
12554
|
__export(getAccountInviteCodes_exports, {
|
|
12290
12555
|
DuplicateCreateError: () => DuplicateCreateError,
|
|
12291
|
-
toKnownErr: () =>
|
|
12556
|
+
toKnownErr: () => toKnownErr35
|
|
12292
12557
|
});
|
|
12293
12558
|
var DuplicateCreateError = class extends XRPCError {
|
|
12294
12559
|
constructor(src2) {
|
|
12295
12560
|
super(src2.status, src2.error, src2.message);
|
|
12296
12561
|
}
|
|
12297
12562
|
};
|
|
12298
|
-
function
|
|
12563
|
+
function toKnownErr35(e) {
|
|
12299
12564
|
if (e instanceof XRPCError) {
|
|
12300
12565
|
if (e.error === "DuplicateCreate")
|
|
12301
12566
|
return new DuplicateCreateError(e);
|
|
@@ -12306,29 +12571,56 @@ function toKnownErr33(e) {
|
|
|
12306
12571
|
// src/client/types/com/atproto/server/getSession.ts
|
|
12307
12572
|
var getSession_exports = {};
|
|
12308
12573
|
__export(getSession_exports, {
|
|
12309
|
-
toKnownErr: () =>
|
|
12574
|
+
toKnownErr: () => toKnownErr36
|
|
12310
12575
|
});
|
|
12311
|
-
function
|
|
12576
|
+
function toKnownErr36(e) {
|
|
12577
|
+
if (e instanceof XRPCError) {
|
|
12578
|
+
}
|
|
12579
|
+
return e;
|
|
12580
|
+
}
|
|
12581
|
+
|
|
12582
|
+
// src/client/types/com/atproto/server/listAppPasswords.ts
|
|
12583
|
+
var listAppPasswords_exports = {};
|
|
12584
|
+
__export(listAppPasswords_exports, {
|
|
12585
|
+
AccountTakedownError: () => AccountTakedownError3,
|
|
12586
|
+
isAppPassword: () => isAppPassword2,
|
|
12587
|
+
toKnownErr: () => toKnownErr37,
|
|
12588
|
+
validateAppPassword: () => validateAppPassword2
|
|
12589
|
+
});
|
|
12590
|
+
var AccountTakedownError3 = class extends XRPCError {
|
|
12591
|
+
constructor(src2) {
|
|
12592
|
+
super(src2.status, src2.error, src2.message);
|
|
12593
|
+
}
|
|
12594
|
+
};
|
|
12595
|
+
function toKnownErr37(e) {
|
|
12312
12596
|
if (e instanceof XRPCError) {
|
|
12597
|
+
if (e.error === "AccountTakedown")
|
|
12598
|
+
return new AccountTakedownError3(e);
|
|
12313
12599
|
}
|
|
12314
12600
|
return e;
|
|
12315
12601
|
}
|
|
12602
|
+
function isAppPassword2(v) {
|
|
12603
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.listAppPasswords#appPassword";
|
|
12604
|
+
}
|
|
12605
|
+
function validateAppPassword2(v) {
|
|
12606
|
+
return lexicons.validate("com.atproto.server.listAppPasswords#appPassword", v);
|
|
12607
|
+
}
|
|
12316
12608
|
|
|
12317
12609
|
// src/client/types/com/atproto/server/refreshSession.ts
|
|
12318
12610
|
var refreshSession_exports = {};
|
|
12319
12611
|
__export(refreshSession_exports, {
|
|
12320
|
-
AccountTakedownError: () =>
|
|
12321
|
-
toKnownErr: () =>
|
|
12612
|
+
AccountTakedownError: () => AccountTakedownError4,
|
|
12613
|
+
toKnownErr: () => toKnownErr38
|
|
12322
12614
|
});
|
|
12323
|
-
var
|
|
12615
|
+
var AccountTakedownError4 = class extends XRPCError {
|
|
12324
12616
|
constructor(src2) {
|
|
12325
12617
|
super(src2.status, src2.error, src2.message);
|
|
12326
12618
|
}
|
|
12327
12619
|
};
|
|
12328
|
-
function
|
|
12620
|
+
function toKnownErr38(e) {
|
|
12329
12621
|
if (e instanceof XRPCError) {
|
|
12330
12622
|
if (e.error === "AccountTakedown")
|
|
12331
|
-
return new
|
|
12623
|
+
return new AccountTakedownError4(e);
|
|
12332
12624
|
}
|
|
12333
12625
|
return e;
|
|
12334
12626
|
}
|
|
@@ -12336,9 +12628,9 @@ function toKnownErr35(e) {
|
|
|
12336
12628
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
12337
12629
|
var requestAccountDelete_exports = {};
|
|
12338
12630
|
__export(requestAccountDelete_exports, {
|
|
12339
|
-
toKnownErr: () =>
|
|
12631
|
+
toKnownErr: () => toKnownErr39
|
|
12340
12632
|
});
|
|
12341
|
-
function
|
|
12633
|
+
function toKnownErr39(e) {
|
|
12342
12634
|
if (e instanceof XRPCError) {
|
|
12343
12635
|
}
|
|
12344
12636
|
return e;
|
|
@@ -12347,9 +12639,9 @@ function toKnownErr36(e) {
|
|
|
12347
12639
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
12348
12640
|
var requestPasswordReset_exports = {};
|
|
12349
12641
|
__export(requestPasswordReset_exports, {
|
|
12350
|
-
toKnownErr: () =>
|
|
12642
|
+
toKnownErr: () => toKnownErr40
|
|
12351
12643
|
});
|
|
12352
|
-
function
|
|
12644
|
+
function toKnownErr40(e) {
|
|
12353
12645
|
if (e instanceof XRPCError) {
|
|
12354
12646
|
}
|
|
12355
12647
|
return e;
|
|
@@ -12360,7 +12652,7 @@ var resetPassword_exports = {};
|
|
|
12360
12652
|
__export(resetPassword_exports, {
|
|
12361
12653
|
ExpiredTokenError: () => ExpiredTokenError2,
|
|
12362
12654
|
InvalidTokenError: () => InvalidTokenError2,
|
|
12363
|
-
toKnownErr: () =>
|
|
12655
|
+
toKnownErr: () => toKnownErr41
|
|
12364
12656
|
});
|
|
12365
12657
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
12366
12658
|
constructor(src2) {
|
|
@@ -12372,7 +12664,7 @@ var InvalidTokenError2 = class extends XRPCError {
|
|
|
12372
12664
|
super(src2.status, src2.error, src2.message);
|
|
12373
12665
|
}
|
|
12374
12666
|
};
|
|
12375
|
-
function
|
|
12667
|
+
function toKnownErr41(e) {
|
|
12376
12668
|
if (e instanceof XRPCError) {
|
|
12377
12669
|
if (e.error === "ExpiredToken")
|
|
12378
12670
|
return new ExpiredTokenError2(e);
|
|
@@ -12382,12 +12674,23 @@ function toKnownErr38(e) {
|
|
|
12382
12674
|
return e;
|
|
12383
12675
|
}
|
|
12384
12676
|
|
|
12677
|
+
// src/client/types/com/atproto/server/revokeAppPassword.ts
|
|
12678
|
+
var revokeAppPassword_exports = {};
|
|
12679
|
+
__export(revokeAppPassword_exports, {
|
|
12680
|
+
toKnownErr: () => toKnownErr42
|
|
12681
|
+
});
|
|
12682
|
+
function toKnownErr42(e) {
|
|
12683
|
+
if (e instanceof XRPCError) {
|
|
12684
|
+
}
|
|
12685
|
+
return e;
|
|
12686
|
+
}
|
|
12687
|
+
|
|
12385
12688
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
12386
12689
|
var getBlob_exports = {};
|
|
12387
12690
|
__export(getBlob_exports, {
|
|
12388
|
-
toKnownErr: () =>
|
|
12691
|
+
toKnownErr: () => toKnownErr43
|
|
12389
12692
|
});
|
|
12390
|
-
function
|
|
12693
|
+
function toKnownErr43(e) {
|
|
12391
12694
|
if (e instanceof XRPCError) {
|
|
12392
12695
|
}
|
|
12393
12696
|
return e;
|
|
@@ -12396,9 +12699,9 @@ function toKnownErr39(e) {
|
|
|
12396
12699
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
12397
12700
|
var getBlocks_exports = {};
|
|
12398
12701
|
__export(getBlocks_exports, {
|
|
12399
|
-
toKnownErr: () =>
|
|
12702
|
+
toKnownErr: () => toKnownErr44
|
|
12400
12703
|
});
|
|
12401
|
-
function
|
|
12704
|
+
function toKnownErr44(e) {
|
|
12402
12705
|
if (e instanceof XRPCError) {
|
|
12403
12706
|
}
|
|
12404
12707
|
return e;
|
|
@@ -12407,9 +12710,9 @@ function toKnownErr40(e) {
|
|
|
12407
12710
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
12408
12711
|
var getCheckout_exports = {};
|
|
12409
12712
|
__export(getCheckout_exports, {
|
|
12410
|
-
toKnownErr: () =>
|
|
12713
|
+
toKnownErr: () => toKnownErr45
|
|
12411
12714
|
});
|
|
12412
|
-
function
|
|
12715
|
+
function toKnownErr45(e) {
|
|
12413
12716
|
if (e instanceof XRPCError) {
|
|
12414
12717
|
}
|
|
12415
12718
|
return e;
|
|
@@ -12418,9 +12721,9 @@ function toKnownErr41(e) {
|
|
|
12418
12721
|
// src/client/types/com/atproto/sync/getCommitPath.ts
|
|
12419
12722
|
var getCommitPath_exports = {};
|
|
12420
12723
|
__export(getCommitPath_exports, {
|
|
12421
|
-
toKnownErr: () =>
|
|
12724
|
+
toKnownErr: () => toKnownErr46
|
|
12422
12725
|
});
|
|
12423
|
-
function
|
|
12726
|
+
function toKnownErr46(e) {
|
|
12424
12727
|
if (e instanceof XRPCError) {
|
|
12425
12728
|
}
|
|
12426
12729
|
return e;
|
|
@@ -12429,9 +12732,9 @@ function toKnownErr42(e) {
|
|
|
12429
12732
|
// src/client/types/com/atproto/sync/getHead.ts
|
|
12430
12733
|
var getHead_exports = {};
|
|
12431
12734
|
__export(getHead_exports, {
|
|
12432
|
-
toKnownErr: () =>
|
|
12735
|
+
toKnownErr: () => toKnownErr47
|
|
12433
12736
|
});
|
|
12434
|
-
function
|
|
12737
|
+
function toKnownErr47(e) {
|
|
12435
12738
|
if (e instanceof XRPCError) {
|
|
12436
12739
|
}
|
|
12437
12740
|
return e;
|
|
@@ -12440,9 +12743,9 @@ function toKnownErr43(e) {
|
|
|
12440
12743
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
12441
12744
|
var getRecord_exports3 = {};
|
|
12442
12745
|
__export(getRecord_exports3, {
|
|
12443
|
-
toKnownErr: () =>
|
|
12746
|
+
toKnownErr: () => toKnownErr48
|
|
12444
12747
|
});
|
|
12445
|
-
function
|
|
12748
|
+
function toKnownErr48(e) {
|
|
12446
12749
|
if (e instanceof XRPCError) {
|
|
12447
12750
|
}
|
|
12448
12751
|
return e;
|
|
@@ -12451,9 +12754,9 @@ function toKnownErr44(e) {
|
|
|
12451
12754
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
12452
12755
|
var getRepo_exports2 = {};
|
|
12453
12756
|
__export(getRepo_exports2, {
|
|
12454
|
-
toKnownErr: () =>
|
|
12757
|
+
toKnownErr: () => toKnownErr49
|
|
12455
12758
|
});
|
|
12456
|
-
function
|
|
12759
|
+
function toKnownErr49(e) {
|
|
12457
12760
|
if (e instanceof XRPCError) {
|
|
12458
12761
|
}
|
|
12459
12762
|
return e;
|
|
@@ -12462,9 +12765,9 @@ function toKnownErr45(e) {
|
|
|
12462
12765
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
12463
12766
|
var listBlobs_exports = {};
|
|
12464
12767
|
__export(listBlobs_exports, {
|
|
12465
|
-
toKnownErr: () =>
|
|
12768
|
+
toKnownErr: () => toKnownErr50
|
|
12466
12769
|
});
|
|
12467
|
-
function
|
|
12770
|
+
function toKnownErr50(e) {
|
|
12468
12771
|
if (e instanceof XRPCError) {
|
|
12469
12772
|
}
|
|
12470
12773
|
return e;
|
|
@@ -12474,10 +12777,10 @@ function toKnownErr46(e) {
|
|
|
12474
12777
|
var listRepos_exports = {};
|
|
12475
12778
|
__export(listRepos_exports, {
|
|
12476
12779
|
isRepo: () => isRepo,
|
|
12477
|
-
toKnownErr: () =>
|
|
12780
|
+
toKnownErr: () => toKnownErr51,
|
|
12478
12781
|
validateRepo: () => validateRepo
|
|
12479
12782
|
});
|
|
12480
|
-
function
|
|
12783
|
+
function toKnownErr51(e) {
|
|
12481
12784
|
if (e instanceof XRPCError) {
|
|
12482
12785
|
}
|
|
12483
12786
|
return e;
|
|
@@ -12492,9 +12795,9 @@ function validateRepo(v) {
|
|
|
12492
12795
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
12493
12796
|
var notifyOfUpdate_exports = {};
|
|
12494
12797
|
__export(notifyOfUpdate_exports, {
|
|
12495
|
-
toKnownErr: () =>
|
|
12798
|
+
toKnownErr: () => toKnownErr52
|
|
12496
12799
|
});
|
|
12497
|
-
function
|
|
12800
|
+
function toKnownErr52(e) {
|
|
12498
12801
|
if (e instanceof XRPCError) {
|
|
12499
12802
|
}
|
|
12500
12803
|
return e;
|
|
@@ -12503,9 +12806,9 @@ function toKnownErr48(e) {
|
|
|
12503
12806
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
12504
12807
|
var requestCrawl_exports = {};
|
|
12505
12808
|
__export(requestCrawl_exports, {
|
|
12506
|
-
toKnownErr: () =>
|
|
12809
|
+
toKnownErr: () => toKnownErr53
|
|
12507
12810
|
});
|
|
12508
|
-
function
|
|
12811
|
+
function toKnownErr53(e) {
|
|
12509
12812
|
if (e instanceof XRPCError) {
|
|
12510
12813
|
}
|
|
12511
12814
|
return e;
|
|
@@ -12514,9 +12817,9 @@ function toKnownErr49(e) {
|
|
|
12514
12817
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
12515
12818
|
var getProfile_exports = {};
|
|
12516
12819
|
__export(getProfile_exports, {
|
|
12517
|
-
toKnownErr: () =>
|
|
12820
|
+
toKnownErr: () => toKnownErr54
|
|
12518
12821
|
});
|
|
12519
|
-
function
|
|
12822
|
+
function toKnownErr54(e) {
|
|
12520
12823
|
if (e instanceof XRPCError) {
|
|
12521
12824
|
}
|
|
12522
12825
|
return e;
|
|
@@ -12525,9 +12828,9 @@ function toKnownErr50(e) {
|
|
|
12525
12828
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
12526
12829
|
var getProfiles_exports = {};
|
|
12527
12830
|
__export(getProfiles_exports, {
|
|
12528
|
-
toKnownErr: () =>
|
|
12831
|
+
toKnownErr: () => toKnownErr55
|
|
12529
12832
|
});
|
|
12530
|
-
function
|
|
12833
|
+
function toKnownErr55(e) {
|
|
12531
12834
|
if (e instanceof XRPCError) {
|
|
12532
12835
|
}
|
|
12533
12836
|
return e;
|
|
@@ -12536,9 +12839,9 @@ function toKnownErr51(e) {
|
|
|
12536
12839
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
12537
12840
|
var getSuggestions_exports = {};
|
|
12538
12841
|
__export(getSuggestions_exports, {
|
|
12539
|
-
toKnownErr: () =>
|
|
12842
|
+
toKnownErr: () => toKnownErr56
|
|
12540
12843
|
});
|
|
12541
|
-
function
|
|
12844
|
+
function toKnownErr56(e) {
|
|
12542
12845
|
if (e instanceof XRPCError) {
|
|
12543
12846
|
}
|
|
12544
12847
|
return e;
|
|
@@ -12547,9 +12850,9 @@ function toKnownErr52(e) {
|
|
|
12547
12850
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
12548
12851
|
var searchActors_exports = {};
|
|
12549
12852
|
__export(searchActors_exports, {
|
|
12550
|
-
toKnownErr: () =>
|
|
12853
|
+
toKnownErr: () => toKnownErr57
|
|
12551
12854
|
});
|
|
12552
|
-
function
|
|
12855
|
+
function toKnownErr57(e) {
|
|
12553
12856
|
if (e instanceof XRPCError) {
|
|
12554
12857
|
}
|
|
12555
12858
|
return e;
|
|
@@ -12558,9 +12861,9 @@ function toKnownErr53(e) {
|
|
|
12558
12861
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
12559
12862
|
var searchActorsTypeahead_exports = {};
|
|
12560
12863
|
__export(searchActorsTypeahead_exports, {
|
|
12561
|
-
toKnownErr: () =>
|
|
12864
|
+
toKnownErr: () => toKnownErr58
|
|
12562
12865
|
});
|
|
12563
|
-
function
|
|
12866
|
+
function toKnownErr58(e) {
|
|
12564
12867
|
if (e instanceof XRPCError) {
|
|
12565
12868
|
}
|
|
12566
12869
|
return e;
|
|
@@ -12569,9 +12872,9 @@ function toKnownErr54(e) {
|
|
|
12569
12872
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
12570
12873
|
var getAuthorFeed_exports = {};
|
|
12571
12874
|
__export(getAuthorFeed_exports, {
|
|
12572
|
-
toKnownErr: () =>
|
|
12875
|
+
toKnownErr: () => toKnownErr59
|
|
12573
12876
|
});
|
|
12574
|
-
function
|
|
12877
|
+
function toKnownErr59(e) {
|
|
12575
12878
|
if (e instanceof XRPCError) {
|
|
12576
12879
|
}
|
|
12577
12880
|
return e;
|
|
@@ -12581,10 +12884,10 @@ function toKnownErr55(e) {
|
|
|
12581
12884
|
var getLikes_exports = {};
|
|
12582
12885
|
__export(getLikes_exports, {
|
|
12583
12886
|
isLike: () => isLike,
|
|
12584
|
-
toKnownErr: () =>
|
|
12887
|
+
toKnownErr: () => toKnownErr60,
|
|
12585
12888
|
validateLike: () => validateLike
|
|
12586
12889
|
});
|
|
12587
|
-
function
|
|
12890
|
+
function toKnownErr60(e) {
|
|
12588
12891
|
if (e instanceof XRPCError) {
|
|
12589
12892
|
}
|
|
12590
12893
|
return e;
|
|
@@ -12600,14 +12903,14 @@ function validateLike(v) {
|
|
|
12600
12903
|
var getPostThread_exports = {};
|
|
12601
12904
|
__export(getPostThread_exports, {
|
|
12602
12905
|
NotFoundError: () => NotFoundError,
|
|
12603
|
-
toKnownErr: () =>
|
|
12906
|
+
toKnownErr: () => toKnownErr61
|
|
12604
12907
|
});
|
|
12605
12908
|
var NotFoundError = class extends XRPCError {
|
|
12606
12909
|
constructor(src2) {
|
|
12607
12910
|
super(src2.status, src2.error, src2.message);
|
|
12608
12911
|
}
|
|
12609
12912
|
};
|
|
12610
|
-
function
|
|
12913
|
+
function toKnownErr61(e) {
|
|
12611
12914
|
if (e instanceof XRPCError) {
|
|
12612
12915
|
if (e.error === "NotFound")
|
|
12613
12916
|
return new NotFoundError(e);
|
|
@@ -12618,9 +12921,9 @@ function toKnownErr57(e) {
|
|
|
12618
12921
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
12619
12922
|
var getRepostedBy_exports = {};
|
|
12620
12923
|
__export(getRepostedBy_exports, {
|
|
12621
|
-
toKnownErr: () =>
|
|
12924
|
+
toKnownErr: () => toKnownErr62
|
|
12622
12925
|
});
|
|
12623
|
-
function
|
|
12926
|
+
function toKnownErr62(e) {
|
|
12624
12927
|
if (e instanceof XRPCError) {
|
|
12625
12928
|
}
|
|
12626
12929
|
return e;
|
|
@@ -12629,9 +12932,9 @@ function toKnownErr58(e) {
|
|
|
12629
12932
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
12630
12933
|
var getTimeline_exports = {};
|
|
12631
12934
|
__export(getTimeline_exports, {
|
|
12632
|
-
toKnownErr: () =>
|
|
12935
|
+
toKnownErr: () => toKnownErr63
|
|
12633
12936
|
});
|
|
12634
|
-
function
|
|
12937
|
+
function toKnownErr63(e) {
|
|
12635
12938
|
if (e instanceof XRPCError) {
|
|
12636
12939
|
}
|
|
12637
12940
|
return e;
|
|
@@ -12640,9 +12943,9 @@ function toKnownErr59(e) {
|
|
|
12640
12943
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
12641
12944
|
var getFollowers_exports = {};
|
|
12642
12945
|
__export(getFollowers_exports, {
|
|
12643
|
-
toKnownErr: () =>
|
|
12946
|
+
toKnownErr: () => toKnownErr64
|
|
12644
12947
|
});
|
|
12645
|
-
function
|
|
12948
|
+
function toKnownErr64(e) {
|
|
12646
12949
|
if (e instanceof XRPCError) {
|
|
12647
12950
|
}
|
|
12648
12951
|
return e;
|
|
@@ -12651,9 +12954,9 @@ function toKnownErr60(e) {
|
|
|
12651
12954
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
12652
12955
|
var getFollows_exports = {};
|
|
12653
12956
|
__export(getFollows_exports, {
|
|
12654
|
-
toKnownErr: () =>
|
|
12957
|
+
toKnownErr: () => toKnownErr65
|
|
12655
12958
|
});
|
|
12656
|
-
function
|
|
12959
|
+
function toKnownErr65(e) {
|
|
12657
12960
|
if (e instanceof XRPCError) {
|
|
12658
12961
|
}
|
|
12659
12962
|
return e;
|
|
@@ -12662,9 +12965,9 @@ function toKnownErr61(e) {
|
|
|
12662
12965
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
12663
12966
|
var getMutes_exports = {};
|
|
12664
12967
|
__export(getMutes_exports, {
|
|
12665
|
-
toKnownErr: () =>
|
|
12968
|
+
toKnownErr: () => toKnownErr66
|
|
12666
12969
|
});
|
|
12667
|
-
function
|
|
12970
|
+
function toKnownErr66(e) {
|
|
12668
12971
|
if (e instanceof XRPCError) {
|
|
12669
12972
|
}
|
|
12670
12973
|
return e;
|
|
@@ -12673,9 +12976,9 @@ function toKnownErr62(e) {
|
|
|
12673
12976
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
12674
12977
|
var muteActor_exports = {};
|
|
12675
12978
|
__export(muteActor_exports, {
|
|
12676
|
-
toKnownErr: () =>
|
|
12979
|
+
toKnownErr: () => toKnownErr67
|
|
12677
12980
|
});
|
|
12678
|
-
function
|
|
12981
|
+
function toKnownErr67(e) {
|
|
12679
12982
|
if (e instanceof XRPCError) {
|
|
12680
12983
|
}
|
|
12681
12984
|
return e;
|
|
@@ -12684,9 +12987,9 @@ function toKnownErr63(e) {
|
|
|
12684
12987
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
12685
12988
|
var unmuteActor_exports = {};
|
|
12686
12989
|
__export(unmuteActor_exports, {
|
|
12687
|
-
toKnownErr: () =>
|
|
12990
|
+
toKnownErr: () => toKnownErr68
|
|
12688
12991
|
});
|
|
12689
|
-
function
|
|
12992
|
+
function toKnownErr68(e) {
|
|
12690
12993
|
if (e instanceof XRPCError) {
|
|
12691
12994
|
}
|
|
12692
12995
|
return e;
|
|
@@ -12695,9 +12998,9 @@ function toKnownErr64(e) {
|
|
|
12695
12998
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
12696
12999
|
var getUnreadCount_exports = {};
|
|
12697
13000
|
__export(getUnreadCount_exports, {
|
|
12698
|
-
toKnownErr: () =>
|
|
13001
|
+
toKnownErr: () => toKnownErr69
|
|
12699
13002
|
});
|
|
12700
|
-
function
|
|
13003
|
+
function toKnownErr69(e) {
|
|
12701
13004
|
if (e instanceof XRPCError) {
|
|
12702
13005
|
}
|
|
12703
13006
|
return e;
|
|
@@ -12707,10 +13010,10 @@ function toKnownErr65(e) {
|
|
|
12707
13010
|
var listNotifications_exports = {};
|
|
12708
13011
|
__export(listNotifications_exports, {
|
|
12709
13012
|
isNotification: () => isNotification,
|
|
12710
|
-
toKnownErr: () =>
|
|
13013
|
+
toKnownErr: () => toKnownErr70,
|
|
12711
13014
|
validateNotification: () => validateNotification
|
|
12712
13015
|
});
|
|
12713
|
-
function
|
|
13016
|
+
function toKnownErr70(e) {
|
|
12714
13017
|
if (e instanceof XRPCError) {
|
|
12715
13018
|
}
|
|
12716
13019
|
return e;
|
|
@@ -12728,9 +13031,9 @@ function validateNotification(v) {
|
|
|
12728
13031
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
12729
13032
|
var updateSeen_exports = {};
|
|
12730
13033
|
__export(updateSeen_exports, {
|
|
12731
|
-
toKnownErr: () =>
|
|
13034
|
+
toKnownErr: () => toKnownErr71
|
|
12732
13035
|
});
|
|
12733
|
-
function
|
|
13036
|
+
function toKnownErr71(e) {
|
|
12734
13037
|
if (e instanceof XRPCError) {
|
|
12735
13038
|
}
|
|
12736
13039
|
return e;
|
|
@@ -12739,9 +13042,9 @@ function toKnownErr67(e) {
|
|
|
12739
13042
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
12740
13043
|
var getPopular_exports = {};
|
|
12741
13044
|
__export(getPopular_exports, {
|
|
12742
|
-
toKnownErr: () =>
|
|
13045
|
+
toKnownErr: () => toKnownErr72
|
|
12743
13046
|
});
|
|
12744
|
-
function
|
|
13047
|
+
function toKnownErr72(e) {
|
|
12745
13048
|
if (e instanceof XRPCError) {
|
|
12746
13049
|
}
|
|
12747
13050
|
return e;
|
|
@@ -12923,10 +13226,18 @@ function validateInfo(v) {
|
|
|
12923
13226
|
// src/client/types/com/atproto/moderation/defs.ts
|
|
12924
13227
|
var defs_exports3 = {};
|
|
12925
13228
|
__export(defs_exports3, {
|
|
13229
|
+
REASONMISLEADING: () => REASONMISLEADING,
|
|
12926
13230
|
REASONOTHER: () => REASONOTHER,
|
|
12927
|
-
|
|
13231
|
+
REASONRUDE: () => REASONRUDE,
|
|
13232
|
+
REASONSEXUAL: () => REASONSEXUAL,
|
|
13233
|
+
REASONSPAM: () => REASONSPAM,
|
|
13234
|
+
REASONVIOLATION: () => REASONVIOLATION
|
|
12928
13235
|
});
|
|
12929
13236
|
var REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
|
|
13237
|
+
var REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
|
|
13238
|
+
var REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
|
|
13239
|
+
var REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
|
|
13240
|
+
var REASONRUDE = "com.atproto.moderation.defs#reasonRude";
|
|
12930
13241
|
var REASONOTHER = "com.atproto.moderation.defs#reasonOther";
|
|
12931
13242
|
|
|
12932
13243
|
// src/client/types/com/atproto/repo/strongRef.ts
|
|
@@ -13380,6 +13691,10 @@ var COM_ATPROTO_ADMIN = {
|
|
|
13380
13691
|
};
|
|
13381
13692
|
var COM_ATPROTO_MODERATION = {
|
|
13382
13693
|
DefsReasonSpam: "com.atproto.moderation.defs#reasonSpam",
|
|
13694
|
+
DefsReasonViolation: "com.atproto.moderation.defs#reasonViolation",
|
|
13695
|
+
DefsReasonMisleading: "com.atproto.moderation.defs#reasonMisleading",
|
|
13696
|
+
DefsReasonSexual: "com.atproto.moderation.defs#reasonSexual",
|
|
13697
|
+
DefsReasonRude: "com.atproto.moderation.defs#reasonRude",
|
|
13383
13698
|
DefsReasonOther: "com.atproto.moderation.defs#reasonOther"
|
|
13384
13699
|
};
|
|
13385
13700
|
var AtpBaseClient = class {
|
|
@@ -13484,9 +13799,14 @@ var AdminNS = class {
|
|
|
13484
13799
|
throw toKnownErr12(e);
|
|
13485
13800
|
});
|
|
13486
13801
|
}
|
|
13802
|
+
updateAccountEmail(data, opts) {
|
|
13803
|
+
return this._service.xrpc.call("com.atproto.admin.updateAccountEmail", opts?.qp, data, opts).catch((e) => {
|
|
13804
|
+
throw toKnownErr13(e);
|
|
13805
|
+
});
|
|
13806
|
+
}
|
|
13487
13807
|
updateAccountHandle(data, opts) {
|
|
13488
13808
|
return this._service.xrpc.call("com.atproto.admin.updateAccountHandle", opts?.qp, data, opts).catch((e) => {
|
|
13489
|
-
throw
|
|
13809
|
+
throw toKnownErr14(e);
|
|
13490
13810
|
});
|
|
13491
13811
|
}
|
|
13492
13812
|
};
|
|
@@ -13496,12 +13816,12 @@ var IdentityNS = class {
|
|
|
13496
13816
|
}
|
|
13497
13817
|
resolveHandle(params2, opts) {
|
|
13498
13818
|
return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
|
|
13499
|
-
throw
|
|
13819
|
+
throw toKnownErr15(e);
|
|
13500
13820
|
});
|
|
13501
13821
|
}
|
|
13502
13822
|
updateHandle(data, opts) {
|
|
13503
13823
|
return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
|
|
13504
|
-
throw
|
|
13824
|
+
throw toKnownErr16(e);
|
|
13505
13825
|
});
|
|
13506
13826
|
}
|
|
13507
13827
|
};
|
|
@@ -13511,7 +13831,7 @@ var LabelNS = class {
|
|
|
13511
13831
|
}
|
|
13512
13832
|
queryLabels(params2, opts) {
|
|
13513
13833
|
return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
|
|
13514
|
-
throw
|
|
13834
|
+
throw toKnownErr17(e);
|
|
13515
13835
|
});
|
|
13516
13836
|
}
|
|
13517
13837
|
};
|
|
@@ -13521,7 +13841,7 @@ var ModerationNS = class {
|
|
|
13521
13841
|
}
|
|
13522
13842
|
createReport(data, opts) {
|
|
13523
13843
|
return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
|
|
13524
|
-
throw
|
|
13844
|
+
throw toKnownErr18(e);
|
|
13525
13845
|
});
|
|
13526
13846
|
}
|
|
13527
13847
|
};
|
|
@@ -13531,42 +13851,42 @@ var RepoNS = class {
|
|
|
13531
13851
|
}
|
|
13532
13852
|
applyWrites(data, opts) {
|
|
13533
13853
|
return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
|
|
13534
|
-
throw
|
|
13854
|
+
throw toKnownErr19(e);
|
|
13535
13855
|
});
|
|
13536
13856
|
}
|
|
13537
13857
|
createRecord(data, opts) {
|
|
13538
13858
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
13539
|
-
throw
|
|
13859
|
+
throw toKnownErr20(e);
|
|
13540
13860
|
});
|
|
13541
13861
|
}
|
|
13542
13862
|
deleteRecord(data, opts) {
|
|
13543
13863
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
13544
|
-
throw
|
|
13864
|
+
throw toKnownErr21(e);
|
|
13545
13865
|
});
|
|
13546
13866
|
}
|
|
13547
13867
|
describeRepo(params2, opts) {
|
|
13548
13868
|
return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
|
|
13549
|
-
throw
|
|
13869
|
+
throw toKnownErr22(e);
|
|
13550
13870
|
});
|
|
13551
13871
|
}
|
|
13552
13872
|
getRecord(params2, opts) {
|
|
13553
13873
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
13554
|
-
throw
|
|
13874
|
+
throw toKnownErr23(e);
|
|
13555
13875
|
});
|
|
13556
13876
|
}
|
|
13557
13877
|
listRecords(params2, opts) {
|
|
13558
13878
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
13559
|
-
throw
|
|
13879
|
+
throw toKnownErr24(e);
|
|
13560
13880
|
});
|
|
13561
13881
|
}
|
|
13562
13882
|
putRecord(data, opts) {
|
|
13563
13883
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
13564
|
-
throw
|
|
13884
|
+
throw toKnownErr25(e);
|
|
13565
13885
|
});
|
|
13566
13886
|
}
|
|
13567
13887
|
uploadBlob(data, opts) {
|
|
13568
13888
|
return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
|
|
13569
|
-
throw
|
|
13889
|
+
throw toKnownErr26(e);
|
|
13570
13890
|
});
|
|
13571
13891
|
}
|
|
13572
13892
|
};
|
|
@@ -13576,67 +13896,82 @@ var ServerNS = class {
|
|
|
13576
13896
|
}
|
|
13577
13897
|
createAccount(data, opts) {
|
|
13578
13898
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
13579
|
-
throw
|
|
13899
|
+
throw toKnownErr27(e);
|
|
13900
|
+
});
|
|
13901
|
+
}
|
|
13902
|
+
createAppPassword(data, opts) {
|
|
13903
|
+
return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
13904
|
+
throw toKnownErr28(e);
|
|
13580
13905
|
});
|
|
13581
13906
|
}
|
|
13582
13907
|
createInviteCode(data, opts) {
|
|
13583
13908
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
13584
|
-
throw
|
|
13909
|
+
throw toKnownErr29(e);
|
|
13585
13910
|
});
|
|
13586
13911
|
}
|
|
13587
13912
|
createInviteCodes(data, opts) {
|
|
13588
13913
|
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
13589
|
-
throw
|
|
13914
|
+
throw toKnownErr30(e);
|
|
13590
13915
|
});
|
|
13591
13916
|
}
|
|
13592
13917
|
createSession(data, opts) {
|
|
13593
13918
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
13594
|
-
throw
|
|
13919
|
+
throw toKnownErr31(e);
|
|
13595
13920
|
});
|
|
13596
13921
|
}
|
|
13597
13922
|
deleteAccount(data, opts) {
|
|
13598
13923
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
13599
|
-
throw
|
|
13924
|
+
throw toKnownErr32(e);
|
|
13600
13925
|
});
|
|
13601
13926
|
}
|
|
13602
13927
|
deleteSession(data, opts) {
|
|
13603
13928
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
13604
|
-
throw
|
|
13929
|
+
throw toKnownErr33(e);
|
|
13605
13930
|
});
|
|
13606
13931
|
}
|
|
13607
13932
|
describeServer(params2, opts) {
|
|
13608
13933
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
13609
|
-
throw
|
|
13934
|
+
throw toKnownErr34(e);
|
|
13610
13935
|
});
|
|
13611
13936
|
}
|
|
13612
13937
|
getAccountInviteCodes(params2, opts) {
|
|
13613
13938
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
13614
|
-
throw
|
|
13939
|
+
throw toKnownErr35(e);
|
|
13615
13940
|
});
|
|
13616
13941
|
}
|
|
13617
13942
|
getSession(params2, opts) {
|
|
13618
13943
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
13619
|
-
throw
|
|
13944
|
+
throw toKnownErr36(e);
|
|
13945
|
+
});
|
|
13946
|
+
}
|
|
13947
|
+
listAppPasswords(params2, opts) {
|
|
13948
|
+
return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
|
|
13949
|
+
throw toKnownErr37(e);
|
|
13620
13950
|
});
|
|
13621
13951
|
}
|
|
13622
13952
|
refreshSession(data, opts) {
|
|
13623
13953
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
13624
|
-
throw
|
|
13954
|
+
throw toKnownErr38(e);
|
|
13625
13955
|
});
|
|
13626
13956
|
}
|
|
13627
13957
|
requestAccountDelete(data, opts) {
|
|
13628
13958
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
13629
|
-
throw
|
|
13959
|
+
throw toKnownErr39(e);
|
|
13630
13960
|
});
|
|
13631
13961
|
}
|
|
13632
13962
|
requestPasswordReset(data, opts) {
|
|
13633
13963
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
13634
|
-
throw
|
|
13964
|
+
throw toKnownErr40(e);
|
|
13635
13965
|
});
|
|
13636
13966
|
}
|
|
13637
13967
|
resetPassword(data, opts) {
|
|
13638
13968
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
13639
|
-
throw
|
|
13969
|
+
throw toKnownErr41(e);
|
|
13970
|
+
});
|
|
13971
|
+
}
|
|
13972
|
+
revokeAppPassword(data, opts) {
|
|
13973
|
+
return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
13974
|
+
throw toKnownErr42(e);
|
|
13640
13975
|
});
|
|
13641
13976
|
}
|
|
13642
13977
|
};
|
|
@@ -13646,57 +13981,57 @@ var SyncNS = class {
|
|
|
13646
13981
|
}
|
|
13647
13982
|
getBlob(params2, opts) {
|
|
13648
13983
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
13649
|
-
throw
|
|
13984
|
+
throw toKnownErr43(e);
|
|
13650
13985
|
});
|
|
13651
13986
|
}
|
|
13652
13987
|
getBlocks(params2, opts) {
|
|
13653
13988
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
13654
|
-
throw
|
|
13989
|
+
throw toKnownErr44(e);
|
|
13655
13990
|
});
|
|
13656
13991
|
}
|
|
13657
13992
|
getCheckout(params2, opts) {
|
|
13658
13993
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
13659
|
-
throw
|
|
13994
|
+
throw toKnownErr45(e);
|
|
13660
13995
|
});
|
|
13661
13996
|
}
|
|
13662
13997
|
getCommitPath(params2, opts) {
|
|
13663
13998
|
return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
|
|
13664
|
-
throw
|
|
13999
|
+
throw toKnownErr46(e);
|
|
13665
14000
|
});
|
|
13666
14001
|
}
|
|
13667
14002
|
getHead(params2, opts) {
|
|
13668
14003
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
13669
|
-
throw
|
|
14004
|
+
throw toKnownErr47(e);
|
|
13670
14005
|
});
|
|
13671
14006
|
}
|
|
13672
14007
|
getRecord(params2, opts) {
|
|
13673
14008
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
13674
|
-
throw
|
|
14009
|
+
throw toKnownErr48(e);
|
|
13675
14010
|
});
|
|
13676
14011
|
}
|
|
13677
14012
|
getRepo(params2, opts) {
|
|
13678
14013
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
13679
|
-
throw
|
|
14014
|
+
throw toKnownErr49(e);
|
|
13680
14015
|
});
|
|
13681
14016
|
}
|
|
13682
14017
|
listBlobs(params2, opts) {
|
|
13683
14018
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
13684
|
-
throw
|
|
14019
|
+
throw toKnownErr50(e);
|
|
13685
14020
|
});
|
|
13686
14021
|
}
|
|
13687
14022
|
listRepos(params2, opts) {
|
|
13688
14023
|
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
13689
|
-
throw
|
|
14024
|
+
throw toKnownErr51(e);
|
|
13690
14025
|
});
|
|
13691
14026
|
}
|
|
13692
14027
|
notifyOfUpdate(params2, opts) {
|
|
13693
14028
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", params2, void 0, opts).catch((e) => {
|
|
13694
|
-
throw
|
|
14029
|
+
throw toKnownErr52(e);
|
|
13695
14030
|
});
|
|
13696
14031
|
}
|
|
13697
14032
|
requestCrawl(params2, opts) {
|
|
13698
14033
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", params2, void 0, opts).catch((e) => {
|
|
13699
|
-
throw
|
|
14034
|
+
throw toKnownErr53(e);
|
|
13700
14035
|
});
|
|
13701
14036
|
}
|
|
13702
14037
|
};
|
|
@@ -13725,27 +14060,27 @@ var ActorNS = class {
|
|
|
13725
14060
|
}
|
|
13726
14061
|
getProfile(params2, opts) {
|
|
13727
14062
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
13728
|
-
throw
|
|
14063
|
+
throw toKnownErr54(e);
|
|
13729
14064
|
});
|
|
13730
14065
|
}
|
|
13731
14066
|
getProfiles(params2, opts) {
|
|
13732
14067
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
13733
|
-
throw
|
|
14068
|
+
throw toKnownErr55(e);
|
|
13734
14069
|
});
|
|
13735
14070
|
}
|
|
13736
14071
|
getSuggestions(params2, opts) {
|
|
13737
14072
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
13738
|
-
throw
|
|
14073
|
+
throw toKnownErr56(e);
|
|
13739
14074
|
});
|
|
13740
14075
|
}
|
|
13741
14076
|
searchActors(params2, opts) {
|
|
13742
14077
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
13743
|
-
throw
|
|
14078
|
+
throw toKnownErr57(e);
|
|
13744
14079
|
});
|
|
13745
14080
|
}
|
|
13746
14081
|
searchActorsTypeahead(params2, opts) {
|
|
13747
14082
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
13748
|
-
throw
|
|
14083
|
+
throw toKnownErr58(e);
|
|
13749
14084
|
});
|
|
13750
14085
|
}
|
|
13751
14086
|
};
|
|
@@ -13800,27 +14135,27 @@ var FeedNS = class {
|
|
|
13800
14135
|
}
|
|
13801
14136
|
getAuthorFeed(params2, opts) {
|
|
13802
14137
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
13803
|
-
throw
|
|
14138
|
+
throw toKnownErr59(e);
|
|
13804
14139
|
});
|
|
13805
14140
|
}
|
|
13806
14141
|
getLikes(params2, opts) {
|
|
13807
14142
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
13808
|
-
throw
|
|
14143
|
+
throw toKnownErr60(e);
|
|
13809
14144
|
});
|
|
13810
14145
|
}
|
|
13811
14146
|
getPostThread(params2, opts) {
|
|
13812
14147
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
13813
|
-
throw
|
|
14148
|
+
throw toKnownErr61(e);
|
|
13814
14149
|
});
|
|
13815
14150
|
}
|
|
13816
14151
|
getRepostedBy(params2, opts) {
|
|
13817
14152
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
13818
|
-
throw
|
|
14153
|
+
throw toKnownErr62(e);
|
|
13819
14154
|
});
|
|
13820
14155
|
}
|
|
13821
14156
|
getTimeline(params2, opts) {
|
|
13822
14157
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
13823
|
-
throw
|
|
14158
|
+
throw toKnownErr63(e);
|
|
13824
14159
|
});
|
|
13825
14160
|
}
|
|
13826
14161
|
};
|
|
@@ -13942,27 +14277,27 @@ var GraphNS = class {
|
|
|
13942
14277
|
}
|
|
13943
14278
|
getFollowers(params2, opts) {
|
|
13944
14279
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
13945
|
-
throw
|
|
14280
|
+
throw toKnownErr64(e);
|
|
13946
14281
|
});
|
|
13947
14282
|
}
|
|
13948
14283
|
getFollows(params2, opts) {
|
|
13949
14284
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
13950
|
-
throw
|
|
14285
|
+
throw toKnownErr65(e);
|
|
13951
14286
|
});
|
|
13952
14287
|
}
|
|
13953
14288
|
getMutes(params2, opts) {
|
|
13954
14289
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
13955
|
-
throw
|
|
14290
|
+
throw toKnownErr66(e);
|
|
13956
14291
|
});
|
|
13957
14292
|
}
|
|
13958
14293
|
muteActor(data, opts) {
|
|
13959
14294
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
13960
|
-
throw
|
|
14295
|
+
throw toKnownErr67(e);
|
|
13961
14296
|
});
|
|
13962
14297
|
}
|
|
13963
14298
|
unmuteActor(data, opts) {
|
|
13964
14299
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
13965
|
-
throw
|
|
14300
|
+
throw toKnownErr68(e);
|
|
13966
14301
|
});
|
|
13967
14302
|
}
|
|
13968
14303
|
};
|
|
@@ -14009,17 +14344,17 @@ var NotificationNS = class {
|
|
|
14009
14344
|
}
|
|
14010
14345
|
getUnreadCount(params2, opts) {
|
|
14011
14346
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
14012
|
-
throw
|
|
14347
|
+
throw toKnownErr69(e);
|
|
14013
14348
|
});
|
|
14014
14349
|
}
|
|
14015
14350
|
listNotifications(params2, opts) {
|
|
14016
14351
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
14017
|
-
throw
|
|
14352
|
+
throw toKnownErr70(e);
|
|
14018
14353
|
});
|
|
14019
14354
|
}
|
|
14020
14355
|
updateSeen(data, opts) {
|
|
14021
14356
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
14022
|
-
throw
|
|
14357
|
+
throw toKnownErr71(e);
|
|
14023
14358
|
});
|
|
14024
14359
|
}
|
|
14025
14360
|
};
|
|
@@ -14034,7 +14369,7 @@ var UnspeccedNS = class {
|
|
|
14034
14369
|
}
|
|
14035
14370
|
getPopular(params2, opts) {
|
|
14036
14371
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
14037
|
-
throw
|
|
14372
|
+
throw toKnownErr72(e);
|
|
14038
14373
|
});
|
|
14039
14374
|
}
|
|
14040
14375
|
};
|