@atproto/api 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +101 -1
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +19 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +25 -0
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +2 -1
- package/dist/index.js +202 -61
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +112 -2
- package/src/client/types/app/bsky/actor/getProfiles.ts +35 -0
- package/src/client/types/app/bsky/actor/profile.ts +45 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +4 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(src_exports, {
|
|
|
84
84
|
ActorNS: () => ActorNS,
|
|
85
85
|
AdminNS: () => AdminNS,
|
|
86
86
|
AppBskyActorGetProfile: () => getProfile_exports,
|
|
87
|
+
AppBskyActorGetProfiles: () => getProfiles_exports,
|
|
87
88
|
AppBskyActorGetSuggestions: () => getSuggestions_exports,
|
|
88
89
|
AppBskyActorProfile: () => profile_exports,
|
|
89
90
|
AppBskyActorRef: () => ref_exports,
|
|
@@ -6458,9 +6459,13 @@ var schemaDict = {
|
|
|
6458
6459
|
type: "string",
|
|
6459
6460
|
description: "The DID of the repo."
|
|
6460
6461
|
},
|
|
6461
|
-
|
|
6462
|
+
earliest: {
|
|
6463
|
+
type: "string",
|
|
6464
|
+
description: "The earliest commit in the commit range (not inclusive)"
|
|
6465
|
+
},
|
|
6466
|
+
latest: {
|
|
6462
6467
|
type: "string",
|
|
6463
|
-
description: "
|
|
6468
|
+
description: "The latest commit you in the commit range (inclusive"
|
|
6464
6469
|
}
|
|
6465
6470
|
}
|
|
6466
6471
|
},
|
|
@@ -6556,6 +6561,44 @@ var schemaDict = {
|
|
|
6556
6561
|
}
|
|
6557
6562
|
}
|
|
6558
6563
|
},
|
|
6564
|
+
AppBskyActorGetProfiles: {
|
|
6565
|
+
lexicon: 1,
|
|
6566
|
+
id: "app.bsky.actor.getProfiles",
|
|
6567
|
+
defs: {
|
|
6568
|
+
main: {
|
|
6569
|
+
type: "query",
|
|
6570
|
+
parameters: {
|
|
6571
|
+
type: "params",
|
|
6572
|
+
required: ["actors"],
|
|
6573
|
+
properties: {
|
|
6574
|
+
actors: {
|
|
6575
|
+
type: "array",
|
|
6576
|
+
items: {
|
|
6577
|
+
type: "string"
|
|
6578
|
+
},
|
|
6579
|
+
maxLength: 25
|
|
6580
|
+
}
|
|
6581
|
+
}
|
|
6582
|
+
},
|
|
6583
|
+
output: {
|
|
6584
|
+
encoding: "application/json",
|
|
6585
|
+
schema: {
|
|
6586
|
+
type: "object",
|
|
6587
|
+
required: ["profiles"],
|
|
6588
|
+
properties: {
|
|
6589
|
+
profiles: {
|
|
6590
|
+
type: "array",
|
|
6591
|
+
items: {
|
|
6592
|
+
type: "ref",
|
|
6593
|
+
ref: "lex:app.bsky.actor.profile#view"
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
}
|
|
6597
|
+
}
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
}
|
|
6601
|
+
},
|
|
6559
6602
|
AppBskyActorGetSuggestions: {
|
|
6560
6603
|
lexicon: 1,
|
|
6561
6604
|
id: "app.bsky.actor.getSuggestions",
|
|
@@ -6663,6 +6706,71 @@ var schemaDict = {
|
|
|
6663
6706
|
}
|
|
6664
6707
|
}
|
|
6665
6708
|
}
|
|
6709
|
+
},
|
|
6710
|
+
view: {
|
|
6711
|
+
type: "object",
|
|
6712
|
+
required: [
|
|
6713
|
+
"did",
|
|
6714
|
+
"declaration",
|
|
6715
|
+
"handle",
|
|
6716
|
+
"creator",
|
|
6717
|
+
"followersCount",
|
|
6718
|
+
"followsCount",
|
|
6719
|
+
"postsCount"
|
|
6720
|
+
],
|
|
6721
|
+
properties: {
|
|
6722
|
+
did: {
|
|
6723
|
+
type: "string"
|
|
6724
|
+
},
|
|
6725
|
+
declaration: {
|
|
6726
|
+
type: "ref",
|
|
6727
|
+
ref: "lex:app.bsky.system.declRef"
|
|
6728
|
+
},
|
|
6729
|
+
handle: {
|
|
6730
|
+
type: "string"
|
|
6731
|
+
},
|
|
6732
|
+
creator: {
|
|
6733
|
+
type: "string"
|
|
6734
|
+
},
|
|
6735
|
+
displayName: {
|
|
6736
|
+
type: "string",
|
|
6737
|
+
maxLength: 64
|
|
6738
|
+
},
|
|
6739
|
+
description: {
|
|
6740
|
+
type: "string",
|
|
6741
|
+
maxLength: 256
|
|
6742
|
+
},
|
|
6743
|
+
avatar: {
|
|
6744
|
+
type: "string"
|
|
6745
|
+
},
|
|
6746
|
+
banner: {
|
|
6747
|
+
type: "string"
|
|
6748
|
+
},
|
|
6749
|
+
followersCount: {
|
|
6750
|
+
type: "integer"
|
|
6751
|
+
},
|
|
6752
|
+
followsCount: {
|
|
6753
|
+
type: "integer"
|
|
6754
|
+
},
|
|
6755
|
+
postsCount: {
|
|
6756
|
+
type: "integer"
|
|
6757
|
+
},
|
|
6758
|
+
myState: {
|
|
6759
|
+
type: "ref",
|
|
6760
|
+
ref: "lex:app.bsky.actor.profile#myState"
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
},
|
|
6764
|
+
myState: {
|
|
6765
|
+
type: "object",
|
|
6766
|
+
properties: {
|
|
6767
|
+
follow: {
|
|
6768
|
+
type: "string"
|
|
6769
|
+
},
|
|
6770
|
+
muted: {
|
|
6771
|
+
type: "boolean"
|
|
6772
|
+
}
|
|
6773
|
+
}
|
|
6666
6774
|
}
|
|
6667
6775
|
}
|
|
6668
6776
|
},
|
|
@@ -8819,14 +8927,25 @@ function validateMyState(v) {
|
|
|
8819
8927
|
return lexicons.validate("app.bsky.actor.getProfile#myState", v);
|
|
8820
8928
|
}
|
|
8821
8929
|
|
|
8930
|
+
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
8931
|
+
var getProfiles_exports = {};
|
|
8932
|
+
__export(getProfiles_exports, {
|
|
8933
|
+
toKnownErr: () => toKnownErr39
|
|
8934
|
+
});
|
|
8935
|
+
function toKnownErr39(e) {
|
|
8936
|
+
if (e instanceof XRPCError) {
|
|
8937
|
+
}
|
|
8938
|
+
return e;
|
|
8939
|
+
}
|
|
8940
|
+
|
|
8822
8941
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
8823
8942
|
var getSuggestions_exports = {};
|
|
8824
8943
|
__export(getSuggestions_exports, {
|
|
8825
8944
|
isActor: () => isActor,
|
|
8826
|
-
toKnownErr: () =>
|
|
8945
|
+
toKnownErr: () => toKnownErr40,
|
|
8827
8946
|
validateActor: () => validateActor
|
|
8828
8947
|
});
|
|
8829
|
-
function
|
|
8948
|
+
function toKnownErr40(e) {
|
|
8830
8949
|
if (e instanceof XRPCError) {
|
|
8831
8950
|
}
|
|
8832
8951
|
return e;
|
|
@@ -8842,10 +8961,10 @@ function validateActor(v) {
|
|
|
8842
8961
|
var search_exports = {};
|
|
8843
8962
|
__export(search_exports, {
|
|
8844
8963
|
isUser: () => isUser,
|
|
8845
|
-
toKnownErr: () =>
|
|
8964
|
+
toKnownErr: () => toKnownErr41,
|
|
8846
8965
|
validateUser: () => validateUser
|
|
8847
8966
|
});
|
|
8848
|
-
function
|
|
8967
|
+
function toKnownErr41(e) {
|
|
8849
8968
|
if (e instanceof XRPCError) {
|
|
8850
8969
|
}
|
|
8851
8970
|
return e;
|
|
@@ -8861,10 +8980,10 @@ function validateUser(v) {
|
|
|
8861
8980
|
var searchTypeahead_exports = {};
|
|
8862
8981
|
__export(searchTypeahead_exports, {
|
|
8863
8982
|
isUser: () => isUser2,
|
|
8864
|
-
toKnownErr: () =>
|
|
8983
|
+
toKnownErr: () => toKnownErr42,
|
|
8865
8984
|
validateUser: () => validateUser2
|
|
8866
8985
|
});
|
|
8867
|
-
function
|
|
8986
|
+
function toKnownErr42(e) {
|
|
8868
8987
|
if (e instanceof XRPCError) {
|
|
8869
8988
|
}
|
|
8870
8989
|
return e;
|
|
@@ -8883,7 +9002,7 @@ __export(updateProfile_exports, {
|
|
|
8883
9002
|
InvalidBlobError: () => InvalidBlobError,
|
|
8884
9003
|
InvalidImageDimensionsError: () => InvalidImageDimensionsError,
|
|
8885
9004
|
InvalidMimeTypeError: () => InvalidMimeTypeError,
|
|
8886
|
-
toKnownErr: () =>
|
|
9005
|
+
toKnownErr: () => toKnownErr43
|
|
8887
9006
|
});
|
|
8888
9007
|
var InvalidBlobError = class extends XRPCError {
|
|
8889
9008
|
constructor(src) {
|
|
@@ -8905,7 +9024,7 @@ var InvalidImageDimensionsError = class extends XRPCError {
|
|
|
8905
9024
|
super(src.status, src.error, src.message);
|
|
8906
9025
|
}
|
|
8907
9026
|
};
|
|
8908
|
-
function
|
|
9027
|
+
function toKnownErr43(e) {
|
|
8909
9028
|
if (e instanceof XRPCError) {
|
|
8910
9029
|
if (e.error === "InvalidBlob")
|
|
8911
9030
|
return new InvalidBlobError(e);
|
|
@@ -8922,9 +9041,9 @@ function toKnownErr42(e) {
|
|
|
8922
9041
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
8923
9042
|
var getAuthorFeed_exports = {};
|
|
8924
9043
|
__export(getAuthorFeed_exports, {
|
|
8925
|
-
toKnownErr: () =>
|
|
9044
|
+
toKnownErr: () => toKnownErr44
|
|
8926
9045
|
});
|
|
8927
|
-
function
|
|
9046
|
+
function toKnownErr44(e) {
|
|
8928
9047
|
if (e instanceof XRPCError) {
|
|
8929
9048
|
}
|
|
8930
9049
|
return e;
|
|
@@ -8936,7 +9055,7 @@ __export(getPostThread_exports, {
|
|
|
8936
9055
|
NotFoundError: () => NotFoundError,
|
|
8937
9056
|
isNotFoundPost: () => isNotFoundPost,
|
|
8938
9057
|
isThreadViewPost: () => isThreadViewPost,
|
|
8939
|
-
toKnownErr: () =>
|
|
9058
|
+
toKnownErr: () => toKnownErr45,
|
|
8940
9059
|
validateNotFoundPost: () => validateNotFoundPost,
|
|
8941
9060
|
validateThreadViewPost: () => validateThreadViewPost
|
|
8942
9061
|
});
|
|
@@ -8945,7 +9064,7 @@ var NotFoundError = class extends XRPCError {
|
|
|
8945
9064
|
super(src.status, src.error, src.message);
|
|
8946
9065
|
}
|
|
8947
9066
|
};
|
|
8948
|
-
function
|
|
9067
|
+
function toKnownErr45(e) {
|
|
8949
9068
|
if (e instanceof XRPCError) {
|
|
8950
9069
|
if (e.error === "NotFound")
|
|
8951
9070
|
return new NotFoundError(e);
|
|
@@ -8969,10 +9088,10 @@ function validateNotFoundPost(v) {
|
|
|
8969
9088
|
var getRepostedBy_exports = {};
|
|
8970
9089
|
__export(getRepostedBy_exports, {
|
|
8971
9090
|
isRepostedBy: () => isRepostedBy,
|
|
8972
|
-
toKnownErr: () =>
|
|
9091
|
+
toKnownErr: () => toKnownErr46,
|
|
8973
9092
|
validateRepostedBy: () => validateRepostedBy
|
|
8974
9093
|
});
|
|
8975
|
-
function
|
|
9094
|
+
function toKnownErr46(e) {
|
|
8976
9095
|
if (e instanceof XRPCError) {
|
|
8977
9096
|
}
|
|
8978
9097
|
return e;
|
|
@@ -8987,9 +9106,9 @@ function validateRepostedBy(v) {
|
|
|
8987
9106
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
8988
9107
|
var getTimeline_exports = {};
|
|
8989
9108
|
__export(getTimeline_exports, {
|
|
8990
|
-
toKnownErr: () =>
|
|
9109
|
+
toKnownErr: () => toKnownErr47
|
|
8991
9110
|
});
|
|
8992
|
-
function
|
|
9111
|
+
function toKnownErr47(e) {
|
|
8993
9112
|
if (e instanceof XRPCError) {
|
|
8994
9113
|
}
|
|
8995
9114
|
return e;
|
|
@@ -8999,10 +9118,10 @@ function toKnownErr46(e) {
|
|
|
8999
9118
|
var getVotes_exports = {};
|
|
9000
9119
|
__export(getVotes_exports, {
|
|
9001
9120
|
isVote: () => isVote,
|
|
9002
|
-
toKnownErr: () =>
|
|
9121
|
+
toKnownErr: () => toKnownErr48,
|
|
9003
9122
|
validateVote: () => validateVote
|
|
9004
9123
|
});
|
|
9005
|
-
function
|
|
9124
|
+
function toKnownErr48(e) {
|
|
9006
9125
|
if (e instanceof XRPCError) {
|
|
9007
9126
|
}
|
|
9008
9127
|
return e;
|
|
@@ -9017,9 +9136,9 @@ function validateVote(v) {
|
|
|
9017
9136
|
// src/client/types/app/bsky/feed/setVote.ts
|
|
9018
9137
|
var setVote_exports = {};
|
|
9019
9138
|
__export(setVote_exports, {
|
|
9020
|
-
toKnownErr: () =>
|
|
9139
|
+
toKnownErr: () => toKnownErr49
|
|
9021
9140
|
});
|
|
9022
|
-
function
|
|
9141
|
+
function toKnownErr49(e) {
|
|
9023
9142
|
if (e instanceof XRPCError) {
|
|
9024
9143
|
}
|
|
9025
9144
|
return e;
|
|
@@ -9029,10 +9148,10 @@ function toKnownErr48(e) {
|
|
|
9029
9148
|
var getFollowers_exports = {};
|
|
9030
9149
|
__export(getFollowers_exports, {
|
|
9031
9150
|
isFollower: () => isFollower,
|
|
9032
|
-
toKnownErr: () =>
|
|
9151
|
+
toKnownErr: () => toKnownErr50,
|
|
9033
9152
|
validateFollower: () => validateFollower
|
|
9034
9153
|
});
|
|
9035
|
-
function
|
|
9154
|
+
function toKnownErr50(e) {
|
|
9036
9155
|
if (e instanceof XRPCError) {
|
|
9037
9156
|
}
|
|
9038
9157
|
return e;
|
|
@@ -9048,10 +9167,10 @@ function validateFollower(v) {
|
|
|
9048
9167
|
var getFollows_exports = {};
|
|
9049
9168
|
__export(getFollows_exports, {
|
|
9050
9169
|
isFollow: () => isFollow,
|
|
9051
|
-
toKnownErr: () =>
|
|
9170
|
+
toKnownErr: () => toKnownErr51,
|
|
9052
9171
|
validateFollow: () => validateFollow
|
|
9053
9172
|
});
|
|
9054
|
-
function
|
|
9173
|
+
function toKnownErr51(e) {
|
|
9055
9174
|
if (e instanceof XRPCError) {
|
|
9056
9175
|
}
|
|
9057
9176
|
return e;
|
|
@@ -9067,10 +9186,10 @@ function validateFollow(v) {
|
|
|
9067
9186
|
var getMutes_exports = {};
|
|
9068
9187
|
__export(getMutes_exports, {
|
|
9069
9188
|
isMute: () => isMute,
|
|
9070
|
-
toKnownErr: () =>
|
|
9189
|
+
toKnownErr: () => toKnownErr52,
|
|
9071
9190
|
validateMute: () => validateMute
|
|
9072
9191
|
});
|
|
9073
|
-
function
|
|
9192
|
+
function toKnownErr52(e) {
|
|
9074
9193
|
if (e instanceof XRPCError) {
|
|
9075
9194
|
}
|
|
9076
9195
|
return e;
|
|
@@ -9085,9 +9204,9 @@ function validateMute(v) {
|
|
|
9085
9204
|
// src/client/types/app/bsky/graph/mute.ts
|
|
9086
9205
|
var mute_exports = {};
|
|
9087
9206
|
__export(mute_exports, {
|
|
9088
|
-
toKnownErr: () =>
|
|
9207
|
+
toKnownErr: () => toKnownErr53
|
|
9089
9208
|
});
|
|
9090
|
-
function
|
|
9209
|
+
function toKnownErr53(e) {
|
|
9091
9210
|
if (e instanceof XRPCError) {
|
|
9092
9211
|
}
|
|
9093
9212
|
return e;
|
|
@@ -9096,9 +9215,9 @@ function toKnownErr52(e) {
|
|
|
9096
9215
|
// src/client/types/app/bsky/graph/unmute.ts
|
|
9097
9216
|
var unmute_exports = {};
|
|
9098
9217
|
__export(unmute_exports, {
|
|
9099
|
-
toKnownErr: () =>
|
|
9218
|
+
toKnownErr: () => toKnownErr54
|
|
9100
9219
|
});
|
|
9101
|
-
function
|
|
9220
|
+
function toKnownErr54(e) {
|
|
9102
9221
|
if (e instanceof XRPCError) {
|
|
9103
9222
|
}
|
|
9104
9223
|
return e;
|
|
@@ -9107,9 +9226,9 @@ function toKnownErr53(e) {
|
|
|
9107
9226
|
// src/client/types/app/bsky/notification/getCount.ts
|
|
9108
9227
|
var getCount_exports = {};
|
|
9109
9228
|
__export(getCount_exports, {
|
|
9110
|
-
toKnownErr: () =>
|
|
9229
|
+
toKnownErr: () => toKnownErr55
|
|
9111
9230
|
});
|
|
9112
|
-
function
|
|
9231
|
+
function toKnownErr55(e) {
|
|
9113
9232
|
if (e instanceof XRPCError) {
|
|
9114
9233
|
}
|
|
9115
9234
|
return e;
|
|
@@ -9119,10 +9238,10 @@ function toKnownErr54(e) {
|
|
|
9119
9238
|
var list_exports = {};
|
|
9120
9239
|
__export(list_exports, {
|
|
9121
9240
|
isNotification: () => isNotification,
|
|
9122
|
-
toKnownErr: () =>
|
|
9241
|
+
toKnownErr: () => toKnownErr56,
|
|
9123
9242
|
validateNotification: () => validateNotification
|
|
9124
9243
|
});
|
|
9125
|
-
function
|
|
9244
|
+
function toKnownErr56(e) {
|
|
9126
9245
|
if (e instanceof XRPCError) {
|
|
9127
9246
|
}
|
|
9128
9247
|
return e;
|
|
@@ -9137,9 +9256,9 @@ function validateNotification(v) {
|
|
|
9137
9256
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
9138
9257
|
var updateSeen_exports = {};
|
|
9139
9258
|
__export(updateSeen_exports, {
|
|
9140
|
-
toKnownErr: () =>
|
|
9259
|
+
toKnownErr: () => toKnownErr57
|
|
9141
9260
|
});
|
|
9142
|
-
function
|
|
9261
|
+
function toKnownErr57(e) {
|
|
9143
9262
|
if (e instanceof XRPCError) {
|
|
9144
9263
|
}
|
|
9145
9264
|
return e;
|
|
@@ -9408,8 +9527,12 @@ function validateRecordRef(v) {
|
|
|
9408
9527
|
// src/client/types/app/bsky/actor/profile.ts
|
|
9409
9528
|
var profile_exports = {};
|
|
9410
9529
|
__export(profile_exports, {
|
|
9530
|
+
isMyState: () => isMyState2,
|
|
9411
9531
|
isRecord: () => isRecord3,
|
|
9412
|
-
|
|
9532
|
+
isView: () => isView6,
|
|
9533
|
+
validateMyState: () => validateMyState2,
|
|
9534
|
+
validateRecord: () => validateRecord3,
|
|
9535
|
+
validateView: () => validateView6
|
|
9413
9536
|
});
|
|
9414
9537
|
function isRecord3(v) {
|
|
9415
9538
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.profile#main" || v.$type === "app.bsky.actor.profile");
|
|
@@ -9417,6 +9540,18 @@ function isRecord3(v) {
|
|
|
9417
9540
|
function validateRecord3(v) {
|
|
9418
9541
|
return lexicons.validate("app.bsky.actor.profile#main", v);
|
|
9419
9542
|
}
|
|
9543
|
+
function isView6(v) {
|
|
9544
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#view";
|
|
9545
|
+
}
|
|
9546
|
+
function validateView6(v) {
|
|
9547
|
+
return lexicons.validate("app.bsky.actor.profile#view", v);
|
|
9548
|
+
}
|
|
9549
|
+
function isMyState2(v) {
|
|
9550
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#myState";
|
|
9551
|
+
}
|
|
9552
|
+
function validateMyState2(v) {
|
|
9553
|
+
return lexicons.validate("app.bsky.actor.profile#myState", v);
|
|
9554
|
+
}
|
|
9420
9555
|
|
|
9421
9556
|
// src/client/types/app/bsky/actor/ref.ts
|
|
9422
9557
|
var ref_exports = {};
|
|
@@ -9557,13 +9692,13 @@ __export(post_exports, {
|
|
|
9557
9692
|
isRecord: () => isRecord4,
|
|
9558
9693
|
isReplyRef: () => isReplyRef2,
|
|
9559
9694
|
isTextSlice: () => isTextSlice,
|
|
9560
|
-
isView: () =>
|
|
9695
|
+
isView: () => isView7,
|
|
9561
9696
|
isViewerState: () => isViewerState2,
|
|
9562
9697
|
validateEntity: () => validateEntity,
|
|
9563
9698
|
validateRecord: () => validateRecord4,
|
|
9564
9699
|
validateReplyRef: () => validateReplyRef2,
|
|
9565
9700
|
validateTextSlice: () => validateTextSlice,
|
|
9566
|
-
validateView: () =>
|
|
9701
|
+
validateView: () => validateView7,
|
|
9567
9702
|
validateViewerState: () => validateViewerState2
|
|
9568
9703
|
});
|
|
9569
9704
|
function isRecord4(v) {
|
|
@@ -9590,10 +9725,10 @@ function isTextSlice(v) {
|
|
|
9590
9725
|
function validateTextSlice(v) {
|
|
9591
9726
|
return lexicons.validate("app.bsky.feed.post#textSlice", v);
|
|
9592
9727
|
}
|
|
9593
|
-
function
|
|
9728
|
+
function isView7(v) {
|
|
9594
9729
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#view";
|
|
9595
9730
|
}
|
|
9596
|
-
function
|
|
9731
|
+
function validateView7(v) {
|
|
9597
9732
|
return lexicons.validate("app.bsky.feed.post#view", v);
|
|
9598
9733
|
}
|
|
9599
9734
|
function isViewerState2(v) {
|
|
@@ -10029,24 +10164,29 @@ var ActorNS = class {
|
|
|
10029
10164
|
throw toKnownErr38(e);
|
|
10030
10165
|
});
|
|
10031
10166
|
}
|
|
10167
|
+
getProfiles(params2, opts) {
|
|
10168
|
+
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
10169
|
+
throw toKnownErr39(e);
|
|
10170
|
+
});
|
|
10171
|
+
}
|
|
10032
10172
|
getSuggestions(params2, opts) {
|
|
10033
10173
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
10034
|
-
throw
|
|
10174
|
+
throw toKnownErr40(e);
|
|
10035
10175
|
});
|
|
10036
10176
|
}
|
|
10037
10177
|
search(params2, opts) {
|
|
10038
10178
|
return this._service.xrpc.call("app.bsky.actor.search", params2, void 0, opts).catch((e) => {
|
|
10039
|
-
throw
|
|
10179
|
+
throw toKnownErr41(e);
|
|
10040
10180
|
});
|
|
10041
10181
|
}
|
|
10042
10182
|
searchTypeahead(params2, opts) {
|
|
10043
10183
|
return this._service.xrpc.call("app.bsky.actor.searchTypeahead", params2, void 0, opts).catch((e) => {
|
|
10044
|
-
throw
|
|
10184
|
+
throw toKnownErr42(e);
|
|
10045
10185
|
});
|
|
10046
10186
|
}
|
|
10047
10187
|
updateProfile(data, opts) {
|
|
10048
10188
|
return this._service.xrpc.call("app.bsky.actor.updateProfile", opts?.qp, data, opts).catch((e) => {
|
|
10049
|
-
throw
|
|
10189
|
+
throw toKnownErr43(e);
|
|
10050
10190
|
});
|
|
10051
10191
|
}
|
|
10052
10192
|
};
|
|
@@ -10101,32 +10241,32 @@ var FeedNS = class {
|
|
|
10101
10241
|
}
|
|
10102
10242
|
getAuthorFeed(params2, opts) {
|
|
10103
10243
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
10104
|
-
throw
|
|
10244
|
+
throw toKnownErr44(e);
|
|
10105
10245
|
});
|
|
10106
10246
|
}
|
|
10107
10247
|
getPostThread(params2, opts) {
|
|
10108
10248
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
10109
|
-
throw
|
|
10249
|
+
throw toKnownErr45(e);
|
|
10110
10250
|
});
|
|
10111
10251
|
}
|
|
10112
10252
|
getRepostedBy(params2, opts) {
|
|
10113
10253
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
10114
|
-
throw
|
|
10254
|
+
throw toKnownErr46(e);
|
|
10115
10255
|
});
|
|
10116
10256
|
}
|
|
10117
10257
|
getTimeline(params2, opts) {
|
|
10118
10258
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
10119
|
-
throw
|
|
10259
|
+
throw toKnownErr47(e);
|
|
10120
10260
|
});
|
|
10121
10261
|
}
|
|
10122
10262
|
getVotes(params2, opts) {
|
|
10123
10263
|
return this._service.xrpc.call("app.bsky.feed.getVotes", params2, void 0, opts).catch((e) => {
|
|
10124
|
-
throw
|
|
10264
|
+
throw toKnownErr48(e);
|
|
10125
10265
|
});
|
|
10126
10266
|
}
|
|
10127
10267
|
setVote(data, opts) {
|
|
10128
10268
|
return this._service.xrpc.call("app.bsky.feed.setVote", opts?.qp, data, opts).catch((e) => {
|
|
10129
|
-
throw
|
|
10269
|
+
throw toKnownErr49(e);
|
|
10130
10270
|
});
|
|
10131
10271
|
}
|
|
10132
10272
|
};
|
|
@@ -10250,27 +10390,27 @@ var GraphNS = class {
|
|
|
10250
10390
|
}
|
|
10251
10391
|
getFollowers(params2, opts) {
|
|
10252
10392
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
10253
|
-
throw
|
|
10393
|
+
throw toKnownErr50(e);
|
|
10254
10394
|
});
|
|
10255
10395
|
}
|
|
10256
10396
|
getFollows(params2, opts) {
|
|
10257
10397
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
10258
|
-
throw
|
|
10398
|
+
throw toKnownErr51(e);
|
|
10259
10399
|
});
|
|
10260
10400
|
}
|
|
10261
10401
|
getMutes(params2, opts) {
|
|
10262
10402
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
10263
|
-
throw
|
|
10403
|
+
throw toKnownErr52(e);
|
|
10264
10404
|
});
|
|
10265
10405
|
}
|
|
10266
10406
|
mute(data, opts) {
|
|
10267
10407
|
return this._service.xrpc.call("app.bsky.graph.mute", opts?.qp, data, opts).catch((e) => {
|
|
10268
|
-
throw
|
|
10408
|
+
throw toKnownErr53(e);
|
|
10269
10409
|
});
|
|
10270
10410
|
}
|
|
10271
10411
|
unmute(data, opts) {
|
|
10272
10412
|
return this._service.xrpc.call("app.bsky.graph.unmute", opts?.qp, data, opts).catch((e) => {
|
|
10273
|
-
throw
|
|
10413
|
+
throw toKnownErr54(e);
|
|
10274
10414
|
});
|
|
10275
10415
|
}
|
|
10276
10416
|
};
|
|
@@ -10391,17 +10531,17 @@ var NotificationNS = class {
|
|
|
10391
10531
|
}
|
|
10392
10532
|
getCount(params2, opts) {
|
|
10393
10533
|
return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => {
|
|
10394
|
-
throw
|
|
10534
|
+
throw toKnownErr55(e);
|
|
10395
10535
|
});
|
|
10396
10536
|
}
|
|
10397
10537
|
list(params2, opts) {
|
|
10398
10538
|
return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => {
|
|
10399
|
-
throw
|
|
10539
|
+
throw toKnownErr56(e);
|
|
10400
10540
|
});
|
|
10401
10541
|
}
|
|
10402
10542
|
updateSeen(data, opts) {
|
|
10403
10543
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
10404
|
-
throw
|
|
10544
|
+
throw toKnownErr57(e);
|
|
10405
10545
|
});
|
|
10406
10546
|
}
|
|
10407
10547
|
};
|
|
@@ -10640,6 +10780,7 @@ function isNewSessionObject(client, v) {
|
|
|
10640
10780
|
ActorNS,
|
|
10641
10781
|
AdminNS,
|
|
10642
10782
|
AppBskyActorGetProfile,
|
|
10783
|
+
AppBskyActorGetProfiles,
|
|
10643
10784
|
AppBskyActorGetSuggestions,
|
|
10644
10785
|
AppBskyActorProfile,
|
|
10645
10786
|
AppBskyActorRef,
|