@atproto/api 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -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 +25 -5
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +456 -0
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +262 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/graph/getLists.d.ts +2 -0
  11. package/dist/client/types/app/bsky/graph/getLists.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/graph/getLists.js.map +1 -1
  13. package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts +38 -0
  14. package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts.map +1 -0
  15. package/dist/client/types/app/bsky/graph/getListsWithMembership.js +20 -0
  16. package/dist/client/types/app/bsky/graph/getListsWithMembership.js.map +1 -0
  17. package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts +36 -0
  18. package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts.map +1 -0
  19. package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js +20 -0
  20. package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js.map +1 -0
  21. package/dist/client/types/tools/ozone/moderation/defs.d.ts +6 -0
  22. package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  23. package/dist/client/types/tools/ozone/moderation/defs.js +7 -1
  24. package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
  25. package/dist/client/types/tools/ozone/moderation/getAccountTimeline.d.ts +41 -0
  26. package/dist/client/types/tools/ozone/moderation/getAccountTimeline.d.ts.map +1 -0
  27. package/dist/client/types/tools/ozone/moderation/getAccountTimeline.js +44 -0
  28. package/dist/client/types/tools/ozone/moderation/getAccountTimeline.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/client/index.ts +52 -0
  31. package/src/client/lexicons.ts +274 -0
  32. package/src/client/types/app/bsky/graph/getLists.ts +2 -0
  33. package/src/client/types/app/bsky/graph/getListsWithMembership.ts +64 -0
  34. package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +66 -0
  35. package/src/client/types/tools/ozone/moderation/defs.ts +7 -0
  36. package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +112 -0
  37. package/tsconfig.build.tsbuildinfo +1 -1
@@ -8958,6 +8958,15 @@ export const schemaDict = {
8958
8958
  cursor: {
8959
8959
  type: 'string',
8960
8960
  },
8961
+ purposes: {
8962
+ type: 'array',
8963
+ description:
8964
+ 'Optional filter by list purpose. If not specified, all supported types are returned.',
8965
+ items: {
8966
+ type: 'string',
8967
+ knownValues: ['modlist', 'curatelist'],
8968
+ },
8969
+ },
8961
8970
  },
8962
8971
  },
8963
8972
  output: {
@@ -8982,6 +8991,81 @@ export const schemaDict = {
8982
8991
  },
8983
8992
  },
8984
8993
  },
8994
+ AppBskyGraphGetListsWithMembership: {
8995
+ lexicon: 1,
8996
+ id: 'app.bsky.graph.getListsWithMembership',
8997
+ defs: {
8998
+ main: {
8999
+ type: 'query',
9000
+ description:
9001
+ 'Enumerates the lists created by the session user, and includes membership information about `actor` in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.',
9002
+ parameters: {
9003
+ type: 'params',
9004
+ required: ['actor'],
9005
+ properties: {
9006
+ actor: {
9007
+ type: 'string',
9008
+ format: 'at-identifier',
9009
+ description: 'The account (actor) to check for membership.',
9010
+ },
9011
+ limit: {
9012
+ type: 'integer',
9013
+ minimum: 1,
9014
+ maximum: 100,
9015
+ default: 50,
9016
+ },
9017
+ cursor: {
9018
+ type: 'string',
9019
+ },
9020
+ purposes: {
9021
+ type: 'array',
9022
+ description:
9023
+ 'Optional filter by list purpose. If not specified, all supported types are returned.',
9024
+ items: {
9025
+ type: 'string',
9026
+ knownValues: ['modlist', 'curatelist'],
9027
+ },
9028
+ },
9029
+ },
9030
+ },
9031
+ output: {
9032
+ encoding: 'application/json',
9033
+ schema: {
9034
+ type: 'object',
9035
+ required: ['listsWithMembership'],
9036
+ properties: {
9037
+ cursor: {
9038
+ type: 'string',
9039
+ },
9040
+ listsWithMembership: {
9041
+ type: 'array',
9042
+ items: {
9043
+ type: 'ref',
9044
+ ref: 'lex:app.bsky.graph.getListsWithMembership#listWithMembership',
9045
+ },
9046
+ },
9047
+ },
9048
+ },
9049
+ },
9050
+ },
9051
+ listWithMembership: {
9052
+ description:
9053
+ 'A list and an optional list item indicating membership of a target user to that list.',
9054
+ type: 'object',
9055
+ required: ['list'],
9056
+ properties: {
9057
+ list: {
9058
+ type: 'ref',
9059
+ ref: 'lex:app.bsky.graph.defs#listView',
9060
+ },
9061
+ listItem: {
9062
+ type: 'ref',
9063
+ ref: 'lex:app.bsky.graph.defs#listItemView',
9064
+ },
9065
+ },
9066
+ },
9067
+ },
9068
+ },
8985
9069
  AppBskyGraphGetMutes: {
8986
9070
  lexicon: 1,
8987
9071
  id: 'app.bsky.graph.getMutes',
@@ -9162,6 +9246,72 @@ export const schemaDict = {
9162
9246
  },
9163
9247
  },
9164
9248
  },
9249
+ AppBskyGraphGetStarterPacksWithMembership: {
9250
+ lexicon: 1,
9251
+ id: 'app.bsky.graph.getStarterPacksWithMembership',
9252
+ defs: {
9253
+ main: {
9254
+ type: 'query',
9255
+ description:
9256
+ 'Enumerates the starter packs created by the session user, and includes membership information about `actor` in those starter packs. Requires auth.',
9257
+ parameters: {
9258
+ type: 'params',
9259
+ required: ['actor'],
9260
+ properties: {
9261
+ actor: {
9262
+ type: 'string',
9263
+ format: 'at-identifier',
9264
+ description: 'The account (actor) to check for membership.',
9265
+ },
9266
+ limit: {
9267
+ type: 'integer',
9268
+ minimum: 1,
9269
+ maximum: 100,
9270
+ default: 50,
9271
+ },
9272
+ cursor: {
9273
+ type: 'string',
9274
+ },
9275
+ },
9276
+ },
9277
+ output: {
9278
+ encoding: 'application/json',
9279
+ schema: {
9280
+ type: 'object',
9281
+ required: ['starterPacksWithMembership'],
9282
+ properties: {
9283
+ cursor: {
9284
+ type: 'string',
9285
+ },
9286
+ starterPacksWithMembership: {
9287
+ type: 'array',
9288
+ items: {
9289
+ type: 'ref',
9290
+ ref: 'lex:app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership',
9291
+ },
9292
+ },
9293
+ },
9294
+ },
9295
+ },
9296
+ },
9297
+ starterPackWithMembership: {
9298
+ description:
9299
+ 'A starter pack and an optional list item indicating membership of a target user to that starter pack.',
9300
+ type: 'object',
9301
+ required: ['starterPack'],
9302
+ properties: {
9303
+ starterPack: {
9304
+ type: 'ref',
9305
+ ref: 'lex:app.bsky.graph.defs#starterPackView',
9306
+ },
9307
+ listItem: {
9308
+ type: 'ref',
9309
+ ref: 'lex:app.bsky.graph.defs#listItemView',
9310
+ },
9311
+ },
9312
+ },
9313
+ },
9314
+ },
9165
9315
  AppBskyGraphGetSuggestedFollowsByActor: {
9166
9316
  lexicon: 1,
9167
9317
  id: 'app.bsky.graph.getSuggestedFollowsByActor',
@@ -15006,6 +15156,21 @@ export const schemaDict = {
15006
15156
  },
15007
15157
  },
15008
15158
  },
15159
+ timelineEventPlcCreate: {
15160
+ type: 'token',
15161
+ description:
15162
+ 'Moderation event timeline event for a PLC create operation',
15163
+ },
15164
+ timelineEventPlcOperation: {
15165
+ type: 'token',
15166
+ description:
15167
+ 'Moderation event timeline event for generic PLC operation',
15168
+ },
15169
+ timelineEventPlcTombstone: {
15170
+ type: 'token',
15171
+ description:
15172
+ 'Moderation event timeline event for a PLC tombstone operation',
15173
+ },
15009
15174
  },
15010
15175
  },
15011
15176
  ToolsOzoneModerationEmitEvent: {
@@ -15097,6 +15262,110 @@ export const schemaDict = {
15097
15262
  },
15098
15263
  },
15099
15264
  },
15265
+ ToolsOzoneModerationGetAccountTimeline: {
15266
+ lexicon: 1,
15267
+ id: 'tools.ozone.moderation.getAccountTimeline',
15268
+ defs: {
15269
+ main: {
15270
+ type: 'query',
15271
+ description:
15272
+ 'Get timeline of all available events of an account. This includes moderation events, account history and did history.',
15273
+ parameters: {
15274
+ type: 'params',
15275
+ required: ['did'],
15276
+ properties: {
15277
+ did: {
15278
+ type: 'string',
15279
+ format: 'did',
15280
+ },
15281
+ },
15282
+ },
15283
+ output: {
15284
+ encoding: 'application/json',
15285
+ schema: {
15286
+ type: 'object',
15287
+ required: ['timeline'],
15288
+ properties: {
15289
+ timeline: {
15290
+ type: 'array',
15291
+ items: {
15292
+ type: 'ref',
15293
+ ref: 'lex:tools.ozone.moderation.getAccountTimeline#timelineItem',
15294
+ },
15295
+ },
15296
+ },
15297
+ },
15298
+ },
15299
+ errors: [
15300
+ {
15301
+ name: 'RepoNotFound',
15302
+ },
15303
+ ],
15304
+ },
15305
+ timelineItem: {
15306
+ type: 'object',
15307
+ required: ['day', 'summary'],
15308
+ properties: {
15309
+ day: {
15310
+ type: 'string',
15311
+ },
15312
+ summary: {
15313
+ type: 'array',
15314
+ items: {
15315
+ type: 'ref',
15316
+ ref: 'lex:tools.ozone.moderation.getAccountTimeline#timelineItemSummary',
15317
+ },
15318
+ },
15319
+ },
15320
+ },
15321
+ timelineItemSummary: {
15322
+ type: 'object',
15323
+ required: ['eventSubjectType', 'eventType', 'count'],
15324
+ properties: {
15325
+ eventSubjectType: {
15326
+ type: 'string',
15327
+ knownValues: ['account', 'record', 'chat'],
15328
+ },
15329
+ eventType: {
15330
+ type: 'string',
15331
+ knownValues: [
15332
+ 'tools.ozone.moderation.defs#modEventTakedown',
15333
+ 'tools.ozone.moderation.defs#modEventReverseTakedown',
15334
+ 'tools.ozone.moderation.defs#modEventComment',
15335
+ 'tools.ozone.moderation.defs#modEventReport',
15336
+ 'tools.ozone.moderation.defs#modEventLabel',
15337
+ 'tools.ozone.moderation.defs#modEventAcknowledge',
15338
+ 'tools.ozone.moderation.defs#modEventEscalate',
15339
+ 'tools.ozone.moderation.defs#modEventMute',
15340
+ 'tools.ozone.moderation.defs#modEventUnmute',
15341
+ 'tools.ozone.moderation.defs#modEventMuteReporter',
15342
+ 'tools.ozone.moderation.defs#modEventUnmuteReporter',
15343
+ 'tools.ozone.moderation.defs#modEventEmail',
15344
+ 'tools.ozone.moderation.defs#modEventResolveAppeal',
15345
+ 'tools.ozone.moderation.defs#modEventDivert',
15346
+ 'tools.ozone.moderation.defs#modEventTag',
15347
+ 'tools.ozone.moderation.defs#accountEvent',
15348
+ 'tools.ozone.moderation.defs#identityEvent',
15349
+ 'tools.ozone.moderation.defs#recordEvent',
15350
+ 'tools.ozone.moderation.defs#modEventPriorityScore',
15351
+ 'tools.ozone.moderation.defs#ageAssuranceEvent',
15352
+ 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent',
15353
+ 'tools.ozone.moderation.defs#timelineEventPlcCreate',
15354
+ 'tools.ozone.moderation.defs#timelineEventPlcOperation',
15355
+ 'tools.ozone.moderation.defs#timelineEventPlcTombstone',
15356
+ 'tools.ozone.hosting.getAccountHistory#accountCreated',
15357
+ 'tools.ozone.hosting.getAccountHistory#emailConfirmed',
15358
+ 'tools.ozone.hosting.getAccountHistory#passwordUpdated',
15359
+ 'tools.ozone.hosting.getAccountHistory#handleUpdated',
15360
+ ],
15361
+ },
15362
+ count: {
15363
+ type: 'integer',
15364
+ },
15365
+ },
15366
+ },
15367
+ },
15368
+ },
15100
15369
  ToolsOzoneModerationGetEvent: {
15101
15370
  lexicon: 1,
15102
15371
  id: 'tools.ozone.moderation.getEvent',
@@ -17804,10 +18073,13 @@ export const ids = {
17804
18073
  AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks',
17805
18074
  AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
17806
18075
  AppBskyGraphGetLists: 'app.bsky.graph.getLists',
18076
+ AppBskyGraphGetListsWithMembership: 'app.bsky.graph.getListsWithMembership',
17807
18077
  AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
17808
18078
  AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
17809
18079
  AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
17810
18080
  AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks',
18081
+ AppBskyGraphGetStarterPacksWithMembership:
18082
+ 'app.bsky.graph.getStarterPacksWithMembership',
17811
18083
  AppBskyGraphGetSuggestedFollowsByActor:
17812
18084
  'app.bsky.graph.getSuggestedFollowsByActor',
17813
18085
  AppBskyGraphList: 'app.bsky.graph.list',
@@ -17914,6 +18186,8 @@ export const ids = {
17914
18186
  ToolsOzoneHostingGetAccountHistory: 'tools.ozone.hosting.getAccountHistory',
17915
18187
  ToolsOzoneModerationDefs: 'tools.ozone.moderation.defs',
17916
18188
  ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
18189
+ ToolsOzoneModerationGetAccountTimeline:
18190
+ 'tools.ozone.moderation.getAccountTimeline',
17917
18191
  ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
17918
18192
  ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord',
17919
18193
  ToolsOzoneModerationGetRecords: 'tools.ozone.moderation.getRecords',
@@ -21,6 +21,8 @@ export type QueryParams = {
21
21
  actor: string
22
22
  limit?: number
23
23
  cursor?: string
24
+ /** Optional filter by list purpose. If not specified, all supported types are returned. */
25
+ purposes?: 'modlist' | 'curatelist' | (string & {})[]
24
26
  }
25
27
  export type InputSchema = undefined
26
28
 
@@ -0,0 +1,64 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as AppBskyGraphDefs from './defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.graph.getListsWithMembership'
18
+
19
+ export type QueryParams = {
20
+ /** The account (actor) to check for membership. */
21
+ actor: string
22
+ limit?: number
23
+ cursor?: string
24
+ /** Optional filter by list purpose. If not specified, all supported types are returned. */
25
+ purposes?: 'modlist' | 'curatelist' | (string & {})[]
26
+ }
27
+ export type InputSchema = undefined
28
+
29
+ export interface OutputSchema {
30
+ cursor?: string
31
+ listsWithMembership: ListWithMembership[]
32
+ }
33
+
34
+ export interface CallOptions {
35
+ signal?: AbortSignal
36
+ headers?: HeadersMap
37
+ }
38
+
39
+ export interface Response {
40
+ success: boolean
41
+ headers: HeadersMap
42
+ data: OutputSchema
43
+ }
44
+
45
+ export function toKnownErr(e: any) {
46
+ return e
47
+ }
48
+
49
+ /** A list and an optional list item indicating membership of a target user to that list. */
50
+ export interface ListWithMembership {
51
+ $type?: 'app.bsky.graph.getListsWithMembership#listWithMembership'
52
+ list: AppBskyGraphDefs.ListView
53
+ listItem?: AppBskyGraphDefs.ListItemView
54
+ }
55
+
56
+ const hashListWithMembership = 'listWithMembership'
57
+
58
+ export function isListWithMembership<V>(v: V) {
59
+ return is$typed(v, id, hashListWithMembership)
60
+ }
61
+
62
+ export function validateListWithMembership<V>(v: V) {
63
+ return validate<ListWithMembership & V>(v, id, hashListWithMembership)
64
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as AppBskyGraphDefs from './defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.graph.getStarterPacksWithMembership'
18
+
19
+ export type QueryParams = {
20
+ /** The account (actor) to check for membership. */
21
+ actor: string
22
+ limit?: number
23
+ cursor?: string
24
+ }
25
+ export type InputSchema = undefined
26
+
27
+ export interface OutputSchema {
28
+ cursor?: string
29
+ starterPacksWithMembership: StarterPackWithMembership[]
30
+ }
31
+
32
+ export interface CallOptions {
33
+ signal?: AbortSignal
34
+ headers?: HeadersMap
35
+ }
36
+
37
+ export interface Response {
38
+ success: boolean
39
+ headers: HeadersMap
40
+ data: OutputSchema
41
+ }
42
+
43
+ export function toKnownErr(e: any) {
44
+ return e
45
+ }
46
+
47
+ /** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
48
+ export interface StarterPackWithMembership {
49
+ $type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership'
50
+ starterPack: AppBskyGraphDefs.StarterPackView
51
+ listItem?: AppBskyGraphDefs.ListItemView
52
+ }
53
+
54
+ const hashStarterPackWithMembership = 'starterPackWithMembership'
55
+
56
+ export function isStarterPackWithMembership<V>(v: V) {
57
+ return is$typed(v, id, hashStarterPackWithMembership)
58
+ }
59
+
60
+ export function validateStarterPackWithMembership<V>(v: V) {
61
+ return validate<StarterPackWithMembership & V>(
62
+ v,
63
+ id,
64
+ hashStarterPackWithMembership,
65
+ )
66
+ }
@@ -980,3 +980,10 @@ export function isModTool<V>(v: V) {
980
980
  export function validateModTool<V>(v: V) {
981
981
  return validate<ModTool & V>(v, id, hashModTool)
982
982
  }
983
+
984
+ /** Moderation event timeline event for a PLC create operation */
985
+ export const TIMELINEEVENTPLCCREATE = `${id}#timelineEventPlcCreate`
986
+ /** Moderation event timeline event for generic PLC operation */
987
+ export const TIMELINEEVENTPLCOPERATION = `${id}#timelineEventPlcOperation`
988
+ /** Moderation event timeline event for a PLC tombstone operation */
989
+ export const TIMELINEEVENTPLCTOMBSTONE = `${id}#timelineEventPlcTombstone`
@@ -0,0 +1,112 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'tools.ozone.moderation.getAccountTimeline'
17
+
18
+ export type QueryParams = {
19
+ did: string
20
+ }
21
+ export type InputSchema = undefined
22
+
23
+ export interface OutputSchema {
24
+ timeline: TimelineItem[]
25
+ }
26
+
27
+ export interface CallOptions {
28
+ signal?: AbortSignal
29
+ headers?: HeadersMap
30
+ }
31
+
32
+ export interface Response {
33
+ success: boolean
34
+ headers: HeadersMap
35
+ data: OutputSchema
36
+ }
37
+
38
+ export class RepoNotFoundError extends XRPCError {
39
+ constructor(src: XRPCError) {
40
+ super(src.status, src.error, src.message, src.headers, { cause: src })
41
+ }
42
+ }
43
+
44
+ export function toKnownErr(e: any) {
45
+ if (e instanceof XRPCError) {
46
+ if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
47
+ }
48
+
49
+ return e
50
+ }
51
+
52
+ export interface TimelineItem {
53
+ $type?: 'tools.ozone.moderation.getAccountTimeline#timelineItem'
54
+ day: string
55
+ summary: TimelineItemSummary[]
56
+ }
57
+
58
+ const hashTimelineItem = 'timelineItem'
59
+
60
+ export function isTimelineItem<V>(v: V) {
61
+ return is$typed(v, id, hashTimelineItem)
62
+ }
63
+
64
+ export function validateTimelineItem<V>(v: V) {
65
+ return validate<TimelineItem & V>(v, id, hashTimelineItem)
66
+ }
67
+
68
+ export interface TimelineItemSummary {
69
+ $type?: 'tools.ozone.moderation.getAccountTimeline#timelineItemSummary'
70
+ eventSubjectType: 'account' | 'record' | 'chat' | (string & {})
71
+ eventType:
72
+ | 'tools.ozone.moderation.defs#modEventTakedown'
73
+ | 'tools.ozone.moderation.defs#modEventReverseTakedown'
74
+ | 'tools.ozone.moderation.defs#modEventComment'
75
+ | 'tools.ozone.moderation.defs#modEventReport'
76
+ | 'tools.ozone.moderation.defs#modEventLabel'
77
+ | 'tools.ozone.moderation.defs#modEventAcknowledge'
78
+ | 'tools.ozone.moderation.defs#modEventEscalate'
79
+ | 'tools.ozone.moderation.defs#modEventMute'
80
+ | 'tools.ozone.moderation.defs#modEventUnmute'
81
+ | 'tools.ozone.moderation.defs#modEventMuteReporter'
82
+ | 'tools.ozone.moderation.defs#modEventUnmuteReporter'
83
+ | 'tools.ozone.moderation.defs#modEventEmail'
84
+ | 'tools.ozone.moderation.defs#modEventResolveAppeal'
85
+ | 'tools.ozone.moderation.defs#modEventDivert'
86
+ | 'tools.ozone.moderation.defs#modEventTag'
87
+ | 'tools.ozone.moderation.defs#accountEvent'
88
+ | 'tools.ozone.moderation.defs#identityEvent'
89
+ | 'tools.ozone.moderation.defs#recordEvent'
90
+ | 'tools.ozone.moderation.defs#modEventPriorityScore'
91
+ | 'tools.ozone.moderation.defs#ageAssuranceEvent'
92
+ | 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'
93
+ | 'tools.ozone.moderation.defs#timelineEventPlcCreate'
94
+ | 'tools.ozone.moderation.defs#timelineEventPlcOperation'
95
+ | 'tools.ozone.moderation.defs#timelineEventPlcTombstone'
96
+ | 'tools.ozone.hosting.getAccountHistory#accountCreated'
97
+ | 'tools.ozone.hosting.getAccountHistory#emailConfirmed'
98
+ | 'tools.ozone.hosting.getAccountHistory#passwordUpdated'
99
+ | 'tools.ozone.hosting.getAccountHistory#handleUpdated'
100
+ | (string & {})
101
+ count: number
102
+ }
103
+
104
+ const hashTimelineItemSummary = 'timelineItemSummary'
105
+
106
+ export function isTimelineItemSummary<V>(v: V) {
107
+ return is$typed(v, id, hashTimelineItemSummary)
108
+ }
109
+
110
+ export function validateTimelineItemSummary<V>(v: V) {
111
+ return validate<TimelineItemSummary & V>(v, id, hashTimelineItemSummary)
112
+ }