@atproto/api 0.3.6 → 0.3.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/dist/client/index.d.ts +45 -0
- package/dist/client/lexicons.d.ts +471 -3
- package/dist/client/types/app/bsky/actor/defs.d.ts +8 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts +47 -2
- package/dist/client/types/app/bsky/feed/getFeedGenerators.d.ts +19 -0
- package/dist/client/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +18 -0
- package/dist/index.js +1148 -345
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +18 -0
- package/src/client/lexicons.ts +36 -5
- package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +34 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -8889,7 +8889,14 @@ __export(src_exports4, {
|
|
|
8889
8889
|
AppBskyEmbedRecord: () => record_exports,
|
|
8890
8890
|
AppBskyEmbedRecordWithMedia: () => recordWithMedia_exports,
|
|
8891
8891
|
AppBskyFeedDefs: () => defs_exports6,
|
|
8892
|
+
AppBskyFeedDescribeFeedGenerator: () => describeFeedGenerator_exports,
|
|
8893
|
+
AppBskyFeedGenerator: () => generator_exports,
|
|
8894
|
+
AppBskyFeedGetActorFeeds: () => getActorFeeds_exports,
|
|
8892
8895
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
8896
|
+
AppBskyFeedGetFeed: () => getFeed_exports,
|
|
8897
|
+
AppBskyFeedGetFeedGenerator: () => getFeedGenerator_exports,
|
|
8898
|
+
AppBskyFeedGetFeedGenerators: () => getFeedGenerators_exports,
|
|
8899
|
+
AppBskyFeedGetFeedSkeleton: () => getFeedSkeleton_exports,
|
|
8893
8900
|
AppBskyFeedGetLikes: () => getLikes_exports,
|
|
8894
8901
|
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
|
8895
8902
|
AppBskyFeedGetPosts: () => getPosts_exports,
|
|
@@ -8919,6 +8926,7 @@ __export(src_exports4, {
|
|
|
8919
8926
|
AppBskyNotificationUpdateSeen: () => updateSeen_exports,
|
|
8920
8927
|
AppBskyRichtextFacet: () => facet_exports,
|
|
8921
8928
|
AppBskyUnspeccedGetPopular: () => getPopular_exports,
|
|
8929
|
+
AppBskyUnspeccedGetPopularFeedGenerators: () => getPopularFeedGenerators_exports,
|
|
8922
8930
|
AppNS: () => AppNS,
|
|
8923
8931
|
AtUri: () => AtUri,
|
|
8924
8932
|
AtpAgent: () => AtpAgent,
|
|
@@ -8998,6 +9006,7 @@ __export(src_exports4, {
|
|
|
8998
9006
|
EmbedNS: () => EmbedNS,
|
|
8999
9007
|
FeedNS: () => FeedNS,
|
|
9000
9008
|
FollowRecord: () => FollowRecord,
|
|
9009
|
+
GeneratorRecord: () => GeneratorRecord,
|
|
9001
9010
|
GraphNS: () => GraphNS,
|
|
9002
9011
|
IdentityNS: () => IdentityNS,
|
|
9003
9012
|
LabelNS: () => LabelNS,
|
|
@@ -15206,218 +15215,6 @@ function parseRelative(str) {
|
|
|
15206
15215
|
return void 0;
|
|
15207
15216
|
}
|
|
15208
15217
|
|
|
15209
|
-
// ../lexicon/src/types.ts
|
|
15210
|
-
var lexBoolean = z.object({
|
|
15211
|
-
type: z.literal("boolean"),
|
|
15212
|
-
description: z.string().optional(),
|
|
15213
|
-
default: z.boolean().optional(),
|
|
15214
|
-
const: z.boolean().optional()
|
|
15215
|
-
});
|
|
15216
|
-
var lexInteger = z.object({
|
|
15217
|
-
type: z.literal("integer"),
|
|
15218
|
-
description: z.string().optional(),
|
|
15219
|
-
default: z.number().int().optional(),
|
|
15220
|
-
minimum: z.number().int().optional(),
|
|
15221
|
-
maximum: z.number().int().optional(),
|
|
15222
|
-
enum: z.number().int().array().optional(),
|
|
15223
|
-
const: z.number().int().optional()
|
|
15224
|
-
});
|
|
15225
|
-
var lexStringFormat = z.enum([
|
|
15226
|
-
"datetime",
|
|
15227
|
-
"uri",
|
|
15228
|
-
"at-uri",
|
|
15229
|
-
"did",
|
|
15230
|
-
"handle",
|
|
15231
|
-
"at-identifier",
|
|
15232
|
-
"nsid",
|
|
15233
|
-
"cid"
|
|
15234
|
-
]);
|
|
15235
|
-
var lexString = z.object({
|
|
15236
|
-
type: z.literal("string"),
|
|
15237
|
-
format: lexStringFormat.optional(),
|
|
15238
|
-
description: z.string().optional(),
|
|
15239
|
-
default: z.string().optional(),
|
|
15240
|
-
minLength: z.number().int().optional(),
|
|
15241
|
-
maxLength: z.number().int().optional(),
|
|
15242
|
-
minGraphemes: z.number().int().optional(),
|
|
15243
|
-
maxGraphemes: z.number().int().optional(),
|
|
15244
|
-
enum: z.string().array().optional(),
|
|
15245
|
-
const: z.string().optional(),
|
|
15246
|
-
knownValues: z.string().array().optional()
|
|
15247
|
-
});
|
|
15248
|
-
var lexUnknown = z.object({
|
|
15249
|
-
type: z.literal("unknown"),
|
|
15250
|
-
description: z.string().optional()
|
|
15251
|
-
});
|
|
15252
|
-
var lexPrimitive = z.discriminatedUnion("type", [
|
|
15253
|
-
lexBoolean,
|
|
15254
|
-
lexInteger,
|
|
15255
|
-
lexString,
|
|
15256
|
-
lexUnknown
|
|
15257
|
-
]);
|
|
15258
|
-
var lexBytes = z.object({
|
|
15259
|
-
type: z.literal("bytes"),
|
|
15260
|
-
description: z.string().optional(),
|
|
15261
|
-
maxLength: z.number().optional(),
|
|
15262
|
-
minLength: z.number().optional()
|
|
15263
|
-
});
|
|
15264
|
-
var lexCidLink = z.object({
|
|
15265
|
-
type: z.literal("cid-link"),
|
|
15266
|
-
description: z.string().optional()
|
|
15267
|
-
});
|
|
15268
|
-
var lexIpldType = z.discriminatedUnion("type", [lexBytes, lexCidLink]);
|
|
15269
|
-
var lexRef = z.object({
|
|
15270
|
-
type: z.literal("ref"),
|
|
15271
|
-
description: z.string().optional(),
|
|
15272
|
-
ref: z.string()
|
|
15273
|
-
});
|
|
15274
|
-
var lexRefUnion = z.object({
|
|
15275
|
-
type: z.literal("union"),
|
|
15276
|
-
description: z.string().optional(),
|
|
15277
|
-
refs: z.string().array(),
|
|
15278
|
-
closed: z.boolean().optional()
|
|
15279
|
-
});
|
|
15280
|
-
var lexRefVariant = z.discriminatedUnion("type", [lexRef, lexRefUnion]);
|
|
15281
|
-
var lexBlob = z.object({
|
|
15282
|
-
type: z.literal("blob"),
|
|
15283
|
-
description: z.string().optional(),
|
|
15284
|
-
accept: z.string().array().optional(),
|
|
15285
|
-
maxSize: z.number().optional()
|
|
15286
|
-
});
|
|
15287
|
-
var lexArray = z.object({
|
|
15288
|
-
type: z.literal("array"),
|
|
15289
|
-
description: z.string().optional(),
|
|
15290
|
-
items: z.union([lexPrimitive, lexIpldType, lexBlob, lexRefVariant]),
|
|
15291
|
-
minLength: z.number().int().optional(),
|
|
15292
|
-
maxLength: z.number().int().optional()
|
|
15293
|
-
});
|
|
15294
|
-
var lexPrimitiveArray = lexArray.merge(
|
|
15295
|
-
z.object({
|
|
15296
|
-
items: lexPrimitive
|
|
15297
|
-
})
|
|
15298
|
-
);
|
|
15299
|
-
var lexToken = z.object({
|
|
15300
|
-
type: z.literal("token"),
|
|
15301
|
-
description: z.string().optional()
|
|
15302
|
-
});
|
|
15303
|
-
var lexObject = z.object({
|
|
15304
|
-
type: z.literal("object"),
|
|
15305
|
-
description: z.string().optional(),
|
|
15306
|
-
required: z.string().array().optional(),
|
|
15307
|
-
nullable: z.string().array().optional(),
|
|
15308
|
-
properties: z.record(
|
|
15309
|
-
z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive])
|
|
15310
|
-
).optional()
|
|
15311
|
-
});
|
|
15312
|
-
var lexXrpcParameters = z.object({
|
|
15313
|
-
type: z.literal("params"),
|
|
15314
|
-
description: z.string().optional(),
|
|
15315
|
-
required: z.string().array().optional(),
|
|
15316
|
-
properties: z.record(z.union([lexPrimitive, lexPrimitiveArray]))
|
|
15317
|
-
});
|
|
15318
|
-
var lexXrpcBody = z.object({
|
|
15319
|
-
description: z.string().optional(),
|
|
15320
|
-
encoding: z.string(),
|
|
15321
|
-
schema: z.union([lexRefVariant, lexObject]).optional()
|
|
15322
|
-
});
|
|
15323
|
-
var lexXrpcSubscriptionMessage = z.object({
|
|
15324
|
-
description: z.string().optional(),
|
|
15325
|
-
schema: z.union([lexRefVariant, lexObject]).optional()
|
|
15326
|
-
});
|
|
15327
|
-
var lexXrpcError = z.object({
|
|
15328
|
-
name: z.string(),
|
|
15329
|
-
description: z.string().optional()
|
|
15330
|
-
});
|
|
15331
|
-
var lexXrpcQuery = z.object({
|
|
15332
|
-
type: z.literal("query"),
|
|
15333
|
-
description: z.string().optional(),
|
|
15334
|
-
parameters: lexXrpcParameters.optional(),
|
|
15335
|
-
output: lexXrpcBody.optional(),
|
|
15336
|
-
errors: lexXrpcError.array().optional()
|
|
15337
|
-
});
|
|
15338
|
-
var lexXrpcProcedure = z.object({
|
|
15339
|
-
type: z.literal("procedure"),
|
|
15340
|
-
description: z.string().optional(),
|
|
15341
|
-
parameters: lexXrpcParameters.optional(),
|
|
15342
|
-
input: lexXrpcBody.optional(),
|
|
15343
|
-
output: lexXrpcBody.optional(),
|
|
15344
|
-
errors: lexXrpcError.array().optional()
|
|
15345
|
-
});
|
|
15346
|
-
var lexXrpcSubscription = z.object({
|
|
15347
|
-
type: z.literal("subscription"),
|
|
15348
|
-
description: z.string().optional(),
|
|
15349
|
-
parameters: lexXrpcParameters.optional(),
|
|
15350
|
-
message: lexXrpcSubscriptionMessage.optional(),
|
|
15351
|
-
infos: lexXrpcError.array().optional(),
|
|
15352
|
-
errors: lexXrpcError.array().optional()
|
|
15353
|
-
});
|
|
15354
|
-
var lexRecord = z.object({
|
|
15355
|
-
type: z.literal("record"),
|
|
15356
|
-
description: z.string().optional(),
|
|
15357
|
-
key: z.string().optional(),
|
|
15358
|
-
record: lexObject
|
|
15359
|
-
});
|
|
15360
|
-
var lexUserType = z.discriminatedUnion("type", [
|
|
15361
|
-
lexRecord,
|
|
15362
|
-
lexXrpcQuery,
|
|
15363
|
-
lexXrpcProcedure,
|
|
15364
|
-
lexXrpcSubscription,
|
|
15365
|
-
lexBlob,
|
|
15366
|
-
lexArray,
|
|
15367
|
-
lexToken,
|
|
15368
|
-
lexObject,
|
|
15369
|
-
lexBoolean,
|
|
15370
|
-
lexInteger,
|
|
15371
|
-
lexString,
|
|
15372
|
-
lexBytes,
|
|
15373
|
-
lexCidLink,
|
|
15374
|
-
lexUnknown
|
|
15375
|
-
]);
|
|
15376
|
-
var lexiconDoc = z.object({
|
|
15377
|
-
lexicon: z.literal(1),
|
|
15378
|
-
id: z.string().refine((v) => NSID.isValid(v), {
|
|
15379
|
-
message: "Must be a valid NSID"
|
|
15380
|
-
}),
|
|
15381
|
-
revision: z.number().optional(),
|
|
15382
|
-
description: z.string().optional(),
|
|
15383
|
-
defs: z.record(lexUserType)
|
|
15384
|
-
}).superRefine((doc, ctx) => {
|
|
15385
|
-
for (const defId in doc.defs) {
|
|
15386
|
-
const def2 = doc.defs[defId];
|
|
15387
|
-
if (defId !== "main" && (def2.type === "record" || def2.type === "procedure" || def2.type === "query" || def2.type === "subscription")) {
|
|
15388
|
-
ctx.addIssue({
|
|
15389
|
-
code: z.ZodIssueCode.custom,
|
|
15390
|
-
message: `Records, procedures, queries, and subscriptions must be the main definition.`
|
|
15391
|
-
});
|
|
15392
|
-
}
|
|
15393
|
-
}
|
|
15394
|
-
});
|
|
15395
|
-
function isObj(obj) {
|
|
15396
|
-
return obj !== null && typeof obj === "object";
|
|
15397
|
-
}
|
|
15398
|
-
function hasProp(data, prop) {
|
|
15399
|
-
return prop in data;
|
|
15400
|
-
}
|
|
15401
|
-
var discriminatedObject = z.object({ $type: z.string() });
|
|
15402
|
-
function isDiscriminatedObject(value) {
|
|
15403
|
-
return discriminatedObject.safeParse(value).success;
|
|
15404
|
-
}
|
|
15405
|
-
var LexiconDocMalformedError = class extends Error {
|
|
15406
|
-
constructor(message, schemaDef, issues) {
|
|
15407
|
-
super(message);
|
|
15408
|
-
this.schemaDef = schemaDef;
|
|
15409
|
-
this.issues = issues;
|
|
15410
|
-
this.schemaDef = schemaDef;
|
|
15411
|
-
this.issues = issues;
|
|
15412
|
-
}
|
|
15413
|
-
};
|
|
15414
|
-
var ValidationError = class extends Error {
|
|
15415
|
-
};
|
|
15416
|
-
var InvalidLexiconError = class extends Error {
|
|
15417
|
-
};
|
|
15418
|
-
var LexiconDefNotFoundError = class extends Error {
|
|
15419
|
-
};
|
|
15420
|
-
|
|
15421
15218
|
// ../lexicon/src/validators/formats.ts
|
|
15422
15219
|
var import_iso_datestring_validator = __toESM(require_dist());
|
|
15423
15220
|
function datetime(path, value) {
|
|
@@ -16008,6 +15805,290 @@ function toConcreteTypes(lexicons2, def2) {
|
|
|
16008
15805
|
return [def2];
|
|
16009
15806
|
}
|
|
16010
15807
|
}
|
|
15808
|
+
function requiredPropertiesRefinement(object2, ctx) {
|
|
15809
|
+
if (object2.required === void 0) {
|
|
15810
|
+
return;
|
|
15811
|
+
}
|
|
15812
|
+
if (!Array.isArray(object2.required)) {
|
|
15813
|
+
ctx.addIssue({
|
|
15814
|
+
code: z.ZodIssueCode.invalid_type,
|
|
15815
|
+
received: typeof object2.required,
|
|
15816
|
+
expected: "array"
|
|
15817
|
+
});
|
|
15818
|
+
return;
|
|
15819
|
+
}
|
|
15820
|
+
if (object2.properties === void 0) {
|
|
15821
|
+
if (object2.required.length > 0) {
|
|
15822
|
+
ctx.addIssue({
|
|
15823
|
+
code: z.ZodIssueCode.custom,
|
|
15824
|
+
message: `Required fields defined but no properties defined`
|
|
15825
|
+
});
|
|
15826
|
+
}
|
|
15827
|
+
return;
|
|
15828
|
+
}
|
|
15829
|
+
for (const field of object2.required) {
|
|
15830
|
+
if (object2.properties[field] === void 0) {
|
|
15831
|
+
ctx.addIssue({
|
|
15832
|
+
code: z.ZodIssueCode.custom,
|
|
15833
|
+
message: `Required field "${field}" not defined`
|
|
15834
|
+
});
|
|
15835
|
+
}
|
|
15836
|
+
}
|
|
15837
|
+
}
|
|
15838
|
+
|
|
15839
|
+
// ../lexicon/src/types.ts
|
|
15840
|
+
var lexBoolean = z.object({
|
|
15841
|
+
type: z.literal("boolean"),
|
|
15842
|
+
description: z.string().optional(),
|
|
15843
|
+
default: z.boolean().optional(),
|
|
15844
|
+
const: z.boolean().optional()
|
|
15845
|
+
});
|
|
15846
|
+
var lexInteger = z.object({
|
|
15847
|
+
type: z.literal("integer"),
|
|
15848
|
+
description: z.string().optional(),
|
|
15849
|
+
default: z.number().int().optional(),
|
|
15850
|
+
minimum: z.number().int().optional(),
|
|
15851
|
+
maximum: z.number().int().optional(),
|
|
15852
|
+
enum: z.number().int().array().optional(),
|
|
15853
|
+
const: z.number().int().optional()
|
|
15854
|
+
});
|
|
15855
|
+
var lexStringFormat = z.enum([
|
|
15856
|
+
"datetime",
|
|
15857
|
+
"uri",
|
|
15858
|
+
"at-uri",
|
|
15859
|
+
"did",
|
|
15860
|
+
"handle",
|
|
15861
|
+
"at-identifier",
|
|
15862
|
+
"nsid",
|
|
15863
|
+
"cid"
|
|
15864
|
+
]);
|
|
15865
|
+
var lexString = z.object({
|
|
15866
|
+
type: z.literal("string"),
|
|
15867
|
+
format: lexStringFormat.optional(),
|
|
15868
|
+
description: z.string().optional(),
|
|
15869
|
+
default: z.string().optional(),
|
|
15870
|
+
minLength: z.number().int().optional(),
|
|
15871
|
+
maxLength: z.number().int().optional(),
|
|
15872
|
+
minGraphemes: z.number().int().optional(),
|
|
15873
|
+
maxGraphemes: z.number().int().optional(),
|
|
15874
|
+
enum: z.string().array().optional(),
|
|
15875
|
+
const: z.string().optional(),
|
|
15876
|
+
knownValues: z.string().array().optional()
|
|
15877
|
+
});
|
|
15878
|
+
var lexUnknown = z.object({
|
|
15879
|
+
type: z.literal("unknown"),
|
|
15880
|
+
description: z.string().optional()
|
|
15881
|
+
});
|
|
15882
|
+
var lexPrimitive = z.discriminatedUnion("type", [
|
|
15883
|
+
lexBoolean,
|
|
15884
|
+
lexInteger,
|
|
15885
|
+
lexString,
|
|
15886
|
+
lexUnknown
|
|
15887
|
+
]);
|
|
15888
|
+
var lexBytes = z.object({
|
|
15889
|
+
type: z.literal("bytes"),
|
|
15890
|
+
description: z.string().optional(),
|
|
15891
|
+
maxLength: z.number().optional(),
|
|
15892
|
+
minLength: z.number().optional()
|
|
15893
|
+
});
|
|
15894
|
+
var lexCidLink = z.object({
|
|
15895
|
+
type: z.literal("cid-link"),
|
|
15896
|
+
description: z.string().optional()
|
|
15897
|
+
});
|
|
15898
|
+
var lexIpldType = z.discriminatedUnion("type", [lexBytes, lexCidLink]);
|
|
15899
|
+
var lexRef = z.object({
|
|
15900
|
+
type: z.literal("ref"),
|
|
15901
|
+
description: z.string().optional(),
|
|
15902
|
+
ref: z.string()
|
|
15903
|
+
});
|
|
15904
|
+
var lexRefUnion = z.object({
|
|
15905
|
+
type: z.literal("union"),
|
|
15906
|
+
description: z.string().optional(),
|
|
15907
|
+
refs: z.string().array(),
|
|
15908
|
+
closed: z.boolean().optional()
|
|
15909
|
+
});
|
|
15910
|
+
var lexRefVariant = z.discriminatedUnion("type", [lexRef, lexRefUnion]);
|
|
15911
|
+
var lexBlob = z.object({
|
|
15912
|
+
type: z.literal("blob"),
|
|
15913
|
+
description: z.string().optional(),
|
|
15914
|
+
accept: z.string().array().optional(),
|
|
15915
|
+
maxSize: z.number().optional()
|
|
15916
|
+
});
|
|
15917
|
+
var lexArray = z.object({
|
|
15918
|
+
type: z.literal("array"),
|
|
15919
|
+
description: z.string().optional(),
|
|
15920
|
+
items: z.union([lexPrimitive, lexIpldType, lexBlob, lexRefVariant]),
|
|
15921
|
+
minLength: z.number().int().optional(),
|
|
15922
|
+
maxLength: z.number().int().optional()
|
|
15923
|
+
});
|
|
15924
|
+
var lexPrimitiveArray = lexArray.merge(
|
|
15925
|
+
z.object({
|
|
15926
|
+
items: lexPrimitive
|
|
15927
|
+
})
|
|
15928
|
+
);
|
|
15929
|
+
var lexToken = z.object({
|
|
15930
|
+
type: z.literal("token"),
|
|
15931
|
+
description: z.string().optional()
|
|
15932
|
+
});
|
|
15933
|
+
var lexObject = z.object({
|
|
15934
|
+
type: z.literal("object"),
|
|
15935
|
+
description: z.string().optional(),
|
|
15936
|
+
required: z.string().array().optional(),
|
|
15937
|
+
nullable: z.string().array().optional(),
|
|
15938
|
+
properties: z.record(
|
|
15939
|
+
z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive])
|
|
15940
|
+
).optional()
|
|
15941
|
+
}).superRefine(requiredPropertiesRefinement);
|
|
15942
|
+
var lexXrpcParameters = z.object({
|
|
15943
|
+
type: z.literal("params"),
|
|
15944
|
+
description: z.string().optional(),
|
|
15945
|
+
required: z.string().array().optional(),
|
|
15946
|
+
properties: z.record(z.union([lexPrimitive, lexPrimitiveArray]))
|
|
15947
|
+
}).superRefine(requiredPropertiesRefinement);
|
|
15948
|
+
var lexXrpcBody = z.object({
|
|
15949
|
+
description: z.string().optional(),
|
|
15950
|
+
encoding: z.string(),
|
|
15951
|
+
schema: z.union([lexRefVariant, lexObject]).optional()
|
|
15952
|
+
});
|
|
15953
|
+
var lexXrpcSubscriptionMessage = z.object({
|
|
15954
|
+
description: z.string().optional(),
|
|
15955
|
+
schema: z.union([lexRefVariant, lexObject]).optional()
|
|
15956
|
+
});
|
|
15957
|
+
var lexXrpcError = z.object({
|
|
15958
|
+
name: z.string(),
|
|
15959
|
+
description: z.string().optional()
|
|
15960
|
+
});
|
|
15961
|
+
var lexXrpcQuery = z.object({
|
|
15962
|
+
type: z.literal("query"),
|
|
15963
|
+
description: z.string().optional(),
|
|
15964
|
+
parameters: lexXrpcParameters.optional(),
|
|
15965
|
+
output: lexXrpcBody.optional(),
|
|
15966
|
+
errors: lexXrpcError.array().optional()
|
|
15967
|
+
});
|
|
15968
|
+
var lexXrpcProcedure = z.object({
|
|
15969
|
+
type: z.literal("procedure"),
|
|
15970
|
+
description: z.string().optional(),
|
|
15971
|
+
parameters: lexXrpcParameters.optional(),
|
|
15972
|
+
input: lexXrpcBody.optional(),
|
|
15973
|
+
output: lexXrpcBody.optional(),
|
|
15974
|
+
errors: lexXrpcError.array().optional()
|
|
15975
|
+
});
|
|
15976
|
+
var lexXrpcSubscription = z.object({
|
|
15977
|
+
type: z.literal("subscription"),
|
|
15978
|
+
description: z.string().optional(),
|
|
15979
|
+
parameters: lexXrpcParameters.optional(),
|
|
15980
|
+
message: lexXrpcSubscriptionMessage.optional(),
|
|
15981
|
+
infos: lexXrpcError.array().optional(),
|
|
15982
|
+
errors: lexXrpcError.array().optional()
|
|
15983
|
+
});
|
|
15984
|
+
var lexRecord = z.object({
|
|
15985
|
+
type: z.literal("record"),
|
|
15986
|
+
description: z.string().optional(),
|
|
15987
|
+
key: z.string().optional(),
|
|
15988
|
+
record: lexObject
|
|
15989
|
+
});
|
|
15990
|
+
var lexUserType = z.custom(
|
|
15991
|
+
(val) => {
|
|
15992
|
+
if (!val || typeof val !== "object") {
|
|
15993
|
+
return;
|
|
15994
|
+
}
|
|
15995
|
+
if (val["type"] === void 0) {
|
|
15996
|
+
return;
|
|
15997
|
+
}
|
|
15998
|
+
switch (val["type"]) {
|
|
15999
|
+
case "record":
|
|
16000
|
+
return lexRecord.parse(val);
|
|
16001
|
+
case "query":
|
|
16002
|
+
return lexXrpcQuery.parse(val);
|
|
16003
|
+
case "procedure":
|
|
16004
|
+
return lexXrpcProcedure.parse(val);
|
|
16005
|
+
case "subscription":
|
|
16006
|
+
return lexXrpcSubscription.parse(val);
|
|
16007
|
+
case "blob":
|
|
16008
|
+
return lexBlob.parse(val);
|
|
16009
|
+
case "array":
|
|
16010
|
+
return lexArray.parse(val);
|
|
16011
|
+
case "token":
|
|
16012
|
+
return lexToken.parse(val);
|
|
16013
|
+
case "object":
|
|
16014
|
+
return lexObject.parse(val);
|
|
16015
|
+
case "boolean":
|
|
16016
|
+
return lexBoolean.parse(val);
|
|
16017
|
+
case "integer":
|
|
16018
|
+
return lexInteger.parse(val);
|
|
16019
|
+
case "string":
|
|
16020
|
+
return lexString.parse(val);
|
|
16021
|
+
case "bytes":
|
|
16022
|
+
return lexBytes.parse(val);
|
|
16023
|
+
case "cid-link":
|
|
16024
|
+
return lexCidLink.parse(val);
|
|
16025
|
+
case "unknown":
|
|
16026
|
+
return lexUnknown.parse(val);
|
|
16027
|
+
}
|
|
16028
|
+
},
|
|
16029
|
+
(val) => {
|
|
16030
|
+
if (!val || typeof val !== "object") {
|
|
16031
|
+
return {
|
|
16032
|
+
message: "Must be an object",
|
|
16033
|
+
fatal: true
|
|
16034
|
+
};
|
|
16035
|
+
}
|
|
16036
|
+
if (val["type"] === void 0) {
|
|
16037
|
+
return {
|
|
16038
|
+
message: "Must have a type",
|
|
16039
|
+
fatal: true
|
|
16040
|
+
};
|
|
16041
|
+
}
|
|
16042
|
+
return {
|
|
16043
|
+
message: `Invalid type: ${val["type"]} must be one of: record, query, procedure, subscription, blob, array, token, object, boolean, integer, string, bytes, cid-link, unknown`,
|
|
16044
|
+
fatal: true
|
|
16045
|
+
};
|
|
16046
|
+
}
|
|
16047
|
+
);
|
|
16048
|
+
var lexiconDoc = z.object({
|
|
16049
|
+
lexicon: z.literal(1),
|
|
16050
|
+
id: z.string().refine((v) => NSID.isValid(v), {
|
|
16051
|
+
message: "Must be a valid NSID"
|
|
16052
|
+
}),
|
|
16053
|
+
revision: z.number().optional(),
|
|
16054
|
+
description: z.string().optional(),
|
|
16055
|
+
defs: z.record(lexUserType)
|
|
16056
|
+
}).superRefine((doc, ctx) => {
|
|
16057
|
+
for (const defId in doc.defs) {
|
|
16058
|
+
const def2 = doc.defs[defId];
|
|
16059
|
+
if (defId !== "main" && (def2.type === "record" || def2.type === "procedure" || def2.type === "query" || def2.type === "subscription")) {
|
|
16060
|
+
ctx.addIssue({
|
|
16061
|
+
code: z.ZodIssueCode.custom,
|
|
16062
|
+
message: `Records, procedures, queries, and subscriptions must be the main definition.`
|
|
16063
|
+
});
|
|
16064
|
+
}
|
|
16065
|
+
}
|
|
16066
|
+
});
|
|
16067
|
+
function isObj(obj) {
|
|
16068
|
+
return obj !== null && typeof obj === "object";
|
|
16069
|
+
}
|
|
16070
|
+
function hasProp(data, prop) {
|
|
16071
|
+
return prop in data;
|
|
16072
|
+
}
|
|
16073
|
+
var discriminatedObject = z.object({ $type: z.string() });
|
|
16074
|
+
function isDiscriminatedObject(value) {
|
|
16075
|
+
return discriminatedObject.safeParse(value).success;
|
|
16076
|
+
}
|
|
16077
|
+
var LexiconDocMalformedError = class extends Error {
|
|
16078
|
+
constructor(message, schemaDef, issues) {
|
|
16079
|
+
super(message);
|
|
16080
|
+
this.schemaDef = schemaDef;
|
|
16081
|
+
this.issues = issues;
|
|
16082
|
+
this.schemaDef = schemaDef;
|
|
16083
|
+
this.issues = issues;
|
|
16084
|
+
}
|
|
16085
|
+
};
|
|
16086
|
+
var ValidationError = class extends Error {
|
|
16087
|
+
};
|
|
16088
|
+
var InvalidLexiconError = class extends Error {
|
|
16089
|
+
};
|
|
16090
|
+
var LexiconDefNotFoundError = class extends Error {
|
|
16091
|
+
};
|
|
16011
16092
|
|
|
16012
16093
|
// ../lexicon/src/validators/xrpc.ts
|
|
16013
16094
|
function params(lexicons2, path, def2, val) {
|
|
@@ -16427,6 +16508,13 @@ function encodeQueryParam(type, value) {
|
|
|
16427
16508
|
}
|
|
16428
16509
|
throw new Error(`Unsupported query param type: ${type}`);
|
|
16429
16510
|
}
|
|
16511
|
+
function normalizeHeaders(headers) {
|
|
16512
|
+
const normalized = {};
|
|
16513
|
+
for (const [header, value] of Object.entries(headers)) {
|
|
16514
|
+
normalized[header.toLowerCase()] = value;
|
|
16515
|
+
}
|
|
16516
|
+
return normalized;
|
|
16517
|
+
}
|
|
16430
16518
|
function constructMethodCallHeaders(schema2, data, opts) {
|
|
16431
16519
|
const headers = opts?.headers || {};
|
|
16432
16520
|
if (schema2.type === "procedure") {
|
|
@@ -16442,16 +16530,16 @@ function constructMethodCallHeaders(schema2, data, opts) {
|
|
|
16442
16530
|
return headers;
|
|
16443
16531
|
}
|
|
16444
16532
|
function encodeMethodCallBody(headers, data) {
|
|
16445
|
-
if (!headers["
|
|
16533
|
+
if (!headers["content-type"] || typeof data === "undefined") {
|
|
16446
16534
|
return void 0;
|
|
16447
16535
|
}
|
|
16448
16536
|
if (data instanceof ArrayBuffer) {
|
|
16449
16537
|
return data;
|
|
16450
16538
|
}
|
|
16451
|
-
if (headers["
|
|
16539
|
+
if (headers["content-type"].startsWith("text/")) {
|
|
16452
16540
|
return new TextEncoder().encode(data.toString());
|
|
16453
16541
|
}
|
|
16454
|
-
if (headers["
|
|
16542
|
+
if (headers["content-type"].startsWith("application/json")) {
|
|
16455
16543
|
return new TextEncoder().encode(stringifyLex(data));
|
|
16456
16544
|
}
|
|
16457
16545
|
return data;
|
|
@@ -16584,10 +16672,11 @@ var ServiceClient = class {
|
|
|
16584
16672
|
};
|
|
16585
16673
|
async function defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody) {
|
|
16586
16674
|
try {
|
|
16675
|
+
const headers = normalizeHeaders(httpHeaders);
|
|
16587
16676
|
const reqInit = {
|
|
16588
16677
|
method: httpMethod,
|
|
16589
|
-
headers
|
|
16590
|
-
body: encodeMethodCallBody(
|
|
16678
|
+
headers,
|
|
16679
|
+
body: encodeMethodCallBody(headers, httpReqBody),
|
|
16591
16680
|
duplex: "half"
|
|
16592
16681
|
};
|
|
16593
16682
|
const res = await fetch(httpUri, reqInit);
|
|
@@ -18203,7 +18292,7 @@ var schemaDict = {
|
|
|
18203
18292
|
create: {
|
|
18204
18293
|
type: "object",
|
|
18205
18294
|
description: "Create a new record.",
|
|
18206
|
-
required: ["
|
|
18295
|
+
required: ["collection", "value"],
|
|
18207
18296
|
properties: {
|
|
18208
18297
|
collection: {
|
|
18209
18298
|
type: "string",
|
|
@@ -18221,15 +18310,14 @@ var schemaDict = {
|
|
|
18221
18310
|
update: {
|
|
18222
18311
|
type: "object",
|
|
18223
18312
|
description: "Update an existing record.",
|
|
18224
|
-
required: ["
|
|
18313
|
+
required: ["collection", "rkey", "value"],
|
|
18225
18314
|
properties: {
|
|
18226
18315
|
collection: {
|
|
18227
18316
|
type: "string",
|
|
18228
18317
|
format: "nsid"
|
|
18229
18318
|
},
|
|
18230
18319
|
rkey: {
|
|
18231
|
-
type: "string"
|
|
18232
|
-
maxLength: 15
|
|
18320
|
+
type: "string"
|
|
18233
18321
|
},
|
|
18234
18322
|
value: {
|
|
18235
18323
|
type: "unknown"
|
|
@@ -18239,7 +18327,7 @@ var schemaDict = {
|
|
|
18239
18327
|
delete: {
|
|
18240
18328
|
type: "object",
|
|
18241
18329
|
description: "Delete an existing record.",
|
|
18242
|
-
required: ["
|
|
18330
|
+
required: ["collection", "rkey"],
|
|
18243
18331
|
properties: {
|
|
18244
18332
|
collection: {
|
|
18245
18333
|
type: "string",
|
|
@@ -20145,7 +20233,8 @@ var schemaDict = {
|
|
|
20145
20233
|
type: "union",
|
|
20146
20234
|
refs: [
|
|
20147
20235
|
"lex:app.bsky.actor.defs#adultContentPref",
|
|
20148
|
-
"lex:app.bsky.actor.defs#contentLabelPref"
|
|
20236
|
+
"lex:app.bsky.actor.defs#contentLabelPref",
|
|
20237
|
+
"lex:app.bsky.actor.defs#savedFeedsPref"
|
|
20149
20238
|
]
|
|
20150
20239
|
}
|
|
20151
20240
|
},
|
|
@@ -20171,6 +20260,26 @@ var schemaDict = {
|
|
|
20171
20260
|
knownValues: ["show", "warn", "hide"]
|
|
20172
20261
|
}
|
|
20173
20262
|
}
|
|
20263
|
+
},
|
|
20264
|
+
savedFeedsPref: {
|
|
20265
|
+
type: "object",
|
|
20266
|
+
required: ["pinned", "saved"],
|
|
20267
|
+
properties: {
|
|
20268
|
+
pinned: {
|
|
20269
|
+
type: "array",
|
|
20270
|
+
items: {
|
|
20271
|
+
type: "string",
|
|
20272
|
+
format: "at-uri"
|
|
20273
|
+
}
|
|
20274
|
+
},
|
|
20275
|
+
saved: {
|
|
20276
|
+
type: "array",
|
|
20277
|
+
items: {
|
|
20278
|
+
type: "string",
|
|
20279
|
+
format: "at-uri"
|
|
20280
|
+
}
|
|
20281
|
+
}
|
|
20282
|
+
}
|
|
20174
20283
|
}
|
|
20175
20284
|
}
|
|
20176
20285
|
},
|
|
@@ -20608,7 +20717,8 @@ var schemaDict = {
|
|
|
20608
20717
|
refs: [
|
|
20609
20718
|
"lex:app.bsky.embed.record#viewRecord",
|
|
20610
20719
|
"lex:app.bsky.embed.record#viewNotFound",
|
|
20611
|
-
"lex:app.bsky.embed.record#viewBlocked"
|
|
20720
|
+
"lex:app.bsky.embed.record#viewBlocked",
|
|
20721
|
+
"lex:app.bsky.feed.defs#generatorView"
|
|
20612
20722
|
]
|
|
20613
20723
|
}
|
|
20614
20724
|
}
|
|
@@ -20811,12 +20921,20 @@ var schemaDict = {
|
|
|
20811
20921
|
required: ["root", "parent"],
|
|
20812
20922
|
properties: {
|
|
20813
20923
|
root: {
|
|
20814
|
-
type: "
|
|
20815
|
-
|
|
20924
|
+
type: "union",
|
|
20925
|
+
refs: [
|
|
20926
|
+
"lex:app.bsky.feed.defs#postView",
|
|
20927
|
+
"lex:app.bsky.feed.defs#notFoundPost",
|
|
20928
|
+
"lex:app.bsky.feed.defs#blockedPost"
|
|
20929
|
+
]
|
|
20816
20930
|
},
|
|
20817
20931
|
parent: {
|
|
20818
|
-
type: "
|
|
20819
|
-
|
|
20932
|
+
type: "union",
|
|
20933
|
+
refs: [
|
|
20934
|
+
"lex:app.bsky.feed.defs#postView",
|
|
20935
|
+
"lex:app.bsky.feed.defs#notFoundPost",
|
|
20936
|
+
"lex:app.bsky.feed.defs#blockedPost"
|
|
20937
|
+
]
|
|
20820
20938
|
}
|
|
20821
20939
|
}
|
|
20822
20940
|
},
|
|
@@ -20890,6 +21008,241 @@ var schemaDict = {
|
|
|
20890
21008
|
const: true
|
|
20891
21009
|
}
|
|
20892
21010
|
}
|
|
21011
|
+
},
|
|
21012
|
+
generatorView: {
|
|
21013
|
+
type: "object",
|
|
21014
|
+
required: ["uri", "cid", "creator", "displayName", "indexedAt"],
|
|
21015
|
+
properties: {
|
|
21016
|
+
uri: {
|
|
21017
|
+
type: "string",
|
|
21018
|
+
format: "at-uri"
|
|
21019
|
+
},
|
|
21020
|
+
cid: {
|
|
21021
|
+
type: "string",
|
|
21022
|
+
format: "cid"
|
|
21023
|
+
},
|
|
21024
|
+
did: {
|
|
21025
|
+
type: "string",
|
|
21026
|
+
format: "did"
|
|
21027
|
+
},
|
|
21028
|
+
creator: {
|
|
21029
|
+
type: "ref",
|
|
21030
|
+
ref: "lex:app.bsky.actor.defs#profileView"
|
|
21031
|
+
},
|
|
21032
|
+
displayName: {
|
|
21033
|
+
type: "string"
|
|
21034
|
+
},
|
|
21035
|
+
description: {
|
|
21036
|
+
type: "string",
|
|
21037
|
+
maxGraphemes: 300,
|
|
21038
|
+
maxLength: 3e3
|
|
21039
|
+
},
|
|
21040
|
+
descriptionFacets: {
|
|
21041
|
+
type: "array",
|
|
21042
|
+
items: {
|
|
21043
|
+
type: "ref",
|
|
21044
|
+
ref: "lex:app.bsky.richtext.facet"
|
|
21045
|
+
}
|
|
21046
|
+
},
|
|
21047
|
+
avatar: {
|
|
21048
|
+
type: "string"
|
|
21049
|
+
},
|
|
21050
|
+
likeCount: {
|
|
21051
|
+
type: "integer",
|
|
21052
|
+
minimum: 0
|
|
21053
|
+
},
|
|
21054
|
+
viewer: {
|
|
21055
|
+
type: "ref",
|
|
21056
|
+
ref: "lex:app.bsky.feed.defs#generatorViewerState"
|
|
21057
|
+
},
|
|
21058
|
+
indexedAt: {
|
|
21059
|
+
type: "string",
|
|
21060
|
+
format: "datetime"
|
|
21061
|
+
}
|
|
21062
|
+
}
|
|
21063
|
+
},
|
|
21064
|
+
generatorViewerState: {
|
|
21065
|
+
type: "object",
|
|
21066
|
+
properties: {
|
|
21067
|
+
like: {
|
|
21068
|
+
type: "string",
|
|
21069
|
+
format: "at-uri"
|
|
21070
|
+
}
|
|
21071
|
+
}
|
|
21072
|
+
},
|
|
21073
|
+
skeletonFeedPost: {
|
|
21074
|
+
type: "object",
|
|
21075
|
+
required: ["post"],
|
|
21076
|
+
properties: {
|
|
21077
|
+
post: {
|
|
21078
|
+
type: "string",
|
|
21079
|
+
format: "at-uri"
|
|
21080
|
+
},
|
|
21081
|
+
reason: {
|
|
21082
|
+
type: "union",
|
|
21083
|
+
refs: ["lex:app.bsky.feed.defs#skeletonReasonRepost"]
|
|
21084
|
+
}
|
|
21085
|
+
}
|
|
21086
|
+
},
|
|
21087
|
+
skeletonReasonRepost: {
|
|
21088
|
+
type: "object",
|
|
21089
|
+
required: ["repost"],
|
|
21090
|
+
properties: {
|
|
21091
|
+
repost: {
|
|
21092
|
+
type: "string",
|
|
21093
|
+
format: "at-uri"
|
|
21094
|
+
}
|
|
21095
|
+
}
|
|
21096
|
+
}
|
|
21097
|
+
}
|
|
21098
|
+
},
|
|
21099
|
+
AppBskyFeedDescribeFeedGenerator: {
|
|
21100
|
+
lexicon: 1,
|
|
21101
|
+
id: "app.bsky.feed.describeFeedGenerator",
|
|
21102
|
+
defs: {
|
|
21103
|
+
main: {
|
|
21104
|
+
type: "query",
|
|
21105
|
+
description: "Returns information about a given feed generator including TOS & offered feed URIs",
|
|
21106
|
+
output: {
|
|
21107
|
+
encoding: "application/json",
|
|
21108
|
+
schema: {
|
|
21109
|
+
type: "object",
|
|
21110
|
+
required: ["did", "feeds"],
|
|
21111
|
+
properties: {
|
|
21112
|
+
did: {
|
|
21113
|
+
type: "string",
|
|
21114
|
+
format: "did"
|
|
21115
|
+
},
|
|
21116
|
+
feeds: {
|
|
21117
|
+
type: "array",
|
|
21118
|
+
items: {
|
|
21119
|
+
type: "ref",
|
|
21120
|
+
ref: "lex:app.bsky.feed.describeFeedGenerator#feed"
|
|
21121
|
+
}
|
|
21122
|
+
},
|
|
21123
|
+
links: {
|
|
21124
|
+
type: "ref",
|
|
21125
|
+
ref: "lex:app.bsky.feed.describeFeedGenerator#links"
|
|
21126
|
+
}
|
|
21127
|
+
}
|
|
21128
|
+
}
|
|
21129
|
+
}
|
|
21130
|
+
},
|
|
21131
|
+
feed: {
|
|
21132
|
+
type: "object",
|
|
21133
|
+
required: ["uri"],
|
|
21134
|
+
properties: {
|
|
21135
|
+
uri: {
|
|
21136
|
+
type: "string",
|
|
21137
|
+
format: "at-uri"
|
|
21138
|
+
}
|
|
21139
|
+
}
|
|
21140
|
+
},
|
|
21141
|
+
links: {
|
|
21142
|
+
type: "object",
|
|
21143
|
+
properties: {
|
|
21144
|
+
privacyPolicy: {
|
|
21145
|
+
type: "string"
|
|
21146
|
+
},
|
|
21147
|
+
termsOfService: {
|
|
21148
|
+
type: "string"
|
|
21149
|
+
}
|
|
21150
|
+
}
|
|
21151
|
+
}
|
|
21152
|
+
}
|
|
21153
|
+
},
|
|
21154
|
+
AppBskyFeedGenerator: {
|
|
21155
|
+
lexicon: 1,
|
|
21156
|
+
id: "app.bsky.feed.generator",
|
|
21157
|
+
defs: {
|
|
21158
|
+
main: {
|
|
21159
|
+
type: "record",
|
|
21160
|
+
description: "A declaration of the existence of a feed generator",
|
|
21161
|
+
key: "any",
|
|
21162
|
+
record: {
|
|
21163
|
+
type: "object",
|
|
21164
|
+
required: ["did", "displayName", "createdAt"],
|
|
21165
|
+
properties: {
|
|
21166
|
+
did: {
|
|
21167
|
+
type: "string",
|
|
21168
|
+
format: "did"
|
|
21169
|
+
},
|
|
21170
|
+
displayName: {
|
|
21171
|
+
type: "string",
|
|
21172
|
+
maxGraphemes: 24,
|
|
21173
|
+
maxLength: 240
|
|
21174
|
+
},
|
|
21175
|
+
description: {
|
|
21176
|
+
type: "string",
|
|
21177
|
+
maxGraphemes: 300,
|
|
21178
|
+
maxLength: 3e3
|
|
21179
|
+
},
|
|
21180
|
+
descriptionFacets: {
|
|
21181
|
+
type: "array",
|
|
21182
|
+
items: {
|
|
21183
|
+
type: "ref",
|
|
21184
|
+
ref: "lex:app.bsky.richtext.facet"
|
|
21185
|
+
}
|
|
21186
|
+
},
|
|
21187
|
+
avatar: {
|
|
21188
|
+
type: "blob",
|
|
21189
|
+
accept: ["image/png", "image/jpeg"],
|
|
21190
|
+
maxSize: 1e6
|
|
21191
|
+
},
|
|
21192
|
+
createdAt: {
|
|
21193
|
+
type: "string",
|
|
21194
|
+
format: "datetime"
|
|
21195
|
+
}
|
|
21196
|
+
}
|
|
21197
|
+
}
|
|
21198
|
+
}
|
|
21199
|
+
}
|
|
21200
|
+
},
|
|
21201
|
+
AppBskyFeedGetActorFeeds: {
|
|
21202
|
+
lexicon: 1,
|
|
21203
|
+
id: "app.bsky.feed.getActorFeeds",
|
|
21204
|
+
defs: {
|
|
21205
|
+
main: {
|
|
21206
|
+
type: "query",
|
|
21207
|
+
description: "Retrieve a list of feeds created by a given actor",
|
|
21208
|
+
parameters: {
|
|
21209
|
+
type: "params",
|
|
21210
|
+
required: ["actor"],
|
|
21211
|
+
properties: {
|
|
21212
|
+
actor: {
|
|
21213
|
+
type: "string",
|
|
21214
|
+
format: "at-identifier"
|
|
21215
|
+
},
|
|
21216
|
+
limit: {
|
|
21217
|
+
type: "integer",
|
|
21218
|
+
minimum: 1,
|
|
21219
|
+
maximum: 100,
|
|
21220
|
+
default: 50
|
|
21221
|
+
},
|
|
21222
|
+
cursor: {
|
|
21223
|
+
type: "string"
|
|
21224
|
+
}
|
|
21225
|
+
}
|
|
21226
|
+
},
|
|
21227
|
+
output: {
|
|
21228
|
+
encoding: "application/json",
|
|
21229
|
+
schema: {
|
|
21230
|
+
type: "object",
|
|
21231
|
+
required: ["feeds"],
|
|
21232
|
+
properties: {
|
|
21233
|
+
cursor: {
|
|
21234
|
+
type: "string"
|
|
21235
|
+
},
|
|
21236
|
+
feeds: {
|
|
21237
|
+
type: "array",
|
|
21238
|
+
items: {
|
|
21239
|
+
type: "ref",
|
|
21240
|
+
ref: "lex:app.bsky.feed.defs#generatorView"
|
|
21241
|
+
}
|
|
21242
|
+
}
|
|
21243
|
+
}
|
|
21244
|
+
}
|
|
21245
|
+
}
|
|
20893
21246
|
}
|
|
20894
21247
|
}
|
|
20895
21248
|
},
|
|
@@ -20949,6 +21302,190 @@ var schemaDict = {
|
|
|
20949
21302
|
}
|
|
20950
21303
|
}
|
|
20951
21304
|
},
|
|
21305
|
+
AppBskyFeedGetFeed: {
|
|
21306
|
+
lexicon: 1,
|
|
21307
|
+
id: "app.bsky.feed.getFeed",
|
|
21308
|
+
defs: {
|
|
21309
|
+
main: {
|
|
21310
|
+
type: "query",
|
|
21311
|
+
description: "Compose and hydrate a feed from a user's selected feed generator",
|
|
21312
|
+
parameters: {
|
|
21313
|
+
type: "params",
|
|
21314
|
+
required: ["feed"],
|
|
21315
|
+
properties: {
|
|
21316
|
+
feed: {
|
|
21317
|
+
type: "string",
|
|
21318
|
+
format: "at-uri"
|
|
21319
|
+
},
|
|
21320
|
+
limit: {
|
|
21321
|
+
type: "integer",
|
|
21322
|
+
minimum: 1,
|
|
21323
|
+
maximum: 100,
|
|
21324
|
+
default: 50
|
|
21325
|
+
},
|
|
21326
|
+
cursor: {
|
|
21327
|
+
type: "string"
|
|
21328
|
+
}
|
|
21329
|
+
}
|
|
21330
|
+
},
|
|
21331
|
+
output: {
|
|
21332
|
+
encoding: "application/json",
|
|
21333
|
+
schema: {
|
|
21334
|
+
type: "object",
|
|
21335
|
+
required: ["feed"],
|
|
21336
|
+
properties: {
|
|
21337
|
+
cursor: {
|
|
21338
|
+
type: "string"
|
|
21339
|
+
},
|
|
21340
|
+
feed: {
|
|
21341
|
+
type: "array",
|
|
21342
|
+
items: {
|
|
21343
|
+
type: "ref",
|
|
21344
|
+
ref: "lex:app.bsky.feed.defs#feedViewPost"
|
|
21345
|
+
}
|
|
21346
|
+
}
|
|
21347
|
+
}
|
|
21348
|
+
}
|
|
21349
|
+
},
|
|
21350
|
+
errors: [
|
|
21351
|
+
{
|
|
21352
|
+
name: "UnknownFeed"
|
|
21353
|
+
}
|
|
21354
|
+
]
|
|
21355
|
+
}
|
|
21356
|
+
}
|
|
21357
|
+
},
|
|
21358
|
+
AppBskyFeedGetFeedGenerator: {
|
|
21359
|
+
lexicon: 1,
|
|
21360
|
+
id: "app.bsky.feed.getFeedGenerator",
|
|
21361
|
+
defs: {
|
|
21362
|
+
main: {
|
|
21363
|
+
type: "query",
|
|
21364
|
+
description: "Get information about a specific feed offered by a feed generator, such as its online status",
|
|
21365
|
+
parameters: {
|
|
21366
|
+
type: "params",
|
|
21367
|
+
required: ["feed"],
|
|
21368
|
+
properties: {
|
|
21369
|
+
feed: {
|
|
21370
|
+
type: "string",
|
|
21371
|
+
format: "at-uri"
|
|
21372
|
+
}
|
|
21373
|
+
}
|
|
21374
|
+
},
|
|
21375
|
+
output: {
|
|
21376
|
+
encoding: "application/json",
|
|
21377
|
+
schema: {
|
|
21378
|
+
type: "object",
|
|
21379
|
+
required: ["view", "isOnline", "isValid"],
|
|
21380
|
+
properties: {
|
|
21381
|
+
view: {
|
|
21382
|
+
type: "ref",
|
|
21383
|
+
ref: "lex:app.bsky.feed.defs#generatorView"
|
|
21384
|
+
},
|
|
21385
|
+
isOnline: {
|
|
21386
|
+
type: "boolean"
|
|
21387
|
+
},
|
|
21388
|
+
isValid: {
|
|
21389
|
+
type: "boolean"
|
|
21390
|
+
}
|
|
21391
|
+
}
|
|
21392
|
+
}
|
|
21393
|
+
}
|
|
21394
|
+
}
|
|
21395
|
+
}
|
|
21396
|
+
},
|
|
21397
|
+
AppBskyFeedGetFeedGenerators: {
|
|
21398
|
+
lexicon: 1,
|
|
21399
|
+
id: "app.bsky.feed.getFeedGenerators",
|
|
21400
|
+
defs: {
|
|
21401
|
+
main: {
|
|
21402
|
+
type: "query",
|
|
21403
|
+
description: "Get information about a list of feed generators",
|
|
21404
|
+
parameters: {
|
|
21405
|
+
type: "params",
|
|
21406
|
+
required: ["feeds"],
|
|
21407
|
+
properties: {
|
|
21408
|
+
feeds: {
|
|
21409
|
+
type: "array",
|
|
21410
|
+
items: {
|
|
21411
|
+
type: "string",
|
|
21412
|
+
format: "at-uri"
|
|
21413
|
+
}
|
|
21414
|
+
}
|
|
21415
|
+
}
|
|
21416
|
+
},
|
|
21417
|
+
output: {
|
|
21418
|
+
encoding: "application/json",
|
|
21419
|
+
schema: {
|
|
21420
|
+
type: "object",
|
|
21421
|
+
required: ["feeds"],
|
|
21422
|
+
properties: {
|
|
21423
|
+
feeds: {
|
|
21424
|
+
type: "array",
|
|
21425
|
+
items: {
|
|
21426
|
+
type: "ref",
|
|
21427
|
+
ref: "lex:app.bsky.feed.defs#generatorView"
|
|
21428
|
+
}
|
|
21429
|
+
}
|
|
21430
|
+
}
|
|
21431
|
+
}
|
|
21432
|
+
}
|
|
21433
|
+
}
|
|
21434
|
+
}
|
|
21435
|
+
},
|
|
21436
|
+
AppBskyFeedGetFeedSkeleton: {
|
|
21437
|
+
lexicon: 1,
|
|
21438
|
+
id: "app.bsky.feed.getFeedSkeleton",
|
|
21439
|
+
defs: {
|
|
21440
|
+
main: {
|
|
21441
|
+
type: "query",
|
|
21442
|
+
description: "A skeleton of a feed provided by a feed generator",
|
|
21443
|
+
parameters: {
|
|
21444
|
+
type: "params",
|
|
21445
|
+
required: ["feed"],
|
|
21446
|
+
properties: {
|
|
21447
|
+
feed: {
|
|
21448
|
+
type: "string",
|
|
21449
|
+
format: "at-uri"
|
|
21450
|
+
},
|
|
21451
|
+
limit: {
|
|
21452
|
+
type: "integer",
|
|
21453
|
+
minimum: 1,
|
|
21454
|
+
maximum: 100,
|
|
21455
|
+
default: 50
|
|
21456
|
+
},
|
|
21457
|
+
cursor: {
|
|
21458
|
+
type: "string"
|
|
21459
|
+
}
|
|
21460
|
+
}
|
|
21461
|
+
},
|
|
21462
|
+
output: {
|
|
21463
|
+
encoding: "application/json",
|
|
21464
|
+
schema: {
|
|
21465
|
+
type: "object",
|
|
21466
|
+
required: ["feed"],
|
|
21467
|
+
properties: {
|
|
21468
|
+
cursor: {
|
|
21469
|
+
type: "string"
|
|
21470
|
+
},
|
|
21471
|
+
feed: {
|
|
21472
|
+
type: "array",
|
|
21473
|
+
items: {
|
|
21474
|
+
type: "ref",
|
|
21475
|
+
ref: "lex:app.bsky.feed.defs#skeletonFeedPost"
|
|
21476
|
+
}
|
|
21477
|
+
}
|
|
21478
|
+
}
|
|
21479
|
+
}
|
|
21480
|
+
},
|
|
21481
|
+
errors: [
|
|
21482
|
+
{
|
|
21483
|
+
name: "UnknownFeed"
|
|
21484
|
+
}
|
|
21485
|
+
]
|
|
21486
|
+
}
|
|
21487
|
+
}
|
|
21488
|
+
},
|
|
20952
21489
|
AppBskyFeedGetLikes: {
|
|
20953
21490
|
lexicon: 1,
|
|
20954
21491
|
id: "app.bsky.feed.getLikes",
|
|
@@ -21394,7 +21931,7 @@ var schemaDict = {
|
|
|
21394
21931
|
defs: {
|
|
21395
21932
|
listViewBasic: {
|
|
21396
21933
|
type: "object",
|
|
21397
|
-
required: ["uri", "
|
|
21934
|
+
required: ["uri", "name", "purpose"],
|
|
21398
21935
|
properties: {
|
|
21399
21936
|
uri: {
|
|
21400
21937
|
type: "string",
|
|
@@ -22289,6 +22826,32 @@ var schemaDict = {
|
|
|
22289
22826
|
}
|
|
22290
22827
|
}
|
|
22291
22828
|
}
|
|
22829
|
+
},
|
|
22830
|
+
AppBskyUnspeccedGetPopularFeedGenerators: {
|
|
22831
|
+
lexicon: 1,
|
|
22832
|
+
id: "app.bsky.unspecced.getPopularFeedGenerators",
|
|
22833
|
+
defs: {
|
|
22834
|
+
main: {
|
|
22835
|
+
type: "query",
|
|
22836
|
+
description: "An unspecced view of globally popular feed generators",
|
|
22837
|
+
output: {
|
|
22838
|
+
encoding: "application/json",
|
|
22839
|
+
schema: {
|
|
22840
|
+
type: "object",
|
|
22841
|
+
required: ["feeds"],
|
|
22842
|
+
properties: {
|
|
22843
|
+
feeds: {
|
|
22844
|
+
type: "array",
|
|
22845
|
+
items: {
|
|
22846
|
+
type: "ref",
|
|
22847
|
+
ref: "lex:app.bsky.feed.defs#generatorView"
|
|
22848
|
+
}
|
|
22849
|
+
}
|
|
22850
|
+
}
|
|
22851
|
+
}
|
|
22852
|
+
}
|
|
22853
|
+
}
|
|
22854
|
+
}
|
|
22292
22855
|
}
|
|
22293
22856
|
};
|
|
22294
22857
|
var schemas = Object.values(schemaDict);
|
|
@@ -23245,51 +23808,149 @@ function toKnownErr61(e) {
|
|
|
23245
23808
|
return e;
|
|
23246
23809
|
}
|
|
23247
23810
|
|
|
23248
|
-
// src/client/types/app/bsky/actor/searchActors.ts
|
|
23249
|
-
var searchActors_exports = {};
|
|
23250
|
-
__export(searchActors_exports, {
|
|
23251
|
-
toKnownErr: () => toKnownErr62
|
|
23811
|
+
// src/client/types/app/bsky/actor/searchActors.ts
|
|
23812
|
+
var searchActors_exports = {};
|
|
23813
|
+
__export(searchActors_exports, {
|
|
23814
|
+
toKnownErr: () => toKnownErr62
|
|
23815
|
+
});
|
|
23816
|
+
function toKnownErr62(e) {
|
|
23817
|
+
if (e instanceof XRPCError) {
|
|
23818
|
+
}
|
|
23819
|
+
return e;
|
|
23820
|
+
}
|
|
23821
|
+
|
|
23822
|
+
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
23823
|
+
var searchActorsTypeahead_exports = {};
|
|
23824
|
+
__export(searchActorsTypeahead_exports, {
|
|
23825
|
+
toKnownErr: () => toKnownErr63
|
|
23826
|
+
});
|
|
23827
|
+
function toKnownErr63(e) {
|
|
23828
|
+
if (e instanceof XRPCError) {
|
|
23829
|
+
}
|
|
23830
|
+
return e;
|
|
23831
|
+
}
|
|
23832
|
+
|
|
23833
|
+
// src/client/types/app/bsky/feed/describeFeedGenerator.ts
|
|
23834
|
+
var describeFeedGenerator_exports = {};
|
|
23835
|
+
__export(describeFeedGenerator_exports, {
|
|
23836
|
+
isFeed: () => isFeed,
|
|
23837
|
+
isLinks: () => isLinks2,
|
|
23838
|
+
toKnownErr: () => toKnownErr64,
|
|
23839
|
+
validateFeed: () => validateFeed,
|
|
23840
|
+
validateLinks: () => validateLinks2
|
|
23841
|
+
});
|
|
23842
|
+
function toKnownErr64(e) {
|
|
23843
|
+
if (e instanceof XRPCError) {
|
|
23844
|
+
}
|
|
23845
|
+
return e;
|
|
23846
|
+
}
|
|
23847
|
+
function isFeed(v) {
|
|
23848
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.describeFeedGenerator#feed";
|
|
23849
|
+
}
|
|
23850
|
+
function validateFeed(v) {
|
|
23851
|
+
return lexicons.validate("app.bsky.feed.describeFeedGenerator#feed", v);
|
|
23852
|
+
}
|
|
23853
|
+
function isLinks2(v) {
|
|
23854
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.describeFeedGenerator#links";
|
|
23855
|
+
}
|
|
23856
|
+
function validateLinks2(v) {
|
|
23857
|
+
return lexicons.validate("app.bsky.feed.describeFeedGenerator#links", v);
|
|
23858
|
+
}
|
|
23859
|
+
|
|
23860
|
+
// src/client/types/app/bsky/feed/getActorFeeds.ts
|
|
23861
|
+
var getActorFeeds_exports = {};
|
|
23862
|
+
__export(getActorFeeds_exports, {
|
|
23863
|
+
toKnownErr: () => toKnownErr65
|
|
23864
|
+
});
|
|
23865
|
+
function toKnownErr65(e) {
|
|
23866
|
+
if (e instanceof XRPCError) {
|
|
23867
|
+
}
|
|
23868
|
+
return e;
|
|
23869
|
+
}
|
|
23870
|
+
|
|
23871
|
+
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
23872
|
+
var getAuthorFeed_exports = {};
|
|
23873
|
+
__export(getAuthorFeed_exports, {
|
|
23874
|
+
BlockedActorError: () => BlockedActorError,
|
|
23875
|
+
BlockedByActorError: () => BlockedByActorError,
|
|
23876
|
+
toKnownErr: () => toKnownErr66
|
|
23877
|
+
});
|
|
23878
|
+
var BlockedActorError = class extends XRPCError {
|
|
23879
|
+
constructor(src2) {
|
|
23880
|
+
super(src2.status, src2.error, src2.message);
|
|
23881
|
+
}
|
|
23882
|
+
};
|
|
23883
|
+
var BlockedByActorError = class extends XRPCError {
|
|
23884
|
+
constructor(src2) {
|
|
23885
|
+
super(src2.status, src2.error, src2.message);
|
|
23886
|
+
}
|
|
23887
|
+
};
|
|
23888
|
+
function toKnownErr66(e) {
|
|
23889
|
+
if (e instanceof XRPCError) {
|
|
23890
|
+
if (e.error === "BlockedActor")
|
|
23891
|
+
return new BlockedActorError(e);
|
|
23892
|
+
if (e.error === "BlockedByActor")
|
|
23893
|
+
return new BlockedByActorError(e);
|
|
23894
|
+
}
|
|
23895
|
+
return e;
|
|
23896
|
+
}
|
|
23897
|
+
|
|
23898
|
+
// src/client/types/app/bsky/feed/getFeed.ts
|
|
23899
|
+
var getFeed_exports = {};
|
|
23900
|
+
__export(getFeed_exports, {
|
|
23901
|
+
UnknownFeedError: () => UnknownFeedError,
|
|
23902
|
+
toKnownErr: () => toKnownErr67
|
|
23903
|
+
});
|
|
23904
|
+
var UnknownFeedError = class extends XRPCError {
|
|
23905
|
+
constructor(src2) {
|
|
23906
|
+
super(src2.status, src2.error, src2.message);
|
|
23907
|
+
}
|
|
23908
|
+
};
|
|
23909
|
+
function toKnownErr67(e) {
|
|
23910
|
+
if (e instanceof XRPCError) {
|
|
23911
|
+
if (e.error === "UnknownFeed")
|
|
23912
|
+
return new UnknownFeedError(e);
|
|
23913
|
+
}
|
|
23914
|
+
return e;
|
|
23915
|
+
}
|
|
23916
|
+
|
|
23917
|
+
// src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
23918
|
+
var getFeedGenerator_exports = {};
|
|
23919
|
+
__export(getFeedGenerator_exports, {
|
|
23920
|
+
toKnownErr: () => toKnownErr68
|
|
23252
23921
|
});
|
|
23253
|
-
function
|
|
23922
|
+
function toKnownErr68(e) {
|
|
23254
23923
|
if (e instanceof XRPCError) {
|
|
23255
23924
|
}
|
|
23256
23925
|
return e;
|
|
23257
23926
|
}
|
|
23258
23927
|
|
|
23259
|
-
// src/client/types/app/bsky/
|
|
23260
|
-
var
|
|
23261
|
-
__export(
|
|
23262
|
-
toKnownErr: () =>
|
|
23928
|
+
// src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
23929
|
+
var getFeedGenerators_exports = {};
|
|
23930
|
+
__export(getFeedGenerators_exports, {
|
|
23931
|
+
toKnownErr: () => toKnownErr69
|
|
23263
23932
|
});
|
|
23264
|
-
function
|
|
23933
|
+
function toKnownErr69(e) {
|
|
23265
23934
|
if (e instanceof XRPCError) {
|
|
23266
23935
|
}
|
|
23267
23936
|
return e;
|
|
23268
23937
|
}
|
|
23269
23938
|
|
|
23270
|
-
// src/client/types/app/bsky/feed/
|
|
23271
|
-
var
|
|
23272
|
-
__export(
|
|
23273
|
-
|
|
23274
|
-
|
|
23275
|
-
toKnownErr: () => toKnownErr64
|
|
23939
|
+
// src/client/types/app/bsky/feed/getFeedSkeleton.ts
|
|
23940
|
+
var getFeedSkeleton_exports = {};
|
|
23941
|
+
__export(getFeedSkeleton_exports, {
|
|
23942
|
+
UnknownFeedError: () => UnknownFeedError2,
|
|
23943
|
+
toKnownErr: () => toKnownErr70
|
|
23276
23944
|
});
|
|
23277
|
-
var
|
|
23278
|
-
constructor(src2) {
|
|
23279
|
-
super(src2.status, src2.error, src2.message);
|
|
23280
|
-
}
|
|
23281
|
-
};
|
|
23282
|
-
var BlockedByActorError = class extends XRPCError {
|
|
23945
|
+
var UnknownFeedError2 = class extends XRPCError {
|
|
23283
23946
|
constructor(src2) {
|
|
23284
23947
|
super(src2.status, src2.error, src2.message);
|
|
23285
23948
|
}
|
|
23286
23949
|
};
|
|
23287
|
-
function
|
|
23950
|
+
function toKnownErr70(e) {
|
|
23288
23951
|
if (e instanceof XRPCError) {
|
|
23289
|
-
if (e.error === "
|
|
23290
|
-
return new
|
|
23291
|
-
if (e.error === "BlockedByActor")
|
|
23292
|
-
return new BlockedByActorError(e);
|
|
23952
|
+
if (e.error === "UnknownFeed")
|
|
23953
|
+
return new UnknownFeedError2(e);
|
|
23293
23954
|
}
|
|
23294
23955
|
return e;
|
|
23295
23956
|
}
|
|
@@ -23298,10 +23959,10 @@ function toKnownErr64(e) {
|
|
|
23298
23959
|
var getLikes_exports = {};
|
|
23299
23960
|
__export(getLikes_exports, {
|
|
23300
23961
|
isLike: () => isLike,
|
|
23301
|
-
toKnownErr: () =>
|
|
23962
|
+
toKnownErr: () => toKnownErr71,
|
|
23302
23963
|
validateLike: () => validateLike
|
|
23303
23964
|
});
|
|
23304
|
-
function
|
|
23965
|
+
function toKnownErr71(e) {
|
|
23305
23966
|
if (e instanceof XRPCError) {
|
|
23306
23967
|
}
|
|
23307
23968
|
return e;
|
|
@@ -23317,14 +23978,14 @@ function validateLike(v) {
|
|
|
23317
23978
|
var getPostThread_exports = {};
|
|
23318
23979
|
__export(getPostThread_exports, {
|
|
23319
23980
|
NotFoundError: () => NotFoundError,
|
|
23320
|
-
toKnownErr: () =>
|
|
23981
|
+
toKnownErr: () => toKnownErr72
|
|
23321
23982
|
});
|
|
23322
23983
|
var NotFoundError = class extends XRPCError {
|
|
23323
23984
|
constructor(src2) {
|
|
23324
23985
|
super(src2.status, src2.error, src2.message);
|
|
23325
23986
|
}
|
|
23326
23987
|
};
|
|
23327
|
-
function
|
|
23988
|
+
function toKnownErr72(e) {
|
|
23328
23989
|
if (e instanceof XRPCError) {
|
|
23329
23990
|
if (e.error === "NotFound")
|
|
23330
23991
|
return new NotFoundError(e);
|
|
@@ -23335,9 +23996,9 @@ function toKnownErr66(e) {
|
|
|
23335
23996
|
// src/client/types/app/bsky/feed/getPosts.ts
|
|
23336
23997
|
var getPosts_exports = {};
|
|
23337
23998
|
__export(getPosts_exports, {
|
|
23338
|
-
toKnownErr: () =>
|
|
23999
|
+
toKnownErr: () => toKnownErr73
|
|
23339
24000
|
});
|
|
23340
|
-
function
|
|
24001
|
+
function toKnownErr73(e) {
|
|
23341
24002
|
if (e instanceof XRPCError) {
|
|
23342
24003
|
}
|
|
23343
24004
|
return e;
|
|
@@ -23346,9 +24007,9 @@ function toKnownErr67(e) {
|
|
|
23346
24007
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
23347
24008
|
var getRepostedBy_exports = {};
|
|
23348
24009
|
__export(getRepostedBy_exports, {
|
|
23349
|
-
toKnownErr: () =>
|
|
24010
|
+
toKnownErr: () => toKnownErr74
|
|
23350
24011
|
});
|
|
23351
|
-
function
|
|
24012
|
+
function toKnownErr74(e) {
|
|
23352
24013
|
if (e instanceof XRPCError) {
|
|
23353
24014
|
}
|
|
23354
24015
|
return e;
|
|
@@ -23357,9 +24018,9 @@ function toKnownErr68(e) {
|
|
|
23357
24018
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
23358
24019
|
var getTimeline_exports = {};
|
|
23359
24020
|
__export(getTimeline_exports, {
|
|
23360
|
-
toKnownErr: () =>
|
|
24021
|
+
toKnownErr: () => toKnownErr75
|
|
23361
24022
|
});
|
|
23362
|
-
function
|
|
24023
|
+
function toKnownErr75(e) {
|
|
23363
24024
|
if (e instanceof XRPCError) {
|
|
23364
24025
|
}
|
|
23365
24026
|
return e;
|
|
@@ -23368,9 +24029,9 @@ function toKnownErr69(e) {
|
|
|
23368
24029
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
23369
24030
|
var getBlocks_exports2 = {};
|
|
23370
24031
|
__export(getBlocks_exports2, {
|
|
23371
|
-
toKnownErr: () =>
|
|
24032
|
+
toKnownErr: () => toKnownErr76
|
|
23372
24033
|
});
|
|
23373
|
-
function
|
|
24034
|
+
function toKnownErr76(e) {
|
|
23374
24035
|
if (e instanceof XRPCError) {
|
|
23375
24036
|
}
|
|
23376
24037
|
return e;
|
|
@@ -23379,9 +24040,9 @@ function toKnownErr70(e) {
|
|
|
23379
24040
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
23380
24041
|
var getFollowers_exports = {};
|
|
23381
24042
|
__export(getFollowers_exports, {
|
|
23382
|
-
toKnownErr: () =>
|
|
24043
|
+
toKnownErr: () => toKnownErr77
|
|
23383
24044
|
});
|
|
23384
|
-
function
|
|
24045
|
+
function toKnownErr77(e) {
|
|
23385
24046
|
if (e instanceof XRPCError) {
|
|
23386
24047
|
}
|
|
23387
24048
|
return e;
|
|
@@ -23390,9 +24051,9 @@ function toKnownErr71(e) {
|
|
|
23390
24051
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
23391
24052
|
var getFollows_exports = {};
|
|
23392
24053
|
__export(getFollows_exports, {
|
|
23393
|
-
toKnownErr: () =>
|
|
24054
|
+
toKnownErr: () => toKnownErr78
|
|
23394
24055
|
});
|
|
23395
|
-
function
|
|
24056
|
+
function toKnownErr78(e) {
|
|
23396
24057
|
if (e instanceof XRPCError) {
|
|
23397
24058
|
}
|
|
23398
24059
|
return e;
|
|
@@ -23401,9 +24062,9 @@ function toKnownErr72(e) {
|
|
|
23401
24062
|
// src/client/types/app/bsky/graph/getList.ts
|
|
23402
24063
|
var getList_exports = {};
|
|
23403
24064
|
__export(getList_exports, {
|
|
23404
|
-
toKnownErr: () =>
|
|
24065
|
+
toKnownErr: () => toKnownErr79
|
|
23405
24066
|
});
|
|
23406
|
-
function
|
|
24067
|
+
function toKnownErr79(e) {
|
|
23407
24068
|
if (e instanceof XRPCError) {
|
|
23408
24069
|
}
|
|
23409
24070
|
return e;
|
|
@@ -23412,9 +24073,9 @@ function toKnownErr73(e) {
|
|
|
23412
24073
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
23413
24074
|
var getListMutes_exports = {};
|
|
23414
24075
|
__export(getListMutes_exports, {
|
|
23415
|
-
toKnownErr: () =>
|
|
24076
|
+
toKnownErr: () => toKnownErr80
|
|
23416
24077
|
});
|
|
23417
|
-
function
|
|
24078
|
+
function toKnownErr80(e) {
|
|
23418
24079
|
if (e instanceof XRPCError) {
|
|
23419
24080
|
}
|
|
23420
24081
|
return e;
|
|
@@ -23423,9 +24084,9 @@ function toKnownErr74(e) {
|
|
|
23423
24084
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
23424
24085
|
var getLists_exports = {};
|
|
23425
24086
|
__export(getLists_exports, {
|
|
23426
|
-
toKnownErr: () =>
|
|
24087
|
+
toKnownErr: () => toKnownErr81
|
|
23427
24088
|
});
|
|
23428
|
-
function
|
|
24089
|
+
function toKnownErr81(e) {
|
|
23429
24090
|
if (e instanceof XRPCError) {
|
|
23430
24091
|
}
|
|
23431
24092
|
return e;
|
|
@@ -23434,9 +24095,9 @@ function toKnownErr75(e) {
|
|
|
23434
24095
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
23435
24096
|
var getMutes_exports = {};
|
|
23436
24097
|
__export(getMutes_exports, {
|
|
23437
|
-
toKnownErr: () =>
|
|
24098
|
+
toKnownErr: () => toKnownErr82
|
|
23438
24099
|
});
|
|
23439
|
-
function
|
|
24100
|
+
function toKnownErr82(e) {
|
|
23440
24101
|
if (e instanceof XRPCError) {
|
|
23441
24102
|
}
|
|
23442
24103
|
return e;
|
|
@@ -23445,9 +24106,9 @@ function toKnownErr76(e) {
|
|
|
23445
24106
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
23446
24107
|
var muteActor_exports = {};
|
|
23447
24108
|
__export(muteActor_exports, {
|
|
23448
|
-
toKnownErr: () =>
|
|
24109
|
+
toKnownErr: () => toKnownErr83
|
|
23449
24110
|
});
|
|
23450
|
-
function
|
|
24111
|
+
function toKnownErr83(e) {
|
|
23451
24112
|
if (e instanceof XRPCError) {
|
|
23452
24113
|
}
|
|
23453
24114
|
return e;
|
|
@@ -23456,9 +24117,9 @@ function toKnownErr77(e) {
|
|
|
23456
24117
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
23457
24118
|
var muteActorList_exports = {};
|
|
23458
24119
|
__export(muteActorList_exports, {
|
|
23459
|
-
toKnownErr: () =>
|
|
24120
|
+
toKnownErr: () => toKnownErr84
|
|
23460
24121
|
});
|
|
23461
|
-
function
|
|
24122
|
+
function toKnownErr84(e) {
|
|
23462
24123
|
if (e instanceof XRPCError) {
|
|
23463
24124
|
}
|
|
23464
24125
|
return e;
|
|
@@ -23467,9 +24128,9 @@ function toKnownErr78(e) {
|
|
|
23467
24128
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
23468
24129
|
var unmuteActor_exports = {};
|
|
23469
24130
|
__export(unmuteActor_exports, {
|
|
23470
|
-
toKnownErr: () =>
|
|
24131
|
+
toKnownErr: () => toKnownErr85
|
|
23471
24132
|
});
|
|
23472
|
-
function
|
|
24133
|
+
function toKnownErr85(e) {
|
|
23473
24134
|
if (e instanceof XRPCError) {
|
|
23474
24135
|
}
|
|
23475
24136
|
return e;
|
|
@@ -23478,9 +24139,9 @@ function toKnownErr79(e) {
|
|
|
23478
24139
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
23479
24140
|
var unmuteActorList_exports = {};
|
|
23480
24141
|
__export(unmuteActorList_exports, {
|
|
23481
|
-
toKnownErr: () =>
|
|
24142
|
+
toKnownErr: () => toKnownErr86
|
|
23482
24143
|
});
|
|
23483
|
-
function
|
|
24144
|
+
function toKnownErr86(e) {
|
|
23484
24145
|
if (e instanceof XRPCError) {
|
|
23485
24146
|
}
|
|
23486
24147
|
return e;
|
|
@@ -23489,9 +24150,9 @@ function toKnownErr80(e) {
|
|
|
23489
24150
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
23490
24151
|
var getUnreadCount_exports = {};
|
|
23491
24152
|
__export(getUnreadCount_exports, {
|
|
23492
|
-
toKnownErr: () =>
|
|
24153
|
+
toKnownErr: () => toKnownErr87
|
|
23493
24154
|
});
|
|
23494
|
-
function
|
|
24155
|
+
function toKnownErr87(e) {
|
|
23495
24156
|
if (e instanceof XRPCError) {
|
|
23496
24157
|
}
|
|
23497
24158
|
return e;
|
|
@@ -23501,10 +24162,10 @@ function toKnownErr81(e) {
|
|
|
23501
24162
|
var listNotifications_exports = {};
|
|
23502
24163
|
__export(listNotifications_exports, {
|
|
23503
24164
|
isNotification: () => isNotification,
|
|
23504
|
-
toKnownErr: () =>
|
|
24165
|
+
toKnownErr: () => toKnownErr88,
|
|
23505
24166
|
validateNotification: () => validateNotification
|
|
23506
24167
|
});
|
|
23507
|
-
function
|
|
24168
|
+
function toKnownErr88(e) {
|
|
23508
24169
|
if (e instanceof XRPCError) {
|
|
23509
24170
|
}
|
|
23510
24171
|
return e;
|
|
@@ -23522,9 +24183,9 @@ function validateNotification(v) {
|
|
|
23522
24183
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
23523
24184
|
var updateSeen_exports = {};
|
|
23524
24185
|
__export(updateSeen_exports, {
|
|
23525
|
-
toKnownErr: () =>
|
|
24186
|
+
toKnownErr: () => toKnownErr89
|
|
23526
24187
|
});
|
|
23527
|
-
function
|
|
24188
|
+
function toKnownErr89(e) {
|
|
23528
24189
|
if (e instanceof XRPCError) {
|
|
23529
24190
|
}
|
|
23530
24191
|
return e;
|
|
@@ -23533,9 +24194,20 @@ function toKnownErr83(e) {
|
|
|
23533
24194
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
23534
24195
|
var getPopular_exports = {};
|
|
23535
24196
|
__export(getPopular_exports, {
|
|
23536
|
-
toKnownErr: () =>
|
|
24197
|
+
toKnownErr: () => toKnownErr90
|
|
23537
24198
|
});
|
|
23538
|
-
function
|
|
24199
|
+
function toKnownErr90(e) {
|
|
24200
|
+
if (e instanceof XRPCError) {
|
|
24201
|
+
}
|
|
24202
|
+
return e;
|
|
24203
|
+
}
|
|
24204
|
+
|
|
24205
|
+
// src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
24206
|
+
var getPopularFeedGenerators_exports = {};
|
|
24207
|
+
__export(getPopularFeedGenerators_exports, {
|
|
24208
|
+
toKnownErr: () => toKnownErr91
|
|
24209
|
+
});
|
|
24210
|
+
function toKnownErr91(e) {
|
|
23539
24211
|
if (e instanceof XRPCError) {
|
|
23540
24212
|
}
|
|
23541
24213
|
return e;
|
|
@@ -23844,12 +24516,14 @@ __export(defs_exports5, {
|
|
|
23844
24516
|
isProfileView: () => isProfileView,
|
|
23845
24517
|
isProfileViewBasic: () => isProfileViewBasic,
|
|
23846
24518
|
isProfileViewDetailed: () => isProfileViewDetailed,
|
|
24519
|
+
isSavedFeedsPref: () => isSavedFeedsPref,
|
|
23847
24520
|
isViewerState: () => isViewerState,
|
|
23848
24521
|
validateAdultContentPref: () => validateAdultContentPref,
|
|
23849
24522
|
validateContentLabelPref: () => validateContentLabelPref,
|
|
23850
24523
|
validateProfileView: () => validateProfileView,
|
|
23851
24524
|
validateProfileViewBasic: () => validateProfileViewBasic,
|
|
23852
24525
|
validateProfileViewDetailed: () => validateProfileViewDetailed,
|
|
24526
|
+
validateSavedFeedsPref: () => validateSavedFeedsPref,
|
|
23853
24527
|
validateViewerState: () => validateViewerState
|
|
23854
24528
|
});
|
|
23855
24529
|
function isProfileViewBasic(v) {
|
|
@@ -23888,6 +24562,12 @@ function isContentLabelPref(v) {
|
|
|
23888
24562
|
function validateContentLabelPref(v) {
|
|
23889
24563
|
return lexicons.validate("app.bsky.actor.defs#contentLabelPref", v);
|
|
23890
24564
|
}
|
|
24565
|
+
function isSavedFeedsPref(v) {
|
|
24566
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#savedFeedsPref";
|
|
24567
|
+
}
|
|
24568
|
+
function validateSavedFeedsPref(v) {
|
|
24569
|
+
return lexicons.validate("app.bsky.actor.defs#savedFeedsPref", v);
|
|
24570
|
+
}
|
|
23891
24571
|
|
|
23892
24572
|
// src/client/types/app/bsky/actor/profile.ts
|
|
23893
24573
|
var profile_exports = {};
|
|
@@ -24047,18 +24727,26 @@ var defs_exports6 = {};
|
|
|
24047
24727
|
__export(defs_exports6, {
|
|
24048
24728
|
isBlockedPost: () => isBlockedPost,
|
|
24049
24729
|
isFeedViewPost: () => isFeedViewPost,
|
|
24730
|
+
isGeneratorView: () => isGeneratorView,
|
|
24731
|
+
isGeneratorViewerState: () => isGeneratorViewerState,
|
|
24050
24732
|
isNotFoundPost: () => isNotFoundPost,
|
|
24051
24733
|
isPostView: () => isPostView,
|
|
24052
24734
|
isReasonRepost: () => isReasonRepost,
|
|
24053
24735
|
isReplyRef: () => isReplyRef,
|
|
24736
|
+
isSkeletonFeedPost: () => isSkeletonFeedPost,
|
|
24737
|
+
isSkeletonReasonRepost: () => isSkeletonReasonRepost,
|
|
24054
24738
|
isThreadViewPost: () => isThreadViewPost,
|
|
24055
24739
|
isViewerState: () => isViewerState2,
|
|
24056
24740
|
validateBlockedPost: () => validateBlockedPost,
|
|
24057
24741
|
validateFeedViewPost: () => validateFeedViewPost,
|
|
24742
|
+
validateGeneratorView: () => validateGeneratorView,
|
|
24743
|
+
validateGeneratorViewerState: () => validateGeneratorViewerState,
|
|
24058
24744
|
validateNotFoundPost: () => validateNotFoundPost,
|
|
24059
24745
|
validatePostView: () => validatePostView,
|
|
24060
24746
|
validateReasonRepost: () => validateReasonRepost,
|
|
24061
24747
|
validateReplyRef: () => validateReplyRef,
|
|
24748
|
+
validateSkeletonFeedPost: () => validateSkeletonFeedPost,
|
|
24749
|
+
validateSkeletonReasonRepost: () => validateSkeletonReasonRepost,
|
|
24062
24750
|
validateThreadViewPost: () => validateThreadViewPost,
|
|
24063
24751
|
validateViewerState: () => validateViewerState2
|
|
24064
24752
|
});
|
|
@@ -24110,17 +24798,54 @@ function isBlockedPost(v) {
|
|
|
24110
24798
|
function validateBlockedPost(v) {
|
|
24111
24799
|
return lexicons.validate("app.bsky.feed.defs#blockedPost", v);
|
|
24112
24800
|
}
|
|
24801
|
+
function isGeneratorView(v) {
|
|
24802
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#generatorView";
|
|
24803
|
+
}
|
|
24804
|
+
function validateGeneratorView(v) {
|
|
24805
|
+
return lexicons.validate("app.bsky.feed.defs#generatorView", v);
|
|
24806
|
+
}
|
|
24807
|
+
function isGeneratorViewerState(v) {
|
|
24808
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#generatorViewerState";
|
|
24809
|
+
}
|
|
24810
|
+
function validateGeneratorViewerState(v) {
|
|
24811
|
+
return lexicons.validate("app.bsky.feed.defs#generatorViewerState", v);
|
|
24812
|
+
}
|
|
24813
|
+
function isSkeletonFeedPost(v) {
|
|
24814
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#skeletonFeedPost";
|
|
24815
|
+
}
|
|
24816
|
+
function validateSkeletonFeedPost(v) {
|
|
24817
|
+
return lexicons.validate("app.bsky.feed.defs#skeletonFeedPost", v);
|
|
24818
|
+
}
|
|
24819
|
+
function isSkeletonReasonRepost(v) {
|
|
24820
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.defs#skeletonReasonRepost";
|
|
24821
|
+
}
|
|
24822
|
+
function validateSkeletonReasonRepost(v) {
|
|
24823
|
+
return lexicons.validate("app.bsky.feed.defs#skeletonReasonRepost", v);
|
|
24824
|
+
}
|
|
24113
24825
|
|
|
24114
|
-
// src/client/types/app/bsky/feed/
|
|
24115
|
-
var
|
|
24116
|
-
__export(
|
|
24826
|
+
// src/client/types/app/bsky/feed/generator.ts
|
|
24827
|
+
var generator_exports = {};
|
|
24828
|
+
__export(generator_exports, {
|
|
24117
24829
|
isRecord: () => isRecord3,
|
|
24118
24830
|
validateRecord: () => validateRecord3
|
|
24119
24831
|
});
|
|
24120
24832
|
function isRecord3(v) {
|
|
24121
|
-
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.
|
|
24833
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.generator#main" || v.$type === "app.bsky.feed.generator");
|
|
24122
24834
|
}
|
|
24123
24835
|
function validateRecord3(v) {
|
|
24836
|
+
return lexicons.validate("app.bsky.feed.generator#main", v);
|
|
24837
|
+
}
|
|
24838
|
+
|
|
24839
|
+
// src/client/types/app/bsky/feed/like.ts
|
|
24840
|
+
var like_exports = {};
|
|
24841
|
+
__export(like_exports, {
|
|
24842
|
+
isRecord: () => isRecord4,
|
|
24843
|
+
validateRecord: () => validateRecord4
|
|
24844
|
+
});
|
|
24845
|
+
function isRecord4(v) {
|
|
24846
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.like#main" || v.$type === "app.bsky.feed.like");
|
|
24847
|
+
}
|
|
24848
|
+
function validateRecord4(v) {
|
|
24124
24849
|
return lexicons.validate("app.bsky.feed.like#main", v);
|
|
24125
24850
|
}
|
|
24126
24851
|
|
|
@@ -24128,18 +24853,18 @@ function validateRecord3(v) {
|
|
|
24128
24853
|
var post_exports = {};
|
|
24129
24854
|
__export(post_exports, {
|
|
24130
24855
|
isEntity: () => isEntity,
|
|
24131
|
-
isRecord: () =>
|
|
24856
|
+
isRecord: () => isRecord5,
|
|
24132
24857
|
isReplyRef: () => isReplyRef2,
|
|
24133
24858
|
isTextSlice: () => isTextSlice,
|
|
24134
24859
|
validateEntity: () => validateEntity,
|
|
24135
|
-
validateRecord: () =>
|
|
24860
|
+
validateRecord: () => validateRecord5,
|
|
24136
24861
|
validateReplyRef: () => validateReplyRef2,
|
|
24137
24862
|
validateTextSlice: () => validateTextSlice
|
|
24138
24863
|
});
|
|
24139
|
-
function
|
|
24864
|
+
function isRecord5(v) {
|
|
24140
24865
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.post#main" || v.$type === "app.bsky.feed.post");
|
|
24141
24866
|
}
|
|
24142
|
-
function
|
|
24867
|
+
function validateRecord5(v) {
|
|
24143
24868
|
return lexicons.validate("app.bsky.feed.post#main", v);
|
|
24144
24869
|
}
|
|
24145
24870
|
function isReplyRef2(v) {
|
|
@@ -24164,26 +24889,26 @@ function validateTextSlice(v) {
|
|
|
24164
24889
|
// src/client/types/app/bsky/feed/repost.ts
|
|
24165
24890
|
var repost_exports = {};
|
|
24166
24891
|
__export(repost_exports, {
|
|
24167
|
-
isRecord: () =>
|
|
24168
|
-
validateRecord: () =>
|
|
24892
|
+
isRecord: () => isRecord6,
|
|
24893
|
+
validateRecord: () => validateRecord6
|
|
24169
24894
|
});
|
|
24170
|
-
function
|
|
24895
|
+
function isRecord6(v) {
|
|
24171
24896
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.repost#main" || v.$type === "app.bsky.feed.repost");
|
|
24172
24897
|
}
|
|
24173
|
-
function
|
|
24898
|
+
function validateRecord6(v) {
|
|
24174
24899
|
return lexicons.validate("app.bsky.feed.repost#main", v);
|
|
24175
24900
|
}
|
|
24176
24901
|
|
|
24177
24902
|
// src/client/types/app/bsky/graph/block.ts
|
|
24178
24903
|
var block_exports = {};
|
|
24179
24904
|
__export(block_exports, {
|
|
24180
|
-
isRecord: () =>
|
|
24181
|
-
validateRecord: () =>
|
|
24905
|
+
isRecord: () => isRecord7,
|
|
24906
|
+
validateRecord: () => validateRecord7
|
|
24182
24907
|
});
|
|
24183
|
-
function
|
|
24908
|
+
function isRecord7(v) {
|
|
24184
24909
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.block#main" || v.$type === "app.bsky.graph.block");
|
|
24185
24910
|
}
|
|
24186
|
-
function
|
|
24911
|
+
function validateRecord7(v) {
|
|
24187
24912
|
return lexicons.validate("app.bsky.graph.block#main", v);
|
|
24188
24913
|
}
|
|
24189
24914
|
|
|
@@ -24229,39 +24954,39 @@ function validateListViewerState(v) {
|
|
|
24229
24954
|
// src/client/types/app/bsky/graph/follow.ts
|
|
24230
24955
|
var follow_exports = {};
|
|
24231
24956
|
__export(follow_exports, {
|
|
24232
|
-
isRecord: () =>
|
|
24233
|
-
validateRecord: () =>
|
|
24957
|
+
isRecord: () => isRecord8,
|
|
24958
|
+
validateRecord: () => validateRecord8
|
|
24234
24959
|
});
|
|
24235
|
-
function
|
|
24960
|
+
function isRecord8(v) {
|
|
24236
24961
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.follow#main" || v.$type === "app.bsky.graph.follow");
|
|
24237
24962
|
}
|
|
24238
|
-
function
|
|
24963
|
+
function validateRecord8(v) {
|
|
24239
24964
|
return lexicons.validate("app.bsky.graph.follow#main", v);
|
|
24240
24965
|
}
|
|
24241
24966
|
|
|
24242
24967
|
// src/client/types/app/bsky/graph/list.ts
|
|
24243
24968
|
var list_exports = {};
|
|
24244
24969
|
__export(list_exports, {
|
|
24245
|
-
isRecord: () =>
|
|
24246
|
-
validateRecord: () =>
|
|
24970
|
+
isRecord: () => isRecord9,
|
|
24971
|
+
validateRecord: () => validateRecord9
|
|
24247
24972
|
});
|
|
24248
|
-
function
|
|
24973
|
+
function isRecord9(v) {
|
|
24249
24974
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.list#main" || v.$type === "app.bsky.graph.list");
|
|
24250
24975
|
}
|
|
24251
|
-
function
|
|
24976
|
+
function validateRecord9(v) {
|
|
24252
24977
|
return lexicons.validate("app.bsky.graph.list#main", v);
|
|
24253
24978
|
}
|
|
24254
24979
|
|
|
24255
24980
|
// src/client/types/app/bsky/graph/listitem.ts
|
|
24256
24981
|
var listitem_exports = {};
|
|
24257
24982
|
__export(listitem_exports, {
|
|
24258
|
-
isRecord: () =>
|
|
24259
|
-
validateRecord: () =>
|
|
24983
|
+
isRecord: () => isRecord10,
|
|
24984
|
+
validateRecord: () => validateRecord10
|
|
24260
24985
|
});
|
|
24261
|
-
function
|
|
24986
|
+
function isRecord10(v) {
|
|
24262
24987
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.listitem#main" || v.$type === "app.bsky.graph.listitem");
|
|
24263
24988
|
}
|
|
24264
|
-
function
|
|
24989
|
+
function validateRecord10(v) {
|
|
24265
24990
|
return lexicons.validate("app.bsky.graph.listitem#main", v);
|
|
24266
24991
|
}
|
|
24267
24992
|
|
|
@@ -24777,39 +25502,107 @@ var EmbedNS = class {
|
|
|
24777
25502
|
var FeedNS = class {
|
|
24778
25503
|
constructor(service) {
|
|
24779
25504
|
this._service = service;
|
|
25505
|
+
this.generator = new GeneratorRecord(service);
|
|
24780
25506
|
this.like = new LikeRecord(service);
|
|
24781
25507
|
this.post = new PostRecord(service);
|
|
24782
25508
|
this.repost = new RepostRecord(service);
|
|
24783
25509
|
}
|
|
25510
|
+
describeFeedGenerator(params2, opts) {
|
|
25511
|
+
return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
25512
|
+
throw toKnownErr64(e);
|
|
25513
|
+
});
|
|
25514
|
+
}
|
|
25515
|
+
getActorFeeds(params2, opts) {
|
|
25516
|
+
return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
|
|
25517
|
+
throw toKnownErr65(e);
|
|
25518
|
+
});
|
|
25519
|
+
}
|
|
24784
25520
|
getAuthorFeed(params2, opts) {
|
|
24785
25521
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
24786
|
-
throw
|
|
25522
|
+
throw toKnownErr66(e);
|
|
25523
|
+
});
|
|
25524
|
+
}
|
|
25525
|
+
getFeed(params2, opts) {
|
|
25526
|
+
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
25527
|
+
throw toKnownErr67(e);
|
|
25528
|
+
});
|
|
25529
|
+
}
|
|
25530
|
+
getFeedGenerator(params2, opts) {
|
|
25531
|
+
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
25532
|
+
throw toKnownErr68(e);
|
|
25533
|
+
});
|
|
25534
|
+
}
|
|
25535
|
+
getFeedGenerators(params2, opts) {
|
|
25536
|
+
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
25537
|
+
throw toKnownErr69(e);
|
|
25538
|
+
});
|
|
25539
|
+
}
|
|
25540
|
+
getFeedSkeleton(params2, opts) {
|
|
25541
|
+
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
25542
|
+
throw toKnownErr70(e);
|
|
24787
25543
|
});
|
|
24788
25544
|
}
|
|
24789
25545
|
getLikes(params2, opts) {
|
|
24790
25546
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
24791
|
-
throw
|
|
25547
|
+
throw toKnownErr71(e);
|
|
24792
25548
|
});
|
|
24793
25549
|
}
|
|
24794
25550
|
getPostThread(params2, opts) {
|
|
24795
25551
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
24796
|
-
throw
|
|
25552
|
+
throw toKnownErr72(e);
|
|
24797
25553
|
});
|
|
24798
25554
|
}
|
|
24799
25555
|
getPosts(params2, opts) {
|
|
24800
25556
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
24801
|
-
throw
|
|
25557
|
+
throw toKnownErr73(e);
|
|
24802
25558
|
});
|
|
24803
25559
|
}
|
|
24804
25560
|
getRepostedBy(params2, opts) {
|
|
24805
25561
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
24806
|
-
throw
|
|
25562
|
+
throw toKnownErr74(e);
|
|
24807
25563
|
});
|
|
24808
25564
|
}
|
|
24809
25565
|
getTimeline(params2, opts) {
|
|
24810
25566
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
24811
|
-
throw
|
|
25567
|
+
throw toKnownErr75(e);
|
|
25568
|
+
});
|
|
25569
|
+
}
|
|
25570
|
+
};
|
|
25571
|
+
var GeneratorRecord = class {
|
|
25572
|
+
constructor(service) {
|
|
25573
|
+
this._service = service;
|
|
25574
|
+
}
|
|
25575
|
+
async list(params2) {
|
|
25576
|
+
const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
|
|
25577
|
+
collection: "app.bsky.feed.generator",
|
|
25578
|
+
...params2
|
|
25579
|
+
});
|
|
25580
|
+
return res.data;
|
|
25581
|
+
}
|
|
25582
|
+
async get(params2) {
|
|
25583
|
+
const res = await this._service.xrpc.call("com.atproto.repo.getRecord", {
|
|
25584
|
+
collection: "app.bsky.feed.generator",
|
|
25585
|
+
...params2
|
|
24812
25586
|
});
|
|
25587
|
+
return res.data;
|
|
25588
|
+
}
|
|
25589
|
+
async create(params2, record, headers) {
|
|
25590
|
+
record.$type = "app.bsky.feed.generator";
|
|
25591
|
+
const res = await this._service.xrpc.call(
|
|
25592
|
+
"com.atproto.repo.createRecord",
|
|
25593
|
+
void 0,
|
|
25594
|
+
{ collection: "app.bsky.feed.generator", ...params2, record },
|
|
25595
|
+
{ encoding: "application/json", headers }
|
|
25596
|
+
);
|
|
25597
|
+
return res.data;
|
|
25598
|
+
}
|
|
25599
|
+
async delete(params2, headers) {
|
|
25600
|
+
await this._service.xrpc.call(
|
|
25601
|
+
"com.atproto.repo.deleteRecord",
|
|
25602
|
+
void 0,
|
|
25603
|
+
{ collection: "app.bsky.feed.generator", ...params2 },
|
|
25604
|
+
{ headers }
|
|
25605
|
+
);
|
|
24813
25606
|
}
|
|
24814
25607
|
};
|
|
24815
25608
|
var LikeRecord = class {
|
|
@@ -24933,57 +25726,57 @@ var GraphNS = class {
|
|
|
24933
25726
|
}
|
|
24934
25727
|
getBlocks(params2, opts) {
|
|
24935
25728
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
24936
|
-
throw
|
|
25729
|
+
throw toKnownErr76(e);
|
|
24937
25730
|
});
|
|
24938
25731
|
}
|
|
24939
25732
|
getFollowers(params2, opts) {
|
|
24940
25733
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
24941
|
-
throw
|
|
25734
|
+
throw toKnownErr77(e);
|
|
24942
25735
|
});
|
|
24943
25736
|
}
|
|
24944
25737
|
getFollows(params2, opts) {
|
|
24945
25738
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
24946
|
-
throw
|
|
25739
|
+
throw toKnownErr78(e);
|
|
24947
25740
|
});
|
|
24948
25741
|
}
|
|
24949
25742
|
getList(params2, opts) {
|
|
24950
25743
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
24951
|
-
throw
|
|
25744
|
+
throw toKnownErr79(e);
|
|
24952
25745
|
});
|
|
24953
25746
|
}
|
|
24954
25747
|
getListMutes(params2, opts) {
|
|
24955
25748
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
24956
|
-
throw
|
|
25749
|
+
throw toKnownErr80(e);
|
|
24957
25750
|
});
|
|
24958
25751
|
}
|
|
24959
25752
|
getLists(params2, opts) {
|
|
24960
25753
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
24961
|
-
throw
|
|
25754
|
+
throw toKnownErr81(e);
|
|
24962
25755
|
});
|
|
24963
25756
|
}
|
|
24964
25757
|
getMutes(params2, opts) {
|
|
24965
25758
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
24966
|
-
throw
|
|
25759
|
+
throw toKnownErr82(e);
|
|
24967
25760
|
});
|
|
24968
25761
|
}
|
|
24969
25762
|
muteActor(data, opts) {
|
|
24970
25763
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
24971
|
-
throw
|
|
25764
|
+
throw toKnownErr83(e);
|
|
24972
25765
|
});
|
|
24973
25766
|
}
|
|
24974
25767
|
muteActorList(data, opts) {
|
|
24975
25768
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
24976
|
-
throw
|
|
25769
|
+
throw toKnownErr84(e);
|
|
24977
25770
|
});
|
|
24978
25771
|
}
|
|
24979
25772
|
unmuteActor(data, opts) {
|
|
24980
25773
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
24981
|
-
throw
|
|
25774
|
+
throw toKnownErr85(e);
|
|
24982
25775
|
});
|
|
24983
25776
|
}
|
|
24984
25777
|
unmuteActorList(data, opts) {
|
|
24985
25778
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
24986
|
-
throw
|
|
25779
|
+
throw toKnownErr86(e);
|
|
24987
25780
|
});
|
|
24988
25781
|
}
|
|
24989
25782
|
};
|
|
@@ -25141,17 +25934,17 @@ var NotificationNS = class {
|
|
|
25141
25934
|
}
|
|
25142
25935
|
getUnreadCount(params2, opts) {
|
|
25143
25936
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
25144
|
-
throw
|
|
25937
|
+
throw toKnownErr87(e);
|
|
25145
25938
|
});
|
|
25146
25939
|
}
|
|
25147
25940
|
listNotifications(params2, opts) {
|
|
25148
25941
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
25149
|
-
throw
|
|
25942
|
+
throw toKnownErr88(e);
|
|
25150
25943
|
});
|
|
25151
25944
|
}
|
|
25152
25945
|
updateSeen(data, opts) {
|
|
25153
25946
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
25154
|
-
throw
|
|
25947
|
+
throw toKnownErr89(e);
|
|
25155
25948
|
});
|
|
25156
25949
|
}
|
|
25157
25950
|
};
|
|
@@ -25166,7 +25959,17 @@ var UnspeccedNS = class {
|
|
|
25166
25959
|
}
|
|
25167
25960
|
getPopular(params2, opts) {
|
|
25168
25961
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
25169
|
-
throw
|
|
25962
|
+
throw toKnownErr90(e);
|
|
25963
|
+
});
|
|
25964
|
+
}
|
|
25965
|
+
getPopularFeedGenerators(params2, opts) {
|
|
25966
|
+
return this._service.xrpc.call(
|
|
25967
|
+
"app.bsky.unspecced.getPopularFeedGenerators",
|
|
25968
|
+
params2,
|
|
25969
|
+
void 0,
|
|
25970
|
+
opts
|
|
25971
|
+
).catch((e) => {
|
|
25972
|
+
throw toKnownErr91(e);
|
|
25170
25973
|
});
|
|
25171
25974
|
}
|
|
25172
25975
|
};
|