1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.embed.external
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11func init() {
12 util.RegisterType("app.bsky.embed.external#main", &EmbedExternal{})
13} // EmbedExternal is a "main" in the app.bsky.embed.external schema.
14// A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).
15//
16// RECORDTYPE: EmbedExternal
17type EmbedExternal struct {
18 LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"`
19 External *EmbedExternal_External `json:"external" cborgen:"external"`
20}
21
22// EmbedExternal_External is a "external" in the app.bsky.embed.external schema.
23type EmbedExternal_External struct {
24 Description string `json:"description" cborgen:"description"`
25 Thumb *util.LexBlob `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
26 Title string `json:"title" cborgen:"title"`
27 Uri string `json:"uri" cborgen:"uri"`
28}
29
30// EmbedExternal_View is a "view" in the app.bsky.embed.external schema.
31//
32// RECORDTYPE: EmbedExternal_View
33type EmbedExternal_View struct {
34 LexiconTypeID string `json:"$type,const=app.bsky.embed.external#view" cborgen:"$type,const=app.bsky.embed.external#view"`
35 External *EmbedExternal_ViewExternal `json:"external" cborgen:"external"`
36}
37
38// EmbedExternal_ViewExternal is a "viewExternal" in the app.bsky.embed.external schema.
39type EmbedExternal_ViewExternal struct {
40 Description string `json:"description" cborgen:"description"`
41 Thumb *string `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
42 Title string `json:"title" cborgen:"title"`
43 Uri string `json:"uri" cborgen:"uri"`
44}