@atproto/pds 0.4.163 → 0.4.165
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.
- package/CHANGELOG.md +18 -0
- package/dist/lexicon/index.d.ts +9 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +15 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +456 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +262 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.js +16 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.js +16 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +6 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js +7 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/getAccountTimeline.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/moderation/getAccountTimeline.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getAccountTimeline.js +25 -0
- package/dist/lexicon/types/tools/ozone/moderation/getAccountTimeline.js.map +1 -0
- package/dist/pipethrough.js +1 -0
- package/dist/pipethrough.js.map +1 -1
- package/package.json +7 -7
- package/src/lexicon/index.ts +45 -0
- package/src/lexicon/lexicons.ts +274 -0
- package/src/lexicon/types/app/bsky/graph/getLists.ts +2 -0
- package/src/lexicon/types/app/bsky/graph/getListsWithMembership.ts +63 -0
- package/src/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.ts +65 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +7 -0
- package/src/lexicon/types/tools/ozone/moderation/getAccountTimeline.ts +102 -0
- package/src/pipethrough.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/lexicon/lexicons.ts
CHANGED
@@ -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',
|
@@ -20,6 +20,8 @@ export type QueryParams = {
|
|
20
20
|
actor: string
|
21
21
|
limit: number
|
22
22
|
cursor?: string
|
23
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
24
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
23
25
|
}
|
24
26
|
export type InputSchema = undefined
|
25
27
|
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as AppBskyGraphDefs from './defs.js'
|
13
|
+
|
14
|
+
const is$typed = _is$typed,
|
15
|
+
validate = _validate
|
16
|
+
const id = 'app.bsky.graph.getListsWithMembership'
|
17
|
+
|
18
|
+
export type QueryParams = {
|
19
|
+
/** The account (actor) to check for membership. */
|
20
|
+
actor: string
|
21
|
+
limit: number
|
22
|
+
cursor?: string
|
23
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
24
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
25
|
+
}
|
26
|
+
export type InputSchema = undefined
|
27
|
+
|
28
|
+
export interface OutputSchema {
|
29
|
+
cursor?: string
|
30
|
+
listsWithMembership: ListWithMembership[]
|
31
|
+
}
|
32
|
+
|
33
|
+
export type HandlerInput = void
|
34
|
+
|
35
|
+
export interface HandlerSuccess {
|
36
|
+
encoding: 'application/json'
|
37
|
+
body: OutputSchema
|
38
|
+
headers?: { [key: string]: string }
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface HandlerError {
|
42
|
+
status: number
|
43
|
+
message?: string
|
44
|
+
}
|
45
|
+
|
46
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|
47
|
+
|
48
|
+
/** A list and an optional list item indicating membership of a target user to that list. */
|
49
|
+
export interface ListWithMembership {
|
50
|
+
$type?: 'app.bsky.graph.getListsWithMembership#listWithMembership'
|
51
|
+
list: AppBskyGraphDefs.ListView
|
52
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
53
|
+
}
|
54
|
+
|
55
|
+
const hashListWithMembership = 'listWithMembership'
|
56
|
+
|
57
|
+
export function isListWithMembership<V>(v: V) {
|
58
|
+
return is$typed(v, id, hashListWithMembership)
|
59
|
+
}
|
60
|
+
|
61
|
+
export function validateListWithMembership<V>(v: V) {
|
62
|
+
return validate<ListWithMembership & V>(v, id, hashListWithMembership)
|
63
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as AppBskyGraphDefs from './defs.js'
|
13
|
+
|
14
|
+
const is$typed = _is$typed,
|
15
|
+
validate = _validate
|
16
|
+
const id = 'app.bsky.graph.getStarterPacksWithMembership'
|
17
|
+
|
18
|
+
export type QueryParams = {
|
19
|
+
/** The account (actor) to check for membership. */
|
20
|
+
actor: string
|
21
|
+
limit: number
|
22
|
+
cursor?: string
|
23
|
+
}
|
24
|
+
export type InputSchema = undefined
|
25
|
+
|
26
|
+
export interface OutputSchema {
|
27
|
+
cursor?: string
|
28
|
+
starterPacksWithMembership: StarterPackWithMembership[]
|
29
|
+
}
|
30
|
+
|
31
|
+
export type HandlerInput = void
|
32
|
+
|
33
|
+
export interface HandlerSuccess {
|
34
|
+
encoding: 'application/json'
|
35
|
+
body: OutputSchema
|
36
|
+
headers?: { [key: string]: string }
|
37
|
+
}
|
38
|
+
|
39
|
+
export interface HandlerError {
|
40
|
+
status: number
|
41
|
+
message?: string
|
42
|
+
}
|
43
|
+
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|
45
|
+
|
46
|
+
/** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
|
47
|
+
export interface StarterPackWithMembership {
|
48
|
+
$type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership'
|
49
|
+
starterPack: AppBskyGraphDefs.StarterPackView
|
50
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
51
|
+
}
|
52
|
+
|
53
|
+
const hashStarterPackWithMembership = 'starterPackWithMembership'
|
54
|
+
|
55
|
+
export function isStarterPackWithMembership<V>(v: V) {
|
56
|
+
return is$typed(v, id, hashStarterPackWithMembership)
|
57
|
+
}
|
58
|
+
|
59
|
+
export function validateStarterPackWithMembership<V>(v: V) {
|
60
|
+
return validate<StarterPackWithMembership & V>(
|
61
|
+
v,
|
62
|
+
id,
|
63
|
+
hashStarterPackWithMembership,
|
64
|
+
)
|
65
|
+
}
|
@@ -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,102 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
|
13
|
+
const is$typed = _is$typed,
|
14
|
+
validate = _validate
|
15
|
+
const id = 'tools.ozone.moderation.getAccountTimeline'
|
16
|
+
|
17
|
+
export type QueryParams = {
|
18
|
+
did: string
|
19
|
+
}
|
20
|
+
export type InputSchema = undefined
|
21
|
+
|
22
|
+
export interface OutputSchema {
|
23
|
+
timeline: TimelineItem[]
|
24
|
+
}
|
25
|
+
|
26
|
+
export type HandlerInput = void
|
27
|
+
|
28
|
+
export interface HandlerSuccess {
|
29
|
+
encoding: 'application/json'
|
30
|
+
body: OutputSchema
|
31
|
+
headers?: { [key: string]: string }
|
32
|
+
}
|
33
|
+
|
34
|
+
export interface HandlerError {
|
35
|
+
status: number
|
36
|
+
message?: string
|
37
|
+
error?: 'RepoNotFound'
|
38
|
+
}
|
39
|
+
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|
41
|
+
|
42
|
+
export interface TimelineItem {
|
43
|
+
$type?: 'tools.ozone.moderation.getAccountTimeline#timelineItem'
|
44
|
+
day: string
|
45
|
+
summary: TimelineItemSummary[]
|
46
|
+
}
|
47
|
+
|
48
|
+
const hashTimelineItem = 'timelineItem'
|
49
|
+
|
50
|
+
export function isTimelineItem<V>(v: V) {
|
51
|
+
return is$typed(v, id, hashTimelineItem)
|
52
|
+
}
|
53
|
+
|
54
|
+
export function validateTimelineItem<V>(v: V) {
|
55
|
+
return validate<TimelineItem & V>(v, id, hashTimelineItem)
|
56
|
+
}
|
57
|
+
|
58
|
+
export interface TimelineItemSummary {
|
59
|
+
$type?: 'tools.ozone.moderation.getAccountTimeline#timelineItemSummary'
|
60
|
+
eventSubjectType: 'account' | 'record' | 'chat' | (string & {})
|
61
|
+
eventType:
|
62
|
+
| 'tools.ozone.moderation.defs#modEventTakedown'
|
63
|
+
| 'tools.ozone.moderation.defs#modEventReverseTakedown'
|
64
|
+
| 'tools.ozone.moderation.defs#modEventComment'
|
65
|
+
| 'tools.ozone.moderation.defs#modEventReport'
|
66
|
+
| 'tools.ozone.moderation.defs#modEventLabel'
|
67
|
+
| 'tools.ozone.moderation.defs#modEventAcknowledge'
|
68
|
+
| 'tools.ozone.moderation.defs#modEventEscalate'
|
69
|
+
| 'tools.ozone.moderation.defs#modEventMute'
|
70
|
+
| 'tools.ozone.moderation.defs#modEventUnmute'
|
71
|
+
| 'tools.ozone.moderation.defs#modEventMuteReporter'
|
72
|
+
| 'tools.ozone.moderation.defs#modEventUnmuteReporter'
|
73
|
+
| 'tools.ozone.moderation.defs#modEventEmail'
|
74
|
+
| 'tools.ozone.moderation.defs#modEventResolveAppeal'
|
75
|
+
| 'tools.ozone.moderation.defs#modEventDivert'
|
76
|
+
| 'tools.ozone.moderation.defs#modEventTag'
|
77
|
+
| 'tools.ozone.moderation.defs#accountEvent'
|
78
|
+
| 'tools.ozone.moderation.defs#identityEvent'
|
79
|
+
| 'tools.ozone.moderation.defs#recordEvent'
|
80
|
+
| 'tools.ozone.moderation.defs#modEventPriorityScore'
|
81
|
+
| 'tools.ozone.moderation.defs#ageAssuranceEvent'
|
82
|
+
| 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'
|
83
|
+
| 'tools.ozone.moderation.defs#timelineEventPlcCreate'
|
84
|
+
| 'tools.ozone.moderation.defs#timelineEventPlcOperation'
|
85
|
+
| 'tools.ozone.moderation.defs#timelineEventPlcTombstone'
|
86
|
+
| 'tools.ozone.hosting.getAccountHistory#accountCreated'
|
87
|
+
| 'tools.ozone.hosting.getAccountHistory#emailConfirmed'
|
88
|
+
| 'tools.ozone.hosting.getAccountHistory#passwordUpdated'
|
89
|
+
| 'tools.ozone.hosting.getAccountHistory#handleUpdated'
|
90
|
+
| (string & {})
|
91
|
+
count: number
|
92
|
+
}
|
93
|
+
|
94
|
+
const hashTimelineItemSummary = 'timelineItemSummary'
|
95
|
+
|
96
|
+
export function isTimelineItemSummary<V>(v: V) {
|
97
|
+
return is$typed(v, id, hashTimelineItemSummary)
|
98
|
+
}
|
99
|
+
|
100
|
+
export function validateTimelineItemSummary<V>(v: V) {
|
101
|
+
return validate<TimelineItemSummary & V>(v, id, hashTimelineItemSummary)
|
102
|
+
}
|
package/src/pipethrough.ts
CHANGED
@@ -532,6 +532,7 @@ const defaultService = (
|
|
532
532
|
case ids.ToolsOzoneModerationQueryEvents:
|
533
533
|
case ids.ToolsOzoneModerationQueryStatuses:
|
534
534
|
case ids.ToolsOzoneModerationSearchRepos:
|
535
|
+
case ids.ToolsOzoneModerationGetAccountTimeline:
|
535
536
|
case ids.ToolsOzoneVerificationListVerifications:
|
536
537
|
case ids.ToolsOzoneVerificationGrantVerifications:
|
537
538
|
case ids.ToolsOzoneVerificationRevokeVerifications:
|