@atproto/api 0.9.1 → 0.9.3

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 (317) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/index.d.ts +15 -0
  3. package/dist/client/lexicons.d.ts +230 -0
  4. package/dist/client/types/{com/atproto/server/getAccountsConfig.d.ts → app/bsky/unspecced/getTaggedSuggestions.d.ts} +8 -9
  5. package/dist/client/types/com/atproto/admin/{resolveModerationReports.d.ts → createCommunicationTemplate.d.ts} +5 -4
  6. package/dist/client/types/com/atproto/admin/defs.d.ts +13 -0
  7. package/dist/client/types/{app/bsky/feed/unbookmarkFeed.d.ts → com/atproto/admin/deleteCommunicationTemplate.d.ts} +1 -1
  8. package/dist/client/types/{app/bsky/moderation/getServices.d.ts → com/atproto/admin/listCommunicationTemplates.d.ts} +2 -3
  9. package/dist/client/types/com/atproto/admin/{reverseModerationAction.d.ts → updateCommunicationTemplate.d.ts} +7 -4
  10. package/dist/index.js +670 -336
  11. package/dist/index.js.map +3 -3
  12. package/package.json +4 -4
  13. package/src/client/index.ts +85 -0
  14. package/src/client/lexicons.ts +249 -0
  15. package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +55 -0
  16. package/src/client/types/com/atproto/admin/createCommunicationTemplate.ts +43 -0
  17. package/src/client/types/com/atproto/admin/defs.ts +35 -0
  18. package/src/client/types/com/atproto/admin/deleteCommunicationTemplate.ts +32 -0
  19. package/src/client/types/com/atproto/admin/listCommunicationTemplates.ts +34 -0
  20. package/src/client/types/com/atproto/admin/updateCommunicationTemplate.ts +46 -0
  21. package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
  22. package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
  23. package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
  24. package/dist/client/types/app/bsky/actor/searchActor.d.ts +0 -22
  25. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +0 -20
  26. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
  27. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -47
  28. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +0 -17
  29. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
  30. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +0 -21
  31. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
  32. package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
  33. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
  34. package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
  35. package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
  36. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
  37. package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
  38. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  39. package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  40. package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
  41. package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
  42. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
  43. package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
  44. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
  45. package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
  46. package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
  47. package/dist/client/types/app/bsky/moderation/defs.d.ts +0 -49
  48. package/dist/client/types/app/bsky/moderation/getService.d.ts +0 -16
  49. package/dist/client/types/app/bsky/moderation/service.d.ts +0 -17
  50. package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
  51. package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
  52. package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
  53. package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
  54. package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
  55. package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
  56. package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +0 -18
  57. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +0 -22
  58. package/dist/client/types/com/atproto/account/create.d.ts +0 -41
  59. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  60. package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
  61. package/dist/client/types/com/atproto/account/get.d.ts +0 -12
  62. package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
  63. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  64. package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  65. package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
  66. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +0 -29
  67. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +0 -16
  68. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +0 -22
  69. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +0 -16
  70. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +0 -28
  71. package/dist/client/types/com/atproto/admin/getSubjectState.d.ts +0 -26
  72. package/dist/client/types/com/atproto/admin/getUserAccountInfo.d.ts +0 -16
  73. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
  74. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
  75. package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +0 -24
  76. package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
  77. package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
  78. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +0 -34
  79. package/dist/client/types/com/atproto/admin/updateSubjectState.d.ts +0 -32
  80. package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
  81. package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
  82. package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
  83. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
  84. package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
  85. package/dist/client/types/com/atproto/repo/importRepo.d.ts +0 -19
  86. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +0 -24
  87. package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
  88. package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
  89. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +0 -19
  90. package/dist/client/types/com/atproto/report/create.d.ts +0 -39
  91. package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
  92. package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
  93. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +0 -31
  94. package/dist/client/types/com/atproto/session/create.d.ts +0 -29
  95. package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
  96. package/dist/client/types/com/atproto/session/get.d.ts +0 -18
  97. package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
  98. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
  99. package/dist/client/types/com/atproto/sync/getCurrent.d.ts +0 -22
  100. package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -21
  101. package/dist/client/types/com/atproto/sync/importRepo.d.ts +0 -16
  102. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
  103. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  104. package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +0 -18
  105. package/dist/session.d.ts +0 -42
  106. package/dist/src/client/index.d.ts +0 -462
  107. package/dist/src/client/lexicons.d.ts +0 -2910
  108. package/dist/src/client/schemas.d.ts +0 -17
  109. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
  110. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
  111. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
  112. package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
  113. package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
  114. package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
  115. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
  116. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
  117. package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
  118. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
  119. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
  120. package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
  121. package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
  122. package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
  123. package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
  124. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
  125. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
  126. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
  127. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
  128. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
  129. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
  130. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -18
  131. package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
  132. package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
  133. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
  134. package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
  135. package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
  136. package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
  137. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
  138. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
  139. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
  140. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
  141. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
  142. package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
  143. package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
  144. package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
  145. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
  146. package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
  147. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
  148. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
  149. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
  150. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  151. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  152. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  153. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
  154. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
  155. package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
  156. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
  157. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
  158. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
  159. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
  160. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
  161. package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
  162. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
  163. package/dist/src/client/types/app/bsky/like.d.ts +0 -10
  164. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
  165. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
  166. package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
  167. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
  168. package/dist/src/client/types/app/bsky/post.d.ts +0 -23
  169. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
  170. package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
  171. package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
  172. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
  173. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
  174. package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
  175. package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
  176. package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
  177. package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
  178. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  179. package/dist/src/client/types/com/atproto/account/delete.d.ts +0 -13
  180. package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
  181. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  182. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  183. package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
  184. package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
  185. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
  186. package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
  187. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
  188. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
  189. package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
  190. package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
  191. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
  192. package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
  193. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
  194. package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
  195. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
  196. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
  197. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
  198. package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
  199. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
  200. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
  201. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
  202. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
  203. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
  204. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
  205. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
  206. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
  207. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
  208. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
  209. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
  210. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
  211. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
  212. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
  213. package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
  214. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
  215. package/dist/src/client/types/com/atproto/session/create.d.ts +0 -26
  216. package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
  217. package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
  218. package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -21
  219. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
  220. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  221. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  222. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
  223. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
  224. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
  225. package/dist/src/index.d.ts +0 -4
  226. package/dist/src/schemas.d.ts +0 -19
  227. package/dist/src/session.d.ts +0 -42
  228. package/dist/src/types/app/bsky/acceptedBadge.d.ts +0 -10
  229. package/dist/src/types/app/bsky/badge.d.ts +0 -22
  230. package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
  231. package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
  232. package/dist/src/types/app/bsky/declaration.d.ts +0 -6
  233. package/dist/src/types/app/bsky/follow.d.ts +0 -9
  234. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
  235. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
  236. package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
  237. package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
  238. package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
  239. package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
  240. package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
  241. package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
  242. package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
  243. package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
  244. package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
  245. package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
  246. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  247. package/dist/src/types/app/bsky/invite.d.ts +0 -10
  248. package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
  249. package/dist/src/types/app/bsky/like.d.ts +0 -10
  250. package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
  251. package/dist/src/types/app/bsky/post.d.ts +0 -23
  252. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
  253. package/dist/src/types/app/bsky/profile.d.ts +0 -11
  254. package/dist/src/types/app/bsky/repost.d.ts +0 -10
  255. package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
  256. package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
  257. package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
  258. package/dist/src/types/com/atproto/createSession.d.ts +0 -23
  259. package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
  260. package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
  261. package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
  262. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
  263. package/dist/src/types/com/atproto/getSession.d.ts +0 -17
  264. package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
  265. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
  266. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
  267. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
  268. package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
  269. package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
  270. package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
  271. package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
  272. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
  273. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
  274. package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
  275. package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
  276. package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
  277. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
  278. package/dist/src/types/todo/adx/createAccount.d.ts +0 -36
  279. package/dist/src/types/todo/adx/createInviteCode.d.ts +0 -19
  280. package/dist/src/types/todo/adx/createSession.d.ts +0 -22
  281. package/dist/src/types/todo/adx/deleteAccount.d.ts +0 -19
  282. package/dist/src/types/todo/adx/deleteSession.d.ts +0 -19
  283. package/dist/src/types/todo/adx/getAccount.d.ts +0 -19
  284. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +0 -17
  285. package/dist/src/types/todo/adx/getSession.d.ts +0 -17
  286. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +0 -34
  287. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +0 -22
  288. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +0 -15
  289. package/dist/src/types/todo/adx/repoDescribe.d.ts +0 -21
  290. package/dist/src/types/todo/adx/repoGetRecord.d.ts +0 -20
  291. package/dist/src/types/todo/adx/repoListRecords.d.ts +0 -25
  292. package/dist/src/types/todo/adx/repoPutRecord.d.ts +0 -23
  293. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +0 -18
  294. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +0 -25
  295. package/dist/src/types/todo/adx/resolveName.d.ts +0 -17
  296. package/dist/src/types/todo/adx/syncGetRepo.d.ts +0 -15
  297. package/dist/src/types/todo/adx/syncGetRoot.d.ts +0 -17
  298. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +0 -14
  299. package/dist/src/types/todo/social/badge.d.ts +0 -23
  300. package/dist/src/types/todo/social/follow.d.ts +0 -5
  301. package/dist/src/types/todo/social/getAuthorFeed.d.ts +0 -55
  302. package/dist/src/types/todo/social/getFeed.d.ts +0 -55
  303. package/dist/src/types/todo/social/getHomeFeed.d.ts +0 -55
  304. package/dist/src/types/todo/social/getLikedBy.d.ts +0 -26
  305. package/dist/src/types/todo/social/getNotificationCount.d.ts +0 -16
  306. package/dist/src/types/todo/social/getNotifications.d.ts +0 -31
  307. package/dist/src/types/todo/social/getPostThread.d.ts +0 -54
  308. package/dist/src/types/todo/social/getProfile.d.ts +0 -40
  309. package/dist/src/types/todo/social/getRepostedBy.d.ts +0 -26
  310. package/dist/src/types/todo/social/getUserFollowers.d.ts +0 -30
  311. package/dist/src/types/todo/social/getUserFollows.d.ts +0 -30
  312. package/dist/src/types/todo/social/like.d.ts +0 -5
  313. package/dist/src/types/todo/social/mediaEmbed.d.ts +0 -15
  314. package/dist/src/types/todo/social/post.d.ts +0 -18
  315. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +0 -19
  316. package/dist/src/types/todo/social/profile.d.ts +0 -10
  317. package/dist/src/types/todo/social/repost.d.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -20,15 +20,15 @@
20
20
  "tlds": "^1.234.0",
21
21
  "typed-emitter": "^2.1.0",
22
22
  "zod": "^3.21.4",
23
- "@atproto/lexicon": "^0.3.1",
24
23
  "@atproto/common-web": "^0.2.3",
24
+ "@atproto/lexicon": "^0.3.1",
25
25
  "@atproto/syntax": "^0.1.5",
26
26
  "@atproto/xrpc": "^0.4.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "common-tags": "^1.8.2",
30
- "@atproto/dev-env": "^0.2.24",
31
- "@atproto/lex-cli": "^0.3.0"
30
+ "@atproto/lex-cli": "^0.3.0",
31
+ "@atproto/dev-env": "^0.2.26"
32
32
  },
33
33
  "scripts": {
34
34
  "codegen": "pnpm docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -7,8 +7,10 @@ import {
7
7
  } from '@atproto/xrpc'
8
8
  import { schemas } from './lexicons'
9
9
  import { CID } from 'multiformats/cid'
10
+ import * as ComAtprotoAdminCreateCommunicationTemplate from './types/com/atproto/admin/createCommunicationTemplate'
10
11
  import * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
11
12
  import * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'
13
+ import * as ComAtprotoAdminDeleteCommunicationTemplate from './types/com/atproto/admin/deleteCommunicationTemplate'
12
14
  import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
13
15
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
14
16
  import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
@@ -20,12 +22,14 @@ import * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/ge
20
22
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
21
23
  import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
22
24
  import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
25
+ import * as ComAtprotoAdminListCommunicationTemplates from './types/com/atproto/admin/listCommunicationTemplates'
23
26
  import * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents'
24
27
  import * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses'
25
28
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
26
29
  import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
27
30
  import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
28
31
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
32
+ import * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
29
33
  import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
30
34
  import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
31
35
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
@@ -143,12 +147,15 @@ import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
143
147
  import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
144
148
  import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
145
149
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
150
+ import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
146
151
  import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
147
152
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
148
153
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
149
154
 
155
+ export * as ComAtprotoAdminCreateCommunicationTemplate from './types/com/atproto/admin/createCommunicationTemplate'
150
156
  export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
151
157
  export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'
158
+ export * as ComAtprotoAdminDeleteCommunicationTemplate from './types/com/atproto/admin/deleteCommunicationTemplate'
152
159
  export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
153
160
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
154
161
  export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
@@ -160,12 +167,14 @@ export * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/ge
160
167
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
161
168
  export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
162
169
  export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
170
+ export * as ComAtprotoAdminListCommunicationTemplates from './types/com/atproto/admin/listCommunicationTemplates'
163
171
  export * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents'
164
172
  export * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses'
165
173
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
166
174
  export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
167
175
  export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
168
176
  export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
177
+ export * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
169
178
  export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
170
179
  export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
171
180
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
@@ -283,6 +292,7 @@ export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
283
292
  export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
284
293
  export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
285
294
  export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
295
+ export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
286
296
  export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
287
297
  export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
288
298
  export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
@@ -377,6 +387,22 @@ export class ComAtprotoAdminNS {
377
387
  this._service = service
378
388
  }
379
389
 
390
+ createCommunicationTemplate(
391
+ data?: ComAtprotoAdminCreateCommunicationTemplate.InputSchema,
392
+ opts?: ComAtprotoAdminCreateCommunicationTemplate.CallOptions,
393
+ ): Promise<ComAtprotoAdminCreateCommunicationTemplate.Response> {
394
+ return this._service.xrpc
395
+ .call(
396
+ 'com.atproto.admin.createCommunicationTemplate',
397
+ opts?.qp,
398
+ data,
399
+ opts,
400
+ )
401
+ .catch((e) => {
402
+ throw ComAtprotoAdminCreateCommunicationTemplate.toKnownErr(e)
403
+ })
404
+ }
405
+
380
406
  deleteAccount(
381
407
  data?: ComAtprotoAdminDeleteAccount.InputSchema,
382
408
  opts?: ComAtprotoAdminDeleteAccount.CallOptions,
@@ -388,6 +414,22 @@ export class ComAtprotoAdminNS {
388
414
  })
389
415
  }
390
416
 
417
+ deleteCommunicationTemplate(
418
+ data?: ComAtprotoAdminDeleteCommunicationTemplate.InputSchema,
419
+ opts?: ComAtprotoAdminDeleteCommunicationTemplate.CallOptions,
420
+ ): Promise<ComAtprotoAdminDeleteCommunicationTemplate.Response> {
421
+ return this._service.xrpc
422
+ .call(
423
+ 'com.atproto.admin.deleteCommunicationTemplate',
424
+ opts?.qp,
425
+ data,
426
+ opts,
427
+ )
428
+ .catch((e) => {
429
+ throw ComAtprotoAdminDeleteCommunicationTemplate.toKnownErr(e)
430
+ })
431
+ }
432
+
391
433
  disableAccountInvites(
392
434
  data?: ComAtprotoAdminDisableAccountInvites.InputSchema,
393
435
  opts?: ComAtprotoAdminDisableAccountInvites.CallOptions,
@@ -509,6 +551,22 @@ export class ComAtprotoAdminNS {
509
551
  })
510
552
  }
511
553
 
554
+ listCommunicationTemplates(
555
+ params?: ComAtprotoAdminListCommunicationTemplates.QueryParams,
556
+ opts?: ComAtprotoAdminListCommunicationTemplates.CallOptions,
557
+ ): Promise<ComAtprotoAdminListCommunicationTemplates.Response> {
558
+ return this._service.xrpc
559
+ .call(
560
+ 'com.atproto.admin.listCommunicationTemplates',
561
+ params,
562
+ undefined,
563
+ opts,
564
+ )
565
+ .catch((e) => {
566
+ throw ComAtprotoAdminListCommunicationTemplates.toKnownErr(e)
567
+ })
568
+ }
569
+
512
570
  queryModerationEvents(
513
571
  params?: ComAtprotoAdminQueryModerationEvents.QueryParams,
514
572
  opts?: ComAtprotoAdminQueryModerationEvents.CallOptions,
@@ -580,6 +638,22 @@ export class ComAtprotoAdminNS {
580
638
  })
581
639
  }
582
640
 
641
+ updateCommunicationTemplate(
642
+ data?: ComAtprotoAdminUpdateCommunicationTemplate.InputSchema,
643
+ opts?: ComAtprotoAdminUpdateCommunicationTemplate.CallOptions,
644
+ ): Promise<ComAtprotoAdminUpdateCommunicationTemplate.Response> {
645
+ return this._service.xrpc
646
+ .call(
647
+ 'com.atproto.admin.updateCommunicationTemplate',
648
+ opts?.qp,
649
+ data,
650
+ opts,
651
+ )
652
+ .catch((e) => {
653
+ throw ComAtprotoAdminUpdateCommunicationTemplate.toKnownErr(e)
654
+ })
655
+ }
656
+
583
657
  updateSubjectStatus(
584
658
  data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema,
585
659
  opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions,
@@ -2436,6 +2510,17 @@ export class AppBskyUnspeccedNS {
2436
2510
  })
2437
2511
  }
2438
2512
 
2513
+ getTaggedSuggestions(
2514
+ params?: AppBskyUnspeccedGetTaggedSuggestions.QueryParams,
2515
+ opts?: AppBskyUnspeccedGetTaggedSuggestions.CallOptions,
2516
+ ): Promise<AppBskyUnspeccedGetTaggedSuggestions.Response> {
2517
+ return this._service.xrpc
2518
+ .call('app.bsky.unspecced.getTaggedSuggestions', params, undefined, opts)
2519
+ .catch((e) => {
2520
+ throw AppBskyUnspeccedGetTaggedSuggestions.toKnownErr(e)
2521
+ })
2522
+ }
2523
+
2439
2524
  getTimelineSkeleton(
2440
2525
  params?: AppBskyUnspeccedGetTimelineSkeleton.QueryParams,
2441
2526
  opts?: AppBskyUnspeccedGetTimelineSkeleton.CallOptions,
@@ -4,6 +4,51 @@
4
4
  import { LexiconDoc, Lexicons } from '@atproto/lexicon'
5
5
 
6
6
  export const schemaDict = {
7
+ ComAtprotoAdminCreateCommunicationTemplate: {
8
+ lexicon: 1,
9
+ id: 'com.atproto.admin.createCommunicationTemplate',
10
+ defs: {
11
+ main: {
12
+ type: 'procedure',
13
+ description:
14
+ 'Administrative action to create a new, re-usable communication (email for now) template.',
15
+ input: {
16
+ encoding: 'application/json',
17
+ schema: {
18
+ type: 'object',
19
+ required: ['subject', 'contentMarkdown', 'name'],
20
+ properties: {
21
+ name: {
22
+ type: 'string',
23
+ description: 'Name of the template.',
24
+ },
25
+ contentMarkdown: {
26
+ type: 'string',
27
+ description:
28
+ 'Content of the template, markdown supported, can contain variable placeholders.',
29
+ },
30
+ subject: {
31
+ type: 'string',
32
+ description: 'Subject of the message, used in emails.',
33
+ },
34
+ createdBy: {
35
+ type: 'string',
36
+ format: 'did',
37
+ description: 'DID of the user who is creating the template.',
38
+ },
39
+ },
40
+ },
41
+ },
42
+ output: {
43
+ encoding: 'application/json',
44
+ schema: {
45
+ type: 'ref',
46
+ ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
47
+ },
48
+ },
49
+ },
50
+ },
51
+ },
7
52
  ComAtprotoAdminDefs: {
8
53
  lexicon: 1,
9
54
  id: 'com.atproto.admin.defs',
@@ -850,6 +895,52 @@ export const schemaDict = {
850
895
  },
851
896
  },
852
897
  },
898
+ communicationTemplateView: {
899
+ type: 'object',
900
+ required: [
901
+ 'id',
902
+ 'name',
903
+ 'contentMarkdown',
904
+ 'disabled',
905
+ 'lastUpdatedBy',
906
+ 'createdAt',
907
+ 'updatedAt',
908
+ ],
909
+ properties: {
910
+ id: {
911
+ type: 'string',
912
+ },
913
+ name: {
914
+ type: 'string',
915
+ description: 'Name of the template.',
916
+ },
917
+ subject: {
918
+ type: 'string',
919
+ description:
920
+ 'Content of the template, can contain markdown and variable placeholders.',
921
+ },
922
+ contentMarkdown: {
923
+ type: 'string',
924
+ description: 'Subject of the message, used in emails.',
925
+ },
926
+ disabled: {
927
+ type: 'boolean',
928
+ },
929
+ lastUpdatedBy: {
930
+ type: 'string',
931
+ format: 'did',
932
+ description: 'DID of the user who last updated the template.',
933
+ },
934
+ createdAt: {
935
+ type: 'string',
936
+ format: 'datetime',
937
+ },
938
+ updatedAt: {
939
+ type: 'string',
940
+ format: 'datetime',
941
+ },
942
+ },
943
+ },
853
944
  },
854
945
  },
855
946
  ComAtprotoAdminDeleteAccount: {
@@ -875,6 +966,28 @@ export const schemaDict = {
875
966
  },
876
967
  },
877
968
  },
969
+ ComAtprotoAdminDeleteCommunicationTemplate: {
970
+ lexicon: 1,
971
+ id: 'com.atproto.admin.deleteCommunicationTemplate',
972
+ defs: {
973
+ main: {
974
+ type: 'procedure',
975
+ description: 'Delete a communication template.',
976
+ input: {
977
+ encoding: 'application/json',
978
+ schema: {
979
+ type: 'object',
980
+ required: ['id'],
981
+ properties: {
982
+ id: {
983
+ type: 'string',
984
+ },
985
+ },
986
+ },
987
+ },
988
+ },
989
+ },
990
+ },
878
991
  ComAtprotoAdminDisableAccountInvites: {
879
992
  lexicon: 1,
880
993
  id: 'com.atproto.admin.disableAccountInvites',
@@ -1282,6 +1395,32 @@ export const schemaDict = {
1282
1395
  },
1283
1396
  },
1284
1397
  },
1398
+ ComAtprotoAdminListCommunicationTemplates: {
1399
+ lexicon: 1,
1400
+ id: 'com.atproto.admin.listCommunicationTemplates',
1401
+ defs: {
1402
+ main: {
1403
+ type: 'query',
1404
+ description: 'Get list of all communication templates.',
1405
+ output: {
1406
+ encoding: 'application/json',
1407
+ schema: {
1408
+ type: 'object',
1409
+ required: ['communicationTemplates'],
1410
+ properties: {
1411
+ communicationTemplates: {
1412
+ type: 'array',
1413
+ items: {
1414
+ type: 'ref',
1415
+ ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
1416
+ },
1417
+ },
1418
+ },
1419
+ },
1420
+ },
1421
+ },
1422
+ },
1423
+ },
1285
1424
  ComAtprotoAdminQueryModerationEvents: {
1286
1425
  lexicon: 1,
1287
1426
  id: 'com.atproto.admin.queryModerationEvents',
@@ -1619,6 +1758,58 @@ export const schemaDict = {
1619
1758
  },
1620
1759
  },
1621
1760
  },
1761
+ ComAtprotoAdminUpdateCommunicationTemplate: {
1762
+ lexicon: 1,
1763
+ id: 'com.atproto.admin.updateCommunicationTemplate',
1764
+ defs: {
1765
+ main: {
1766
+ type: 'procedure',
1767
+ description:
1768
+ 'Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.',
1769
+ input: {
1770
+ encoding: 'application/json',
1771
+ schema: {
1772
+ type: 'object',
1773
+ required: ['id'],
1774
+ properties: {
1775
+ id: {
1776
+ type: 'string',
1777
+ description: 'ID of the template to be updated.',
1778
+ },
1779
+ name: {
1780
+ type: 'string',
1781
+ description: 'Name of the template.',
1782
+ },
1783
+ contentMarkdown: {
1784
+ type: 'string',
1785
+ description:
1786
+ 'Content of the template, markdown supported, can contain variable placeholders.',
1787
+ },
1788
+ subject: {
1789
+ type: 'string',
1790
+ description: 'Subject of the message, used in emails.',
1791
+ },
1792
+ updatedBy: {
1793
+ type: 'string',
1794
+ format: 'did',
1795
+ description: 'DID of the user who is updating the template.',
1796
+ },
1797
+ disabled: {
1798
+ type: 'boolean',
1799
+ },
1800
+ },
1801
+ },
1802
+ },
1803
+ output: {
1804
+ encoding: 'application/json',
1805
+ schema: {
1806
+ type: 'ref',
1807
+ ref: 'lex:com.atproto.admin.defs#communicationTemplateView',
1808
+ },
1809
+ },
1810
+ },
1811
+ },
1812
+ },
1622
1813
  ComAtprotoAdminUpdateSubjectStatus: {
1623
1814
  lexicon: 1,
1624
1815
  id: 'com.atproto.admin.updateSubjectStatus',
@@ -7717,6 +7908,54 @@ export const schemaDict = {
7717
7908
  },
7718
7909
  },
7719
7910
  },
7911
+ AppBskyUnspeccedGetTaggedSuggestions: {
7912
+ lexicon: 1,
7913
+ id: 'app.bsky.unspecced.getTaggedSuggestions',
7914
+ defs: {
7915
+ main: {
7916
+ type: 'query',
7917
+ description:
7918
+ 'Get a list of suggestions (feeds and users) tagged with categories',
7919
+ parameters: {
7920
+ type: 'params',
7921
+ properties: {},
7922
+ },
7923
+ output: {
7924
+ encoding: 'application/json',
7925
+ schema: {
7926
+ type: 'object',
7927
+ required: ['suggestions'],
7928
+ properties: {
7929
+ suggestions: {
7930
+ type: 'array',
7931
+ items: {
7932
+ type: 'ref',
7933
+ ref: 'lex:app.bsky.unspecced.getTaggedSuggestions#suggestion',
7934
+ },
7935
+ },
7936
+ },
7937
+ },
7938
+ },
7939
+ },
7940
+ suggestion: {
7941
+ type: 'object',
7942
+ required: ['tag', 'subjectType', 'subject'],
7943
+ properties: {
7944
+ tag: {
7945
+ type: 'string',
7946
+ },
7947
+ subjectType: {
7948
+ type: 'string',
7949
+ knownValues: ['actor', 'feed'],
7950
+ },
7951
+ subject: {
7952
+ type: 'string',
7953
+ format: 'uri',
7954
+ },
7955
+ },
7956
+ },
7957
+ },
7958
+ },
7720
7959
  AppBskyUnspeccedGetTimelineSkeleton: {
7721
7960
  lexicon: 1,
7722
7961
  id: 'app.bsky.unspecced.getTimelineSkeleton',
@@ -7896,8 +8135,12 @@ export const schemaDict = {
7896
8135
  export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
7897
8136
  export const lexicons: Lexicons = new Lexicons(schemas)
7898
8137
  export const ids = {
8138
+ ComAtprotoAdminCreateCommunicationTemplate:
8139
+ 'com.atproto.admin.createCommunicationTemplate',
7899
8140
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
7900
8141
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
8142
+ ComAtprotoAdminDeleteCommunicationTemplate:
8143
+ 'com.atproto.admin.deleteCommunicationTemplate',
7901
8144
  ComAtprotoAdminDisableAccountInvites:
7902
8145
  'com.atproto.admin.disableAccountInvites',
7903
8146
  ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
@@ -7910,6 +8153,8 @@ export const ids = {
7910
8153
  ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
7911
8154
  ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
7912
8155
  ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
8156
+ ComAtprotoAdminListCommunicationTemplates:
8157
+ 'com.atproto.admin.listCommunicationTemplates',
7913
8158
  ComAtprotoAdminQueryModerationEvents:
7914
8159
  'com.atproto.admin.queryModerationEvents',
7915
8160
  ComAtprotoAdminQueryModerationStatuses:
@@ -7918,6 +8163,8 @@ export const ids = {
7918
8163
  ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
7919
8164
  ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
7920
8165
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
8166
+ ComAtprotoAdminUpdateCommunicationTemplate:
8167
+ 'com.atproto.admin.updateCommunicationTemplate',
7921
8168
  ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
7922
8169
  ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
7923
8170
  ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
@@ -8043,6 +8290,8 @@ export const ids = {
8043
8290
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
8044
8291
  AppBskyUnspeccedGetPopularFeedGenerators:
8045
8292
  'app.bsky.unspecced.getPopularFeedGenerators',
8293
+ AppBskyUnspeccedGetTaggedSuggestions:
8294
+ 'app.bsky.unspecced.getTaggedSuggestions',
8046
8295
  AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton',
8047
8296
  AppBskyUnspeccedSearchActorsSkeleton:
8048
8297
  'app.bsky.unspecced.searchActorsSkeleton',
@@ -0,0 +1,55 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export type InputSchema = undefined
13
+
14
+ export interface OutputSchema {
15
+ suggestions: Suggestion[]
16
+ [k: string]: unknown
17
+ }
18
+
19
+ export interface CallOptions {
20
+ headers?: Headers
21
+ }
22
+
23
+ export interface Response {
24
+ success: boolean
25
+ headers: Headers
26
+ data: OutputSchema
27
+ }
28
+
29
+ export function toKnownErr(e: any) {
30
+ if (e instanceof XRPCError) {
31
+ }
32
+ return e
33
+ }
34
+
35
+ export interface Suggestion {
36
+ tag: string
37
+ subjectType: 'actor' | 'feed' | (string & {})
38
+ subject: string
39
+ [k: string]: unknown
40
+ }
41
+
42
+ export function isSuggestion(v: unknown): v is Suggestion {
43
+ return (
44
+ isObj(v) &&
45
+ hasProp(v, '$type') &&
46
+ v.$type === 'app.bsky.unspecced.getTaggedSuggestions#suggestion'
47
+ )
48
+ }
49
+
50
+ export function validateSuggestion(v: unknown): ValidationResult {
51
+ return lexicons.validate(
52
+ 'app.bsky.unspecced.getTaggedSuggestions#suggestion',
53
+ v,
54
+ )
55
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ComAtprotoAdminDefs from './defs'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ /** Name of the template. */
15
+ name: string
16
+ /** Content of the template, markdown supported, can contain variable placeholders. */
17
+ contentMarkdown: string
18
+ /** Subject of the message, used in emails. */
19
+ subject: string
20
+ /** DID of the user who is creating the template. */
21
+ createdBy?: string
22
+ [k: string]: unknown
23
+ }
24
+
25
+ export type OutputSchema = ComAtprotoAdminDefs.CommunicationTemplateView
26
+
27
+ export interface CallOptions {
28
+ headers?: Headers
29
+ qp?: QueryParams
30
+ encoding: 'application/json'
31
+ }
32
+
33
+ export interface Response {
34
+ success: boolean
35
+ headers: Headers
36
+ data: OutputSchema
37
+ }
38
+
39
+ export function toKnownErr(e: any) {
40
+ if (e instanceof XRPCError) {
41
+ }
42
+ return e
43
+ }
@@ -717,3 +717,38 @@ export function isModEventEmail(v: unknown): v is ModEventEmail {
717
717
  export function validateModEventEmail(v: unknown): ValidationResult {
718
718
  return lexicons.validate('com.atproto.admin.defs#modEventEmail', v)
719
719
  }
720
+
721
+ export interface CommunicationTemplateView {
722
+ id: string
723
+ /** Name of the template. */
724
+ name: string
725
+ /** Content of the template, can contain markdown and variable placeholders. */
726
+ subject?: string
727
+ /** Subject of the message, used in emails. */
728
+ contentMarkdown: string
729
+ disabled: boolean
730
+ /** DID of the user who last updated the template. */
731
+ lastUpdatedBy: string
732
+ createdAt: string
733
+ updatedAt: string
734
+ [k: string]: unknown
735
+ }
736
+
737
+ export function isCommunicationTemplateView(
738
+ v: unknown,
739
+ ): v is CommunicationTemplateView {
740
+ return (
741
+ isObj(v) &&
742
+ hasProp(v, '$type') &&
743
+ v.$type === 'com.atproto.admin.defs#communicationTemplateView'
744
+ )
745
+ }
746
+
747
+ export function validateCommunicationTemplateView(
748
+ v: unknown,
749
+ ): ValidationResult {
750
+ return lexicons.validate(
751
+ 'com.atproto.admin.defs#communicationTemplateView',
752
+ v,
753
+ )
754
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export interface InputSchema {
13
+ id: string
14
+ [k: string]: unknown
15
+ }
16
+
17
+ export interface CallOptions {
18
+ headers?: Headers
19
+ qp?: QueryParams
20
+ encoding: 'application/json'
21
+ }
22
+
23
+ export interface Response {
24
+ success: boolean
25
+ headers: Headers
26
+ }
27
+
28
+ export function toKnownErr(e: any) {
29
+ if (e instanceof XRPCError) {
30
+ }
31
+ return e
32
+ }