@atproto/api 0.21.0 → 0.23.0

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 (47) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/client/index.d.ts +12 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +22 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +1658 -22
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +890 -11
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/feed/defs.d.ts +4 -0
  11. package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
  13. package/dist/client/types/app/bsky/feed/getListFeed.d.ts +4 -0
  14. package/dist/client/types/app/bsky/feed/getListFeed.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/feed/getListFeed.js.map +1 -1
  16. package/dist/client/types/app/bsky/feed/getQuotes.d.ts +2 -0
  17. package/dist/client/types/app/bsky/feed/getQuotes.d.ts.map +1 -1
  18. package/dist/client/types/app/bsky/feed/getQuotes.js.map +1 -1
  19. package/dist/client/types/app/bsky/feed/getTimeline.d.ts +4 -0
  20. package/dist/client/types/app/bsky/feed/getTimeline.d.ts.map +1 -1
  21. package/dist/client/types/app/bsky/feed/getTimeline.js.map +1 -1
  22. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts +234 -0
  23. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -0
  24. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js +189 -0
  25. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js.map +1 -0
  26. package/dist/client/types/tools/ozone/inbox/appealActionedSubject.d.ts +65 -0
  27. package/dist/client/types/tools/ozone/inbox/appealActionedSubject.d.ts.map +1 -0
  28. package/dist/client/types/tools/ozone/inbox/appealActionedSubject.js +65 -0
  29. package/dist/client/types/tools/ozone/inbox/appealActionedSubject.js.map +1 -0
  30. package/dist/client/types/tools/ozone/inbox/defs.d.ts +68 -0
  31. package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -0
  32. package/dist/client/types/tools/ozone/inbox/defs.js +38 -0
  33. package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -0
  34. package/dist/client/types/tools/ozone/queue/createQueue.d.ts +2 -0
  35. package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -1
  36. package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -1
  37. package/dist/client/types/tools/ozone/queue/defs.d.ts +2 -0
  38. package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -1
  39. package/dist/client/types/tools/ozone/queue/defs.js.map +1 -1
  40. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +5 -0
  41. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -1
  42. package/dist/client/types/tools/ozone/queue/updateQueue.js +7 -0
  43. package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -1
  44. package/dist/client/types/tools/ozone/report/defs.d.ts +49 -9
  45. package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
  46. package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
  47. package/package.json +7 -7
@@ -0,0 +1,189 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'app.bsky.notification.getGroupedNotifications';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ const hashGroup = 'group';
15
+ export function isGroup(v) {
16
+ return is$typed(v, id, hashGroup);
17
+ }
18
+ export function validateGroup(v) {
19
+ return validate(v, id, hashGroup);
20
+ }
21
+ const hashLikeGroup = 'likeGroup';
22
+ export function isLikeGroup(v) {
23
+ return is$typed(v, id, hashLikeGroup);
24
+ }
25
+ export function validateLikeGroup(v) {
26
+ return validate(v, id, hashLikeGroup);
27
+ }
28
+ const hashLikeItem = 'likeItem';
29
+ export function isLikeItem(v) {
30
+ return is$typed(v, id, hashLikeItem);
31
+ }
32
+ export function validateLikeItem(v) {
33
+ return validate(v, id, hashLikeItem);
34
+ }
35
+ const hashMultiPostLikeGroup = 'multiPostLikeGroup';
36
+ export function isMultiPostLikeGroup(v) {
37
+ return is$typed(v, id, hashMultiPostLikeGroup);
38
+ }
39
+ export function validateMultiPostLikeGroup(v) {
40
+ return validate(v, id, hashMultiPostLikeGroup);
41
+ }
42
+ const hashMultiPostLikeItem = 'multiPostLikeItem';
43
+ export function isMultiPostLikeItem(v) {
44
+ return is$typed(v, id, hashMultiPostLikeItem);
45
+ }
46
+ export function validateMultiPostLikeItem(v) {
47
+ return validate(v, id, hashMultiPostLikeItem);
48
+ }
49
+ const hashRepostGroup = 'repostGroup';
50
+ export function isRepostGroup(v) {
51
+ return is$typed(v, id, hashRepostGroup);
52
+ }
53
+ export function validateRepostGroup(v) {
54
+ return validate(v, id, hashRepostGroup);
55
+ }
56
+ const hashRepostItem = 'repostItem';
57
+ export function isRepostItem(v) {
58
+ return is$typed(v, id, hashRepostItem);
59
+ }
60
+ export function validateRepostItem(v) {
61
+ return validate(v, id, hashRepostItem);
62
+ }
63
+ const hashLikeViaRepostGroup = 'likeViaRepostGroup';
64
+ export function isLikeViaRepostGroup(v) {
65
+ return is$typed(v, id, hashLikeViaRepostGroup);
66
+ }
67
+ export function validateLikeViaRepostGroup(v) {
68
+ return validate(v, id, hashLikeViaRepostGroup);
69
+ }
70
+ const hashLikeViaRepostItem = 'likeViaRepostItem';
71
+ export function isLikeViaRepostItem(v) {
72
+ return is$typed(v, id, hashLikeViaRepostItem);
73
+ }
74
+ export function validateLikeViaRepostItem(v) {
75
+ return validate(v, id, hashLikeViaRepostItem);
76
+ }
77
+ const hashRepostViaRepostGroup = 'repostViaRepostGroup';
78
+ export function isRepostViaRepostGroup(v) {
79
+ return is$typed(v, id, hashRepostViaRepostGroup);
80
+ }
81
+ export function validateRepostViaRepostGroup(v) {
82
+ return validate(v, id, hashRepostViaRepostGroup);
83
+ }
84
+ const hashRepostViaRepostItem = 'repostViaRepostItem';
85
+ export function isRepostViaRepostItem(v) {
86
+ return is$typed(v, id, hashRepostViaRepostItem);
87
+ }
88
+ export function validateRepostViaRepostItem(v) {
89
+ return validate(v, id, hashRepostViaRepostItem);
90
+ }
91
+ const hashFollowGroup = 'followGroup';
92
+ export function isFollowGroup(v) {
93
+ return is$typed(v, id, hashFollowGroup);
94
+ }
95
+ export function validateFollowGroup(v) {
96
+ return validate(v, id, hashFollowGroup);
97
+ }
98
+ const hashFollowItem = 'followItem';
99
+ export function isFollowItem(v) {
100
+ return is$typed(v, id, hashFollowItem);
101
+ }
102
+ export function validateFollowItem(v) {
103
+ return validate(v, id, hashFollowItem);
104
+ }
105
+ const hashSubscribedPostGroup = 'subscribedPostGroup';
106
+ export function isSubscribedPostGroup(v) {
107
+ return is$typed(v, id, hashSubscribedPostGroup);
108
+ }
109
+ export function validateSubscribedPostGroup(v) {
110
+ return validate(v, id, hashSubscribedPostGroup);
111
+ }
112
+ const hashSubscribedPostItem = 'subscribedPostItem';
113
+ export function isSubscribedPostItem(v) {
114
+ return is$typed(v, id, hashSubscribedPostItem);
115
+ }
116
+ export function validateSubscribedPostItem(v) {
117
+ return validate(v, id, hashSubscribedPostItem);
118
+ }
119
+ const hashGeneratorLikeGroup = 'generatorLikeGroup';
120
+ export function isGeneratorLikeGroup(v) {
121
+ return is$typed(v, id, hashGeneratorLikeGroup);
122
+ }
123
+ export function validateGeneratorLikeGroup(v) {
124
+ return validate(v, id, hashGeneratorLikeGroup);
125
+ }
126
+ const hashGeneratorLikeItem = 'generatorLikeItem';
127
+ export function isGeneratorLikeItem(v) {
128
+ return is$typed(v, id, hashGeneratorLikeItem);
129
+ }
130
+ export function validateGeneratorLikeItem(v) {
131
+ return validate(v, id, hashGeneratorLikeItem);
132
+ }
133
+ const hashReplyNotification = 'replyNotification';
134
+ export function isReplyNotification(v) {
135
+ return is$typed(v, id, hashReplyNotification);
136
+ }
137
+ export function validateReplyNotification(v) {
138
+ return validate(v, id, hashReplyNotification);
139
+ }
140
+ const hashQuoteNotification = 'quoteNotification';
141
+ export function isQuoteNotification(v) {
142
+ return is$typed(v, id, hashQuoteNotification);
143
+ }
144
+ export function validateQuoteNotification(v) {
145
+ return validate(v, id, hashQuoteNotification);
146
+ }
147
+ const hashMentionNotification = 'mentionNotification';
148
+ export function isMentionNotification(v) {
149
+ return is$typed(v, id, hashMentionNotification);
150
+ }
151
+ export function validateMentionNotification(v) {
152
+ return validate(v, id, hashMentionNotification);
153
+ }
154
+ const hashFollowBackNotification = 'followBackNotification';
155
+ export function isFollowBackNotification(v) {
156
+ return is$typed(v, id, hashFollowBackNotification);
157
+ }
158
+ export function validateFollowBackNotification(v) {
159
+ return validate(v, id, hashFollowBackNotification);
160
+ }
161
+ const hashVerifiedNotification = 'verifiedNotification';
162
+ export function isVerifiedNotification(v) {
163
+ return is$typed(v, id, hashVerifiedNotification);
164
+ }
165
+ export function validateVerifiedNotification(v) {
166
+ return validate(v, id, hashVerifiedNotification);
167
+ }
168
+ const hashUnverifiedNotification = 'unverifiedNotification';
169
+ export function isUnverifiedNotification(v) {
170
+ return is$typed(v, id, hashUnverifiedNotification);
171
+ }
172
+ export function validateUnverifiedNotification(v) {
173
+ return validate(v, id, hashUnverifiedNotification);
174
+ }
175
+ const hashStarterPackJoinedNotification = 'starterPackJoinedNotification';
176
+ export function isStarterPackJoinedNotification(v) {
177
+ return is$typed(v, id, hashStarterPackJoinedNotification);
178
+ }
179
+ export function validateStarterPackJoinedNotification(v) {
180
+ return validate(v, id, hashStarterPackJoinedNotification);
181
+ }
182
+ const hashContactMatchNotification = 'contactMatchNotification';
183
+ export function isContactMatchNotification(v) {
184
+ return is$typed(v, id, hashContactMatchNotification);
185
+ }
186
+ export function validateContactMatchNotification(v) {
187
+ return validate(v, id, hashContactMatchNotification);
188
+ }
189
+ //# sourceMappingURL=getGroupedNotifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGroupedNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/notification/getGroupedNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+CAA+C,CAAA;AA6C1D,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AA6BD,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,MAAM,UAAU,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAA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C3D,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,iCAAiC,CAClC,CAAA;AACH,CAAC;AAQD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyGraphDefs from '../graph/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.notification.getGroupedNotifications'\n\nexport type QueryParams = {\n /** Which notification feed to return. Grouping behavior varies by feed: notifications about follows might be grouped in 'all' and ungrouped (or rather, in single-item groups) in 'followers'. */\n feed?:\n | 'all'\n | 'people-i-follow'\n | 'conversations'\n | 'followers'\n | 'activity'\n | (string & {})\n /** Maximum number of groups to return. */\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n /** Notification groups or individual notifications, newest first. Clients should ignore kinds they do not recognize. Grouping behavior depends on the kind and selected feed. */\n groups: Group[]\n seenAt?: string\n /** Reusable views referenced by notifications. Views shared across notifications appear once to avoid duplication. Each group contributes only its first 10 of each related view to this array. Ex: for a group containing likes in a post, we might have a large number of likeItem (e.g., 50) in a group, but only the profile views for the newest 10 items will be included here. */\n relatedViews?: (\n | $Typed<AppBskyActorDefs.ProfileViewDetailed>\n | $Typed<AppBskyFeedDefs.BlockedPost>\n | $Typed<AppBskyFeedDefs.GeneratorView>\n | $Typed<AppBskyFeedDefs.NotFoundPost>\n | $Typed<AppBskyFeedDefs.PostView>\n | $Typed<AppBskyGraphDefs.StarterPackView>\n | { $type: string }\n )[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\n/** Contains common metadata and kind-specific data for a notification group or individual notification. */\nexport interface Group {\n $type?: 'app.bsky.notification.getGroupedNotifications#group'\n id: string\n isRead: boolean\n indexedAt: string\n count: number\n kind:\n | $Typed<LikeGroup>\n | $Typed<MultiPostLikeGroup>\n | $Typed<RepostGroup>\n | $Typed<LikeViaRepostGroup>\n | $Typed<RepostViaRepostGroup>\n | $Typed<FollowGroup>\n | $Typed<SubscribedPostGroup>\n | $Typed<GeneratorLikeGroup>\n | $Typed<ReplyNotification>\n | $Typed<QuoteNotification>\n | $Typed<MentionNotification>\n | $Typed<FollowBackNotification>\n | $Typed<VerifiedNotification>\n | $Typed<UnverifiedNotification>\n | $Typed<StarterPackJoinedNotification>\n | $Typed<ContactMatchNotification>\n | { $type: string }\n}\n\nconst hashGroup = 'group'\n\nexport function isGroup<V>(v: V) {\n return is$typed(v, id, hashGroup)\n}\n\nexport function validateGroup<V>(v: V) {\n return validate<Group & V>(v, id, hashGroup)\n}\n\n/** Group of likes by different actors on the same post. */\nexport interface LikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeGroup'\n post: string\n items: LikeItem[]\n}\n\nconst hashLikeGroup = 'likeGroup'\n\nexport function isLikeGroup<V>(v: V) {\n return is$typed(v, id, hashLikeGroup)\n}\n\nexport function validateLikeGroup<V>(v: V) {\n return validate<LikeGroup & V>(v, id, hashLikeGroup)\n}\n\n/** One actor who liked the group's post. */\nexport interface LikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeItem'\n actor: string\n}\n\nconst hashLikeItem = 'likeItem'\n\nexport function isLikeItem<V>(v: V) {\n return is$typed(v, id, hashLikeItem)\n}\n\nexport function validateLikeItem<V>(v: V) {\n return validate<LikeItem & V>(v, id, hashLikeItem)\n}\n\n/** Group of likes by the same actor on different posts. */\nexport interface MultiPostLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeGroup'\n actor: string\n items: MultiPostLikeItem[]\n}\n\nconst hashMultiPostLikeGroup = 'multiPostLikeGroup'\n\nexport function isMultiPostLikeGroup<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeGroup)\n}\n\nexport function validateMultiPostLikeGroup<V>(v: V) {\n return validate<MultiPostLikeGroup & V>(v, id, hashMultiPostLikeGroup)\n}\n\n/** One post which was liked by the group's actor. */\nexport interface MultiPostLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#multiPostLikeItem'\n post: string\n}\n\nconst hashMultiPostLikeItem = 'multiPostLikeItem'\n\nexport function isMultiPostLikeItem<V>(v: V) {\n return is$typed(v, id, hashMultiPostLikeItem)\n}\n\nexport function validateMultiPostLikeItem<V>(v: V) {\n return validate<MultiPostLikeItem & V>(v, id, hashMultiPostLikeItem)\n}\n\n/** Group of reposts by different actors of the same post. */\nexport interface RepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostGroup'\n post: string\n items: RepostItem[]\n}\n\nconst hashRepostGroup = 'repostGroup'\n\nexport function isRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostGroup)\n}\n\nexport function validateRepostGroup<V>(v: V) {\n return validate<RepostGroup & V>(v, id, hashRepostGroup)\n}\n\n/** One actor who reposted the group's post. */\nexport interface RepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostItem'\n actor: string\n}\n\nconst hashRepostItem = 'repostItem'\n\nexport function isRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostItem)\n}\n\nexport function validateRepostItem<V>(v: V) {\n return validate<RepostItem & V>(v, id, hashRepostItem)\n}\n\n/** Group of likes by different actors on the same post via the requesting account's repost. */\nexport interface LikeViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostGroup'\n post: string\n viaRepost: string\n items: LikeViaRepostItem[]\n}\n\nconst hashLikeViaRepostGroup = 'likeViaRepostGroup'\n\nexport function isLikeViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostGroup)\n}\n\nexport function validateLikeViaRepostGroup<V>(v: V) {\n return validate<LikeViaRepostGroup & V>(v, id, hashLikeViaRepostGroup)\n}\n\n/** One actor who liked the group's post via the requesting account's repost. */\nexport interface LikeViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#likeViaRepostItem'\n actor: string\n}\n\nconst hashLikeViaRepostItem = 'likeViaRepostItem'\n\nexport function isLikeViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashLikeViaRepostItem)\n}\n\nexport function validateLikeViaRepostItem<V>(v: V) {\n return validate<LikeViaRepostItem & V>(v, id, hashLikeViaRepostItem)\n}\n\n/** Group of reposts by different actors of the same post via the requesting account's repost. */\nexport interface RepostViaRepostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostGroup'\n post: string\n viaRepost: string\n items: RepostViaRepostItem[]\n}\n\nconst hashRepostViaRepostGroup = 'repostViaRepostGroup'\n\nexport function isRepostViaRepostGroup<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostGroup)\n}\n\nexport function validateRepostViaRepostGroup<V>(v: V) {\n return validate<RepostViaRepostGroup & V>(v, id, hashRepostViaRepostGroup)\n}\n\n/** One actor who reposted the group's post via the requesting account's repost. */\nexport interface RepostViaRepostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#repostViaRepostItem'\n actor: string\n}\n\nconst hashRepostViaRepostItem = 'repostViaRepostItem'\n\nexport function isRepostViaRepostItem<V>(v: V) {\n return is$typed(v, id, hashRepostViaRepostItem)\n}\n\nexport function validateRepostViaRepostItem<V>(v: V) {\n return validate<RepostViaRepostItem & V>(v, id, hashRepostViaRepostItem)\n}\n\n/** Group of actors who followed the requesting account. */\nexport interface FollowGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#followGroup'\n items: FollowItem[]\n}\n\nconst hashFollowGroup = 'followGroup'\n\nexport function isFollowGroup<V>(v: V) {\n return is$typed(v, id, hashFollowGroup)\n}\n\nexport function validateFollowGroup<V>(v: V) {\n return validate<FollowGroup & V>(v, id, hashFollowGroup)\n}\n\n/** An actor who followed the requesting account, possibly via a starter pack. */\nexport interface FollowItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#followItem'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowItem = 'followItem'\n\nexport function isFollowItem<V>(v: V) {\n return is$typed(v, id, hashFollowItem)\n}\n\nexport function validateFollowItem<V>(v: V) {\n return validate<FollowItem & V>(v, id, hashFollowItem)\n}\n\n/** Group of new posts by actors the requesting account subscribes to. */\nexport interface SubscribedPostGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostGroup'\n items: SubscribedPostItem[]\n}\n\nconst hashSubscribedPostGroup = 'subscribedPostGroup'\n\nexport function isSubscribedPostGroup<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostGroup)\n}\n\nexport function validateSubscribedPostGroup<V>(v: V) {\n return validate<SubscribedPostGroup & V>(v, id, hashSubscribedPostGroup)\n}\n\n/** One new post by an actor the requesting account subscribes to. */\nexport interface SubscribedPostItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#subscribedPostItem'\n actor: string\n post: string\n}\n\nconst hashSubscribedPostItem = 'subscribedPostItem'\n\nexport function isSubscribedPostItem<V>(v: V) {\n return is$typed(v, id, hashSubscribedPostItem)\n}\n\nexport function validateSubscribedPostItem<V>(v: V) {\n return validate<SubscribedPostItem & V>(v, id, hashSubscribedPostItem)\n}\n\n/** Group of likes by different actors on the same feed generator. */\nexport interface GeneratorLikeGroup {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeGroup'\n generator: string\n items: GeneratorLikeItem[]\n}\n\nconst hashGeneratorLikeGroup = 'generatorLikeGroup'\n\nexport function isGeneratorLikeGroup<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeGroup)\n}\n\nexport function validateGeneratorLikeGroup<V>(v: V) {\n return validate<GeneratorLikeGroup & V>(v, id, hashGeneratorLikeGroup)\n}\n\n/** One actor who liked the feed generator in the group. */\nexport interface GeneratorLikeItem {\n $type?: 'app.bsky.notification.getGroupedNotifications#generatorLikeItem'\n actor: string\n}\n\nconst hashGeneratorLikeItem = 'generatorLikeItem'\n\nexport function isGeneratorLikeItem<V>(v: V) {\n return is$typed(v, id, hashGeneratorLikeItem)\n}\n\nexport function validateGeneratorLikeItem<V>(v: V) {\n return validate<GeneratorLikeItem & V>(v, id, hashGeneratorLikeItem)\n}\n\n/** A reply to a post by the requesting account or to a thread they are participating in. */\nexport interface ReplyNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#replyNotification'\n post: string\n parent: string\n}\n\nconst hashReplyNotification = 'replyNotification'\n\nexport function isReplyNotification<V>(v: V) {\n return is$typed(v, id, hashReplyNotification)\n}\n\nexport function validateReplyNotification<V>(v: V) {\n return validate<ReplyNotification & V>(v, id, hashReplyNotification)\n}\n\n/** A post quoting a post by the requesting account. */\nexport interface QuoteNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#quoteNotification'\n post: string\n parent?: string\n}\n\nconst hashQuoteNotification = 'quoteNotification'\n\nexport function isQuoteNotification<V>(v: V) {\n return is$typed(v, id, hashQuoteNotification)\n}\n\nexport function validateQuoteNotification<V>(v: V) {\n return validate<QuoteNotification & V>(v, id, hashQuoteNotification)\n}\n\n/** A post mentioning the requesting account. */\nexport interface MentionNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#mentionNotification'\n post: string\n parent?: string\n}\n\nconst hashMentionNotification = 'mentionNotification'\n\nexport function isMentionNotification<V>(v: V) {\n return is$typed(v, id, hashMentionNotification)\n}\n\nexport function validateMentionNotification<V>(v: V) {\n return validate<MentionNotification & V>(v, id, hashMentionNotification)\n}\n\n/** An actor followed the requesting account back, possibly via a starter pack. */\nexport interface FollowBackNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#followBackNotification'\n actor: string\n starterPack?: string\n}\n\nconst hashFollowBackNotification = 'followBackNotification'\n\nexport function isFollowBackNotification<V>(v: V) {\n return is$typed(v, id, hashFollowBackNotification)\n}\n\nexport function validateFollowBackNotification<V>(v: V) {\n return validate<FollowBackNotification & V>(v, id, hashFollowBackNotification)\n}\n\n/** An actor verified the requesting account. */\nexport interface VerifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#verifiedNotification'\n actor: string\n}\n\nconst hashVerifiedNotification = 'verifiedNotification'\n\nexport function isVerifiedNotification<V>(v: V) {\n return is$typed(v, id, hashVerifiedNotification)\n}\n\nexport function validateVerifiedNotification<V>(v: V) {\n return validate<VerifiedNotification & V>(v, id, hashVerifiedNotification)\n}\n\n/** A verification of the requesting account was removed. */\nexport interface UnverifiedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#unverifiedNotification'\n actor: string\n}\n\nconst hashUnverifiedNotification = 'unverifiedNotification'\n\nexport function isUnverifiedNotification<V>(v: V) {\n return is$typed(v, id, hashUnverifiedNotification)\n}\n\nexport function validateUnverifiedNotification<V>(v: V) {\n return validate<UnverifiedNotification & V>(v, id, hashUnverifiedNotification)\n}\n\n/** An actor joined Bluesky via a starter pack created by the requesting account. */\nexport interface StarterPackJoinedNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#starterPackJoinedNotification'\n actor: string\n starterPack: string\n}\n\nconst hashStarterPackJoinedNotification = 'starterPackJoinedNotification'\n\nexport function isStarterPackJoinedNotification<V>(v: V) {\n return is$typed(v, id, hashStarterPackJoinedNotification)\n}\n\nexport function validateStarterPackJoinedNotification<V>(v: V) {\n return validate<StarterPackJoinedNotification & V>(\n v,\n id,\n hashStarterPackJoinedNotification,\n )\n}\n\n/** A contact of the requesting account joined Bluesky. */\nexport interface ContactMatchNotification {\n $type?: 'app.bsky.notification.getGroupedNotifications#contactMatchNotification'\n actor: string\n}\n\nconst hashContactMatchNotification = 'contactMatchNotification'\n\nexport function isContactMatchNotification<V>(v: V) {\n return is$typed(v, id, hashContactMatchNotification)\n}\n\nexport function validateContactMatchNotification<V>(v: V) {\n return validate<ContactMatchNotification & V>(\n v,\n id,\n hashContactMatchNotification,\n )\n}\n"]}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util.js';
7
+ import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
8
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
9
+ import type * as ComAtprotoModerationCreateReport from '../../../com/atproto/moderation/createReport.js';
10
+ import type * as ToolsOzoneInboxDefs from './defs.js';
11
+ export type QueryParams = {};
12
+ export interface InputSchema {
13
+ action?: $Typed<ActionRef> | $Typed<LabelRef> | $Typed<TakedownRef>;
14
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
15
+ $type: string;
16
+ };
17
+ /** Optional explanation supplied by the user. */
18
+ reason?: string;
19
+ modTool?: ComAtprotoModerationCreateReport.ModTool;
20
+ }
21
+ export type OutputSchema = ToolsOzoneInboxDefs.SubjectView;
22
+ export interface CallOptions {
23
+ signal?: AbortSignal;
24
+ headers?: HeadersMap;
25
+ qp?: QueryParams;
26
+ encoding?: 'application/json';
27
+ }
28
+ export interface Response {
29
+ success: boolean;
30
+ headers: HeadersMap;
31
+ data: OutputSchema;
32
+ }
33
+ export declare class InvalidAppealSubjectError extends XRPCError {
34
+ constructor(src: XRPCError);
35
+ }
36
+ export declare class AlreadyAppealedError extends XRPCError {
37
+ constructor(src: XRPCError);
38
+ }
39
+ export declare class NotAppealableError extends XRPCError {
40
+ constructor(src: XRPCError);
41
+ }
42
+ export declare class AppealWindowExpiredError extends XRPCError {
43
+ constructor(src: XRPCError);
44
+ }
45
+ export declare function toKnownErr(e: any): any;
46
+ export interface ActionRef {
47
+ $type?: 'tools.ozone.inbox.appealActionedSubject#actionRef';
48
+ /** ID of the moderation action being appealed, available via actions in mod inbox. */
49
+ id: number;
50
+ }
51
+ export declare function isActionRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.appealActionedSubject", "actionRef">;
52
+ export declare function validateActionRef<V>(v: V): ValidationResult<ActionRef & V>;
53
+ export interface LabelRef {
54
+ $type?: 'tools.ozone.inbox.appealActionedSubject#labelRef';
55
+ /** Label being appealed. */
56
+ val: string;
57
+ }
58
+ export declare function isLabelRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.appealActionedSubject", "labelRef">;
59
+ export declare function validateLabelRef<V>(v: V): ValidationResult<LabelRef & V>;
60
+ export interface TakedownRef {
61
+ $type?: 'tools.ozone.inbox.appealActionedSubject#takedownRef';
62
+ }
63
+ export declare function isTakedownRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.appealActionedSubject", "takedownRef">;
64
+ export declare function validateTakedownRef<V>(v: V): ValidationResult<TakedownRef & V>;
65
+ //# sourceMappingURL=appealActionedSubject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appealActionedSubject.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/appealActionedSubject.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5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AAED,qBAAa,wBAAyB,SAAQ,SAAS;IACrD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAWhC;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,mDAAmD,CAAA;IAC3D,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAA;CACX;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8GAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kDAAkD,CAAA;IAC1D,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6GAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,qDAAqD,CAAA;CAC9D;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gHAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.appealActionedSubject';
11
+ export class InvalidAppealSubjectError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export class AlreadyAppealedError extends XRPCError {
17
+ constructor(src) {
18
+ super(src.status, src.error, src.message, src.headers, { cause: src });
19
+ }
20
+ }
21
+ export class NotAppealableError extends XRPCError {
22
+ constructor(src) {
23
+ super(src.status, src.error, src.message, src.headers, { cause: src });
24
+ }
25
+ }
26
+ export class AppealWindowExpiredError extends XRPCError {
27
+ constructor(src) {
28
+ super(src.status, src.error, src.message, src.headers, { cause: src });
29
+ }
30
+ }
31
+ export function toKnownErr(e) {
32
+ if (e instanceof XRPCError) {
33
+ if (e.error === 'InvalidAppealSubject')
34
+ return new InvalidAppealSubjectError(e);
35
+ if (e.error === 'AlreadyAppealed')
36
+ return new AlreadyAppealedError(e);
37
+ if (e.error === 'NotAppealable')
38
+ return new NotAppealableError(e);
39
+ if (e.error === 'AppealWindowExpired')
40
+ return new AppealWindowExpiredError(e);
41
+ }
42
+ return e;
43
+ }
44
+ const hashActionRef = 'actionRef';
45
+ export function isActionRef(v) {
46
+ return is$typed(v, id, hashActionRef);
47
+ }
48
+ export function validateActionRef(v) {
49
+ return validate(v, id, hashActionRef);
50
+ }
51
+ const hashLabelRef = 'labelRef';
52
+ export function isLabelRef(v) {
53
+ return is$typed(v, id, hashLabelRef);
54
+ }
55
+ export function validateLabelRef(v) {
56
+ return validate(v, id, hashLabelRef);
57
+ }
58
+ const hashTakedownRef = 'takedownRef';
59
+ export function isTakedownRef(v) {
60
+ return is$typed(v, id, hashTakedownRef);
61
+ }
62
+ export function validateTakedownRef(v) {
63
+ return validate(v, id, hashTakedownRef);
64
+ }
65
+ //# sourceMappingURL=appealActionedSubject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appealActionedSubject.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/appealActionedSubject.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB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;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoModerationCreateReport from '../../../com/atproto/moderation/createReport.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.appealActionedSubject'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n action?: $Typed<ActionRef> | $Typed<LabelRef> | $Typed<TakedownRef>\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n /** Optional explanation supplied by the user. */\n reason?: string\n modTool?: ComAtprotoModerationCreateReport.ModTool\n}\n\nexport type OutputSchema = ToolsOzoneInboxDefs.SubjectView\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidAppealSubjectError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class AlreadyAppealedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotAppealableError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class AppealWindowExpiredError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidAppealSubject')\n return new InvalidAppealSubjectError(e)\n if (e.error === 'AlreadyAppealed') return new AlreadyAppealedError(e)\n if (e.error === 'NotAppealable') return new NotAppealableError(e)\n if (e.error === 'AppealWindowExpired')\n return new AppealWindowExpiredError(e)\n }\n\n return e\n}\n\nexport interface ActionRef {\n $type?: 'tools.ozone.inbox.appealActionedSubject#actionRef'\n /** ID of the moderation action being appealed, available via actions in mod inbox. */\n id: number\n}\n\nconst hashActionRef = 'actionRef'\n\nexport function isActionRef<V>(v: V) {\n return is$typed(v, id, hashActionRef)\n}\n\nexport function validateActionRef<V>(v: V) {\n return validate<ActionRef & V>(v, id, hashActionRef)\n}\n\nexport interface LabelRef {\n $type?: 'tools.ozone.inbox.appealActionedSubject#labelRef'\n /** Label being appealed. */\n val: string\n}\n\nconst hashLabelRef = 'labelRef'\n\nexport function isLabelRef<V>(v: V) {\n return is$typed(v, id, hashLabelRef)\n}\n\nexport function validateLabelRef<V>(v: V) {\n return validate<LabelRef & V>(v, id, hashLabelRef)\n}\n\nexport interface TakedownRef {\n $type?: 'tools.ozone.inbox.appealActionedSubject#takedownRef'\n}\n\nconst hashTakedownRef = 'takedownRef'\n\nexport function isTakedownRef<V>(v: V) {\n return is$typed(v, id, hashTakedownRef)\n}\n\nexport function validateTakedownRef<V>(v: V) {\n return validate<TakedownRef & V>(v, id, hashTakedownRef)\n}\n"]}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util.js';
6
+ import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
7
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
8
+ /** A subject belonging to the viewer that has moderation actions against it. */
9
+ export interface SubjectView {
10
+ $type?: 'tools.ozone.inbox.defs#subjectView';
11
+ /** DID of the moderation service that took the actions. */
12
+ src: string;
13
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
14
+ $type: string;
15
+ };
16
+ enforcement: EnforcementView;
17
+ appeal?: AppealView;
18
+ availableActions?: ('appeal' | (string & {}))[];
19
+ latestAction?: ActionView;
20
+ actionCount?: number;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ }
24
+ export declare function isSubjectView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "subjectView">;
25
+ export declare function validateSubjectView<V>(v: V): ValidationResult<SubjectView & V>;
26
+ /** The current enforcement state of a subject. */
27
+ export interface EnforcementView {
28
+ $type?: 'tools.ozone.inbox.defs#enforcementView';
29
+ state: 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {});
30
+ scope?: 'network' | 'app' | 'labelOnly' | (string & {});
31
+ expiresAt?: string;
32
+ /** Active label values on the subject, excluding negated and expired labels. */
33
+ labels?: string[];
34
+ }
35
+ export declare function isEnforcementView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "enforcementView">;
36
+ export declare function validateEnforcementView<V>(v: V): ValidationResult<EnforcementView & V>;
37
+ /** The state of the viewer's appeal against the actions on a subject. */
38
+ export interface AppealView {
39
+ $type?: 'tools.ozone.inbox.defs#appealView';
40
+ state: 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {});
41
+ appealedAt?: string;
42
+ /** When the appeal's report was closed. */
43
+ resolvedAt?: string;
44
+ /** Moderator explanation, from the publicNote on the closing activity. Absent if none was written. */
45
+ note?: string;
46
+ appealableUntil?: string;
47
+ }
48
+ export declare function isAppealView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "appealView">;
49
+ export declare function validateAppealView<V>(v: V): ValidationResult<AppealView & V>;
50
+ /** A single moderation action taken against a subject. */
51
+ export interface ActionView {
52
+ $type?: 'tools.ozone.inbox.defs#actionView';
53
+ /** Action ID (moderation event ID). */
54
+ id: number;
55
+ /** Public action type. */
56
+ type: string;
57
+ scope?: 'network' | 'app' | 'labelOnly' | (string & {});
58
+ createdAt: string;
59
+ reversedAt?: string;
60
+ expiresAt?: string;
61
+ /** Label values, for labelApplied/labelRemoved. */
62
+ labels?: string[];
63
+ /** Policies that were applied in this action. */
64
+ policies?: string[];
65
+ }
66
+ export declare function isActionView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "actionView">;
67
+ export declare function validateActionView<V>(v: V): ValidationResult<ActionView & V>;
68
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,UAAU,CAAA;I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E,CAAC,oCAEzC;AAED,0DAA0D;AAC1D,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { BlobRef } from '@atproto/lexicon';
5
+ import { CID } from 'multiformats/cid';
6
+ import { validate as _validate } from '../../../../lexicons.js';
7
+ import { is$typed as _is$typed, } from '../../../../util.js';
8
+ const is$typed = _is$typed, validate = _validate;
9
+ const id = 'tools.ozone.inbox.defs';
10
+ const hashSubjectView = 'subjectView';
11
+ export function isSubjectView(v) {
12
+ return is$typed(v, id, hashSubjectView);
13
+ }
14
+ export function validateSubjectView(v) {
15
+ return validate(v, id, hashSubjectView);
16
+ }
17
+ const hashEnforcementView = 'enforcementView';
18
+ export function isEnforcementView(v) {
19
+ return is$typed(v, id, hashEnforcementView);
20
+ }
21
+ export function validateEnforcementView(v) {
22
+ return validate(v, id, hashEnforcementView);
23
+ }
24
+ const hashAppealView = 'appealView';
25
+ export function isAppealView(v) {
26
+ return is$typed(v, id, hashAppealView);
27
+ }
28
+ export function validateAppealView(v) {
29
+ return validate(v, id, hashAppealView);
30
+ }
31
+ const hashActionView = 'actionView';
32
+ export function isActionView(v) {
33
+ return is$typed(v, id, hashActionView);
34
+ }
35
+ export function validateActionView(v) {
36
+ return validate(v, id, hashActionView);
37
+ }
38
+ //# sourceMappingURL=defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAoBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAaD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAeD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAmBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n /** Moderator explanation, from the publicNote on the closing activity. Absent if none was written. */\n note?: string\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies that were applied in this action. */\n policies?: string[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n"]}
@@ -17,6 +17,8 @@ export interface InputSchema {
17
17
  description?: string;
18
18
  /** Policy keys to recommend when actioning reports in this queue */
19
19
  recommendedPolicies?: string[];
20
+ /** Labels to recommend for this queue and use as fallback appeal routing mappings */
21
+ recommendedLabels?: string[];
20
22
  }
21
23
  export interface OutputSchema {
22
24
  queue: ToolsOzoneQueueDefs.QueueView;
@@ -1 +1 @@
1
- {"version":3,"file":"createQueue.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/createQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,YAAY,CAAC,EAAE,CACb,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAClE,EAAE,CAAA;IACH,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,+BAAgC,SAAQ,SAAS;IAC5D,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAQhC"}
1
+ {"version":3,"file":"createQueue.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/createQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,YAAY,CAAC,EAAE,CACb,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAClE,EAAE,CAAA;IACH,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;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GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,4BAA4B;YAC1C,OAAO,IAAI,+BAA+B,CAAC,CAAC,CAAC,CAAA;QAC/C,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;IACzE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.createQueue'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Display name for the queue (must be unique) */\n name: string\n /** Subject types this queue accepts */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects. Required if subjectTypes includes 'record'. */\n collection?: string\n /** Report reason types (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys to recommend when actioning reports in this queue */\n recommendedPolicies?: string[]\n}\n\nexport interface OutputSchema {\n queue: ToolsOzoneQueueDefs.QueueView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidRecommendedPoliciesError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConflictingQueueError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidRecommendedPolicies')\n return new InvalidRecommendedPoliciesError(e)\n if (e.error === 'ConflictingQueue') return new ConflictingQueueError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"createQueue.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/createQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AAwC1C,MAAM,OAAO,+BAAgC,SAAQ,SAAS;IAC5D,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,4BAA4B;YAC1C,OAAO,IAAI,+BAA+B,CAAC,CAAC,CAAC,CAAA;QAC/C,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;IACzE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.createQueue'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Display name for the queue (must be unique) */\n name: string\n /** Subject types this queue accepts */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects. Required if subjectTypes includes 'record'. */\n collection?: string\n /** Report reason types (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys to recommend when actioning reports in this queue */\n recommendedPolicies?: string[]\n /** Labels to recommend for this queue and use as fallback appeal routing mappings */\n recommendedLabels?: string[]\n}\n\nexport interface OutputSchema {\n queue: ToolsOzoneQueueDefs.QueueView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidRecommendedPoliciesError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConflictingQueueError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidRecommendedPolicies')\n return new InvalidRecommendedPoliciesError(e)\n if (e.error === 'ConflictingQueue') return new ConflictingQueueError(e)\n }\n\n return e\n}\n"]}
@@ -19,6 +19,8 @@ export interface QueueView {
19
19
  description?: string;
20
20
  /** Policy keys recommended when actioning reports in this queue */
21
21
  recommendedPolicies?: string[];
22
+ /** Labels recommended for this queue and used as a fallback when routing label appeals */
23
+ recommendedLabels?: string[];
22
24
  /** DID of moderator who created this queue */
23
25
  createdBy: string;
24
26
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,kBAAkB,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,eAAe;IACf,EAAE,EAAE,MAAM,CAAA;IACV,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,YAAY,CAAC,EAAE,CACb,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAClE,EAAE,CAAA;IACH,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mEAAmE;IACnE,mBAAmB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AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AA+BnC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAoBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAYD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.defs'\n\nexport interface QueueView {\n $type?: 'tools.ozone.queue.defs#queueView'\n /** Queue ID */\n id: number\n /** Display name of the queue */\n name: string\n /** Subject types this queue accepts. */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects (e.g., 'app.bsky.feed.post') */\n collection?: string\n /** Report reason types this queue accepts (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys recommended when actioning reports in this queue */\n recommendedPolicies?: string[]\n /** DID of moderator who created this queue */\n createdBy: string\n createdAt: string\n updatedAt: string\n /** Whether this queue is currently active */\n enabled: boolean\n /** When the queue was deleted, if applicable */\n deletedAt?: string\n stats: QueueStats\n}\n\nconst hashQueueView = 'queueView'\n\nexport function isQueueView<V>(v: V) {\n return is$typed(v, id, hashQueueView)\n}\n\nexport function validateQueueView<V>(v: V) {\n return validate<QueueView & V>(v, id, hashQueueView)\n}\n\nexport interface QueueStats {\n $type?: 'tools.ozone.queue.defs#queueStats'\n /** Number of reports in 'open' status */\n pendingCount?: number\n /** Number of reports in 'closed' status */\n actionedCount?: number\n /** Number of reports in 'escalated' status */\n escalatedCount?: number\n /** Reports received in this queue in the last 24 hours. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */\n actionRate?: number\n /** Average time in seconds from report creation to close, for reports closed in this period. */\n avgHandlingTimeSec?: number\n /** When these statistics were last computed */\n lastUpdated?: string\n}\n\nconst hashQueueStats = 'queueStats'\n\nexport function isQueueStats<V>(v: V) {\n return is$typed(v, id, hashQueueStats)\n}\n\nexport function validateQueueStats<V>(v: V) {\n return validate<QueueStats & V>(v, id, hashQueueStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue: QueueView\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAiCnC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAoBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAYD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.defs'\n\nexport interface QueueView {\n $type?: 'tools.ozone.queue.defs#queueView'\n /** Queue ID */\n id: number\n /** Display name of the queue */\n name: string\n /** Subject types this queue accepts. */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects (e.g., 'app.bsky.feed.post') */\n collection?: string\n /** Report reason types this queue accepts (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys recommended when actioning reports in this queue */\n recommendedPolicies?: string[]\n /** Labels recommended for this queue and used as a fallback when routing label appeals */\n recommendedLabels?: string[]\n /** DID of moderator who created this queue */\n createdBy: string\n createdAt: string\n updatedAt: string\n /** Whether this queue is currently active */\n enabled: boolean\n /** When the queue was deleted, if applicable */\n deletedAt?: string\n stats: QueueStats\n}\n\nconst hashQueueView = 'queueView'\n\nexport function isQueueView<V>(v: V) {\n return is$typed(v, id, hashQueueView)\n}\n\nexport function validateQueueView<V>(v: V) {\n return validate<QueueView & V>(v, id, hashQueueView)\n}\n\nexport interface QueueStats {\n $type?: 'tools.ozone.queue.defs#queueStats'\n /** Number of reports in 'open' status */\n pendingCount?: number\n /** Number of reports in 'closed' status */\n actionedCount?: number\n /** Number of reports in 'escalated' status */\n escalatedCount?: number\n /** Reports received in this queue in the last 24 hours. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */\n actionRate?: number\n /** Average time in seconds from report creation to close, for reports closed in this period. */\n avgHandlingTimeSec?: number\n /** When these statistics were last computed */\n lastUpdated?: string\n}\n\nconst hashQueueStats = 'queueStats'\n\nexport function isQueueStats<V>(v: V) {\n return is$typed(v, id, hashQueueStats)\n}\n\nexport function validateQueueStats<V>(v: V) {\n return validate<QueueStats & V>(v, id, hashQueueStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue: QueueView\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
@@ -15,6 +15,8 @@ export interface InputSchema {
15
15
  description?: string;
16
16
  /** Policy keys to recommend when actioning reports in this queue */
17
17
  recommendedPolicies?: string[];
18
+ /** Labels to recommend for this queue and use as fallback appeal routing mappings */
19
+ recommendedLabels?: string[];
18
20
  }
19
21
  export interface OutputSchema {
20
22
  queue: ToolsOzoneQueueDefs.QueueView;
@@ -33,5 +35,8 @@ export interface Response {
33
35
  export declare class InvalidRecommendedPoliciesError extends XRPCError {
34
36
  constructor(src: XRPCError);
35
37
  }
38
+ export declare class ConflictingQueueError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
36
41
  export declare function toKnownErr(e: any): any;
37
42
  //# sourceMappingURL=updateQueue.d.ts.map