Compare commits

..

No commits in common. "22d8e807373ae081addaf318983f59300f4befc6" and "5426a74b3e593762637c1a0b90ab16f8e03492b6" have entirely different histories.

2 changed files with 0 additions and 43 deletions

View File

@ -1,18 +0,0 @@
package ent
import (
"sourcecode.social/reiver/go-opt"
)
// Notification represents a Mastodon API "Notification".
//
// See:
// https://docs.joinmastodon.org/entities/Notification/
type Notification struct {
ID opt.Optional[string] `json:"id"`
Type opt.Optional[string] `json:"type"`
CreatedAt opt.Optional[string] `json:"created_at"`
Account Account `json:"account"`
Status opt.Optional[Status] `json:"account"`
Report opt.Optional[Report] `json:"report"`
}

View File

@ -1,25 +0,0 @@
package ent
import (
"encoding/json"
"sourcecode.social/reiver/go-nul"
"sourcecode.social/reiver/go-opt"
)
// Report represents a Mastodon API "Report".
//
// See:
// https://docs.joinmastodon.org/entities/Report/
type Report struct {
ID opt.Optional[string] `json:"id"`
ActionTaken opt.Optional[bool] `json:"action_taken"`
ActionTakenAt nul.Nullable[string] `json:"action_taken_at"`
Category opt.Optional[string] `json:"category"`
Comment opt.Optional[string] `json:"comment"`
Forwarded opt.Optional[bool] `json:"forwarded"`
CreatedAt opt.Optional[string] `json:"created_at"`
StatusIDs json.RawMessage `json:"status_ids"`
RuleIDs json.RawMessage `json:"rule_ids"`
TargetAccount Account `json:"target_account"`
}