A fork of https://github.com/teal-fm/piper
at main 30 lines 803 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.video.getJobStatus 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// VideoGetJobStatus_Output is the output of a app.bsky.video.getJobStatus call. 14type VideoGetJobStatus_Output struct { 15 JobStatus *VideoDefs_JobStatus `json:"jobStatus" cborgen:"jobStatus"` 16} 17 18// VideoGetJobStatus calls the XRPC method "app.bsky.video.getJobStatus". 19func VideoGetJobStatus(ctx context.Context, c *xrpc.Client, jobId string) (*VideoGetJobStatus_Output, error) { 20 var out VideoGetJobStatus_Output 21 22 params := map[string]interface{}{ 23 "jobId": jobId, 24 } 25 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil { 26 return nil, err 27 } 28 29 return &out, nil 30}