@atproto/api 0.9.1 → 0.9.2

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 (316) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client/index.d.ts +12 -0
  3. package/dist/client/lexicons.d.ts +182 -0
  4. package/dist/client/types/com/atproto/admin/{resolveModerationReports.d.ts → createCommunicationTemplate.d.ts} +5 -4
  5. package/dist/client/types/com/atproto/admin/defs.d.ts +13 -0
  6. package/dist/client/types/{app/bsky/feed/unbookmarkFeed.d.ts → com/atproto/admin/deleteCommunicationTemplate.d.ts} +1 -1
  7. package/dist/client/types/{app/bsky/moderation/getServices.d.ts → com/atproto/admin/listCommunicationTemplates.d.ts} +2 -3
  8. package/dist/client/types/com/atproto/admin/{reverseModerationAction.d.ts → updateCommunicationTemplate.d.ts} +7 -4
  9. package/dist/index.js +598 -336
  10. package/dist/index.js.map +3 -3
  11. package/package.json +4 -4
  12. package/src/client/index.ts +72 -0
  13. package/src/client/lexicons.ts +199 -0
  14. package/src/client/types/com/atproto/admin/createCommunicationTemplate.ts +43 -0
  15. package/src/client/types/com/atproto/admin/defs.ts +35 -0
  16. package/src/client/types/com/atproto/admin/deleteCommunicationTemplate.ts +32 -0
  17. package/src/client/types/com/atproto/admin/listCommunicationTemplates.ts +34 -0
  18. package/src/client/types/com/atproto/admin/updateCommunicationTemplate.ts +46 -0
  19. package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
  20. package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
  21. package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
  22. package/dist/client/types/app/bsky/actor/searchActor.d.ts +0 -22
  23. package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +0 -20
  24. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
  25. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -47
  26. package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +0 -17
  27. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
  28. package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +0 -21
  29. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
  30. package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
  31. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
  32. package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
  33. package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
  34. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
  35. package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
  36. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  37. package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  38. package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
  39. package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
  40. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
  41. package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
  42. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
  43. package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
  44. package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
  45. package/dist/client/types/app/bsky/moderation/defs.d.ts +0 -49
  46. package/dist/client/types/app/bsky/moderation/getService.d.ts +0 -16
  47. package/dist/client/types/app/bsky/moderation/service.d.ts +0 -17
  48. package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
  49. package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
  50. package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
  51. package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
  52. package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
  53. package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
  54. package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +0 -18
  55. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +0 -22
  56. package/dist/client/types/com/atproto/account/create.d.ts +0 -41
  57. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  58. package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
  59. package/dist/client/types/com/atproto/account/get.d.ts +0 -12
  60. package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
  61. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  62. package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  63. package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
  64. package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +0 -29
  65. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +0 -16
  66. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +0 -22
  67. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +0 -16
  68. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +0 -28
  69. package/dist/client/types/com/atproto/admin/getSubjectState.d.ts +0 -26
  70. package/dist/client/types/com/atproto/admin/getUserAccountInfo.d.ts +0 -16
  71. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
  72. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
  73. package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +0 -24
  74. package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
  75. package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
  76. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +0 -34
  77. package/dist/client/types/com/atproto/admin/updateSubjectState.d.ts +0 -32
  78. package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
  79. package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
  80. package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
  81. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
  82. package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
  83. package/dist/client/types/com/atproto/repo/importRepo.d.ts +0 -19
  84. package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +0 -24
  85. package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
  86. package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
  87. package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +0 -19
  88. package/dist/client/types/com/atproto/report/create.d.ts +0 -39
  89. package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
  90. package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
  91. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
  92. package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +0 -31
  93. package/dist/client/types/com/atproto/session/create.d.ts +0 -29
  94. package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
  95. package/dist/client/types/com/atproto/session/get.d.ts +0 -18
  96. package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
  97. package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +0 -20
  98. package/dist/client/types/com/atproto/sync/getCurrent.d.ts +0 -22
  99. package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -21
  100. package/dist/client/types/com/atproto/sync/importRepo.d.ts +0 -16
  101. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
  102. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  103. package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +0 -18
  104. package/dist/session.d.ts +0 -42
  105. package/dist/src/client/index.d.ts +0 -462
  106. package/dist/src/client/lexicons.d.ts +0 -2910
  107. package/dist/src/client/schemas.d.ts +0 -17
  108. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
  109. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
  110. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
  111. package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
  112. package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
  113. package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
  114. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
  115. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
  116. package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
  117. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
  118. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
  119. package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
  120. package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
  121. package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
  122. package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
  123. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
  124. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
  125. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
  126. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
  127. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
  128. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
  129. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -18
  130. package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
  131. package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
  132. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
  133. package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
  134. package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
  135. package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
  136. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
  137. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
  138. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
  139. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
  140. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
  141. package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
  142. package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
  143. package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
  144. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
  145. package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
  146. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
  147. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
  148. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
  149. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  150. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  151. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  152. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
  153. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
  154. package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
  155. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
  156. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
  157. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
  158. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
  159. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
  160. package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
  161. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
  162. package/dist/src/client/types/app/bsky/like.d.ts +0 -10
  163. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
  164. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
  165. package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
  166. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
  167. package/dist/src/client/types/app/bsky/post.d.ts +0 -23
  168. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
  169. package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
  170. package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
  171. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
  172. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
  173. package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
  174. package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
  175. package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
  176. package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
  177. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  178. package/dist/src/client/types/com/atproto/account/delete.d.ts +0 -13
  179. package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
  180. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  181. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  182. package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
  183. package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
  184. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
  185. package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
  186. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
  187. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
  188. package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
  189. package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
  190. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
  191. package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
  192. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
  193. package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
  194. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
  195. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
  196. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
  197. package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
  198. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
  199. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
  200. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
  201. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
  202. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
  203. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
  204. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
  205. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
  206. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
  207. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
  208. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
  209. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
  210. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
  211. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
  212. package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
  213. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
  214. package/dist/src/client/types/com/atproto/session/create.d.ts +0 -26
  215. package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
  216. package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
  217. package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -21
  218. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
  219. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  220. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  221. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
  222. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
  223. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
  224. package/dist/src/index.d.ts +0 -4
  225. package/dist/src/schemas.d.ts +0 -19
  226. package/dist/src/session.d.ts +0 -42
  227. package/dist/src/types/app/bsky/acceptedBadge.d.ts +0 -10
  228. package/dist/src/types/app/bsky/badge.d.ts +0 -22
  229. package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
  230. package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
  231. package/dist/src/types/app/bsky/declaration.d.ts +0 -6
  232. package/dist/src/types/app/bsky/follow.d.ts +0 -9
  233. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
  234. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
  235. package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
  236. package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
  237. package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
  238. package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
  239. package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
  240. package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
  241. package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
  242. package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
  243. package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
  244. package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
  245. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  246. package/dist/src/types/app/bsky/invite.d.ts +0 -10
  247. package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
  248. package/dist/src/types/app/bsky/like.d.ts +0 -10
  249. package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
  250. package/dist/src/types/app/bsky/post.d.ts +0 -23
  251. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
  252. package/dist/src/types/app/bsky/profile.d.ts +0 -11
  253. package/dist/src/types/app/bsky/repost.d.ts +0 -10
  254. package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
  255. package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
  256. package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
  257. package/dist/src/types/com/atproto/createSession.d.ts +0 -23
  258. package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
  259. package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
  260. package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
  261. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
  262. package/dist/src/types/com/atproto/getSession.d.ts +0 -17
  263. package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
  264. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
  265. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
  266. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
  267. package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
  268. package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
  269. package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
  270. package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
  271. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
  272. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
  273. package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
  274. package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
  275. package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
  276. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
  277. package/dist/src/types/todo/adx/createAccount.d.ts +0 -36
  278. package/dist/src/types/todo/adx/createInviteCode.d.ts +0 -19
  279. package/dist/src/types/todo/adx/createSession.d.ts +0 -22
  280. package/dist/src/types/todo/adx/deleteAccount.d.ts +0 -19
  281. package/dist/src/types/todo/adx/deleteSession.d.ts +0 -19
  282. package/dist/src/types/todo/adx/getAccount.d.ts +0 -19
  283. package/dist/src/types/todo/adx/getAccountsConfig.d.ts +0 -17
  284. package/dist/src/types/todo/adx/getSession.d.ts +0 -17
  285. package/dist/src/types/todo/adx/repoBatchWrite.d.ts +0 -34
  286. package/dist/src/types/todo/adx/repoCreateRecord.d.ts +0 -22
  287. package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +0 -15
  288. package/dist/src/types/todo/adx/repoDescribe.d.ts +0 -21
  289. package/dist/src/types/todo/adx/repoGetRecord.d.ts +0 -20
  290. package/dist/src/types/todo/adx/repoListRecords.d.ts +0 -25
  291. package/dist/src/types/todo/adx/repoPutRecord.d.ts +0 -23
  292. package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +0 -18
  293. package/dist/src/types/todo/adx/resetAccountPassword.d.ts +0 -25
  294. package/dist/src/types/todo/adx/resolveName.d.ts +0 -17
  295. package/dist/src/types/todo/adx/syncGetRepo.d.ts +0 -15
  296. package/dist/src/types/todo/adx/syncGetRoot.d.ts +0 -17
  297. package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +0 -14
  298. package/dist/src/types/todo/social/badge.d.ts +0 -23
  299. package/dist/src/types/todo/social/follow.d.ts +0 -5
  300. package/dist/src/types/todo/social/getAuthorFeed.d.ts +0 -55
  301. package/dist/src/types/todo/social/getFeed.d.ts +0 -55
  302. package/dist/src/types/todo/social/getHomeFeed.d.ts +0 -55
  303. package/dist/src/types/todo/social/getLikedBy.d.ts +0 -26
  304. package/dist/src/types/todo/social/getNotificationCount.d.ts +0 -16
  305. package/dist/src/types/todo/social/getNotifications.d.ts +0 -31
  306. package/dist/src/types/todo/social/getPostThread.d.ts +0 -54
  307. package/dist/src/types/todo/social/getProfile.d.ts +0 -40
  308. package/dist/src/types/todo/social/getRepostedBy.d.ts +0 -26
  309. package/dist/src/types/todo/social/getUserFollowers.d.ts +0 -30
  310. package/dist/src/types/todo/social/getUserFollows.d.ts +0 -30
  311. package/dist/src/types/todo/social/like.d.ts +0 -5
  312. package/dist/src/types/todo/social/mediaEmbed.d.ts +0 -15
  313. package/dist/src/types/todo/social/post.d.ts +0 -18
  314. package/dist/src/types/todo/social/postNotificationsSeen.d.ts +0 -19
  315. package/dist/src/types/todo/social/profile.d.ts +0 -10
  316. 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.2",
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.25"
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'
@@ -147,8 +151,10 @@ import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced
147
151
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
148
152
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
149
153
 
154
+ export * as ComAtprotoAdminCreateCommunicationTemplate from './types/com/atproto/admin/createCommunicationTemplate'
150
155
  export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
151
156
  export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'
157
+ export * as ComAtprotoAdminDeleteCommunicationTemplate from './types/com/atproto/admin/deleteCommunicationTemplate'
152
158
  export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
153
159
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
154
160
  export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
@@ -160,12 +166,14 @@ export * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/ge
160
166
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
161
167
  export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
162
168
  export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
169
+ export * as ComAtprotoAdminListCommunicationTemplates from './types/com/atproto/admin/listCommunicationTemplates'
163
170
  export * as ComAtprotoAdminQueryModerationEvents from './types/com/atproto/admin/queryModerationEvents'
164
171
  export * as ComAtprotoAdminQueryModerationStatuses from './types/com/atproto/admin/queryModerationStatuses'
165
172
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
166
173
  export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
167
174
  export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
168
175
  export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
176
+ export * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
169
177
  export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
170
178
  export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
171
179
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
@@ -377,6 +385,22 @@ export class ComAtprotoAdminNS {
377
385
  this._service = service
378
386
  }
379
387
 
388
+ createCommunicationTemplate(
389
+ data?: ComAtprotoAdminCreateCommunicationTemplate.InputSchema,
390
+ opts?: ComAtprotoAdminCreateCommunicationTemplate.CallOptions,
391
+ ): Promise<ComAtprotoAdminCreateCommunicationTemplate.Response> {
392
+ return this._service.xrpc
393
+ .call(
394
+ 'com.atproto.admin.createCommunicationTemplate',
395
+ opts?.qp,
396
+ data,
397
+ opts,
398
+ )
399
+ .catch((e) => {
400
+ throw ComAtprotoAdminCreateCommunicationTemplate.toKnownErr(e)
401
+ })
402
+ }
403
+
380
404
  deleteAccount(
381
405
  data?: ComAtprotoAdminDeleteAccount.InputSchema,
382
406
  opts?: ComAtprotoAdminDeleteAccount.CallOptions,
@@ -388,6 +412,22 @@ export class ComAtprotoAdminNS {
388
412
  })
389
413
  }
390
414
 
415
+ deleteCommunicationTemplate(
416
+ data?: ComAtprotoAdminDeleteCommunicationTemplate.InputSchema,
417
+ opts?: ComAtprotoAdminDeleteCommunicationTemplate.CallOptions,
418
+ ): Promise<ComAtprotoAdminDeleteCommunicationTemplate.Response> {
419
+ return this._service.xrpc
420
+ .call(
421
+ 'com.atproto.admin.deleteCommunicationTemplate',
422
+ opts?.qp,
423
+ data,
424
+ opts,
425
+ )
426
+ .catch((e) => {
427
+ throw ComAtprotoAdminDeleteCommunicationTemplate.toKnownErr(e)
428
+ })
429
+ }
430
+
391
431
  disableAccountInvites(
392
432
  data?: ComAtprotoAdminDisableAccountInvites.InputSchema,
393
433
  opts?: ComAtprotoAdminDisableAccountInvites.CallOptions,
@@ -509,6 +549,22 @@ export class ComAtprotoAdminNS {
509
549
  })
510
550
  }
511
551
 
552
+ listCommunicationTemplates(
553
+ params?: ComAtprotoAdminListCommunicationTemplates.QueryParams,
554
+ opts?: ComAtprotoAdminListCommunicationTemplates.CallOptions,
555
+ ): Promise<ComAtprotoAdminListCommunicationTemplates.Response> {
556
+ return this._service.xrpc
557
+ .call(
558
+ 'com.atproto.admin.listCommunicationTemplates',
559
+ params,
560
+ undefined,
561
+ opts,
562
+ )
563
+ .catch((e) => {
564
+ throw ComAtprotoAdminListCommunicationTemplates.toKnownErr(e)
565
+ })
566
+ }
567
+
512
568
  queryModerationEvents(
513
569
  params?: ComAtprotoAdminQueryModerationEvents.QueryParams,
514
570
  opts?: ComAtprotoAdminQueryModerationEvents.CallOptions,
@@ -580,6 +636,22 @@ export class ComAtprotoAdminNS {
580
636
  })
581
637
  }
582
638
 
639
+ updateCommunicationTemplate(
640
+ data?: ComAtprotoAdminUpdateCommunicationTemplate.InputSchema,
641
+ opts?: ComAtprotoAdminUpdateCommunicationTemplate.CallOptions,
642
+ ): Promise<ComAtprotoAdminUpdateCommunicationTemplate.Response> {
643
+ return this._service.xrpc
644
+ .call(
645
+ 'com.atproto.admin.updateCommunicationTemplate',
646
+ opts?.qp,
647
+ data,
648
+ opts,
649
+ )
650
+ .catch((e) => {
651
+ throw ComAtprotoAdminUpdateCommunicationTemplate.toKnownErr(e)
652
+ })
653
+ }
654
+
583
655
  updateSubjectStatus(
584
656
  data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema,
585
657
  opts?: ComAtprotoAdminUpdateSubjectStatus.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',
@@ -7896,8 +8087,12 @@ export const schemaDict = {
7896
8087
  export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
7897
8088
  export const lexicons: Lexicons = new Lexicons(schemas)
7898
8089
  export const ids = {
8090
+ ComAtprotoAdminCreateCommunicationTemplate:
8091
+ 'com.atproto.admin.createCommunicationTemplate',
7899
8092
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
7900
8093
  ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
8094
+ ComAtprotoAdminDeleteCommunicationTemplate:
8095
+ 'com.atproto.admin.deleteCommunicationTemplate',
7901
8096
  ComAtprotoAdminDisableAccountInvites:
7902
8097
  'com.atproto.admin.disableAccountInvites',
7903
8098
  ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
@@ -7910,6 +8105,8 @@ export const ids = {
7910
8105
  ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
7911
8106
  ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
7912
8107
  ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
8108
+ ComAtprotoAdminListCommunicationTemplates:
8109
+ 'com.atproto.admin.listCommunicationTemplates',
7913
8110
  ComAtprotoAdminQueryModerationEvents:
7914
8111
  'com.atproto.admin.queryModerationEvents',
7915
8112
  ComAtprotoAdminQueryModerationStatuses:
@@ -7918,6 +8115,8 @@ export const ids = {
7918
8115
  ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
7919
8116
  ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
7920
8117
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
8118
+ ComAtprotoAdminUpdateCommunicationTemplate:
8119
+ 'com.atproto.admin.updateCommunicationTemplate',
7921
8120
  ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
7922
8121
  ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
7923
8122
  ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
@@ -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
+ }
@@ -0,0 +1,34 @@
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 type InputSchema = undefined
14
+
15
+ export interface OutputSchema {
16
+ communicationTemplates: ComAtprotoAdminDefs.CommunicationTemplateView[]
17
+ [k: string]: unknown
18
+ }
19
+
20
+ export interface CallOptions {
21
+ headers?: Headers
22
+ }
23
+
24
+ export interface Response {
25
+ success: boolean
26
+ headers: Headers
27
+ data: OutputSchema
28
+ }
29
+
30
+ export function toKnownErr(e: any) {
31
+ if (e instanceof XRPCError) {
32
+ }
33
+ return e
34
+ }
@@ -0,0 +1,46 @@
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
+ /** ID of the template to be updated. */
15
+ id: string
16
+ /** Name of the template. */
17
+ name?: string
18
+ /** Content of the template, markdown supported, can contain variable placeholders. */
19
+ contentMarkdown?: string
20
+ /** Subject of the message, used in emails. */
21
+ subject?: string
22
+ /** DID of the user who is updating the template. */
23
+ updatedBy?: string
24
+ disabled?: boolean
25
+ [k: string]: unknown
26
+ }
27
+
28
+ export type OutputSchema = ComAtprotoAdminDefs.CommunicationTemplateView
29
+
30
+ export interface CallOptions {
31
+ headers?: Headers
32
+ qp?: QueryParams
33
+ encoding: 'application/json'
34
+ }
35
+
36
+ export interface Response {
37
+ success: boolean
38
+ headers: Headers
39
+ data: OutputSchema
40
+ }
41
+
42
+ export function toKnownErr(e: any) {
43
+ if (e instanceof XRPCError) {
44
+ }
45
+ return e
46
+ }
@@ -1,32 +0,0 @@
1
- import { Headers, XRPCError } from '@atproto/xrpc';
2
- import * as AppBskySystemDeclRef from '../system/declRef';
3
- export interface QueryParams {
4
- }
5
- export interface InputSchema {
6
- handle: string;
7
- recoveryKey?: string;
8
- [k: string]: unknown;
9
- }
10
- export interface OutputSchema {
11
- handle: string;
12
- did: string;
13
- declaration: AppBskySystemDeclRef.Main;
14
- [k: string]: unknown;
15
- }
16
- export interface CallOptions {
17
- headers?: Headers;
18
- qp?: QueryParams;
19
- encoding: 'application/json';
20
- }
21
- export interface Response {
22
- success: boolean;
23
- headers: Headers;
24
- data: OutputSchema;
25
- }
26
- export declare class InvalidHandleError extends XRPCError {
27
- constructor(src: XRPCError);
28
- }
29
- export declare class HandleNotAvailableError extends XRPCError {
30
- constructor(src: XRPCError);
31
- }
32
- export declare function toKnownErr(e: any): any;
@@ -1,28 +0,0 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskySystemDeclRef from '../system/declRef';
3
- export interface Main {
4
- did: string;
5
- declarationCid: string;
6
- [k: string]: unknown;
7
- }
8
- export declare function isMain(v: unknown): v is Main;
9
- export declare function validateMain(v: unknown): ValidationResult;
10
- export interface WithInfo {
11
- did: string;
12
- declaration: AppBskySystemDeclRef.Main;
13
- handle: string;
14
- displayName?: string;
15
- avatar?: string;
16
- viewer?: ViewerState;
17
- [k: string]: unknown;
18
- }
19
- export declare function isWithInfo(v: unknown): v is WithInfo;
20
- export declare function validateWithInfo(v: unknown): ValidationResult;
21
- export interface ViewerState {
22
- muted?: boolean;
23
- following?: string;
24
- followedBy?: string;
25
- [k: string]: unknown;
26
- }
27
- export declare function isViewerState(v: unknown): v is ViewerState;
28
- export declare function validateViewerState(v: unknown): ValidationResult;