2023-09-26 08:49:01 +00:00
|
|
|
package ent
|
|
|
|
|
|
|
|
import (
|
2024-08-01 22:29:50 +00:00
|
|
|
"github.com/reiver/go-opt"
|
2024-08-01 23:59:52 +00:00
|
|
|
"github.com/reiver/go-nul"
|
2023-09-26 08:49:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Appication represents a Mastodon API "Appication".
|
|
|
|
//
|
|
|
|
// See:
|
|
|
|
// https://docs.joinmastodon.org/entities/Application/
|
|
|
|
type Application struct {
|
2024-08-08 23:49:58 +00:00
|
|
|
Name opt.Optional[string] `json:"name,omitempty"`
|
2024-08-08 19:49:22 +00:00
|
|
|
WebSite nul.Nullable[string] `json:"website,omitempty"` // optional — field has JSON null value in JSON if not set
|
|
|
|
VapidKey opt.Optional[string] `json:"vapid_key,omitempty"` // optional — field not included in JSON if not set
|
|
|
|
ClientID opt.Optional[string] `json:"client_id,omitempty"` // optional — field not included in JSON if not set
|
|
|
|
ClientSecret opt.Optional[string] `json:"client_secret,omitempty"` // optional — field not included in JSON if not set
|
2023-09-26 08:49:01 +00:00
|
|
|
}
|