[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

update labeler defs

+112 -20
+54 -12
lex/lexicons.ts
··· 20719 20719 "type": "integer", 20720 20720 "minimum": 0, 20721 20721 }, 20722 - "lookCount": { 20723 - "type": "integer", 20724 - "minimum": 0, 20725 - }, 20726 20722 "viewer": { 20727 20723 "type": "ref", 20728 20724 "ref": "lex:so.sprk.labeler.defs#labelerViewerState", ··· 20770 20766 "type": "integer", 20771 20767 "minimum": 0, 20772 20768 }, 20773 - "lookCount": { 20774 - "type": "integer", 20775 - "minimum": 0, 20776 - }, 20777 20769 "viewer": { 20778 20770 "type": "ref", 20779 20771 "ref": "lex:so.sprk.labeler.defs#labelerViewerState", ··· 20789 20781 "ref": "lex:com.atproto.label.defs#label", 20790 20782 }, 20791 20783 }, 20784 + "reasonTypes": { 20785 + "description": 20786 + "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.", 20787 + "type": "array", 20788 + "items": { 20789 + "type": "ref", 20790 + "ref": "lex:com.atproto.moderation.defs#reasonType", 20791 + }, 20792 + }, 20793 + "subjectTypes": { 20794 + "description": 20795 + "The set of subject types (account, record, etc) this service accepts reports on.", 20796 + "type": "array", 20797 + "items": { 20798 + "type": "ref", 20799 + "ref": "lex:com.atproto.moderation.defs#subjectType", 20800 + }, 20801 + }, 20802 + "subjectCollections": { 20803 + "type": "array", 20804 + "description": 20805 + "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.", 20806 + "items": { 20807 + "type": "string", 20808 + "format": "nsid", 20809 + }, 20810 + }, 20792 20811 }, 20793 20812 }, 20794 20813 "labelerViewerState": { 20795 20814 "type": "object", 20796 20815 "properties": { 20797 20816 "like": { 20798 - "type": "string", 20799 - "format": "at-uri", 20800 - }, 20801 - "look": { 20802 20817 "type": "string", 20803 20818 "format": "at-uri", 20804 20819 }, ··· 20860 20875 "createdAt": { 20861 20876 "type": "string", 20862 20877 "format": "datetime", 20878 + }, 20879 + "reasonTypes": { 20880 + "description": 20881 + "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.", 20882 + "type": "array", 20883 + "items": { 20884 + "type": "ref", 20885 + "ref": "lex:com.atproto.moderation.defs#reasonType", 20886 + }, 20887 + }, 20888 + "subjectTypes": { 20889 + "description": 20890 + "The set of subject types (account, record, etc) this service accepts reports on.", 20891 + "type": "array", 20892 + "items": { 20893 + "type": "ref", 20894 + "ref": "lex:com.atproto.moderation.defs#subjectType", 20895 + }, 20896 + }, 20897 + "subjectCollections": { 20898 + "type": "array", 20899 + "description": 20900 + "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.", 20901 + "items": { 20902 + "type": "string", 20903 + "format": "nsid", 20904 + }, 20863 20905 }, 20864 20906 }, 20865 20907 },
+7 -3
lex/types/so/sprk/labeler/defs.ts
··· 5 5 import { is$typed as _is$typed } from "../../../../util.ts"; 6 6 import type * as SoSprkActorDefs from "../actor/defs.ts"; 7 7 import type * as ComAtprotoLabelDefs from "../../../com/atproto/label/defs.ts"; 8 + import type * as ComAtprotoModerationDefs from "../../../com/atproto/moderation/defs.ts"; 8 9 9 10 const is$typed = _is$typed, validate = _validate; 10 11 const id = "so.sprk.labeler.defs"; ··· 15 16 cid: string; 16 17 creator: SoSprkActorDefs.ProfileView; 17 18 likeCount?: number; 18 - lookCount?: number; 19 19 viewer?: LabelerViewerState; 20 20 indexedAt: string; 21 21 labels?: (ComAtprotoLabelDefs.Label)[]; ··· 38 38 creator: SoSprkActorDefs.ProfileView; 39 39 policies: LabelerPolicies; 40 40 likeCount?: number; 41 - lookCount?: number; 42 41 viewer?: LabelerViewerState; 43 42 indexedAt: string; 44 43 labels?: (ComAtprotoLabelDefs.Label)[]; 44 + /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */ 45 + reasonTypes?: (ComAtprotoModerationDefs.ReasonType)[]; 46 + /** The set of subject types (account, record, etc) this service accepts reports on. */ 47 + subjectTypes?: (ComAtprotoModerationDefs.SubjectType)[]; 48 + /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ 49 + subjectCollections?: (string)[]; 45 50 } 46 51 47 52 const hashLabelerViewDetailed = "labelerViewDetailed"; ··· 57 62 export interface LabelerViewerState { 58 63 $type?: "so.sprk.labeler.defs#labelerViewerState"; 59 64 like?: string; 60 - look?: string; 61 65 } 62 66 63 67 const hashLabelerViewerState = "labelerViewerState";
+7
lex/types/so/sprk/labeler/service.ts
··· 5 5 import { type $Typed, is$typed as _is$typed } from "../../../../util.ts"; 6 6 import type * as SoSprkLabelerDefs from "./defs.ts"; 7 7 import type * as ComAtprotoLabelDefs from "../../../com/atproto/label/defs.ts"; 8 + import type * as ComAtprotoModerationDefs from "../../../com/atproto/moderation/defs.ts"; 8 9 9 10 const is$typed = _is$typed, validate = _validate; 10 11 const id = "so.sprk.labeler.service"; ··· 14 15 policies: SoSprkLabelerDefs.LabelerPolicies; 15 16 labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }; 16 17 createdAt: string; 18 + /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */ 19 + reasonTypes?: (ComAtprotoModerationDefs.ReasonType)[]; 20 + /** The set of subject types (account, record, etc) this service accepts reports on. */ 21 + subjectTypes?: (ComAtprotoModerationDefs.SubjectType)[]; 22 + /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ 23 + subjectCollections?: (string)[]; 17 24 [k: string]: unknown; 18 25 } 19 26
+22 -4
lexicons/so/sprk/labeler/defs.json
··· 10 10 "cid": { "type": "string", "format": "cid" }, 11 11 "creator": { "type": "ref", "ref": "so.sprk.actor.defs#profileView" }, 12 12 "likeCount": { "type": "integer", "minimum": 0 }, 13 - "lookCount": { "type": "integer", "minimum": 0 }, 14 13 "viewer": { "type": "ref", "ref": "#labelerViewerState" }, 15 14 "indexedAt": { "type": "string", "format": "datetime" }, 16 15 "labels": { ··· 31 30 "ref": "so.sprk.labeler.defs#labelerPolicies" 32 31 }, 33 32 "likeCount": { "type": "integer", "minimum": 0 }, 34 - "lookCount": { "type": "integer", "minimum": 0 }, 35 33 "viewer": { "type": "ref", "ref": "#labelerViewerState" }, 36 34 "indexedAt": { "type": "string", "format": "datetime" }, 37 35 "labels": { 38 36 "type": "array", 39 37 "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } 38 + }, 39 + "reasonTypes": { 40 + "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.", 41 + "type": "array", 42 + "items": { 43 + "type": "ref", 44 + "ref": "com.atproto.moderation.defs#reasonType" 45 + } 46 + }, 47 + "subjectTypes": { 48 + "description": "The set of subject types (account, record, etc) this service accepts reports on.", 49 + "type": "array", 50 + "items": { 51 + "type": "ref", 52 + "ref": "com.atproto.moderation.defs#subjectType" 53 + } 54 + }, 55 + "subjectCollections": { 56 + "type": "array", 57 + "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.", 58 + "items": { "type": "string", "format": "nsid" } 40 59 } 41 60 } 42 61 }, 43 62 "labelerViewerState": { 44 63 "type": "object", 45 64 "properties": { 46 - "like": { "type": "string", "format": "at-uri" }, 47 - "look": { "type": "string", "format": "at-uri" } 65 + "like": { "type": "string", "format": "at-uri" } 48 66 } 49 67 }, 50 68 "labelerPolicies": {
+22 -1
lexicons/so/sprk/labeler/service.json
··· 18 18 "type": "union", 19 19 "refs": ["com.atproto.label.defs#selfLabels"] 20 20 }, 21 - "createdAt": { "type": "string", "format": "datetime" } 21 + "createdAt": { "type": "string", "format": "datetime" }, 22 + "reasonTypes": { 23 + "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.", 24 + "type": "array", 25 + "items": { 26 + "type": "ref", 27 + "ref": "com.atproto.moderation.defs#reasonType" 28 + } 29 + }, 30 + "subjectTypes": { 31 + "description": "The set of subject types (account, record, etc) this service accepts reports on.", 32 + "type": "array", 33 + "items": { 34 + "type": "ref", 35 + "ref": "com.atproto.moderation.defs#subjectType" 36 + } 37 + }, 38 + "subjectCollections": { 39 + "type": "array", 40 + "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.", 41 + "items": { "type": "string", "format": "nsid" } 42 + } 22 43 } 23 44 } 24 45 }