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