···88 "context"
99 "encoding/json"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// IdentitySignPlcOperation_Input is the input argument to a com.atproto.identity.signPlcOperation call.
···2828}
29293030// IdentitySignPlcOperation calls the XRPC method "com.atproto.identity.signPlcOperation".
3131-func IdentitySignPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
3131+func IdentitySignPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
3232 var out IdentitySignPlcOperation_Output
3333- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
3333+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
3434 return nil, err
3535 }
3636
+3-3
api/agnostic/identitysubmitPlcOperation.go
···88 "context"
99 "encoding/json"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// IdentitySubmitPlcOperation_Input is the input argument to a com.atproto.identity.submitPlcOperation call.
···1717}
18181919// 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 {
2020+func IdentitySubmitPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySubmitPlcOperation_Input) error {
2121+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.submitPlcOperation", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+2-3
api/agnostic/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.
···179178}
180179181180// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
182182-func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
181181+func RepoApplyWrites(ctx context.Context, c util.LexClient, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
183182 var out RepoApplyWrites_Output
184184- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
183183+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
185184 return nil, err
186185 }
187186
+3-3
api/agnostic/repocreateRecord.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema.
···4141}
42424343// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
4444-func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
4444+func RepoCreateRecord(ctx context.Context, c util.LexClient, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
4545 var out RepoCreateRecord_Output
4646- if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
4646+ if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
4747 return nil, err
4848 }
4949
+3-3
api/agnostic/repogetRecord.go
···88 "context"
99 "encoding/json"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
···2525// collection: The NSID of the record collection.
2626// repo: The handle or DID of the repo.
2727// rkey: The Record Key.
2828-func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
2828+func RepoGetRecord(ctx context.Context, c util.LexClient, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
2929 var out RepoGetRecord_Output
30303131 params := map[string]interface{}{
···3434 "repo": repo,
3535 "rkey": rkey,
3636 }
3737- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
3737+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
3838 return nil, err
3939 }
4040
+3-3
api/agnostic/repolistRecords.go
···88 "context"
99 "encoding/json"
10101111- "github.com/bluesky-social/indigo/xrpc"
1111+ "github.com/bluesky-social/indigo/lex/util"
1212)
13131414// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
···3131// limit: The number of records to return.
3232// repo: The handle or DID of the repo.
3333// reverse: Flag to reverse the order of the returned records.
3434-func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
3434+func RepoListRecords(ctx context.Context, c util.LexClient, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
3535 var out RepoListRecords_Output
36363737 params := map[string]interface{}{
···4141 "repo": repo,
4242 "reverse": reverse,
4343 }
4444- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
4444+ if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
4545 return nil, err
4646 }
4747
+3-3
api/agnostic/repoputRecord.go
···77import (
88 "context"
991010- "github.com/bluesky-social/indigo/xrpc"
1010+ "github.com/bluesky-social/indigo/lex/util"
1111)
12121313// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
···3737}
38383939// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
4040-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) {
4141 var out RepoPutRecord_Output
4242- 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 {
4343 return nil, err
4444 }
4545