Add threat signatures to ozone repo views ()

* add threat signatures to ozone repo views

* explicitly add to views
This commit is contained in:
Daniel Holmgren 2024-10-30 18:30:41 -05:00 committed by GitHub
parent 209238769c
commit 73f40e63ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 72 additions and 2 deletions
.changeset
lexicons/tools/ozone/moderation
packages
api/src/client
lexicons.ts
types/tools/ozone/moderation
ozone/src
api
lexicon
lexicons.ts
types/tools/ozone/moderation
pds/src/lexicon
lexicons.ts
types/tools/ozone/moderation

@ -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
}