Monorepo for Tangled
tangled.org
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.string
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 StringNSID = "sh.tangled.string"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.string", &String{})
17} //
18// RECORDTYPE: String
19type String struct {
20 LexiconTypeID string `json:"$type,const=sh.tangled.string" cborgen:"$type,const=sh.tangled.string"`
21 // contents: DEPRECATED - use files[0].content instead
22 Contents *string `json:"contents,omitempty" cborgen:"contents,omitempty"`
23 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
24 Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
25 // filename: DEPRECATED - use title instead
26 Filename *string `json:"filename,omitempty" cborgen:"filename,omitempty"`
27 Files []*String_File `json:"files" cborgen:"files"`
28 Title *string `json:"title,omitempty" cborgen:"title,omitempty"`
29}
30
31// String_File is a "file" in the sh.tangled.string schema.
32type String_File struct {
33 // content: file content
34 Content *util.LexBlob `json:"content" cborgen:"content"`
35 // name: filename including extension
36 Name string `json:"name" cborgen:"name"`
37}