@atproto/pds 0.5.38 → 0.5.39

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 (216) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/account-manager/account-manager.d.ts +2 -1
  3. package/dist/account-manager/account-manager.d.ts.map +1 -1
  4. package/dist/account-manager/account-manager.js +2 -1
  5. package/dist/account-manager/account-manager.js.map +1 -1
  6. package/dist/account-manager/oauth-store.d.ts +1 -1
  7. package/dist/account-manager/oauth-store.d.ts.map +1 -1
  8. package/dist/account-manager/oauth-store.js +16 -4
  9. package/dist/account-manager/oauth-store.js.map +1 -1
  10. package/dist/lexicons/app/bsky/actor/defs.defs.d.ts +25 -0
  11. package/dist/lexicons/app/bsky/actor/defs.defs.d.ts.map +1 -1
  12. package/dist/lexicons/app/bsky/actor/defs.defs.js +16 -0
  13. package/dist/lexicons/app/bsky/actor/defs.defs.js.map +1 -1
  14. package/dist/lexicons/app/bsky/actor/link.d.ts +3 -0
  15. package/dist/lexicons/app/bsky/actor/link.d.ts.map +1 -0
  16. package/dist/lexicons/app/bsky/actor/link.defs.d.ts +120 -0
  17. package/dist/lexicons/app/bsky/actor/link.defs.d.ts.map +1 -0
  18. package/dist/lexicons/app/bsky/actor/link.defs.js +39 -0
  19. package/dist/lexicons/app/bsky/actor/link.defs.js.map +1 -0
  20. package/dist/lexicons/app/bsky/actor/link.js +6 -0
  21. package/dist/lexicons/app/bsky/actor/link.js.map +1 -0
  22. package/dist/lexicons/app/bsky/actor/profile.defs.d.ts +14 -0
  23. package/dist/lexicons/app/bsky/actor/profile.defs.d.ts.map +1 -1
  24. package/dist/lexicons/app/bsky/actor/profile.defs.js +3 -0
  25. package/dist/lexicons/app/bsky/actor/profile.defs.js.map +1 -1
  26. package/dist/lexicons/app/bsky/actor.d.ts +1 -0
  27. package/dist/lexicons/app/bsky/actor.d.ts.map +1 -1
  28. package/dist/lexicons/app/bsky/actor.js +1 -0
  29. package/dist/lexicons/app/bsky/actor.js.map +1 -1
  30. package/dist/lexicons/app/bsky/authFullApp.defs.d.ts.map +1 -1
  31. package/dist/lexicons/app/bsky/authFullApp.defs.js +1 -0
  32. package/dist/lexicons/app/bsky/authFullApp.defs.js.map +1 -1
  33. package/dist/lexicons/app/bsky/authManageProfile.defs.d.ts.map +1 -1
  34. package/dist/lexicons/app/bsky/authManageProfile.defs.js +1 -0
  35. package/dist/lexicons/app/bsky/authManageProfile.defs.js.map +1 -1
  36. package/dist/lexicons/app/bsky/embed/external.defs.d.ts +130 -0
  37. package/dist/lexicons/app/bsky/embed/external.defs.d.ts.map +1 -1
  38. package/dist/lexicons/app/bsky/embed/external.defs.js +135 -0
  39. package/dist/lexicons/app/bsky/embed/external.defs.js.map +1 -1
  40. package/dist/lexicons/app/bsky/embed/getEmbedExternalView.defs.d.ts +15 -3
  41. package/dist/lexicons/app/bsky/embed/getEmbedExternalView.defs.d.ts.map +1 -1
  42. package/dist/lexicons/app/bsky/embed/getEmbedExternalView.defs.js +18 -3
  43. package/dist/lexicons/app/bsky/embed/getEmbedExternalView.defs.js.map +1 -1
  44. package/dist/lexicons/app/bsky/embed/record.defs.d.ts +8 -0
  45. package/dist/lexicons/app/bsky/embed/record.defs.d.ts.map +1 -1
  46. package/dist/lexicons/app/bsky/embed/record.defs.js +2 -0
  47. package/dist/lexicons/app/bsky/embed/record.defs.js.map +1 -1
  48. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.d.ts +62 -3
  49. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.d.ts.map +1 -1
  50. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.js +53 -2
  51. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.js.map +1 -1
  52. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +3 -0
  53. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -0
  54. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.defs.d.ts +103 -0
  55. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.defs.d.ts.map +1 -0
  56. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.defs.js +95 -0
  57. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.defs.js.map +1 -0
  58. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.js +6 -0
  59. package/dist/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -0
  60. package/dist/lexicons/app/bsky/unspecced.d.ts +1 -0
  61. package/dist/lexicons/app/bsky/unspecced.d.ts.map +1 -1
  62. package/dist/lexicons/app/bsky/unspecced.js +1 -0
  63. package/dist/lexicons/app/bsky/unspecced.js.map +1 -1
  64. package/dist/lexicons/index.d.ts +2 -0
  65. package/dist/lexicons/index.d.ts.map +1 -1
  66. package/dist/lexicons/index.js +2 -0
  67. package/dist/lexicons/index.js.map +1 -1
  68. package/dist/lexicons/place/stream/badge/defs.d.ts +2 -0
  69. package/dist/lexicons/place/stream/badge/defs.d.ts.map +1 -0
  70. package/dist/lexicons/place/stream/badge/defs.defs.d.ts +131 -0
  71. package/dist/lexicons/place/stream/badge/defs.defs.d.ts.map +1 -0
  72. package/dist/lexicons/place/stream/badge/defs.defs.js +73 -0
  73. package/dist/lexicons/place/stream/badge/defs.defs.js.map +1 -0
  74. package/dist/lexicons/place/stream/badge/defs.js +5 -0
  75. package/dist/lexicons/place/stream/badge/defs.js.map +1 -0
  76. package/dist/lexicons/place/stream/badge.d.ts +2 -0
  77. package/dist/lexicons/place/stream/badge.d.ts.map +1 -0
  78. package/dist/lexicons/place/stream/badge.js +5 -0
  79. package/dist/lexicons/place/stream/badge.js.map +1 -0
  80. package/dist/lexicons/place/stream/chat/defs.d.ts +2 -0
  81. package/dist/lexicons/place/stream/chat/defs.d.ts.map +1 -0
  82. package/dist/lexicons/place/stream/chat/defs.defs.d.ts +44 -0
  83. package/dist/lexicons/place/stream/chat/defs.defs.d.ts.map +1 -0
  84. package/dist/lexicons/place/stream/chat/defs.defs.js +41 -0
  85. package/dist/lexicons/place/stream/chat/defs.defs.js.map +1 -0
  86. package/dist/lexicons/place/stream/chat/defs.js +5 -0
  87. package/dist/lexicons/place/stream/chat/defs.js.map +1 -0
  88. package/dist/lexicons/place/stream/chat/pinnedRecord.d.ts +3 -0
  89. package/dist/lexicons/place/stream/chat/pinnedRecord.d.ts.map +1 -0
  90. package/dist/lexicons/place/stream/chat/pinnedRecord.defs.d.ts +108 -0
  91. package/dist/lexicons/place/stream/chat/pinnedRecord.defs.d.ts.map +1 -0
  92. package/dist/lexicons/place/stream/chat/pinnedRecord.defs.js +31 -0
  93. package/dist/lexicons/place/stream/chat/pinnedRecord.defs.js.map +1 -0
  94. package/dist/lexicons/place/stream/chat/pinnedRecord.js +6 -0
  95. package/dist/lexicons/place/stream/chat/pinnedRecord.js.map +1 -0
  96. package/dist/lexicons/place/stream/chat/profile.d.ts +3 -0
  97. package/dist/lexicons/place/stream/chat/profile.d.ts.map +1 -0
  98. package/dist/lexicons/place/stream/chat/profile.defs.d.ts +143 -0
  99. package/dist/lexicons/place/stream/chat/profile.defs.d.ts.map +1 -0
  100. package/dist/lexicons/place/stream/chat/profile.defs.js +62 -0
  101. package/dist/lexicons/place/stream/chat/profile.defs.js.map +1 -0
  102. package/dist/lexicons/place/stream/chat/profile.js +6 -0
  103. package/dist/lexicons/place/stream/chat/profile.js.map +1 -0
  104. package/dist/lexicons/place/stream/chat.d.ts +4 -0
  105. package/dist/lexicons/place/stream/chat.d.ts.map +1 -0
  106. package/dist/lexicons/place/stream/chat.js +7 -0
  107. package/dist/lexicons/place/stream/chat.js.map +1 -0
  108. package/dist/lexicons/place/stream/defs.d.ts +2 -0
  109. package/dist/lexicons/place/stream/defs.d.ts.map +1 -0
  110. package/dist/lexicons/place/stream/defs.defs.d.ts +54 -0
  111. package/dist/lexicons/place/stream/defs.defs.d.ts.map +1 -0
  112. package/dist/lexicons/place/stream/defs.defs.js +40 -0
  113. package/dist/lexicons/place/stream/defs.defs.js.map +1 -0
  114. package/dist/lexicons/place/stream/defs.js +5 -0
  115. package/dist/lexicons/place/stream/defs.js.map +1 -0
  116. package/dist/lexicons/place/stream/livestream.d.ts +3 -0
  117. package/dist/lexicons/place/stream/livestream.d.ts.map +1 -0
  118. package/dist/lexicons/place/stream/livestream.defs.d.ts +312 -0
  119. package/dist/lexicons/place/stream/livestream.defs.d.ts.map +1 -0
  120. package/dist/lexicons/place/stream/livestream.defs.js +105 -0
  121. package/dist/lexicons/place/stream/livestream.defs.js.map +1 -0
  122. package/dist/lexicons/place/stream/livestream.js +6 -0
  123. package/dist/lexicons/place/stream/livestream.js.map +1 -0
  124. package/dist/lexicons/place/stream.d.ts +5 -0
  125. package/dist/lexicons/place/stream.d.ts.map +1 -0
  126. package/dist/lexicons/place/stream.js +8 -0
  127. package/dist/lexicons/place/stream.js.map +1 -0
  128. package/dist/lexicons/place.d.ts +2 -0
  129. package/dist/lexicons/place.d.ts.map +1 -0
  130. package/dist/lexicons/place.js +5 -0
  131. package/dist/lexicons/place.js.map +1 -0
  132. package/dist/lexicons/site/standard/document.defs.d.ts +127 -127
  133. package/dist/lexicons/site/standard/document.defs.d.ts.map +1 -1
  134. package/dist/lexicons/site/standard/document.defs.js +28 -28
  135. package/dist/lexicons/site/standard/document.defs.js.map +1 -1
  136. package/dist/lexicons/site/standard/graph/recommend.defs.d.ts +11 -11
  137. package/dist/lexicons/site/standard/graph/recommend.defs.d.ts.map +1 -1
  138. package/dist/lexicons/site/standard/graph/recommend.defs.js +1 -1
  139. package/dist/lexicons/site/standard/graph/recommend.defs.js.map +1 -1
  140. package/dist/lexicons/site/standard/publication.defs.d.ts +52 -52
  141. package/dist/lexicons/site/standard/publication.defs.d.ts.map +1 -1
  142. package/dist/lexicons/site/standard/publication.defs.js +6 -6
  143. package/dist/lexicons/site/standard/publication.defs.js.map +1 -1
  144. package/dist/lexicons/site/standard/theme/basic.defs.d.ts +14 -14
  145. package/dist/lexicons/site/standard/theme/basic.defs.d.ts.map +1 -1
  146. package/dist/lexicons/site/standard/theme/basic.defs.js +1 -1
  147. package/dist/lexicons/site/standard/theme/basic.defs.js.map +1 -1
  148. package/dist/lexicons/social/grain/defs.d.ts +2 -0
  149. package/dist/lexicons/social/grain/defs.d.ts.map +1 -0
  150. package/dist/lexicons/social/grain/defs.defs.d.ts +15 -0
  151. package/dist/lexicons/social/grain/defs.defs.d.ts.map +1 -0
  152. package/dist/lexicons/social/grain/defs.defs.js +14 -0
  153. package/dist/lexicons/social/grain/defs.defs.js.map +1 -0
  154. package/dist/lexicons/social/grain/defs.js +5 -0
  155. package/dist/lexicons/social/grain/defs.js.map +1 -0
  156. package/dist/lexicons/social/grain/favorite.d.ts +3 -0
  157. package/dist/lexicons/social/grain/favorite.d.ts.map +1 -0
  158. package/dist/lexicons/social/grain/favorite.defs.d.ts +72 -0
  159. package/dist/lexicons/social/grain/favorite.defs.d.ts.map +1 -0
  160. package/dist/lexicons/social/grain/favorite.defs.js +26 -0
  161. package/dist/lexicons/social/grain/favorite.defs.js.map +1 -0
  162. package/dist/lexicons/social/grain/favorite.js +6 -0
  163. package/dist/lexicons/social/grain/favorite.js.map +1 -0
  164. package/dist/lexicons/social/grain/gallery/item.d.ts +3 -0
  165. package/dist/lexicons/social/grain/gallery/item.d.ts.map +1 -0
  166. package/dist/lexicons/social/grain/gallery/item.defs.d.ts +94 -0
  167. package/dist/lexicons/social/grain/gallery/item.defs.d.ts.map +1 -0
  168. package/dist/lexicons/social/grain/gallery/item.defs.js +29 -0
  169. package/dist/lexicons/social/grain/gallery/item.defs.js.map +1 -0
  170. package/dist/lexicons/social/grain/gallery/item.js +6 -0
  171. package/dist/lexicons/social/grain/gallery/item.js.map +1 -0
  172. package/dist/lexicons/social/grain/gallery.d.ts +4 -0
  173. package/dist/lexicons/social/grain/gallery.d.ts.map +1 -0
  174. package/dist/lexicons/social/grain/gallery.defs.d.ts +98 -0
  175. package/dist/lexicons/social/grain/gallery.defs.d.ts.map +1 -0
  176. package/dist/lexicons/social/grain/gallery.defs.js +33 -0
  177. package/dist/lexicons/social/grain/gallery.defs.js.map +1 -0
  178. package/dist/lexicons/social/grain/gallery.js +7 -0
  179. package/dist/lexicons/social/grain/gallery.js.map +1 -0
  180. package/dist/lexicons/social/grain/photo.d.ts +3 -0
  181. package/dist/lexicons/social/grain/photo.d.ts.map +1 -0
  182. package/dist/lexicons/social/grain/photo.defs.d.ts +98 -0
  183. package/dist/lexicons/social/grain/photo.defs.d.ts.map +1 -0
  184. package/dist/lexicons/social/grain/photo.defs.js +31 -0
  185. package/dist/lexicons/social/grain/photo.defs.js.map +1 -0
  186. package/dist/lexicons/social/grain/photo.js +6 -0
  187. package/dist/lexicons/social/grain/photo.js.map +1 -0
  188. package/dist/lexicons/social/grain.d.ts +5 -0
  189. package/dist/lexicons/social/grain.d.ts.map +1 -0
  190. package/dist/lexicons/social/grain.js +8 -0
  191. package/dist/lexicons/social/grain.js.map +1 -0
  192. package/dist/lexicons/social.d.ts +2 -0
  193. package/dist/lexicons/social.d.ts.map +1 -0
  194. package/dist/lexicons/social.js +5 -0
  195. package/dist/lexicons/social.js.map +1 -0
  196. package/dist/lexicons/tools/ozone/inbox/defs.defs.d.ts +22 -1
  197. package/dist/lexicons/tools/ozone/inbox/defs.defs.d.ts.map +1 -1
  198. package/dist/lexicons/tools/ozone/inbox/defs.defs.js +10 -1
  199. package/dist/lexicons/tools/ozone/inbox/defs.defs.js.map +1 -1
  200. package/dist/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.d.ts +1 -0
  201. package/dist/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.d.ts.map +1 -1
  202. package/dist/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.js +1 -0
  203. package/dist/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.js.map +1 -1
  204. package/dist/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.d.ts +7 -2
  205. package/dist/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.d.ts.map +1 -1
  206. package/dist/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.js +4 -1
  207. package/dist/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.js.map +1 -1
  208. package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts +17 -1
  209. package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts.map +1 -1
  210. package/dist/lexicons/tools/ozone/queue/defs.defs.js +8 -0
  211. package/dist/lexicons/tools/ozone/queue/defs.defs.js.map +1 -1
  212. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts +54 -2
  213. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts.map +1 -1
  214. package/dist/lexicons/tools/ozone/report/defs.defs.js +24 -0
  215. package/dist/lexicons/tools/ozone/report/defs.defs.js.map +1 -1
  216. package/package.json +12 -12
@@ -49,6 +49,10 @@ type AppealView = {
49
49
  * When the appeal's report was closed.
50
50
  */
51
51
  resolvedAt?: l.DatetimeString;
52
+ /**
53
+ * Decision on a resolved appeal.
54
+ */
55
+ outcome?: 'approved' | 'denied' | l.UnknownString;
52
56
  appealableUntil?: l.DatetimeString;
53
57
  };
54
58
  export type { AppealView };
@@ -155,11 +159,24 @@ type Notification = {
155
159
  export type { Notification };
156
160
  declare const notification: l.TypedObjectSchema<"tools.ozone.inbox.defs#notification", l.Validator<Notification, Notification>>;
157
161
  export { notification };
162
+ /** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */
158
163
  type NotificationPreferences = {
159
164
  $type?: 'tools.ozone.inbox.defs#notificationPreferences';
160
- push: boolean;
165
+ /**
166
+ * Notify about outcomes of reports filed by the account (reportResolved and reportReopened).
167
+ */
168
+ reports: boolean;
169
+ /**
170
+ * Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.
171
+ */
172
+ account: boolean;
173
+ /**
174
+ * Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).
175
+ */
176
+ labels: boolean;
161
177
  };
162
178
  export type { NotificationPreferences };
179
+ /** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */
163
180
  declare const notificationPreferences: l.TypedObjectSchema<"tools.ozone.inbox.defs#notificationPreferences", l.Validator<NotificationPreferences, NotificationPreferences>>;
164
181
  export { notificationPreferences };
165
182
  /** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */
@@ -175,6 +192,10 @@ declare const reportRef: l.TypedObjectSchema<"tools.ozone.inbox.defs#reportRef",
175
192
  export { reportRef };
176
193
  type SubjectRef = {
177
194
  $type?: 'tools.ozone.inbox.defs#subjectRef';
195
+ /**
196
+ * Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.
197
+ */
198
+ appealOutcome?: 'approved' | 'denied' | l.UnknownString;
178
199
  subject: l.$Typed<AdminDefs.RepoRef> | l.$Typed<RepoStrongRef.Main> | l.Unknown$TypedObject;
179
200
  actionType?: string;
180
201
  actionId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAE5E,QAAA,MAAM,KAAK,2BAA2B,CAAA;AAEtC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,gFAAgF;AAChF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAE5C;;OAEG;IACH,GAAG,EAAE,CAAC,CAAC,SAAS,CAAA;IAChB,OAAO,EACH,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,GAC3B,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,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QAAA,MAAM,WAAW,kGAWhB,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -48,6 +48,8 @@ const appealView = /*#__PURE__*/ l.typedObject($nsid, 'appealView',
48
48
  /*#__PURE__*/ l.string({ format: 'datetime' })),
49
49
  resolvedAt: /*#__PURE__*/ l.optional(
50
50
  /*#__PURE__*/ l.string({ format: 'datetime' })),
51
+ outcome: /*#__PURE__*/ l.optional(
52
+ /*#__PURE__*/ l.string()),
51
53
  appealableUntil: /*#__PURE__*/ l.optional(
52
54
  /*#__PURE__*/ l.string({ format: 'datetime' })),
53
55
  }));
@@ -124,9 +126,14 @@ const notification = /*#__PURE__*/ l.typedObject($nsid, 'notification',
124
126
  createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
125
127
  }));
126
128
  export { notification };
129
+ /** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */
127
130
  const notificationPreferences =
128
131
  /*#__PURE__*/ l.typedObject($nsid, 'notificationPreferences',
129
- /*#__PURE__*/ l.object({ push: /*#__PURE__*/ l.boolean() }));
132
+ /*#__PURE__*/ l.object({
133
+ reports: /*#__PURE__*/ l.boolean(),
134
+ account: /*#__PURE__*/ l.boolean(),
135
+ labels: /*#__PURE__*/ l.boolean(),
136
+ }));
130
137
  export { notificationPreferences };
131
138
  /** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */
132
139
  const reportRef = /*#__PURE__*/ l.typedObject($nsid, 'reportRef',
@@ -143,6 +150,8 @@ const reportRef = /*#__PURE__*/ l.typedObject($nsid, 'reportRef',
143
150
  export { reportRef };
144
151
  const subjectRef = /*#__PURE__*/ l.typedObject($nsid, 'subjectRef',
145
152
  /*#__PURE__*/ l.object({
153
+ appealOutcome: /*#__PURE__*/ l.optional(
154
+ /*#__PURE__*/ l.string()),
146
155
  subject: /*#__PURE__*/ l.typedUnion([
147
156
  /*#__PURE__*/ l.typedRef((() => AdminDefs.repoRef)),
148
157
  /*#__PURE__*/ l.typedRef((() => RepoStrongRef.main)),
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAE5E,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAAO,EAAE,KAAK,EAAE,CAAA;AA0BhB,gFAAgF;AAChF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC7C,KAAK,EACL,aAAa;AACb,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,UAAU,CACjC;QACE,aAAa,CAAC,CAAC,CAAC,QAAQ,CACtB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAQ,CACjC;QACD,aAAa,CAAC,CAAC,CAAC,QAAQ,CACtB,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAQ,CAClC;KACF,EACD,KAAK,CACN;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,CAAC,eAAe,CAAQ,CAC/B;IACD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,GAAG,CAAa,CAAC,GAAG,EAAE,CAAC,UAAU,CAAQ,CAAC,CAC3D;IACD,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACxC,aAAa,CAAC,CAAC,CAAC,KAAK;IACnB,aAAa,CAAC,CAAC,CAAC,MAAM,EAA+B,C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aAAa,CAAC,CAAC,CAAC,QAAQ,CACtB,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAQ,CAClC;KACF,EACD,KAAK,CACN;IACD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9D,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CAC9D,CAAC,CACH,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AAUrB,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC7C,KAAK,EACL,aAAa;AACb,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAE5B;IACJ,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACxC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAkD,CACzE;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as AdminDefs from '../../../com/atproto/admin/defs.defs.js'\nimport * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\ntype SubjectView = {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n\n /**\n * DID of the moderation service that took the actions.\n */\n src: l.DidString\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | l.UnknownString)[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n isRead: boolean\n}\n\nexport type { SubjectView }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nconst subjectView = /*#__PURE__*/ l.typedObject<SubjectView>(\n $nsid,\n 'subjectView',\n /*#__PURE__*/ l.object({\n src: /*#__PURE__*/ l.string({ format: 'did' }),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n enforcement: /*#__PURE__*/ l.ref<EnforcementView>(\n (() => enforcementView) as any,\n ),\n appeal: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<AppealView>((() => appealView) as any),\n ),\n availableActions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{ knownValues: ['appeal'] }>(),\n ),\n ),\n latestAction: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ActionView>((() => actionView) as any),\n ),\n actionCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n isRead: /*#__PURE__*/ l.boolean(),\n }),\n)\n\nexport { subjectView }\n\n/** The current enforcement state of a subject. */\ntype EnforcementView = {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | l.UnknownString\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n expiresAt?: l.DatetimeString\n\n /**\n * Active label values on the subject, excluding negated and expired labels.\n */\n labels?: string[]\n}\n\nexport type { EnforcementView }\n\n/** The current enforcement state of a subject. */\nconst enforcementView = /*#__PURE__*/ l.typedObject<EnforcementView>(\n $nsid,\n 'enforcementView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'labeled', 'removed', 'suspended', 'takendown']\n }>(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n }),\n)\n\nexport { enforcementView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\ntype AppealView = {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | l.UnknownString\n appealedAt?: l.DatetimeString\n\n /**\n * When the appeal's report was closed.\n */\n resolvedAt?: l.DatetimeString\n appealableUntil?: l.DatetimeString\n}\n\nexport type { AppealView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\nconst appealView = /*#__PURE__*/ l.typedObject<AppealView>(\n $nsid,\n 'appealView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'pending', 'resolved', 'superseded', 'expired']\n }>(),\n appealedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n resolvedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n appealableUntil: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { appealView }\n\n/** A single moderation action taken against a subject. */\ntype ActionView = {\n $type?: 'tools.ozone.inbox.defs#actionView'\n\n /**\n * Action ID (moderation event ID).\n */\n id: number\n\n /**\n * Public action type.\n */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n createdAt: l.DatetimeString\n reversedAt?: l.DatetimeString\n expiresAt?: l.DatetimeString\n\n /**\n * Label values, for labelApplied/labelRemoved.\n */\n labels?: string[]\n\n /**\n * Policies applied by a takedown action.\n */\n policies?: PolicyView[]\n}\n\nexport type { ActionView }\n\n/** A single moderation action taken against a subject. */\nconst actionView = /*#__PURE__*/ l.typedObject<ActionView>(\n $nsid,\n 'actionView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n type: /*#__PURE__*/ l.string(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n reversedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n policies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<PolicyView>((() => policyView) as any),\n ),\n ),\n }),\n)\n\nexport { actionView }\n\ntype PolicyView = {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: l.UriString\n}\n\nexport type { PolicyView }\n\nconst policyView = /*#__PURE__*/ l.typedObject<PolicyView>(\n $nsid,\n 'policyView',\n /*#__PURE__*/ l.object({\n key: /*#__PURE__*/ l.string(),\n displayName: /*#__PURE__*/ l.string(),\n link: /*#__PURE__*/ l.string({ format: 'uri' }),\n }),\n)\n\nexport { policyView }\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\ntype SubjectViewDetail = {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: l.DidString\n isRead: boolean\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n\n /**\n * Raw record JSON for the subject, when the subject is a record and the record is available.\n */\n record?: l.LexMap\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | l.UnknownString)[]\n\n /**\n * A page of action history, most recent first. Reversal timestamps include changes outside this page.\n */\n actions: ActionView[]\n\n /**\n * Cursor for the next page of action history. Omitted when no older actions remain.\n */\n cursor?: string\n\n /**\n * Omitted when the subject has never been reported, e.g. proactive enforcement.\n */\n reports?: ReportsSummary\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n}\n\nexport type { SubjectViewDetail }\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nconst subjectViewDetail = /*#__PURE__*/ l.typedObject<SubjectViewDetail>(\n $nsid,\n 'subjectViewDetail',\n /*#__PURE__*/ l.object({\n src: /*#__PURE__*/ l.string({ format: 'did' }),\n isRead: /*#__PURE__*/ l.boolean(),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n record: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),\n enforcement: /*#__PURE__*/ l.ref<EnforcementView>(\n (() => enforcementView) as any,\n ),\n appeal: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<AppealView>((() => appealView) as any),\n ),\n availableActions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{ knownValues: ['appeal'] }>(),\n ),\n ),\n actions: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ActionView>((() => actionView) as any),\n { maxLength: 100 },\n ),\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n reports: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ReportsSummary>((() => reportsSummary) as any),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { subjectViewDetail }\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\ntype ReportsSummary = {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n\n /**\n * Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal.\n */\n reasonTypes: string[]\n\n /**\n * Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful.\n */\n firstReportedOn: l.DatetimeString\n\n /**\n * Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful.\n */\n lastReportedOn: l.DatetimeString\n}\n\nexport type { ReportsSummary }\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nconst reportsSummary = /*#__PURE__*/ l.typedObject<ReportsSummary>(\n $nsid,\n 'reportsSummary',\n /*#__PURE__*/ l.object({\n reasonTypes: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n firstReportedOn: /*#__PURE__*/ l.string({ format: 'datetime' }),\n lastReportedOn: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportsSummary }\n\ntype Notification = {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | l.UnknownString\n target:\n | l.$Typed<ReportRef>\n | l.$Typed<SubjectRef>\n | l.$Typed<StandingRef>\n | l.Unknown$TypedObject\n isRead: boolean\n createdAt: l.DatetimeString\n}\n\nexport type { Notification }\n\nconst notification = /*#__PURE__*/ l.typedObject<Notification>(\n $nsid,\n 'notification',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n reason: /*#__PURE__*/ l.string<{\n knownValues: [\n 'reportResolved',\n 'reportReopened',\n 'actionTaken',\n 'actionReversed',\n 'appealResolved',\n 'standingChanged',\n ]\n }>(),\n target: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<ReportRef>((() => reportRef) as any),\n /*#__PURE__*/ l.typedRef<SubjectRef>((() => subjectRef) as any),\n /*#__PURE__*/ l.typedRef<StandingRef>((() => standingRef) as any),\n ],\n false,\n ),\n isRead: /*#__PURE__*/ l.boolean(),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { notification }\n\ntype NotificationPreferences = {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n push: boolean\n}\n\nexport type { NotificationPreferences }\n\nconst notificationPreferences =\n /*#__PURE__*/ l.typedObject<NotificationPreferences>(\n $nsid,\n 'notificationPreferences',\n /*#__PURE__*/ l.object({ push: /*#__PURE__*/ l.boolean() }),\n )\n\nexport { notificationPreferences }\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\ntype ReportRef = {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n status?: 'pending' | 'resolved' | l.UnknownString\n}\n\nexport type { ReportRef }\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nconst reportRef = /*#__PURE__*/ l.typedObject<ReportRef>(\n $nsid,\n 'reportRef',\n /*#__PURE__*/ l.object({\n reportId: /*#__PURE__*/ l.integer(),\n subject: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n ),\n status: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['pending', 'resolved'] }>(),\n ),\n }),\n)\n\nexport { reportRef }\n\ntype SubjectRef = {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n actionType?: string\n actionId?: number\n}\n\nexport type { SubjectRef }\n\nconst subjectRef = /*#__PURE__*/ l.typedObject<SubjectRef>(\n $nsid,\n 'subjectRef',\n /*#__PURE__*/ l.object({\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n actionType: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n actionId: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n }),\n)\n\nexport { subjectRef }\n\ntype StandingRef = {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | l.UnknownString\n previousStanding?: 'good' | 'warning' | 'atRisk' | l.UnknownString\n}\n\nexport type { StandingRef }\n\nconst standingRef = /*#__PURE__*/ l.typedObject<StandingRef>(\n $nsid,\n 'standingRef',\n /*#__PURE__*/ l.object({\n standing: /*#__PURE__*/ l.string<{\n knownValues: ['good', 'warning', 'atRisk']\n }>(),\n previousStanding: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['good', 'warning', 'atRisk'] }>(),\n ),\n }),\n)\n\nexport { standingRef }\n"]}
1
+ {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAE5E,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAA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,CAAC,QAAQ,CACtB,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAQ,CAClC;KACF,EACD,KAAK,CACN;IACD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9D,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CAC9D,CAAC,CACH,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AAUrB,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC7C,KAAK,EACL,aAAa;AACb,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAE5B;IACJ,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACxC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAkD,CACzE;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as AdminDefs from '../../../com/atproto/admin/defs.defs.js'\nimport * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\ntype SubjectView = {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n\n /**\n * DID of the moderation service that took the actions.\n */\n src: l.DidString\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | l.UnknownString)[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n isRead: boolean\n}\n\nexport type { SubjectView }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nconst subjectView = /*#__PURE__*/ l.typedObject<SubjectView>(\n $nsid,\n 'subjectView',\n /*#__PURE__*/ l.object({\n src: /*#__PURE__*/ l.string({ format: 'did' }),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n enforcement: /*#__PURE__*/ l.ref<EnforcementView>(\n (() => enforcementView) as any,\n ),\n appeal: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<AppealView>((() => appealView) as any),\n ),\n availableActions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{ knownValues: ['appeal'] }>(),\n ),\n ),\n latestAction: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ActionView>((() => actionView) as any),\n ),\n actionCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n isRead: /*#__PURE__*/ l.boolean(),\n }),\n)\n\nexport { subjectView }\n\n/** The current enforcement state of a subject. */\ntype EnforcementView = {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | l.UnknownString\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n expiresAt?: l.DatetimeString\n\n /**\n * Active label values on the subject, excluding negated and expired labels.\n */\n labels?: string[]\n}\n\nexport type { EnforcementView }\n\n/** The current enforcement state of a subject. */\nconst enforcementView = /*#__PURE__*/ l.typedObject<EnforcementView>(\n $nsid,\n 'enforcementView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'labeled', 'removed', 'suspended', 'takendown']\n }>(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n }),\n)\n\nexport { enforcementView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\ntype AppealView = {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | l.UnknownString\n appealedAt?: l.DatetimeString\n\n /**\n * When the appeal's report was closed.\n */\n resolvedAt?: l.DatetimeString\n\n /**\n * Decision on a resolved appeal.\n */\n outcome?: 'approved' | 'denied' | l.UnknownString\n appealableUntil?: l.DatetimeString\n}\n\nexport type { AppealView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\nconst appealView = /*#__PURE__*/ l.typedObject<AppealView>(\n $nsid,\n 'appealView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'pending', 'resolved', 'superseded', 'expired']\n }>(),\n appealedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n resolvedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n outcome: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['approved', 'denied'] }>(),\n ),\n appealableUntil: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { appealView }\n\n/** A single moderation action taken against a subject. */\ntype ActionView = {\n $type?: 'tools.ozone.inbox.defs#actionView'\n\n /**\n * Action ID (moderation event ID).\n */\n id: number\n\n /**\n * Public action type.\n */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n createdAt: l.DatetimeString\n reversedAt?: l.DatetimeString\n expiresAt?: l.DatetimeString\n\n /**\n * Label values, for labelApplied/labelRemoved.\n */\n labels?: string[]\n\n /**\n * Policies applied by a takedown action.\n */\n policies?: PolicyView[]\n}\n\nexport type { ActionView }\n\n/** A single moderation action taken against a subject. */\nconst actionView = /*#__PURE__*/ l.typedObject<ActionView>(\n $nsid,\n 'actionView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n type: /*#__PURE__*/ l.string(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n reversedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n policies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<PolicyView>((() => policyView) as any),\n ),\n ),\n }),\n)\n\nexport { actionView }\n\ntype PolicyView = {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: l.UriString\n}\n\nexport type { PolicyView }\n\nconst policyView = /*#__PURE__*/ l.typedObject<PolicyView>(\n $nsid,\n 'policyView',\n /*#__PURE__*/ l.object({\n key: /*#__PURE__*/ l.string(),\n displayName: /*#__PURE__*/ l.string(),\n link: /*#__PURE__*/ l.string({ format: 'uri' }),\n }),\n)\n\nexport { policyView }\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\ntype SubjectViewDetail = {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: l.DidString\n isRead: boolean\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n\n /**\n * Raw record JSON for the subject, when the subject is a record and the record is available.\n */\n record?: l.LexMap\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | l.UnknownString)[]\n\n /**\n * A page of action history, most recent first. Reversal timestamps include changes outside this page.\n */\n actions: ActionView[]\n\n /**\n * Cursor for the next page of action history. Omitted when no older actions remain.\n */\n cursor?: string\n\n /**\n * Omitted when the subject has never been reported, e.g. proactive enforcement.\n */\n reports?: ReportsSummary\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n}\n\nexport type { SubjectViewDetail }\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nconst subjectViewDetail = /*#__PURE__*/ l.typedObject<SubjectViewDetail>(\n $nsid,\n 'subjectViewDetail',\n /*#__PURE__*/ l.object({\n src: /*#__PURE__*/ l.string({ format: 'did' }),\n isRead: /*#__PURE__*/ l.boolean(),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n record: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),\n enforcement: /*#__PURE__*/ l.ref<EnforcementView>(\n (() => enforcementView) as any,\n ),\n appeal: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<AppealView>((() => appealView) as any),\n ),\n availableActions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{ knownValues: ['appeal'] }>(),\n ),\n ),\n actions: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ActionView>((() => actionView) as any),\n { maxLength: 100 },\n ),\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n reports: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ReportsSummary>((() => reportsSummary) as any),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { subjectViewDetail }\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\ntype ReportsSummary = {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n\n /**\n * Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal.\n */\n reasonTypes: string[]\n\n /**\n * Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful.\n */\n firstReportedOn: l.DatetimeString\n\n /**\n * Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful.\n */\n lastReportedOn: l.DatetimeString\n}\n\nexport type { ReportsSummary }\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nconst reportsSummary = /*#__PURE__*/ l.typedObject<ReportsSummary>(\n $nsid,\n 'reportsSummary',\n /*#__PURE__*/ l.object({\n reasonTypes: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n firstReportedOn: /*#__PURE__*/ l.string({ format: 'datetime' }),\n lastReportedOn: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportsSummary }\n\ntype Notification = {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | l.UnknownString\n target:\n | l.$Typed<ReportRef>\n | l.$Typed<SubjectRef>\n | l.$Typed<StandingRef>\n | l.Unknown$TypedObject\n isRead: boolean\n createdAt: l.DatetimeString\n}\n\nexport type { Notification }\n\nconst notification = /*#__PURE__*/ l.typedObject<Notification>(\n $nsid,\n 'notification',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n reason: /*#__PURE__*/ l.string<{\n knownValues: [\n 'reportResolved',\n 'reportReopened',\n 'actionTaken',\n 'actionReversed',\n 'appealResolved',\n 'standingChanged',\n ]\n }>(),\n target: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<ReportRef>((() => reportRef) as any),\n /*#__PURE__*/ l.typedRef<SubjectRef>((() => subjectRef) as any),\n /*#__PURE__*/ l.typedRef<StandingRef>((() => standingRef) as any),\n ],\n false,\n ),\n isRead: /*#__PURE__*/ l.boolean(),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { notification }\n\n/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */\ntype NotificationPreferences = {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n\n /**\n * Notify about outcomes of reports filed by the account (reportResolved and reportReopened).\n */\n reports: boolean\n\n /**\n * Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.\n */\n account: boolean\n\n /**\n * Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).\n */\n labels: boolean\n}\n\nexport type { NotificationPreferences }\n\n/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */\nconst notificationPreferences =\n /*#__PURE__*/ l.typedObject<NotificationPreferences>(\n $nsid,\n 'notificationPreferences',\n /*#__PURE__*/ l.object({\n reports: /*#__PURE__*/ l.boolean(),\n account: /*#__PURE__*/ l.boolean(),\n labels: /*#__PURE__*/ l.boolean(),\n }),\n )\n\nexport { notificationPreferences }\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\ntype ReportRef = {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n status?: 'pending' | 'resolved' | l.UnknownString\n}\n\nexport type { ReportRef }\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nconst reportRef = /*#__PURE__*/ l.typedObject<ReportRef>(\n $nsid,\n 'reportRef',\n /*#__PURE__*/ l.object({\n reportId: /*#__PURE__*/ l.integer(),\n subject: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n ),\n status: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['pending', 'resolved'] }>(),\n ),\n }),\n)\n\nexport { reportRef }\n\ntype SubjectRef = {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n\n /**\n * Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.\n */\n appealOutcome?: 'approved' | 'denied' | l.UnknownString\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n actionType?: string\n actionId?: number\n}\n\nexport type { SubjectRef }\n\nconst subjectRef = /*#__PURE__*/ l.typedObject<SubjectRef>(\n $nsid,\n 'subjectRef',\n /*#__PURE__*/ l.object({\n appealOutcome: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['approved', 'denied'] }>(),\n ),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n actionType: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n actionId: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n }),\n)\n\nexport { subjectRef }\n\ntype StandingRef = {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | l.UnknownString\n previousStanding?: 'good' | 'warning' | 'atRisk' | l.UnknownString\n}\n\nexport type { StandingRef }\n\nconst standingRef = /*#__PURE__*/ l.typedObject<StandingRef>(\n $nsid,\n 'standingRef',\n /*#__PURE__*/ l.object({\n standing: /*#__PURE__*/ l.string<{\n knownValues: ['good', 'warning', 'atRisk']\n }>(),\n previousStanding: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{ knownValues: ['good', 'warning', 'atRisk'] }>(),\n ),\n }),\n)\n\nexport { standingRef }\n"]}
@@ -14,6 +14,7 @@ export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
14
14
  }>>;
15
15
  export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
16
16
  export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
17
+ /** Get moderation push notification preferences for report outcomes, account actions, and labeling. Returns all three categories, defaulting to enabled for an account without saved preferences. */
17
18
  declare const main: l.Query<"tools.ozone.inbox.getNotificationPreferences", l.ParamsSchema<{
18
19
  readonly did: l.OptionalSchema<l.StringSchema<{
19
20
  readonly format: "did";
@@ -1 +1 @@
1
- {"version":3,"file":"getNotificationPreferences.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,iDAAiD,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;EAElB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,QAAA,MAAM,IAAI;;;;;;eAAiD,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,iDAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"getNotificationPreferences.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,iDAAiD,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;EAElB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,qMAAqM;AACrM,QAAA,MAAM,IAAI;;;;;;eAAiD,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,iDAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -11,6 +11,7 @@ export const $params = /*#__PURE__*/ l.params({
11
11
  export const $output = /*#__PURE__*/ l.jsonPayload({
12
12
  preferences: /*#__PURE__*/ l.ref((() => InboxDefs.notificationPreferences)),
13
13
  });
14
+ /** Get moderation push notification preferences for report outcomes, account actions, and labeling. Returns all three categories, defaulting to enabled for an account without saved preferences. */
14
15
  const main = /*#__PURE__*/ l.query($nsid, $params, $output);
15
16
  export { main };
16
17
  const $lxm = $nsid;
@@ -1 +1 @@
1
- {"version":3,"file":"getNotificationPreferences.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,8CAA8C,CAAA;AAI5D,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;CACzE,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,uBAAuB,CAAQ,CACjD;CACF,CAAC,CAAA;AAQF,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as InboxDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.getNotificationPreferences'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n did: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'did' })),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n preferences: /*#__PURE__*/ l.ref<InboxDefs.NotificationPreferences>(\n (() => InboxDefs.notificationPreferences) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
1
+ {"version":3,"file":"getNotificationPreferences.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/getNotificationPreferences.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,8CAA8C,CAAA;AAI5D,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;CACzE,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,uBAAuB,CAAQ,CACjD;CACF,CAAC,CAAA;AAQF,qMAAqM;AACrM,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as InboxDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.getNotificationPreferences'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n did: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ format: 'did' })),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n preferences: /*#__PURE__*/ l.ref<InboxDefs.NotificationPreferences>(\n (() => InboxDefs.notificationPreferences) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Get moderation push notification preferences for report outcomes, account actions, and labeling. Returns all three categories, defaulting to enabled for an account without saved preferences. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
@@ -6,7 +6,9 @@ export { $nsid };
6
6
  export declare const $params: l.ParamsSchema<{}>;
7
7
  export type $Params = l.InferOutput<typeof $params>;
8
8
  export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
9
- push: l.BooleanSchema;
9
+ reports: l.OptionalSchema<l.BooleanSchema>;
10
+ account: l.OptionalSchema<l.BooleanSchema>;
11
+ labels: l.OptionalSchema<l.BooleanSchema>;
10
12
  }>>;
11
13
  export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
12
14
  export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
@@ -15,8 +17,11 @@ export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
15
17
  }>>;
16
18
  export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
17
19
  export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
20
+ /** Update the authenticated account's moderation push notification preferences. Only provided categories are updated; omitted categories retain their values. At least one category must be provided. Returns all three preferences. These preferences do not hide in-app inbox activity. */
18
21
  declare const main: l.Procedure<"tools.ozone.inbox.putNotificationPreferences", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
19
- push: l.BooleanSchema;
22
+ reports: l.OptionalSchema<l.BooleanSchema>;
23
+ account: l.OptionalSchema<l.BooleanSchema>;
24
+ labels: l.OptionalSchema<l.BooleanSchema>;
20
25
  }>>, l.Payload<"application/json", l.ObjectSchema<{
21
26
  preferences: l.RefSchema<l.Validator<InboxDefs.NotificationPreferences, InboxDefs.NotificationPreferences>>;
22
27
  }>>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"putNotificationPreferences.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,iDAAiD,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM;;GAEjB,CAAA;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AAE/E,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,QAAA,MAAM,IAAI;;;;eAA6D,CAAA;AAEvE,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,iDAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"putNotificationPreferences.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,iDAAiD,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;GAIjB,CAAA;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AAE/E,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,6RAA6R;AAC7R,QAAA,MAAM,IAAI;;;;;;eAA6D,CAAA;AAEvE,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,iDAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -7,11 +7,14 @@ const $nsid = 'tools.ozone.inbox.putNotificationPreferences';
7
7
  export { $nsid };
8
8
  export const $params = /*#__PURE__*/ l.params();
9
9
  export const $input = /*#__PURE__*/ l.jsonPayload({
10
- push: /*#__PURE__*/ l.boolean(),
10
+ reports: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
11
+ account: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
12
+ labels: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
11
13
  });
12
14
  export const $output = /*#__PURE__*/ l.jsonPayload({
13
15
  preferences: /*#__PURE__*/ l.ref((() => InboxDefs.notificationPreferences)),
14
16
  });
17
+ /** Update the authenticated account's moderation push notification preferences. Only provided categories are updated; omitted categories retain their values. At least one category must be provided. Returns all three preferences. These preferences do not hide in-app inbox activity. */
15
18
  const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output);
16
19
  export { main };
17
20
  const $lxm = $nsid;
@@ -1 +1 @@
1
- {"version":3,"file":"putNotificationPreferences.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,8CAA8C,CAAA;AAI5D,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;CAChC,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,uBAAuB,CAAQ,CACjD;CACF,CAAC,CAAA;AAQF,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvE,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as InboxDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.putNotificationPreferences'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n push: /*#__PURE__*/ l.boolean(),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n preferences: /*#__PURE__*/ l.ref<InboxDefs.NotificationPreferences>(\n (() => InboxDefs.notificationPreferences) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
1
+ {"version":3,"file":"putNotificationPreferences.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/putNotificationPreferences.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,8CAA8C,CAAA;AAI5D,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CAC5D,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,uBAAuB,CAAQ,CACjD;CACF,CAAC,CAAA;AAQF,6RAA6R;AAC7R,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvE,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as InboxDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.putNotificationPreferences'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n reports: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n account: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n labels: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n preferences: /*#__PURE__*/ l.ref<InboxDefs.NotificationPreferences>(\n (() => InboxDefs.notificationPreferences) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Update the authenticated account's moderation push notification preferences. Only provided categories are updated; omitted categories retain their values. At least one category must be provided. Returns all three preferences. These preferences do not hide in-app inbox activity. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
@@ -62,9 +62,25 @@ export { queueView };
62
62
  type QueueStats = {
63
63
  $type?: 'tools.ozone.queue.defs#queueStats';
64
64
  /**
65
- * Number of reports in 'open' status
65
+ * Number of unmuted reports currently not closed.
66
66
  */
67
67
  pendingCount?: number;
68
+ /**
69
+ * Unmuted pending reports past their closure target.
70
+ */
71
+ closureTargetOverdueCount?: number;
72
+ /**
73
+ * Reports whose closure meets their closure target.
74
+ */
75
+ closureTargetMetCount?: number;
76
+ /**
77
+ * Reports whose closure exceeds their closure target.
78
+ */
79
+ closureTargetMissedCount?: number;
80
+ /**
81
+ * Percent of reports meeting their closure target.
82
+ */
83
+ closureTargetMetRate?: number;
68
84
  /**
69
85
  * Number of reports in 'closed' status
70
86
  */
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM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IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,cAAc,CAAA;CAC/B,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,CAAA;AAE1B,QAAA,MAAM,UAAU,+FA0Bf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AAErB,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,CAAC,CAAC,SAAS,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAA;IAC3B,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,CAAC,CAAC,cAAc,CAAA;IACzB,KAAK,CAAC,EAAE,CAAC,CAAC,cAAc,CAAA;CACzB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,QAAA,MAAM,cAAc,2GAenB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -33,6 +33,14 @@ export { queueView };
33
33
  const queueStats = /*#__PURE__*/ l.typedObject($nsid, 'queueStats',
34
34
  /*#__PURE__*/ l.object({
35
35
  pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
36
+ closureTargetOverdueCount: /*#__PURE__*/ l.optional(
37
+ /*#__PURE__*/ l.integer({ minimum: 0 })),
38
+ closureTargetMetCount: /*#__PURE__*/ l.optional(
39
+ /*#__PURE__*/ l.integer({ minimum: 0 })),
40
+ closureTargetMissedCount: /*#__PURE__*/ l.optional(
41
+ /*#__PURE__*/ l.integer({ minimum: 0 })),
42
+ closureTargetMetRate: /*#__PURE__*/ l.optional(
43
+ /*#__PURE__*/ l.integer({ minimum: 0, maximum: 100 })),
36
44
  actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
37
45
  escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
38
46
  inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAAO,EAAE,KAAK,EAAE,CAAA;AAwEhB,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC3C,KAAK,EACL,WAAW;AACX,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAC7B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,KAAK;IACnB,aAAa,CAAC,CAAC,CAAC,MAAM,EAElB,CACL,CACF;IACD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAClC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAC3C;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACnC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAChD;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,Q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AC;IACvD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as TeamDefs from '../team/defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype QueueView = {\n $type?: 'tools.ozone.queue.defs#queueView'\n\n /**\n * Queue ID\n */\n id: number\n\n /**\n * Display name of the queue\n */\n name: string\n\n /**\n * Subject types this queue accepts.\n */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | l.UnknownString\n )[]\n\n /**\n * Collection name for record subjects (e.g., 'app.bsky.feed.post')\n */\n collection?: l.NsidString\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n reportTypes?: string[]\n\n /**\n * Optional description of the queue\n */\n description?: string\n\n /**\n * Policy keys recommended when actioning reports in this queue\n */\n recommendedPolicies?: string[]\n\n /**\n * Labels recommended for this queue and used as a fallback when routing label appeals\n */\n recommendedLabels?: string[]\n\n /**\n * DID of moderator who created this queue\n */\n createdBy: l.DidString\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n\n /**\n * Whether this queue is currently active\n */\n enabled: boolean\n\n /**\n * When the queue was deleted, if applicable\n */\n deletedAt?: l.DatetimeString\n\n /**\n * Statistics about this queue\n */\n stats: QueueStats\n}\n\nexport type { QueueView }\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>(\n $nsid,\n 'queueView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n name: /*#__PURE__*/ l.string(),\n subjectTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: ['account', 'record', 'message', 'conversation']\n }>(),\n ),\n ),\n collection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'nsid' }),\n ),\n reportTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n recommendedLabels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n createdBy: /*#__PURE__*/ l.string({ format: 'did' }),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n enabled: /*#__PURE__*/ l.boolean(),\n deletedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n stats: /*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any),\n }),\n)\n\nexport { queueView }\n\ntype QueueStats = {\n $type?: 'tools.ozone.queue.defs#queueStats'\n\n /**\n * Number of reports in 'open' status\n */\n pendingCount?: number\n\n /**\n * Number of reports in 'closed' status\n */\n actionedCount?: number\n\n /**\n * Number of reports in 'escalated' status\n */\n escalatedCount?: number\n\n /**\n * Reports received in this queue in the last 24 hours.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation to close, for reports closed in this period.\n */\n avgHandlingTimeSec?: number\n\n /**\n * When these statistics were last computed\n */\n lastUpdated?: l.DatetimeString\n}\n\nexport type { QueueStats }\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>(\n $nsid,\n 'queueStats',\n /*#__PURE__*/ l.object({\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n lastUpdated: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { queueStats }\n\ntype AssignmentView = {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: l.DidString\n\n /**\n * The moderator assigned to this queue\n */\n moderator?: TeamDefs.Member\n queue: QueueView\n startAt: l.DatetimeString\n endAt?: l.DatetimeString\n}\n\nexport type { AssignmentView }\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>(\n $nsid,\n 'assignmentView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n queue: /*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\n startAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n endAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { assignmentView }\n"]}
1
+ {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAAO,EAAE,KAAK,EAAE,CAAA;AAwEhB,MA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AE,CAAC;IACvD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as TeamDefs from '../team/defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype QueueView = {\n $type?: 'tools.ozone.queue.defs#queueView'\n\n /**\n * Queue ID\n */\n id: number\n\n /**\n * Display name of the queue\n */\n name: string\n\n /**\n * Subject types this queue accepts.\n */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | l.UnknownString\n )[]\n\n /**\n * Collection name for record subjects (e.g., 'app.bsky.feed.post')\n */\n collection?: l.NsidString\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n reportTypes?: string[]\n\n /**\n * Optional description of the queue\n */\n description?: string\n\n /**\n * Policy keys recommended when actioning reports in this queue\n */\n recommendedPolicies?: string[]\n\n /**\n * Labels recommended for this queue and used as a fallback when routing label appeals\n */\n recommendedLabels?: string[]\n\n /**\n * DID of moderator who created this queue\n */\n createdBy: l.DidString\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n\n /**\n * Whether this queue is currently active\n */\n enabled: boolean\n\n /**\n * When the queue was deleted, if applicable\n */\n deletedAt?: l.DatetimeString\n\n /**\n * Statistics about this queue\n */\n stats: QueueStats\n}\n\nexport type { QueueView }\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>(\n $nsid,\n 'queueView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n name: /*#__PURE__*/ l.string(),\n subjectTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: ['account', 'record', 'message', 'conversation']\n }>(),\n ),\n ),\n collection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'nsid' }),\n ),\n reportTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n recommendedLabels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n createdBy: /*#__PURE__*/ l.string({ format: 'did' }),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n enabled: /*#__PURE__*/ l.boolean(),\n deletedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n stats: /*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any),\n }),\n)\n\nexport { queueView }\n\ntype QueueStats = {\n $type?: 'tools.ozone.queue.defs#queueStats'\n\n /**\n * Number of unmuted reports currently not closed.\n */\n pendingCount?: number\n\n /**\n * Unmuted pending reports past their closure target.\n */\n closureTargetOverdueCount?: number\n\n /**\n * Reports whose closure meets their closure target.\n */\n closureTargetMetCount?: number\n\n /**\n * Reports whose closure exceeds their closure target.\n */\n closureTargetMissedCount?: number\n\n /**\n * Percent of reports meeting their closure target.\n */\n closureTargetMetRate?: number\n\n /**\n * Number of reports in 'closed' status\n */\n actionedCount?: number\n\n /**\n * Number of reports in 'escalated' status\n */\n escalatedCount?: number\n\n /**\n * Reports received in this queue in the last 24 hours.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation to close, for reports closed in this period.\n */\n avgHandlingTimeSec?: number\n\n /**\n * When these statistics were last computed\n */\n lastUpdated?: l.DatetimeString\n}\n\nexport type { QueueStats }\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>(\n $nsid,\n 'queueStats',\n /*#__PURE__*/ l.object({\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n closureTargetOverdueCount: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.integer({ minimum: 0 }),\n ),\n closureTargetMetCount: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.integer({ minimum: 0 }),\n ),\n closureTargetMissedCount: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.integer({ minimum: 0 }),\n ),\n closureTargetMetRate: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.integer({ minimum: 0, maximum: 100 }),\n ),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n lastUpdated: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { queueStats }\n\ntype AssignmentView = {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: l.DidString\n\n /**\n * The moderator assigned to this queue\n */\n moderator?: TeamDefs.Member\n queue: QueueView\n startAt: l.DatetimeString\n endAt?: l.DatetimeString\n}\n\nexport type { AssignmentView }\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>(\n $nsid,\n 'assignmentView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n queue: /*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\n startAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n endAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { assignmentView }\n"]}
@@ -374,6 +374,26 @@ type ReportView = {
374
374
  * Type of report
375
375
  */
376
376
  reportType: ModerationDefs$$0.ReasonType;
377
+ /**
378
+ * Priority level assigned to the report.
379
+ */
380
+ priorityLevel?: string;
381
+ /**
382
+ * Report priority score. Higher scores have higher priority.
383
+ */
384
+ priorityScore?: number;
385
+ /**
386
+ * Target resolution duration in minutes.
387
+ */
388
+ priorityTargetMinutes?: number;
389
+ /**
390
+ * Time from report creation to its last closure.
391
+ */
392
+ resolutionTimeSec?: number;
393
+ /**
394
+ * Whether the current closure occurred within the report's snapshotted target.
395
+ */
396
+ priorityTargetMet?: boolean;
377
397
  /**
378
398
  * DID of the user who made the report
379
399
  */
@@ -578,9 +598,25 @@ export { reportActivityView };
578
598
  type LiveStats = {
579
599
  $type?: 'tools.ozone.report.defs#liveStats';
580
600
  /**
581
- * Number of reports currently not closed.
601
+ * Number of unmuted reports currently not closed.
582
602
  */
583
603
  pendingCount?: number;
604
+ /**
605
+ * Unmuted pending reports past their closure target.
606
+ */
607
+ closureTargetOverdueCount?: number;
608
+ /**
609
+ * Reports whose closure meets their closure target.
610
+ */
611
+ closureTargetMetCount?: number;
612
+ /**
613
+ * Reports whose closure exceeds their closure target.
614
+ */
615
+ closureTargetMissedCount?: number;
616
+ /**
617
+ * Percent of reports meeting their closure target.
618
+ */
619
+ closureTargetMetRate?: number;
584
620
  /**
585
621
  * Number of close transitions.
586
622
  */
@@ -662,9 +698,25 @@ type HistoricalStats = {
662
698
  */
663
699
  computedAt?: l.DatetimeString;
664
700
  /**
665
- * Number of reports not closed at time of computation.
701
+ * Number of unmuted reports not closed at the end of this UTC day, or at computation time for the current day.
666
702
  */
667
703
  pendingCount?: number;
704
+ /**
705
+ * Unmuted pending reports past their closure target at the snapshot time.
706
+ */
707
+ closureTargetOverdueCount?: number;
708
+ /**
709
+ * Reports whose closure meets their closure target.
710
+ */
711
+ closureTargetMetCount?: number;
712
+ /**
713
+ * Reports whose closure exceeds their closure target.
714
+ */
715
+ closureTargetMissedCount?: number;
716
+ /**
717
+ * Percent of reports meeting their closure target.
718
+ */
719
+ closureTargetMetRate?: number;
668
720
  /**
669
721
  * Number of close transitions during this day.
670
722
  */