···69216921 }
6922692269236923 cw := cbg.NewCborWriter(w)
69246924- fieldCount := 4
69246924+ fieldCount := 7
6925692569266926 if t.Labels == nil {
69276927+ fieldCount--
69286928+ }
69296929+69306930+ if t.ReasonTypes == nil {
69316931+ fieldCount--
69326932+ }
69336933+69346934+ if t.SubjectCollections == nil {
69356935+ fieldCount--
69366936+ }
69376937+69386938+ if t.SubjectTypes == nil {
69276939 fieldCount--
69286940 }
69296941···70077019 if _, err := cw.WriteString(string(t.CreatedAt)); err != nil {
70087020 return err
70097021 }
70227022+70237023+ // t.ReasonTypes ([]*string) (slice)
70247024+ if t.ReasonTypes != nil {
70257025+70267026+ if len("reasonTypes") > 1000000 {
70277027+ return xerrors.Errorf("Value in field \"reasonTypes\" was too long")
70287028+ }
70297029+70307030+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("reasonTypes"))); err != nil {
70317031+ return err
70327032+ }
70337033+ if _, err := cw.WriteString(string("reasonTypes")); err != nil {
70347034+ return err
70357035+ }
70367036+70377037+ if len(t.ReasonTypes) > 8192 {
70387038+ return xerrors.Errorf("Slice value in field t.ReasonTypes was too long")
70397039+ }
70407040+70417041+ if err := cw.WriteMajorTypeHeader(cbg.MajArray, uint64(len(t.ReasonTypes))); err != nil {
70427042+ return err
70437043+ }
70447044+ for _, v := range t.ReasonTypes {
70457045+ if v == nil {
70467046+ if _, err := cw.Write(cbg.CborNull); err != nil {
70477047+ return err
70487048+ }
70497049+ } else {
70507050+ if len(*v) > 1000000 {
70517051+ return xerrors.Errorf("Value in field v was too long")
70527052+ }
70537053+70547054+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*v))); err != nil {
70557055+ return err
70567056+ }
70577057+ if _, err := cw.WriteString(string(*v)); err != nil {
70587058+ return err
70597059+ }
70607060+ }
70617061+70627062+ }
70637063+ }
70647064+70657065+ // t.SubjectTypes ([]*string) (slice)
70667066+ if t.SubjectTypes != nil {
70677067+70687068+ if len("subjectTypes") > 1000000 {
70697069+ return xerrors.Errorf("Value in field \"subjectTypes\" was too long")
70707070+ }
70717071+70727072+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("subjectTypes"))); err != nil {
70737073+ return err
70747074+ }
70757075+ if _, err := cw.WriteString(string("subjectTypes")); err != nil {
70767076+ return err
70777077+ }
70787078+70797079+ if len(t.SubjectTypes) > 8192 {
70807080+ return xerrors.Errorf("Slice value in field t.SubjectTypes was too long")
70817081+ }
70827082+70837083+ if err := cw.WriteMajorTypeHeader(cbg.MajArray, uint64(len(t.SubjectTypes))); err != nil {
70847084+ return err
70857085+ }
70867086+ for _, v := range t.SubjectTypes {
70877087+ if v == nil {
70887088+ if _, err := cw.Write(cbg.CborNull); err != nil {
70897089+ return err
70907090+ }
70917091+ } else {
70927092+ if len(*v) > 1000000 {
70937093+ return xerrors.Errorf("Value in field v was too long")
70947094+ }
70957095+70967096+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*v))); err != nil {
70977097+ return err
70987098+ }
70997099+ if _, err := cw.WriteString(string(*v)); err != nil {
71007100+ return err
71017101+ }
71027102+ }
71037103+71047104+ }
71057105+ }
71067106+71077107+ // t.SubjectCollections ([]string) (slice)
71087108+ if t.SubjectCollections != nil {
71097109+71107110+ if len("subjectCollections") > 1000000 {
71117111+ return xerrors.Errorf("Value in field \"subjectCollections\" was too long")
71127112+ }
71137113+71147114+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("subjectCollections"))); err != nil {
71157115+ return err
71167116+ }
71177117+ if _, err := cw.WriteString(string("subjectCollections")); err != nil {
71187118+ return err
71197119+ }
71207120+71217121+ if len(t.SubjectCollections) > 8192 {
71227122+ return xerrors.Errorf("Slice value in field t.SubjectCollections was too long")
71237123+ }
71247124+71257125+ if err := cw.WriteMajorTypeHeader(cbg.MajArray, uint64(len(t.SubjectCollections))); err != nil {
71267126+ return err
71277127+ }
71287128+ for _, v := range t.SubjectCollections {
71297129+ if len(v) > 1000000 {
71307130+ return xerrors.Errorf("Value in field v was too long")
71317131+ }
71327132+71337133+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(v))); err != nil {
71347134+ return err
71357135+ }
71367136+ if _, err := cw.WriteString(string(v)); err != nil {
71377137+ return err
71387138+ }
71397139+71407140+ }
71417141+ }
70107142 return nil
70117143}
70127144···7035716770367168 n := extra
7037716970387038- nameBuf := make([]byte, 9)
71707170+ nameBuf := make([]byte, 18)
70397171 for i := uint64(0); i < n; i++ {
70407172 nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000)
70417173 if err != nil {
···71127244 }
7113724571147246 t.CreatedAt = string(sval)
72477247+ }
72487248+ // t.ReasonTypes ([]*string) (slice)
72497249+ case "reasonTypes":
72507250+72517251+ maj, extra, err = cr.ReadHeader()
72527252+ if err != nil {
72537253+ return err
72547254+ }
72557255+72567256+ if extra > 8192 {
72577257+ return fmt.Errorf("t.ReasonTypes: array too large (%d)", extra)
72587258+ }
72597259+72607260+ if maj != cbg.MajArray {
72617261+ return fmt.Errorf("expected cbor array")
72627262+ }
72637263+72647264+ if extra > 0 {
72657265+ t.ReasonTypes = make([]*string, extra)
72667266+ }
72677267+72687268+ for i := 0; i < int(extra); i++ {
72697269+ {
72707270+ var maj byte
72717271+ var extra uint64
72727272+ var err error
72737273+ _ = maj
72747274+ _ = extra
72757275+ _ = err
72767276+72777277+ {
72787278+ b, err := cr.ReadByte()
72797279+ if err != nil {
72807280+ return err
72817281+ }
72827282+ if b != cbg.CborNull[0] {
72837283+ if err := cr.UnreadByte(); err != nil {
72847284+ return err
72857285+ }
72867286+72877287+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
72887288+ if err != nil {
72897289+ return err
72907290+ }
72917291+72927292+ t.ReasonTypes[i] = (*string)(&sval)
72937293+ }
72947294+ }
72957295+72967296+ }
72977297+ }
72987298+ // t.SubjectTypes ([]*string) (slice)
72997299+ case "subjectTypes":
73007300+73017301+ maj, extra, err = cr.ReadHeader()
73027302+ if err != nil {
73037303+ return err
73047304+ }
73057305+73067306+ if extra > 8192 {
73077307+ return fmt.Errorf("t.SubjectTypes: array too large (%d)", extra)
73087308+ }
73097309+73107310+ if maj != cbg.MajArray {
73117311+ return fmt.Errorf("expected cbor array")
73127312+ }
73137313+73147314+ if extra > 0 {
73157315+ t.SubjectTypes = make([]*string, extra)
73167316+ }
73177317+73187318+ for i := 0; i < int(extra); i++ {
73197319+ {
73207320+ var maj byte
73217321+ var extra uint64
73227322+ var err error
73237323+ _ = maj
73247324+ _ = extra
73257325+ _ = err
73267326+73277327+ {
73287328+ b, err := cr.ReadByte()
73297329+ if err != nil {
73307330+ return err
73317331+ }
73327332+ if b != cbg.CborNull[0] {
73337333+ if err := cr.UnreadByte(); err != nil {
73347334+ return err
73357335+ }
73367336+73377337+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
73387338+ if err != nil {
73397339+ return err
73407340+ }
73417341+73427342+ t.SubjectTypes[i] = (*string)(&sval)
73437343+ }
73447344+ }
73457345+73467346+ }
73477347+ }
73487348+ // t.SubjectCollections ([]string) (slice)
73497349+ case "subjectCollections":
73507350+73517351+ maj, extra, err = cr.ReadHeader()
73527352+ if err != nil {
73537353+ return err
73547354+ }
73557355+73567356+ if extra > 8192 {
73577357+ return fmt.Errorf("t.SubjectCollections: array too large (%d)", extra)
73587358+ }
73597359+73607360+ if maj != cbg.MajArray {
73617361+ return fmt.Errorf("expected cbor array")
73627362+ }
73637363+73647364+ if extra > 0 {
73657365+ t.SubjectCollections = make([]string, extra)
73667366+ }
73677367+73687368+ for i := 0; i < int(extra); i++ {
73697369+ {
73707370+ var maj byte
73717371+ var extra uint64
73727372+ var err error
73737373+ _ = maj
73747374+ _ = extra
73757375+ _ = err
73767376+73777377+ {
73787378+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
73797379+ if err != nil {
73807380+ return err
73817381+ }
73827382+73837383+ t.SubjectCollections[i] = string(sval)
73847384+ }
73857385+73867386+ }
71157387 }
7116738871177389 default:
+2-1
api/bsky/embedvideo.go
···1818 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"`
1919 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
2020 Captions []*EmbedVideo_Caption `json:"captions,omitempty" cborgen:"captions,omitempty"`
2121- Video *util.LexBlob `json:"video" cborgen:"video"`
2121+ // video: The mp4 video file. May be up to 100mb, formerly limited to 50mb.
2222+ Video *util.LexBlob `json:"video" cborgen:"video"`
2223}
23242425// EmbedVideo_Caption is a "caption" in the app.bsky.embed.video schema.
+8-2
api/bsky/labelerdefs.go
···4141 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
4242 LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
4343 Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"`
4444- Uri string `json:"uri" cborgen:"uri"`
4545- Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
4444+ // reasonTypes: The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
4545+ ReasonTypes []*string `json:"reasonTypes,omitempty" cborgen:"reasonTypes,omitempty"`
4646+ // subjectCollections: Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
4747+ SubjectCollections []string `json:"subjectCollections,omitempty" cborgen:"subjectCollections,omitempty"`
4848+ // subjectTypes: The set of subject types (account, record, etc) this service accepts reports on.
4949+ SubjectTypes []*string `json:"subjectTypes,omitempty" cborgen:"subjectTypes,omitempty"`
5050+ Uri string `json:"uri" cborgen:"uri"`
5151+ Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
4652}
47534854// LabelerDefs_LabelerViewerState is a "labelerViewerState" in the app.bsky.labeler.defs schema.
+6
api/bsky/labelerservice.go
···2424 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2525 Labels *LabelerService_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"`
2626 Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"`
2727+ // reasonTypes: The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
2828+ ReasonTypes []*string `json:"reasonTypes,omitempty" cborgen:"reasonTypes,omitempty"`
2929+ // subjectCollections: Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
3030+ SubjectCollections []string `json:"subjectCollections,omitempty" cborgen:"subjectCollections,omitempty"`
3131+ // subjectTypes: The set of subject types (account, record, etc) this service accepts reports on.
3232+ SubjectTypes []*string `json:"subjectTypes,omitempty" cborgen:"subjectTypes,omitempty"`
2733}
28342935type LabelerService_Labels struct {
+24
api/bsky/unspecceddefs.go
···1919 Uri string `json:"uri" cborgen:"uri"`
2020}
21212222+// UnspeccedDefs_SkeletonTrend is a "skeletonTrend" in the app.bsky.unspecced.defs schema.
2323+type UnspeccedDefs_SkeletonTrend struct {
2424+ Category *string `json:"category,omitempty" cborgen:"category,omitempty"`
2525+ Dids []string `json:"dids" cborgen:"dids"`
2626+ DisplayName string `json:"displayName" cborgen:"displayName"`
2727+ Link string `json:"link" cborgen:"link"`
2828+ PostCount int64 `json:"postCount" cborgen:"postCount"`
2929+ StartedAt string `json:"startedAt" cborgen:"startedAt"`
3030+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
3131+ Topic string `json:"topic" cborgen:"topic"`
3232+}
3333+3434+// UnspeccedDefs_TrendView is a "trendView" in the app.bsky.unspecced.defs schema.
3535+type UnspeccedDefs_TrendView struct {
3636+ Actors []*ActorDefs_ProfileViewBasic `json:"actors" cborgen:"actors"`
3737+ Category *string `json:"category,omitempty" cborgen:"category,omitempty"`
3838+ DisplayName string `json:"displayName" cborgen:"displayName"`
3939+ Link string `json:"link" cborgen:"link"`
4040+ PostCount int64 `json:"postCount" cborgen:"postCount"`
4141+ StartedAt string `json:"startedAt" cborgen:"startedAt"`
4242+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
4343+ Topic string `json:"topic" cborgen:"topic"`
4444+}
4545+2246// UnspeccedDefs_TrendingTopic is a "trendingTopic" in the app.bsky.unspecced.defs schema.
2347type UnspeccedDefs_TrendingTopic struct {
2448 Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
+30
api/bsky/unspeccedgetSuggestedFeeds.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.unspecced.getSuggestedFeeds
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// UnspeccedGetSuggestedFeeds_Output is the output of a app.bsky.unspecced.getSuggestedFeeds call.
1414+type UnspeccedGetSuggestedFeeds_Output struct {
1515+ Feeds []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"`
1616+}
1717+1818+// UnspeccedGetSuggestedFeeds calls the XRPC method "app.bsky.unspecced.getSuggestedFeeds".
1919+func UnspeccedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedFeeds_Output, error) {
2020+ var out UnspeccedGetSuggestedFeeds_Output
2121+2222+ params := map[string]interface{}{
2323+ "limit": limit,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeeds", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+33
api/bsky/unspeccedgetSuggestedFeedsSkeleton.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.unspecced.getSuggestedFeedsSkeleton
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// UnspeccedGetSuggestedFeedsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedFeedsSkeleton call.
1414+type UnspeccedGetSuggestedFeedsSkeleton_Output struct {
1515+ Feeds []string `json:"feeds" cborgen:"feeds"`
1616+}
1717+1818+// UnspeccedGetSuggestedFeedsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedFeedsSkeleton".
1919+//
2020+// viewer: DID of the account making the request (not included for public/unauthenticated queries).
2121+func UnspeccedGetSuggestedFeedsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetSuggestedFeedsSkeleton_Output, error) {
2222+ var out UnspeccedGetSuggestedFeedsSkeleton_Output
2323+2424+ params := map[string]interface{}{
2525+ "limit": limit,
2626+ "viewer": viewer,
2727+ }
2828+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+30
api/bsky/unspeccedgetSuggestedStarterPacks.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.unspecced.getSuggestedStarterPacks
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// UnspeccedGetSuggestedStarterPacks_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacks call.
1414+type UnspeccedGetSuggestedStarterPacks_Output struct {
1515+ StarterPacks []*GraphDefs_StarterPackView `json:"starterPacks" cborgen:"starterPacks"`
1616+}
1717+1818+// UnspeccedGetSuggestedStarterPacks calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacks".
1919+func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) {
2020+ var out UnspeccedGetSuggestedStarterPacks_Output
2121+2222+ params := map[string]interface{}{
2323+ "limit": limit,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}