this repo has no description
0
fork

Configure Feed

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

run lexgen

+79 -27
+16 -10
api/bsky/actordefs.go
··· 379 379 380 380 // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. 381 381 type ActorDefs_ProfileView struct { 382 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 383 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 384 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 382 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 383 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 384 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 385 + // debug: Debug information for internal development 386 + Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 385 387 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 386 388 Did string `json:"did" cborgen:"did"` 387 389 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` ··· 396 398 397 399 // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema. 398 400 type ActorDefs_ProfileViewBasic struct { 399 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 400 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 401 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 401 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 402 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 403 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 404 + // debug: Debug information for internal development 405 + Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 402 406 Did string `json:"did" cborgen:"did"` 403 407 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 404 408 Handle string `json:"handle" cborgen:"handle"` ··· 411 415 412 416 // ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema. 413 417 type ActorDefs_ProfileViewDetailed struct { 414 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 415 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 416 - Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 417 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 418 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 419 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 420 + Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 421 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 422 + // debug: Debug information for internal development 423 + Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 418 424 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 419 425 Did string `json:"did" cborgen:"did"` 420 426 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
+17 -15
api/bsky/feeddefs.go
··· 115 115 116 116 // FeedDefs_PostView is a "postView" in the app.bsky.feed.defs schema. 117 117 type FeedDefs_PostView struct { 118 - LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#postView"` 119 - Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"` 120 - BookmarkCount *int64 `json:"bookmarkCount,omitempty" cborgen:"bookmarkCount,omitempty"` 121 - Cid string `json:"cid" cborgen:"cid"` 122 - Embed *FeedDefs_PostView_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 123 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 124 - Labels []*comatproto.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 125 - LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` 126 - QuoteCount *int64 `json:"quoteCount,omitempty" cborgen:"quoteCount,omitempty"` 127 - Record *lexutil.LexiconTypeDecoder `json:"record" cborgen:"record"` 128 - ReplyCount *int64 `json:"replyCount,omitempty" cborgen:"replyCount,omitempty"` 129 - RepostCount *int64 `json:"repostCount,omitempty" cborgen:"repostCount,omitempty"` 130 - Threadgate *FeedDefs_ThreadgateView `json:"threadgate,omitempty" cborgen:"threadgate,omitempty"` 131 - Uri string `json:"uri" cborgen:"uri"` 132 - Viewer *FeedDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 118 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#postView"` 119 + Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"` 120 + BookmarkCount *int64 `json:"bookmarkCount,omitempty" cborgen:"bookmarkCount,omitempty"` 121 + Cid string `json:"cid" cborgen:"cid"` 122 + // debug: Debug information for internal development 123 + Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 124 + Embed *FeedDefs_PostView_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 125 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 126 + Labels []*comatproto.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 127 + LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"` 128 + QuoteCount *int64 `json:"quoteCount,omitempty" cborgen:"quoteCount,omitempty"` 129 + Record *lexutil.LexiconTypeDecoder `json:"record" cborgen:"record"` 130 + ReplyCount *int64 `json:"replyCount,omitempty" cborgen:"replyCount,omitempty"` 131 + RepostCount *int64 `json:"repostCount,omitempty" cborgen:"repostCount,omitempty"` 132 + Threadgate *FeedDefs_ThreadgateView `json:"threadgate,omitempty" cborgen:"threadgate,omitempty"` 133 + Uri string `json:"uri" cborgen:"uri"` 134 + Viewer *FeedDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 133 135 } 134 136 135 137 type FeedDefs_PostView_Embed struct {
+36
api/ozone/moderationdefs.go
··· 52 52 TakedownCount *int64 `json:"takedownCount,omitempty" cborgen:"takedownCount,omitempty"` 53 53 } 54 54 55 + // ModerationDefs_AccountStrike is a "accountStrike" in the tools.ozone.moderation.defs schema. 56 + // 57 + // Strike information for an account 58 + type ModerationDefs_AccountStrike struct { 59 + // activeStrikeCount: Current number of active strikes (excluding expired strikes) 60 + ActiveStrikeCount *int64 `json:"activeStrikeCount,omitempty" cborgen:"activeStrikeCount,omitempty"` 61 + // firstStrikeAt: Timestamp of the first strike received 62 + FirstStrikeAt *string `json:"firstStrikeAt,omitempty" cborgen:"firstStrikeAt,omitempty"` 63 + // lastStrikeAt: Timestamp of the most recent strike received 64 + LastStrikeAt *string `json:"lastStrikeAt,omitempty" cborgen:"lastStrikeAt,omitempty"` 65 + // totalStrikeCount: Total number of strikes ever received (including expired strikes) 66 + TotalStrikeCount *int64 `json:"totalStrikeCount,omitempty" cborgen:"totalStrikeCount,omitempty"` 67 + } 68 + 55 69 // ModerationDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the tools.ozone.moderation.defs schema. 56 70 // 57 71 // Age assurance info coming directly from users. Only works on DID subjects. ··· 191 205 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 192 206 // content: The content of the email sent to the user. 193 207 Content *string `json:"content,omitempty" cborgen:"content,omitempty"` 208 + // policies: Names/Keywords of the policies that necessitated the email. 209 + Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` 210 + // severityLevel: Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense 211 + SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"` 212 + // strikeCount: Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense. 213 + StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"` 214 + // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires. 215 + StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"` 194 216 // subjectLine: The subject line of the email sent to the user. 195 217 SubjectLine string `json:"subjectLine" cborgen:"subjectLine"` 196 218 } ··· 269 291 LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"` 270 292 // comment: Describe reasoning behind the reversal. 271 293 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 294 + // policies: Names/Keywords of the policy infraction for which takedown is being reversed. 295 + Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` 296 + // severityLevel: Severity level of the violation. Usually set from the last policy infraction's severity. 297 + SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"` 298 + // strikeCount: Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity. 299 + StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"` 272 300 } 273 301 274 302 // ModerationDefs_ModEventTag is a "modEventTag" in the tools.ozone.moderation.defs schema. ··· 296 324 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` 297 325 // policies: Names/Keywords of the policies that drove the decision. 298 326 Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` 327 + // severityLevel: Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). 328 + SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"` 329 + // strikeCount: Number of strikes to assign to the user for this violation. 330 + StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"` 331 + // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires. 332 + StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"` 299 333 } 300 334 301 335 // ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema. ··· 1071 1105 type ModerationDefs_SubjectStatusView struct { 1072 1106 // accountStats: Statistics related to the account subject 1073 1107 AccountStats *ModerationDefs_AccountStats `json:"accountStats,omitempty" cborgen:"accountStats,omitempty"` 1108 + // accountStrike: Strike information for the account (account-level only) 1109 + AccountStrike *ModerationDefs_AccountStrike `json:"accountStrike,omitempty" cborgen:"accountStrike,omitempty"` 1074 1110 // ageAssuranceState: Current age assurance state of the subject. 1075 1111 AgeAssuranceState *string `json:"ageAssuranceState,omitempty" cborgen:"ageAssuranceState,omitempty"` 1076 1112 // ageAssuranceUpdatedBy: Whether or not the last successful update to age assurance was made by the user or admin.
+5 -1
api/ozone/moderationqueryEvents.go
··· 34 34 // sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp. 35 35 // subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. 36 36 // types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. 37 - func ModerationQueryEvents(ctx context.Context, c lexutil.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, batchId string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, modTool []string, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) { 37 + // withStrike: If specified, only events where strikeCount value is set are returned. 38 + func ModerationQueryEvents(ctx context.Context, c lexutil.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, batchId string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, modTool []string, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string, withStrike bool) (*ModerationQueryEvents_Output, error) { 38 39 var out ModerationQueryEvents_Output 39 40 40 41 params := map[string]interface{}{} ··· 103 104 } 104 105 if len(types) != 0 { 105 106 params["types"] = types 107 + } 108 + if withStrike { 109 + params["withStrike"] = withStrike 106 110 } 107 111 if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil { 108 112 return nil, err
+5 -1
api/ozone/moderationqueryStatuses.go
··· 33 33 // minAccountSuspendCount: If specified, only subjects that belong to an account that has at least this many suspensions will be returned. 34 34 // minPriorityScore: If specified, only subjects that have priority score value above the given value will be returned. 35 35 // minReportedRecordsCount: If specified, only subjects that belong to an account that has at least this many reported records will be returned. 36 + // minStrikeCount: If specified, only subjects that belong to an account that has at least this many active strikes will be returned. 36 37 // minTakendownRecordsCount: If specified, only subjects that belong to an account that has at least this many taken down records will be returned. 37 38 // onlyMuted: When set to true, only muted subjects and reporters will be returned. 38 39 // queueCount: Number of queues being used by moderators. Subjects will be split among all queues. ··· 46 47 // subject: The subject to get the status for. 47 48 // subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. 48 49 // takendown: Get subjects that were taken down 49 - func ModerationQueryStatuses(ctx context.Context, c lexutil.LexClient, ageAssuranceState string, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) { 50 + func ModerationQueryStatuses(ctx context.Context, c lexutil.LexClient, ageAssuranceState string, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minStrikeCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) { 50 51 var out ModerationQueryStatuses_Output 51 52 52 53 params := map[string]interface{}{} ··· 106 107 } 107 108 if minReportedRecordsCount != 0 { 108 109 params["minReportedRecordsCount"] = minReportedRecordsCount 110 + } 111 + if minStrikeCount != 0 { 112 + params["minStrikeCount"] = minStrikeCount 109 113 } 110 114 if minTakendownRecordsCount != 0 { 111 115 params["minTakendownRecordsCount"] = minTakendownRecordsCount