@atproto/ozone 0.0.5 → 0.0.6

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.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`4171c04a`](https://github.com/bluesky-social/atproto/commit/4171c04ad81c5734a4558bc41fa1c4f3a1aba18c)]:
8
+ - @atproto/api@0.9.4
9
+
3
10
  ## 0.0.5
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -106148,7 +106148,8 @@ var schemaDict = {
106148
106148
  "lex:app.bsky.actor.defs#savedFeedsPref",
106149
106149
  "lex:app.bsky.actor.defs#personalDetailsPref",
106150
106150
  "lex:app.bsky.actor.defs#feedViewPref",
106151
- "lex:app.bsky.actor.defs#threadViewPref"
106151
+ "lex:app.bsky.actor.defs#threadViewPref",
106152
+ "lex:app.bsky.actor.defs#interestsPref"
106152
106153
  ]
106153
106154
  }
106154
106155
  },
@@ -106248,6 +106249,22 @@ var schemaDict = {
106248
106249
  description: "Show followed users at the top of all replies."
106249
106250
  }
106250
106251
  }
106252
+ },
106253
+ interestsPref: {
106254
+ type: "object",
106255
+ required: ["tags"],
106256
+ properties: {
106257
+ tags: {
106258
+ type: "array",
106259
+ maxLength: 100,
106260
+ items: {
106261
+ type: "string",
106262
+ maxLength: 640,
106263
+ maxGraphemes: 64
106264
+ },
106265
+ description: "A list of tags which describe the account owner's interests gathered during onboarding."
106266
+ }
106267
+ }
106251
106268
  }
106252
106269
  }
106253
106270
  },
@@ -108441,6 +108458,42 @@ var schemaDict = {
108441
108458
  format: "at-uri"
108442
108459
  }
108443
108460
  }
108461
+ },
108462
+ notFoundActor: {
108463
+ type: "object",
108464
+ description: "indicates that a handle or DID could not be resolved",
108465
+ required: ["actor", "notFound"],
108466
+ properties: {
108467
+ actor: {
108468
+ type: "string",
108469
+ format: "at-identifier"
108470
+ },
108471
+ notFound: {
108472
+ type: "boolean",
108473
+ const: true
108474
+ }
108475
+ }
108476
+ },
108477
+ relationship: {
108478
+ type: "object",
108479
+ description: "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
108480
+ required: ["did"],
108481
+ properties: {
108482
+ did: {
108483
+ type: "string",
108484
+ format: "did"
108485
+ },
108486
+ following: {
108487
+ type: "string",
108488
+ format: "at-uri",
108489
+ description: "if the actor follows this DID, this is the AT-URI of the follow record"
108490
+ },
108491
+ followedBy: {
108492
+ type: "string",
108493
+ format: "at-uri",
108494
+ description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
108495
+ }
108496
+ }
108444
108497
  }
108445
108498
  }
108446
108499
  },
@@ -108845,6 +108898,63 @@ var schemaDict = {
108845
108898
  }
108846
108899
  }
108847
108900
  },
108901
+ AppBskyGraphGetRelationships: {
108902
+ lexicon: 1,
108903
+ id: "app.bsky.graph.getRelationships",
108904
+ defs: {
108905
+ main: {
108906
+ type: "query",
108907
+ description: "Enumerates public relationships between one account, and a list of other accounts",
108908
+ parameters: {
108909
+ type: "params",
108910
+ required: ["actor"],
108911
+ properties: {
108912
+ actor: {
108913
+ type: "string",
108914
+ format: "at-identifier"
108915
+ },
108916
+ others: {
108917
+ type: "array",
108918
+ maxLength: 30,
108919
+ items: {
108920
+ type: "string",
108921
+ format: "at-identifier"
108922
+ }
108923
+ }
108924
+ }
108925
+ },
108926
+ output: {
108927
+ encoding: "application/json",
108928
+ schema: {
108929
+ type: "object",
108930
+ required: ["relationships"],
108931
+ properties: {
108932
+ actor: {
108933
+ type: "string",
108934
+ format: "did"
108935
+ },
108936
+ relationships: {
108937
+ type: "array",
108938
+ items: {
108939
+ type: "union",
108940
+ refs: [
108941
+ "lex:app.bsky.graph.defs#relationship",
108942
+ "lex:app.bsky.graph.defs#notFoundActor"
108943
+ ]
108944
+ }
108945
+ }
108946
+ }
108947
+ }
108948
+ },
108949
+ errors: [
108950
+ {
108951
+ name: "ActorNotFound",
108952
+ description: "the primary actor at-identifier could not be resolved"
108953
+ }
108954
+ ]
108955
+ }
108956
+ }
108957
+ },
108848
108958
  AppBskyGraphGetSuggestedFollowsByActor: {
108849
108959
  lexicon: 1,
108850
108960
  id: "app.bsky.graph.getSuggestedFollowsByActor",
@@ -118426,6 +118536,10 @@ var AppBskyGraphNS = class {
118426
118536
  const nsid2 = "app.bsky.graph.getMutes";
118427
118537
  return this._server.xrpc.method(nsid2, cfg);
118428
118538
  }
118539
+ getRelationships(cfg) {
118540
+ const nsid2 = "app.bsky.graph.getRelationships";
118541
+ return this._server.xrpc.method(nsid2, cfg);
118542
+ }
118429
118543
  getSuggestedFollowsByActor(cfg) {
118430
118544
  const nsid2 = "app.bsky.graph.getSuggestedFollowsByActor";
118431
118545
  return this._server.xrpc.method(nsid2, cfg);
@@ -123389,7 +123503,8 @@ var schemaDict2 = {
123389
123503
  "lex:app.bsky.actor.defs#savedFeedsPref",
123390
123504
  "lex:app.bsky.actor.defs#personalDetailsPref",
123391
123505
  "lex:app.bsky.actor.defs#feedViewPref",
123392
- "lex:app.bsky.actor.defs#threadViewPref"
123506
+ "lex:app.bsky.actor.defs#threadViewPref",
123507
+ "lex:app.bsky.actor.defs#interestsPref"
123393
123508
  ]
123394
123509
  }
123395
123510
  },
@@ -123489,6 +123604,22 @@ var schemaDict2 = {
123489
123604
  description: "Show followed users at the top of all replies."
123490
123605
  }
123491
123606
  }
123607
+ },
123608
+ interestsPref: {
123609
+ type: "object",
123610
+ required: ["tags"],
123611
+ properties: {
123612
+ tags: {
123613
+ type: "array",
123614
+ maxLength: 100,
123615
+ items: {
123616
+ type: "string",
123617
+ maxLength: 640,
123618
+ maxGraphemes: 64
123619
+ },
123620
+ description: "A list of tags which describe the account owner's interests gathered during onboarding."
123621
+ }
123622
+ }
123492
123623
  }
123493
123624
  }
123494
123625
  },
@@ -125682,6 +125813,42 @@ var schemaDict2 = {
125682
125813
  format: "at-uri"
125683
125814
  }
125684
125815
  }
125816
+ },
125817
+ notFoundActor: {
125818
+ type: "object",
125819
+ description: "indicates that a handle or DID could not be resolved",
125820
+ required: ["actor", "notFound"],
125821
+ properties: {
125822
+ actor: {
125823
+ type: "string",
125824
+ format: "at-identifier"
125825
+ },
125826
+ notFound: {
125827
+ type: "boolean",
125828
+ const: true
125829
+ }
125830
+ }
125831
+ },
125832
+ relationship: {
125833
+ type: "object",
125834
+ description: "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
125835
+ required: ["did"],
125836
+ properties: {
125837
+ did: {
125838
+ type: "string",
125839
+ format: "did"
125840
+ },
125841
+ following: {
125842
+ type: "string",
125843
+ format: "at-uri",
125844
+ description: "if the actor follows this DID, this is the AT-URI of the follow record"
125845
+ },
125846
+ followedBy: {
125847
+ type: "string",
125848
+ format: "at-uri",
125849
+ description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
125850
+ }
125851
+ }
125685
125852
  }
125686
125853
  }
125687
125854
  },
@@ -126086,6 +126253,63 @@ var schemaDict2 = {
126086
126253
  }
126087
126254
  }
126088
126255
  },
126256
+ AppBskyGraphGetRelationships: {
126257
+ lexicon: 1,
126258
+ id: "app.bsky.graph.getRelationships",
126259
+ defs: {
126260
+ main: {
126261
+ type: "query",
126262
+ description: "Enumerates public relationships between one account, and a list of other accounts",
126263
+ parameters: {
126264
+ type: "params",
126265
+ required: ["actor"],
126266
+ properties: {
126267
+ actor: {
126268
+ type: "string",
126269
+ format: "at-identifier"
126270
+ },
126271
+ others: {
126272
+ type: "array",
126273
+ maxLength: 30,
126274
+ items: {
126275
+ type: "string",
126276
+ format: "at-identifier"
126277
+ }
126278
+ }
126279
+ }
126280
+ },
126281
+ output: {
126282
+ encoding: "application/json",
126283
+ schema: {
126284
+ type: "object",
126285
+ required: ["relationships"],
126286
+ properties: {
126287
+ actor: {
126288
+ type: "string",
126289
+ format: "did"
126290
+ },
126291
+ relationships: {
126292
+ type: "array",
126293
+ items: {
126294
+ type: "union",
126295
+ refs: [
126296
+ "lex:app.bsky.graph.defs#relationship",
126297
+ "lex:app.bsky.graph.defs#notFoundActor"
126298
+ ]
126299
+ }
126300
+ }
126301
+ }
126302
+ }
126303
+ },
126304
+ errors: [
126305
+ {
126306
+ name: "ActorNotFound",
126307
+ description: "the primary actor at-identifier could not be resolved"
126308
+ }
126309
+ ]
126310
+ }
126311
+ }
126312
+ },
126089
126313
  AppBskyGraphGetSuggestedFollowsByActor: {
126090
126314
  lexicon: 1,
126091
126315
  id: "app.bsky.graph.getSuggestedFollowsByActor",
@@ -127940,90 +128164,104 @@ function toKnownErr103(e) {
127940
128164
  return e;
127941
128165
  }
127942
128166
 
127943
- // ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
128167
+ // ../api/src/client/types/app/bsky/graph/getRelationships.ts
128168
+ var ActorNotFoundError = class extends XRPCError {
128169
+ constructor(src3) {
128170
+ super(src3.status, src3.error, src3.message, src3.headers);
128171
+ }
128172
+ };
127944
128173
  function toKnownErr104(e) {
127945
128174
  if (e instanceof XRPCError) {
128175
+ if (e.error === "ActorNotFound")
128176
+ return new ActorNotFoundError(e);
127946
128177
  }
127947
128178
  return e;
127948
128179
  }
127949
128180
 
127950
- // ../api/src/client/types/app/bsky/graph/muteActor.ts
128181
+ // ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
127951
128182
  function toKnownErr105(e) {
127952
128183
  if (e instanceof XRPCError) {
127953
128184
  }
127954
128185
  return e;
127955
128186
  }
127956
128187
 
127957
- // ../api/src/client/types/app/bsky/graph/muteActorList.ts
128188
+ // ../api/src/client/types/app/bsky/graph/muteActor.ts
127958
128189
  function toKnownErr106(e) {
127959
128190
  if (e instanceof XRPCError) {
127960
128191
  }
127961
128192
  return e;
127962
128193
  }
127963
128194
 
127964
- // ../api/src/client/types/app/bsky/graph/unmuteActor.ts
128195
+ // ../api/src/client/types/app/bsky/graph/muteActorList.ts
127965
128196
  function toKnownErr107(e) {
127966
128197
  if (e instanceof XRPCError) {
127967
128198
  }
127968
128199
  return e;
127969
128200
  }
127970
128201
 
127971
- // ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
128202
+ // ../api/src/client/types/app/bsky/graph/unmuteActor.ts
127972
128203
  function toKnownErr108(e) {
127973
128204
  if (e instanceof XRPCError) {
127974
128205
  }
127975
128206
  return e;
127976
128207
  }
127977
128208
 
127978
- // ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
128209
+ // ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
127979
128210
  function toKnownErr109(e) {
127980
128211
  if (e instanceof XRPCError) {
127981
128212
  }
127982
128213
  return e;
127983
128214
  }
127984
128215
 
127985
- // ../api/src/client/types/app/bsky/notification/listNotifications.ts
128216
+ // ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
127986
128217
  function toKnownErr110(e) {
127987
128218
  if (e instanceof XRPCError) {
127988
128219
  }
127989
128220
  return e;
127990
128221
  }
127991
128222
 
127992
- // ../api/src/client/types/app/bsky/notification/registerPush.ts
128223
+ // ../api/src/client/types/app/bsky/notification/listNotifications.ts
127993
128224
  function toKnownErr111(e) {
127994
128225
  if (e instanceof XRPCError) {
127995
128226
  }
127996
128227
  return e;
127997
128228
  }
127998
128229
 
127999
- // ../api/src/client/types/app/bsky/notification/updateSeen.ts
128230
+ // ../api/src/client/types/app/bsky/notification/registerPush.ts
128000
128231
  function toKnownErr112(e) {
128001
128232
  if (e instanceof XRPCError) {
128002
128233
  }
128003
128234
  return e;
128004
128235
  }
128005
128236
 
128006
- // ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
128237
+ // ../api/src/client/types/app/bsky/notification/updateSeen.ts
128007
128238
  function toKnownErr113(e) {
128008
128239
  if (e instanceof XRPCError) {
128009
128240
  }
128010
128241
  return e;
128011
128242
  }
128012
128243
 
128013
- // ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
128244
+ // ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
128014
128245
  function toKnownErr114(e) {
128015
128246
  if (e instanceof XRPCError) {
128016
128247
  }
128017
128248
  return e;
128018
128249
  }
128019
128250
 
128251
+ // ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
128252
+ function toKnownErr115(e) {
128253
+ if (e instanceof XRPCError) {
128254
+ }
128255
+ return e;
128256
+ }
128257
+
128020
128258
  // ../api/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts
128021
128259
  var UnknownFeedError3 = class extends XRPCError {
128022
128260
  constructor(src3) {
128023
128261
  super(src3.status, src3.error, src3.message, src3.headers);
128024
128262
  }
128025
128263
  };
128026
- function toKnownErr115(e) {
128264
+ function toKnownErr116(e) {
128027
128265
  if (e instanceof XRPCError) {
128028
128266
  if (e.error === "UnknownFeed")
128029
128267
  return new UnknownFeedError3(e);
@@ -128037,7 +128275,7 @@ var BadQueryStringError2 = class extends XRPCError {
128037
128275
  super(src3.status, src3.error, src3.message, src3.headers);
128038
128276
  }
128039
128277
  };
128040
- function toKnownErr116(e) {
128278
+ function toKnownErr117(e) {
128041
128279
  if (e instanceof XRPCError) {
128042
128280
  if (e.error === "BadQueryString")
128043
128281
  return new BadQueryStringError2(e);
@@ -128051,7 +128289,7 @@ var BadQueryStringError3 = class extends XRPCError {
128051
128289
  super(src3.status, src3.error, src3.message, src3.headers);
128052
128290
  }
128053
128291
  };
128054
- function toKnownErr117(e) {
128292
+ function toKnownErr118(e) {
128055
128293
  if (e instanceof XRPCError) {
128056
128294
  if (e.error === "BadQueryString")
128057
128295
  return new BadQueryStringError3(e);
@@ -128864,29 +129102,34 @@ var AppBskyGraphNS2 = class {
128864
129102
  throw toKnownErr103(e);
128865
129103
  });
128866
129104
  }
129105
+ getRelationships(params2, opts) {
129106
+ return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
129107
+ throw toKnownErr104(e);
129108
+ });
129109
+ }
128867
129110
  getSuggestedFollowsByActor(params2, opts) {
128868
129111
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
128869
- throw toKnownErr104(e);
129112
+ throw toKnownErr105(e);
128870
129113
  });
128871
129114
  }
128872
129115
  muteActor(data, opts) {
128873
129116
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
128874
- throw toKnownErr105(e);
129117
+ throw toKnownErr106(e);
128875
129118
  });
128876
129119
  }
128877
129120
  muteActorList(data, opts) {
128878
129121
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
128879
- throw toKnownErr106(e);
129122
+ throw toKnownErr107(e);
128880
129123
  });
128881
129124
  }
128882
129125
  unmuteActor(data, opts) {
128883
129126
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
128884
- throw toKnownErr107(e);
129127
+ throw toKnownErr108(e);
128885
129128
  });
128886
129129
  }
128887
129130
  unmuteActorList(data, opts) {
128888
129131
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
128889
- throw toKnownErr108(e);
129132
+ throw toKnownErr109(e);
128890
129133
  });
128891
129134
  }
128892
129135
  };
@@ -129031,22 +129274,22 @@ var AppBskyNotificationNS2 = class {
129031
129274
  }
129032
129275
  getUnreadCount(params2, opts) {
129033
129276
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
129034
- throw toKnownErr109(e);
129277
+ throw toKnownErr110(e);
129035
129278
  });
129036
129279
  }
129037
129280
  listNotifications(params2, opts) {
129038
129281
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
129039
- throw toKnownErr110(e);
129282
+ throw toKnownErr111(e);
129040
129283
  });
129041
129284
  }
129042
129285
  registerPush(data, opts) {
129043
129286
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
129044
- throw toKnownErr111(e);
129287
+ throw toKnownErr112(e);
129045
129288
  });
129046
129289
  }
129047
129290
  updateSeen(data, opts) {
129048
129291
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
129049
- throw toKnownErr112(e);
129292
+ throw toKnownErr113(e);
129050
129293
  });
129051
129294
  }
129052
129295
  };
@@ -129061,27 +129304,27 @@ var AppBskyUnspeccedNS2 = class {
129061
129304
  }
129062
129305
  getPopularFeedGenerators(params2, opts) {
129063
129306
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
129064
- throw toKnownErr113(e);
129307
+ throw toKnownErr114(e);
129065
129308
  });
129066
129309
  }
129067
129310
  getTaggedSuggestions(params2, opts) {
129068
129311
  return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
129069
- throw toKnownErr114(e);
129312
+ throw toKnownErr115(e);
129070
129313
  });
129071
129314
  }
129072
129315
  getTimelineSkeleton(params2, opts) {
129073
129316
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
129074
- throw toKnownErr115(e);
129317
+ throw toKnownErr116(e);
129075
129318
  });
129076
129319
  }
129077
129320
  searchActorsSkeleton(params2, opts) {
129078
129321
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
129079
- throw toKnownErr116(e);
129322
+ throw toKnownErr117(e);
129080
129323
  });
129081
129324
  }
129082
129325
  searchPostsSkeleton(params2, opts) {
129083
129326
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
129084
- throw toKnownErr117(e);
129327
+ throw toKnownErr118(e);
129085
129328
  });
129086
129329
  }
129087
129330
  };