1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.labeler.defs
6
7import (
8 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
9)
10
11// LabelerDefs_LabelerPolicies is a "labelerPolicies" in the app.bsky.labeler.defs schema.
12type LabelerDefs_LabelerPolicies struct {
13 // labelValueDefinitions: Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
14 LabelValueDefinitions []*comatprototypes.LabelDefs_LabelValueDefinition `json:"labelValueDefinitions,omitempty" cborgen:"labelValueDefinitions,omitempty"`
15 // labelValues: The label values which this labeler publishes. May include global or custom labels.
16 LabelValues []*string `json:"labelValues" cborgen:"labelValues"`
17}
18
19// LabelerDefs_LabelerView is a "labelerView" in the app.bsky.labeler.defs schema.
20//
21// RECORDTYPE: LabelerDefs_LabelerView
22type LabelerDefs_LabelerView struct {
23 LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerView" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"`
24 Cid string `json:"cid" cborgen:"cid"`
25 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
26 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
27 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
28 LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
29 Uri string `json:"uri" cborgen:"uri"`
30 Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
31}
32
33// LabelerDefs_LabelerViewDetailed is a "labelerViewDetailed" in the app.bsky.labeler.defs schema.
34//
35// RECORDTYPE: LabelerDefs_LabelerViewDetailed
36type LabelerDefs_LabelerViewDetailed struct {
37 LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerViewDetailed" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"`
38 Cid string `json:"cid" cborgen:"cid"`
39 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
40 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
41 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
42 LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
43 Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"`
44 // reasonTypes: 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 []*string `json:"reasonTypes,omitempty" cborgen:"reasonTypes,omitempty"`
46 // subjectCollections: 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.
47 SubjectCollections []string `json:"subjectCollections,omitempty" cborgen:"subjectCollections,omitempty"`
48 // subjectTypes: The set of subject types (account, record, etc) this service accepts reports on.
49 SubjectTypes []*string `json:"subjectTypes,omitempty" cborgen:"subjectTypes,omitempty"`
50 Uri string `json:"uri" cborgen:"uri"`
51 Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
52}
53
54// LabelerDefs_LabelerViewerState is a "labelerViewerState" in the app.bsky.labeler.defs schema.
55type LabelerDefs_LabelerViewerState struct {
56 Like *string `json:"like,omitempty" cborgen:"like,omitempty"`
57}