Add threat signatures to ozone repo views (#2931)
* add threat signatures to ozone repo views * explicitly add to views
This commit is contained in:
parent
209238769c
commit
73f40e63ab
.changeset
lexicons/tools/ozone/moderation
packages
api/src/client
ozone/src
pds/src/lexicon
5
.changeset/wet-cars-doubt.md
Normal file
5
.changeset/wet-cars-doubt.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@atproto/api": patch
|
||||
---
|
||||
|
||||
Add threatSignatures to ozone repo views
|
@ -412,7 +412,14 @@
|
||||
},
|
||||
"invitesDisabled": { "type": "boolean" },
|
||||
"inviteNote": { "type": "string" },
|
||||
"deactivatedAt": { "type": "string", "format": "datetime" }
|
||||
"deactivatedAt": { "type": "string", "format": "datetime" },
|
||||
"threatSignatures": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#threatSignature"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"repoViewDetail": {
|
||||
@ -449,7 +456,14 @@
|
||||
"invitesDisabled": { "type": "boolean" },
|
||||
"inviteNote": { "type": "string" },
|
||||
"emailConfirmedAt": { "type": "string", "format": "datetime" },
|
||||
"deactivatedAt": { "type": "string", "format": "datetime" }
|
||||
"deactivatedAt": { "type": "string", "format": "datetime" },
|
||||
"threatSignatures": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.admin.defs#threatSignature"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"repoViewNotFound": {
|
||||
|
@ -11295,6 +11295,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewDetail: {
|
||||
@ -11364,6 +11371,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewNotFound: {
|
||||
|
@ -483,6 +483,7 @@ export interface RepoView {
|
||||
invitesDisabled?: boolean
|
||||
inviteNote?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
@ -512,6 +513,7 @@ export interface RepoViewDetail {
|
||||
inviteNote?: string
|
||||
emailConfirmedAt?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
|
@ -65,6 +65,7 @@ export const addAccountInfoToRepoViewDetail = (
|
||||
invitedBy,
|
||||
invites,
|
||||
invitesDisabled,
|
||||
threatSignatures,
|
||||
// pick some duplicate/unwanted details out
|
||||
did: _did,
|
||||
handle: _handle,
|
||||
@ -82,6 +83,7 @@ export const addAccountInfoToRepoViewDetail = (
|
||||
invites,
|
||||
emailConfirmedAt,
|
||||
deactivatedAt,
|
||||
threatSignatures,
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,6 +100,7 @@ export const addAccountInfoToRepoView = (
|
||||
invitesDisabled: accountInfo.invitesDisabled,
|
||||
inviteNote: accountInfo.inviteNote,
|
||||
deactivatedAt: accountInfo.deactivatedAt,
|
||||
threatSignatures: accountInfo.threatSignatures,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11295,6 +11295,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewDetail: {
|
||||
@ -11364,6 +11371,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewNotFound: {
|
||||
|
@ -483,6 +483,7 @@ export interface RepoView {
|
||||
invitesDisabled?: boolean
|
||||
inviteNote?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
@ -512,6 +513,7 @@ export interface RepoViewDetail {
|
||||
inviteNote?: string
|
||||
emailConfirmedAt?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
|
@ -11295,6 +11295,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewDetail: {
|
||||
@ -11364,6 +11371,13 @@ export const schemaDict = {
|
||||
type: 'string',
|
||||
format: 'datetime',
|
||||
},
|
||||
threatSignatures: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
repoViewNotFound: {
|
||||
|
@ -483,6 +483,7 @@ export interface RepoView {
|
||||
invitesDisabled?: boolean
|
||||
inviteNote?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
@ -512,6 +513,7 @@ export interface RepoViewDetail {
|
||||
inviteNote?: string
|
||||
emailConfirmedAt?: string
|
||||
deactivatedAt?: string
|
||||
threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]
|
||||
[k: string]: unknown
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user