···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// IdentityResolveDid_Output is the output of a com.atproto.identity.resolveDid call.
···1919// IdentityResolveDid calls the XRPC method "com.atproto.identity.resolveDid".
2020//
2121// did: DID to resolve.
2222-func IdentityResolveDid(ctx context.Context, c *xrpc.Client, did string) (*IdentityResolveDid_Output, error) {
2222+func IdentityResolveDid(ctx context.Context, c util.LexClient, did string) (*IdentityResolveDid_Output, error) {
2323 var out IdentityResolveDid_Output
24242525 params := map[string]interface{}{}
2626 params["did"] = did
2727- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/atproto/identityresolveHandle.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// IdentityResolveHandle_Output is the output of a com.atproto.identity.resolveHandle call.
···1818// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
1919//
2020// handle: The handle to resolve.
2121-func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
2121+func IdentityResolveHandle(ctx context.Context, c util.LexClient, handle string) (*IdentityResolveHandle_Output, error) {
2222 var out IdentityResolveHandle_Output
23232424 params := map[string]interface{}{}
2525 params["handle"] = handle
2626- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveHandle", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveHandle", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/atproto/identityresolveIdentity.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// IdentityResolveIdentity calls the XRPC method "com.atproto.identity.resolveIdentity".
1414//
1515// identifier: Handle or DID to resolve.
1616-func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, identifier string) (*IdentityDefs_IdentityInfo, error) {
1616+func IdentityResolveIdentity(ctx context.Context, c util.LexClient, identifier string) (*IdentityDefs_IdentityInfo, error) {
1717 var out IdentityDefs_IdentityInfo
18181919 params := map[string]interface{}{}
2020 params["identifier"] = identifier
2121- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil {
2121+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil {
2222 return nil, err
2323 }
2424
+2-3
api/atproto/identitysignPlcOperation.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// IdentitySignPlcOperation_Input is the input argument to a com.atproto.identity.signPlcOperation call.
···2827}
29283029// IdentitySignPlcOperation calls the XRPC method "com.atproto.identity.signPlcOperation".
3131-func IdentitySignPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
3030+func IdentitySignPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
3231 var out IdentitySignPlcOperation_Output
3333- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
3433 return nil, err
3534 }
3635
+2-3
api/atproto/identitysubmitPlcOperation.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// IdentitySubmitPlcOperation_Input is the input argument to a com.atproto.identity.submitPlcOperation call.
···1716}
18171918// IdentitySubmitPlcOperation calls the XRPC method "com.atproto.identity.submitPlcOperation".
2020-func IdentitySubmitPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySubmitPlcOperation_Input) error {
2121- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.submitPlcOperation", nil, input, nil); err != nil {
1919+func IdentitySubmitPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySubmitPlcOperation_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.submitPlcOperation", nil, input, nil); err != nil {
2221 return err
2322 }
2423
+3-3
api/atproto/identityupdateHandle.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.
···1717}
18181919// IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".
2020-func IdentityUpdateHandle(ctx context.Context, c *xrpc.Client, input *IdentityUpdateHandle_Input) error {
2121- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
2020+func IdentityUpdateHandle(ctx context.Context, c util.LexClient, input *IdentityUpdateHandle_Input) error {
2121+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+3-3
api/atproto/labelqueryLabels.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.
···2020//
2121// sources: Optional list of label sources (DIDs) to filter on.
2222// uriPatterns: List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.
2323-func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
2323+func LabelQueryLabels(ctx context.Context, c util.LexClient, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
2424 var out LabelQueryLabels_Output
25252626 params := map[string]interface{}{}
···3434 params["sources"] = sources
3535 }
3636 params["uriPatterns"] = uriPatterns
3737- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.label.queryLabels", params, nil, &out); err != nil {
3737+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.label.queryLabels", params, nil, &out); err != nil {
3838 return nil, err
3939 }
4040
+2-3
api/atproto/moderationcreateReport.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call.
···103102}
104103105104// ModerationCreateReport calls the XRPC method "com.atproto.moderation.createReport".
106106-func ModerationCreateReport(ctx context.Context, c *xrpc.Client, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
105105+func ModerationCreateReport(ctx context.Context, c util.LexClient, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
107106 var out ModerationCreateReport_Output
108108- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
107107+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
109108 return nil, err
110109 }
111110
+2-3
api/atproto/repoapplyWrites.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
···180179}
181180182181// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
183183-func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
182182+func RepoApplyWrites(ctx context.Context, c util.LexClient, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
184183 var out RepoApplyWrites_Output
185185- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
184184+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
186185 return nil, err
187186 }
188187
+2-3
api/atproto/repocreateRecord.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.
···3635}
37363837// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
3939-func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
3838+func RepoCreateRecord(ctx context.Context, c util.LexClient, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
4039 var out RepoCreateRecord_Output
4141- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
4040+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
4241 return nil, err
4342 }
4443
+3-3
api/atproto/repodeleteRecord.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.
···3030}
31313232// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
3333-func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
3333+func RepoDeleteRecord(ctx context.Context, c util.LexClient, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
3434 var out RepoDeleteRecord_Output
3535- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
3535+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
3636 return nil, err
3737 }
3838
+3-3
api/atproto/repodescribeRepo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
···2525// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
2626//
2727// repo: The handle or DID of the repo.
2828-func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error) {
2828+func RepoDescribeRepo(ctx context.Context, c util.LexClient, repo string) (*RepoDescribeRepo_Output, error) {
2929 var out RepoDescribeRepo_Output
30303131 params := map[string]interface{}{}
3232 params["repo"] = repo
3333- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
3434 return nil, err
3535 }
3636
+2-3
api/atproto/repogetRecord.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
···2423// collection: The NSID of the record collection.
2524// repo: The handle or DID of the repo.
2625// rkey: The Record Key.
2727-func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
2626+func RepoGetRecord(ctx context.Context, c util.LexClient, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
2827 var out RepoGetRecord_Output
29283029 params := map[string]interface{}{}
···3433 params["collection"] = collection
3534 params["repo"] = repo
3635 params["rkey"] = rkey
3737- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
3636+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
3837 return nil, err
3938 }
4039
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// RepoListMissingBlobs_Output is the output of a com.atproto.repo.listMissingBlobs call.
···2323}
24242525// RepoListMissingBlobs calls the XRPC method "com.atproto.repo.listMissingBlobs".
2626-func RepoListMissingBlobs(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) {
2626+func RepoListMissingBlobs(ctx context.Context, c util.LexClient, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) {
2727 var out RepoListMissingBlobs_Output
28282929 params := map[string]interface{}{}
···3333 if limit != 0 {
3434 params["limit"] = limit
3535 }
3636- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listMissingBlobs", params, nil, &out); err != nil {
3636+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.listMissingBlobs", params, nil, &out); err != nil {
3737 return nil, err
3838 }
3939
+2-3
api/atproto/repolistRecords.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
···3029// limit: The number of records to return.
3130// repo: The handle or DID of the repo.
3231// reverse: Flag to reverse the order of the returned records.
3333-func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
3232+func RepoListRecords(ctx context.Context, c util.LexClient, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
3433 var out RepoListRecords_Output
35343635 params := map[string]interface{}{}
···4544 if reverse {
4645 params["reverse"] = reverse
4746 }
4848- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
4747+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
4948 return nil, err
5049 }
5150
+2-3
api/atproto/repoputRecord.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
···3837}
39384039// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
4141-func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
4040+func RepoPutRecord(ctx context.Context, c util.LexClient, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
4241 var out RepoPutRecord_Output
4343- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
4242+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
4443 return nil, err
4544 }
4645
+2-3
api/atproto/repouploadBlob.go
···99 "io"
10101111 "github.com/bluesky-social/indigo/lex/util"
1212- "github.com/bluesky-social/indigo/xrpc"
1312)
14131514// RepoUploadBlob_Output is the output of a com.atproto.repo.uploadBlob call.
···1817}
19182019// RepoUploadBlob calls the XRPC method "com.atproto.repo.uploadBlob".
2121-func RepoUploadBlob(ctx context.Context, c *xrpc.Client, input io.Reader) (*RepoUploadBlob_Output, error) {
2020+func RepoUploadBlob(ctx context.Context, c util.LexClient, input io.Reader) (*RepoUploadBlob_Output, error) {
2221 var out RepoUploadBlob_Output
2323- if err := c.Do(ctx, xrpc.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
2222+ if err := c.LexDo(ctx, util.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
2423 return nil, err
2524 }
2625
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema.
···3737}
38383939// ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".
4040-func ServerDescribeServer(ctx context.Context, c *xrpc.Client) (*ServerDescribeServer_Output, error) {
4040+func ServerDescribeServer(ctx context.Context, c util.LexClient) (*ServerDescribeServer_Output, error) {
4141 var out ServerDescribeServer_Output
4242- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
4242+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
4343 return nil, err
4444 }
4545
+3-3
api/atproto/servergetAccountInviteCodes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call.
···1818// ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes".
1919//
2020// createAvailable: Controls whether any new 'earned' but not 'created' invites should be created.
2121-func ServerGetAccountInviteCodes(ctx context.Context, c *xrpc.Client, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
2121+func ServerGetAccountInviteCodes(ctx context.Context, c util.LexClient, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
2222 var out ServerGetAccountInviteCodes_Output
23232424 params := map[string]interface{}{}
···2828 if includeUsed {
2929 params["includeUsed"] = includeUsed
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/atproto/servergetServiceAuth.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerGetServiceAuth_Output is the output of a com.atproto.server.getServiceAuth call.
···2020// aud: The DID of the service that the token will be used to authenticate with
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) {
2323+func ServerGetServiceAuth(ctx context.Context, c util.LexClient, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) {
2424 var out ServerGetServiceAuth_Output
25252626 params := map[string]interface{}{}
···3131 if lxm != "" {
3232 params["lxm"] = lxm
3333 }
3434- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
3434+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
3535 return nil, err
3636 }
3737
+3-3
api/atproto/servergetSession.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerGetSession_Output is the output of a com.atproto.server.getSession call.
···2424}
25252626// ServerGetSession calls the XRPC method "com.atproto.server.getSession".
2727-func ServerGetSession(ctx context.Context, c *xrpc.Client) (*ServerGetSession_Output, error) {
2727+func ServerGetSession(ctx context.Context, c util.LexClient) (*ServerGetSession_Output, error) {
2828 var out ServerGetSession_Output
2929- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
2929+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
3030 return nil, err
3131 }
3232
+3-3
api/atproto/serverlistAppPasswords.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.
···2323}
24242525// ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".
2626-func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) {
2626+func ServerListAppPasswords(ctx context.Context, c util.LexClient) (*ServerListAppPasswords_Output, error) {
2727 var out ServerListAppPasswords_Output
2828- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/atproto/serverrefreshSession.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.
···2323}
24242525// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
2626-func ServerRefreshSession(ctx context.Context, c *xrpc.Client) (*ServerRefreshSession_Output, error) {
2626+func ServerRefreshSession(ctx context.Context, c util.LexClient) (*ServerRefreshSession_Output, error) {
2727 var out ServerRefreshSession_Output
2828- if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
2929 return nil, err
3030 }
3131
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerRequestEmailUpdate_Output is the output of a com.atproto.server.requestEmailUpdate call.
···1616}
17171818// ServerRequestEmailUpdate calls the XRPC method "com.atproto.server.requestEmailUpdate".
1919-func ServerRequestEmailUpdate(ctx context.Context, c *xrpc.Client) (*ServerRequestEmailUpdate_Output, error) {
1919+func ServerRequestEmailUpdate(ctx context.Context, c util.LexClient) (*ServerRequestEmailUpdate_Output, error) {
2020 var out ServerRequestEmailUpdate_Output
2121- if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestEmailUpdate", nil, nil, &out); err != nil {
2121+ if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.requestEmailUpdate", nil, nil, &out); err != nil {
2222 return nil, err
2323 }
2424
+3-3
api/atproto/serverrequestPasswordReset.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerRequestPasswordReset_Input is the input argument to a com.atproto.server.requestPasswordReset call.
···1616}
17171818// ServerRequestPasswordReset calls the XRPC method "com.atproto.server.requestPasswordReset".
1919-func ServerRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *ServerRequestPasswordReset_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
1919+func ServerRequestPasswordReset(ctx context.Context, c util.LexClient, input *ServerRequestPasswordReset_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/atproto/serverreserveSigningKey.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerReserveSigningKey_Input is the input argument to a com.atproto.server.reserveSigningKey call.
···2323}
24242525// ServerReserveSigningKey calls the XRPC method "com.atproto.server.reserveSigningKey".
2626-func ServerReserveSigningKey(ctx context.Context, c *xrpc.Client, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) {
2626+func ServerReserveSigningKey(ctx context.Context, c util.LexClient, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) {
2727 var out ServerReserveSigningKey_Output
2828- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/atproto/serverresetPassword.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.
···1717}
18181919// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".
2020-func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error {
2121- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
2020+func ServerResetPassword(ctx context.Context, c util.LexClient, input *ServerResetPassword_Input) error {
2121+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+3-3
api/atproto/serverrevokeAppPassword.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.
···1616}
17171818// ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".
1919-func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
1919+func ServerRevokeAppPassword(ctx context.Context, c util.LexClient, input *ServerRevokeAppPassword_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/atproto/serverupdateEmail.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.
···1919}
20202121// ServerUpdateEmail calls the XRPC method "com.atproto.server.updateEmail".
2222-func ServerUpdateEmail(ctx context.Context, c *xrpc.Client, input *ServerUpdateEmail_Input) error {
2323- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil {
2222+func ServerUpdateEmail(ctx context.Context, c util.LexClient, input *ServerUpdateEmail_Input) error {
2323+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil {
2424 return err
2525 }
2626
+3-3
api/atproto/syncgetBlob.go
···88 "bytes"
99 "context"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// SyncGetBlob calls the XRPC method "com.atproto.sync.getBlob".
1515//
1616// cid: The CID of the blob to fetch
1717// did: The DID of the account.
1818-func SyncGetBlob(ctx context.Context, c *xrpc.Client, cid string, did string) ([]byte, error) {
1818+func SyncGetBlob(ctx context.Context, c util.LexClient, cid string, did string) ([]byte, error) {
1919 buf := new(bytes.Buffer)
20202121 params := map[string]interface{}{}
2222 params["cid"] = cid
2323 params["did"] = did
2424- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlob", params, nil, buf); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getBlob", params, nil, buf); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/atproto/syncgetBlocks.go
···88 "bytes"
99 "context"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
1515//
1616// did: The DID of the repo.
1717-func SyncGetBlocks(ctx context.Context, c *xrpc.Client, cids []string, did string) ([]byte, error) {
1717+func SyncGetBlocks(ctx context.Context, c util.LexClient, cids []string, did string) ([]byte, error) {
1818 buf := new(bytes.Buffer)
19192020 params := map[string]interface{}{}
2121 params["cids"] = cids
2222 params["did"] = did
2323- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
2323+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
2424 return nil, err
2525 }
2626
+3-3
api/atproto/syncgetCheckout.go
···88 "bytes"
99 "context"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
1515//
1616// did: The DID of the repo.
1717-func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) {
1717+func SyncGetCheckout(ctx context.Context, c util.LexClient, did string) ([]byte, error) {
1818 buf := new(bytes.Buffer)
19192020 params := map[string]interface{}{}
2121 params["did"] = did
2222- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
2222+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
2323 return nil, err
2424 }
2525
+3-3
api/atproto/syncgetHead.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncGetHead_Output is the output of a com.atproto.sync.getHead call.
···1818// SyncGetHead calls the XRPC method "com.atproto.sync.getHead".
1919//
2020// did: The DID of the repo.
2121-func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error) {
2121+func SyncGetHead(ctx context.Context, c util.LexClient, did string) (*SyncGetHead_Output, error) {
2222 var out SyncGetHead_Output
23232424 params := map[string]interface{}{}
2525 params["did"] = did
2626- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHead", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getHead", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/atproto/syncgetHostStatus.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncGetHostStatus_Output is the output of a com.atproto.sync.getHostStatus call.
···2323// SyncGetHostStatus calls the XRPC method "com.atproto.sync.getHostStatus".
2424//
2525// hostname: Hostname of the host (eg, PDS or relay) being queried.
2626-func SyncGetHostStatus(ctx context.Context, c *xrpc.Client, hostname string) (*SyncGetHostStatus_Output, error) {
2626+func SyncGetHostStatus(ctx context.Context, c util.LexClient, hostname string) (*SyncGetHostStatus_Output, error) {
2727 var out SyncGetHostStatus_Output
28282929 params := map[string]interface{}{}
3030 params["hostname"] = hostname
3131- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHostStatus", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getHostStatus", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/atproto/syncgetLatestCommit.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call.
···1919// SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit".
2020//
2121// did: The DID of the repo.
2222-func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error) {
2222+func SyncGetLatestCommit(ctx context.Context, c util.LexClient, did string) (*SyncGetLatestCommit_Output, error) {
2323 var out SyncGetLatestCommit_Output
24242525 params := map[string]interface{}{}
2626 params["did"] = did
2727- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/atproto/syncgetRecord.go
···88 "bytes"
99 "context"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".
1515//
1616// did: The DID of the repo.
1717// rkey: Record Key
1818-func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, did string, rkey string) ([]byte, error) {
1818+func SyncGetRecord(ctx context.Context, c util.LexClient, collection string, did string, rkey string) ([]byte, error) {
1919 buf := new(bytes.Buffer)
20202121 params := map[string]interface{}{}
2222 params["collection"] = collection
2323 params["did"] = did
2424 params["rkey"] = rkey
2525- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil {
2525+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil {
2626 return nil, err
2727 }
2828
+3-3
api/atproto/syncgetRepo.go
···88 "bytes"
99 "context"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".
1515//
1616// did: The DID of the repo.
1717// since: The revision ('rev') of the repo to create a diff from.
1818-func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) {
1818+func SyncGetRepo(ctx context.Context, c util.LexClient, did string, since string) ([]byte, error) {
1919 buf := new(bytes.Buffer)
20202121 params := map[string]interface{}{}
···2323 if since != "" {
2424 params["since"] = since
2525 }
2626- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/atproto/syncgetRepoStatus.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call.
···2323// SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus".
2424//
2525// did: The DID of the repo.
2626-func SyncGetRepoStatus(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRepoStatus_Output, error) {
2626+func SyncGetRepoStatus(ctx context.Context, c util.LexClient, did string) (*SyncGetRepoStatus_Output, error) {
2727 var out SyncGetRepoStatus_Output
28282929 params := map[string]interface{}{}
3030 params["did"] = did
3131- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/atproto/synclistBlobs.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
···2020//
2121// did: The DID of the repo.
2222// since: Optional revision of the repo to list blobs since.
2323-func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
2323+func SyncListBlobs(ctx context.Context, c util.LexClient, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
2424 var out SyncListBlobs_Output
25252626 params := map[string]interface{}{}
···3434 if since != "" {
3535 params["since"] = since
3636 }
3737- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
3737+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
3838 return nil, err
3939 }
4040
+3-3
api/atproto/synclistHosts.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncListHosts_Host is a "host" in the com.atproto.sync.listHosts schema.
···2828}
29293030// SyncListHosts calls the XRPC method "com.atproto.sync.listHosts".
3131-func SyncListHosts(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListHosts_Output, error) {
3131+func SyncListHosts(ctx context.Context, c util.LexClient, cursor string, limit int64) (*SyncListHosts_Output, error) {
3232 var out SyncListHosts_Output
33333434 params := map[string]interface{}{}
···3838 if limit != 0 {
3939 params["limit"] = limit
4040 }
4141- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listHosts", params, nil, &out); err != nil {
4141+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listHosts", params, nil, &out); err != nil {
4242 return nil, err
4343 }
4444
+3-3
api/atproto/synclistRepos.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.
···2828}
29293030// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
3131-func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error) {
3131+func SyncListRepos(ctx context.Context, c util.LexClient, cursor string, limit int64) (*SyncListRepos_Output, error) {
3232 var out SyncListRepos_Output
33333434 params := map[string]interface{}{}
···3838 if limit != 0 {
3939 params["limit"] = limit
4040 }
4141- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listRepos", params, nil, &out); err != nil {
4141+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listRepos", params, nil, &out); err != nil {
4242 return nil, err
4343 }
4444
+3-3
api/atproto/synclistReposByCollection.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncListReposByCollection_Output is the output of a com.atproto.sync.listReposByCollection call.
···2424// SyncListReposByCollection calls the XRPC method "com.atproto.sync.listReposByCollection".
2525//
2626// limit: Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists.
2727-func SyncListReposByCollection(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64) (*SyncListReposByCollection_Output, error) {
2727+func SyncListReposByCollection(ctx context.Context, c util.LexClient, collection string, cursor string, limit int64) (*SyncListReposByCollection_Output, error) {
2828 var out SyncListReposByCollection_Output
29293030 params := map[string]interface{}{}
···3535 if limit != 0 {
3636 params["limit"] = limit
3737 }
3838- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil {
3838+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil {
3939 return nil, err
4040 }
4141
+3-3
api/atproto/syncnotifyOfUpdate.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.
···1717}
18181919// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
2020-func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error {
2121- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
2020+func SyncNotifyOfUpdate(ctx context.Context, c util.LexClient, input *SyncNotifyOfUpdate_Input) error {
2121+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+3-3
api/atproto/syncrequestCrawl.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.
···1717}
18181919// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
2020-func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error {
2121- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
2020+func SyncRequestCrawl(ctx context.Context, c util.LexClient, input *SyncRequestCrawl_Input) error {
2121+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+3-3
api/atproto/tempaddReservedHandle.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// TempAddReservedHandle_Input is the input argument to a com.atproto.temp.addReservedHandle call.
···2020}
21212222// TempAddReservedHandle calls the XRPC method "com.atproto.temp.addReservedHandle".
2323-func TempAddReservedHandle(ctx context.Context, c *xrpc.Client, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) {
2323+func TempAddReservedHandle(ctx context.Context, c util.LexClient, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) {
2424 var out TempAddReservedHandle_Output
2525- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil {
2525+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil {
2626 return nil, err
2727 }
2828
+3-3
api/atproto/tempcheckSignupQueue.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call.
···1818}
19192020// TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue".
2121-func TempCheckSignupQueue(ctx context.Context, c *xrpc.Client) (*TempCheckSignupQueue_Output, error) {
2121+func TempCheckSignupQueue(ctx context.Context, c util.LexClient) (*TempCheckSignupQueue_Output, error) {
2222 var out TempCheckSignupQueue_Output
2323- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
2323+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
2424 return nil, err
2525 }
2626
+3-3
api/atproto/tempfetchLabels.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call.
···1616}
17171818// TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels".
1919-func TempFetchLabels(ctx context.Context, c *xrpc.Client, limit int64, since int64) (*TempFetchLabels_Output, error) {
1919+func TempFetchLabels(ctx context.Context, c util.LexClient, limit int64, since int64) (*TempFetchLabels_Output, error) {
2020 var out TempFetchLabels_Output
21212222 params := map[string]interface{}{}
···2626 if since != 0 {
2727 params["since"] = since
2828 }
2929- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
2929+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
3030 return nil, err
3131 }
3232
+3-3
api/atproto/temprequestPhoneVerification.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call.
···1616}
17171818// TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification".
1919-func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
1919+func TempRequestPhoneVerification(ctx context.Context, c util.LexClient, input *TempRequestPhoneVerification_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/actorgetPreferences.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorGetPreferences_Output is the output of a app.bsky.actor.getPreferences call.
···1616}
17171818// ActorGetPreferences calls the XRPC method "app.bsky.actor.getPreferences".
1919-func ActorGetPreferences(ctx context.Context, c *xrpc.Client) (*ActorGetPreferences_Output, error) {
1919+func ActorGetPreferences(ctx context.Context, c util.LexClient) (*ActorGetPreferences_Output, error) {
2020 var out ActorGetPreferences_Output
21212222 params := map[string]interface{}{}
2323- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getPreferences", params, nil, &out); err != nil {
2323+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getPreferences", params, nil, &out); err != nil {
2424 return nil, err
2525 }
2626
+3-3
api/bsky/actorgetProfile.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorGetProfile calls the XRPC method "app.bsky.actor.getProfile".
1414//
1515// actor: Handle or DID of account to fetch profile of.
1616-func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorDefs_ProfileViewDetailed, error) {
1616+func ActorGetProfile(ctx context.Context, c util.LexClient, actor string) (*ActorDefs_ProfileViewDetailed, error) {
1717 var out ActorDefs_ProfileViewDetailed
18181919 params := map[string]interface{}{}
2020 params["actor"] = actor
2121- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfile", params, nil, &out); err != nil {
2121+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getProfile", params, nil, &out); err != nil {
2222 return nil, err
2323 }
2424
+3-3
api/bsky/actorgetProfiles.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
···1616}
17171818// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
1919-func ActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*ActorGetProfiles_Output, error) {
1919+func ActorGetProfiles(ctx context.Context, c util.LexClient, actors []string) (*ActorGetProfiles_Output, error) {
2020 var out ActorGetProfiles_Output
21212222 params := map[string]interface{}{}
2323 params["actors"] = actors
2424- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/bsky/actorgetSuggestions.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorGetSuggestions_Output is the output of a app.bsky.actor.getSuggestions call.
···1919}
20202121// ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
2222-func ActorGetSuggestions(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
2222+func ActorGetSuggestions(ctx context.Context, c util.LexClient, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
2323 var out ActorGetSuggestions_Output
24242525 params := map[string]interface{}{}
···2929 if limit != 0 {
3030 params["limit"] = limit
3131 }
3232- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getSuggestions", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getSuggestions", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/bsky/actorputPreferences.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorPutPreferences_Input is the input argument to a app.bsky.actor.putPreferences call.
···1616}
17171818// ActorPutPreferences calls the XRPC method "app.bsky.actor.putPreferences".
1919-func ActorPutPreferences(ctx context.Context, c *xrpc.Client, input *ActorPutPreferences_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.actor.putPreferences", nil, input, nil); err != nil {
1919+func ActorPutPreferences(ctx context.Context, c util.LexClient, input *ActorPutPreferences_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.actor.putPreferences", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/actorsearchActors.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorSearchActors_Output is the output of a app.bsky.actor.searchActors call.
···2020//
2121// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
2222// term: DEPRECATED: use 'q' instead.
2323-func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
2323+func ActorSearchActors(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
2424 var out ActorSearchActors_Output
25252626 params := map[string]interface{}{}
···3636 if term != "" {
3737 params["term"] = term
3838 }
3939- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
3939+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
4040 return nil, err
4141 }
4242
+3-3
api/bsky/actorsearchActorsTypeahead.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorSearchActorsTypeahead_Output is the output of a app.bsky.actor.searchActorsTypeahead call.
···1919//
2020// q: Search query prefix; not a full query string.
2121// term: DEPRECATED: use 'q' instead.
2222-func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) {
2222+func ActorSearchActorsTypeahead(ctx context.Context, c util.LexClient, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) {
2323 var out ActorSearchActorsTypeahead_Output
24242525 params := map[string]interface{}{}
···3232 if term != "" {
3333 params["term"] = term
3434 }
3535- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil {
3535+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil {
3636 return nil, err
3737 }
3838
+3-3
api/bsky/feeddescribeFeedGenerator.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedDescribeFeedGenerator_Feed is a "feed" in the app.bsky.feed.describeFeedGenerator schema.
···2929}
30303131// FeedDescribeFeedGenerator calls the XRPC method "app.bsky.feed.describeFeedGenerator".
3232-func FeedDescribeFeedGenerator(ctx context.Context, c *xrpc.Client) (*FeedDescribeFeedGenerator_Output, error) {
3232+func FeedDescribeFeedGenerator(ctx context.Context, c util.LexClient) (*FeedDescribeFeedGenerator_Output, error) {
3333 var out FeedDescribeFeedGenerator_Output
3434- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.describeFeedGenerator", nil, nil, &out); err != nil {
3434+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.describeFeedGenerator", nil, nil, &out); err != nil {
3535 return nil, err
3636 }
3737
+3-3
api/bsky/feedgetActorFeeds.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetActorFeeds_Output is the output of a app.bsky.feed.getActorFeeds call.
···1717}
18181919// FeedGetActorFeeds calls the XRPC method "app.bsky.feed.getActorFeeds".
2020-func FeedGetActorFeeds(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorFeeds_Output, error) {
2020+func FeedGetActorFeeds(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*FeedGetActorFeeds_Output, error) {
2121 var out FeedGetActorFeeds_Output
22222323 params := map[string]interface{}{}
···2828 if limit != 0 {
2929 params["limit"] = limit
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorFeeds", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getActorFeeds", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/feedgetActorLikes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call.
···1717}
18181919// FeedGetActorLikes calls the XRPC method "app.bsky.feed.getActorLikes".
2020-func FeedGetActorLikes(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
2020+func FeedGetActorLikes(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
2121 var out FeedGetActorLikes_Output
22222323 params := map[string]interface{}{}
···2828 if limit != 0 {
2929 params["limit"] = limit
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/feedgetAuthorFeed.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetAuthorFeed_Output is the output of a app.bsky.feed.getAuthorFeed call.
···1919// FeedGetAuthorFeed calls the XRPC method "app.bsky.feed.getAuthorFeed".
2020//
2121// filter: Combinations of post/repost types to include in response.
2222-func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
2222+func FeedGetAuthorFeed(ctx context.Context, c util.LexClient, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
2323 var out FeedGetAuthorFeed_Output
24242525 params := map[string]interface{}{}
···3636 if limit != 0 {
3737 params["limit"] = limit
3838 }
3939- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
3939+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
4040 return nil, err
4141 }
4242
+3-3
api/bsky/feedgetFeed.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetFeed_Output is the output of a app.bsky.feed.getFeed call.
···1717}
18181919// FeedGetFeed calls the XRPC method "app.bsky.feed.getFeed".
2020-func FeedGetFeed(ctx context.Context, c *xrpc.Client, cursor string, feed string, limit int64) (*FeedGetFeed_Output, error) {
2020+func FeedGetFeed(ctx context.Context, c util.LexClient, cursor string, feed string, limit int64) (*FeedGetFeed_Output, error) {
2121 var out FeedGetFeed_Output
22222323 params := map[string]interface{}{}
···2828 if limit != 0 {
2929 params["limit"] = limit
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/feedgetFeedGenerator.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetFeedGenerator_Output is the output of a app.bsky.feed.getFeedGenerator call.
···2222// FeedGetFeedGenerator calls the XRPC method "app.bsky.feed.getFeedGenerator".
2323//
2424// feed: AT-URI of the feed generator record.
2525-func FeedGetFeedGenerator(ctx context.Context, c *xrpc.Client, feed string) (*FeedGetFeedGenerator_Output, error) {
2525+func FeedGetFeedGenerator(ctx context.Context, c util.LexClient, feed string) (*FeedGetFeedGenerator_Output, error) {
2626 var out FeedGetFeedGenerator_Output
27272828 params := map[string]interface{}{}
2929 params["feed"] = feed
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/feedgetFeedGenerators.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetFeedGenerators_Output is the output of a app.bsky.feed.getFeedGenerators call.
···1616}
17171818// FeedGetFeedGenerators calls the XRPC method "app.bsky.feed.getFeedGenerators".
1919-func FeedGetFeedGenerators(ctx context.Context, c *xrpc.Client, feeds []string) (*FeedGetFeedGenerators_Output, error) {
1919+func FeedGetFeedGenerators(ctx context.Context, c util.LexClient, feeds []string) (*FeedGetFeedGenerators_Output, error) {
2020 var out FeedGetFeedGenerators_Output
21212222 params := map[string]interface{}{}
2323 params["feeds"] = feeds
2424- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedGenerators", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerators", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/bsky/feedgetFeedSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetFeedSkeleton_Output is the output of a app.bsky.feed.getFeedSkeleton call.
···2121// FeedGetFeedSkeleton calls the XRPC method "app.bsky.feed.getFeedSkeleton".
2222//
2323// feed: Reference to feed generator record describing the specific feed being requested.
2424-func FeedGetFeedSkeleton(ctx context.Context, c *xrpc.Client, cursor string, feed string, limit int64) (*FeedGetFeedSkeleton_Output, error) {
2424+func FeedGetFeedSkeleton(ctx context.Context, c util.LexClient, cursor string, feed string, limit int64) (*FeedGetFeedSkeleton_Output, error) {
2525 var out FeedGetFeedSkeleton_Output
26262727 params := map[string]interface{}{}
···3232 if limit != 0 {
3333 params["limit"] = limit
3434 }
3535- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedSkeleton", params, nil, &out); err != nil {
3535+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedSkeleton", params, nil, &out); err != nil {
3636 return nil, err
3737 }
3838
+3-3
api/bsky/feedgetLikes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetLikes_Like is a "like" in the app.bsky.feed.getLikes schema.
···2929//
3030// cid: CID of the subject record (aka, specific version of record), to filter likes.
3131// uri: AT-URI of the subject (eg, a post record).
3232-func FeedGetLikes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetLikes_Output, error) {
3232+func FeedGetLikes(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetLikes_Output, error) {
3333 var out FeedGetLikes_Output
34343535 params := map[string]interface{}{}
···4343 params["limit"] = limit
4444 }
4545 params["uri"] = uri
4646- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getLikes", params, nil, &out); err != nil {
4646+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getLikes", params, nil, &out); err != nil {
4747 return nil, err
4848 }
4949
+3-3
api/bsky/feedgetListFeed.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetListFeed_Output is the output of a app.bsky.feed.getListFeed call.
···1919// FeedGetListFeed calls the XRPC method "app.bsky.feed.getListFeed".
2020//
2121// list: Reference (AT-URI) to the list record.
2222-func FeedGetListFeed(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*FeedGetListFeed_Output, error) {
2222+func FeedGetListFeed(ctx context.Context, c util.LexClient, cursor string, limit int64, list string) (*FeedGetListFeed_Output, error) {
2323 var out FeedGetListFeed_Output
24242525 params := map[string]interface{}{}
···3030 params["limit"] = limit
3131 }
3232 params["list"] = list
3333- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getListFeed", params, nil, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getListFeed", params, nil, &out); err != nil {
3434 return nil, err
3535 }
3636
+2-3
api/bsky/feedgetPostThread.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// FeedGetPostThread_Output is the output of a app.bsky.feed.getPostThread call.
···6766// depth: How many levels of reply depth should be included in response.
6867// parentHeight: How many levels of parent (and grandparent, etc) post to include.
6968// uri: Reference (AT-URI) to post record.
7070-func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, parentHeight int64, uri string) (*FeedGetPostThread_Output, error) {
6969+func FeedGetPostThread(ctx context.Context, c util.LexClient, depth int64, parentHeight int64, uri string) (*FeedGetPostThread_Output, error) {
7170 var out FeedGetPostThread_Output
72717372 params := map[string]interface{}{}
···7877 params["parentHeight"] = parentHeight
7978 }
8079 params["uri"] = uri
8181- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getPostThread", params, nil, &out); err != nil {
8080+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getPostThread", params, nil, &out); err != nil {
8281 return nil, err
8382 }
8483
+3-3
api/bsky/feedgetPosts.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetPosts_Output is the output of a app.bsky.feed.getPosts call.
···1818// FeedGetPosts calls the XRPC method "app.bsky.feed.getPosts".
1919//
2020// uris: List of post AT-URIs to return hydrated views for.
2121-func FeedGetPosts(ctx context.Context, c *xrpc.Client, uris []string) (*FeedGetPosts_Output, error) {
2121+func FeedGetPosts(ctx context.Context, c util.LexClient, uris []string) (*FeedGetPosts_Output, error) {
2222 var out FeedGetPosts_Output
23232424 params := map[string]interface{}{}
2525 params["uris"] = uris
2626- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getPosts", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getPosts", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/bsky/feedgetQuotes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call.
···2222//
2323// cid: If supplied, filters to quotes of specific version (by CID) of the post record.
2424// uri: Reference (AT-URI) of post record
2525-func FeedGetQuotes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
2525+func FeedGetQuotes(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
2626 var out FeedGetQuotes_Output
27272828 params := map[string]interface{}{}
···3636 params["limit"] = limit
3737 }
3838 params["uri"] = uri
3939- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
3939+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
4040 return nil, err
4141 }
4242
+3-3
api/bsky/feedgetRepostedBy.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetRepostedBy_Output is the output of a app.bsky.feed.getRepostedBy call.
···2222//
2323// cid: If supplied, filters to reposts of specific version (by CID) of the post record.
2424// uri: Reference (AT-URI) of post record
2525-func FeedGetRepostedBy(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
2525+func FeedGetRepostedBy(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
2626 var out FeedGetRepostedBy_Output
27272828 params := map[string]interface{}{}
···3636 params["limit"] = limit
3737 }
3838 params["uri"] = uri
3939- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getRepostedBy", params, nil, &out); err != nil {
3939+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getRepostedBy", params, nil, &out); err != nil {
4040 return nil, err
4141 }
4242
+3-3
api/bsky/feedgetSuggestedFeeds.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetSuggestedFeeds_Output is the output of a app.bsky.feed.getSuggestedFeeds call.
···1717}
18181919// FeedGetSuggestedFeeds calls the XRPC method "app.bsky.feed.getSuggestedFeeds".
2020-func FeedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
2020+func FeedGetSuggestedFeeds(ctx context.Context, c util.LexClient, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
2121 var out FeedGetSuggestedFeeds_Output
22222323 params := map[string]interface{}{}
···2727 if limit != 0 {
2828 params["limit"] = limit
2929 }
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/feedgetTimeline.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedGetTimeline_Output is the output of a app.bsky.feed.getTimeline call.
···1919// FeedGetTimeline calls the XRPC method "app.bsky.feed.getTimeline".
2020//
2121// algorithm: Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.
2222-func FeedGetTimeline(ctx context.Context, c *xrpc.Client, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) {
2222+func FeedGetTimeline(ctx context.Context, c util.LexClient, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) {
2323 var out FeedGetTimeline_Output
24242525 params := map[string]interface{}{}
···3232 if limit != 0 {
3333 params["limit"] = limit
3434 }
3535- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getTimeline", params, nil, &out); err != nil {
3535+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getTimeline", params, nil, &out); err != nil {
3636 return nil, err
3737 }
3838
+3-3
api/bsky/feedsearchPosts.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedSearchPosts_Output is the output of a app.bsky.feed.searchPosts call.
···3131// tag: Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.
3232// until: Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
3333// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
3434-func FeedSearchPosts(ctx context.Context, c *xrpc.Client, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string) (*FeedSearchPosts_Output, error) {
3434+func FeedSearchPosts(ctx context.Context, c util.LexClient, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string) (*FeedSearchPosts_Output, error) {
3535 var out FeedSearchPosts_Output
36363737 params := map[string]interface{}{}
···6969 if url != "" {
7070 params["url"] = url
7171 }
7272- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil {
7272+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil {
7373 return nil, err
7474 }
7575
+3-3
api/bsky/feedsendInteractions.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// FeedSendInteractions_Input is the input argument to a app.bsky.feed.sendInteractions call.
···2020}
21212222// FeedSendInteractions calls the XRPC method "app.bsky.feed.sendInteractions".
2323-func FeedSendInteractions(ctx context.Context, c *xrpc.Client, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) {
2323+func FeedSendInteractions(ctx context.Context, c util.LexClient, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) {
2424 var out FeedSendInteractions_Output
2525- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil {
2525+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil {
2626 return nil, err
2727 }
2828
+3-3
api/bsky/graphgetActorStarterPacks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetActorStarterPacks_Output is the output of a app.bsky.graph.getActorStarterPacks call.
···1717}
18181919// GraphGetActorStarterPacks calls the XRPC method "app.bsky.graph.getActorStarterPacks".
2020-func GraphGetActorStarterPacks(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetActorStarterPacks_Output, error) {
2020+func GraphGetActorStarterPacks(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetActorStarterPacks_Output, error) {
2121 var out GraphGetActorStarterPacks_Output
22222323 params := map[string]interface{}{}
···2828 if limit != 0 {
2929 params["limit"] = limit
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/graphgetBlocks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetBlocks_Output is the output of a app.bsky.graph.getBlocks call.
···1717}
18181919// GraphGetBlocks calls the XRPC method "app.bsky.graph.getBlocks".
2020-func GraphGetBlocks(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetBlocks_Output, error) {
2020+func GraphGetBlocks(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetBlocks_Output, error) {
2121 var out GraphGetBlocks_Output
22222323 params := map[string]interface{}{}
···2727 if limit != 0 {
2828 params["limit"] = limit
2929 }
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getBlocks", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getBlocks", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/graphgetFollowers.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetFollowers_Output is the output of a app.bsky.graph.getFollowers call.
···1818}
19192020// GraphGetFollowers calls the XRPC method "app.bsky.graph.getFollowers".
2121-func GraphGetFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
2121+func GraphGetFollowers(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
2222 var out GraphGetFollowers_Output
23232424 params := map[string]interface{}{}
···2929 if limit != 0 {
3030 params["limit"] = limit
3131 }
3232- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/bsky/graphgetFollows.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetFollows_Output is the output of a app.bsky.graph.getFollows call.
···1818}
19192020// GraphGetFollows calls the XRPC method "app.bsky.graph.getFollows".
2121-func GraphGetFollows(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) {
2121+func GraphGetFollows(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) {
2222 var out GraphGetFollows_Output
23232424 params := map[string]interface{}{}
···2929 if limit != 0 {
3030 params["limit"] = limit
3131 }
3232- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/bsky/graphgetKnownFollowers.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetKnownFollowers_Output is the output of a app.bsky.graph.getKnownFollowers call.
···1818}
19192020// GraphGetKnownFollowers calls the XRPC method "app.bsky.graph.getKnownFollowers".
2121-func GraphGetKnownFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetKnownFollowers_Output, error) {
2121+func GraphGetKnownFollowers(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetKnownFollowers_Output, error) {
2222 var out GraphGetKnownFollowers_Output
23232424 params := map[string]interface{}{}
···2929 if limit != 0 {
3030 params["limit"] = limit
3131 }
3232- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/bsky/graphgetList.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetList_Output is the output of a app.bsky.graph.getList call.
···2020// GraphGetList calls the XRPC method "app.bsky.graph.getList".
2121//
2222// list: Reference (AT-URI) of the list record to hydrate.
2323-func GraphGetList(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*GraphGetList_Output, error) {
2323+func GraphGetList(ctx context.Context, c util.LexClient, cursor string, limit int64, list string) (*GraphGetList_Output, error) {
2424 var out GraphGetList_Output
25252626 params := map[string]interface{}{}
···3131 params["limit"] = limit
3232 }
3333 params["list"] = list
3434- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil {
3434+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil {
3535 return nil, err
3636 }
3737
+3-3
api/bsky/graphgetListBlocks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetListBlocks_Output is the output of a app.bsky.graph.getListBlocks call.
···1717}
18181919// GraphGetListBlocks calls the XRPC method "app.bsky.graph.getListBlocks".
2020-func GraphGetListBlocks(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetListBlocks_Output, error) {
2020+func GraphGetListBlocks(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetListBlocks_Output, error) {
2121 var out GraphGetListBlocks_Output
22222323 params := map[string]interface{}{}
···2727 if limit != 0 {
2828 params["limit"] = limit
2929 }
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getListBlocks", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getListBlocks", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/graphgetListMutes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetListMutes_Output is the output of a app.bsky.graph.getListMutes call.
···1717}
18181919// GraphGetListMutes calls the XRPC method "app.bsky.graph.getListMutes".
2020-func GraphGetListMutes(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetListMutes_Output, error) {
2020+func GraphGetListMutes(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetListMutes_Output, error) {
2121 var out GraphGetListMutes_Output
22222323 params := map[string]interface{}{}
···2727 if limit != 0 {
2828 params["limit"] = limit
2929 }
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getListMutes", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getListMutes", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/graphgetLists.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetLists_Output is the output of a app.bsky.graph.getLists call.
···1919// GraphGetLists calls the XRPC method "app.bsky.graph.getLists".
2020//
2121// actor: The account (actor) to enumerate lists from.
2222-func GraphGetLists(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetLists_Output, error) {
2222+func GraphGetLists(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetLists_Output, error) {
2323 var out GraphGetLists_Output
24242525 params := map[string]interface{}{}
···3030 if limit != 0 {
3131 params["limit"] = limit
3232 }
3333- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil {
3434 return nil, err
3535 }
3636
+3-3
api/bsky/graphgetMutes.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetMutes_Output is the output of a app.bsky.graph.getMutes call.
···1717}
18181919// GraphGetMutes calls the XRPC method "app.bsky.graph.getMutes".
2020-func GraphGetMutes(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetMutes_Output, error) {
2020+func GraphGetMutes(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetMutes_Output, error) {
2121 var out GraphGetMutes_Output
22222323 params := map[string]interface{}{}
···2727 if limit != 0 {
2828 params["limit"] = limit
2929 }
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getMutes", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getMutes", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+2-3
api/bsky/graphgetRelationships.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// GraphGetRelationships_Output is the output of a app.bsky.graph.getRelationships call.
···5857//
5958// actor: Primary account requesting relationships for.
6059// others: List of 'other' accounts to be related back to the primary.
6161-func GraphGetRelationships(ctx context.Context, c *xrpc.Client, actor string, others []string) (*GraphGetRelationships_Output, error) {
6060+func GraphGetRelationships(ctx context.Context, c util.LexClient, actor string, others []string) (*GraphGetRelationships_Output, error) {
6261 var out GraphGetRelationships_Output
63626463 params := map[string]interface{}{}
···6665 if len(others) != 0 {
6766 params["others"] = others
6867 }
6969- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil {
6868+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil {
7069 return nil, err
7170 }
7271
+3-3
api/bsky/graphgetStarterPack.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetStarterPack_Output is the output of a app.bsky.graph.getStarterPack call.
···1818// GraphGetStarterPack calls the XRPC method "app.bsky.graph.getStarterPack".
1919//
2020// starterPack: Reference (AT-URI) of the starter pack record.
2121-func GraphGetStarterPack(ctx context.Context, c *xrpc.Client, starterPack string) (*GraphGetStarterPack_Output, error) {
2121+func GraphGetStarterPack(ctx context.Context, c util.LexClient, starterPack string) (*GraphGetStarterPack_Output, error) {
2222 var out GraphGetStarterPack_Output
23232424 params := map[string]interface{}{}
2525 params["starterPack"] = starterPack
2626- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPack", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getStarterPack", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/bsky/graphgetStarterPacks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetStarterPacks_Output is the output of a app.bsky.graph.getStarterPacks call.
···1616}
17171818// GraphGetStarterPacks calls the XRPC method "app.bsky.graph.getStarterPacks".
1919-func GraphGetStarterPacks(ctx context.Context, c *xrpc.Client, uris []string) (*GraphGetStarterPacks_Output, error) {
1919+func GraphGetStarterPacks(ctx context.Context, c util.LexClient, uris []string) (*GraphGetStarterPacks_Output, error) {
2020 var out GraphGetStarterPacks_Output
21212222 params := map[string]interface{}{}
2323 params["uris"] = uris
2424- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/bsky/graphgetSuggestedFollowsByActor.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
···2020}
21212222// GraphGetSuggestedFollowsByActor calls the XRPC method "app.bsky.graph.getSuggestedFollowsByActor".
2323-func GraphGetSuggestedFollowsByActor(ctx context.Context, c *xrpc.Client, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
2323+func GraphGetSuggestedFollowsByActor(ctx context.Context, c util.LexClient, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
2424 var out GraphGetSuggestedFollowsByActor_Output
25252626 params := map[string]interface{}{}
2727 params["actor"] = actor
2828- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/bsky/graphmuteActor.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphMuteActor_Input is the input argument to a app.bsky.graph.muteActor call.
···1616}
17171818// GraphMuteActor calls the XRPC method "app.bsky.graph.muteActor".
1919-func GraphMuteActor(ctx context.Context, c *xrpc.Client, input *GraphMuteActor_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
1919+func GraphMuteActor(ctx context.Context, c util.LexClient, input *GraphMuteActor_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/graphmuteActorList.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphMuteActorList_Input is the input argument to a app.bsky.graph.muteActorList call.
···1616}
17171818// GraphMuteActorList calls the XRPC method "app.bsky.graph.muteActorList".
1919-func GraphMuteActorList(ctx context.Context, c *xrpc.Client, input *GraphMuteActorList_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActorList", nil, input, nil); err != nil {
1919+func GraphMuteActorList(ctx context.Context, c util.LexClient, input *GraphMuteActorList_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteActorList", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/graphmuteThread.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphMuteThread_Input is the input argument to a app.bsky.graph.muteThread call.
···1616}
17171818// GraphMuteThread calls the XRPC method "app.bsky.graph.muteThread".
1919-func GraphMuteThread(ctx context.Context, c *xrpc.Client, input *GraphMuteThread_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil {
1919+func GraphMuteThread(ctx context.Context, c util.LexClient, input *GraphMuteThread_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/graphsearchStarterPacks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphSearchStarterPacks_Output is the output of a app.bsky.graph.searchStarterPacks call.
···1919// GraphSearchStarterPacks calls the XRPC method "app.bsky.graph.searchStarterPacks".
2020//
2121// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
2222-func GraphSearchStarterPacks(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) {
2222+func GraphSearchStarterPacks(ctx context.Context, c util.LexClient, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) {
2323 var out GraphSearchStarterPacks_Output
24242525 params := map[string]interface{}{}
···3030 params["limit"] = limit
3131 }
3232 params["q"] = q
3333- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil {
3434 return nil, err
3535 }
3636
+3-3
api/bsky/graphunmuteActor.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphUnmuteActor_Input is the input argument to a app.bsky.graph.unmuteActor call.
···1616}
17171818// GraphUnmuteActor calls the XRPC method "app.bsky.graph.unmuteActor".
1919-func GraphUnmuteActor(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActor_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
1919+func GraphUnmuteActor(ctx context.Context, c util.LexClient, input *GraphUnmuteActor_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/graphunmuteActorList.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphUnmuteActorList_Input is the input argument to a app.bsky.graph.unmuteActorList call.
···1616}
17171818// GraphUnmuteActorList calls the XRPC method "app.bsky.graph.unmuteActorList".
1919-func GraphUnmuteActorList(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActorList_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActorList", nil, input, nil); err != nil {
1919+func GraphUnmuteActorList(ctx context.Context, c util.LexClient, input *GraphUnmuteActorList_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteActorList", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/graphunmuteThread.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// GraphUnmuteThread_Input is the input argument to a app.bsky.graph.unmuteThread call.
···1616}
17171818// GraphUnmuteThread calls the XRPC method "app.bsky.graph.unmuteThread".
1919-func GraphUnmuteThread(ctx context.Context, c *xrpc.Client, input *GraphUnmuteThread_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil {
1919+func GraphUnmuteThread(ctx context.Context, c util.LexClient, input *GraphUnmuteThread_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+2-3
api/bsky/labelergetServices.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// LabelerGetServices_Output is the output of a app.bsky.labeler.getServices call.
···5453}
55545655// LabelerGetServices calls the XRPC method "app.bsky.labeler.getServices".
5757-func LabelerGetServices(ctx context.Context, c *xrpc.Client, detailed bool, dids []string) (*LabelerGetServices_Output, error) {
5656+func LabelerGetServices(ctx context.Context, c util.LexClient, detailed bool, dids []string) (*LabelerGetServices_Output, error) {
5857 var out LabelerGetServices_Output
59586059 params := map[string]interface{}{}
···6261 params["detailed"] = detailed
6362 }
6463 params["dids"] = dids
6565- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.labeler.getServices", params, nil, &out); err != nil {
6464+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.labeler.getServices", params, nil, &out); err != nil {
6665 return nil, err
6766 }
6867
+3-3
api/bsky/notificationgetUnreadCount.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// NotificationGetUnreadCount_Output is the output of a app.bsky.notification.getUnreadCount call.
···1616}
17171818// NotificationGetUnreadCount calls the XRPC method "app.bsky.notification.getUnreadCount".
1919-func NotificationGetUnreadCount(ctx context.Context, c *xrpc.Client, priority bool, seenAt string) (*NotificationGetUnreadCount_Output, error) {
1919+func NotificationGetUnreadCount(ctx context.Context, c util.LexClient, priority bool, seenAt string) (*NotificationGetUnreadCount_Output, error) {
2020 var out NotificationGetUnreadCount_Output
21212222 params := map[string]interface{}{}
···2626 if seenAt != "" {
2727 params["seenAt"] = seenAt
2828 }
2929- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.getUnreadCount", params, nil, &out); err != nil {
2929+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.notification.getUnreadCount", params, nil, &out); err != nil {
3030 return nil, err
3131 }
3232
+2-3
api/bsky/notificationlistNotifications.go
···991010 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
1111 "github.com/bluesky-social/indigo/lex/util"
1212- "github.com/bluesky-social/indigo/xrpc"
1312)
14131514// NotificationListNotifications_Notification is a "notification" in the app.bsky.notification.listNotifications schema.
···3736// NotificationListNotifications calls the XRPC method "app.bsky.notification.listNotifications".
3837//
3938// reasons: Notification reasons to include in response.
4040-func NotificationListNotifications(ctx context.Context, c *xrpc.Client, cursor string, limit int64, priority bool, reasons []string, seenAt string) (*NotificationListNotifications_Output, error) {
3939+func NotificationListNotifications(ctx context.Context, c util.LexClient, cursor string, limit int64, priority bool, reasons []string, seenAt string) (*NotificationListNotifications_Output, error) {
4140 var out NotificationListNotifications_Output
42414342 params := map[string]interface{}{}
···5655 if seenAt != "" {
5756 params["seenAt"] = seenAt
5857 }
5959- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.listNotifications", params, nil, &out); err != nil {
5858+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.notification.listNotifications", params, nil, &out); err != nil {
6059 return nil, err
6160 }
6261
+3-3
api/bsky/notificationputPreferences.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// NotificationPutPreferences_Input is the input argument to a app.bsky.notification.putPreferences call.
···1616}
17171818// NotificationPutPreferences calls the XRPC method "app.bsky.notification.putPreferences".
1919-func NotificationPutPreferences(ctx context.Context, c *xrpc.Client, input *NotificationPutPreferences_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.putPreferences", nil, input, nil); err != nil {
1919+func NotificationPutPreferences(ctx context.Context, c util.LexClient, input *NotificationPutPreferences_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.putPreferences", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/notificationregisterPush.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
···1919}
20202121// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
2222-func NotificationRegisterPush(ctx context.Context, c *xrpc.Client, input *NotificationRegisterPush_Input) error {
2323- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
2222+func NotificationRegisterPush(ctx context.Context, c util.LexClient, input *NotificationRegisterPush_Input) error {
2323+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
2424 return err
2525 }
2626
+3-3
api/bsky/notificationupdateSeen.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// NotificationUpdateSeen_Input is the input argument to a app.bsky.notification.updateSeen call.
···1616}
17171818// NotificationUpdateSeen calls the XRPC method "app.bsky.notification.updateSeen".
1919-func NotificationUpdateSeen(ctx context.Context, c *xrpc.Client, input *NotificationUpdateSeen_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
1919+func NotificationUpdateSeen(ctx context.Context, c util.LexClient, input *NotificationUpdateSeen_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/bsky/unspeccedgetConfig.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetConfig_LiveNowConfig is a "liveNowConfig" in the app.bsky.unspecced.getConfig schema.
···2323}
24242525// UnspeccedGetConfig calls the XRPC method "app.bsky.unspecced.getConfig".
2626-func UnspeccedGetConfig(ctx context.Context, c *xrpc.Client) (*UnspeccedGetConfig_Output, error) {
2626+func UnspeccedGetConfig(ctx context.Context, c util.LexClient) (*UnspeccedGetConfig_Output, error) {
2727 var out UnspeccedGetConfig_Output
2828- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getConfig", nil, nil, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getConfig", nil, nil, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/bsky/unspeccedgetPopularFeedGenerators.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetPopularFeedGenerators_Output is the output of a app.bsky.unspecced.getPopularFeedGenerators call.
···1717}
18181919// UnspeccedGetPopularFeedGenerators calls the XRPC method "app.bsky.unspecced.getPopularFeedGenerators".
2020-func UnspeccedGetPopularFeedGenerators(ctx context.Context, c *xrpc.Client, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) {
2020+func UnspeccedGetPopularFeedGenerators(ctx context.Context, c util.LexClient, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) {
2121 var out UnspeccedGetPopularFeedGenerators_Output
22222323 params := map[string]interface{}{}
···3030 if query != "" {
3131 params["query"] = query
3232 }
3333- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil {
3434 return nil, err
3535 }
3636
+3-3
api/bsky/unspeccedgetSuggestedFeeds.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedFeeds_Output is the output of a app.bsky.unspecced.getSuggestedFeeds call.
···1616}
17171818// UnspeccedGetSuggestedFeeds calls the XRPC method "app.bsky.unspecced.getSuggestedFeeds".
1919-func UnspeccedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedFeeds_Output, error) {
1919+func UnspeccedGetSuggestedFeeds(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetSuggestedFeeds_Output, error) {
2020 var out UnspeccedGetSuggestedFeeds_Output
21212222 params := map[string]interface{}{}
2323 if limit != 0 {
2424 params["limit"] = limit
2525 }
2626- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeeds", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedFeeds", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/bsky/unspeccedgetSuggestedFeedsSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedFeedsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedFeedsSkeleton call.
···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) {
2121+func UnspeccedGetSuggestedFeedsSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetSuggestedFeedsSkeleton_Output, error) {
2222 var out UnspeccedGetSuggestedFeedsSkeleton_Output
23232424 params := map[string]interface{}{}
···2828 if viewer != "" {
2929 params["viewer"] = viewer
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/unspeccedgetSuggestedStarterPacks.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedStarterPacks_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacks call.
···1616}
17171818// UnspeccedGetSuggestedStarterPacks calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacks".
1919-func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) {
1919+func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) {
2020 var out UnspeccedGetSuggestedStarterPacks_Output
21212222 params := map[string]interface{}{}
2323 if limit != 0 {
2424 params["limit"] = limit
2525 }
2626- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacksSkeleton call.
···1818// UnspeccedGetSuggestedStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacksSkeleton".
1919//
2020// viewer: DID of the account making the request (not included for public/unauthenticated queries).
2121-func UnspeccedGetSuggestedStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetSuggestedStarterPacksSkeleton_Output, error) {
2121+func UnspeccedGetSuggestedStarterPacksSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetSuggestedStarterPacksSkeleton_Output, error) {
2222 var out UnspeccedGetSuggestedStarterPacksSkeleton_Output
23232424 params := map[string]interface{}{}
···2828 if viewer != "" {
2929 params["viewer"] = viewer
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/unspeccedgetSuggestedUsers.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedUsers_Output is the output of a app.bsky.unspecced.getSuggestedUsers call.
···1818// UnspeccedGetSuggestedUsers calls the XRPC method "app.bsky.unspecced.getSuggestedUsers".
1919//
2020// category: Category of users to get suggestions for.
2121-func UnspeccedGetSuggestedUsers(ctx context.Context, c *xrpc.Client, category string, limit int64) (*UnspeccedGetSuggestedUsers_Output, error) {
2121+func UnspeccedGetSuggestedUsers(ctx context.Context, c util.LexClient, category string, limit int64) (*UnspeccedGetSuggestedUsers_Output, error) {
2222 var out UnspeccedGetSuggestedUsers_Output
23232424 params := map[string]interface{}{}
···2828 if limit != 0 {
2929 params["limit"] = limit
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsers", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedUsers", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/unspeccedgetSuggestedUsersSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestedUsersSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedUsersSkeleton call.
···1919//
2020// category: Category of users to get suggestions for.
2121// viewer: DID of the account making the request (not included for public/unauthenticated queries).
2222-func UnspeccedGetSuggestedUsersSkeleton(ctx context.Context, c *xrpc.Client, category string, limit int64, viewer string) (*UnspeccedGetSuggestedUsersSkeleton_Output, error) {
2222+func UnspeccedGetSuggestedUsersSkeleton(ctx context.Context, c util.LexClient, category string, limit int64, viewer string) (*UnspeccedGetSuggestedUsersSkeleton_Output, error) {
2323 var out UnspeccedGetSuggestedUsersSkeleton_Output
24242525 params := map[string]interface{}{}
···3232 if viewer != "" {
3333 params["viewer"] = viewer
3434 }
3535- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsersSkeleton", params, nil, &out); err != nil {
3535+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedUsersSkeleton", params, nil, &out); err != nil {
3636 return nil, err
3737 }
3838
+3-3
api/bsky/unspeccedgetSuggestionsSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetSuggestionsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestionsSkeleton call.
···2424//
2525// relativeToDid: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer.
2626// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
2727-func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) {
2727+func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) {
2828 var out UnspeccedGetSuggestionsSkeleton_Output
29293030 params := map[string]interface{}{}
···4040 if viewer != "" {
4141 params["viewer"] = viewer
4242 }
4343- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil {
4343+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil {
4444 return nil, err
4545 }
4646
+3-3
api/bsky/unspeccedgetTaggedSuggestions.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetTaggedSuggestions_Output is the output of a app.bsky.unspecced.getTaggedSuggestions call.
···2323}
24242525// UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions".
2626-func UnspeccedGetTaggedSuggestions(ctx context.Context, c *xrpc.Client) (*UnspeccedGetTaggedSuggestions_Output, error) {
2626+func UnspeccedGetTaggedSuggestions(ctx context.Context, c util.LexClient) (*UnspeccedGetTaggedSuggestions_Output, error) {
2727 var out UnspeccedGetTaggedSuggestions_Output
28282929 params := map[string]interface{}{}
3030- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/bsky/unspeccedgetTrendingTopics.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetTrendingTopics_Output is the output of a app.bsky.unspecced.getTrendingTopics call.
···1919// UnspeccedGetTrendingTopics calls the XRPC method "app.bsky.unspecced.getTrendingTopics".
2020//
2121// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
2222-func UnspeccedGetTrendingTopics(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) {
2222+func UnspeccedGetTrendingTopics(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) {
2323 var out UnspeccedGetTrendingTopics_Output
24242525 params := map[string]interface{}{}
···2929 if viewer != "" {
3030 params["viewer"] = viewer
3131 }
3232- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/bsky/unspeccedgetTrends.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetTrends_Output is the output of a app.bsky.unspecced.getTrends call.
···1616}
17171818// UnspeccedGetTrends calls the XRPC method "app.bsky.unspecced.getTrends".
1919-func UnspeccedGetTrends(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetTrends_Output, error) {
1919+func UnspeccedGetTrends(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetTrends_Output, error) {
2020 var out UnspeccedGetTrends_Output
21212222 params := map[string]interface{}{}
2323 if limit != 0 {
2424 params["limit"] = limit
2525 }
2626- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/bsky/unspeccedgetTrendsSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedGetTrendsSkeleton_Output is the output of a app.bsky.unspecced.getTrendsSkeleton call.
···1818// UnspeccedGetTrendsSkeleton calls the XRPC method "app.bsky.unspecced.getTrendsSkeleton".
1919//
2020// viewer: DID of the account making the request (not included for public/unauthenticated queries).
2121-func UnspeccedGetTrendsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
2121+func UnspeccedGetTrendsSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
2222 var out UnspeccedGetTrendsSkeleton_Output
23232424 params := map[string]interface{}{}
···2828 if viewer != "" {
2929 params["viewer"] = viewer
3030 }
3131- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
3131+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
3232 return nil, err
3333 }
3434
+3-3
api/bsky/unspeccedsearchActorsSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedSearchActorsSkeleton_Output is the output of a app.bsky.unspecced.searchActorsSkeleton call.
···2424// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
2525// typeahead: If true, acts as fast/simple 'typeahead' query.
2626// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
2727-func UnspeccedSearchActorsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, typeahead bool, viewer string) (*UnspeccedSearchActorsSkeleton_Output, error) {
2727+func UnspeccedSearchActorsSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, typeahead bool, viewer string) (*UnspeccedSearchActorsSkeleton_Output, error) {
2828 var out UnspeccedSearchActorsSkeleton_Output
29293030 params := map[string]interface{}{}
···4141 if viewer != "" {
4242 params["viewer"] = viewer
4343 }
4444- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil {
4444+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil {
4545 return nil, err
4646 }
4747
+3-3
api/bsky/unspeccedsearchPostsSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedSearchPostsSkeleton_Output is the output of a app.bsky.unspecced.searchPostsSkeleton call.
···3232// until: Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
3333// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
3434// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries.
3535-func UnspeccedSearchPostsSkeleton(ctx context.Context, c *xrpc.Client, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string, viewer string) (*UnspeccedSearchPostsSkeleton_Output, error) {
3535+func UnspeccedSearchPostsSkeleton(ctx context.Context, c util.LexClient, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string, viewer string) (*UnspeccedSearchPostsSkeleton_Output, error) {
3636 var out UnspeccedSearchPostsSkeleton_Output
37373838 params := map[string]interface{}{}
···7373 if viewer != "" {
7474 params["viewer"] = viewer
7575 }
7676- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil {
7676+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil {
7777 return nil, err
7878 }
7979
+3-3
api/bsky/unspeccedsearchStarterPacksSkeleton.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// UnspeccedSearchStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.searchStarterPacksSkeleton call.
···2323// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
2424// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
2525// viewer: DID of the account making the request (not included for public/unauthenticated queries).
2626-func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) {
2626+func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) {
2727 var out UnspeccedSearchStarterPacksSkeleton_Output
28282929 params := map[string]interface{}{}
···3737 if viewer != "" {
3838 params["viewer"] = viewer
3939 }
4040- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil {
4040+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil {
4141 return nil, err
4242 }
4343
+3-3
api/bsky/videogetJobStatus.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// VideoGetJobStatus_Output is the output of a app.bsky.video.getJobStatus call.
···1616}
17171818// VideoGetJobStatus calls the XRPC method "app.bsky.video.getJobStatus".
1919-func VideoGetJobStatus(ctx context.Context, c *xrpc.Client, jobId string) (*VideoGetJobStatus_Output, error) {
1919+func VideoGetJobStatus(ctx context.Context, c util.LexClient, jobId string) (*VideoGetJobStatus_Output, error) {
2020 var out VideoGetJobStatus_Output
21212222 params := map[string]interface{}{}
2323 params["jobId"] = jobId
2424- if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/bsky/videogetUploadLimits.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// VideoGetUploadLimits_Output is the output of a app.bsky.video.getUploadLimits call.
···2020}
21212222// VideoGetUploadLimits calls the XRPC method "app.bsky.video.getUploadLimits".
2323-func VideoGetUploadLimits(ctx context.Context, c *xrpc.Client) (*VideoGetUploadLimits_Output, error) {
2323+func VideoGetUploadLimits(ctx context.Context, c util.LexClient) (*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 {
2525+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.video.getUploadLimits", nil, nil, &out); err != nil {
2626 return nil, err
2727 }
2828
+3-3
api/bsky/videouploadVideo.go
···88 "context"
99 "io"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// VideoUploadVideo_Output is the output of a app.bsky.video.uploadVideo call.
···1717}
18181919// VideoUploadVideo calls the XRPC method "app.bsky.video.uploadVideo".
2020-func VideoUploadVideo(ctx context.Context, c *xrpc.Client, input io.Reader) (*VideoUploadVideo_Output, error) {
2020+func VideoUploadVideo(ctx context.Context, c util.LexClient, 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 {
2222+ if err := c.LexDo(ctx, util.Procedure, "video/mp4", "app.bsky.video.uploadVideo", nil, input, &out); err != nil {
2323 return nil, err
2424 }
2525
+3-3
api/chat/actordeleteAccount.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ActorDeleteAccount_Output is the output of a chat.bsky.actor.deleteAccount call.
···1515}
16161717// ActorDeleteAccount calls the XRPC method "chat.bsky.actor.deleteAccount".
1818-func ActorDeleteAccount(ctx context.Context, c *xrpc.Client) (*ActorDeleteAccount_Output, error) {
1818+func ActorDeleteAccount(ctx context.Context, c util.LexClient) (*ActorDeleteAccount_Output, error) {
1919 var out ActorDeleteAccount_Output
2020- if err := c.Do(ctx, xrpc.Procedure, "", "chat.bsky.actor.deleteAccount", nil, nil, &out); err != nil {
2020+ if err := c.LexDo(ctx, util.Procedure, "", "chat.bsky.actor.deleteAccount", nil, nil, &out); err != nil {
2121 return nil, err
2222 }
2323
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoAcceptConvo_Input is the input argument to a chat.bsky.convo.acceptConvo call.
···2222}
23232424// ConvoAcceptConvo calls the XRPC method "chat.bsky.convo.acceptConvo".
2525-func ConvoAcceptConvo(ctx context.Context, c *xrpc.Client, input *ConvoAcceptConvo_Input) (*ConvoAcceptConvo_Output, error) {
2525+func ConvoAcceptConvo(ctx context.Context, c util.LexClient, input *ConvoAcceptConvo_Input) (*ConvoAcceptConvo_Output, error) {
2626 var out ConvoAcceptConvo_Output
2727- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.acceptConvo", nil, input, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.acceptConvo", nil, input, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/chat/convoaddReaction.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoAddReaction_Input is the input argument to a chat.bsky.convo.addReaction call.
···2323}
24242525// ConvoAddReaction calls the XRPC method "chat.bsky.convo.addReaction".
2626-func ConvoAddReaction(ctx context.Context, c *xrpc.Client, input *ConvoAddReaction_Input) (*ConvoAddReaction_Output, error) {
2626+func ConvoAddReaction(ctx context.Context, c util.LexClient, input *ConvoAddReaction_Input) (*ConvoAddReaction_Output, error) {
2727 var out ConvoAddReaction_Output
2828- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.addReaction", nil, input, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.addReaction", nil, input, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/chat/convodeleteMessageForSelf.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoDeleteMessageForSelf_Input is the input argument to a chat.bsky.convo.deleteMessageForSelf call.
···1717}
18181919// ConvoDeleteMessageForSelf calls the XRPC method "chat.bsky.convo.deleteMessageForSelf".
2020-func ConvoDeleteMessageForSelf(ctx context.Context, c *xrpc.Client, input *ConvoDeleteMessageForSelf_Input) (*ConvoDefs_DeletedMessageView, error) {
2020+func ConvoDeleteMessageForSelf(ctx context.Context, c util.LexClient, input *ConvoDeleteMessageForSelf_Input) (*ConvoDefs_DeletedMessageView, error) {
2121 var out ConvoDefs_DeletedMessageView
2222- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.deleteMessageForSelf", nil, input, &out); err != nil {
2222+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.deleteMessageForSelf", nil, input, &out); err != nil {
2323 return nil, err
2424 }
2525
+3-3
api/chat/convogetConvo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoGetConvo_Output is the output of a chat.bsky.convo.getConvo call.
···1616}
17171818// ConvoGetConvo calls the XRPC method "chat.bsky.convo.getConvo".
1919-func ConvoGetConvo(ctx context.Context, c *xrpc.Client, convoId string) (*ConvoGetConvo_Output, error) {
1919+func ConvoGetConvo(ctx context.Context, c util.LexClient, convoId string) (*ConvoGetConvo_Output, error) {
2020 var out ConvoGetConvo_Output
21212222 params := map[string]interface{}{}
2323 params["convoId"] = convoId
2424- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvo", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvo", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/chat/convogetConvoAvailability.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoGetConvoAvailability_Output is the output of a chat.bsky.convo.getConvoAvailability call.
···1717}
18181919// ConvoGetConvoAvailability calls the XRPC method "chat.bsky.convo.getConvoAvailability".
2020-func ConvoGetConvoAvailability(ctx context.Context, c *xrpc.Client, members []string) (*ConvoGetConvoAvailability_Output, error) {
2020+func ConvoGetConvoAvailability(ctx context.Context, c util.LexClient, members []string) (*ConvoGetConvoAvailability_Output, error) {
2121 var out ConvoGetConvoAvailability_Output
22222323 params := map[string]interface{}{}
2424 params["members"] = members
2525- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvoAvailability", params, nil, &out); err != nil {
2525+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvoAvailability", params, nil, &out); err != nil {
2626 return nil, err
2727 }
2828
+3-3
api/chat/convogetConvoForMembers.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoGetConvoForMembers_Output is the output of a chat.bsky.convo.getConvoForMembers call.
···1616}
17171818// ConvoGetConvoForMembers calls the XRPC method "chat.bsky.convo.getConvoForMembers".
1919-func ConvoGetConvoForMembers(ctx context.Context, c *xrpc.Client, members []string) (*ConvoGetConvoForMembers_Output, error) {
1919+func ConvoGetConvoForMembers(ctx context.Context, c util.LexClient, members []string) (*ConvoGetConvoForMembers_Output, error) {
2020 var out ConvoGetConvoForMembers_Output
21212222 params := map[string]interface{}{}
2323 params["members"] = members
2424- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvoForMembers", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvoForMembers", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+2-3
api/chat/convogetLog.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ConvoGetLog_Output is the output of a chat.bsky.convo.getLog call.
···119118}
120119121120// ConvoGetLog calls the XRPC method "chat.bsky.convo.getLog".
122122-func ConvoGetLog(ctx context.Context, c *xrpc.Client, cursor string) (*ConvoGetLog_Output, error) {
121121+func ConvoGetLog(ctx context.Context, c util.LexClient, cursor string) (*ConvoGetLog_Output, error) {
123122 var out ConvoGetLog_Output
124123125124 params := map[string]interface{}{}
126125 if cursor != "" {
127126 params["cursor"] = cursor
128127 }
129129- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getLog", params, nil, &out); err != nil {
128128+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getLog", params, nil, &out); err != nil {
130129 return nil, err
131130 }
132131
+2-3
api/chat/convogetMessages.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ConvoGetMessages_Output is the output of a chat.bsky.convo.getMessages call.
···5554}
56555756// ConvoGetMessages calls the XRPC method "chat.bsky.convo.getMessages".
5858-func ConvoGetMessages(ctx context.Context, c *xrpc.Client, convoId string, cursor string, limit int64) (*ConvoGetMessages_Output, error) {
5757+func ConvoGetMessages(ctx context.Context, c util.LexClient, convoId string, cursor string, limit int64) (*ConvoGetMessages_Output, error) {
5958 var out ConvoGetMessages_Output
60596160 params := map[string]interface{}{}
···6665 if limit != 0 {
6766 params["limit"] = limit
6867 }
6969- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getMessages", params, nil, &out); err != nil {
6868+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getMessages", params, nil, &out); err != nil {
7069 return nil, err
7170 }
7271
+3-3
api/chat/convoleaveConvo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoLeaveConvo_Input is the input argument to a chat.bsky.convo.leaveConvo call.
···2222}
23232424// ConvoLeaveConvo calls the XRPC method "chat.bsky.convo.leaveConvo".
2525-func ConvoLeaveConvo(ctx context.Context, c *xrpc.Client, input *ConvoLeaveConvo_Input) (*ConvoLeaveConvo_Output, error) {
2525+func ConvoLeaveConvo(ctx context.Context, c util.LexClient, input *ConvoLeaveConvo_Input) (*ConvoLeaveConvo_Output, error) {
2626 var out ConvoLeaveConvo_Output
2727- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.leaveConvo", nil, input, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.leaveConvo", nil, input, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/chat/convolistConvos.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoListConvos_Output is the output of a chat.bsky.convo.listConvos call.
···1717}
18181919// ConvoListConvos calls the XRPC method "chat.bsky.convo.listConvos".
2020-func ConvoListConvos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, readState string, status string) (*ConvoListConvos_Output, error) {
2020+func ConvoListConvos(ctx context.Context, c util.LexClient, cursor string, limit int64, readState string, status string) (*ConvoListConvos_Output, error) {
2121 var out ConvoListConvos_Output
22222323 params := map[string]interface{}{}
···3333 if status != "" {
3434 params["status"] = status
3535 }
3636- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.listConvos", params, nil, &out); err != nil {
3636+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.listConvos", params, nil, &out); err != nil {
3737 return nil, err
3838 }
3939
+3-3
api/chat/convomuteConvo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoMuteConvo_Input is the input argument to a chat.bsky.convo.muteConvo call.
···2121}
22222323// ConvoMuteConvo calls the XRPC method "chat.bsky.convo.muteConvo".
2424-func ConvoMuteConvo(ctx context.Context, c *xrpc.Client, input *ConvoMuteConvo_Input) (*ConvoMuteConvo_Output, error) {
2424+func ConvoMuteConvo(ctx context.Context, c util.LexClient, input *ConvoMuteConvo_Input) (*ConvoMuteConvo_Output, error) {
2525 var out ConvoMuteConvo_Output
2626- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.muteConvo", nil, input, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.muteConvo", nil, input, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/chat/convoremoveReaction.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoRemoveReaction_Input is the input argument to a chat.bsky.convo.removeReaction call.
···2323}
24242525// ConvoRemoveReaction calls the XRPC method "chat.bsky.convo.removeReaction".
2626-func ConvoRemoveReaction(ctx context.Context, c *xrpc.Client, input *ConvoRemoveReaction_Input) (*ConvoRemoveReaction_Output, error) {
2626+func ConvoRemoveReaction(ctx context.Context, c util.LexClient, input *ConvoRemoveReaction_Input) (*ConvoRemoveReaction_Output, error) {
2727 var out ConvoRemoveReaction_Output
2828- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.removeReaction", nil, input, &out); err != nil {
2828+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.removeReaction", nil, input, &out); err != nil {
2929 return nil, err
3030 }
3131
+3-3
api/chat/convosendMessage.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoSendMessage_Input is the input argument to a chat.bsky.convo.sendMessage call.
···1717}
18181919// ConvoSendMessage calls the XRPC method "chat.bsky.convo.sendMessage".
2020-func ConvoSendMessage(ctx context.Context, c *xrpc.Client, input *ConvoSendMessage_Input) (*ConvoDefs_MessageView, error) {
2020+func ConvoSendMessage(ctx context.Context, c util.LexClient, input *ConvoSendMessage_Input) (*ConvoDefs_MessageView, error) {
2121 var out ConvoDefs_MessageView
2222- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.sendMessage", nil, input, &out); err != nil {
2222+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.sendMessage", nil, input, &out); err != nil {
2323 return nil, err
2424 }
2525
+3-3
api/chat/convosendMessageBatch.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoSendMessageBatch_BatchItem is a "batchItem" in the chat.bsky.convo.sendMessageBatch schema.
···2727}
28282929// ConvoSendMessageBatch calls the XRPC method "chat.bsky.convo.sendMessageBatch".
3030-func ConvoSendMessageBatch(ctx context.Context, c *xrpc.Client, input *ConvoSendMessageBatch_Input) (*ConvoSendMessageBatch_Output, error) {
3030+func ConvoSendMessageBatch(ctx context.Context, c util.LexClient, input *ConvoSendMessageBatch_Input) (*ConvoSendMessageBatch_Output, error) {
3131 var out ConvoSendMessageBatch_Output
3232- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.sendMessageBatch", nil, input, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.sendMessageBatch", nil, input, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/chat/convounmuteConvo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoUnmuteConvo_Input is the input argument to a chat.bsky.convo.unmuteConvo call.
···2121}
22222323// ConvoUnmuteConvo calls the XRPC method "chat.bsky.convo.unmuteConvo".
2424-func ConvoUnmuteConvo(ctx context.Context, c *xrpc.Client, input *ConvoUnmuteConvo_Input) (*ConvoUnmuteConvo_Output, error) {
2424+func ConvoUnmuteConvo(ctx context.Context, c util.LexClient, input *ConvoUnmuteConvo_Input) (*ConvoUnmuteConvo_Output, error) {
2525 var out ConvoUnmuteConvo_Output
2626- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.unmuteConvo", nil, input, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.unmuteConvo", nil, input, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/chat/convoupdateAllRead.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoUpdateAllRead_Input is the input argument to a chat.bsky.convo.updateAllRead call.
···2222}
23232424// ConvoUpdateAllRead calls the XRPC method "chat.bsky.convo.updateAllRead".
2525-func ConvoUpdateAllRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateAllRead_Input) (*ConvoUpdateAllRead_Output, error) {
2525+func ConvoUpdateAllRead(ctx context.Context, c util.LexClient, input *ConvoUpdateAllRead_Input) (*ConvoUpdateAllRead_Output, error) {
2626 var out ConvoUpdateAllRead_Output
2727- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateAllRead", nil, input, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.updateAllRead", nil, input, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/chat/convoupdateRead.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ConvoUpdateRead_Input is the input argument to a chat.bsky.convo.updateRead call.
···2222}
23232424// ConvoUpdateRead calls the XRPC method "chat.bsky.convo.updateRead".
2525-func ConvoUpdateRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateRead_Input) (*ConvoUpdateRead_Output, error) {
2525+func ConvoUpdateRead(ctx context.Context, c util.LexClient, input *ConvoUpdateRead_Input) (*ConvoUpdateRead_Output, error) {
2626 var out ConvoUpdateRead_Output
2727- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateRead", nil, input, &out); err != nil {
2727+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.updateRead", nil, input, &out); err != nil {
2828 return nil, err
2929 }
3030
+3-3
api/chat/moderationgetActorMetadata.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetActorMetadata_Metadata is a "metadata" in the chat.bsky.moderation.getActorMetadata schema.
···2626}
27272828// ModerationGetActorMetadata calls the XRPC method "chat.bsky.moderation.getActorMetadata".
2929-func ModerationGetActorMetadata(ctx context.Context, c *xrpc.Client, actor string) (*ModerationGetActorMetadata_Output, error) {
2929+func ModerationGetActorMetadata(ctx context.Context, c util.LexClient, actor string) (*ModerationGetActorMetadata_Output, error) {
3030 var out ModerationGetActorMetadata_Output
31313232 params := map[string]interface{}{}
3333 params["actor"] = actor
3434- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.moderation.getActorMetadata", params, nil, &out); err != nil {
3434+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.moderation.getActorMetadata", params, nil, &out); err != nil {
3535 return nil, err
3636 }
3737
+2-3
api/chat/moderationgetMessageContext.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ModerationGetMessageContext_Output is the output of a chat.bsky.moderation.getMessageContext call.
···5655// ModerationGetMessageContext calls the XRPC method "chat.bsky.moderation.getMessageContext".
5756//
5857// convoId: Conversation that the message is from. NOTE: this field will eventually be required.
5959-func ModerationGetMessageContext(ctx context.Context, c *xrpc.Client, after int64, before int64, convoId string, messageId string) (*ModerationGetMessageContext_Output, error) {
5858+func ModerationGetMessageContext(ctx context.Context, c util.LexClient, after int64, before int64, convoId string, messageId string) (*ModerationGetMessageContext_Output, error) {
6059 var out ModerationGetMessageContext_Output
61606261 params := map[string]interface{}{}
···7069 params["convoId"] = convoId
7170 }
7271 params["messageId"] = messageId
7373- if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.moderation.getMessageContext", params, nil, &out); err != nil {
7272+ if err := c.LexDo(ctx, util.Query, "", "chat.bsky.moderation.getMessageContext", params, nil, &out); err != nil {
7473 return nil, err
7574 }
7675
+3-3
api/chat/moderationupdateActorAccess.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationUpdateActorAccess_Input is the input argument to a chat.bsky.moderation.updateActorAccess call.
···1818}
19192020// ModerationUpdateActorAccess calls the XRPC method "chat.bsky.moderation.updateActorAccess".
2121-func ModerationUpdateActorAccess(ctx context.Context, c *xrpc.Client, input *ModerationUpdateActorAccess_Input) error {
2222- if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
2121+func ModerationUpdateActorAccess(ctx context.Context, c util.LexClient, input *ModerationUpdateActorAccess_Input) error {
2222+ if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
2323 return err
2424 }
2525
+3-3
api/ozone/communicationcreateTemplate.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// CommunicationCreateTemplate_Input is the input argument to a tools.ozone.communication.createTemplate call.
···2525}
26262727// CommunicationCreateTemplate calls the XRPC method "tools.ozone.communication.createTemplate".
2828-func CommunicationCreateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
2828+func CommunicationCreateTemplate(ctx context.Context, c util.LexClient, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
2929 var out CommunicationDefs_TemplateView
3030- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil {
3131 return nil, err
3232 }
3333
+3-3
api/ozone/communicationdeleteTemplate.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// CommunicationDeleteTemplate_Input is the input argument to a tools.ozone.communication.deleteTemplate call.
···1616}
17171818// CommunicationDeleteTemplate calls the XRPC method "tools.ozone.communication.deleteTemplate".
1919-func CommunicationDeleteTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationDeleteTemplate_Input) error {
2020- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil {
1919+func CommunicationDeleteTemplate(ctx context.Context, c util.LexClient, input *CommunicationDeleteTemplate_Input) error {
2020+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil {
2121 return err
2222 }
2323
+3-3
api/ozone/communicationlistTemplates.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call.
···1616}
17171818// CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates".
1919-func CommunicationListTemplates(ctx context.Context, c *xrpc.Client) (*CommunicationListTemplates_Output, error) {
1919+func CommunicationListTemplates(ctx context.Context, c util.LexClient) (*CommunicationListTemplates_Output, error) {
2020 var out CommunicationListTemplates_Output
2121- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
2121+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
2222 return nil, err
2323 }
2424
+3-3
api/ozone/communicationupdateTemplate.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// CommunicationUpdateTemplate_Input is the input argument to a tools.ozone.communication.updateTemplate call.
···2828}
29293030// CommunicationUpdateTemplate calls the XRPC method "tools.ozone.communication.updateTemplate".
3131-func CommunicationUpdateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
3131+func CommunicationUpdateTemplate(ctx context.Context, c util.LexClient, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
3232 var out CommunicationDefs_TemplateView
3333- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
3434 return nil, err
3535 }
3636
+2-3
api/ozone/hostinggetAccountHistory.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// HostingGetAccountHistory_AccountCreated is a "accountCreated" in the tools.ozone.hosting.getAccountHistory schema.
···126125}
127126128127// HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory".
129129-func HostingGetAccountHistory(ctx context.Context, c *xrpc.Client, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) {
128128+func HostingGetAccountHistory(ctx context.Context, c util.LexClient, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) {
130129 var out HostingGetAccountHistory_Output
131130132131 params := map[string]interface{}{}
···140139 if limit != 0 {
141140 params["limit"] = limit
142141 }
143143- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil {
142142+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil {
144143 return nil, err
145144 }
146145
+2-3
api/ozone/moderationemitEvent.go
···11111212 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
1313 "github.com/bluesky-social/indigo/lex/util"
1414- "github.com/bluesky-social/indigo/xrpc"
1514)
16151716// ModerationEmitEvent_Input is the input argument to a tools.ozone.moderation.emitEvent call.
···229228}
230229231230// ModerationEmitEvent calls the XRPC method "tools.ozone.moderation.emitEvent".
232232-func ModerationEmitEvent(ctx context.Context, c *xrpc.Client, input *ModerationEmitEvent_Input) (*ModerationDefs_ModEventView, error) {
231231+func ModerationEmitEvent(ctx context.Context, c util.LexClient, input *ModerationEmitEvent_Input) (*ModerationDefs_ModEventView, error) {
233232 var out ModerationDefs_ModEventView
234234- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.moderation.emitEvent", nil, input, &out); err != nil {
233233+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.moderation.emitEvent", nil, input, &out); err != nil {
235234 return nil, err
236235 }
237236
+3-3
api/ozone/moderationgetEvent.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetEvent calls the XRPC method "tools.ozone.moderation.getEvent".
1414-func ModerationGetEvent(ctx context.Context, c *xrpc.Client, id int64) (*ModerationDefs_ModEventViewDetail, error) {
1414+func ModerationGetEvent(ctx context.Context, c util.LexClient, id int64) (*ModerationDefs_ModEventViewDetail, error) {
1515 var out ModerationDefs_ModEventViewDetail
16161717 params := map[string]interface{}{}
1818 params["id"] = id
1919- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getEvent", params, nil, &out); err != nil {
1919+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getEvent", params, nil, &out); err != nil {
2020 return nil, err
2121 }
2222
+3-3
api/ozone/moderationgetRecord.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetRecord calls the XRPC method "tools.ozone.moderation.getRecord".
1414-func ModerationGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*ModerationDefs_RecordViewDetail, error) {
1414+func ModerationGetRecord(ctx context.Context, c util.LexClient, cid string, uri string) (*ModerationDefs_RecordViewDetail, error) {
1515 var out ModerationDefs_RecordViewDetail
16161717 params := map[string]interface{}{}
···1919 params["cid"] = cid
2020 }
2121 params["uri"] = uri
2222- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRecord", params, nil, &out); err != nil {
2222+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRecord", params, nil, &out); err != nil {
2323 return nil, err
2424 }
2525
+2-3
api/ozone/moderationgetRecords.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ModerationGetRecords_Output is the output of a tools.ozone.moderation.getRecords call.
···5453}
55545655// ModerationGetRecords calls the XRPC method "tools.ozone.moderation.getRecords".
5757-func ModerationGetRecords(ctx context.Context, c *xrpc.Client, uris []string) (*ModerationGetRecords_Output, error) {
5656+func ModerationGetRecords(ctx context.Context, c util.LexClient, uris []string) (*ModerationGetRecords_Output, error) {
5857 var out ModerationGetRecords_Output
59586059 params := map[string]interface{}{}
6160 params["uris"] = uris
6262- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRecords", params, nil, &out); err != nil {
6161+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRecords", params, nil, &out); err != nil {
6362 return nil, err
6463 }
6564
+3-3
api/ozone/moderationgetRepo.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetRepo calls the XRPC method "tools.ozone.moderation.getRepo".
1414-func ModerationGetRepo(ctx context.Context, c *xrpc.Client, did string) (*ModerationDefs_RepoViewDetail, error) {
1414+func ModerationGetRepo(ctx context.Context, c util.LexClient, did string) (*ModerationDefs_RepoViewDetail, error) {
1515 var out ModerationDefs_RepoViewDetail
16161717 params := map[string]interface{}{}
1818 params["did"] = did
1919- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRepo", params, nil, &out); err != nil {
1919+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRepo", params, nil, &out); err != nil {
2020 return nil, err
2121 }
2222
+3-3
api/ozone/moderationgetReporterStats.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetReporterStats_Output is the output of a tools.ozone.moderation.getReporterStats call.
···1616}
17171818// ModerationGetReporterStats calls the XRPC method "tools.ozone.moderation.getReporterStats".
1919-func ModerationGetReporterStats(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetReporterStats_Output, error) {
1919+func ModerationGetReporterStats(ctx context.Context, c util.LexClient, dids []string) (*ModerationGetReporterStats_Output, error) {
2020 var out ModerationGetReporterStats_Output
21212222 params := map[string]interface{}{}
2323 params["dids"] = dids
2424- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getReporterStats", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getReporterStats", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+2-3
api/ozone/moderationgetRepos.go
···1010 "fmt"
11111212 "github.com/bluesky-social/indigo/lex/util"
1313- "github.com/bluesky-social/indigo/xrpc"
1413)
15141615// ModerationGetRepos_Output is the output of a tools.ozone.moderation.getRepos call.
···5453}
55545655// ModerationGetRepos calls the XRPC method "tools.ozone.moderation.getRepos".
5757-func ModerationGetRepos(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetRepos_Output, error) {
5656+func ModerationGetRepos(ctx context.Context, c util.LexClient, dids []string) (*ModerationGetRepos_Output, error) {
5857 var out ModerationGetRepos_Output
59586059 params := map[string]interface{}{}
6160 params["dids"] = dids
6262- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRepos", params, nil, &out); err != nil {
6161+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRepos", params, nil, &out); err != nil {
6362 return nil, err
6463 }
6564
+3-3
api/ozone/moderationgetSubjects.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationGetSubjects_Output is the output of a tools.ozone.moderation.getSubjects call.
···1616}
17171818// ModerationGetSubjects calls the XRPC method "tools.ozone.moderation.getSubjects".
1919-func ModerationGetSubjects(ctx context.Context, c *xrpc.Client, subjects []string) (*ModerationGetSubjects_Output, error) {
1919+func ModerationGetSubjects(ctx context.Context, c util.LexClient, subjects []string) (*ModerationGetSubjects_Output, error) {
2020 var out ModerationGetSubjects_Output
21212222 params := map[string]interface{}{}
2323 params["subjects"] = subjects
2424- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
2424+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
2525 return nil, err
2626 }
2727
+3-3
api/ozone/moderationqueryEvents.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationQueryEvents_Output is the output of a tools.ozone.moderation.queryEvents call.
···3131// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
3232// subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
3333// types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
3434-func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
3434+func ModerationQueryEvents(ctx context.Context, c util.LexClient, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
3535 var out ModerationQueryEvents_Output
36363737 params := map[string]interface{}{}
···9292 if len(types) != 0 {
9393 params["types"] = types
9494 }
9595- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
9595+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
9696 return nil, err
9797 }
9898
+3-3
api/ozone/moderationqueryStatuses.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationQueryStatuses_Output is the output of a tools.ozone.moderation.queryStatuses call.
···4545// subject: The subject to get the status for.
4646// subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
4747// takendown: Get subjects that were taken down
4848-func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
4848+func ModerationQueryStatuses(ctx context.Context, c util.LexClient, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
4949 var out ModerationQueryStatuses_Output
50505151 params := map[string]interface{}{}
···151151 if takendown {
152152 params["takendown"] = takendown
153153 }
154154- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
154154+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
155155 return nil, err
156156 }
157157
+3-3
api/ozone/moderationsearchRepos.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ModerationSearchRepos_Output is the output of a tools.ozone.moderation.searchRepos call.
···1919// ModerationSearchRepos calls the XRPC method "tools.ozone.moderation.searchRepos".
2020//
2121// term: DEPRECATED: use 'q' instead
2222-func ModerationSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) {
2222+func ModerationSearchRepos(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) {
2323 var out ModerationSearchRepos_Output
24242525 params := map[string]interface{}{}
···3535 if term != "" {
3636 params["term"] = term
3737 }
3838- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil {
3838+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil {
3939 return nil, err
4040 }
4141
+3-3
api/ozone/servergetConfig.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// ServerGetConfig_Output is the output of a tools.ozone.server.getConfig call.
···3232}
33333434// ServerGetConfig calls the XRPC method "tools.ozone.server.getConfig".
3535-func ServerGetConfig(ctx context.Context, c *xrpc.Client) (*ServerGetConfig_Output, error) {
3535+func ServerGetConfig(ctx context.Context, c util.LexClient) (*ServerGetConfig_Output, error) {
3636 var out ServerGetConfig_Output
3737- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.server.getConfig", nil, nil, &out); err != nil {
3737+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.server.getConfig", nil, nil, &out); err != nil {
3838 return nil, err
3939 }
4040
+3-3
api/ozone/setaddValues.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SetAddValues_Input is the input argument to a tools.ozone.set.addValues call.
···1919}
20202121// SetAddValues calls the XRPC method "tools.ozone.set.addValues".
2222-func SetAddValues(ctx context.Context, c *xrpc.Client, input *SetAddValues_Input) error {
2323- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
2222+func SetAddValues(ctx context.Context, c util.LexClient, input *SetAddValues_Input) error {
2323+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
2424 return err
2525 }
2626
+3-3
api/ozone/setdeleteSet.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SetDeleteSet_Input is the input argument to a tools.ozone.set.deleteSet call.
···2121}
22222323// SetDeleteSet calls the XRPC method "tools.ozone.set.deleteSet".
2424-func SetDeleteSet(ctx context.Context, c *xrpc.Client, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
2424+func SetDeleteSet(ctx context.Context, c util.LexClient, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
2525 var out SetDeleteSet_Output
2626- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
2727 return nil, err
2828 }
2929
+3-3
api/ozone/setdeleteValues.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SetDeleteValues_Input is the input argument to a tools.ozone.set.deleteValues call.
···1919}
20202121// SetDeleteValues calls the XRPC method "tools.ozone.set.deleteValues".
2222-func SetDeleteValues(ctx context.Context, c *xrpc.Client, input *SetDeleteValues_Input) error {
2323- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
2222+func SetDeleteValues(ctx context.Context, c util.LexClient, input *SetDeleteValues_Input) error {
2323+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
2424 return err
2525 }
2626
+3-3
api/ozone/setgetValues.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SetGetValues_Output is the output of a tools.ozone.set.getValues call.
···1818}
19192020// SetGetValues calls the XRPC method "tools.ozone.set.getValues".
2121-func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
2121+func SetGetValues(ctx context.Context, c util.LexClient, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
2222 var out SetGetValues_Output
23232424 params := map[string]interface{}{}
···2929 params["limit"] = limit
3030 }
3131 params["name"] = name
3232- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
3232+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
3333 return nil, err
3434 }
3535
+3-3
api/ozone/setquerySets.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SetQuerySets_Output is the output of a tools.ozone.set.querySets call.
···1919// SetQuerySets calls the XRPC method "tools.ozone.set.querySets".
2020//
2121// sortDirection: Defaults to ascending order of name field.
2222-func SetQuerySets(ctx context.Context, c *xrpc.Client, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
2222+func SetQuerySets(ctx context.Context, c util.LexClient, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
2323 var out SetQuerySets_Output
24242525 params := map[string]interface{}{}
···3838 if sortDirection != "" {
3939 params["sortDirection"] = sortDirection
4040 }
4141- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
4141+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
4242 return nil, err
4343 }
4444
+3-3
api/ozone/settinglistOptions.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SettingListOptions_Output is the output of a tools.ozone.setting.listOptions call.
···2020//
2121// keys: Filter for only the specified keys. Ignored if prefix is provided
2222// prefix: Filter keys by prefix
2323-func SettingListOptions(ctx context.Context, c *xrpc.Client, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
2323+func SettingListOptions(ctx context.Context, c util.LexClient, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
2424 var out SettingListOptions_Output
25252626 params := map[string]interface{}{}
···3939 if scope != "" {
4040 params["scope"] = scope
4141 }
4242- if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
4242+ if err := c.LexDo(ctx, util.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
4343 return nil, err
4444 }
4545
+3-3
api/ozone/settingremoveOptions.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// SettingRemoveOptions_Input is the input argument to a tools.ozone.setting.removeOptions call.
···2121}
22222323// SettingRemoveOptions calls the XRPC method "tools.ozone.setting.removeOptions".
2424-func SettingRemoveOptions(ctx context.Context, c *xrpc.Client, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
2424+func SettingRemoveOptions(ctx context.Context, c util.LexClient, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
2525 var out SettingRemoveOptions_Output
2626- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
2626+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
2727 return nil, err
2828 }
2929
+2-3
api/ozone/settingupsertOption.go
···88 "context"
991010 "github.com/bluesky-social/indigo/lex/util"
1111- "github.com/bluesky-social/indigo/xrpc"
1211)
13121413// SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call.
···2625}
27262827// SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption".
2929-func SettingUpsertOption(ctx context.Context, c *xrpc.Client, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
2828+func SettingUpsertOption(ctx context.Context, c util.LexClient, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
3029 var out SettingUpsertOption_Output
3131- if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
3030+ if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
3231 return nil, err
3332 }
3433