@atproto/api 0.20.0 → 0.20.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 (401) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/client/index.d.ts +9 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +12 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +488 -12
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +249 -6
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +45 -2
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js +21 -0
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +32 -0
  15. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js +8 -0
  17. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -0
  18. package/dist/client/types/chat/bsky/actor/getStatus.d.ts +23 -0
  19. package/dist/client/types/chat/bsky/actor/getStatus.d.ts.map +1 -0
  20. package/dist/client/types/chat/bsky/actor/getStatus.js +8 -0
  21. package/dist/client/types/chat/bsky/actor/getStatus.js.map +1 -0
  22. package/dist/client/types/chat/bsky/group/addMembers.d.ts +3 -3
  23. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  24. package/dist/client/types/chat/bsky/group/addMembers.js +7 -7
  25. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  26. package/dist/client/types/chat/bsky/group/createGroup.d.ts +4 -1
  27. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  28. package/dist/client/types/chat/bsky/group/createGroup.js +10 -3
  29. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  30. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
  31. package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
  32. package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
  33. package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
  34. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +1 -1
  35. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  36. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  37. package/package.json +6 -5
  38. package/tsconfig.build.tsbuildinfo +1 -1
  39. package/src/client/index.ts +0 -6408
  40. package/src/client/lexicons.ts +0 -25781
  41. package/src/client/types/app/bsky/actor/defs.ts +0 -716
  42. package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
  43. package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
  44. package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
  45. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
  46. package/src/client/types/app/bsky/actor/profile.ts +0 -52
  47. package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
  48. package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
  49. package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
  50. package/src/client/types/app/bsky/actor/status.ts +0 -46
  51. package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
  52. package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
  53. package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
  54. package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
  55. package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
  56. package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
  57. package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
  58. package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
  59. package/src/client/types/app/bsky/contact/defs.ts +0 -71
  60. package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
  61. package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
  62. package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
  63. package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
  64. package/src/client/types/app/bsky/contact/removeData.ts +0 -56
  65. package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
  66. package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
  67. package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
  68. package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
  69. package/src/client/types/app/bsky/draft/defs.ts +0 -212
  70. package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
  71. package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
  72. package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
  73. package/src/client/types/app/bsky/embed/defs.ts +0 -32
  74. package/src/client/types/app/bsky/embed/external.ts +0 -85
  75. package/src/client/types/app/bsky/embed/images.ts +0 -86
  76. package/src/client/types/app/bsky/embed/record.ts +0 -146
  77. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
  78. package/src/client/types/app/bsky/embed/video.ts +0 -75
  79. package/src/client/types/app/bsky/feed/defs.ts +0 -428
  80. package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
  81. package/src/client/types/app/bsky/feed/generator.ts +0 -51
  82. package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
  83. package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
  84. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
  85. package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
  86. package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
  87. package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
  88. package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
  89. package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
  90. package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
  91. package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
  92. package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
  93. package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
  94. package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
  95. package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
  96. package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
  97. package/src/client/types/app/bsky/feed/like.ts +0 -40
  98. package/src/client/types/app/bsky/feed/post.ts +0 -117
  99. package/src/client/types/app/bsky/feed/postgate.ts +0 -58
  100. package/src/client/types/app/bsky/feed/repost.ts +0 -40
  101. package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
  102. package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
  103. package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
  104. package/src/client/types/app/bsky/graph/block.ts +0 -39
  105. package/src/client/types/app/bsky/graph/defs.ts +0 -206
  106. package/src/client/types/app/bsky/graph/follow.ts +0 -40
  107. package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
  108. package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
  109. package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
  110. package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
  111. package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
  112. package/src/client/types/app/bsky/graph/getList.ts +0 -46
  113. package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
  114. package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
  115. package/src/client/types/app/bsky/graph/getLists.ts +0 -47
  116. package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
  117. package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
  118. package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
  119. package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
  120. package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
  121. package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
  122. package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
  123. package/src/client/types/app/bsky/graph/list.ts +0 -47
  124. package/src/client/types/app/bsky/graph/listblock.ts +0 -39
  125. package/src/client/types/app/bsky/graph/listitem.ts +0 -41
  126. package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
  127. package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
  128. package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
  129. package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
  130. package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
  131. package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
  132. package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
  133. package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
  134. package/src/client/types/app/bsky/graph/verification.ts +0 -44
  135. package/src/client/types/app/bsky/labeler/defs.ts +0 -100
  136. package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
  137. package/src/client/types/app/bsky/labeler/service.ts +0 -48
  138. package/src/client/types/app/bsky/notification/declaration.ts +0 -38
  139. package/src/client/types/app/bsky/notification/defs.ts +0 -142
  140. package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
  141. package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
  142. package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
  143. package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
  144. package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
  145. package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
  146. package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
  147. package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
  148. package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
  149. package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
  150. package/src/client/types/app/bsky/richtext/facet.ts +0 -97
  151. package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
  152. package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
  153. package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
  154. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
  155. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
  156. package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
  157. package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
  158. package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
  159. package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
  160. package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
  161. package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
  162. package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
  163. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
  164. package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
  165. package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
  166. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
  167. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
  168. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
  169. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
  170. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
  171. package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
  172. package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
  173. package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
  174. package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
  175. package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
  176. package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
  177. package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
  178. package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
  179. package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
  180. package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
  181. package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
  182. package/src/client/types/app/bsky/video/defs.ts +0 -38
  183. package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
  184. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
  185. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
  186. package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
  187. package/src/client/types/chat/bsky/actor/defs.ts +0 -96
  188. package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
  189. package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
  190. package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
  191. package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
  192. package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
  193. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
  194. package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
  195. package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
  196. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
  197. package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
  198. package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
  199. package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
  200. package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
  201. package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
  202. package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
  203. package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
  204. package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
  205. package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
  206. package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
  207. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
  208. package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
  209. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
  210. package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
  211. package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
  212. package/src/client/types/chat/bsky/group/addMembers.ts +0 -114
  213. package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
  214. package/src/client/types/chat/bsky/group/createGroup.ts +0 -84
  215. package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
  216. package/src/client/types/chat/bsky/group/defs.ts +0 -75
  217. package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
  218. package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
  219. package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
  220. package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
  221. package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
  222. package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
  223. package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
  224. package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
  225. package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
  226. package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
  227. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -53
  228. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -366
  229. package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
  230. package/src/client/types/com/atproto/admin/defs.ts +0 -106
  231. package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
  232. package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
  233. package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
  234. package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
  235. package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
  236. package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
  237. package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
  238. package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
  239. package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
  240. package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
  241. package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
  242. package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
  243. package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
  244. package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
  245. package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
  246. package/src/client/types/com/atproto/identity/defs.ts +0 -34
  247. package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
  248. package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
  249. package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
  250. package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
  251. package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
  252. package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
  253. package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
  254. package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
  255. package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
  256. package/src/client/types/com/atproto/label/defs.ts +0 -143
  257. package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
  258. package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
  259. package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
  260. package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
  261. package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
  262. package/src/client/types/com/atproto/moderation/defs.ts +0 -83
  263. package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
  264. package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
  265. package/src/client/types/com/atproto/repo/defs.ts +0 -31
  266. package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
  267. package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
  268. package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
  269. package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
  270. package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
  271. package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
  272. package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
  273. package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
  274. package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
  275. package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
  276. package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
  277. package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
  278. package/src/client/types/com/atproto/server/createAccount.ts +0 -115
  279. package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
  280. package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
  281. package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
  282. package/src/client/types/com/atproto/server/createSession.ts +0 -76
  283. package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
  284. package/src/client/types/com/atproto/server/defs.ts +0 -52
  285. package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
  286. package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
  287. package/src/client/types/com/atproto/server/describeServer.ts +0 -77
  288. package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
  289. package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
  290. package/src/client/types/com/atproto/server/getSession.ts +0 -46
  291. package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
  292. package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
  293. package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
  294. package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
  295. package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
  296. package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
  297. package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
  298. package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
  299. package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
  300. package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
  301. package/src/client/types/com/atproto/sync/defs.ts +0 -23
  302. package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
  303. package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
  304. package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
  305. package/src/client/types/com/atproto/sync/getHead.ts +0 -51
  306. package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
  307. package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
  308. package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
  309. package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
  310. package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
  311. package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
  312. package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
  313. package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
  314. package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
  315. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
  316. package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
  317. package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
  318. package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
  319. package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
  320. package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
  321. package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
  322. package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
  323. package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
  324. package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
  325. package/src/client/types/com/germnetwork/declaration.ts +0 -63
  326. package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
  327. package/src/client/types/tools/ozone/communication/defs.ts +0 -43
  328. package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
  329. package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
  330. package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
  331. package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
  332. package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
  333. package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
  334. package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
  335. package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
  336. package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
  337. package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
  338. package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
  339. package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
  340. package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
  341. package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
  342. package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
  343. package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
  344. package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
  345. package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
  346. package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
  347. package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
  348. package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
  349. package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
  350. package/src/client/types/tools/ozone/queue/defs.ts +0 -99
  351. package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
  352. package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
  353. package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
  354. package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
  355. package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
  356. package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
  357. package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
  358. package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
  359. package/src/client/types/tools/ozone/report/defs.ts +0 -466
  360. package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
  361. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
  362. package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
  363. package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
  364. package/src/client/types/tools/ozone/report/getReport.ts +0 -49
  365. package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
  366. package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
  367. package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
  368. package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
  369. package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
  370. package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
  371. package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
  372. package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
  373. package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
  374. package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
  375. package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
  376. package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
  377. package/src/client/types/tools/ozone/set/addValues.ts +0 -41
  378. package/src/client/types/tools/ozone/set/defs.ts +0 -50
  379. package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
  380. package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
  381. package/src/client/types/tools/ozone/set/getValues.ts +0 -55
  382. package/src/client/types/tools/ozone/set/querySets.ts +0 -47
  383. package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
  384. package/src/client/types/tools/ozone/setting/defs.ts +0 -44
  385. package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
  386. package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
  387. package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
  388. package/src/client/types/tools/ozone/signature/defs.ts +0 -31
  389. package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
  390. package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
  391. package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
  392. package/src/client/types/tools/ozone/team/addMember.ts +0 -59
  393. package/src/client/types/tools/ozone/team/defs.ts +0 -51
  394. package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
  395. package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
  396. package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
  397. package/src/client/types/tools/ozone/verification/defs.ts +0 -59
  398. package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
  399. package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
  400. package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
  401. package/src/client/util.ts +0 -82
@@ -1,1176 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5
- import { CID } from 'multiformats/cid'
6
- import { validate as _validate } from '../../../../lexicons.js'
7
- import {
8
- type $Typed,
9
- is$typed as _is$typed,
10
- type OmitKey,
11
- } from '../../../../util.js'
12
- import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'
13
- import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'
14
- import type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js'
15
- import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
16
- import type * as AppBskyAgeassuranceDefs from '../../../app/bsky/ageassurance/defs.js'
17
- import type * as ComAtprotoServerDefs from '../../../com/atproto/server/defs.js'
18
- import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
19
-
20
- const is$typed = _is$typed,
21
- validate = _validate
22
- const id = 'tools.ozone.moderation.defs'
23
-
24
- export interface ModEventView {
25
- $type?: 'tools.ozone.moderation.defs#modEventView'
26
- id: number
27
- event:
28
- | $Typed<ModEventTakedown>
29
- | $Typed<ModEventReverseTakedown>
30
- | $Typed<ModEventComment>
31
- | $Typed<ModEventReport>
32
- | $Typed<ModEventLabel>
33
- | $Typed<ModEventAcknowledge>
34
- | $Typed<ModEventEscalate>
35
- | $Typed<ModEventMute>
36
- | $Typed<ModEventUnmute>
37
- | $Typed<ModEventMuteReporter>
38
- | $Typed<ModEventUnmuteReporter>
39
- | $Typed<ModEventEmail>
40
- | $Typed<ModEventResolveAppeal>
41
- | $Typed<ModEventDivert>
42
- | $Typed<ModEventTag>
43
- | $Typed<AccountEvent>
44
- | $Typed<IdentityEvent>
45
- | $Typed<RecordEvent>
46
- | $Typed<ModEventPriorityScore>
47
- | $Typed<AgeAssuranceEvent>
48
- | $Typed<AgeAssuranceOverrideEvent>
49
- | $Typed<AgeAssurancePurgeEvent>
50
- | $Typed<RevokeAccountCredentialsEvent>
51
- | $Typed<ScheduleTakedownEvent>
52
- | $Typed<CancelScheduledTakedownEvent>
53
- | { $type: string }
54
- subject:
55
- | $Typed<ComAtprotoAdminDefs.RepoRef>
56
- | $Typed<ComAtprotoRepoStrongRef.Main>
57
- | $Typed<ChatBskyConvoDefs.MessageRef>
58
- | { $type: string }
59
- subjectBlobCids: string[]
60
- createdBy: string
61
- createdAt: string
62
- creatorHandle?: string
63
- subjectHandle?: string
64
- modTool?: ModTool
65
- }
66
-
67
- const hashModEventView = 'modEventView'
68
-
69
- export function isModEventView<V>(v: V) {
70
- return is$typed(v, id, hashModEventView)
71
- }
72
-
73
- export function validateModEventView<V>(v: V) {
74
- return validate<ModEventView & V>(v, id, hashModEventView)
75
- }
76
-
77
- export interface ModEventViewDetail {
78
- $type?: 'tools.ozone.moderation.defs#modEventViewDetail'
79
- id: number
80
- event:
81
- | $Typed<ModEventTakedown>
82
- | $Typed<ModEventReverseTakedown>
83
- | $Typed<ModEventComment>
84
- | $Typed<ModEventReport>
85
- | $Typed<ModEventLabel>
86
- | $Typed<ModEventAcknowledge>
87
- | $Typed<ModEventEscalate>
88
- | $Typed<ModEventMute>
89
- | $Typed<ModEventUnmute>
90
- | $Typed<ModEventMuteReporter>
91
- | $Typed<ModEventUnmuteReporter>
92
- | $Typed<ModEventEmail>
93
- | $Typed<ModEventResolveAppeal>
94
- | $Typed<ModEventDivert>
95
- | $Typed<ModEventTag>
96
- | $Typed<AccountEvent>
97
- | $Typed<IdentityEvent>
98
- | $Typed<RecordEvent>
99
- | $Typed<ModEventPriorityScore>
100
- | $Typed<AgeAssuranceEvent>
101
- | $Typed<AgeAssuranceOverrideEvent>
102
- | $Typed<AgeAssurancePurgeEvent>
103
- | $Typed<RevokeAccountCredentialsEvent>
104
- | $Typed<ScheduleTakedownEvent>
105
- | $Typed<CancelScheduledTakedownEvent>
106
- | { $type: string }
107
- subject:
108
- | $Typed<RepoView>
109
- | $Typed<RepoViewNotFound>
110
- | $Typed<RecordView>
111
- | $Typed<RecordViewNotFound>
112
- | { $type: string }
113
- subjectBlobs: BlobView[]
114
- createdBy: string
115
- createdAt: string
116
- modTool?: ModTool
117
- }
118
-
119
- const hashModEventViewDetail = 'modEventViewDetail'
120
-
121
- export function isModEventViewDetail<V>(v: V) {
122
- return is$typed(v, id, hashModEventViewDetail)
123
- }
124
-
125
- export function validateModEventViewDetail<V>(v: V) {
126
- return validate<ModEventViewDetail & V>(v, id, hashModEventViewDetail)
127
- }
128
-
129
- export interface SubjectStatusView {
130
- $type?: 'tools.ozone.moderation.defs#subjectStatusView'
131
- id: number
132
- subject:
133
- | $Typed<ComAtprotoAdminDefs.RepoRef>
134
- | $Typed<ComAtprotoRepoStrongRef.Main>
135
- | $Typed<ChatBskyConvoDefs.MessageRef>
136
- | { $type: string }
137
- hosting?: $Typed<AccountHosting> | $Typed<RecordHosting> | { $type: string }
138
- subjectBlobCids?: string[]
139
- subjectRepoHandle?: string
140
- /** Timestamp referencing when the last update was made to the moderation status of the subject */
141
- updatedAt: string
142
- /** Timestamp referencing the first moderation status impacting event was emitted on the subject */
143
- createdAt: string
144
- reviewState: SubjectReviewState
145
- /** Sticky comment on the subject. */
146
- comment?: string
147
- /** Numeric value representing the level of priority. Higher score means higher priority. */
148
- priorityScore?: number
149
- muteUntil?: string
150
- muteReportingUntil?: string
151
- lastReviewedBy?: string
152
- lastReviewedAt?: string
153
- lastReportedAt?: string
154
- /** Timestamp referencing when the author of the subject appealed a moderation action */
155
- lastAppealedAt?: string
156
- takendown?: boolean
157
- /** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */
158
- appealed?: boolean
159
- suspendUntil?: string
160
- tags?: string[]
161
- accountStats?: AccountStats
162
- recordsStats?: RecordsStats
163
- accountStrike?: AccountStrike
164
- /** Current age assurance state of the subject. */
165
- ageAssuranceState?:
166
- | 'pending'
167
- | 'assured'
168
- | 'unknown'
169
- | 'reset'
170
- | 'blocked'
171
- | (string & {})
172
- /** Whether or not the last successful update to age assurance was made by the user or admin. */
173
- ageAssuranceUpdatedBy?: 'admin' | 'user' | (string & {})
174
- }
175
-
176
- const hashSubjectStatusView = 'subjectStatusView'
177
-
178
- export function isSubjectStatusView<V>(v: V) {
179
- return is$typed(v, id, hashSubjectStatusView)
180
- }
181
-
182
- export function validateSubjectStatusView<V>(v: V) {
183
- return validate<SubjectStatusView & V>(v, id, hashSubjectStatusView)
184
- }
185
-
186
- /** Detailed view of a subject. For record subjects, the author's repo and profile will be returned. */
187
- export interface SubjectView {
188
- $type?: 'tools.ozone.moderation.defs#subjectView'
189
- type: ComAtprotoModerationDefs.SubjectType
190
- subject: string
191
- status?: SubjectStatusView
192
- repo?: RepoViewDetail
193
- profile?: { $type: string }
194
- record?: RecordViewDetail
195
- }
196
-
197
- const hashSubjectView = 'subjectView'
198
-
199
- export function isSubjectView<V>(v: V) {
200
- return is$typed(v, id, hashSubjectView)
201
- }
202
-
203
- export function validateSubjectView<V>(v: V) {
204
- return validate<SubjectView & V>(v, id, hashSubjectView)
205
- }
206
-
207
- /** Statistics about a particular account subject */
208
- export interface AccountStats {
209
- $type?: 'tools.ozone.moderation.defs#accountStats'
210
- /** Total number of reports on the account */
211
- reportCount?: number
212
- /** Total number of appeals against a moderation action on the account */
213
- appealCount?: number
214
- /** Number of times the account was suspended */
215
- suspendCount?: number
216
- /** Number of times the account was escalated */
217
- escalateCount?: number
218
- /** Number of times the account was taken down */
219
- takedownCount?: number
220
- }
221
-
222
- const hashAccountStats = 'accountStats'
223
-
224
- export function isAccountStats<V>(v: V) {
225
- return is$typed(v, id, hashAccountStats)
226
- }
227
-
228
- export function validateAccountStats<V>(v: V) {
229
- return validate<AccountStats & V>(v, id, hashAccountStats)
230
- }
231
-
232
- /** Statistics about a set of record subject items */
233
- export interface RecordsStats {
234
- $type?: 'tools.ozone.moderation.defs#recordsStats'
235
- /** Cumulative sum of the number of reports on the items in the set */
236
- totalReports?: number
237
- /** Number of items that were reported at least once */
238
- reportedCount?: number
239
- /** Number of items that were escalated at least once */
240
- escalatedCount?: number
241
- /** Number of items that were appealed at least once */
242
- appealedCount?: number
243
- /** Total number of item in the set */
244
- subjectCount?: number
245
- /** Number of item currently in "reviewOpen" or "reviewEscalated" state */
246
- pendingCount?: number
247
- /** Number of item currently in "reviewNone" or "reviewClosed" state */
248
- processedCount?: number
249
- /** Number of item currently taken down */
250
- takendownCount?: number
251
- }
252
-
253
- const hashRecordsStats = 'recordsStats'
254
-
255
- export function isRecordsStats<V>(v: V) {
256
- return is$typed(v, id, hashRecordsStats)
257
- }
258
-
259
- export function validateRecordsStats<V>(v: V) {
260
- return validate<RecordsStats & V>(v, id, hashRecordsStats)
261
- }
262
-
263
- /** Strike information for an account */
264
- export interface AccountStrike {
265
- $type?: 'tools.ozone.moderation.defs#accountStrike'
266
- /** Current number of active strikes (excluding expired strikes) */
267
- activeStrikeCount?: number
268
- /** Total number of strikes ever received (including expired strikes) */
269
- totalStrikeCount?: number
270
- /** Timestamp of the first strike received */
271
- firstStrikeAt?: string
272
- /** Timestamp of the most recent strike received */
273
- lastStrikeAt?: string
274
- }
275
-
276
- const hashAccountStrike = 'accountStrike'
277
-
278
- export function isAccountStrike<V>(v: V) {
279
- return is$typed(v, id, hashAccountStrike)
280
- }
281
-
282
- export function validateAccountStrike<V>(v: V) {
283
- return validate<AccountStrike & V>(v, id, hashAccountStrike)
284
- }
285
-
286
- export type SubjectReviewState =
287
- | 'tools.ozone.moderation.defs#reviewOpen'
288
- | 'tools.ozone.moderation.defs#reviewEscalated'
289
- | 'tools.ozone.moderation.defs#reviewClosed'
290
- | 'tools.ozone.moderation.defs#reviewNone'
291
- | (string & {})
292
-
293
- /** Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator */
294
- export const REVIEWOPEN = `${id}#reviewOpen`
295
- /** Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator */
296
- export const REVIEWESCALATED = `${id}#reviewEscalated`
297
- /** Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator */
298
- export const REVIEWCLOSED = `${id}#reviewClosed`
299
- /** Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it */
300
- export const REVIEWNONE = `${id}#reviewNone`
301
-
302
- /** Take down a subject permanently or temporarily */
303
- export interface ModEventTakedown {
304
- $type?: 'tools.ozone.moderation.defs#modEventTakedown'
305
- comment?: string
306
- /** Indicates how long the takedown should be in effect before automatically expiring. */
307
- durationInHours?: number
308
- /** If true, all other reports on content authored by this account will be resolved (acknowledged). */
309
- acknowledgeAccountSubjects?: boolean
310
- /** Names/Keywords of the policies that drove the decision. */
311
- policies?: string[]
312
- /** Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). */
313
- severityLevel?: string
314
- /** List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services. */
315
- targetServices?: ('appview' | 'pds' | (string & {}))[]
316
- /** Number of strikes to assign to the user for this violation. */
317
- strikeCount?: number
318
- /** When the strike should expire. If not provided, the strike never expires. */
319
- strikeExpiresAt?: string
320
- }
321
-
322
- const hashModEventTakedown = 'modEventTakedown'
323
-
324
- export function isModEventTakedown<V>(v: V) {
325
- return is$typed(v, id, hashModEventTakedown)
326
- }
327
-
328
- export function validateModEventTakedown<V>(v: V) {
329
- return validate<ModEventTakedown & V>(v, id, hashModEventTakedown)
330
- }
331
-
332
- /** Revert take down action on a subject */
333
- export interface ModEventReverseTakedown {
334
- $type?: 'tools.ozone.moderation.defs#modEventReverseTakedown'
335
- /** Describe reasoning behind the reversal. */
336
- comment?: string
337
- /** Names/Keywords of the policy infraction for which takedown is being reversed. */
338
- policies?: string[]
339
- /** Severity level of the violation. Usually set from the last policy infraction's severity. */
340
- severityLevel?: string
341
- /** Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity. */
342
- strikeCount?: number
343
- }
344
-
345
- const hashModEventReverseTakedown = 'modEventReverseTakedown'
346
-
347
- export function isModEventReverseTakedown<V>(v: V) {
348
- return is$typed(v, id, hashModEventReverseTakedown)
349
- }
350
-
351
- export function validateModEventReverseTakedown<V>(v: V) {
352
- return validate<ModEventReverseTakedown & V>(
353
- v,
354
- id,
355
- hashModEventReverseTakedown,
356
- )
357
- }
358
-
359
- /** Resolve appeal on a subject */
360
- export interface ModEventResolveAppeal {
361
- $type?: 'tools.ozone.moderation.defs#modEventResolveAppeal'
362
- /** Describe resolution. */
363
- comment?: string
364
- }
365
-
366
- const hashModEventResolveAppeal = 'modEventResolveAppeal'
367
-
368
- export function isModEventResolveAppeal<V>(v: V) {
369
- return is$typed(v, id, hashModEventResolveAppeal)
370
- }
371
-
372
- export function validateModEventResolveAppeal<V>(v: V) {
373
- return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)
374
- }
375
-
376
- /** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */
377
- export interface ModEventComment {
378
- $type?: 'tools.ozone.moderation.defs#modEventComment'
379
- comment?: string
380
- /** Make the comment persistent on the subject */
381
- sticky?: boolean
382
- }
383
-
384
- const hashModEventComment = 'modEventComment'
385
-
386
- export function isModEventComment<V>(v: V) {
387
- return is$typed(v, id, hashModEventComment)
388
- }
389
-
390
- export function validateModEventComment<V>(v: V) {
391
- return validate<ModEventComment & V>(v, id, hashModEventComment)
392
- }
393
-
394
- /** Report a subject */
395
- export interface ModEventReport {
396
- $type?: 'tools.ozone.moderation.defs#modEventReport'
397
- comment?: string
398
- /** Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. */
399
- isReporterMuted?: boolean
400
- reportType: ComAtprotoModerationDefs.ReasonType
401
- }
402
-
403
- const hashModEventReport = 'modEventReport'
404
-
405
- export function isModEventReport<V>(v: V) {
406
- return is$typed(v, id, hashModEventReport)
407
- }
408
-
409
- export function validateModEventReport<V>(v: V) {
410
- return validate<ModEventReport & V>(v, id, hashModEventReport)
411
- }
412
-
413
- /** Apply/Negate labels on a subject */
414
- export interface ModEventLabel {
415
- $type?: 'tools.ozone.moderation.defs#modEventLabel'
416
- comment?: string
417
- createLabelVals: string[]
418
- negateLabelVals: string[]
419
- /** Indicates how long the label will remain on the subject. Only applies on labels that are being added. */
420
- durationInHours?: number
421
- }
422
-
423
- const hashModEventLabel = 'modEventLabel'
424
-
425
- export function isModEventLabel<V>(v: V) {
426
- return is$typed(v, id, hashModEventLabel)
427
- }
428
-
429
- export function validateModEventLabel<V>(v: V) {
430
- return validate<ModEventLabel & V>(v, id, hashModEventLabel)
431
- }
432
-
433
- /** Set priority score of the subject. Higher score means higher priority. */
434
- export interface ModEventPriorityScore {
435
- $type?: 'tools.ozone.moderation.defs#modEventPriorityScore'
436
- comment?: string
437
- score: number
438
- }
439
-
440
- const hashModEventPriorityScore = 'modEventPriorityScore'
441
-
442
- export function isModEventPriorityScore<V>(v: V) {
443
- return is$typed(v, id, hashModEventPriorityScore)
444
- }
445
-
446
- export function validateModEventPriorityScore<V>(v: V) {
447
- return validate<ModEventPriorityScore & V>(v, id, hashModEventPriorityScore)
448
- }
449
-
450
- /** Age assurance info coming directly from users. Only works on DID subjects. */
451
- export interface AgeAssuranceEvent {
452
- $type?: 'tools.ozone.moderation.defs#ageAssuranceEvent'
453
- /** The date and time of this write operation. */
454
- createdAt: string
455
- /** The unique identifier for this instance of the age assurance flow, in UUID format. */
456
- attemptId: string
457
- /** The status of the Age Assurance process. */
458
- status: 'unknown' | 'pending' | 'assured' | (string & {})
459
- access?: AppBskyAgeassuranceDefs.Access
460
- /** The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow. */
461
- countryCode?: string
462
- /** The ISO 3166-2 region code provided when beginning the Age Assurance flow. */
463
- regionCode?: string
464
- /** The IP address used when initiating the AA flow. */
465
- initIp?: string
466
- /** The user agent used when initiating the AA flow. */
467
- initUa?: string
468
- /** The IP address used when completing the AA flow. */
469
- completeIp?: string
470
- /** The user agent used when completing the AA flow. */
471
- completeUa?: string
472
- }
473
-
474
- const hashAgeAssuranceEvent = 'ageAssuranceEvent'
475
-
476
- export function isAgeAssuranceEvent<V>(v: V) {
477
- return is$typed(v, id, hashAgeAssuranceEvent)
478
- }
479
-
480
- export function validateAgeAssuranceEvent<V>(v: V) {
481
- return validate<AgeAssuranceEvent & V>(v, id, hashAgeAssuranceEvent)
482
- }
483
-
484
- /** Age assurance status override by moderators. Only works on DID subjects. */
485
- export interface AgeAssuranceOverrideEvent {
486
- $type?: 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'
487
- /** The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state. */
488
- status: 'assured' | 'reset' | 'blocked' | (string & {})
489
- access?: AppBskyAgeassuranceDefs.Access
490
- /** Comment describing the reason for the override. */
491
- comment: string
492
- }
493
-
494
- const hashAgeAssuranceOverrideEvent = 'ageAssuranceOverrideEvent'
495
-
496
- export function isAgeAssuranceOverrideEvent<V>(v: V) {
497
- return is$typed(v, id, hashAgeAssuranceOverrideEvent)
498
- }
499
-
500
- export function validateAgeAssuranceOverrideEvent<V>(v: V) {
501
- return validate<AgeAssuranceOverrideEvent & V>(
502
- v,
503
- id,
504
- hashAgeAssuranceOverrideEvent,
505
- )
506
- }
507
-
508
- /** Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only. */
509
- export interface AgeAssurancePurgeEvent {
510
- $type?: 'tools.ozone.moderation.defs#ageAssurancePurgeEvent'
511
- /** Comment describing the reason for the purge. */
512
- comment: string
513
- }
514
-
515
- const hashAgeAssurancePurgeEvent = 'ageAssurancePurgeEvent'
516
-
517
- export function isAgeAssurancePurgeEvent<V>(v: V) {
518
- return is$typed(v, id, hashAgeAssurancePurgeEvent)
519
- }
520
-
521
- export function validateAgeAssurancePurgeEvent<V>(v: V) {
522
- return validate<AgeAssurancePurgeEvent & V>(v, id, hashAgeAssurancePurgeEvent)
523
- }
524
-
525
- /** Account credentials revocation by moderators. Only works on DID subjects. */
526
- export interface RevokeAccountCredentialsEvent {
527
- $type?: 'tools.ozone.moderation.defs#revokeAccountCredentialsEvent'
528
- /** Comment describing the reason for the revocation. */
529
- comment: string
530
- }
531
-
532
- const hashRevokeAccountCredentialsEvent = 'revokeAccountCredentialsEvent'
533
-
534
- export function isRevokeAccountCredentialsEvent<V>(v: V) {
535
- return is$typed(v, id, hashRevokeAccountCredentialsEvent)
536
- }
537
-
538
- export function validateRevokeAccountCredentialsEvent<V>(v: V) {
539
- return validate<RevokeAccountCredentialsEvent & V>(
540
- v,
541
- id,
542
- hashRevokeAccountCredentialsEvent,
543
- )
544
- }
545
-
546
- export interface ModEventAcknowledge {
547
- $type?: 'tools.ozone.moderation.defs#modEventAcknowledge'
548
- comment?: string
549
- /** If true, all other reports on content authored by this account will be resolved (acknowledged). */
550
- acknowledgeAccountSubjects?: boolean
551
- }
552
-
553
- const hashModEventAcknowledge = 'modEventAcknowledge'
554
-
555
- export function isModEventAcknowledge<V>(v: V) {
556
- return is$typed(v, id, hashModEventAcknowledge)
557
- }
558
-
559
- export function validateModEventAcknowledge<V>(v: V) {
560
- return validate<ModEventAcknowledge & V>(v, id, hashModEventAcknowledge)
561
- }
562
-
563
- export interface ModEventEscalate {
564
- $type?: 'tools.ozone.moderation.defs#modEventEscalate'
565
- comment?: string
566
- }
567
-
568
- const hashModEventEscalate = 'modEventEscalate'
569
-
570
- export function isModEventEscalate<V>(v: V) {
571
- return is$typed(v, id, hashModEventEscalate)
572
- }
573
-
574
- export function validateModEventEscalate<V>(v: V) {
575
- return validate<ModEventEscalate & V>(v, id, hashModEventEscalate)
576
- }
577
-
578
- /** Mute incoming reports on a subject */
579
- export interface ModEventMute {
580
- $type?: 'tools.ozone.moderation.defs#modEventMute'
581
- comment?: string
582
- /** Indicates how long the subject should remain muted. */
583
- durationInHours: number
584
- }
585
-
586
- const hashModEventMute = 'modEventMute'
587
-
588
- export function isModEventMute<V>(v: V) {
589
- return is$typed(v, id, hashModEventMute)
590
- }
591
-
592
- export function validateModEventMute<V>(v: V) {
593
- return validate<ModEventMute & V>(v, id, hashModEventMute)
594
- }
595
-
596
- /** Unmute action on a subject */
597
- export interface ModEventUnmute {
598
- $type?: 'tools.ozone.moderation.defs#modEventUnmute'
599
- /** Describe reasoning behind the reversal. */
600
- comment?: string
601
- }
602
-
603
- const hashModEventUnmute = 'modEventUnmute'
604
-
605
- export function isModEventUnmute<V>(v: V) {
606
- return is$typed(v, id, hashModEventUnmute)
607
- }
608
-
609
- export function validateModEventUnmute<V>(v: V) {
610
- return validate<ModEventUnmute & V>(v, id, hashModEventUnmute)
611
- }
612
-
613
- /** Mute incoming reports from an account */
614
- export interface ModEventMuteReporter {
615
- $type?: 'tools.ozone.moderation.defs#modEventMuteReporter'
616
- comment?: string
617
- /** Indicates how long the account should remain muted. Falsy value here means a permanent mute. */
618
- durationInHours?: number
619
- }
620
-
621
- const hashModEventMuteReporter = 'modEventMuteReporter'
622
-
623
- export function isModEventMuteReporter<V>(v: V) {
624
- return is$typed(v, id, hashModEventMuteReporter)
625
- }
626
-
627
- export function validateModEventMuteReporter<V>(v: V) {
628
- return validate<ModEventMuteReporter & V>(v, id, hashModEventMuteReporter)
629
- }
630
-
631
- /** Unmute incoming reports from an account */
632
- export interface ModEventUnmuteReporter {
633
- $type?: 'tools.ozone.moderation.defs#modEventUnmuteReporter'
634
- /** Describe reasoning behind the reversal. */
635
- comment?: string
636
- }
637
-
638
- const hashModEventUnmuteReporter = 'modEventUnmuteReporter'
639
-
640
- export function isModEventUnmuteReporter<V>(v: V) {
641
- return is$typed(v, id, hashModEventUnmuteReporter)
642
- }
643
-
644
- export function validateModEventUnmuteReporter<V>(v: V) {
645
- return validate<ModEventUnmuteReporter & V>(v, id, hashModEventUnmuteReporter)
646
- }
647
-
648
- /** Keep a log of outgoing email to a user */
649
- export interface ModEventEmail {
650
- $type?: 'tools.ozone.moderation.defs#modEventEmail'
651
- /** The subject line of the email sent to the user. */
652
- subjectLine: string
653
- /** The content of the email sent to the user. */
654
- content?: string
655
- /** Additional comment about the outgoing comm. */
656
- comment?: string
657
- /** Names/Keywords of the policies that necessitated the email. */
658
- policies?: string[]
659
- /** Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense */
660
- severityLevel?: string
661
- /** Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense. */
662
- strikeCount?: number
663
- /** When the strike should expire. If not provided, the strike never expires. */
664
- strikeExpiresAt?: string
665
- /** Indicates whether the email was successfully delivered to the user's inbox. */
666
- isDelivered?: boolean
667
- }
668
-
669
- const hashModEventEmail = 'modEventEmail'
670
-
671
- export function isModEventEmail<V>(v: V) {
672
- return is$typed(v, id, hashModEventEmail)
673
- }
674
-
675
- export function validateModEventEmail<V>(v: V) {
676
- return validate<ModEventEmail & V>(v, id, hashModEventEmail)
677
- }
678
-
679
- /** Divert a record's blobs to a 3rd party service for further scanning/tagging */
680
- export interface ModEventDivert {
681
- $type?: 'tools.ozone.moderation.defs#modEventDivert'
682
- comment?: string
683
- }
684
-
685
- const hashModEventDivert = 'modEventDivert'
686
-
687
- export function isModEventDivert<V>(v: V) {
688
- return is$typed(v, id, hashModEventDivert)
689
- }
690
-
691
- export function validateModEventDivert<V>(v: V) {
692
- return validate<ModEventDivert & V>(v, id, hashModEventDivert)
693
- }
694
-
695
- /** Add/Remove a tag on a subject */
696
- export interface ModEventTag {
697
- $type?: 'tools.ozone.moderation.defs#modEventTag'
698
- /** Tags to be added to the subject. If already exists, won't be duplicated. */
699
- add: string[]
700
- /** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */
701
- remove: string[]
702
- /** Additional comment about added/removed tags. */
703
- comment?: string
704
- /** Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added. */
705
- durationInHours?: number
706
- }
707
-
708
- const hashModEventTag = 'modEventTag'
709
-
710
- export function isModEventTag<V>(v: V) {
711
- return is$typed(v, id, hashModEventTag)
712
- }
713
-
714
- export function validateModEventTag<V>(v: V) {
715
- return validate<ModEventTag & V>(v, id, hashModEventTag)
716
- }
717
-
718
- /** Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */
719
- export interface AccountEvent {
720
- $type?: 'tools.ozone.moderation.defs#accountEvent'
721
- comment?: string
722
- /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
723
- active: boolean
724
- status?:
725
- | 'unknown'
726
- | 'deactivated'
727
- | 'deleted'
728
- | 'takendown'
729
- | 'suspended'
730
- | 'tombstoned'
731
- | (string & {})
732
- timestamp: string
733
- }
734
-
735
- const hashAccountEvent = 'accountEvent'
736
-
737
- export function isAccountEvent<V>(v: V) {
738
- return is$typed(v, id, hashAccountEvent)
739
- }
740
-
741
- export function validateAccountEvent<V>(v: V) {
742
- return validate<AccountEvent & V>(v, id, hashAccountEvent)
743
- }
744
-
745
- /** Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */
746
- export interface IdentityEvent {
747
- $type?: 'tools.ozone.moderation.defs#identityEvent'
748
- comment?: string
749
- handle?: string
750
- pdsHost?: string
751
- tombstone?: boolean
752
- timestamp: string
753
- }
754
-
755
- const hashIdentityEvent = 'identityEvent'
756
-
757
- export function isIdentityEvent<V>(v: V) {
758
- return is$typed(v, id, hashIdentityEvent)
759
- }
760
-
761
- export function validateIdentityEvent<V>(v: V) {
762
- return validate<IdentityEvent & V>(v, id, hashIdentityEvent)
763
- }
764
-
765
- /** Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */
766
- export interface RecordEvent {
767
- $type?: 'tools.ozone.moderation.defs#recordEvent'
768
- comment?: string
769
- op: 'create' | 'update' | 'delete' | (string & {})
770
- cid?: string
771
- timestamp: string
772
- }
773
-
774
- const hashRecordEvent = 'recordEvent'
775
-
776
- export function isRecordEvent<V>(v: V) {
777
- return is$typed(v, id, hashRecordEvent)
778
- }
779
-
780
- export function validateRecordEvent<V>(v: V) {
781
- return validate<RecordEvent & V>(v, id, hashRecordEvent)
782
- }
783
-
784
- /** Logs a scheduled takedown action for an account. */
785
- export interface ScheduleTakedownEvent {
786
- $type?: 'tools.ozone.moderation.defs#scheduleTakedownEvent'
787
- comment?: string
788
- executeAt?: string
789
- executeAfter?: string
790
- executeUntil?: string
791
- }
792
-
793
- const hashScheduleTakedownEvent = 'scheduleTakedownEvent'
794
-
795
- export function isScheduleTakedownEvent<V>(v: V) {
796
- return is$typed(v, id, hashScheduleTakedownEvent)
797
- }
798
-
799
- export function validateScheduleTakedownEvent<V>(v: V) {
800
- return validate<ScheduleTakedownEvent & V>(v, id, hashScheduleTakedownEvent)
801
- }
802
-
803
- /** Logs cancellation of a scheduled takedown action for an account. */
804
- export interface CancelScheduledTakedownEvent {
805
- $type?: 'tools.ozone.moderation.defs#cancelScheduledTakedownEvent'
806
- comment?: string
807
- }
808
-
809
- const hashCancelScheduledTakedownEvent = 'cancelScheduledTakedownEvent'
810
-
811
- export function isCancelScheduledTakedownEvent<V>(v: V) {
812
- return is$typed(v, id, hashCancelScheduledTakedownEvent)
813
- }
814
-
815
- export function validateCancelScheduledTakedownEvent<V>(v: V) {
816
- return validate<CancelScheduledTakedownEvent & V>(
817
- v,
818
- id,
819
- hashCancelScheduledTakedownEvent,
820
- )
821
- }
822
-
823
- export interface RepoView {
824
- $type?: 'tools.ozone.moderation.defs#repoView'
825
- did: string
826
- handle: string
827
- email?: string
828
- relatedRecords: { [_ in string]: unknown }[]
829
- indexedAt: string
830
- moderation: Moderation
831
- invitedBy?: ComAtprotoServerDefs.InviteCode
832
- invitesDisabled?: boolean
833
- inviteNote?: string
834
- deactivatedAt?: string
835
- threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
836
- }
837
-
838
- const hashRepoView = 'repoView'
839
-
840
- export function isRepoView<V>(v: V) {
841
- return is$typed(v, id, hashRepoView)
842
- }
843
-
844
- export function validateRepoView<V>(v: V) {
845
- return validate<RepoView & V>(v, id, hashRepoView)
846
- }
847
-
848
- export interface RepoViewDetail {
849
- $type?: 'tools.ozone.moderation.defs#repoViewDetail'
850
- did: string
851
- handle: string
852
- email?: string
853
- relatedRecords: { [_ in string]: unknown }[]
854
- indexedAt: string
855
- moderation: ModerationDetail
856
- labels?: ComAtprotoLabelDefs.Label[]
857
- invitedBy?: ComAtprotoServerDefs.InviteCode
858
- invites?: ComAtprotoServerDefs.InviteCode[]
859
- invitesDisabled?: boolean
860
- inviteNote?: string
861
- emailConfirmedAt?: string
862
- deactivatedAt?: string
863
- threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
864
- }
865
-
866
- const hashRepoViewDetail = 'repoViewDetail'
867
-
868
- export function isRepoViewDetail<V>(v: V) {
869
- return is$typed(v, id, hashRepoViewDetail)
870
- }
871
-
872
- export function validateRepoViewDetail<V>(v: V) {
873
- return validate<RepoViewDetail & V>(v, id, hashRepoViewDetail)
874
- }
875
-
876
- export interface RepoViewNotFound {
877
- $type?: 'tools.ozone.moderation.defs#repoViewNotFound'
878
- did: string
879
- }
880
-
881
- const hashRepoViewNotFound = 'repoViewNotFound'
882
-
883
- export function isRepoViewNotFound<V>(v: V) {
884
- return is$typed(v, id, hashRepoViewNotFound)
885
- }
886
-
887
- export function validateRepoViewNotFound<V>(v: V) {
888
- return validate<RepoViewNotFound & V>(v, id, hashRepoViewNotFound)
889
- }
890
-
891
- export interface RecordView {
892
- $type?: 'tools.ozone.moderation.defs#recordView'
893
- uri: string
894
- cid: string
895
- value: { [_ in string]: unknown }
896
- blobCids: string[]
897
- indexedAt: string
898
- moderation: Moderation
899
- repo: RepoView
900
- }
901
-
902
- const hashRecordView = 'recordView'
903
-
904
- export function isRecordView<V>(v: V) {
905
- return is$typed(v, id, hashRecordView)
906
- }
907
-
908
- export function validateRecordView<V>(v: V) {
909
- return validate<RecordView & V>(v, id, hashRecordView)
910
- }
911
-
912
- export interface RecordViewDetail {
913
- $type?: 'tools.ozone.moderation.defs#recordViewDetail'
914
- uri: string
915
- cid: string
916
- value: { [_ in string]: unknown }
917
- blobs: BlobView[]
918
- labels?: ComAtprotoLabelDefs.Label[]
919
- indexedAt: string
920
- moderation: ModerationDetail
921
- repo: RepoView
922
- }
923
-
924
- const hashRecordViewDetail = 'recordViewDetail'
925
-
926
- export function isRecordViewDetail<V>(v: V) {
927
- return is$typed(v, id, hashRecordViewDetail)
928
- }
929
-
930
- export function validateRecordViewDetail<V>(v: V) {
931
- return validate<RecordViewDetail & V>(v, id, hashRecordViewDetail)
932
- }
933
-
934
- export interface RecordViewNotFound {
935
- $type?: 'tools.ozone.moderation.defs#recordViewNotFound'
936
- uri: string
937
- }
938
-
939
- const hashRecordViewNotFound = 'recordViewNotFound'
940
-
941
- export function isRecordViewNotFound<V>(v: V) {
942
- return is$typed(v, id, hashRecordViewNotFound)
943
- }
944
-
945
- export function validateRecordViewNotFound<V>(v: V) {
946
- return validate<RecordViewNotFound & V>(v, id, hashRecordViewNotFound)
947
- }
948
-
949
- export interface Moderation {
950
- $type?: 'tools.ozone.moderation.defs#moderation'
951
- subjectStatus?: SubjectStatusView
952
- }
953
-
954
- const hashModeration = 'moderation'
955
-
956
- export function isModeration<V>(v: V) {
957
- return is$typed(v, id, hashModeration)
958
- }
959
-
960
- export function validateModeration<V>(v: V) {
961
- return validate<Moderation & V>(v, id, hashModeration)
962
- }
963
-
964
- export interface ModerationDetail {
965
- $type?: 'tools.ozone.moderation.defs#moderationDetail'
966
- subjectStatus?: SubjectStatusView
967
- }
968
-
969
- const hashModerationDetail = 'moderationDetail'
970
-
971
- export function isModerationDetail<V>(v: V) {
972
- return is$typed(v, id, hashModerationDetail)
973
- }
974
-
975
- export function validateModerationDetail<V>(v: V) {
976
- return validate<ModerationDetail & V>(v, id, hashModerationDetail)
977
- }
978
-
979
- export interface BlobView {
980
- $type?: 'tools.ozone.moderation.defs#blobView'
981
- cid: string
982
- mimeType: string
983
- size: number
984
- createdAt: string
985
- details?: $Typed<ImageDetails> | $Typed<VideoDetails> | { $type: string }
986
- moderation?: Moderation
987
- }
988
-
989
- const hashBlobView = 'blobView'
990
-
991
- export function isBlobView<V>(v: V) {
992
- return is$typed(v, id, hashBlobView)
993
- }
994
-
995
- export function validateBlobView<V>(v: V) {
996
- return validate<BlobView & V>(v, id, hashBlobView)
997
- }
998
-
999
- export interface ImageDetails {
1000
- $type?: 'tools.ozone.moderation.defs#imageDetails'
1001
- width: number
1002
- height: number
1003
- }
1004
-
1005
- const hashImageDetails = 'imageDetails'
1006
-
1007
- export function isImageDetails<V>(v: V) {
1008
- return is$typed(v, id, hashImageDetails)
1009
- }
1010
-
1011
- export function validateImageDetails<V>(v: V) {
1012
- return validate<ImageDetails & V>(v, id, hashImageDetails)
1013
- }
1014
-
1015
- export interface VideoDetails {
1016
- $type?: 'tools.ozone.moderation.defs#videoDetails'
1017
- width: number
1018
- height: number
1019
- length: number
1020
- }
1021
-
1022
- const hashVideoDetails = 'videoDetails'
1023
-
1024
- export function isVideoDetails<V>(v: V) {
1025
- return is$typed(v, id, hashVideoDetails)
1026
- }
1027
-
1028
- export function validateVideoDetails<V>(v: V) {
1029
- return validate<VideoDetails & V>(v, id, hashVideoDetails)
1030
- }
1031
-
1032
- export interface AccountHosting {
1033
- $type?: 'tools.ozone.moderation.defs#accountHosting'
1034
- status:
1035
- | 'takendown'
1036
- | 'suspended'
1037
- | 'deleted'
1038
- | 'deactivated'
1039
- | 'unknown'
1040
- | (string & {})
1041
- updatedAt?: string
1042
- createdAt?: string
1043
- deletedAt?: string
1044
- deactivatedAt?: string
1045
- reactivatedAt?: string
1046
- }
1047
-
1048
- const hashAccountHosting = 'accountHosting'
1049
-
1050
- export function isAccountHosting<V>(v: V) {
1051
- return is$typed(v, id, hashAccountHosting)
1052
- }
1053
-
1054
- export function validateAccountHosting<V>(v: V) {
1055
- return validate<AccountHosting & V>(v, id, hashAccountHosting)
1056
- }
1057
-
1058
- export interface RecordHosting {
1059
- $type?: 'tools.ozone.moderation.defs#recordHosting'
1060
- status: 'deleted' | 'unknown' | (string & {})
1061
- updatedAt?: string
1062
- createdAt?: string
1063
- deletedAt?: string
1064
- }
1065
-
1066
- const hashRecordHosting = 'recordHosting'
1067
-
1068
- export function isRecordHosting<V>(v: V) {
1069
- return is$typed(v, id, hashRecordHosting)
1070
- }
1071
-
1072
- export function validateRecordHosting<V>(v: V) {
1073
- return validate<RecordHosting & V>(v, id, hashRecordHosting)
1074
- }
1075
-
1076
- export interface ReporterStats {
1077
- $type?: 'tools.ozone.moderation.defs#reporterStats'
1078
- did: string
1079
- /** The total number of reports made by the user on accounts. */
1080
- accountReportCount: number
1081
- /** The total number of reports made by the user on records. */
1082
- recordReportCount: number
1083
- /** The total number of accounts reported by the user. */
1084
- reportedAccountCount: number
1085
- /** The total number of records reported by the user. */
1086
- reportedRecordCount: number
1087
- /** The total number of accounts taken down as a result of the user's reports. */
1088
- takendownAccountCount: number
1089
- /** The total number of records taken down as a result of the user's reports. */
1090
- takendownRecordCount: number
1091
- /** The total number of accounts labeled as a result of the user's reports. */
1092
- labeledAccountCount: number
1093
- /** The total number of records labeled as a result of the user's reports. */
1094
- labeledRecordCount: number
1095
- }
1096
-
1097
- const hashReporterStats = 'reporterStats'
1098
-
1099
- export function isReporterStats<V>(v: V) {
1100
- return is$typed(v, id, hashReporterStats)
1101
- }
1102
-
1103
- export function validateReporterStats<V>(v: V) {
1104
- return validate<ReporterStats & V>(v, id, hashReporterStats)
1105
- }
1106
-
1107
- /** Moderation tool information for tracing the source of the action */
1108
- export interface ModTool {
1109
- $type?: 'tools.ozone.moderation.defs#modTool'
1110
- /** Name/identifier of the source (e.g., 'automod', 'ozone/workspace') */
1111
- name: string
1112
- /** Additional arbitrary metadata about the source */
1113
- meta?: { [_ in string]: unknown }
1114
- }
1115
-
1116
- const hashModTool = 'modTool'
1117
-
1118
- export function isModTool<V>(v: V) {
1119
- return is$typed(v, id, hashModTool)
1120
- }
1121
-
1122
- export function validateModTool<V>(v: V) {
1123
- return validate<ModTool & V>(v, id, hashModTool)
1124
- }
1125
-
1126
- /** Moderation event timeline event for a PLC create operation */
1127
- export const TIMELINEEVENTPLCCREATE = `${id}#timelineEventPlcCreate`
1128
- /** Moderation event timeline event for generic PLC operation */
1129
- export const TIMELINEEVENTPLCOPERATION = `${id}#timelineEventPlcOperation`
1130
- /** Moderation event timeline event for a PLC tombstone operation */
1131
- export const TIMELINEEVENTPLCTOMBSTONE = `${id}#timelineEventPlcTombstone`
1132
-
1133
- /** View of a scheduled moderation action */
1134
- export interface ScheduledActionView {
1135
- $type?: 'tools.ozone.moderation.defs#scheduledActionView'
1136
- /** Auto-incrementing row ID */
1137
- id: number
1138
- /** Type of action to be executed */
1139
- action: 'takedown' | (string & {})
1140
- /** Serialized event object that will be propagated to the event when performed */
1141
- eventData?: { [_ in string]: unknown }
1142
- /** Subject DID for the action */
1143
- did: string
1144
- /** Exact time to execute the action */
1145
- executeAt?: string
1146
- /** Earliest time to execute the action (for randomized scheduling) */
1147
- executeAfter?: string
1148
- /** Latest time to execute the action (for randomized scheduling) */
1149
- executeUntil?: string
1150
- /** Whether execution time should be randomized within the specified range */
1151
- randomizeExecution?: boolean
1152
- /** DID of the user who created this scheduled action */
1153
- createdBy: string
1154
- /** When the scheduled action was created */
1155
- createdAt: string
1156
- /** When the scheduled action was last updated */
1157
- updatedAt?: string
1158
- /** Current status of the scheduled action */
1159
- status: 'pending' | 'executed' | 'cancelled' | 'failed' | (string & {})
1160
- /** When the action was last attempted to be executed */
1161
- lastExecutedAt?: string
1162
- /** Reason for the last execution failure */
1163
- lastFailureReason?: string
1164
- /** ID of the moderation event created when action was successfully executed */
1165
- executionEventId?: number
1166
- }
1167
-
1168
- const hashScheduledActionView = 'scheduledActionView'
1169
-
1170
- export function isScheduledActionView<V>(v: V) {
1171
- return is$typed(v, id, hashScheduledActionView)
1172
- }
1173
-
1174
- export function validateScheduledActionView<V>(v: V) {
1175
- return validate<ScheduledActionView & V>(v, id, hashScheduledActionView)
1176
- }