A fork of https://github.com/teal-fm/piper
at main 45 lines 2.1 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.embed.images 6 7import ( 8 "github.com/bluesky-social/indigo/lex/util" 9) 10 11func init() { 12 util.RegisterType("app.bsky.embed.images#main", &EmbedImages{}) 13} // EmbedImages is a "main" in the app.bsky.embed.images schema. 14// RECORDTYPE: EmbedImages 15type EmbedImages struct { 16 LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"` 17 Images []*EmbedImages_Image `json:"images" cborgen:"images"` 18} 19 20// EmbedImages_Image is a "image" in the app.bsky.embed.images schema. 21type EmbedImages_Image struct { 22 // alt: Alt text description of the image, for accessibility. 23 Alt string `json:"alt" cborgen:"alt"` 24 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"` 25 Image *util.LexBlob `json:"image" cborgen:"image"` 26} 27 28// EmbedImages_View is a "view" in the app.bsky.embed.images schema. 29// 30// RECORDTYPE: EmbedImages_View 31type EmbedImages_View struct { 32 LexiconTypeID string `json:"$type,const=app.bsky.embed.images#view" cborgen:"$type,const=app.bsky.embed.images#view"` 33 Images []*EmbedImages_ViewImage `json:"images" cborgen:"images"` 34} 35 36// EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema. 37type EmbedImages_ViewImage struct { 38 // alt: Alt text description of the image, for accessibility. 39 Alt string `json:"alt" cborgen:"alt"` 40 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"` 41 // fullsize: Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. 42 Fullsize string `json:"fullsize" cborgen:"fullsize"` 43 // thumb: Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. 44 Thumb string `json:"thumb" cborgen:"thumb"` 45}