@atproto/api 0.19.5 → 0.19.7

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/client/index.d.ts +18 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +30 -6
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +572 -2
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +292 -1
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/client/types/app/bsky/embed/images.d.ts +1 -0
  14. package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/embed/images.js.map +1 -1
  16. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.d.ts +25 -0
  17. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.d.ts.map +1 -0
  18. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.js +11 -0
  19. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.js.map +1 -0
  20. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.d.ts +26 -0
  21. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.d.ts.map +1 -0
  22. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js +11 -0
  23. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js.map +1 -0
  24. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.d.ts +27 -0
  25. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.d.ts.map +1 -0
  26. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.js +11 -0
  27. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.js.map +1 -0
  28. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.d.ts +28 -0
  29. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.d.ts.map +1 -0
  30. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js +11 -0
  31. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js.map +1 -0
  32. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.d.ts +27 -0
  33. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.d.ts.map +1 -0
  34. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js +11 -0
  35. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js.map +1 -0
  36. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.d.ts +28 -0
  37. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.d.ts.map +1 -0
  38. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js +11 -0
  39. package/dist/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js.map +1 -0
  40. package/dist/moderation/index.d.ts +1 -0
  41. package/dist/moderation/index.d.ts.map +1 -1
  42. package/dist/moderation/index.js +5 -0
  43. package/dist/moderation/index.js.map +1 -1
  44. package/dist/moderation/subjects/status.d.ts +4 -0
  45. package/dist/moderation/subjects/status.d.ts.map +1 -0
  46. package/dist/moderation/subjects/status.js +18 -0
  47. package/dist/moderation/subjects/status.js.map +1 -0
  48. package/package.json +4 -4
  49. package/src/client/index.ts +84 -0
  50. package/src/client/lexicons.ts +311 -1
  51. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  52. package/src/client/types/app/bsky/embed/images.ts +1 -0
  53. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +43 -0
  54. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +44 -0
  55. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +45 -0
  56. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +46 -0
  57. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +45 -0
  58. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +46 -0
  59. package/src/moderation/index.ts +8 -0
  60. package/src/moderation/subjects/status.ts +25 -0
  61. package/tsconfig.build.tsbuildinfo +1 -1
@@ -6,12 +6,14 @@ exports.moderatePost = moderatePost;
6
6
  exports.moderateNotification = moderateNotification;
7
7
  exports.moderateFeedGenerator = moderateFeedGenerator;
8
8
  exports.moderateUserList = moderateUserList;
9
+ exports.moderateStatus = moderateStatus;
9
10
  const decision_1 = require("./decision");
10
11
  const account_1 = require("./subjects/account");
11
12
  const feed_generator_1 = require("./subjects/feed-generator");
12
13
  const notification_1 = require("./subjects/notification");
13
14
  const post_1 = require("./subjects/post");
14
15
  const profile_1 = require("./subjects/profile");
16
+ const status_1 = require("./subjects/status");
15
17
  const user_list_1 = require("./subjects/user-list");
16
18
  var ui_1 = require("./ui");
17
19
  Object.defineProperty(exports, "ModerationUI", { enumerable: true, get: function () { return ui_1.ModerationUI; } });
@@ -38,4 +40,7 @@ function moderateFeedGenerator(subject, opts) {
38
40
  function moderateUserList(subject, opts) {
39
41
  return (0, user_list_1.decideUserList)(subject, opts);
40
42
  }
43
+ function moderateStatus(subject, opts) {
44
+ return (0, status_1.decideStatus)(subject, opts);
45
+ }
41
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moderation/index.ts"],"names":[],"mappings":";;;AAwBA,0CAQC;AAED,oCAKC;AAED,oDAKC;AAED,sDAKC;AAED,4CAKC;AA5DD,yCAA+C;AAC/C,gDAAkD;AAClD,8DAA+D;AAC/D,0DAA4D;AAC5D,0CAA4C;AAC5C,gDAAkD;AAClD,oDAAqD;AAUrD,2BAAmC;AAA1B,kGAAA,YAAY,OAAA;AACrB,uCAA+C;AAAtC,8GAAA,kBAAkB,OAAA;AAC3B,yCAA0D;AAAjD,yGAAA,YAAY,OAAA;AAAE,2GAAA,cAAc,OAAA;AACrC,+BAGe;AAFb,qHAAA,6BAA6B,OAAA;AAC7B,sHAAA,8BAA8B,OAAA;AAGhC,SAAgB,eAAe,CAC7B,OAAiC,EACjC,IAAoB;IAEpB,OAAO,6BAAkB,CAAC,KAAK,CAC7B,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,EAC5B,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,CAC7B,CAAA;AACH,CAAC;AAED,SAAgB,YAAY,CAC1B,OAA8B,EAC9B,IAAoB;IAEpB,OAAO,IAAA,iBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,oBAAoB,CAClC,OAAsC,EACtC,IAAoB;IAEpB,OAAO,IAAA,iCAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,qBAAqB,CACnC,OAAuC,EACvC,IAAoB;IAEpB,OAAO,IAAA,oCAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,gBAAgB,CAC9B,OAAkC,EAClC,IAAoB;IAEpB,OAAO,IAAA,0BAAc,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtC,CAAC","sourcesContent":["import { ModerationDecision } from './decision'\nimport { decideAccount } from './subjects/account'\nimport { decideFeedGenerator } from './subjects/feed-generator'\nimport { decideNotification } from './subjects/notification'\nimport { decidePost } from './subjects/post'\nimport { decideProfile } from './subjects/profile'\nimport { decideUserList } from './subjects/user-list'\nimport {\n ModerationOpts,\n ModerationSubjectFeedGenerator,\n ModerationSubjectNotification,\n ModerationSubjectPost,\n ModerationSubjectProfile,\n ModerationSubjectUserList,\n} from './types'\n\nexport { ModerationUI } from './ui'\nexport { ModerationDecision } from './decision'\nexport { hasMutedWord, matchMuteWords } from './mutewords'\nexport {\n interpretLabelValueDefinition,\n interpretLabelValueDefinitions,\n} from './util'\n\nexport function moderateProfile(\n subject: ModerationSubjectProfile,\n opts: ModerationOpts,\n): ModerationDecision {\n return ModerationDecision.merge(\n decideAccount(subject, opts),\n decideProfile(subject, opts),\n )\n}\n\nexport function moderatePost(\n subject: ModerationSubjectPost,\n opts: ModerationOpts,\n): ModerationDecision {\n return decidePost(subject, opts)\n}\n\nexport function moderateNotification(\n subject: ModerationSubjectNotification,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideNotification(subject, opts)\n}\n\nexport function moderateFeedGenerator(\n subject: ModerationSubjectFeedGenerator,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideFeedGenerator(subject, opts)\n}\n\nexport function moderateUserList(\n subject: ModerationSubjectUserList,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideUserList(subject, opts)\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moderation/index.ts"],"names":[],"mappings":";;;AAyBA,0CAQC;AAED,oCAKC;AAED,oDAKC;AAED,sDAKC;AAED,4CAKC;AAED,wCAKC;AApED,yCAA+C;AAC/C,gDAAkD;AAClD,8DAA+D;AAC/D,0DAA4D;AAC5D,0CAA4C;AAC5C,gDAAkD;AAClD,8CAAgD;AAChD,oDAAqD;AAUrD,2BAAmC;AAA1B,kGAAA,YAAY,OAAA;AACrB,uCAA+C;AAAtC,8GAAA,kBAAkB,OAAA;AAC3B,yCAA0D;AAAjD,yGAAA,YAAY,OAAA;AAAE,2GAAA,cAAc,OAAA;AACrC,+BAGe;AAFb,qHAAA,6BAA6B,OAAA;AAC7B,sHAAA,8BAA8B,OAAA;AAGhC,SAAgB,eAAe,CAC7B,OAAiC,EACjC,IAAoB;IAEpB,OAAO,6BAAkB,CAAC,KAAK,CAC7B,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,EAC5B,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,CAC7B,CAAA;AACH,CAAC;AAED,SAAgB,YAAY,CAC1B,OAA8B,EAC9B,IAAoB;IAEpB,OAAO,IAAA,iBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,oBAAoB,CAClC,OAAsC,EACtC,IAAoB;IAEpB,OAAO,IAAA,iCAAkB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,qBAAqB,CACnC,OAAuC,EACvC,IAAoB;IAEpB,OAAO,IAAA,oCAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,gBAAgB,CAC9B,OAAkC,EAClC,IAAoB;IAEpB,OAAO,IAAA,0BAAc,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,cAAc,CAC5B,OAAiC,EACjC,IAAoB;IAEpB,OAAO,IAAA,qBAAY,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACpC,CAAC","sourcesContent":["import { ModerationDecision } from './decision'\nimport { decideAccount } from './subjects/account'\nimport { decideFeedGenerator } from './subjects/feed-generator'\nimport { decideNotification } from './subjects/notification'\nimport { decidePost } from './subjects/post'\nimport { decideProfile } from './subjects/profile'\nimport { decideStatus } from './subjects/status'\nimport { decideUserList } from './subjects/user-list'\nimport {\n ModerationOpts,\n ModerationSubjectFeedGenerator,\n ModerationSubjectNotification,\n ModerationSubjectPost,\n ModerationSubjectProfile,\n ModerationSubjectUserList,\n} from './types'\n\nexport { ModerationUI } from './ui'\nexport { ModerationDecision } from './decision'\nexport { hasMutedWord, matchMuteWords } from './mutewords'\nexport {\n interpretLabelValueDefinition,\n interpretLabelValueDefinitions,\n} from './util'\n\nexport function moderateProfile(\n subject: ModerationSubjectProfile,\n opts: ModerationOpts,\n): ModerationDecision {\n return ModerationDecision.merge(\n decideAccount(subject, opts),\n decideProfile(subject, opts),\n )\n}\n\nexport function moderatePost(\n subject: ModerationSubjectPost,\n opts: ModerationOpts,\n): ModerationDecision {\n return decidePost(subject, opts)\n}\n\nexport function moderateNotification(\n subject: ModerationSubjectNotification,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideNotification(subject, opts)\n}\n\nexport function moderateFeedGenerator(\n subject: ModerationSubjectFeedGenerator,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideFeedGenerator(subject, opts)\n}\n\nexport function moderateUserList(\n subject: ModerationSubjectUserList,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideUserList(subject, opts)\n}\n\nexport function moderateStatus(\n subject: ModerationSubjectProfile,\n opts: ModerationOpts,\n): ModerationDecision {\n return decideStatus(subject, opts)\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import { ModerationDecision } from '../decision';
2
+ import { ModerationOpts, ModerationSubjectProfile } from '../types';
3
+ export declare function decideStatus(subject: ModerationSubjectProfile, opts: ModerationOpts): ModerationDecision;
4
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/moderation/subjects/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAInE,wBAAgB,YAAY,CAC1B,OAAO,EAAE,wBAAwB,EACjC,IAAI,EAAE,cAAc,GACnB,kBAAkB,CAgBpB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decideStatus = decideStatus;
4
+ const decision_1 = require("../decision");
5
+ const account_1 = require("./account");
6
+ const profile_1 = require("./profile");
7
+ function decideStatus(subject, opts) {
8
+ const acc = new decision_1.ModerationDecision();
9
+ if ('status' in subject) {
10
+ if (subject.status?.labels?.length) {
11
+ for (const label of subject.status.labels) {
12
+ acc.addLabel('content', label, opts);
13
+ }
14
+ }
15
+ }
16
+ return decision_1.ModerationDecision.merge(acc, (0, account_1.decideAccount)(subject, opts), (0, profile_1.decideProfile)(subject, opts));
17
+ }
18
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/moderation/subjects/status.ts"],"names":[],"mappings":";;AAKA,oCAmBC;AAxBD,0CAAgD;AAEhD,uCAAyC;AACzC,uCAAyC;AAEzC,SAAgB,YAAY,CAC1B,OAAiC,EACjC,IAAoB;IAEpB,MAAM,GAAG,GAAG,IAAI,6BAAkB,EAAE,CAAA;IAEpC,IAAI,QAAQ,IAAI,OAAO,EAAE,CAAC;QACxB,IAAI,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACnC,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;gBAC1C,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;YACtC,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,6BAAkB,CAAC,KAAK,CAC7B,GAAG,EACH,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,EAC5B,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,CAC7B,CAAA;AACH,CAAC","sourcesContent":["import { ModerationDecision } from '../decision'\nimport { ModerationOpts, ModerationSubjectProfile } from '../types'\nimport { decideAccount } from './account'\nimport { decideProfile } from './profile'\n\nexport function decideStatus(\n subject: ModerationSubjectProfile,\n opts: ModerationOpts,\n): ModerationDecision {\n const acc = new ModerationDecision()\n\n if ('status' in subject) {\n if (subject.status?.labels?.length) {\n for (const label of subject.status.labels) {\n acc.addLabel('content', label, opts)\n }\n }\n }\n\n return ModerationDecision.merge(\n acc,\n decideAccount(subject, opts),\n decideProfile(subject, opts),\n )\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.19.5",
3
+ "version": "0.19.7",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -21,10 +21,10 @@
21
21
  "multiformats": "^9.9.0",
22
22
  "tlds": "^1.234.0",
23
23
  "zod": "^3.23.8",
24
- "@atproto/common-web": "^0.4.19",
24
+ "@atproto/common-web": "^0.4.20",
25
25
  "@atproto/lexicon": "^0.6.2",
26
- "@atproto/syntax": "^0.5.2",
27
- "@atproto/xrpc": "^0.7.7"
26
+ "@atproto/xrpc": "^0.7.7",
27
+ "@atproto/syntax": "^0.5.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@jest/globals": "^28.1.3",
@@ -134,6 +134,12 @@ import * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/u
134
134
  import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
135
135
  import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
136
136
  import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
137
+ import * as AppBskyUnspeccedGetSuggestedUsersForDiscover from './types/app/bsky/unspecced/getSuggestedUsersForDiscover.js'
138
+ import * as AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js'
139
+ import * as AppBskyUnspeccedGetSuggestedUsersForExplore from './types/app/bsky/unspecced/getSuggestedUsersForExplore.js'
140
+ import * as AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js'
141
+ import * as AppBskyUnspeccedGetSuggestedUsersForSeeMore from './types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js'
142
+ import * as AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js'
137
143
  import * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
138
144
  import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
139
145
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
@@ -449,6 +455,12 @@ export * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/u
449
455
  export * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
450
456
  export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
451
457
  export * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
458
+ export * as AppBskyUnspeccedGetSuggestedUsersForDiscover from './types/app/bsky/unspecced/getSuggestedUsersForDiscover.js'
459
+ export * as AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.js'
460
+ export * as AppBskyUnspeccedGetSuggestedUsersForExplore from './types/app/bsky/unspecced/getSuggestedUsersForExplore.js'
461
+ export * as AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.js'
462
+ export * as AppBskyUnspeccedGetSuggestedUsersForSeeMore from './types/app/bsky/unspecced/getSuggestedUsersForSeeMore.js'
463
+ export * as AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton from './types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.js'
452
464
  export * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
453
465
  export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
454
466
  export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
@@ -3345,6 +3357,78 @@ export class AppBskyUnspeccedNS {
3345
3357
  )
3346
3358
  }
3347
3359
 
3360
+ getSuggestedUsersForDiscover(
3361
+ params?: AppBskyUnspeccedGetSuggestedUsersForDiscover.QueryParams,
3362
+ opts?: AppBskyUnspeccedGetSuggestedUsersForDiscover.CallOptions,
3363
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForDiscover.Response> {
3364
+ return this._client.call(
3365
+ 'app.bsky.unspecced.getSuggestedUsersForDiscover',
3366
+ params,
3367
+ undefined,
3368
+ opts,
3369
+ )
3370
+ }
3371
+
3372
+ getSuggestedUsersForDiscoverSkeleton(
3373
+ params?: AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.QueryParams,
3374
+ opts?: AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.CallOptions,
3375
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton.Response> {
3376
+ return this._client.call(
3377
+ 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
3378
+ params,
3379
+ undefined,
3380
+ opts,
3381
+ )
3382
+ }
3383
+
3384
+ getSuggestedUsersForExplore(
3385
+ params?: AppBskyUnspeccedGetSuggestedUsersForExplore.QueryParams,
3386
+ opts?: AppBskyUnspeccedGetSuggestedUsersForExplore.CallOptions,
3387
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForExplore.Response> {
3388
+ return this._client.call(
3389
+ 'app.bsky.unspecced.getSuggestedUsersForExplore',
3390
+ params,
3391
+ undefined,
3392
+ opts,
3393
+ )
3394
+ }
3395
+
3396
+ getSuggestedUsersForExploreSkeleton(
3397
+ params?: AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.QueryParams,
3398
+ opts?: AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.CallOptions,
3399
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton.Response> {
3400
+ return this._client.call(
3401
+ 'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
3402
+ params,
3403
+ undefined,
3404
+ opts,
3405
+ )
3406
+ }
3407
+
3408
+ getSuggestedUsersForSeeMore(
3409
+ params?: AppBskyUnspeccedGetSuggestedUsersForSeeMore.QueryParams,
3410
+ opts?: AppBskyUnspeccedGetSuggestedUsersForSeeMore.CallOptions,
3411
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForSeeMore.Response> {
3412
+ return this._client.call(
3413
+ 'app.bsky.unspecced.getSuggestedUsersForSeeMore',
3414
+ params,
3415
+ undefined,
3416
+ opts,
3417
+ )
3418
+ }
3419
+
3420
+ getSuggestedUsersForSeeMoreSkeleton(
3421
+ params?: AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.QueryParams,
3422
+ opts?: AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.CallOptions,
3423
+ ): Promise<AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton.Response> {
3424
+ return this._client.call(
3425
+ 'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
3426
+ params,
3427
+ undefined,
3428
+ opts,
3429
+ )
3430
+ }
3431
+
3348
3432
  getSuggestedUsersSkeleton(
3349
3433
  params?: AppBskyUnspeccedGetSuggestedUsersSkeleton.QueryParams,
3350
3434
  opts?: AppBskyUnspeccedGetSuggestedUsersSkeleton.CallOptions,
@@ -871,6 +871,13 @@ export const schemaDict = {
871
871
  description: 'An optional embed associated with the status.',
872
872
  refs: ['lex:app.bsky.embed.external#view'],
873
873
  },
874
+ labels: {
875
+ type: 'array',
876
+ items: {
877
+ type: 'ref',
878
+ ref: 'lex:com.atproto.label.defs#label',
879
+ },
880
+ },
874
881
  expiresAt: {
875
882
  type: 'string',
876
883
  description:
@@ -2758,8 +2765,10 @@ export const schemaDict = {
2758
2765
  properties: {
2759
2766
  image: {
2760
2767
  type: 'blob',
2768
+ description:
2769
+ 'The raw image file. May be up to 2mb, formerly limited to 1mb.',
2761
2770
  accept: ['image/*'],
2762
- maxSize: 1000000,
2771
+ maxSize: 2000000,
2763
2772
  },
2764
2773
  alt: {
2765
2774
  type: 'string',
@@ -8594,6 +8603,295 @@ export const schemaDict = {
8594
8603
  },
8595
8604
  },
8596
8605
  },
8606
+ AppBskyUnspeccedGetSuggestedUsersForDiscover: {
8607
+ lexicon: 1,
8608
+ id: 'app.bsky.unspecced.getSuggestedUsersForDiscover',
8609
+ defs: {
8610
+ main: {
8611
+ type: 'query',
8612
+ description: 'Get a list of suggested users for the Discover page',
8613
+ parameters: {
8614
+ type: 'params',
8615
+ properties: {
8616
+ limit: {
8617
+ type: 'integer',
8618
+ minimum: 1,
8619
+ maximum: 50,
8620
+ default: 25,
8621
+ },
8622
+ },
8623
+ },
8624
+ output: {
8625
+ encoding: 'application/json',
8626
+ schema: {
8627
+ type: 'object',
8628
+ required: ['actors'],
8629
+ properties: {
8630
+ actors: {
8631
+ type: 'array',
8632
+ items: {
8633
+ type: 'ref',
8634
+ ref: 'lex:app.bsky.actor.defs#profileView',
8635
+ },
8636
+ },
8637
+ recIdStr: {
8638
+ type: 'string',
8639
+ description:
8640
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8641
+ },
8642
+ },
8643
+ },
8644
+ },
8645
+ },
8646
+ },
8647
+ },
8648
+ AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton: {
8649
+ lexicon: 1,
8650
+ id: 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
8651
+ defs: {
8652
+ main: {
8653
+ type: 'query',
8654
+ description:
8655
+ 'Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover',
8656
+ parameters: {
8657
+ type: 'params',
8658
+ properties: {
8659
+ viewer: {
8660
+ type: 'string',
8661
+ format: 'did',
8662
+ description:
8663
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
8664
+ },
8665
+ limit: {
8666
+ type: 'integer',
8667
+ minimum: 1,
8668
+ maximum: 50,
8669
+ default: 25,
8670
+ },
8671
+ },
8672
+ },
8673
+ output: {
8674
+ encoding: 'application/json',
8675
+ schema: {
8676
+ type: 'object',
8677
+ required: ['dids'],
8678
+ properties: {
8679
+ dids: {
8680
+ type: 'array',
8681
+ items: {
8682
+ type: 'string',
8683
+ format: 'did',
8684
+ },
8685
+ },
8686
+ recIdStr: {
8687
+ type: 'string',
8688
+ description:
8689
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8690
+ },
8691
+ },
8692
+ },
8693
+ },
8694
+ },
8695
+ },
8696
+ },
8697
+ AppBskyUnspeccedGetSuggestedUsersForExplore: {
8698
+ lexicon: 1,
8699
+ id: 'app.bsky.unspecced.getSuggestedUsersForExplore',
8700
+ defs: {
8701
+ main: {
8702
+ type: 'query',
8703
+ description: 'Get a list of suggested users for the Explore page',
8704
+ parameters: {
8705
+ type: 'params',
8706
+ properties: {
8707
+ category: {
8708
+ type: 'string',
8709
+ description: 'Category of users to get suggestions for.',
8710
+ },
8711
+ limit: {
8712
+ type: 'integer',
8713
+ minimum: 1,
8714
+ maximum: 50,
8715
+ default: 25,
8716
+ },
8717
+ },
8718
+ },
8719
+ output: {
8720
+ encoding: 'application/json',
8721
+ schema: {
8722
+ type: 'object',
8723
+ required: ['actors'],
8724
+ properties: {
8725
+ actors: {
8726
+ type: 'array',
8727
+ items: {
8728
+ type: 'ref',
8729
+ ref: 'lex:app.bsky.actor.defs#profileView',
8730
+ },
8731
+ },
8732
+ recIdStr: {
8733
+ type: 'string',
8734
+ description:
8735
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8736
+ },
8737
+ },
8738
+ },
8739
+ },
8740
+ },
8741
+ },
8742
+ },
8743
+ AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton: {
8744
+ lexicon: 1,
8745
+ id: 'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
8746
+ defs: {
8747
+ main: {
8748
+ type: 'query',
8749
+ description:
8750
+ 'Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore',
8751
+ parameters: {
8752
+ type: 'params',
8753
+ properties: {
8754
+ viewer: {
8755
+ type: 'string',
8756
+ format: 'did',
8757
+ description:
8758
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
8759
+ },
8760
+ category: {
8761
+ type: 'string',
8762
+ description: 'Category of users to get suggestions for.',
8763
+ },
8764
+ limit: {
8765
+ type: 'integer',
8766
+ minimum: 1,
8767
+ maximum: 50,
8768
+ default: 25,
8769
+ },
8770
+ },
8771
+ },
8772
+ output: {
8773
+ encoding: 'application/json',
8774
+ schema: {
8775
+ type: 'object',
8776
+ required: ['dids'],
8777
+ properties: {
8778
+ dids: {
8779
+ type: 'array',
8780
+ items: {
8781
+ type: 'string',
8782
+ format: 'did',
8783
+ },
8784
+ },
8785
+ recIdStr: {
8786
+ type: 'string',
8787
+ description:
8788
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8789
+ },
8790
+ },
8791
+ },
8792
+ },
8793
+ },
8794
+ },
8795
+ },
8796
+ AppBskyUnspeccedGetSuggestedUsersForSeeMore: {
8797
+ lexicon: 1,
8798
+ id: 'app.bsky.unspecced.getSuggestedUsersForSeeMore',
8799
+ defs: {
8800
+ main: {
8801
+ type: 'query',
8802
+ description: 'Get a list of suggested users for the See More page',
8803
+ parameters: {
8804
+ type: 'params',
8805
+ properties: {
8806
+ category: {
8807
+ type: 'string',
8808
+ description: 'Category of users to get suggestions for.',
8809
+ },
8810
+ limit: {
8811
+ type: 'integer',
8812
+ minimum: 1,
8813
+ maximum: 50,
8814
+ default: 25,
8815
+ },
8816
+ },
8817
+ },
8818
+ output: {
8819
+ encoding: 'application/json',
8820
+ schema: {
8821
+ type: 'object',
8822
+ required: ['actors'],
8823
+ properties: {
8824
+ actors: {
8825
+ type: 'array',
8826
+ items: {
8827
+ type: 'ref',
8828
+ ref: 'lex:app.bsky.actor.defs#profileView',
8829
+ },
8830
+ },
8831
+ recIdStr: {
8832
+ type: 'string',
8833
+ description:
8834
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8835
+ },
8836
+ },
8837
+ },
8838
+ },
8839
+ },
8840
+ },
8841
+ },
8842
+ AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton: {
8843
+ lexicon: 1,
8844
+ id: 'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
8845
+ defs: {
8846
+ main: {
8847
+ type: 'query',
8848
+ description:
8849
+ 'Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore',
8850
+ parameters: {
8851
+ type: 'params',
8852
+ properties: {
8853
+ viewer: {
8854
+ type: 'string',
8855
+ format: 'did',
8856
+ description:
8857
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
8858
+ },
8859
+ category: {
8860
+ type: 'string',
8861
+ description: 'Category of users to get suggestions for.',
8862
+ },
8863
+ limit: {
8864
+ type: 'integer',
8865
+ minimum: 1,
8866
+ maximum: 50,
8867
+ default: 25,
8868
+ },
8869
+ },
8870
+ },
8871
+ output: {
8872
+ encoding: 'application/json',
8873
+ schema: {
8874
+ type: 'object',
8875
+ required: ['dids'],
8876
+ properties: {
8877
+ dids: {
8878
+ type: 'array',
8879
+ items: {
8880
+ type: 'string',
8881
+ format: 'did',
8882
+ },
8883
+ },
8884
+ recIdStr: {
8885
+ type: 'string',
8886
+ description:
8887
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8888
+ },
8889
+ },
8890
+ },
8891
+ },
8892
+ },
8893
+ },
8894
+ },
8597
8895
  AppBskyUnspeccedGetSuggestedUsersSkeleton: {
8598
8896
  lexicon: 1,
8599
8897
  id: 'app.bsky.unspecced.getSuggestedUsersSkeleton',
@@ -20884,6 +21182,18 @@ export const ids = {
20884
21182
  AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
20885
21183
  'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
20886
21184
  AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',
21185
+ AppBskyUnspeccedGetSuggestedUsersForDiscover:
21186
+ 'app.bsky.unspecced.getSuggestedUsersForDiscover',
21187
+ AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeleton:
21188
+ 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton',
21189
+ AppBskyUnspeccedGetSuggestedUsersForExplore:
21190
+ 'app.bsky.unspecced.getSuggestedUsersForExplore',
21191
+ AppBskyUnspeccedGetSuggestedUsersForExploreSkeleton:
21192
+ 'app.bsky.unspecced.getSuggestedUsersForExploreSkeleton',
21193
+ AppBskyUnspeccedGetSuggestedUsersForSeeMore:
21194
+ 'app.bsky.unspecced.getSuggestedUsersForSeeMore',
21195
+ AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeleton:
21196
+ 'app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton',
20887
21197
  AppBskyUnspeccedGetSuggestedUsersSkeleton:
20888
21198
  'app.bsky.unspecced.getSuggestedUsersSkeleton',
20889
21199
  AppBskyUnspeccedGetSuggestionsSkeleton:
@@ -695,6 +695,7 @@ export interface StatusView {
695
695
  status: 'app.bsky.actor.status#live' | (string & {})
696
696
  record: { [_ in string]: unknown }
697
697
  embed?: $Typed<AppBskyEmbedExternal.View> | { $type: string }
698
+ labels?: ComAtprotoLabelDefs.Label[]
698
699
  /** The date when this status will expire. The application might choose to no longer return the status after expiration. */
699
700
  expiresAt?: string
700
701
  /** True if the status is not expired, false if it is expired. Only present if expiration was set. */
@@ -32,6 +32,7 @@ export function validateMain<V>(v: V) {
32
32
 
33
33
  export interface Image {
34
34
  $type?: 'app.bsky.embed.images#image'
35
+ /** The raw image file. May be up to 2mb, formerly limited to 1mb. */
35
36
  image: BlobRef
36
37
  /** Alt text description of the image, for accessibility. */
37
38
  alt: string
@@ -0,0 +1,43 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as AppBskyActorDefs from '../actor/defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.unspecced.getSuggestedUsersForDiscover'
18
+
19
+ export type QueryParams = {
20
+ limit?: number
21
+ }
22
+ export type InputSchema = undefined
23
+
24
+ export interface OutputSchema {
25
+ actors: AppBskyActorDefs.ProfileView[]
26
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
27
+ recIdStr?: string
28
+ }
29
+
30
+ export interface CallOptions {
31
+ signal?: AbortSignal
32
+ headers?: HeadersMap
33
+ }
34
+
35
+ export interface Response {
36
+ success: boolean
37
+ headers: HeadersMap
38
+ data: OutputSchema
39
+ }
40
+
41
+ export function toKnownErr(e: any) {
42
+ return e
43
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton'
17
+
18
+ export type QueryParams = {
19
+ /** DID of the account making the request (not included for public/unauthenticated queries). */
20
+ viewer?: string
21
+ limit?: number
22
+ }
23
+ export type InputSchema = undefined
24
+
25
+ export interface OutputSchema {
26
+ dids: string[]
27
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
28
+ recIdStr?: string
29
+ }
30
+
31
+ export interface CallOptions {
32
+ signal?: AbortSignal
33
+ headers?: HeadersMap
34
+ }
35
+
36
+ export interface Response {
37
+ success: boolean
38
+ headers: HeadersMap
39
+ data: OutputSchema
40
+ }
41
+
42
+ export function toKnownErr(e: any) {
43
+ return e
44
+ }