@atproto/api 0.3.7 → 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/index.js CHANGED
@@ -8926,6 +8926,7 @@ __export(src_exports4, {
8926
8926
  AppBskyNotificationUpdateSeen: () => updateSeen_exports,
8927
8927
  AppBskyRichtextFacet: () => facet_exports,
8928
8928
  AppBskyUnspeccedGetPopular: () => getPopular_exports,
8929
+ AppBskyUnspeccedGetPopularFeedGenerators: () => getPopularFeedGenerators_exports,
8929
8930
  AppNS: () => AppNS,
8930
8931
  AtUri: () => AtUri,
8931
8932
  AtpAgent: () => AtpAgent,
@@ -15214,218 +15215,6 @@ function parseRelative(str) {
15214
15215
  return void 0;
15215
15216
  }
15216
15217
 
15217
- // ../lexicon/src/types.ts
15218
- var lexBoolean = z.object({
15219
- type: z.literal("boolean"),
15220
- description: z.string().optional(),
15221
- default: z.boolean().optional(),
15222
- const: z.boolean().optional()
15223
- });
15224
- var lexInteger = z.object({
15225
- type: z.literal("integer"),
15226
- description: z.string().optional(),
15227
- default: z.number().int().optional(),
15228
- minimum: z.number().int().optional(),
15229
- maximum: z.number().int().optional(),
15230
- enum: z.number().int().array().optional(),
15231
- const: z.number().int().optional()
15232
- });
15233
- var lexStringFormat = z.enum([
15234
- "datetime",
15235
- "uri",
15236
- "at-uri",
15237
- "did",
15238
- "handle",
15239
- "at-identifier",
15240
- "nsid",
15241
- "cid"
15242
- ]);
15243
- var lexString = z.object({
15244
- type: z.literal("string"),
15245
- format: lexStringFormat.optional(),
15246
- description: z.string().optional(),
15247
- default: z.string().optional(),
15248
- minLength: z.number().int().optional(),
15249
- maxLength: z.number().int().optional(),
15250
- minGraphemes: z.number().int().optional(),
15251
- maxGraphemes: z.number().int().optional(),
15252
- enum: z.string().array().optional(),
15253
- const: z.string().optional(),
15254
- knownValues: z.string().array().optional()
15255
- });
15256
- var lexUnknown = z.object({
15257
- type: z.literal("unknown"),
15258
- description: z.string().optional()
15259
- });
15260
- var lexPrimitive = z.discriminatedUnion("type", [
15261
- lexBoolean,
15262
- lexInteger,
15263
- lexString,
15264
- lexUnknown
15265
- ]);
15266
- var lexBytes = z.object({
15267
- type: z.literal("bytes"),
15268
- description: z.string().optional(),
15269
- maxLength: z.number().optional(),
15270
- minLength: z.number().optional()
15271
- });
15272
- var lexCidLink = z.object({
15273
- type: z.literal("cid-link"),
15274
- description: z.string().optional()
15275
- });
15276
- var lexIpldType = z.discriminatedUnion("type", [lexBytes, lexCidLink]);
15277
- var lexRef = z.object({
15278
- type: z.literal("ref"),
15279
- description: z.string().optional(),
15280
- ref: z.string()
15281
- });
15282
- var lexRefUnion = z.object({
15283
- type: z.literal("union"),
15284
- description: z.string().optional(),
15285
- refs: z.string().array(),
15286
- closed: z.boolean().optional()
15287
- });
15288
- var lexRefVariant = z.discriminatedUnion("type", [lexRef, lexRefUnion]);
15289
- var lexBlob = z.object({
15290
- type: z.literal("blob"),
15291
- description: z.string().optional(),
15292
- accept: z.string().array().optional(),
15293
- maxSize: z.number().optional()
15294
- });
15295
- var lexArray = z.object({
15296
- type: z.literal("array"),
15297
- description: z.string().optional(),
15298
- items: z.union([lexPrimitive, lexIpldType, lexBlob, lexRefVariant]),
15299
- minLength: z.number().int().optional(),
15300
- maxLength: z.number().int().optional()
15301
- });
15302
- var lexPrimitiveArray = lexArray.merge(
15303
- z.object({
15304
- items: lexPrimitive
15305
- })
15306
- );
15307
- var lexToken = z.object({
15308
- type: z.literal("token"),
15309
- description: z.string().optional()
15310
- });
15311
- var lexObject = z.object({
15312
- type: z.literal("object"),
15313
- description: z.string().optional(),
15314
- required: z.string().array().optional(),
15315
- nullable: z.string().array().optional(),
15316
- properties: z.record(
15317
- z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive])
15318
- ).optional()
15319
- });
15320
- var lexXrpcParameters = z.object({
15321
- type: z.literal("params"),
15322
- description: z.string().optional(),
15323
- required: z.string().array().optional(),
15324
- properties: z.record(z.union([lexPrimitive, lexPrimitiveArray]))
15325
- });
15326
- var lexXrpcBody = z.object({
15327
- description: z.string().optional(),
15328
- encoding: z.string(),
15329
- schema: z.union([lexRefVariant, lexObject]).optional()
15330
- });
15331
- var lexXrpcSubscriptionMessage = z.object({
15332
- description: z.string().optional(),
15333
- schema: z.union([lexRefVariant, lexObject]).optional()
15334
- });
15335
- var lexXrpcError = z.object({
15336
- name: z.string(),
15337
- description: z.string().optional()
15338
- });
15339
- var lexXrpcQuery = z.object({
15340
- type: z.literal("query"),
15341
- description: z.string().optional(),
15342
- parameters: lexXrpcParameters.optional(),
15343
- output: lexXrpcBody.optional(),
15344
- errors: lexXrpcError.array().optional()
15345
- });
15346
- var lexXrpcProcedure = z.object({
15347
- type: z.literal("procedure"),
15348
- description: z.string().optional(),
15349
- parameters: lexXrpcParameters.optional(),
15350
- input: lexXrpcBody.optional(),
15351
- output: lexXrpcBody.optional(),
15352
- errors: lexXrpcError.array().optional()
15353
- });
15354
- var lexXrpcSubscription = z.object({
15355
- type: z.literal("subscription"),
15356
- description: z.string().optional(),
15357
- parameters: lexXrpcParameters.optional(),
15358
- message: lexXrpcSubscriptionMessage.optional(),
15359
- infos: lexXrpcError.array().optional(),
15360
- errors: lexXrpcError.array().optional()
15361
- });
15362
- var lexRecord = z.object({
15363
- type: z.literal("record"),
15364
- description: z.string().optional(),
15365
- key: z.string().optional(),
15366
- record: lexObject
15367
- });
15368
- var lexUserType = z.discriminatedUnion("type", [
15369
- lexRecord,
15370
- lexXrpcQuery,
15371
- lexXrpcProcedure,
15372
- lexXrpcSubscription,
15373
- lexBlob,
15374
- lexArray,
15375
- lexToken,
15376
- lexObject,
15377
- lexBoolean,
15378
- lexInteger,
15379
- lexString,
15380
- lexBytes,
15381
- lexCidLink,
15382
- lexUnknown
15383
- ]);
15384
- var lexiconDoc = z.object({
15385
- lexicon: z.literal(1),
15386
- id: z.string().refine((v) => NSID.isValid(v), {
15387
- message: "Must be a valid NSID"
15388
- }),
15389
- revision: z.number().optional(),
15390
- description: z.string().optional(),
15391
- defs: z.record(lexUserType)
15392
- }).superRefine((doc, ctx) => {
15393
- for (const defId in doc.defs) {
15394
- const def2 = doc.defs[defId];
15395
- if (defId !== "main" && (def2.type === "record" || def2.type === "procedure" || def2.type === "query" || def2.type === "subscription")) {
15396
- ctx.addIssue({
15397
- code: z.ZodIssueCode.custom,
15398
- message: `Records, procedures, queries, and subscriptions must be the main definition.`
15399
- });
15400
- }
15401
- }
15402
- });
15403
- function isObj(obj) {
15404
- return obj !== null && typeof obj === "object";
15405
- }
15406
- function hasProp(data, prop) {
15407
- return prop in data;
15408
- }
15409
- var discriminatedObject = z.object({ $type: z.string() });
15410
- function isDiscriminatedObject(value) {
15411
- return discriminatedObject.safeParse(value).success;
15412
- }
15413
- var LexiconDocMalformedError = class extends Error {
15414
- constructor(message, schemaDef, issues) {
15415
- super(message);
15416
- this.schemaDef = schemaDef;
15417
- this.issues = issues;
15418
- this.schemaDef = schemaDef;
15419
- this.issues = issues;
15420
- }
15421
- };
15422
- var ValidationError = class extends Error {
15423
- };
15424
- var InvalidLexiconError = class extends Error {
15425
- };
15426
- var LexiconDefNotFoundError = class extends Error {
15427
- };
15428
-
15429
15218
  // ../lexicon/src/validators/formats.ts
15430
15219
  var import_iso_datestring_validator = __toESM(require_dist());
15431
15220
  function datetime(path, value) {
@@ -16016,6 +15805,290 @@ function toConcreteTypes(lexicons2, def2) {
16016
15805
  return [def2];
16017
15806
  }
16018
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
+ };
16019
16092
 
16020
16093
  // ../lexicon/src/validators/xrpc.ts
16021
16094
  function params(lexicons2, path, def2, val) {
@@ -16435,6 +16508,13 @@ function encodeQueryParam(type, value) {
16435
16508
  }
16436
16509
  throw new Error(`Unsupported query param type: ${type}`);
16437
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
+ }
16438
16518
  function constructMethodCallHeaders(schema2, data, opts) {
16439
16519
  const headers = opts?.headers || {};
16440
16520
  if (schema2.type === "procedure") {
@@ -16450,16 +16530,16 @@ function constructMethodCallHeaders(schema2, data, opts) {
16450
16530
  return headers;
16451
16531
  }
16452
16532
  function encodeMethodCallBody(headers, data) {
16453
- if (!headers["Content-Type"] || typeof data === "undefined") {
16533
+ if (!headers["content-type"] || typeof data === "undefined") {
16454
16534
  return void 0;
16455
16535
  }
16456
16536
  if (data instanceof ArrayBuffer) {
16457
16537
  return data;
16458
16538
  }
16459
- if (headers["Content-Type"].startsWith("text/")) {
16539
+ if (headers["content-type"].startsWith("text/")) {
16460
16540
  return new TextEncoder().encode(data.toString());
16461
16541
  }
16462
- if (headers["Content-Type"].startsWith("application/json")) {
16542
+ if (headers["content-type"].startsWith("application/json")) {
16463
16543
  return new TextEncoder().encode(stringifyLex(data));
16464
16544
  }
16465
16545
  return data;
@@ -16592,10 +16672,11 @@ var ServiceClient = class {
16592
16672
  };
16593
16673
  async function defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody) {
16594
16674
  try {
16675
+ const headers = normalizeHeaders(httpHeaders);
16595
16676
  const reqInit = {
16596
16677
  method: httpMethod,
16597
- headers: httpHeaders,
16598
- body: encodeMethodCallBody(httpHeaders, httpReqBody),
16678
+ headers,
16679
+ body: encodeMethodCallBody(headers, httpReqBody),
16599
16680
  duplex: "half"
16600
16681
  };
16601
16682
  const res = await fetch(httpUri, reqInit);
@@ -18211,7 +18292,7 @@ var schemaDict = {
18211
18292
  create: {
18212
18293
  type: "object",
18213
18294
  description: "Create a new record.",
18214
- required: ["action", "collection", "value"],
18295
+ required: ["collection", "value"],
18215
18296
  properties: {
18216
18297
  collection: {
18217
18298
  type: "string",
@@ -18229,7 +18310,7 @@ var schemaDict = {
18229
18310
  update: {
18230
18311
  type: "object",
18231
18312
  description: "Update an existing record.",
18232
- required: ["action", "collection", "rkey", "value"],
18313
+ required: ["collection", "rkey", "value"],
18233
18314
  properties: {
18234
18315
  collection: {
18235
18316
  type: "string",
@@ -18246,7 +18327,7 @@ var schemaDict = {
18246
18327
  delete: {
18247
18328
  type: "object",
18248
18329
  description: "Delete an existing record.",
18249
- required: ["action", "collection", "rkey"],
18330
+ required: ["collection", "rkey"],
18250
18331
  properties: {
18251
18332
  collection: {
18252
18333
  type: "string",
@@ -21009,7 +21090,7 @@ var schemaDict = {
21009
21090
  properties: {
21010
21091
  repost: {
21011
21092
  type: "string",
21012
- ref: "at-uri"
21093
+ format: "at-uri"
21013
21094
  }
21014
21095
  }
21015
21096
  }
@@ -21850,7 +21931,7 @@ var schemaDict = {
21850
21931
  defs: {
21851
21932
  listViewBasic: {
21852
21933
  type: "object",
21853
- required: ["uri", "creator", "name", "purpose"],
21934
+ required: ["uri", "name", "purpose"],
21854
21935
  properties: {
21855
21936
  uri: {
21856
21937
  type: "string",
@@ -22745,6 +22826,32 @@ var schemaDict = {
22745
22826
  }
22746
22827
  }
22747
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
+ }
22748
22855
  }
22749
22856
  };
22750
22857
  var schemas = Object.values(schemaDict);
@@ -24095,6 +24202,17 @@ function toKnownErr90(e) {
24095
24202
  return e;
24096
24203
  }
24097
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) {
24211
+ if (e instanceof XRPCError) {
24212
+ }
24213
+ return e;
24214
+ }
24215
+
24098
24216
  // src/client/types/com/atproto/admin/defs.ts
24099
24217
  var defs_exports = {};
24100
24218
  __export(defs_exports, {
@@ -25844,6 +25962,16 @@ var UnspeccedNS = class {
25844
25962
  throw toKnownErr90(e);
25845
25963
  });
25846
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);
25973
+ });
25974
+ }
25847
25975
  };
25848
25976
 
25849
25977
  // src/agent.ts