@atproto/api 0.0.2 → 0.0.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/build.js +0 -14
- package/dist/client/index.d.ts +471 -0
- package/dist/client/lexicons.d.ts +3042 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +37 -0
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/client/types/app/bsky/actor/ref.d.ts +19 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +26 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +23 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +33 -0
- package/dist/client/types/app/bsky/feed/post.d.ts +55 -0
- package/dist/client/types/app/bsky/feed/repost.d.ts +6 -0
- package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +6 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +7 -0
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +7 -0
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/follow.d.ts +6 -0
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +33 -0
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +33 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +29 -0
- package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +32 -0
- package/dist/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +5 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +4 -0
- package/dist/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/account/delete.d.ts +13 -0
- package/dist/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +26 -0
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
- package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +30 -0
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +27 -0
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +5 -0
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
- package/dist/client/types/com/atproto/session/create.d.ts +26 -0
- package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/client/types/com/atproto/session/refresh.d.ts +21 -0
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +201 -18
- package/dist/index.js.map +4 -4
- package/dist/session.d.ts +42 -0
- package/package.json +4 -4
- package/src/client/index.ts +39 -0
- package/src/client/lexicons.ts +141 -9
- package/src/client/types/app/bsky/actor/getProfile.ts +1 -0
- package/src/client/types/app/bsky/actor/ref.ts +6 -0
- package/src/client/types/app/bsky/feed/post.ts +2 -0
- package/src/client/types/app/bsky/graph/getMutes.ts +43 -0
- package/src/client/types/app/bsky/graph/mute.ts +28 -0
- package/src/client/types/app/bsky/graph/unmute.ts +28 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/update-pkg.js +14 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
inviteCodeRequired?: boolean;
|
|
7
|
+
availableUserDomains: string[];
|
|
8
|
+
links?: Links;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|
|
20
|
+
export interface Links {
|
|
21
|
+
privacyPolicy?: string;
|
|
22
|
+
termsOfService?: string;
|
|
23
|
+
[k: string]: unknown;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
handle: string;
|
|
6
|
+
password: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
accessJwt: string;
|
|
11
|
+
refreshJwt: string;
|
|
12
|
+
handle: string;
|
|
13
|
+
did: string;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface CallOptions {
|
|
17
|
+
headers?: Headers;
|
|
18
|
+
qp?: QueryParams;
|
|
19
|
+
encoding: 'application/json';
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface CallOptions {
|
|
6
|
+
headers?: Headers;
|
|
7
|
+
qp?: QueryParams;
|
|
8
|
+
}
|
|
9
|
+
export interface Response {
|
|
10
|
+
success: boolean;
|
|
11
|
+
headers: Headers;
|
|
12
|
+
}
|
|
13
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
handle: string;
|
|
7
|
+
did: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
data: OutputSchema;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
accessJwt: string;
|
|
7
|
+
refreshJwt: string;
|
|
8
|
+
handle: string;
|
|
9
|
+
did: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
qp?: QueryParams;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
did: string;
|
|
4
|
+
from?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export interface CallOptions {
|
|
8
|
+
headers?: Headers;
|
|
9
|
+
}
|
|
10
|
+
export interface Response {
|
|
11
|
+
success: boolean;
|
|
12
|
+
headers: Headers;
|
|
13
|
+
data: Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
did: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
root: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
data: OutputSchema;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
did: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = string | Uint8Array;
|
|
6
|
+
export interface CallOptions {
|
|
7
|
+
headers?: Headers;
|
|
8
|
+
qp?: QueryParams;
|
|
9
|
+
encoding: 'application/cbor';
|
|
10
|
+
}
|
|
11
|
+
export interface Response {
|
|
12
|
+
success: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
}
|
|
15
|
+
export declare function toKnownErr(e: any): any;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -61,6 +61,9 @@ __export(src_exports, {
|
|
|
61
61
|
AppBskyGraphGetFollows: () => getFollows_exports,
|
|
62
62
|
AppBskyGraphGetMembers: () => getMembers_exports,
|
|
63
63
|
AppBskyGraphGetMemberships: () => getMemberships_exports,
|
|
64
|
+
AppBskyGraphGetMutes: () => getMutes_exports,
|
|
65
|
+
AppBskyGraphMute: () => mute_exports,
|
|
66
|
+
AppBskyGraphUnmute: () => unmute_exports,
|
|
64
67
|
AppBskyNotificationGetCount: () => getCount_exports,
|
|
65
68
|
AppBskyNotificationList: () => list_exports,
|
|
66
69
|
AppBskyNotificationUpdateSeen: () => updateSeen_exports,
|
|
@@ -5240,6 +5243,9 @@ var schemaDict = {
|
|
|
5240
5243
|
},
|
|
5241
5244
|
member: {
|
|
5242
5245
|
type: "string"
|
|
5246
|
+
},
|
|
5247
|
+
muted: {
|
|
5248
|
+
type: "boolean"
|
|
5243
5249
|
}
|
|
5244
5250
|
}
|
|
5245
5251
|
}
|
|
@@ -5351,15 +5357,15 @@ var schemaDict = {
|
|
|
5351
5357
|
avatar: {
|
|
5352
5358
|
type: "image",
|
|
5353
5359
|
accept: ["image/png", "image/jpeg"],
|
|
5354
|
-
maxWidth:
|
|
5355
|
-
maxHeight:
|
|
5360
|
+
maxWidth: 1e3,
|
|
5361
|
+
maxHeight: 1e3,
|
|
5356
5362
|
maxSize: 3e5
|
|
5357
5363
|
},
|
|
5358
5364
|
banner: {
|
|
5359
5365
|
type: "image",
|
|
5360
5366
|
accept: ["image/png", "image/jpeg"],
|
|
5361
|
-
maxWidth:
|
|
5362
|
-
maxHeight:
|
|
5367
|
+
maxWidth: 3e3,
|
|
5368
|
+
maxHeight: 1e3,
|
|
5363
5369
|
maxSize: 5e5
|
|
5364
5370
|
}
|
|
5365
5371
|
}
|
|
@@ -5404,6 +5410,18 @@ var schemaDict = {
|
|
|
5404
5410
|
},
|
|
5405
5411
|
avatar: {
|
|
5406
5412
|
type: "string"
|
|
5413
|
+
},
|
|
5414
|
+
viewer: {
|
|
5415
|
+
type: "ref",
|
|
5416
|
+
ref: "lex:app.bsky.actor.ref#viewerState"
|
|
5417
|
+
}
|
|
5418
|
+
}
|
|
5419
|
+
},
|
|
5420
|
+
viewerState: {
|
|
5421
|
+
type: "object",
|
|
5422
|
+
properties: {
|
|
5423
|
+
muted: {
|
|
5424
|
+
type: "boolean"
|
|
5407
5425
|
}
|
|
5408
5426
|
}
|
|
5409
5427
|
}
|
|
@@ -5655,9 +5673,9 @@ var schemaDict = {
|
|
|
5655
5673
|
thumb: {
|
|
5656
5674
|
type: "image",
|
|
5657
5675
|
accept: ["image/*"],
|
|
5658
|
-
maxWidth:
|
|
5659
|
-
maxHeight:
|
|
5660
|
-
maxSize:
|
|
5676
|
+
maxWidth: 1e3,
|
|
5677
|
+
maxHeight: 1e3,
|
|
5678
|
+
maxSize: 3e5
|
|
5661
5679
|
}
|
|
5662
5680
|
}
|
|
5663
5681
|
},
|
|
@@ -5717,8 +5735,8 @@ var schemaDict = {
|
|
|
5717
5735
|
image: {
|
|
5718
5736
|
type: "image",
|
|
5719
5737
|
accept: ["image/*"],
|
|
5720
|
-
maxWidth:
|
|
5721
|
-
maxHeight:
|
|
5738
|
+
maxWidth: 1e3,
|
|
5739
|
+
maxHeight: 1e3,
|
|
5722
5740
|
maxSize: 3e5
|
|
5723
5741
|
},
|
|
5724
5742
|
alt: {
|
|
@@ -6234,6 +6252,7 @@ var schemaDict = {
|
|
|
6234
6252
|
},
|
|
6235
6253
|
textSlice: {
|
|
6236
6254
|
type: "object",
|
|
6255
|
+
description: "A text segment. Start is inclusive, end is exclusive.",
|
|
6237
6256
|
required: ["start", "end"],
|
|
6238
6257
|
properties: {
|
|
6239
6258
|
start: {
|
|
@@ -6313,6 +6332,9 @@ var schemaDict = {
|
|
|
6313
6332
|
},
|
|
6314
6333
|
downvote: {
|
|
6315
6334
|
type: "string"
|
|
6335
|
+
},
|
|
6336
|
+
muted: {
|
|
6337
|
+
type: "boolean"
|
|
6316
6338
|
}
|
|
6317
6339
|
}
|
|
6318
6340
|
}
|
|
@@ -6954,6 +6976,116 @@ var schemaDict = {
|
|
|
6954
6976
|
}
|
|
6955
6977
|
}
|
|
6956
6978
|
},
|
|
6979
|
+
AppBskyGraphGetMutes: {
|
|
6980
|
+
lexicon: 1,
|
|
6981
|
+
id: "app.bsky.graph.getMutes",
|
|
6982
|
+
defs: {
|
|
6983
|
+
main: {
|
|
6984
|
+
type: "query",
|
|
6985
|
+
description: "Who does the viewer mute?",
|
|
6986
|
+
parameters: {
|
|
6987
|
+
type: "params",
|
|
6988
|
+
properties: {
|
|
6989
|
+
limit: {
|
|
6990
|
+
type: "integer",
|
|
6991
|
+
minimum: 1,
|
|
6992
|
+
maximum: 100,
|
|
6993
|
+
default: 50
|
|
6994
|
+
},
|
|
6995
|
+
before: {
|
|
6996
|
+
type: "string"
|
|
6997
|
+
}
|
|
6998
|
+
}
|
|
6999
|
+
},
|
|
7000
|
+
output: {
|
|
7001
|
+
encoding: "application/json",
|
|
7002
|
+
schema: {
|
|
7003
|
+
type: "object",
|
|
7004
|
+
required: ["mutes"],
|
|
7005
|
+
properties: {
|
|
7006
|
+
cursor: {
|
|
7007
|
+
type: "string"
|
|
7008
|
+
},
|
|
7009
|
+
mutes: {
|
|
7010
|
+
type: "array",
|
|
7011
|
+
items: {
|
|
7012
|
+
type: "ref",
|
|
7013
|
+
ref: "lex:app.bsky.graph.getMutes#mute"
|
|
7014
|
+
}
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
}
|
|
7019
|
+
},
|
|
7020
|
+
mute: {
|
|
7021
|
+
type: "object",
|
|
7022
|
+
required: ["did", "declaration", "handle", "createdAt"],
|
|
7023
|
+
properties: {
|
|
7024
|
+
did: {
|
|
7025
|
+
type: "string"
|
|
7026
|
+
},
|
|
7027
|
+
declaration: {
|
|
7028
|
+
type: "ref",
|
|
7029
|
+
ref: "lex:app.bsky.system.declRef"
|
|
7030
|
+
},
|
|
7031
|
+
handle: {
|
|
7032
|
+
type: "string"
|
|
7033
|
+
},
|
|
7034
|
+
displayName: {
|
|
7035
|
+
type: "string",
|
|
7036
|
+
maxLength: 64
|
|
7037
|
+
},
|
|
7038
|
+
createdAt: {
|
|
7039
|
+
type: "datetime"
|
|
7040
|
+
}
|
|
7041
|
+
}
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
},
|
|
7045
|
+
AppBskyGraphMute: {
|
|
7046
|
+
lexicon: 1,
|
|
7047
|
+
id: "app.bsky.graph.mute",
|
|
7048
|
+
defs: {
|
|
7049
|
+
main: {
|
|
7050
|
+
type: "procedure",
|
|
7051
|
+
description: "Mute an actor by did or handle.",
|
|
7052
|
+
input: {
|
|
7053
|
+
encoding: "application/json",
|
|
7054
|
+
schema: {
|
|
7055
|
+
type: "object",
|
|
7056
|
+
required: ["user"],
|
|
7057
|
+
properties: {
|
|
7058
|
+
user: {
|
|
7059
|
+
type: "string"
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
},
|
|
7067
|
+
AppBskyGraphUnmute: {
|
|
7068
|
+
lexicon: 1,
|
|
7069
|
+
id: "app.bsky.graph.unmute",
|
|
7070
|
+
defs: {
|
|
7071
|
+
main: {
|
|
7072
|
+
type: "procedure",
|
|
7073
|
+
description: "Unmute an actor by did or handle.",
|
|
7074
|
+
input: {
|
|
7075
|
+
encoding: "application/json",
|
|
7076
|
+
schema: {
|
|
7077
|
+
type: "object",
|
|
7078
|
+
required: ["user"],
|
|
7079
|
+
properties: {
|
|
7080
|
+
user: {
|
|
7081
|
+
type: "string"
|
|
7082
|
+
}
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
}
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7088
|
+
},
|
|
6957
7089
|
AppBskyNotificationGetCount: {
|
|
6958
7090
|
lexicon: 1,
|
|
6959
7091
|
id: "app.bsky.notification.getCount",
|
|
@@ -7703,12 +7835,45 @@ function toKnownErr40(e) {
|
|
|
7703
7835
|
return e;
|
|
7704
7836
|
}
|
|
7705
7837
|
|
|
7838
|
+
// src/client/types/app/bsky/graph/getMutes.ts
|
|
7839
|
+
var getMutes_exports = {};
|
|
7840
|
+
__export(getMutes_exports, {
|
|
7841
|
+
toKnownErr: () => toKnownErr41
|
|
7842
|
+
});
|
|
7843
|
+
function toKnownErr41(e) {
|
|
7844
|
+
if (e instanceof XRPCError) {
|
|
7845
|
+
}
|
|
7846
|
+
return e;
|
|
7847
|
+
}
|
|
7848
|
+
|
|
7849
|
+
// src/client/types/app/bsky/graph/mute.ts
|
|
7850
|
+
var mute_exports = {};
|
|
7851
|
+
__export(mute_exports, {
|
|
7852
|
+
toKnownErr: () => toKnownErr42
|
|
7853
|
+
});
|
|
7854
|
+
function toKnownErr42(e) {
|
|
7855
|
+
if (e instanceof XRPCError) {
|
|
7856
|
+
}
|
|
7857
|
+
return e;
|
|
7858
|
+
}
|
|
7859
|
+
|
|
7860
|
+
// src/client/types/app/bsky/graph/unmute.ts
|
|
7861
|
+
var unmute_exports = {};
|
|
7862
|
+
__export(unmute_exports, {
|
|
7863
|
+
toKnownErr: () => toKnownErr43
|
|
7864
|
+
});
|
|
7865
|
+
function toKnownErr43(e) {
|
|
7866
|
+
if (e instanceof XRPCError) {
|
|
7867
|
+
}
|
|
7868
|
+
return e;
|
|
7869
|
+
}
|
|
7870
|
+
|
|
7706
7871
|
// src/client/types/app/bsky/notification/getCount.ts
|
|
7707
7872
|
var getCount_exports = {};
|
|
7708
7873
|
__export(getCount_exports, {
|
|
7709
|
-
toKnownErr: () =>
|
|
7874
|
+
toKnownErr: () => toKnownErr44
|
|
7710
7875
|
});
|
|
7711
|
-
function
|
|
7876
|
+
function toKnownErr44(e) {
|
|
7712
7877
|
if (e instanceof XRPCError) {
|
|
7713
7878
|
}
|
|
7714
7879
|
return e;
|
|
@@ -7717,9 +7882,9 @@ function toKnownErr41(e) {
|
|
|
7717
7882
|
// src/client/types/app/bsky/notification/list.ts
|
|
7718
7883
|
var list_exports = {};
|
|
7719
7884
|
__export(list_exports, {
|
|
7720
|
-
toKnownErr: () =>
|
|
7885
|
+
toKnownErr: () => toKnownErr45
|
|
7721
7886
|
});
|
|
7722
|
-
function
|
|
7887
|
+
function toKnownErr45(e) {
|
|
7723
7888
|
if (e instanceof XRPCError) {
|
|
7724
7889
|
}
|
|
7725
7890
|
return e;
|
|
@@ -7728,9 +7893,9 @@ function toKnownErr42(e) {
|
|
|
7728
7893
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
7729
7894
|
var updateSeen_exports = {};
|
|
7730
7895
|
__export(updateSeen_exports, {
|
|
7731
|
-
toKnownErr: () =>
|
|
7896
|
+
toKnownErr: () => toKnownErr46
|
|
7732
7897
|
});
|
|
7733
|
-
function
|
|
7898
|
+
function toKnownErr46(e) {
|
|
7734
7899
|
if (e instanceof XRPCError) {
|
|
7735
7900
|
}
|
|
7736
7901
|
return e;
|
|
@@ -8322,6 +8487,21 @@ var GraphNS = class {
|
|
|
8322
8487
|
throw toKnownErr40(e);
|
|
8323
8488
|
});
|
|
8324
8489
|
}
|
|
8490
|
+
getMutes(params2, opts) {
|
|
8491
|
+
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
8492
|
+
throw toKnownErr41(e);
|
|
8493
|
+
});
|
|
8494
|
+
}
|
|
8495
|
+
mute(data, opts) {
|
|
8496
|
+
return this._service.xrpc.call("app.bsky.graph.mute", opts?.qp, data, opts).catch((e) => {
|
|
8497
|
+
throw toKnownErr42(e);
|
|
8498
|
+
});
|
|
8499
|
+
}
|
|
8500
|
+
unmute(data, opts) {
|
|
8501
|
+
return this._service.xrpc.call("app.bsky.graph.unmute", opts?.qp, data, opts).catch((e) => {
|
|
8502
|
+
throw toKnownErr43(e);
|
|
8503
|
+
});
|
|
8504
|
+
}
|
|
8325
8505
|
};
|
|
8326
8506
|
var AssertionRecord = class {
|
|
8327
8507
|
constructor(service) {
|
|
@@ -8440,17 +8620,17 @@ var NotificationNS = class {
|
|
|
8440
8620
|
}
|
|
8441
8621
|
getCount(params2, opts) {
|
|
8442
8622
|
return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => {
|
|
8443
|
-
throw
|
|
8623
|
+
throw toKnownErr44(e);
|
|
8444
8624
|
});
|
|
8445
8625
|
}
|
|
8446
8626
|
list(params2, opts) {
|
|
8447
8627
|
return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => {
|
|
8448
|
-
throw
|
|
8628
|
+
throw toKnownErr45(e);
|
|
8449
8629
|
});
|
|
8450
8630
|
}
|
|
8451
8631
|
updateSeen(data, opts) {
|
|
8452
8632
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
8453
|
-
throw
|
|
8633
|
+
throw toKnownErr46(e);
|
|
8454
8634
|
});
|
|
8455
8635
|
}
|
|
8456
8636
|
};
|
|
@@ -8658,6 +8838,9 @@ var SessionManager = class extends import_events.default {
|
|
|
8658
8838
|
AppBskyGraphGetFollows,
|
|
8659
8839
|
AppBskyGraphGetMembers,
|
|
8660
8840
|
AppBskyGraphGetMemberships,
|
|
8841
|
+
AppBskyGraphGetMutes,
|
|
8842
|
+
AppBskyGraphMute,
|
|
8843
|
+
AppBskyGraphUnmute,
|
|
8661
8844
|
AppBskyNotificationGetCount,
|
|
8662
8845
|
AppBskyNotificationList,
|
|
8663
8846
|
AppBskyNotificationUpdateSeen,
|