···34343535// LabelDefs_LabelValueDefinition is a "labelValueDefinition" in the com.atproto.label.defs schema.
3636//
3737-// Declares a label value and its expected interpertations and behaviors.
3737+// Declares a label value and its expected interpretations and behaviors.
3838type LabelDefs_LabelValueDefinition struct {
3939 // adultOnly: Does the user need to have adult content enabled in order to configure this label?
4040 AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"`
+5-1
api/atproto/servergetServiceAuth.go
···1818// ServerGetServiceAuth calls the XRPC method "com.atproto.server.getServiceAuth".
1919//
2020// aud: The DID of the service that the token will be used to authenticate with
2121-func ServerGetServiceAuth(ctx context.Context, c *xrpc.Client, aud string) (*ServerGetServiceAuth_Output, error) {
2121+// exp: The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.
2222+// lxm: Lexicon (XRPC) method to bind the requested token to
2323+func ServerGetServiceAuth(ctx context.Context, c *xrpc.Client, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) {
2224 var out ServerGetServiceAuth_Output
23252426 params := map[string]interface{}{
2527 "aud": aud,
2828+ "exp": exp,
2929+ "lxm": lxm,
2630 }
2731 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
2832 return nil, err
+5
api/bsky/actordefs.go
···112112//
113113// A word that the account owner has muted.
114114type ActorDefs_MutedWord struct {
115115+ // actorTarget: Groups of users to apply the muted word to. If undefined, applies to all users.
116116+ ActorTarget *string `json:"actorTarget,omitempty" cborgen:"actorTarget,omitempty"`
117117+ // expiresAt: The date and time at which the muted word will expire and no longer be applied.
118118+ ExpiresAt *string `json:"expiresAt,omitempty" cborgen:"expiresAt,omitempty"`
119119+ Id *string `json:"id,omitempty" cborgen:"id,omitempty"`
115120 // targets: The intended targets of the muted word.
116121 Targets []*string `json:"targets" cborgen:"targets"`
117122 // value: The muted word itself.
+448-7
api/bsky/cbor_gen.go
···18061806 return err
18071807 }
1808180818091809- // t.AspectRatio (bsky.EmbedImages_AspectRatio) (struct)
18091809+ // t.AspectRatio (bsky.EmbedDefs_AspectRatio) (struct)
18101810 if t.AspectRatio != nil {
1811181118121812 if len("aspectRatio") > 1000000 {
···18961896 }
1897189718981898 }
18991899- // t.AspectRatio (bsky.EmbedImages_AspectRatio) (struct)
18991899+ // t.AspectRatio (bsky.EmbedDefs_AspectRatio) (struct)
19001900 case "aspectRatio":
1901190119021902 {
···19091909 if err := cr.UnreadByte(); err != nil {
19101910 return err
19111911 }
19121912- t.AspectRatio = new(EmbedImages_AspectRatio)
19121912+ t.AspectRatio = new(EmbedDefs_AspectRatio)
19131913 if err := t.AspectRatio.UnmarshalCBOR(cr); err != nil {
19141914 return xerrors.Errorf("unmarshaling t.AspectRatio pointer: %w", err)
19151915 }
···5261526152625262 return nil
52635263}
52645264-func (t *EmbedImages_AspectRatio) MarshalCBOR(w io.Writer) error {
52645264+func (t *EmbedDefs_AspectRatio) MarshalCBOR(w io.Writer) error {
52655265 if t == nil {
52665266 _, err := w.Write(cbg.CborNull)
52675267 return err
···53205320 return nil
53215321}
5322532253235323-func (t *EmbedImages_AspectRatio) UnmarshalCBOR(r io.Reader) (err error) {
53245324- *t = EmbedImages_AspectRatio{}
53235323+func (t *EmbedDefs_AspectRatio) UnmarshalCBOR(r io.Reader) (err error) {
53245324+ *t = EmbedDefs_AspectRatio{}
5325532553265326 cr := cbg.NewCborReader(r)
53275327···53405340 }
5341534153425342 if extra > cbg.MaxLength {
53435343- return fmt.Errorf("EmbedImages_AspectRatio: map struct too large (%d)", extra)
53435343+ return fmt.Errorf("EmbedDefs_AspectRatio: map struct too large (%d)", extra)
53445344 }
5345534553465346 var name string
···6916691669176917 return nil
69186918}
69196919+func (t *EmbedVideo) MarshalCBOR(w io.Writer) error {
69206920+ if t == nil {
69216921+ _, err := w.Write(cbg.CborNull)
69226922+ return err
69236923+ }
69246924+69256925+ cw := cbg.NewCborWriter(w)
69266926+ fieldCount := 5
69276927+69286928+ if t.Alt == nil {
69296929+ fieldCount--
69306930+ }
69316931+69326932+ if t.AspectRatio == nil {
69336933+ fieldCount--
69346934+ }
69356935+69366936+ if t.Captions == nil {
69376937+ fieldCount--
69386938+ }
69396939+69406940+ if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
69416941+ return err
69426942+ }
69436943+69446944+ // t.Alt (string) (string)
69456945+ if t.Alt != nil {
69466946+69476947+ if len("alt") > 1000000 {
69486948+ return xerrors.Errorf("Value in field \"alt\" was too long")
69496949+ }
69506950+69516951+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("alt"))); err != nil {
69526952+ return err
69536953+ }
69546954+ if _, err := cw.WriteString(string("alt")); err != nil {
69556955+ return err
69566956+ }
69576957+69586958+ if t.Alt == nil {
69596959+ if _, err := cw.Write(cbg.CborNull); err != nil {
69606960+ return err
69616961+ }
69626962+ } else {
69636963+ if len(*t.Alt) > 1000000 {
69646964+ return xerrors.Errorf("Value in field t.Alt was too long")
69656965+ }
69666966+69676967+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Alt))); err != nil {
69686968+ return err
69696969+ }
69706970+ if _, err := cw.WriteString(string(*t.Alt)); err != nil {
69716971+ return err
69726972+ }
69736973+ }
69746974+ }
69756975+69766976+ // t.LexiconTypeID (string) (string)
69776977+ if len("$type") > 1000000 {
69786978+ return xerrors.Errorf("Value in field \"$type\" was too long")
69796979+ }
69806980+69816981+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("$type"))); err != nil {
69826982+ return err
69836983+ }
69846984+ if _, err := cw.WriteString(string("$type")); err != nil {
69856985+ return err
69866986+ }
69876987+69886988+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("app.bsky.embed.video"))); err != nil {
69896989+ return err
69906990+ }
69916991+ if _, err := cw.WriteString(string("app.bsky.embed.video")); err != nil {
69926992+ return err
69936993+ }
69946994+69956995+ // t.Video (util.LexBlob) (struct)
69966996+ if len("video") > 1000000 {
69976997+ return xerrors.Errorf("Value in field \"video\" was too long")
69986998+ }
69996999+70007000+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("video"))); err != nil {
70017001+ return err
70027002+ }
70037003+ if _, err := cw.WriteString(string("video")); err != nil {
70047004+ return err
70057005+ }
70067006+70077007+ if err := t.Video.MarshalCBOR(cw); err != nil {
70087008+ return err
70097009+ }
70107010+70117011+ // t.Captions ([]*bsky.EmbedVideo_Caption) (slice)
70127012+ if t.Captions != nil {
70137013+70147014+ if len("captions") > 1000000 {
70157015+ return xerrors.Errorf("Value in field \"captions\" was too long")
70167016+ }
70177017+70187018+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("captions"))); err != nil {
70197019+ return err
70207020+ }
70217021+ if _, err := cw.WriteString(string("captions")); err != nil {
70227022+ return err
70237023+ }
70247024+70257025+ if len(t.Captions) > 8192 {
70267026+ return xerrors.Errorf("Slice value in field t.Captions was too long")
70277027+ }
70287028+70297029+ if err := cw.WriteMajorTypeHeader(cbg.MajArray, uint64(len(t.Captions))); err != nil {
70307030+ return err
70317031+ }
70327032+ for _, v := range t.Captions {
70337033+ if err := v.MarshalCBOR(cw); err != nil {
70347034+ return err
70357035+ }
70367036+70377037+ }
70387038+ }
70397039+70407040+ // t.AspectRatio (bsky.EmbedDefs_AspectRatio) (struct)
70417041+ if t.AspectRatio != nil {
70427042+70437043+ if len("aspectRatio") > 1000000 {
70447044+ return xerrors.Errorf("Value in field \"aspectRatio\" was too long")
70457045+ }
70467046+70477047+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("aspectRatio"))); err != nil {
70487048+ return err
70497049+ }
70507050+ if _, err := cw.WriteString(string("aspectRatio")); err != nil {
70517051+ return err
70527052+ }
70537053+70547054+ if err := t.AspectRatio.MarshalCBOR(cw); err != nil {
70557055+ return err
70567056+ }
70577057+ }
70587058+ return nil
70597059+}
70607060+70617061+func (t *EmbedVideo) UnmarshalCBOR(r io.Reader) (err error) {
70627062+ *t = EmbedVideo{}
70637063+70647064+ cr := cbg.NewCborReader(r)
70657065+70667066+ maj, extra, err := cr.ReadHeader()
70677067+ if err != nil {
70687068+ return err
70697069+ }
70707070+ defer func() {
70717071+ if err == io.EOF {
70727072+ err = io.ErrUnexpectedEOF
70737073+ }
70747074+ }()
70757075+70767076+ if maj != cbg.MajMap {
70777077+ return fmt.Errorf("cbor input should be of type map")
70787078+ }
70797079+70807080+ if extra > cbg.MaxLength {
70817081+ return fmt.Errorf("EmbedVideo: map struct too large (%d)", extra)
70827082+ }
70837083+70847084+ var name string
70857085+ n := extra
70867086+70877087+ for i := uint64(0); i < n; i++ {
70887088+70897089+ {
70907090+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
70917091+ if err != nil {
70927092+ return err
70937093+ }
70947094+70957095+ name = string(sval)
70967096+ }
70977097+70987098+ switch name {
70997099+ // t.Alt (string) (string)
71007100+ case "alt":
71017101+71027102+ {
71037103+ b, err := cr.ReadByte()
71047104+ if err != nil {
71057105+ return err
71067106+ }
71077107+ if b != cbg.CborNull[0] {
71087108+ if err := cr.UnreadByte(); err != nil {
71097109+ return err
71107110+ }
71117111+71127112+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
71137113+ if err != nil {
71147114+ return err
71157115+ }
71167116+71177117+ t.Alt = (*string)(&sval)
71187118+ }
71197119+ }
71207120+ // t.LexiconTypeID (string) (string)
71217121+ case "$type":
71227122+71237123+ {
71247124+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
71257125+ if err != nil {
71267126+ return err
71277127+ }
71287128+71297129+ t.LexiconTypeID = string(sval)
71307130+ }
71317131+ // t.Video (util.LexBlob) (struct)
71327132+ case "video":
71337133+71347134+ {
71357135+71367136+ b, err := cr.ReadByte()
71377137+ if err != nil {
71387138+ return err
71397139+ }
71407140+ if b != cbg.CborNull[0] {
71417141+ if err := cr.UnreadByte(); err != nil {
71427142+ return err
71437143+ }
71447144+ t.Video = new(util.LexBlob)
71457145+ if err := t.Video.UnmarshalCBOR(cr); err != nil {
71467146+ return xerrors.Errorf("unmarshaling t.Video pointer: %w", err)
71477147+ }
71487148+ }
71497149+71507150+ }
71517151+ // t.Captions ([]*bsky.EmbedVideo_Caption) (slice)
71527152+ case "captions":
71537153+71547154+ maj, extra, err = cr.ReadHeader()
71557155+ if err != nil {
71567156+ return err
71577157+ }
71587158+71597159+ if extra > 8192 {
71607160+ return fmt.Errorf("t.Captions: array too large (%d)", extra)
71617161+ }
71627162+71637163+ if maj != cbg.MajArray {
71647164+ return fmt.Errorf("expected cbor array")
71657165+ }
71667166+71677167+ if extra > 0 {
71687168+ t.Captions = make([]*EmbedVideo_Caption, extra)
71697169+ }
71707170+71717171+ for i := 0; i < int(extra); i++ {
71727172+ {
71737173+ var maj byte
71747174+ var extra uint64
71757175+ var err error
71767176+ _ = maj
71777177+ _ = extra
71787178+ _ = err
71797179+71807180+ {
71817181+71827182+ b, err := cr.ReadByte()
71837183+ if err != nil {
71847184+ return err
71857185+ }
71867186+ if b != cbg.CborNull[0] {
71877187+ if err := cr.UnreadByte(); err != nil {
71887188+ return err
71897189+ }
71907190+ t.Captions[i] = new(EmbedVideo_Caption)
71917191+ if err := t.Captions[i].UnmarshalCBOR(cr); err != nil {
71927192+ return xerrors.Errorf("unmarshaling t.Captions[i] pointer: %w", err)
71937193+ }
71947194+ }
71957195+71967196+ }
71977197+71987198+ }
71997199+ }
72007200+ // t.AspectRatio (bsky.EmbedDefs_AspectRatio) (struct)
72017201+ case "aspectRatio":
72027202+72037203+ {
72047204+72057205+ b, err := cr.ReadByte()
72067206+ if err != nil {
72077207+ return err
72087208+ }
72097209+ if b != cbg.CborNull[0] {
72107210+ if err := cr.UnreadByte(); err != nil {
72117211+ return err
72127212+ }
72137213+ t.AspectRatio = new(EmbedDefs_AspectRatio)
72147214+ if err := t.AspectRatio.UnmarshalCBOR(cr); err != nil {
72157215+ return xerrors.Errorf("unmarshaling t.AspectRatio pointer: %w", err)
72167216+ }
72177217+ }
72187218+72197219+ }
72207220+72217221+ default:
72227222+ // Field doesn't exist on this type, so ignore it
72237223+ cbg.ScanForLinks(r, func(cid.Cid) {})
72247224+ }
72257225+ }
72267226+72277227+ return nil
72287228+}
72297229+func (t *EmbedVideo_Caption) MarshalCBOR(w io.Writer) error {
72307230+ if t == nil {
72317231+ _, err := w.Write(cbg.CborNull)
72327232+ return err
72337233+ }
72347234+72357235+ cw := cbg.NewCborWriter(w)
72367236+72377237+ if _, err := cw.Write([]byte{162}); err != nil {
72387238+ return err
72397239+ }
72407240+72417241+ // t.File (util.LexBlob) (struct)
72427242+ if len("file") > 1000000 {
72437243+ return xerrors.Errorf("Value in field \"file\" was too long")
72447244+ }
72457245+72467246+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("file"))); err != nil {
72477247+ return err
72487248+ }
72497249+ if _, err := cw.WriteString(string("file")); err != nil {
72507250+ return err
72517251+ }
72527252+72537253+ if err := t.File.MarshalCBOR(cw); err != nil {
72547254+ return err
72557255+ }
72567256+72577257+ // t.Lang (string) (string)
72587258+ if len("lang") > 1000000 {
72597259+ return xerrors.Errorf("Value in field \"lang\" was too long")
72607260+ }
72617261+72627262+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("lang"))); err != nil {
72637263+ return err
72647264+ }
72657265+ if _, err := cw.WriteString(string("lang")); err != nil {
72667266+ return err
72677267+ }
72687268+72697269+ if len(t.Lang) > 1000000 {
72707270+ return xerrors.Errorf("Value in field t.Lang was too long")
72717271+ }
72727272+72737273+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Lang))); err != nil {
72747274+ return err
72757275+ }
72767276+ if _, err := cw.WriteString(string(t.Lang)); err != nil {
72777277+ return err
72787278+ }
72797279+ return nil
72807280+}
72817281+72827282+func (t *EmbedVideo_Caption) UnmarshalCBOR(r io.Reader) (err error) {
72837283+ *t = EmbedVideo_Caption{}
72847284+72857285+ cr := cbg.NewCborReader(r)
72867286+72877287+ maj, extra, err := cr.ReadHeader()
72887288+ if err != nil {
72897289+ return err
72907290+ }
72917291+ defer func() {
72927292+ if err == io.EOF {
72937293+ err = io.ErrUnexpectedEOF
72947294+ }
72957295+ }()
72967296+72977297+ if maj != cbg.MajMap {
72987298+ return fmt.Errorf("cbor input should be of type map")
72997299+ }
73007300+73017301+ if extra > cbg.MaxLength {
73027302+ return fmt.Errorf("EmbedVideo_Caption: map struct too large (%d)", extra)
73037303+ }
73047304+73057305+ var name string
73067306+ n := extra
73077307+73087308+ for i := uint64(0); i < n; i++ {
73097309+73107310+ {
73117311+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
73127312+ if err != nil {
73137313+ return err
73147314+ }
73157315+73167316+ name = string(sval)
73177317+ }
73187318+73197319+ switch name {
73207320+ // t.File (util.LexBlob) (struct)
73217321+ case "file":
73227322+73237323+ {
73247324+73257325+ b, err := cr.ReadByte()
73267326+ if err != nil {
73277327+ return err
73287328+ }
73297329+ if b != cbg.CborNull[0] {
73307330+ if err := cr.UnreadByte(); err != nil {
73317331+ return err
73327332+ }
73337333+ t.File = new(util.LexBlob)
73347334+ if err := t.File.UnmarshalCBOR(cr); err != nil {
73357335+ return xerrors.Errorf("unmarshaling t.File pointer: %w", err)
73367336+ }
73377337+ }
73387338+73397339+ }
73407340+ // t.Lang (string) (string)
73417341+ case "lang":
73427342+73437343+ {
73447344+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
73457345+ if err != nil {
73467346+ return err
73477347+ }
73487348+73497349+ t.Lang = string(sval)
73507350+ }
73517351+73527352+ default:
73537353+ // Field doesn't exist on this type, so ignore it
73547354+ cbg.ScanForLinks(r, func(cid.Cid) {})
73557355+ }
73567356+ }
73577357+73587358+ return nil
73597359+}
+13
api/bsky/embeddefs.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.embed.defs
66+77+// EmbedDefs_AspectRatio is a "aspectRatio" in the app.bsky.embed.defs schema.
88+//
99+// width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
1010+type EmbedDefs_AspectRatio struct {
1111+ Height int64 `json:"height" cborgen:"height"`
1212+ Width int64 `json:"width" cborgen:"width"`
1313+}
+5-13
api/bsky/embedimages.go
···1717 Images []*EmbedImages_Image `json:"images" cborgen:"images"`
1818}
19192020-// EmbedImages_AspectRatio is a "aspectRatio" in the app.bsky.embed.images schema.
2121-//
2222-// width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
2323-type EmbedImages_AspectRatio struct {
2424- Height int64 `json:"height" cborgen:"height"`
2525- Width int64 `json:"width" cborgen:"width"`
2626-}
2727-2820// EmbedImages_Image is a "image" in the app.bsky.embed.images schema.
2921type EmbedImages_Image struct {
3022 // alt: Alt text description of the image, for accessibility.
3131- Alt string `json:"alt" cborgen:"alt"`
3232- AspectRatio *EmbedImages_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
3333- Image *util.LexBlob `json:"image" cborgen:"image"`
2323+ Alt string `json:"alt" cborgen:"alt"`
2424+ AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
2525+ Image *util.LexBlob `json:"image" cborgen:"image"`
3426}
35273628// EmbedImages_View is a "view" in the app.bsky.embed.images schema.
···4436// EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema.
4537type EmbedImages_ViewImage struct {
4638 // alt: Alt text description of the image, for accessibility.
4747- Alt string `json:"alt" cborgen:"alt"`
4848- AspectRatio *EmbedImages_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
3939+ Alt string `json:"alt" cborgen:"alt"`
4040+ AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
4941 // 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.
5042 Fullsize string `json:"fullsize" cborgen:"fullsize"`
5143 // thumb: Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.video.defs
66+77+import (
88+ "github.com/bluesky-social/indigo/lex/util"
99+)
1010+1111+// VideoDefs_JobStatus is a "jobStatus" in the app.bsky.video.defs schema.
1212+type VideoDefs_JobStatus struct {
1313+ Blob *util.LexBlob `json:"blob,omitempty" cborgen:"blob,omitempty"`
1414+ Did string `json:"did" cborgen:"did"`
1515+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
1616+ JobId string `json:"jobId" cborgen:"jobId"`
1717+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
1818+ // progress: Progress within the current processing state.
1919+ Progress *int64 `json:"progress,omitempty" cborgen:"progress,omitempty"`
2020+ // state: The state of the video processing job. All values not listed as a known value indicate that the job is in process.
2121+ State string `json:"state" cborgen:"state"`
2222+}
+30
api/bsky/videogetJobStatus.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.video.getJobStatus
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// VideoGetJobStatus_Output is the output of a app.bsky.video.getJobStatus call.
1414+type VideoGetJobStatus_Output struct {
1515+ JobStatus *VideoDefs_JobStatus `json:"jobStatus" cborgen:"jobStatus"`
1616+}
1717+1818+// VideoGetJobStatus calls the XRPC method "app.bsky.video.getJobStatus".
1919+func VideoGetJobStatus(ctx context.Context, c *xrpc.Client, jobId string) (*VideoGetJobStatus_Output, error) {
2020+ var out VideoGetJobStatus_Output
2121+2222+ params := map[string]interface{}{
2323+ "jobId": jobId,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+30
api/bsky/videogetUploadLimits.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.video.getUploadLimits
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// VideoGetUploadLimits_Output is the output of a app.bsky.video.getUploadLimits call.
1414+type VideoGetUploadLimits_Output struct {
1515+ CanUpload bool `json:"canUpload" cborgen:"canUpload"`
1616+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
1717+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
1818+ RemainingDailyBytes *int64 `json:"remainingDailyBytes,omitempty" cborgen:"remainingDailyBytes,omitempty"`
1919+ RemainingDailyVideos *int64 `json:"remainingDailyVideos,omitempty" cborgen:"remainingDailyVideos,omitempty"`
2020+}
2121+2222+// VideoGetUploadLimits calls the XRPC method "app.bsky.video.getUploadLimits".
2323+func VideoGetUploadLimits(ctx context.Context, c *xrpc.Client) (*VideoGetUploadLimits_Output, error) {
2424+ var out VideoGetUploadLimits_Output
2525+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getUploadLimits", nil, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}
+27
api/bsky/videouploadVideo.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.video.uploadVideo
66+77+import (
88+ "context"
99+ "io"
1010+1111+ "github.com/bluesky-social/indigo/xrpc"
1212+)
1313+1414+// VideoUploadVideo_Output is the output of a app.bsky.video.uploadVideo call.
1515+type VideoUploadVideo_Output struct {
1616+ JobStatus *VideoDefs_JobStatus `json:"jobStatus" cborgen:"jobStatus"`
1717+}
1818+1919+// VideoUploadVideo calls the XRPC method "app.bsky.video.uploadVideo".
2020+func VideoUploadVideo(ctx context.Context, c *xrpc.Client, input io.Reader) (*VideoUploadVideo_Output, error) {
2121+ var out VideoUploadVideo_Output
2222+ if err := c.Do(ctx, xrpc.Procedure, "video/mp4", "app.bsky.video.uploadVideo", nil, input, &out); err != nil {
2323+ return nil, err
2424+ }
2525+2626+ return &out, nil
2727+}