@atproto/ozone 0.0.4 → 0.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atproto/ozone
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`5368245a`](https://github.com/bluesky-social/atproto/commit/5368245a6ef7095c86ad166fb04ff9bef27c3c3e)]:
8
+ - @atproto/api@0.9.3
9
+
3
10
  ## 0.0.4
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -109423,6 +109423,53 @@ var schemaDict = {
109423
109423
  }
109424
109424
  }
109425
109425
  },
109426
+ AppBskyUnspeccedGetTaggedSuggestions: {
109427
+ lexicon: 1,
109428
+ id: "app.bsky.unspecced.getTaggedSuggestions",
109429
+ defs: {
109430
+ main: {
109431
+ type: "query",
109432
+ description: "Get a list of suggestions (feeds and users) tagged with categories",
109433
+ parameters: {
109434
+ type: "params",
109435
+ properties: {}
109436
+ },
109437
+ output: {
109438
+ encoding: "application/json",
109439
+ schema: {
109440
+ type: "object",
109441
+ required: ["suggestions"],
109442
+ properties: {
109443
+ suggestions: {
109444
+ type: "array",
109445
+ items: {
109446
+ type: "ref",
109447
+ ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
109448
+ }
109449
+ }
109450
+ }
109451
+ }
109452
+ }
109453
+ },
109454
+ suggestion: {
109455
+ type: "object",
109456
+ required: ["tag", "subjectType", "subject"],
109457
+ properties: {
109458
+ tag: {
109459
+ type: "string"
109460
+ },
109461
+ subjectType: {
109462
+ type: "string",
109463
+ knownValues: ["actor", "feed"]
109464
+ },
109465
+ subject: {
109466
+ type: "string",
109467
+ format: "uri"
109468
+ }
109469
+ }
109470
+ }
109471
+ }
109472
+ },
109426
109473
  AppBskyUnspeccedGetTimelineSkeleton: {
109427
109474
  lexicon: 1,
109428
109475
  id: "app.bsky.unspecced.getTimelineSkeleton",
@@ -118434,6 +118481,10 @@ var AppBskyUnspeccedNS = class {
118434
118481
  const nsid2 = "app.bsky.unspecced.getPopularFeedGenerators";
118435
118482
  return this._server.xrpc.method(nsid2, cfg);
118436
118483
  }
118484
+ getTaggedSuggestions(cfg) {
118485
+ const nsid2 = "app.bsky.unspecced.getTaggedSuggestions";
118486
+ return this._server.xrpc.method(nsid2, cfg);
118487
+ }
118437
118488
  getTimelineSkeleton(cfg) {
118438
118489
  const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
118439
118490
  return this._server.xrpc.method(nsid2, cfg);
@@ -126613,6 +126664,53 @@ var schemaDict2 = {
126613
126664
  }
126614
126665
  }
126615
126666
  },
126667
+ AppBskyUnspeccedGetTaggedSuggestions: {
126668
+ lexicon: 1,
126669
+ id: "app.bsky.unspecced.getTaggedSuggestions",
126670
+ defs: {
126671
+ main: {
126672
+ type: "query",
126673
+ description: "Get a list of suggestions (feeds and users) tagged with categories",
126674
+ parameters: {
126675
+ type: "params",
126676
+ properties: {}
126677
+ },
126678
+ output: {
126679
+ encoding: "application/json",
126680
+ schema: {
126681
+ type: "object",
126682
+ required: ["suggestions"],
126683
+ properties: {
126684
+ suggestions: {
126685
+ type: "array",
126686
+ items: {
126687
+ type: "ref",
126688
+ ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
126689
+ }
126690
+ }
126691
+ }
126692
+ }
126693
+ }
126694
+ },
126695
+ suggestion: {
126696
+ type: "object",
126697
+ required: ["tag", "subjectType", "subject"],
126698
+ properties: {
126699
+ tag: {
126700
+ type: "string"
126701
+ },
126702
+ subjectType: {
126703
+ type: "string",
126704
+ knownValues: ["actor", "feed"]
126705
+ },
126706
+ subject: {
126707
+ type: "string",
126708
+ format: "uri"
126709
+ }
126710
+ }
126711
+ }
126712
+ }
126713
+ },
126616
126714
  AppBskyUnspeccedGetTimelineSkeleton: {
126617
126715
  lexicon: 1,
126618
126716
  id: "app.bsky.unspecced.getTimelineSkeleton",
@@ -127912,13 +128010,20 @@ function toKnownErr113(e) {
127912
128010
  return e;
127913
128011
  }
127914
128012
 
128013
+ // ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
128014
+ function toKnownErr114(e) {
128015
+ if (e instanceof XRPCError) {
128016
+ }
128017
+ return e;
128018
+ }
128019
+
127915
128020
  // ../api/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts
127916
128021
  var UnknownFeedError3 = class extends XRPCError {
127917
128022
  constructor(src3) {
127918
128023
  super(src3.status, src3.error, src3.message, src3.headers);
127919
128024
  }
127920
128025
  };
127921
- function toKnownErr114(e) {
128026
+ function toKnownErr115(e) {
127922
128027
  if (e instanceof XRPCError) {
127923
128028
  if (e.error === "UnknownFeed")
127924
128029
  return new UnknownFeedError3(e);
@@ -127932,7 +128037,7 @@ var BadQueryStringError2 = class extends XRPCError {
127932
128037
  super(src3.status, src3.error, src3.message, src3.headers);
127933
128038
  }
127934
128039
  };
127935
- function toKnownErr115(e) {
128040
+ function toKnownErr116(e) {
127936
128041
  if (e instanceof XRPCError) {
127937
128042
  if (e.error === "BadQueryString")
127938
128043
  return new BadQueryStringError2(e);
@@ -127946,7 +128051,7 @@ var BadQueryStringError3 = class extends XRPCError {
127946
128051
  super(src3.status, src3.error, src3.message, src3.headers);
127947
128052
  }
127948
128053
  };
127949
- function toKnownErr116(e) {
128054
+ function toKnownErr117(e) {
127950
128055
  if (e instanceof XRPCError) {
127951
128056
  if (e.error === "BadQueryString")
127952
128057
  return new BadQueryStringError3(e);
@@ -128959,19 +129064,24 @@ var AppBskyUnspeccedNS2 = class {
128959
129064
  throw toKnownErr113(e);
128960
129065
  });
128961
129066
  }
129067
+ getTaggedSuggestions(params2, opts) {
129068
+ return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
129069
+ throw toKnownErr114(e);
129070
+ });
129071
+ }
128962
129072
  getTimelineSkeleton(params2, opts) {
128963
129073
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
128964
- throw toKnownErr114(e);
129074
+ throw toKnownErr115(e);
128965
129075
  });
128966
129076
  }
128967
129077
  searchActorsSkeleton(params2, opts) {
128968
129078
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
128969
- throw toKnownErr115(e);
129079
+ throw toKnownErr116(e);
128970
129080
  });
128971
129081
  }
128972
129082
  searchPostsSkeleton(params2, opts) {
128973
129083
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
128974
- throw toKnownErr116(e);
129084
+ throw toKnownErr117(e);
128975
129085
  });
128976
129086
  }
128977
129087
  };