fork of indigo with slightly nicer lexgen
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/lex/util"
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 util.LexClient, jobId string) (*VideoGetJobStatus_Output, error) {
20 var out VideoGetJobStatus_Output
21
22 params := map[string]interface{}{}
23 params["jobId"] = jobId
24 if err := c.LexDo(ctx, util.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
25 return nil, err
26 }
27
28 return &out, nil
29}