@atproto/api 0.6.0 → 0.6.2
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/lexicons.d.ts +18 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +8 -0
- package/dist/index.js +69 -37
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/client/lexicons.ts +19 -1
- package/src/client/types/app/bsky/feed/defs.ts +19 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +2 -2
- package/src/client/types/app/bsky/feed/getFeed.ts +1 -1
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +1 -1
- package/src/client/types/app/bsky/feed/getPostThread.ts +1 -1
- package/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts +1 -1
- package/src/client/types/com/atproto/admin/getRecord.ts +1 -1
- package/src/client/types/com/atproto/admin/getRepo.ts +1 -1
- package/src/client/types/com/atproto/admin/rebaseRepo.ts +2 -2
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +1 -1
- package/src/client/types/com/atproto/repo/applyWrites.ts +1 -1
- package/src/client/types/com/atproto/repo/createRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/deleteRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/putRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/rebaseRepo.ts +2 -2
- package/src/client/types/com/atproto/server/createAccount.ts +7 -7
- package/src/client/types/com/atproto/server/createAppPassword.ts +1 -1
- package/src/client/types/com/atproto/server/createSession.ts +1 -1
- package/src/client/types/com/atproto/server/deleteAccount.ts +2 -2
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +1 -1
- package/src/client/types/com/atproto/server/listAppPasswords.ts +1 -1
- package/src/client/types/com/atproto/server/refreshSession.ts +1 -1
- package/src/client/types/com/atproto/server/resetPassword.ts +2 -2
- package/src/client/types/com/atproto/sync/getHead.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -4209,6 +4209,24 @@ export declare const schemaDict: {
|
|
|
4209
4209
|
type: string;
|
|
4210
4210
|
const: boolean;
|
|
4211
4211
|
};
|
|
4212
|
+
author: {
|
|
4213
|
+
type: string;
|
|
4214
|
+
ref: string;
|
|
4215
|
+
};
|
|
4216
|
+
};
|
|
4217
|
+
};
|
|
4218
|
+
blockedAuthor: {
|
|
4219
|
+
type: string;
|
|
4220
|
+
required: string[];
|
|
4221
|
+
properties: {
|
|
4222
|
+
did: {
|
|
4223
|
+
type: string;
|
|
4224
|
+
format: string;
|
|
4225
|
+
};
|
|
4226
|
+
viewer: {
|
|
4227
|
+
type: string;
|
|
4228
|
+
ref: string;
|
|
4229
|
+
};
|
|
4212
4230
|
};
|
|
4213
4231
|
};
|
|
4214
4232
|
generatorView: {
|
|
@@ -87,10 +87,18 @@ export declare function validateNotFoundPost(v: unknown): ValidationResult;
|
|
|
87
87
|
export interface BlockedPost {
|
|
88
88
|
uri: string;
|
|
89
89
|
blocked: true;
|
|
90
|
+
author: BlockedAuthor;
|
|
90
91
|
[k: string]: unknown;
|
|
91
92
|
}
|
|
92
93
|
export declare function isBlockedPost(v: unknown): v is BlockedPost;
|
|
93
94
|
export declare function validateBlockedPost(v: unknown): ValidationResult;
|
|
95
|
+
export interface BlockedAuthor {
|
|
96
|
+
did: string;
|
|
97
|
+
viewer?: AppBskyActorDefs.ViewerState;
|
|
98
|
+
[k: string]: unknown;
|
|
99
|
+
}
|
|
100
|
+
export declare function isBlockedAuthor(v: unknown): v is BlockedAuthor;
|
|
101
|
+
export declare function validateBlockedAuthor(v: unknown): ValidationResult;
|
|
94
102
|
export interface GeneratorView {
|
|
95
103
|
uri: string;
|
|
96
104
|
cid: string;
|
package/dist/index.js
CHANGED
|
@@ -15445,7 +15445,7 @@ var XRPCResponse = class {
|
|
|
15445
15445
|
}
|
|
15446
15446
|
};
|
|
15447
15447
|
var XRPCError = class extends Error {
|
|
15448
|
-
constructor(status, error, message) {
|
|
15448
|
+
constructor(status, error, message, headers) {
|
|
15449
15449
|
super(message || error || ResponseTypeStrings[status]);
|
|
15450
15450
|
this.status = status;
|
|
15451
15451
|
this.error = error;
|
|
@@ -15453,6 +15453,7 @@ var XRPCError = class extends Error {
|
|
|
15453
15453
|
if (!this.error) {
|
|
15454
15454
|
this.error = ResponseTypeNames[status];
|
|
15455
15455
|
}
|
|
15456
|
+
this.headers = headers;
|
|
15456
15457
|
}
|
|
15457
15458
|
};
|
|
15458
15459
|
var XRPCInvalidResponseError = class extends XRPCError {
|
|
@@ -15674,7 +15675,12 @@ var ServiceClient = class {
|
|
|
15674
15675
|
return new XRPCResponse(res.body, res.headers);
|
|
15675
15676
|
} else {
|
|
15676
15677
|
if (res.body && isErrorResponseBody(res.body)) {
|
|
15677
|
-
throw new XRPCError(
|
|
15678
|
+
throw new XRPCError(
|
|
15679
|
+
resCode,
|
|
15680
|
+
res.body.error,
|
|
15681
|
+
res.body.message,
|
|
15682
|
+
res.headers
|
|
15683
|
+
);
|
|
15678
15684
|
} else {
|
|
15679
15685
|
throw new XRPCError(resCode);
|
|
15680
15686
|
}
|
|
@@ -20174,7 +20180,7 @@ var schemaDict = {
|
|
|
20174
20180
|
},
|
|
20175
20181
|
blockedPost: {
|
|
20176
20182
|
type: "object",
|
|
20177
|
-
required: ["uri", "blocked"],
|
|
20183
|
+
required: ["uri", "blocked", "author"],
|
|
20178
20184
|
properties: {
|
|
20179
20185
|
uri: {
|
|
20180
20186
|
type: "string",
|
|
@@ -20183,6 +20189,24 @@ var schemaDict = {
|
|
|
20183
20189
|
blocked: {
|
|
20184
20190
|
type: "boolean",
|
|
20185
20191
|
const: true
|
|
20192
|
+
},
|
|
20193
|
+
author: {
|
|
20194
|
+
type: "ref",
|
|
20195
|
+
ref: "lex:app.bsky.feed.defs#blockedAuthor"
|
|
20196
|
+
}
|
|
20197
|
+
}
|
|
20198
|
+
},
|
|
20199
|
+
blockedAuthor: {
|
|
20200
|
+
type: "object",
|
|
20201
|
+
required: ["did"],
|
|
20202
|
+
properties: {
|
|
20203
|
+
did: {
|
|
20204
|
+
type: "string",
|
|
20205
|
+
format: "did"
|
|
20206
|
+
},
|
|
20207
|
+
viewer: {
|
|
20208
|
+
type: "ref",
|
|
20209
|
+
ref: "lex:app.bsky.actor.defs#viewerState"
|
|
20186
20210
|
}
|
|
20187
20211
|
}
|
|
20188
20212
|
},
|
|
@@ -22270,7 +22294,7 @@ __export(getRecord_exports, {
|
|
|
22270
22294
|
});
|
|
22271
22295
|
var RecordNotFoundError = class extends XRPCError {
|
|
22272
22296
|
constructor(src2) {
|
|
22273
|
-
super(src2.status, src2.error, src2.message);
|
|
22297
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22274
22298
|
}
|
|
22275
22299
|
};
|
|
22276
22300
|
function toKnownErr9(e) {
|
|
@@ -22289,7 +22313,7 @@ __export(getRepo_exports, {
|
|
|
22289
22313
|
});
|
|
22290
22314
|
var RepoNotFoundError = class extends XRPCError {
|
|
22291
22315
|
constructor(src2) {
|
|
22292
|
-
super(src2.status, src2.error, src2.message);
|
|
22316
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22293
22317
|
}
|
|
22294
22318
|
};
|
|
22295
22319
|
function toKnownErr10(e) {
|
|
@@ -22309,12 +22333,12 @@ __export(rebaseRepo_exports, {
|
|
|
22309
22333
|
});
|
|
22310
22334
|
var InvalidSwapError = class extends XRPCError {
|
|
22311
22335
|
constructor(src2) {
|
|
22312
|
-
super(src2.status, src2.error, src2.message);
|
|
22336
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22313
22337
|
}
|
|
22314
22338
|
};
|
|
22315
22339
|
var ConcurrentWritesError = class extends XRPCError {
|
|
22316
22340
|
constructor(src2) {
|
|
22317
|
-
super(src2.status, src2.error, src2.message);
|
|
22341
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22318
22342
|
}
|
|
22319
22343
|
};
|
|
22320
22344
|
function toKnownErr11(e) {
|
|
@@ -22379,7 +22403,7 @@ __export(takeModerationAction_exports, {
|
|
|
22379
22403
|
});
|
|
22380
22404
|
var SubjectHasActionError = class extends XRPCError {
|
|
22381
22405
|
constructor(src2) {
|
|
22382
|
-
super(src2.status, src2.error, src2.message);
|
|
22406
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22383
22407
|
}
|
|
22384
22408
|
};
|
|
22385
22409
|
function toKnownErr16(e) {
|
|
@@ -22480,7 +22504,7 @@ function hasProp2(data, prop) {
|
|
|
22480
22504
|
// src/client/types/com/atproto/repo/applyWrites.ts
|
|
22481
22505
|
var InvalidSwapError2 = class extends XRPCError {
|
|
22482
22506
|
constructor(src2) {
|
|
22483
|
-
super(src2.status, src2.error, src2.message);
|
|
22507
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22484
22508
|
}
|
|
22485
22509
|
};
|
|
22486
22510
|
function toKnownErr23(e) {
|
|
@@ -22517,7 +22541,7 @@ __export(createRecord_exports, {
|
|
|
22517
22541
|
});
|
|
22518
22542
|
var InvalidSwapError3 = class extends XRPCError {
|
|
22519
22543
|
constructor(src2) {
|
|
22520
|
-
super(src2.status, src2.error, src2.message);
|
|
22544
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22521
22545
|
}
|
|
22522
22546
|
};
|
|
22523
22547
|
function toKnownErr24(e) {
|
|
@@ -22536,7 +22560,7 @@ __export(deleteRecord_exports, {
|
|
|
22536
22560
|
});
|
|
22537
22561
|
var InvalidSwapError4 = class extends XRPCError {
|
|
22538
22562
|
constructor(src2) {
|
|
22539
|
-
super(src2.status, src2.error, src2.message);
|
|
22563
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22540
22564
|
}
|
|
22541
22565
|
};
|
|
22542
22566
|
function toKnownErr25(e) {
|
|
@@ -22596,7 +22620,7 @@ __export(putRecord_exports, {
|
|
|
22596
22620
|
});
|
|
22597
22621
|
var InvalidSwapError5 = class extends XRPCError {
|
|
22598
22622
|
constructor(src2) {
|
|
22599
|
-
super(src2.status, src2.error, src2.message);
|
|
22623
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22600
22624
|
}
|
|
22601
22625
|
};
|
|
22602
22626
|
function toKnownErr29(e) {
|
|
@@ -22616,12 +22640,12 @@ __export(rebaseRepo_exports2, {
|
|
|
22616
22640
|
});
|
|
22617
22641
|
var InvalidSwapError6 = class extends XRPCError {
|
|
22618
22642
|
constructor(src2) {
|
|
22619
|
-
super(src2.status, src2.error, src2.message);
|
|
22643
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22620
22644
|
}
|
|
22621
22645
|
};
|
|
22622
22646
|
var ConcurrentWritesError2 = class extends XRPCError {
|
|
22623
22647
|
constructor(src2) {
|
|
22624
|
-
super(src2.status, src2.error, src2.message);
|
|
22648
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22625
22649
|
}
|
|
22626
22650
|
};
|
|
22627
22651
|
function toKnownErr30(e) {
|
|
@@ -22659,37 +22683,37 @@ __export(createAccount_exports, {
|
|
|
22659
22683
|
});
|
|
22660
22684
|
var InvalidHandleError2 = class extends XRPCError {
|
|
22661
22685
|
constructor(src2) {
|
|
22662
|
-
super(src2.status, src2.error, src2.message);
|
|
22686
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22663
22687
|
}
|
|
22664
22688
|
};
|
|
22665
22689
|
var InvalidPasswordError = class extends XRPCError {
|
|
22666
22690
|
constructor(src2) {
|
|
22667
|
-
super(src2.status, src2.error, src2.message);
|
|
22691
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22668
22692
|
}
|
|
22669
22693
|
};
|
|
22670
22694
|
var InvalidInviteCodeError = class extends XRPCError {
|
|
22671
22695
|
constructor(src2) {
|
|
22672
|
-
super(src2.status, src2.error, src2.message);
|
|
22696
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22673
22697
|
}
|
|
22674
22698
|
};
|
|
22675
22699
|
var HandleNotAvailableError = class extends XRPCError {
|
|
22676
22700
|
constructor(src2) {
|
|
22677
|
-
super(src2.status, src2.error, src2.message);
|
|
22701
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22678
22702
|
}
|
|
22679
22703
|
};
|
|
22680
22704
|
var UnsupportedDomainError = class extends XRPCError {
|
|
22681
22705
|
constructor(src2) {
|
|
22682
|
-
super(src2.status, src2.error, src2.message);
|
|
22706
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22683
22707
|
}
|
|
22684
22708
|
};
|
|
22685
22709
|
var UnresolvableDidError = class extends XRPCError {
|
|
22686
22710
|
constructor(src2) {
|
|
22687
|
-
super(src2.status, src2.error, src2.message);
|
|
22711
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22688
22712
|
}
|
|
22689
22713
|
};
|
|
22690
22714
|
var IncompatibleDidDocError = class extends XRPCError {
|
|
22691
22715
|
constructor(src2) {
|
|
22692
|
-
super(src2.status, src2.error, src2.message);
|
|
22716
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22693
22717
|
}
|
|
22694
22718
|
};
|
|
22695
22719
|
function toKnownErr32(e) {
|
|
@@ -22722,7 +22746,7 @@ __export(createAppPassword_exports, {
|
|
|
22722
22746
|
});
|
|
22723
22747
|
var AccountTakedownError = class extends XRPCError {
|
|
22724
22748
|
constructor(src2) {
|
|
22725
|
-
super(src2.status, src2.error, src2.message);
|
|
22749
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22726
22750
|
}
|
|
22727
22751
|
};
|
|
22728
22752
|
function toKnownErr33(e) {
|
|
@@ -22783,7 +22807,7 @@ __export(createSession_exports, {
|
|
|
22783
22807
|
});
|
|
22784
22808
|
var AccountTakedownError2 = class extends XRPCError {
|
|
22785
22809
|
constructor(src2) {
|
|
22786
|
-
super(src2.status, src2.error, src2.message);
|
|
22810
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22787
22811
|
}
|
|
22788
22812
|
};
|
|
22789
22813
|
function toKnownErr36(e) {
|
|
@@ -22803,12 +22827,12 @@ __export(deleteAccount_exports, {
|
|
|
22803
22827
|
});
|
|
22804
22828
|
var ExpiredTokenError = class extends XRPCError {
|
|
22805
22829
|
constructor(src2) {
|
|
22806
|
-
super(src2.status, src2.error, src2.message);
|
|
22830
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22807
22831
|
}
|
|
22808
22832
|
};
|
|
22809
22833
|
var InvalidTokenError = class extends XRPCError {
|
|
22810
22834
|
constructor(src2) {
|
|
22811
|
-
super(src2.status, src2.error, src2.message);
|
|
22835
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22812
22836
|
}
|
|
22813
22837
|
};
|
|
22814
22838
|
function toKnownErr37(e) {
|
|
@@ -22859,7 +22883,7 @@ __export(getAccountInviteCodes_exports, {
|
|
|
22859
22883
|
});
|
|
22860
22884
|
var DuplicateCreateError = class extends XRPCError {
|
|
22861
22885
|
constructor(src2) {
|
|
22862
|
-
super(src2.status, src2.error, src2.message);
|
|
22886
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22863
22887
|
}
|
|
22864
22888
|
};
|
|
22865
22889
|
function toKnownErr40(e) {
|
|
@@ -22891,7 +22915,7 @@ __export(listAppPasswords_exports, {
|
|
|
22891
22915
|
});
|
|
22892
22916
|
var AccountTakedownError3 = class extends XRPCError {
|
|
22893
22917
|
constructor(src2) {
|
|
22894
|
-
super(src2.status, src2.error, src2.message);
|
|
22918
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22895
22919
|
}
|
|
22896
22920
|
};
|
|
22897
22921
|
function toKnownErr42(e) {
|
|
@@ -22916,7 +22940,7 @@ __export(refreshSession_exports, {
|
|
|
22916
22940
|
});
|
|
22917
22941
|
var AccountTakedownError4 = class extends XRPCError {
|
|
22918
22942
|
constructor(src2) {
|
|
22919
|
-
super(src2.status, src2.error, src2.message);
|
|
22943
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22920
22944
|
}
|
|
22921
22945
|
};
|
|
22922
22946
|
function toKnownErr43(e) {
|
|
@@ -22958,12 +22982,12 @@ __export(resetPassword_exports, {
|
|
|
22958
22982
|
});
|
|
22959
22983
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
22960
22984
|
constructor(src2) {
|
|
22961
|
-
super(src2.status, src2.error, src2.message);
|
|
22985
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22962
22986
|
}
|
|
22963
22987
|
};
|
|
22964
22988
|
var InvalidTokenError2 = class extends XRPCError {
|
|
22965
22989
|
constructor(src2) {
|
|
22966
|
-
super(src2.status, src2.error, src2.message);
|
|
22990
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
22967
22991
|
}
|
|
22968
22992
|
};
|
|
22969
22993
|
function toKnownErr46(e) {
|
|
@@ -23039,7 +23063,7 @@ __export(getHead_exports, {
|
|
|
23039
23063
|
});
|
|
23040
23064
|
var HeadNotFoundError = class extends XRPCError {
|
|
23041
23065
|
constructor(src2) {
|
|
23042
|
-
super(src2.status, src2.error, src2.message);
|
|
23066
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23043
23067
|
}
|
|
23044
23068
|
};
|
|
23045
23069
|
function toKnownErr52(e) {
|
|
@@ -23248,12 +23272,12 @@ __export(getAuthorFeed_exports, {
|
|
|
23248
23272
|
});
|
|
23249
23273
|
var BlockedActorError = class extends XRPCError {
|
|
23250
23274
|
constructor(src2) {
|
|
23251
|
-
super(src2.status, src2.error, src2.message);
|
|
23275
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23252
23276
|
}
|
|
23253
23277
|
};
|
|
23254
23278
|
var BlockedByActorError = class extends XRPCError {
|
|
23255
23279
|
constructor(src2) {
|
|
23256
|
-
super(src2.status, src2.error, src2.message);
|
|
23280
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23257
23281
|
}
|
|
23258
23282
|
};
|
|
23259
23283
|
function toKnownErr68(e) {
|
|
@@ -23274,7 +23298,7 @@ __export(getFeed_exports, {
|
|
|
23274
23298
|
});
|
|
23275
23299
|
var UnknownFeedError = class extends XRPCError {
|
|
23276
23300
|
constructor(src2) {
|
|
23277
|
-
super(src2.status, src2.error, src2.message);
|
|
23301
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23278
23302
|
}
|
|
23279
23303
|
};
|
|
23280
23304
|
function toKnownErr69(e) {
|
|
@@ -23315,7 +23339,7 @@ __export(getFeedSkeleton_exports, {
|
|
|
23315
23339
|
});
|
|
23316
23340
|
var UnknownFeedError2 = class extends XRPCError {
|
|
23317
23341
|
constructor(src2) {
|
|
23318
|
-
super(src2.status, src2.error, src2.message);
|
|
23342
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23319
23343
|
}
|
|
23320
23344
|
};
|
|
23321
23345
|
function toKnownErr72(e) {
|
|
@@ -23353,7 +23377,7 @@ __export(getPostThread_exports, {
|
|
|
23353
23377
|
});
|
|
23354
23378
|
var NotFoundError = class extends XRPCError {
|
|
23355
23379
|
constructor(src2) {
|
|
23356
|
-
super(src2.status, src2.error, src2.message);
|
|
23380
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23357
23381
|
}
|
|
23358
23382
|
};
|
|
23359
23383
|
function toKnownErr74(e) {
|
|
@@ -23603,7 +23627,7 @@ __export(getTimelineSkeleton_exports, {
|
|
|
23603
23627
|
});
|
|
23604
23628
|
var UnknownFeedError3 = class extends XRPCError {
|
|
23605
23629
|
constructor(src2) {
|
|
23606
|
-
super(src2.status, src2.error, src2.message);
|
|
23630
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23607
23631
|
}
|
|
23608
23632
|
};
|
|
23609
23633
|
function toKnownErr95(e) {
|
|
@@ -24142,6 +24166,7 @@ function validateView4(v) {
|
|
|
24142
24166
|
// src/client/types/app/bsky/feed/defs.ts
|
|
24143
24167
|
var defs_exports6 = {};
|
|
24144
24168
|
__export(defs_exports6, {
|
|
24169
|
+
isBlockedAuthor: () => isBlockedAuthor,
|
|
24145
24170
|
isBlockedPost: () => isBlockedPost,
|
|
24146
24171
|
isFeedViewPost: () => isFeedViewPost,
|
|
24147
24172
|
isGeneratorView: () => isGeneratorView,
|
|
@@ -24154,6 +24179,7 @@ __export(defs_exports6, {
|
|
|
24154
24179
|
isSkeletonReasonRepost: () => isSkeletonReasonRepost,
|
|
24155
24180
|
isThreadViewPost: () => isThreadViewPost,
|
|
24156
24181
|
isViewerState: () => isViewerState2,
|
|
24182
|
+
validateBlockedAuthor: () => validateBlockedAuthor,
|
|
24157
24183
|
validateBlockedPost: () => validateBlockedPost,
|
|
24158
24184
|
validateFeedViewPost: () => validateFeedViewPost,
|
|
24159
24185
|
validateGeneratorView: () => validateGeneratorView,
|
|
@@ -24215,6 +24241,12 @@ function isBlockedPost(v) {
|
|
|
24215
24241
|
function validateBlockedPost(v) {
|
|
24216
24242
|
return lexicons.validate("app.bsky.feed.defs#blockedPost", v);
|
|
24217
24243
|
}
|
|
24244
|
+
function isBlockedAuthor(v) {
|
|
24245
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#blockedAuthor";
|
|
24246
|
+
}
|
|
24247
|
+
function validateBlockedAuthor(v) {
|
|
24248
|
+
return lexicons.validate("app.bsky.feed.defs#blockedAuthor", v);
|
|
24249
|
+
}
|
|
24218
24250
|
function isGeneratorView(v) {
|
|
24219
24251
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#generatorView";
|
|
24220
24252
|
}
|