···4455import "google/protobuf/timestamp.proto";
6677+// Feed is the root of a Proto Feed document. A feed must at least contain a
88+// title and items.
79message Feed {
88- string version = 1; // (required, string) is the URL of the version of the format the feed uses. This should appear at the very top, though we recognize that not all JSON generators allow for ordering.
99- string title = 2; // (required, string) is the name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily.
1010- string home_page_url = 3; // (optional but strongly recommended, string) is the URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. If a feed is published on the public web, this should be considered as required. But it may not make sense in the case of a file created on a desktop computer, when that file is not shared or is shared only privately.
1111- string feed_url = 4; // (optional but strongly recommended, string) is the URL of the feed, and serves as the unique identifier for the feed. As with home_page_url, this should be considered required for feeds on the public web.
1212- string description = 5; // (optional, string) provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.
1313- string user_comment = 6; // (optional, string) is a description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers.
1414- string next_url = 7; // (optional, string) is the URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often. next_url must not be the same as feed_url, and it must not be the same as a previous next_url.
1515- string icon = 8; // (optional, string) is the URL of an image for the feed suitable to be used in a source list. It should be square and relatively large — such as 512 x 512 — so that it can be scaled down and so that it can look good on retina displays. It should use transparency where appropriate, since it may be rendered on a non-white background.
1616- string favicon = 9; // (optional, string) is the URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64.
1717- repeated Author authors = 10; // (optional, array of objects) specifies the feed authors.
1818- string language = 11; // (optional, string) is the primary language for the feed.
1919- bool expired = 12; // (optional, boolean) says whether or not the feed is finished — that is, whether or not it will ever update again. A feed for a temporary event, such as an instance of the Olympics, could expire. If the value is true, then it’s expired. Any other value, or the absence of expired, means the feed may continue to update.
2020- repeated Item items = 13; // (required, array of objects) contains the items in the feed. This is the most important element of the feed after the version field. Each item is a story, blog post, article, photograph, video, or other thing. For example, if a feed contains a long article, a podcast episode, and a photo, those three items would be included in items.
1010+ // (required, string) is the name of the feed, which will often correspond to
1111+ // the name of the website (blog, for instance), though not necessarily.
1212+ string title = 2;
1313+ // (optional but strongly recommended, string) is the URL of the resource that
1414+ // the feed describes. This resource may or may not actually be a “home” page,
1515+ // but it should be an HTML page. If a feed is published on the public web,
1616+ // this should be considered as required. But it may not make sense in the
1717+ // case of a file created on a desktop computer, when that file is not shared
1818+ // or is shared only privately.
1919+ string home_page_url = 3;
2020+ // (optional but strongly recommended, string) is the URL of the feed, and
2121+ // serves as the unique identifier for the feed. As with home_page_url, this
2222+ // should be considered required for feeds on the public web.
2323+ string feed_url = 4;
2424+ // (optional, string) provides more detail, beyond the title, on what the feed
2525+ // is about. A feed reader may display this text.
2626+ string description = 5;
2727+ // (optional, string) is a description of the purpose of the feed. This is for
2828+ // the use of people looking at the raw Protobuf, and should be ignored by
2929+ // feed readers.
3030+ string user_comment = 6;
3131+ // (optional, string) is the URL of an image for the feed suitable to be used
3232+ // in a source list. It should be square and relatively large — such as 512 x
3333+ // 512 — so that it can be scaled down and so that it can look good on retina
3434+ // displays. It should use transparency where appropriate, since it may be
3535+ // rendered on a non-white background.
3636+ string icon = 7;
3737+ // (optional, string) is the URL of an image for the feed suitable to be used
3838+ // in a source list. It should be square and relatively small, but not smaller
3939+ // than 64 x 64.
4040+ string favicon = 8;
4141+ // (optional, array of objects) specifies the feed authors.
4242+ repeated Author authors = 9;
4343+ // (optional, string) is the primary language for the feed.
4444+ string language = 10;
4545+ // (optional, boolean) says whether or not the feed is finished — that is,
4646+ // whether or not it will ever update again. A feed for a temporary event,
4747+ // such as an instance of the Olympics, could expire. If the value is true,
4848+ // then it’s expired. Any other value, or the absence of expired, means the
4949+ // feed may continue to update.
5050+ bool expired = 11;
5151+ // (required, array of objects) contains the items in the feed. This is the
5252+ // most important element of the feed after the version field. Each item is a
5353+ // story, blog post, article, photograph, video, or other thing. For example,
5454+ // if a feed contains a long article, a podcast episode, and a photo, those
5555+ // three items would be included in items.
5656+ repeated Item items = 12;
2157}
22585959+// Author is an object representing the author of the feed or item.
2360message Author {
2424- string name = 1; // (optional, string) is the author’s name.
2525- string url = 2; // (optional, string) is the URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. Ideally the linked-to page provides a way to contact the author, but that’s not required. The URL could be a mailto: link, though we suspect that will be rare.
2626- string avatar = 3; // (optional, string) is the URL for an image for the author. As with icon, it should be square and relatively large — such as 512 x 512 pixels — and should use transparency where appropriate, since it may be rendered on a non-white background.
6161+ // (optional, string) is the author’s name.
6262+ string name = 1;
6363+ // (optional, string) is the URL of a site owned by the author. It could be a
6464+ // blog, micro-blog, Twitter account, and so on. Ideally the linked-to page
6565+ // provides a way to contact the author, but that’s not required. The URL
6666+ // could be a mailto: link, though we suspect that will be rare.
6767+ string url = 2;
6868+ // (optional, string) is the URL for an image for the author. As with icon, it
6969+ // should be square and relatively large — such as 512 x 512 pixels — and
7070+ // should use transparency where appropriate, since it may be rendered on a
7171+ // non-white background.
7272+ string avatar = 3;
2773}
28747575+// Item is an object representing a single story, blog post, article,
7676+// photograph, video, or other thing within a feed.
2977message Item {
3030- string id = 1; // (required, string) is unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. New items should never use a previously-used id. If an id is presented as a number or other type, a JSON Feed reader must coerce it to a string. Ideally, the id is the full URL of the resource described by the item, since URLs make great unique identifiers.
3131- string url = 2; // (optional, string) is the URL of the resource described by the item. It’s the permalink. This may be the same as the id — but should be present regardless.
3232- string external_url = 3; // (optional, string) is the URL of a page elsewhere. This is especially useful for linkblogs. If url links to where you’re talking about a thing, then external_url links to the thing you’re talking about.
3333- string title = 4; // (optional, string) is plain text. Microblog items in particular may omit titles.
3434- string content_text = 5; // (optional, string) is the body of the item. It can be plain text, HTML, or a snippet of Markdown. (It should not be the entire Markdown document; just a snippet.) This is complete enough that it can be displayed alone in a reader.
3535- string content_html = 6; // (optional, string) is the body of the item. It can be plain text, HTML, or a snippet of Markdown. (It should not be the entire Markdown document; just a snippet.) This is complete enough that it can be displayed alone in a reader.
3636- string summary = 7; // (optional, string) is a plain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of content_html or content_text.
3737- string image = 8; // (optional, string) is the URL of the main image for the item. This image may also appear in the content_html — if so, it’s a hint to the feed reader that this is the main, featured image. Even if it’s not, it will appear in the detail view. Images should be square, with a 4:3 aspect ratio. (We will be flexible on this in the future.)
3838- string banner_image = 9; // (optional, string) is the URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image in the list view from the detail view. In those systems, this image should be used in the list view, and image in the detail view.
3939- google.protobuf.Timestamp date_published = 10; // (optional, string) specifies the date in RFC 3339 format. (Example: 2010-02-07T14:04:00-05:00.)
4040- google.protobuf.Timestamp date_modified = 11; // (optional, string) specifies the modification date in RFC 3339 format.
4141- repeated Author authors = 12; // (optional, array of objects) has the same structure as the top-level authors. If not specified in an item, then the top-level authors, if present, are the authors of the item.
4242- repeated string tags = 13; // (optional, array of strings) can have any plain text values you want. Tags tend to be just one word, but they may be anything. Note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories.
4343- string language = 14; // (optional, string) is the language for this item, using the same format as the top-level language field. The value can be different than the primary language for the feed when a specific item is written in a different language than other items in the feed.
4444- repeated Attachement attachments = 15; // (optional, array of objects) specifies the attachments associated with the item. Attachments are files that are associated with an item. The value of the attachments field is an array of objects, each of which has a url field, and other fields as specified in the attachment object definition.
7878+ // (required, string) is unique for that item for that feed over time. If an
7979+ // item is ever updated, the id should be unchanged. New items should never
8080+ // use a previously-used id. If an id is presented as a number or other type,
8181+ // a JSON Feed reader must coerce it to a string. Ideally, the id is the full
8282+ // URL of the resource described by the item, since URLs make great unique
8383+ // identifiers.
8484+ string id = 1;
8585+ // (optional, string) is the URL of the resource described by the item. It’s
8686+ // the permalink. This may be the same as the id — but should be present
8787+ // regardless.
8888+ string url = 2;
8989+ // (optional, string) is the URL of a page elsewhere. This is especially
9090+ // useful for linkblogs. If url links to where you’re talking about a thing,
9191+ // then external_url links to the thing you’re talking about.
9292+ string external_url = 3;
9393+ // (optional, string) is plain text. Microblog items in particular may omit
9494+ // titles.
9595+ string title = 4;
9696+ // (optional, string) is the body of the item. It can be plain text, HTML, or
9797+ // a snippet of Markdown. (It should not be the entire Markdown document; just
9898+ // a snippet.) This is complete enough that it can be displayed alone in a
9999+ // reader.
100100+ string content_text = 5;
101101+ // (optional, string) is the body of the item. It can be plain text, HTML, or
102102+ // a snippet of Markdown. (It should not be the entire Markdown document; just
103103+ // a snippet.) This is complete enough that it can be displayed alone in a
104104+ // reader.
105105+ string content_html = 6;
106106+ // (optional, string) is a plain text sentence or two describing the item.
107107+ // This might be presented in a timeline, for instance, where a detail view
108108+ // would display all of content_html or content_text.
109109+ string summary = 7;
110110+ // (optional, string) is the URL of the main image for the item. This image
111111+ // may also appear in the content_html — if so, it’s a hint to the feed reader
112112+ // that this is the main, featured image. Even if it’s not, it will appear in
113113+ // the detail view. Images should be square, with a 4:3 aspect ratio. (We will
114114+ // be flexible on this in the future.)
115115+ string image = 8;
116116+ // (optional, string) is the URL of an image to use as a banner. Some blogging
117117+ // systems (such as Medium) display a different banner image in the list view
118118+ // from the detail view. In those systems, this image should be used in the
119119+ // list view, and image in the detail view.
120120+ string banner_image = 9;
121121+ // (optional, string) specifies the date in RFC 3339 format.
122122+ google.protobuf.Timestamp date_published = 10;
123123+ // (optional, string) specifies the modification date in RFC 3339 format.
124124+ google.protobuf.Timestamp date_modified = 11;
125125+ // (optional, array of objects) has the same structure as the top-level
126126+ // authors. If not specified in an item, then the top-level authors, if
127127+ // present, are the authors of the item.
128128+ repeated Author authors = 12;
129129+ // (optional, array of strings) can have any plain text values you want. Tags
130130+ // tend to be just one word, but they may be anything. Note: they are not the
131131+ // equivalent of Twitter hashtags. Some blogging systems and other feed
132132+ // formats call these categories.
133133+ repeated string tags = 13;
134134+ // (optional, string) is the language for this item, using the same format as
135135+ // the top-level language field. The value can be different than the primary
136136+ // language for the feed when a specific item is written in a different
137137+ // language than other items in the feed.
138138+ string language = 14;
139139+ // (optional, array of objects) specifies the attachments associated with the
140140+ // item. Attachments are files that are associated with an item. The value of
141141+ // the attachments field is an array of objects, each of which has a url
142142+ // field, and other fields as specified in the attachment object definition.
143143+ repeated Attachement attachments = 15;
45144}
46145146146+// Attachement is an object representing a file associated with an item.
47147message Attachement {
4848- string url = 1; // (required, string) specifies the location of the attachment.
4949- string mime_type = 2; // (required, string) specifies the type of the attachment, such as “audio/mpeg.”
5050- string title = 3; // (optional, string) specifies the title of the attachment.
5151- int32 size_in_bytes = 4; // (optional, number) specifies how large the file is.
5252- int32 duration_in_seconds = 5; // (optional, number) specifies how long it takes to listen to or watch, when played at normal speed.
148148+ // (required, string) specifies the location of the attachment.
149149+ string url = 1;
150150+ // (required, string) specifies the type of the attachment, such as
151151+ // “audio/mpeg.”
152152+ string mime_type = 2;
153153+ // (optional, string) specifies the title of the attachment.
154154+ string title = 3;
155155+ // (optional, number) specifies how large the file is.
156156+ int32 size_in_bytes = 4;
157157+ // (optional, number) specifies how long it takes to listen to or watch, when
158158+ // played at normal speed.
159159+ int32 duration_in_seconds = 5;
53160}
+220-130
pb/external/protofeed/protofeed.pb.go
···2121 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
2222)
23232424+// Feed is the root of a Proto Feed document. A feed must at least contain a
2525+// title and items.
2426type Feed struct {
2527 state protoimpl.MessageState
2628 sizeCache protoimpl.SizeCache
2729 unknownFields protoimpl.UnknownFields
28302929- Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // (required, string) is the URL of the version of the format the feed uses. This should appear at the very top, though we recognize that not all JSON generators allow for ordering.
3030- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // (required, string) is the name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily.
3131- HomePageUrl string `protobuf:"bytes,3,opt,name=home_page_url,json=homePageUrl,proto3" json:"home_page_url,omitempty"` // (optional but strongly recommended, string) is the URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. If a feed is published on the public web, this should be considered as required. But it may not make sense in the case of a file created on a desktop computer, when that file is not shared or is shared only privately.
3232- FeedUrl string `protobuf:"bytes,4,opt,name=feed_url,json=feedUrl,proto3" json:"feed_url,omitempty"` // (optional but strongly recommended, string) is the URL of the feed, and serves as the unique identifier for the feed. As with home_page_url, this should be considered required for feeds on the public web.
3333- Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // (optional, string) provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.
3434- UserComment string `protobuf:"bytes,6,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"` // (optional, string) is a description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers.
3535- NextUrl string `protobuf:"bytes,7,opt,name=next_url,json=nextUrl,proto3" json:"next_url,omitempty"` // (optional, string) is the URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often. next_url must not be the same as feed_url, and it must not be the same as a previous next_url.
3636- Icon string `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"` // (optional, string) is the URL of an image for the feed suitable to be used in a source list. It should be square and relatively large — such as 512 x 512 — so that it can be scaled down and so that it can look good on retina displays. It should use transparency where appropriate, since it may be rendered on a non-white background.
3737- Favicon string `protobuf:"bytes,9,opt,name=favicon,proto3" json:"favicon,omitempty"` // (optional, string) is the URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64.
3838- Authors []*Author `protobuf:"bytes,10,rep,name=authors,proto3" json:"authors,omitempty"` // (optional, array of objects) specifies the feed authors.
3939- Language string `protobuf:"bytes,11,opt,name=language,proto3" json:"language,omitempty"` // (optional, string) is the primary language for the feed.
4040- Expired bool `protobuf:"varint,12,opt,name=expired,proto3" json:"expired,omitempty"` // (optional, boolean) says whether or not the feed is finished — that is, whether or not it will ever update again. A feed for a temporary event, such as an instance of the Olympics, could expire. If the value is true, then it’s expired. Any other value, or the absence of expired, means the feed may continue to update.
4141- Items []*Item `protobuf:"bytes,13,rep,name=items,proto3" json:"items,omitempty"` // (required, array of objects) contains the items in the feed. This is the most important element of the feed after the version field. Each item is a story, blog post, article, photograph, video, or other thing. For example, if a feed contains a long article, a podcast episode, and a photo, those three items would be included in items.
3131+ // (required, string) is the name of the feed, which will often correspond to
3232+ // the name of the website (blog, for instance), though not necessarily.
3333+ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
3434+ // (optional but strongly recommended, string) is the URL of the resource that
3535+ // the feed describes. This resource may or may not actually be a “home” page,
3636+ // but it should be an HTML page. If a feed is published on the public web,
3737+ // this should be considered as required. But it may not make sense in the
3838+ // case of a file created on a desktop computer, when that file is not shared
3939+ // or is shared only privately.
4040+ HomePageUrl string `protobuf:"bytes,3,opt,name=home_page_url,json=homePageUrl,proto3" json:"home_page_url,omitempty"`
4141+ // (optional but strongly recommended, string) is the URL of the feed, and
4242+ // serves as the unique identifier for the feed. As with home_page_url, this
4343+ // should be considered required for feeds on the public web.
4444+ FeedUrl string `protobuf:"bytes,4,opt,name=feed_url,json=feedUrl,proto3" json:"feed_url,omitempty"`
4545+ // (optional, string) provides more detail, beyond the title, on what the feed
4646+ // is about. A feed reader may display this text.
4747+ Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
4848+ // (optional, string) is a description of the purpose of the feed. This is for
4949+ // the use of people looking at the raw Protobuf, and should be ignored by
5050+ // feed readers.
5151+ UserComment string `protobuf:"bytes,6,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
5252+ // (optional, string) is the URL of an image for the feed suitable to be used
5353+ // in a source list. It should be square and relatively large — such as 512 x
5454+ // 512 — so that it can be scaled down and so that it can look good on retina
5555+ // displays. It should use transparency where appropriate, since it may be
5656+ // rendered on a non-white background.
5757+ Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
5858+ // (optional, string) is the URL of an image for the feed suitable to be used
5959+ // in a source list. It should be square and relatively small, but not smaller
6060+ // than 64 x 64.
6161+ Favicon string `protobuf:"bytes,8,opt,name=favicon,proto3" json:"favicon,omitempty"`
6262+ // (optional, array of objects) specifies the feed authors.
6363+ Authors []*Author `protobuf:"bytes,9,rep,name=authors,proto3" json:"authors,omitempty"`
6464+ // (optional, string) is the primary language for the feed.
6565+ Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
6666+ // (optional, boolean) says whether or not the feed is finished — that is,
6767+ // whether or not it will ever update again. A feed for a temporary event,
6868+ // such as an instance of the Olympics, could expire. If the value is true,
6969+ // then it’s expired. Any other value, or the absence of expired, means the
7070+ // feed may continue to update.
7171+ Expired bool `protobuf:"varint,11,opt,name=expired,proto3" json:"expired,omitempty"`
7272+ // (required, array of objects) contains the items in the feed. This is the
7373+ // most important element of the feed after the version field. Each item is a
7474+ // story, blog post, article, photograph, video, or other thing. For example,
7575+ // if a feed contains a long article, a podcast episode, and a photo, those
7676+ // three items would be included in items.
7777+ Items []*Item `protobuf:"bytes,12,rep,name=items,proto3" json:"items,omitempty"`
4278}
43794480func (x *Feed) Reset() {
···73109 return file_protofeed_proto_rawDescGZIP(), []int{0}
74110}
751117676-func (x *Feed) GetVersion() string {
7777- if x != nil {
7878- return x.Version
7979- }
8080- return ""
8181-}
8282-83112func (x *Feed) GetTitle() string {
84113 if x != nil {
85114 return x.Title
···111140func (x *Feed) GetUserComment() string {
112141 if x != nil {
113142 return x.UserComment
114114- }
115115- return ""
116116-}
117117-118118-func (x *Feed) GetNextUrl() string {
119119- if x != nil {
120120- return x.NextUrl
121143 }
122144 return ""
123145}
···164186 return nil
165187}
166188189189+// Author is an object representing the author of the feed or item.
167190type Author struct {
168191 state protoimpl.MessageState
169192 sizeCache protoimpl.SizeCache
170193 unknownFields protoimpl.UnknownFields
171194172172- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // (optional, string) is the author’s name.
173173- Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // (optional, string) is the URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. Ideally the linked-to page provides a way to contact the author, but that’s not required. The URL could be a mailto: link, though we suspect that will be rare.
174174- Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // (optional, string) is the URL for an image for the author. As with icon, it should be square and relatively large — such as 512 x 512 pixels — and should use transparency where appropriate, since it may be rendered on a non-white background.
195195+ // (optional, string) is the author’s name.
196196+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
197197+ // (optional, string) is the URL of a site owned by the author. It could be a
198198+ // blog, micro-blog, Twitter account, and so on. Ideally the linked-to page
199199+ // provides a way to contact the author, but that’s not required. The URL
200200+ // could be a mailto: link, though we suspect that will be rare.
201201+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
202202+ // (optional, string) is the URL for an image for the author. As with icon, it
203203+ // should be square and relatively large — such as 512 x 512 pixels — and
204204+ // should use transparency where appropriate, since it may be rendered on a
205205+ // non-white background.
206206+ Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
175207}
176208177209func (x *Author) Reset() {
···227259 return ""
228260}
229261262262+// Item is an object representing a single story, blog post, article,
263263+// photograph, video, or other thing within a feed.
230264type Item struct {
231265 state protoimpl.MessageState
232266 sizeCache protoimpl.SizeCache
233267 unknownFields protoimpl.UnknownFields
234268235235- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // (required, string) is unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. New items should never use a previously-used id. If an id is presented as a number or other type, a JSON Feed reader must coerce it to a string. Ideally, the id is the full URL of the resource described by the item, since URLs make great unique identifiers.
236236- Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // (optional, string) is the URL of the resource described by the item. It’s the permalink. This may be the same as the id — but should be present regardless.
237237- ExternalUrl string `protobuf:"bytes,3,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"` // (optional, string) is the URL of a page elsewhere. This is especially useful for linkblogs. If url links to where you’re talking about a thing, then external_url links to the thing you’re talking about.
238238- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // (optional, string) is plain text. Microblog items in particular may omit titles.
239239- ContentText string `protobuf:"bytes,5,opt,name=content_text,json=contentText,proto3" json:"content_text,omitempty"` // (optional, string) is the body of the item. It can be plain text, HTML, or a snippet of Markdown. (It should not be the entire Markdown document; just a snippet.) This is complete enough that it can be displayed alone in a reader.
240240- ContentHtml string `protobuf:"bytes,6,opt,name=content_html,json=contentHtml,proto3" json:"content_html,omitempty"` // (optional, string) is the body of the item. It can be plain text, HTML, or a snippet of Markdown. (It should not be the entire Markdown document; just a snippet.) This is complete enough that it can be displayed alone in a reader.
241241- Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"` // (optional, string) is a plain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of content_html or content_text.
242242- Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` // (optional, string) is the URL of the main image for the item. This image may also appear in the content_html — if so, it’s a hint to the feed reader that this is the main, featured image. Even if it’s not, it will appear in the detail view. Images should be square, with a 4:3 aspect ratio. (We will be flexible on this in the future.)
243243- BannerImage string `protobuf:"bytes,9,opt,name=banner_image,json=bannerImage,proto3" json:"banner_image,omitempty"` // (optional, string) is the URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image in the list view from the detail view. In those systems, this image should be used in the list view, and image in the detail view.
244244- DatePublished *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=date_published,json=datePublished,proto3" json:"date_published,omitempty"` // (optional, string) specifies the date in RFC 3339 format. (Example: 2010-02-07T14:04:00-05:00.)
245245- DateModified *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=date_modified,json=dateModified,proto3" json:"date_modified,omitempty"` // (optional, string) specifies the modification date in RFC 3339 format.
246246- Authors []*Author `protobuf:"bytes,12,rep,name=authors,proto3" json:"authors,omitempty"` // (optional, array of objects) has the same structure as the top-level authors. If not specified in an item, then the top-level authors, if present, are the authors of the item.
247247- Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"` // (optional, array of strings) can have any plain text values you want. Tags tend to be just one word, but they may be anything. Note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories.
248248- Language string `protobuf:"bytes,14,opt,name=language,proto3" json:"language,omitempty"` // (optional, string) is the language for this item, using the same format as the top-level language field. The value can be different than the primary language for the feed when a specific item is written in a different language than other items in the feed.
249249- Attachments []*Attachement `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"` // (optional, array of objects) specifies the attachments associated with the item. Attachments are files that are associated with an item. The value of the attachments field is an array of objects, each of which has a url field, and other fields as specified in the attachment object definition.
269269+ // (required, string) is unique for that item for that feed over time. If an
270270+ // item is ever updated, the id should be unchanged. New items should never
271271+ // use a previously-used id. If an id is presented as a number or other type,
272272+ // a JSON Feed reader must coerce it to a string. Ideally, the id is the full
273273+ // URL of the resource described by the item, since URLs make great unique
274274+ // identifiers.
275275+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
276276+ // (optional, string) is the URL of the resource described by the item. It’s
277277+ // the permalink. This may be the same as the id — but should be present
278278+ // regardless.
279279+ Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
280280+ // (optional, string) is the URL of a page elsewhere. This is especially
281281+ // useful for linkblogs. If url links to where you’re talking about a thing,
282282+ // then external_url links to the thing you’re talking about.
283283+ ExternalUrl string `protobuf:"bytes,3,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"`
284284+ // (optional, string) is plain text. Microblog items in particular may omit
285285+ // titles.
286286+ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
287287+ // (optional, string) is the body of the item. It can be plain text, HTML, or
288288+ // a snippet of Markdown. (It should not be the entire Markdown document; just
289289+ // a snippet.) This is complete enough that it can be displayed alone in a
290290+ // reader.
291291+ ContentText string `protobuf:"bytes,5,opt,name=content_text,json=contentText,proto3" json:"content_text,omitempty"`
292292+ // (optional, string) is the body of the item. It can be plain text, HTML, or
293293+ // a snippet of Markdown. (It should not be the entire Markdown document; just
294294+ // a snippet.) This is complete enough that it can be displayed alone in a
295295+ // reader.
296296+ ContentHtml string `protobuf:"bytes,6,opt,name=content_html,json=contentHtml,proto3" json:"content_html,omitempty"`
297297+ // (optional, string) is a plain text sentence or two describing the item.
298298+ // This might be presented in a timeline, for instance, where a detail view
299299+ // would display all of content_html or content_text.
300300+ Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"`
301301+ // (optional, string) is the URL of the main image for the item. This image
302302+ // may also appear in the content_html — if so, it’s a hint to the feed reader
303303+ // that this is the main, featured image. Even if it’s not, it will appear in
304304+ // the detail view. Images should be square, with a 4:3 aspect ratio. (We will
305305+ // be flexible on this in the future.)
306306+ Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
307307+ // (optional, string) is the URL of an image to use as a banner. Some blogging
308308+ // systems (such as Medium) display a different banner image in the list view
309309+ // from the detail view. In those systems, this image should be used in the
310310+ // list view, and image in the detail view.
311311+ BannerImage string `protobuf:"bytes,9,opt,name=banner_image,json=bannerImage,proto3" json:"banner_image,omitempty"`
312312+ // (optional, string) specifies the date in RFC 3339 format.
313313+ DatePublished *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=date_published,json=datePublished,proto3" json:"date_published,omitempty"`
314314+ // (optional, string) specifies the modification date in RFC 3339 format.
315315+ DateModified *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=date_modified,json=dateModified,proto3" json:"date_modified,omitempty"`
316316+ // (optional, array of objects) has the same structure as the top-level
317317+ // authors. If not specified in an item, then the top-level authors, if
318318+ // present, are the authors of the item.
319319+ Authors []*Author `protobuf:"bytes,12,rep,name=authors,proto3" json:"authors,omitempty"`
320320+ // (optional, array of strings) can have any plain text values you want. Tags
321321+ // tend to be just one word, but they may be anything. Note: they are not the
322322+ // equivalent of Twitter hashtags. Some blogging systems and other feed
323323+ // formats call these categories.
324324+ Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
325325+ // (optional, string) is the language for this item, using the same format as
326326+ // the top-level language field. The value can be different than the primary
327327+ // language for the feed when a specific item is written in a different
328328+ // language than other items in the feed.
329329+ Language string `protobuf:"bytes,14,opt,name=language,proto3" json:"language,omitempty"`
330330+ // (optional, array of objects) specifies the attachments associated with the
331331+ // item. Attachments are files that are associated with an item. The value of
332332+ // the attachments field is an array of objects, each of which has a url
333333+ // field, and other fields as specified in the attachment object definition.
334334+ Attachments []*Attachement `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"`
250335}
251336252337func (x *Item) Reset() {
···386471 return nil
387472}
388473474474+// Attachement is an object representing a file associated with an item.
389475type Attachement struct {
390476 state protoimpl.MessageState
391477 sizeCache protoimpl.SizeCache
392478 unknownFields protoimpl.UnknownFields
393479394394- Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // (required, string) specifies the location of the attachment.
395395- MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // (required, string) specifies the type of the attachment, such as “audio/mpeg.”
396396- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // (optional, string) specifies the title of the attachment.
397397- SizeInBytes int32 `protobuf:"varint,4,opt,name=size_in_bytes,json=sizeInBytes,proto3" json:"size_in_bytes,omitempty"` // (optional, number) specifies how large the file is.
398398- DurationInSeconds int32 `protobuf:"varint,5,opt,name=duration_in_seconds,json=durationInSeconds,proto3" json:"duration_in_seconds,omitempty"` // (optional, number) specifies how long it takes to listen to or watch, when played at normal speed.
480480+ // (required, string) specifies the location of the attachment.
481481+ Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
482482+ // (required, string) specifies the type of the attachment, such as
483483+ // “audio/mpeg.”
484484+ MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
485485+ // (optional, string) specifies the title of the attachment.
486486+ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
487487+ // (optional, number) specifies how large the file is.
488488+ SizeInBytes int32 `protobuf:"varint,4,opt,name=size_in_bytes,json=sizeInBytes,proto3" json:"size_in_bytes,omitempty"`
489489+ // (optional, number) specifies how long it takes to listen to or watch, when
490490+ // played at normal speed.
491491+ DurationInSeconds int32 `protobuf:"varint,5,opt,name=duration_in_seconds,json=durationInSeconds,proto3" json:"duration_in_seconds,omitempty"`
399492}
400493401494func (x *Attachement) Reset() {
···472565 0x6f, 0x12, 0x14, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72,
473566 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
474567 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
475475- 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x03, 0x0a, 0x04, 0x46, 0x65, 0x65,
476476- 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
477477- 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74,
478478- 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
479479- 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75,
480480- 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61,
481481- 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72,
482482- 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c,
483483- 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
484484- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
485485- 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
486486- 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f,
487487- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x72,
488488- 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c,
489489- 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
490490- 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18,
491491- 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x36,
492492- 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32,
493493- 0x1c, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
494494- 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61,
495495- 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
496496- 0x67, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
497497- 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x0c, 0x20,
498498- 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05,
499499- 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x65,
500500- 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65,
501501- 0x65, 0x64, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46,
502502- 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
503503- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03,
504504- 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16,
505505- 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
506506- 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x22, 0xab, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12,
507507- 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
508508- 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
509509- 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72,
510510- 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61,
511511- 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20,
512512- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f,
513513- 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
514514- 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a,
515515- 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20,
516516- 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c,
517517- 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28,
518518- 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d,
519519- 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65,
520520- 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65,
521521- 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d,
522522- 0x61, 0x67, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c,
523523- 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
524524- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
525525- 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62,
526526- 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
527527- 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
528528- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
529529- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d,
530530- 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f,
531531- 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73,
532532- 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e,
533533- 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12,
534534- 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74,
535535- 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18,
536536- 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12,
537537- 0x43, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f,
538538- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65,
539539- 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x74, 0x74, 0x61,
540540- 0x63, 0x68, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
541541- 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa6, 0x01, 0x0a, 0x0b, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65,
542542- 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
543543- 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74,
544544- 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54,
545545- 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01,
546546- 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a,
547547- 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
548548- 0x52, 0x0b, 0x73, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a,
549549- 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63,
550550- 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 0x72, 0x61,
551551- 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x25, 0x5a,
552552- 0x23, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70,
553553- 0x62, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
554554- 0x66, 0x65, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
568568+ 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x02, 0x0a, 0x04, 0x46, 0x65, 0x65,
569569+ 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
570570+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x6d, 0x65, 0x5f,
571571+ 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
572572+ 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x66,
573573+ 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66,
574574+ 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
575575+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73,
576576+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72,
577577+ 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
578578+ 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69,
579579+ 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12,
580580+ 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
581581+ 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74,
582582+ 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69,
583583+ 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65,
584584+ 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
585585+ 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20,
586586+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a,
587587+ 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
588588+ 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
589589+ 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e,
590590+ 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74,
591591+ 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74,
592592+ 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
593593+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02,
594594+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61,
595595+ 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61,
596596+ 0x72, 0x22, 0xab, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
597597+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
598598+ 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c,
599599+ 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01,
600600+ 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12,
601601+ 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
602602+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
603603+ 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e,
604604+ 0x74, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74,
605605+ 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
606606+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73,
607607+ 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
608608+ 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08,
609609+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62,
610610+ 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
611611+ 0x09, 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41,
612612+ 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64,
613613+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
614614+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
615615+ 0x6d, 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65,
616616+ 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69,
617617+ 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
618618+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
619619+ 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69,
620620+ 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20,
621621+ 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74,
622622+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f,
623623+ 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61,
624624+ 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a,
625625+ 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09,
626626+ 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x74,
627627+ 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32,
628628+ 0x21, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
629629+ 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65,
630630+ 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22,
631631+ 0xa6, 0x01, 0x0a, 0x0b, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,
632632+ 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
633633+ 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
634634+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
635635+ 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
636636+ 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f,
637637+ 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, 0x7a,
638638+ 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x75, 0x72, 0x61,
639639+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
640640+ 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
641641+ 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x25, 0x5a, 0x23, 0x78, 0x65, 0x69, 0x61,
642642+ 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x74,
643643+ 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x62,
644644+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
555645}
556646557647var (
+47-8
pb/openapi.json
···22 "components": {
33 "schemas": {
44 "xeiaso.net.BuildInfo": {
55+ "description": "BuildInfo contains metadata about a build of the site.",
56 "properties": {
67 "build_time": {
88+ "description": "When the site was last rebuilt",
79 "format": "date-time",
810 "type": "string"
911 },
1012 "commit": {
1313+ "description": "The commit of Xe/site that was built",
1114 "type": "string"
1215 },
1316 "deno_version": {
1717+ "description": "The version of Deno used to build the site",
1418 "type": "string"
1519 },
1620 "go_version": {
2121+ "description": "The version of Go running on the server",
1722 "type": "string"
1823 },
1924 "xesite_version": {
2525+ "description": "The version of the xesite binary",
2026 "type": "string"
2127 }
2228 },
2329 "type": "object"
2430 },
2531 "xeiaso.net.protofeed.Attachement": {
3232+ "description": "Attachement is an object representing a file associated with an item.",
2633 "properties": {
2734 "duration_in_seconds": {
3535+ "description": "(optional, number) specifies how long it takes to listen to or watch, when\nplayed at normal speed.",
2836 "format": "int32",
2937 "type": "integer"
3038 },
3139 "mime_type": {
4040+ "description": "(required, string) specifies the type of the attachment, such as\n“audio/mpeg.”",
3241 "type": "string"
3342 },
3443 "size_in_bytes": {
4444+ "description": "(optional, number) specifies how large the file is.",
3545 "format": "int32",
3646 "type": "integer"
3747 },
3848 "title": {
4949+ "description": "(optional, string) specifies the title of the attachment.",
3950 "type": "string"
4051 },
4152 "url": {
5353+ "description": "(required, string) specifies the location of the attachment.",
4254 "type": "string"
4355 }
4456 },
4557 "type": "object"
4658 },
4759 "xeiaso.net.protofeed.Author": {
6060+ "description": "Author is an object representing the author of the feed or item.",
4861 "properties": {
4962 "avatar": {
6363+ "description": "(optional, string) is the URL for an image for the author. As with icon, it\nshould be square and relatively large — such as 512 x 512 pixels — and\nshould use transparency where appropriate, since it may be rendered on a\nnon-white background.",
5064 "type": "string"
5165 },
5266 "name": {
6767+ "description": "(optional, string) is the author’s name.",
5368 "type": "string"
5469 },
5570 "url": {
7171+ "description": "(optional, string) is the URL of a site owned by the author. It could be a\nblog, micro-blog, Twitter account, and so on. Ideally the linked-to page\nprovides a way to contact the author, but that’s not required. The URL\ncould be a mailto: link, though we suspect that will be rare.",
5672 "type": "string"
5773 }
5874 },
5975 "type": "object"
6076 },
6177 "xeiaso.net.protofeed.Feed": {
7878+ "description": "Feed is the root of a Proto Feed document. A feed must at least contain a\ntitle and items.",
6279 "properties": {
6380 "authors": {
8181+ "description": "(optional, array of objects) specifies the feed authors.",
6482 "items": {
6583 "$ref": "#/components/schemas/xeiaso.net.protofeed.Author"
6684 },
6785 "type": "array"
6886 },
6987 "description": {
8888+ "description": "(optional, string) provides more detail, beyond the title, on what the feed\nis about. A feed reader may display this text.",
7089 "type": "string"
7190 },
7291 "expired": {
9292+ "description": "(optional, boolean) says whether or not the feed is finished — that is,\nwhether or not it will ever update again. A feed for a temporary event,\nsuch as an instance of the Olympics, could expire. If the value is true,\nthen it’s expired. Any other value, or the absence of expired, means the\nfeed may continue to update.",
7393 "type": "boolean"
7494 },
7595 "favicon": {
9696+ "description": "(optional, string) is the URL of an image for the feed suitable to be used\nin a source list. It should be square and relatively small, but not smaller\nthan 64 x 64.",
7697 "type": "string"
7798 },
7899 "feed_url": {
100100+ "description": "(optional but strongly recommended, string) is the URL of the feed, and\nserves as the unique identifier for the feed. As with home_page_url, this\nshould be considered required for feeds on the public web.",
79101 "type": "string"
80102 },
81103 "home_page_url": {
104104+ "description": "(optional but strongly recommended, string) is the URL of the resource that\nthe feed describes. This resource may or may not actually be a “home” page,\nbut it should be an HTML page. If a feed is published on the public web,\nthis should be considered as required. But it may not make sense in the\ncase of a file created on a desktop computer, when that file is not shared\nor is shared only privately.",
82105 "type": "string"
83106 },
84107 "icon": {
108108+ "description": "(optional, string) is the URL of an image for the feed suitable to be used\nin a source list. It should be square and relatively large — such as 512 x\n512 — so that it can be scaled down and so that it can look good on retina\ndisplays. It should use transparency where appropriate, since it may be\nrendered on a non-white background.",
85109 "type": "string"
86110 },
87111 "items": {
112112+ "description": "(required, array of objects) contains the items in the feed. This is the\nmost important element of the feed after the version field. Each item is a\nstory, blog post, article, photograph, video, or other thing. For example,\nif a feed contains a long article, a podcast episode, and a photo, those\nthree items would be included in items.",
88113 "items": {
89114 "$ref": "#/components/schemas/xeiaso.net.protofeed.Item"
90115 },
91116 "type": "array"
92117 },
93118 "language": {
9494- "type": "string"
9595- },
9696- "next_url": {
119119+ "description": "(optional, string) is the primary language for the feed.",
97120 "type": "string"
98121 },
99122 "title": {
123123+ "description": "(required, string) is the name of the feed, which will often correspond to\nthe name of the website (blog, for instance), though not necessarily.",
100124 "type": "string"
101125 },
102126 "user_comment": {
103103- "type": "string"
104104- },
105105- "version": {
127127+ "description": "(optional, string) is a description of the purpose of the feed. This is for\nthe use of people looking at the raw Protobuf, and should be ignored by\nfeed readers.",
106128 "type": "string"
107129 }
108130 },
109131 "type": "object"
110132 },
111133 "xeiaso.net.protofeed.Item": {
134134+ "description": "Item is an object representing a single story, blog post, article,\nphotograph, video, or other thing within a feed.",
112135 "properties": {
113136 "attachments": {
137137+ "description": "(optional, array of objects) specifies the attachments associated with the\nitem. Attachments are files that are associated with an item. The value of\nthe attachments field is an array of objects, each of which has a url\nfield, and other fields as specified in the attachment object definition.",
114138 "items": {
115139 "$ref": "#/components/schemas/xeiaso.net.protofeed.Attachement"
116140 },
117141 "type": "array"
118142 },
119143 "authors": {
144144+ "description": "(optional, array of objects) has the same structure as the top-level\nauthors. If not specified in an item, then the top-level authors, if\npresent, are the authors of the item.",
120145 "items": {
121146 "$ref": "#/components/schemas/xeiaso.net.protofeed.Author"
122147 },
123148 "type": "array"
124149 },
125150 "banner_image": {
151151+ "description": "(optional, string) is the URL of an image to use as a banner. Some blogging\nsystems (such as Medium) display a different banner image in the list view\nfrom the detail view. In those systems, this image should be used in the\nlist view, and image in the detail view.",
126152 "type": "string"
127153 },
128154 "content_html": {
155155+ "description": "(optional, string) is the body of the item. It can be plain text, HTML, or\na snippet of Markdown. (It should not be the entire Markdown document; just\na snippet.) This is complete enough that it can be displayed alone in a\nreader.",
129156 "type": "string"
130157 },
131158 "content_text": {
159159+ "description": "(optional, string) is the body of the item. It can be plain text, HTML, or\na snippet of Markdown. (It should not be the entire Markdown document; just\na snippet.) This is complete enough that it can be displayed alone in a\nreader.",
132160 "type": "string"
133161 },
134162 "date_modified": {
163163+ "description": "(optional, string) specifies the modification date in RFC 3339 format.",
135164 "format": "date-time",
136165 "type": "string"
137166 },
138167 "date_published": {
168168+ "description": "(optional, string) specifies the date in RFC 3339 format.",
139169 "format": "date-time",
140170 "type": "string"
141171 },
142172 "external_url": {
173173+ "description": "(optional, string) is the URL of a page elsewhere. This is especially\nuseful for linkblogs. If url links to where you’re talking about a thing,\nthen external_url links to the thing you’re talking about.",
143174 "type": "string"
144175 },
145176 "id": {
177177+ "description": "(required, string) is unique for that item for that feed over time. If an\nitem is ever updated, the id should be unchanged. New items should never\nuse a previously-used id. If an id is presented as a number or other type,\na JSON Feed reader must coerce it to a string. Ideally, the id is the full\nURL of the resource described by the item, since URLs make great unique\nidentifiers.",
146178 "type": "string"
147179 },
148180 "image": {
181181+ "description": "(optional, string) is the URL of the main image for the item. This image\nmay also appear in the content_html — if so, it’s a hint to the feed reader\nthat this is the main, featured image. Even if it’s not, it will appear in\nthe detail view. Images should be square, with a 4:3 aspect ratio. (We will\nbe flexible on this in the future.)",
149182 "type": "string"
150183 },
151184 "language": {
185185+ "description": "(optional, string) is the language for this item, using the same format as\nthe top-level language field. The value can be different than the primary\nlanguage for the feed when a specific item is written in a different\nlanguage than other items in the feed.",
152186 "type": "string"
153187 },
154188 "summary": {
189189+ "description": "(optional, string) is a plain text sentence or two describing the item.\nThis might be presented in a timeline, for instance, where a detail view\nwould display all of content_html or content_text.",
155190 "type": "string"
156191 },
157192 "tags": {
193193+ "description": "(optional, array of strings) can have any plain text values you want. Tags\ntend to be just one word, but they may be anything. Note: they are not the\nequivalent of Twitter hashtags. Some blogging systems and other feed\nformats call these categories.",
158194 "items": {
195195+ "description": "(optional, array of strings) can have any plain text values you want. Tags\ntend to be just one word, but they may be anything. Note: they are not the\nequivalent of Twitter hashtags. Some blogging systems and other feed\nformats call these categories.",
159196 "type": "string"
160197 },
161198 "type": "array"
162199 },
163200 "title": {
201201+ "description": "(optional, string) is plain text. Microblog items in particular may omit\ntitles.",
164202 "type": "string"
165203 },
166204 "url": {
205205+ "description": "(optional, string) is the URL of the resource described by the item. It’s\nthe permalink. This may be the same as the id — but should be present\nregardless.",
167206 "type": "string"
168207 }
169208 },
···179218 "paths": {
180219 "/api/xeiaso.net.Feed/Get": {
181220 "post": {
182182- "description": "\nGet fetches the current feed of posts",
221221+ "description": "\nGet fetches the current feed of posts.",
183222 "requestBody": {
184223 "content": {
185224 "application/json": {}
···202241 },
203242 "/api/xeiaso.net.Meta/Metadata": {
204243 "post": {
205205- "description": "\nMetadata fetches the build metadata of the version of xesite that is currently running",
244244+ "description": "\nMetadata fetches the build metadata of the version of xesite that is\ncurrently running.",
206245 "requestBody": {
207246 "content": {
208247 "application/json": {}
+11-5
pb/xesite.pb.go
···2323 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
2424)
25252626+// BuildInfo contains metadata about a build of the site.
2627type BuildInfo struct {
2728 state protoimpl.MessageState
2829 sizeCache protoimpl.SizeCache
2930 unknownFields protoimpl.UnknownFields
30313131- Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
3232- BuildTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
3333- GoVersion string `protobuf:"bytes,3,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
3434- DenoVersion string `protobuf:"bytes,4,opt,name=deno_version,json=denoVersion,proto3" json:"deno_version,omitempty"`
3535- XesiteVersion string `protobuf:"bytes,5,opt,name=xesite_version,json=xesiteVersion,proto3" json:"xesite_version,omitempty"`
3232+ // The commit of Xe/site that was built
3333+ Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
3434+ // When the site was last rebuilt
3535+ BuildTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
3636+ // The version of Go running on the server
3737+ GoVersion string `protobuf:"bytes,3,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
3838+ // The version of Deno used to build the site
3939+ DenoVersion string `protobuf:"bytes,4,opt,name=deno_version,json=denoVersion,proto3" json:"deno_version,omitempty"`
4040+ // The version of the xesite binary
4141+ XesiteVersion string `protobuf:"bytes,5,opt,name=xesite_version,json=xesiteVersion,proto3" json:"xesite_version,omitempty"`
3642}
37433844func (x *BuildInfo) Reset() {
+11-2
pb/xesite.proto
···7788import "external/protofeed.proto";
991010+// Meta lets users fetch site metadata.
1011service Meta {
1111- // Metadata fetches the build metadata of the version of xesite that is currently running
1212+ // Metadata fetches the build metadata of the version of xesite that is
1313+ // currently running.
1214 rpc Metadata(google.protobuf.Empty) returns (BuildInfo);
1315}
14161717+// BuildInfo contains metadata about a build of the site.
1518message BuildInfo {
1919+ // The commit of Xe/site that was built
1620 string commit = 1;
2121+ // When the site was last rebuilt
1722 google.protobuf.Timestamp build_time = 2;
2323+ // The version of Go running on the server
1824 string go_version = 3;
2525+ // The version of Deno used to build the site
1926 string deno_version = 4;
2727+ // The version of the xesite binary
2028 string xesite_version = 5;
2129}
22303131+// Feed lets users fetch the current feed of posts.
2332service Feed {
2424- // Get fetches the current feed of posts
3333+ // Get fetches the current feed of posts.
2534 rpc Get(google.protobuf.Empty) returns (xeiaso.net.protofeed.Feed);
2635}
+5-2
pb/xesite.twirp.go
···3434// Meta Interface
3535// ==============
36363737+// Meta lets users fetch site metadata.
3738type Meta interface {
3838- // Metadata fetches the build metadata of the version of xesite that is currently running
3939+ // Metadata fetches the build metadata of the version of xesite that is
4040+ // currently running.
3941 Metadata(context.Context, *google_protobuf.Empty) (*BuildInfo, error)
4042}
4143···529531// Feed Interface
530532// ==============
531533534534+// Feed lets users fetch the current feed of posts.
532535type Feed interface {
533533- // Get fetches the current feed of posts
536536+ // Get fetches the current feed of posts.
534537 Get(context.Context, *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error)
535538}
536539