+3
-3
api/atproto/admindeleteAccount.go
+3
-3
api/atproto/admindeleteAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminDeleteAccount_Input is the input argument to a com.atproto.admin.deleteAccount call.
···
16
16
}
17
17
18
18
// AdminDeleteAccount calls the XRPC method "com.atproto.admin.deleteAccount".
19
-
func AdminDeleteAccount(ctx context.Context, c *xrpc.Client, input *AdminDeleteAccount_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.deleteAccount", nil, input, nil); err != nil {
19
+
func AdminDeleteAccount(ctx context.Context, c util.LexClient, input *AdminDeleteAccount_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.deleteAccount", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/atproto/admindisableAccountInvites.go
+3
-3
api/atproto/admindisableAccountInvites.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminDisableAccountInvites_Input is the input argument to a com.atproto.admin.disableAccountInvites call.
···
18
18
}
19
19
20
20
// AdminDisableAccountInvites calls the XRPC method "com.atproto.admin.disableAccountInvites".
21
-
func AdminDisableAccountInvites(ctx context.Context, c *xrpc.Client, input *AdminDisableAccountInvites_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.disableAccountInvites", nil, input, nil); err != nil {
21
+
func AdminDisableAccountInvites(ctx context.Context, c util.LexClient, input *AdminDisableAccountInvites_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.disableAccountInvites", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+3
-3
api/atproto/admindisableInviteCodes.go
+3
-3
api/atproto/admindisableInviteCodes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminDisableInviteCodes_Input is the input argument to a com.atproto.admin.disableInviteCodes call.
···
17
17
}
18
18
19
19
// AdminDisableInviteCodes calls the XRPC method "com.atproto.admin.disableInviteCodes".
20
-
func AdminDisableInviteCodes(ctx context.Context, c *xrpc.Client, input *AdminDisableInviteCodes_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.disableInviteCodes", nil, input, nil); err != nil {
20
+
func AdminDisableInviteCodes(ctx context.Context, c util.LexClient, input *AdminDisableInviteCodes_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.disableInviteCodes", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/adminenableAccountInvites.go
+3
-3
api/atproto/adminenableAccountInvites.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminEnableAccountInvites_Input is the input argument to a com.atproto.admin.enableAccountInvites call.
···
18
18
}
19
19
20
20
// AdminEnableAccountInvites calls the XRPC method "com.atproto.admin.enableAccountInvites".
21
-
func AdminEnableAccountInvites(ctx context.Context, c *xrpc.Client, input *AdminEnableAccountInvites_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.enableAccountInvites", nil, input, nil); err != nil {
21
+
func AdminEnableAccountInvites(ctx context.Context, c util.LexClient, input *AdminEnableAccountInvites_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.enableAccountInvites", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+3
-3
api/atproto/admingetAccountInfo.go
+3
-3
api/atproto/admingetAccountInfo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminGetAccountInfo calls the XRPC method "com.atproto.admin.getAccountInfo".
14
-
func AdminGetAccountInfo(ctx context.Context, c *xrpc.Client, did string) (*AdminDefs_AccountView, error) {
14
+
func AdminGetAccountInfo(ctx context.Context, c util.LexClient, did string) (*AdminDefs_AccountView, error) {
15
15
var out AdminDefs_AccountView
16
16
17
17
params := map[string]interface{}{}
18
18
params["did"] = did
19
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getAccountInfo", params, nil, &out); err != nil {
19
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.getAccountInfo", params, nil, &out); err != nil {
20
20
return nil, err
21
21
}
22
22
+3
-3
api/atproto/admingetAccountInfos.go
+3
-3
api/atproto/admingetAccountInfos.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminGetAccountInfos_Output is the output of a com.atproto.admin.getAccountInfos call.
···
16
16
}
17
17
18
18
// AdminGetAccountInfos calls the XRPC method "com.atproto.admin.getAccountInfos".
19
-
func AdminGetAccountInfos(ctx context.Context, c *xrpc.Client, dids []string) (*AdminGetAccountInfos_Output, error) {
19
+
func AdminGetAccountInfos(ctx context.Context, c util.LexClient, dids []string) (*AdminGetAccountInfos_Output, error) {
20
20
var out AdminGetAccountInfos_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["dids"] = dids
24
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getAccountInfos", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.getAccountInfos", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/atproto/admingetInviteCodes.go
+3
-3
api/atproto/admingetInviteCodes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminGetInviteCodes_Output is the output of a com.atproto.admin.getInviteCodes call.
···
17
17
}
18
18
19
19
// AdminGetInviteCodes calls the XRPC method "com.atproto.admin.getInviteCodes".
20
-
func AdminGetInviteCodes(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sort string) (*AdminGetInviteCodes_Output, error) {
20
+
func AdminGetInviteCodes(ctx context.Context, c util.LexClient, cursor string, limit int64, sort string) (*AdminGetInviteCodes_Output, error) {
21
21
var out AdminGetInviteCodes_Output
22
22
23
23
params := map[string]interface{}{}
···
30
30
if sort != "" {
31
31
params["sort"] = sort
32
32
}
33
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getInviteCodes", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.getInviteCodes", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+2
-3
api/atproto/admingetSubjectStatus.go
+2
-3
api/atproto/admingetSubjectStatus.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// AdminGetSubjectStatus_Output is the output of a com.atproto.admin.getSubjectStatus call.
···
64
63
}
65
64
66
65
// AdminGetSubjectStatus calls the XRPC method "com.atproto.admin.getSubjectStatus".
67
-
func AdminGetSubjectStatus(ctx context.Context, c *xrpc.Client, blob string, did string, uri string) (*AdminGetSubjectStatus_Output, error) {
66
+
func AdminGetSubjectStatus(ctx context.Context, c util.LexClient, blob string, did string, uri string) (*AdminGetSubjectStatus_Output, error) {
68
67
var out AdminGetSubjectStatus_Output
69
68
70
69
params := map[string]interface{}{}
···
77
76
if uri != "" {
78
77
params["uri"] = uri
79
78
}
80
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getSubjectStatus", params, nil, &out); err != nil {
79
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.getSubjectStatus", params, nil, &out); err != nil {
81
80
return nil, err
82
81
}
83
82
+3
-3
api/atproto/adminsearchAccounts.go
+3
-3
api/atproto/adminsearchAccounts.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminSearchAccounts_Output is the output of a com.atproto.admin.searchAccounts call.
···
17
17
}
18
18
19
19
// AdminSearchAccounts calls the XRPC method "com.atproto.admin.searchAccounts".
20
-
func AdminSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, email string, limit int64) (*AdminSearchAccounts_Output, error) {
20
+
func AdminSearchAccounts(ctx context.Context, c util.LexClient, cursor string, email string, limit int64) (*AdminSearchAccounts_Output, error) {
21
21
var out AdminSearchAccounts_Output
22
22
23
23
params := map[string]interface{}{}
···
30
30
if limit != 0 {
31
31
params["limit"] = limit
32
32
}
33
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.searchAccounts", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.searchAccounts", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+3
-3
api/atproto/adminsendEmail.go
+3
-3
api/atproto/adminsendEmail.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminSendEmail_Input is the input argument to a com.atproto.admin.sendEmail call.
···
26
26
}
27
27
28
28
// AdminSendEmail calls the XRPC method "com.atproto.admin.sendEmail".
29
-
func AdminSendEmail(ctx context.Context, c *xrpc.Client, input *AdminSendEmail_Input) (*AdminSendEmail_Output, error) {
29
+
func AdminSendEmail(ctx context.Context, c util.LexClient, input *AdminSendEmail_Input) (*AdminSendEmail_Output, error) {
30
30
var out AdminSendEmail_Output
31
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.sendEmail", nil, input, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.sendEmail", nil, input, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/atproto/adminupdateAccountEmail.go
+3
-3
api/atproto/adminupdateAccountEmail.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminUpdateAccountEmail_Input is the input argument to a com.atproto.admin.updateAccountEmail call.
···
18
18
}
19
19
20
20
// AdminUpdateAccountEmail calls the XRPC method "com.atproto.admin.updateAccountEmail".
21
-
func AdminUpdateAccountEmail(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountEmail_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountEmail", nil, input, nil); err != nil {
21
+
func AdminUpdateAccountEmail(ctx context.Context, c util.LexClient, input *AdminUpdateAccountEmail_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.updateAccountEmail", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+3
-3
api/atproto/adminupdateAccountHandle.go
+3
-3
api/atproto/adminupdateAccountHandle.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminUpdateAccountHandle_Input is the input argument to a com.atproto.admin.updateAccountHandle call.
···
17
17
}
18
18
19
19
// AdminUpdateAccountHandle calls the XRPC method "com.atproto.admin.updateAccountHandle".
20
-
func AdminUpdateAccountHandle(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountHandle_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountHandle", nil, input, nil); err != nil {
20
+
func AdminUpdateAccountHandle(ctx context.Context, c util.LexClient, input *AdminUpdateAccountHandle_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.updateAccountHandle", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/adminupdateAccountPassword.go
+3
-3
api/atproto/adminupdateAccountPassword.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminUpdateAccountPassword_Input is the input argument to a com.atproto.admin.updateAccountPassword call.
···
17
17
}
18
18
19
19
// AdminUpdateAccountPassword calls the XRPC method "com.atproto.admin.updateAccountPassword".
20
-
func AdminUpdateAccountPassword(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountPassword_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountPassword", nil, input, nil); err != nil {
20
+
func AdminUpdateAccountPassword(ctx context.Context, c util.LexClient, input *AdminUpdateAccountPassword_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.updateAccountPassword", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/adminupdateAccountSigningKey.go
+3
-3
api/atproto/adminupdateAccountSigningKey.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// AdminUpdateAccountSigningKey_Input is the input argument to a com.atproto.admin.updateAccountSigningKey call.
···
18
18
}
19
19
20
20
// AdminUpdateAccountSigningKey calls the XRPC method "com.atproto.admin.updateAccountSigningKey".
21
-
func AdminUpdateAccountSigningKey(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountSigningKey_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountSigningKey", nil, input, nil); err != nil {
21
+
func AdminUpdateAccountSigningKey(ctx context.Context, c util.LexClient, input *AdminUpdateAccountSigningKey_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.updateAccountSigningKey", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+2
-3
api/atproto/adminupdateSubjectStatus.go
+2
-3
api/atproto/adminupdateSubjectStatus.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// AdminUpdateSubjectStatus_Input is the input argument to a com.atproto.admin.updateSubjectStatus call.
···
113
112
}
114
113
115
114
// AdminUpdateSubjectStatus calls the XRPC method "com.atproto.admin.updateSubjectStatus".
116
-
func AdminUpdateSubjectStatus(ctx context.Context, c *xrpc.Client, input *AdminUpdateSubjectStatus_Input) (*AdminUpdateSubjectStatus_Output, error) {
115
+
func AdminUpdateSubjectStatus(ctx context.Context, c util.LexClient, input *AdminUpdateSubjectStatus_Input) (*AdminUpdateSubjectStatus_Output, error) {
117
116
var out AdminUpdateSubjectStatus_Output
118
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateSubjectStatus", nil, input, &out); err != nil {
117
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.updateSubjectStatus", nil, input, &out); err != nil {
119
118
return nil, err
120
119
}
121
120
+2
-3
api/atproto/identitygetRecommendedDidCredentials.go
+2
-3
api/atproto/identitygetRecommendedDidCredentials.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// IdentityGetRecommendedDidCredentials_Output is the output of a com.atproto.identity.getRecommendedDidCredentials call.
···
21
20
}
22
21
23
22
// IdentityGetRecommendedDidCredentials calls the XRPC method "com.atproto.identity.getRecommendedDidCredentials".
24
-
func IdentityGetRecommendedDidCredentials(ctx context.Context, c *xrpc.Client) (*IdentityGetRecommendedDidCredentials_Output, error) {
23
+
func IdentityGetRecommendedDidCredentials(ctx context.Context, c util.LexClient) (*IdentityGetRecommendedDidCredentials_Output, error) {
25
24
var out IdentityGetRecommendedDidCredentials_Output
26
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.getRecommendedDidCredentials", nil, nil, &out); err != nil {
25
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.getRecommendedDidCredentials", nil, nil, &out); err != nil {
27
26
return nil, err
28
27
}
29
28
+3
-3
api/atproto/identityrefreshIdentity.go
+3
-3
api/atproto/identityrefreshIdentity.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityRefreshIdentity_Input is the input argument to a com.atproto.identity.refreshIdentity call.
···
16
16
}
17
17
18
18
// IdentityRefreshIdentity calls the XRPC method "com.atproto.identity.refreshIdentity".
19
-
func IdentityRefreshIdentity(ctx context.Context, c *xrpc.Client, input *IdentityRefreshIdentity_Input) (*IdentityDefs_IdentityInfo, error) {
19
+
func IdentityRefreshIdentity(ctx context.Context, c util.LexClient, input *IdentityRefreshIdentity_Input) (*IdentityDefs_IdentityInfo, error) {
20
20
var out IdentityDefs_IdentityInfo
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.refreshIdentity", nil, input, &out); err != nil {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.refreshIdentity", nil, input, &out); err != nil {
22
22
return nil, err
23
23
}
24
24
+3
-3
api/atproto/identityrequestPlcOperationSignature.go
+3
-3
api/atproto/identityrequestPlcOperationSignature.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityRequestPlcOperationSignature calls the XRPC method "com.atproto.identity.requestPlcOperationSignature".
14
-
func IdentityRequestPlcOperationSignature(ctx context.Context, c *xrpc.Client) error {
15
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.identity.requestPlcOperationSignature", nil, nil, nil); err != nil {
14
+
func IdentityRequestPlcOperationSignature(ctx context.Context, c util.LexClient) error {
15
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.identity.requestPlcOperationSignature", nil, nil, nil); err != nil {
16
16
return err
17
17
}
18
18
+3
-3
api/atproto/identityresolveDid.go
+3
-3
api/atproto/identityresolveDid.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityResolveDid_Output is the output of a com.atproto.identity.resolveDid call.
···
19
19
// IdentityResolveDid calls the XRPC method "com.atproto.identity.resolveDid".
20
20
//
21
21
// did: DID to resolve.
22
-
func IdentityResolveDid(ctx context.Context, c *xrpc.Client, did string) (*IdentityResolveDid_Output, error) {
22
+
func IdentityResolveDid(ctx context.Context, c util.LexClient, did string) (*IdentityResolveDid_Output, error) {
23
23
var out IdentityResolveDid_Output
24
24
25
25
params := map[string]interface{}{}
26
26
params["did"] = did
27
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/atproto/identityresolveHandle.go
+3
-3
api/atproto/identityresolveHandle.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityResolveHandle_Output is the output of a com.atproto.identity.resolveHandle call.
···
18
18
// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
19
19
//
20
20
// handle: The handle to resolve.
21
-
func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
21
+
func IdentityResolveHandle(ctx context.Context, c util.LexClient, handle string) (*IdentityResolveHandle_Output, error) {
22
22
var out IdentityResolveHandle_Output
23
23
24
24
params := map[string]interface{}{}
25
25
params["handle"] = handle
26
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveHandle", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveHandle", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/atproto/identityresolveIdentity.go
+3
-3
api/atproto/identityresolveIdentity.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityResolveIdentity calls the XRPC method "com.atproto.identity.resolveIdentity".
14
14
//
15
15
// identifier: Handle or DID to resolve.
16
-
func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, identifier string) (*IdentityDefs_IdentityInfo, error) {
16
+
func IdentityResolveIdentity(ctx context.Context, c util.LexClient, identifier string) (*IdentityDefs_IdentityInfo, error) {
17
17
var out IdentityDefs_IdentityInfo
18
18
19
19
params := map[string]interface{}{}
20
20
params["identifier"] = identifier
21
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil {
21
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil {
22
22
return nil, err
23
23
}
24
24
+2
-3
api/atproto/identitysignPlcOperation.go
+2
-3
api/atproto/identitysignPlcOperation.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// IdentitySignPlcOperation_Input is the input argument to a com.atproto.identity.signPlcOperation call.
···
28
27
}
29
28
30
29
// IdentitySignPlcOperation calls the XRPC method "com.atproto.identity.signPlcOperation".
31
-
func IdentitySignPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
30
+
func IdentitySignPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySignPlcOperation_Input) (*IdentitySignPlcOperation_Output, error) {
32
31
var out IdentitySignPlcOperation_Output
33
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.signPlcOperation", nil, input, &out); err != nil {
34
33
return nil, err
35
34
}
36
35
+2
-3
api/atproto/identitysubmitPlcOperation.go
+2
-3
api/atproto/identitysubmitPlcOperation.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// IdentitySubmitPlcOperation_Input is the input argument to a com.atproto.identity.submitPlcOperation call.
···
17
16
}
18
17
19
18
// IdentitySubmitPlcOperation calls the XRPC method "com.atproto.identity.submitPlcOperation".
20
-
func IdentitySubmitPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySubmitPlcOperation_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.submitPlcOperation", nil, input, nil); err != nil {
19
+
func IdentitySubmitPlcOperation(ctx context.Context, c util.LexClient, input *IdentitySubmitPlcOperation_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.submitPlcOperation", nil, input, nil); err != nil {
22
21
return err
23
22
}
24
23
+3
-3
api/atproto/identityupdateHandle.go
+3
-3
api/atproto/identityupdateHandle.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.
···
17
17
}
18
18
19
19
// IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".
20
-
func IdentityUpdateHandle(ctx context.Context, c *xrpc.Client, input *IdentityUpdateHandle_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
20
+
func IdentityUpdateHandle(ctx context.Context, c util.LexClient, input *IdentityUpdateHandle_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/labelqueryLabels.go
+3
-3
api/atproto/labelqueryLabels.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.
···
20
20
//
21
21
// sources: Optional list of label sources (DIDs) to filter on.
22
22
// 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.
23
-
func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
23
+
func LabelQueryLabels(ctx context.Context, c util.LexClient, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
24
24
var out LabelQueryLabels_Output
25
25
26
26
params := map[string]interface{}{}
···
34
34
params["sources"] = sources
35
35
}
36
36
params["uriPatterns"] = uriPatterns
37
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.label.queryLabels", params, nil, &out); err != nil {
37
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.label.queryLabels", params, nil, &out); err != nil {
38
38
return nil, err
39
39
}
40
40
+2
-3
api/atproto/moderationcreateReport.go
+2
-3
api/atproto/moderationcreateReport.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call.
···
103
102
}
104
103
105
104
// ModerationCreateReport calls the XRPC method "com.atproto.moderation.createReport".
106
-
func ModerationCreateReport(ctx context.Context, c *xrpc.Client, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
105
+
func ModerationCreateReport(ctx context.Context, c util.LexClient, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
107
106
var out ModerationCreateReport_Output
108
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
107
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
109
108
return nil, err
110
109
}
111
110
+2
-3
api/atproto/repoapplyWrites.go
+2
-3
api/atproto/repoapplyWrites.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
···
180
179
}
181
180
182
181
// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
183
-
func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
182
+
func RepoApplyWrites(ctx context.Context, c util.LexClient, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
184
183
var out RepoApplyWrites_Output
185
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
184
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
186
185
return nil, err
187
186
}
188
187
+2
-3
api/atproto/repocreateRecord.go
+2
-3
api/atproto/repocreateRecord.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.
···
36
35
}
37
36
38
37
// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
39
-
func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
38
+
func RepoCreateRecord(ctx context.Context, c util.LexClient, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
40
39
var out RepoCreateRecord_Output
41
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
40
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
42
41
return nil, err
43
42
}
44
43
+3
-3
api/atproto/repodeleteRecord.go
+3
-3
api/atproto/repodeleteRecord.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.
···
30
30
}
31
31
32
32
// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
33
-
func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
33
+
func RepoDeleteRecord(ctx context.Context, c util.LexClient, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
34
34
var out RepoDeleteRecord_Output
35
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
35
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
36
36
return nil, err
37
37
}
38
38
+3
-3
api/atproto/repodescribeRepo.go
+3
-3
api/atproto/repodescribeRepo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
···
25
25
// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
26
26
//
27
27
// repo: The handle or DID of the repo.
28
-
func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error) {
28
+
func RepoDescribeRepo(ctx context.Context, c util.LexClient, repo string) (*RepoDescribeRepo_Output, error) {
29
29
var out RepoDescribeRepo_Output
30
30
31
31
params := map[string]interface{}{}
32
32
params["repo"] = repo
33
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+2
-3
api/atproto/repogetRecord.go
+2
-3
api/atproto/repogetRecord.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
···
24
23
// collection: The NSID of the record collection.
25
24
// repo: The handle or DID of the repo.
26
25
// rkey: The Record Key.
27
-
func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
26
+
func RepoGetRecord(ctx context.Context, c util.LexClient, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
28
27
var out RepoGetRecord_Output
29
28
30
29
params := map[string]interface{}{}
···
34
33
params["collection"] = collection
35
34
params["repo"] = repo
36
35
params["rkey"] = rkey
37
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
36
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
38
37
return nil, err
39
38
}
40
39
+3
-3
api/atproto/repoimportRepo.go
+3
-3
api/atproto/repoimportRepo.go
···
8
8
"context"
9
9
"io"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// RepoImportRepo calls the XRPC method "com.atproto.repo.importRepo".
15
-
func RepoImportRepo(ctx context.Context, c *xrpc.Client, input io.Reader) error {
16
-
if err := c.Do(ctx, xrpc.Procedure, "application/vnd.ipld.car", "com.atproto.repo.importRepo", nil, input, nil); err != nil {
15
+
func RepoImportRepo(ctx context.Context, c util.LexClient, input io.Reader) error {
16
+
if err := c.LexDo(ctx, util.Procedure, "application/vnd.ipld.car", "com.atproto.repo.importRepo", nil, input, nil); err != nil {
17
17
return err
18
18
}
19
19
+3
-3
api/atproto/repolistMissingBlobs.go
+3
-3
api/atproto/repolistMissingBlobs.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// RepoListMissingBlobs_Output is the output of a com.atproto.repo.listMissingBlobs call.
···
23
23
}
24
24
25
25
// RepoListMissingBlobs calls the XRPC method "com.atproto.repo.listMissingBlobs".
26
-
func RepoListMissingBlobs(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) {
26
+
func RepoListMissingBlobs(ctx context.Context, c util.LexClient, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) {
27
27
var out RepoListMissingBlobs_Output
28
28
29
29
params := map[string]interface{}{}
···
33
33
if limit != 0 {
34
34
params["limit"] = limit
35
35
}
36
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listMissingBlobs", params, nil, &out); err != nil {
36
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.listMissingBlobs", params, nil, &out); err != nil {
37
37
return nil, err
38
38
}
39
39
+2
-3
api/atproto/repolistRecords.go
+2
-3
api/atproto/repolistRecords.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
···
30
29
// limit: The number of records to return.
31
30
// repo: The handle or DID of the repo.
32
31
// reverse: Flag to reverse the order of the returned records.
33
-
func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
32
+
func RepoListRecords(ctx context.Context, c util.LexClient, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
34
33
var out RepoListRecords_Output
35
34
36
35
params := map[string]interface{}{}
···
45
44
if reverse {
46
45
params["reverse"] = reverse
47
46
}
48
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
47
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
49
48
return nil, err
50
49
}
51
50
+2
-3
api/atproto/repoputRecord.go
+2
-3
api/atproto/repoputRecord.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
···
38
37
}
39
38
40
39
// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
41
-
func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
40
+
func RepoPutRecord(ctx context.Context, c util.LexClient, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
42
41
var out RepoPutRecord_Output
43
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
42
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
44
43
return nil, err
45
44
}
46
45
+2
-3
api/atproto/repouploadBlob.go
+2
-3
api/atproto/repouploadBlob.go
···
9
9
"io"
10
10
11
11
"github.com/bluesky-social/indigo/lex/util"
12
-
"github.com/bluesky-social/indigo/xrpc"
13
12
)
14
13
15
14
// RepoUploadBlob_Output is the output of a com.atproto.repo.uploadBlob call.
···
18
17
}
19
18
20
19
// RepoUploadBlob calls the XRPC method "com.atproto.repo.uploadBlob".
21
-
func RepoUploadBlob(ctx context.Context, c *xrpc.Client, input io.Reader) (*RepoUploadBlob_Output, error) {
20
+
func RepoUploadBlob(ctx context.Context, c util.LexClient, input io.Reader) (*RepoUploadBlob_Output, error) {
22
21
var out RepoUploadBlob_Output
23
-
if err := c.Do(ctx, xrpc.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
24
23
return nil, err
25
24
}
26
25
+3
-3
api/atproto/serveractivateAccount.go
+3
-3
api/atproto/serveractivateAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerActivateAccount calls the XRPC method "com.atproto.server.activateAccount".
14
-
func ServerActivateAccount(ctx context.Context, c *xrpc.Client) error {
15
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.activateAccount", nil, nil, nil); err != nil {
14
+
func ServerActivateAccount(ctx context.Context, c util.LexClient) error {
15
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.activateAccount", nil, nil, nil); err != nil {
16
16
return err
17
17
}
18
18
+3
-3
api/atproto/servercheckAccountStatus.go
+3
-3
api/atproto/servercheckAccountStatus.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCheckAccountStatus_Output is the output of a com.atproto.server.checkAccountStatus call.
···
24
24
}
25
25
26
26
// ServerCheckAccountStatus calls the XRPC method "com.atproto.server.checkAccountStatus".
27
-
func ServerCheckAccountStatus(ctx context.Context, c *xrpc.Client) (*ServerCheckAccountStatus_Output, error) {
27
+
func ServerCheckAccountStatus(ctx context.Context, c util.LexClient) (*ServerCheckAccountStatus_Output, error) {
28
28
var out ServerCheckAccountStatus_Output
29
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.checkAccountStatus", nil, nil, &out); err != nil {
29
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.checkAccountStatus", nil, nil, &out); err != nil {
30
30
return nil, err
31
31
}
32
32
+3
-3
api/atproto/serverconfirmEmail.go
+3
-3
api/atproto/serverconfirmEmail.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerConfirmEmail_Input is the input argument to a com.atproto.server.confirmEmail call.
···
17
17
}
18
18
19
19
// ServerConfirmEmail calls the XRPC method "com.atproto.server.confirmEmail".
20
-
func ServerConfirmEmail(ctx context.Context, c *xrpc.Client, input *ServerConfirmEmail_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.confirmEmail", nil, input, nil); err != nil {
20
+
func ServerConfirmEmail(ctx context.Context, c util.LexClient, input *ServerConfirmEmail_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.confirmEmail", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/servercreateAccount.go
+3
-3
api/atproto/servercreateAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCreateAccount_Input is the input argument to a com.atproto.server.createAccount call.
···
42
42
}
43
43
44
44
// ServerCreateAccount calls the XRPC method "com.atproto.server.createAccount".
45
-
func ServerCreateAccount(ctx context.Context, c *xrpc.Client, input *ServerCreateAccount_Input) (*ServerCreateAccount_Output, error) {
45
+
func ServerCreateAccount(ctx context.Context, c util.LexClient, input *ServerCreateAccount_Input) (*ServerCreateAccount_Output, error) {
46
46
var out ServerCreateAccount_Output
47
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAccount", nil, input, &out); err != nil {
47
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createAccount", nil, input, &out); err != nil {
48
48
return nil, err
49
49
}
50
50
+3
-3
api/atproto/servercreateAppPassword.go
+3
-3
api/atproto/servercreateAppPassword.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema.
···
27
27
}
28
28
29
29
// ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".
30
-
func ServerCreateAppPassword(ctx context.Context, c *xrpc.Client, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) {
30
+
func ServerCreateAppPassword(ctx context.Context, c util.LexClient, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) {
31
31
var out ServerCreateAppPassword_AppPassword
32
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/atproto/servercreateInviteCode.go
+3
-3
api/atproto/servercreateInviteCode.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.
···
22
22
}
23
23
24
24
// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".
25
-
func ServerCreateInviteCode(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
25
+
func ServerCreateInviteCode(ctx context.Context, c util.LexClient, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
26
26
var out ServerCreateInviteCode_Output
27
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/atproto/servercreateInviteCodes.go
+3
-3
api/atproto/servercreateInviteCodes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.
···
29
29
}
30
30
31
31
// ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".
32
-
func ServerCreateInviteCodes(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) {
32
+
func ServerCreateInviteCodes(ctx context.Context, c util.LexClient, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) {
33
33
var out ServerCreateInviteCodes_Output
34
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil {
34
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil {
35
35
return nil, err
36
36
}
37
37
+3
-3
api/atproto/servercreateSession.go
+3
-3
api/atproto/servercreateSession.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerCreateSession_Input is the input argument to a com.atproto.server.createSession call.
···
36
36
}
37
37
38
38
// ServerCreateSession calls the XRPC method "com.atproto.server.createSession".
39
-
func ServerCreateSession(ctx context.Context, c *xrpc.Client, input *ServerCreateSession_Input) (*ServerCreateSession_Output, error) {
39
+
func ServerCreateSession(ctx context.Context, c util.LexClient, input *ServerCreateSession_Input) (*ServerCreateSession_Output, error) {
40
40
var out ServerCreateSession_Output
41
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createSession", nil, input, &out); err != nil {
41
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.createSession", nil, input, &out); err != nil {
42
42
return nil, err
43
43
}
44
44
+3
-3
api/atproto/serverdeactivateAccount.go
+3
-3
api/atproto/serverdeactivateAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerDeactivateAccount_Input is the input argument to a com.atproto.server.deactivateAccount call.
···
17
17
}
18
18
19
19
// ServerDeactivateAccount calls the XRPC method "com.atproto.server.deactivateAccount".
20
-
func ServerDeactivateAccount(ctx context.Context, c *xrpc.Client, input *ServerDeactivateAccount_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deactivateAccount", nil, input, nil); err != nil {
20
+
func ServerDeactivateAccount(ctx context.Context, c util.LexClient, input *ServerDeactivateAccount_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.deactivateAccount", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/serverdeleteAccount.go
+3
-3
api/atproto/serverdeleteAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerDeleteAccount_Input is the input argument to a com.atproto.server.deleteAccount call.
···
18
18
}
19
19
20
20
// ServerDeleteAccount calls the XRPC method "com.atproto.server.deleteAccount".
21
-
func ServerDeleteAccount(ctx context.Context, c *xrpc.Client, input *ServerDeleteAccount_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deleteAccount", nil, input, nil); err != nil {
21
+
func ServerDeleteAccount(ctx context.Context, c util.LexClient, input *ServerDeleteAccount_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.deleteAccount", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+3
-3
api/atproto/serverdeleteSession.go
+3
-3
api/atproto/serverdeleteSession.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerDeleteSession calls the XRPC method "com.atproto.server.deleteSession".
14
-
func ServerDeleteSession(ctx context.Context, c *xrpc.Client) error {
15
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.deleteSession", nil, nil, nil); err != nil {
14
+
func ServerDeleteSession(ctx context.Context, c util.LexClient) error {
15
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.deleteSession", nil, nil, nil); err != nil {
16
16
return err
17
17
}
18
18
+3
-3
api/atproto/serverdescribeServer.go
+3
-3
api/atproto/serverdescribeServer.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema.
···
37
37
}
38
38
39
39
// ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".
40
-
func ServerDescribeServer(ctx context.Context, c *xrpc.Client) (*ServerDescribeServer_Output, error) {
40
+
func ServerDescribeServer(ctx context.Context, c util.LexClient) (*ServerDescribeServer_Output, error) {
41
41
var out ServerDescribeServer_Output
42
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
42
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
43
43
return nil, err
44
44
}
45
45
+3
-3
api/atproto/servergetAccountInviteCodes.go
+3
-3
api/atproto/servergetAccountInviteCodes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call.
···
18
18
// ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes".
19
19
//
20
20
// createAvailable: Controls whether any new 'earned' but not 'created' invites should be created.
21
-
func ServerGetAccountInviteCodes(ctx context.Context, c *xrpc.Client, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
21
+
func ServerGetAccountInviteCodes(ctx context.Context, c util.LexClient, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
22
22
var out ServerGetAccountInviteCodes_Output
23
23
24
24
params := map[string]interface{}{}
···
28
28
if includeUsed {
29
29
params["includeUsed"] = includeUsed
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/atproto/servergetServiceAuth.go
+3
-3
api/atproto/servergetServiceAuth.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerGetServiceAuth_Output is the output of a com.atproto.server.getServiceAuth call.
···
20
20
// aud: The DID of the service that the token will be used to authenticate with
21
21
// 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.
22
22
// lxm: Lexicon (XRPC) method to bind the requested token to
23
-
func ServerGetServiceAuth(ctx context.Context, c *xrpc.Client, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) {
23
+
func ServerGetServiceAuth(ctx context.Context, c util.LexClient, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) {
24
24
var out ServerGetServiceAuth_Output
25
25
26
26
params := map[string]interface{}{}
···
31
31
if lxm != "" {
32
32
params["lxm"] = lxm
33
33
}
34
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
34
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
35
35
return nil, err
36
36
}
37
37
+3
-3
api/atproto/servergetSession.go
+3
-3
api/atproto/servergetSession.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerGetSession_Output is the output of a com.atproto.server.getSession call.
···
24
24
}
25
25
26
26
// ServerGetSession calls the XRPC method "com.atproto.server.getSession".
27
-
func ServerGetSession(ctx context.Context, c *xrpc.Client) (*ServerGetSession_Output, error) {
27
+
func ServerGetSession(ctx context.Context, c util.LexClient) (*ServerGetSession_Output, error) {
28
28
var out ServerGetSession_Output
29
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
29
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
30
30
return nil, err
31
31
}
32
32
+3
-3
api/atproto/serverlistAppPasswords.go
+3
-3
api/atproto/serverlistAppPasswords.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.
···
23
23
}
24
24
25
25
// ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".
26
-
func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) {
26
+
func ServerListAppPasswords(ctx context.Context, c util.LexClient) (*ServerListAppPasswords_Output, error) {
27
27
var out ServerListAppPasswords_Output
28
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/atproto/serverrefreshSession.go
+3
-3
api/atproto/serverrefreshSession.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.
···
23
23
}
24
24
25
25
// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
26
-
func ServerRefreshSession(ctx context.Context, c *xrpc.Client) (*ServerRefreshSession_Output, error) {
26
+
func ServerRefreshSession(ctx context.Context, c util.LexClient) (*ServerRefreshSession_Output, error) {
27
27
var out ServerRefreshSession_Output
28
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/atproto/serverrequestAccountDelete.go
+3
-3
api/atproto/serverrequestAccountDelete.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRequestAccountDelete calls the XRPC method "com.atproto.server.requestAccountDelete".
14
-
func ServerRequestAccountDelete(ctx context.Context, c *xrpc.Client) error {
15
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestAccountDelete", nil, nil, nil); err != nil {
14
+
func ServerRequestAccountDelete(ctx context.Context, c util.LexClient) error {
15
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.requestAccountDelete", nil, nil, nil); err != nil {
16
16
return err
17
17
}
18
18
+3
-3
api/atproto/serverrequestEmailConfirmation.go
+3
-3
api/atproto/serverrequestEmailConfirmation.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRequestEmailConfirmation calls the XRPC method "com.atproto.server.requestEmailConfirmation".
14
-
func ServerRequestEmailConfirmation(ctx context.Context, c *xrpc.Client) error {
15
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestEmailConfirmation", nil, nil, nil); err != nil {
14
+
func ServerRequestEmailConfirmation(ctx context.Context, c util.LexClient) error {
15
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.requestEmailConfirmation", nil, nil, nil); err != nil {
16
16
return err
17
17
}
18
18
+3
-3
api/atproto/serverrequestEmailUpdate.go
+3
-3
api/atproto/serverrequestEmailUpdate.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRequestEmailUpdate_Output is the output of a com.atproto.server.requestEmailUpdate call.
···
16
16
}
17
17
18
18
// ServerRequestEmailUpdate calls the XRPC method "com.atproto.server.requestEmailUpdate".
19
-
func ServerRequestEmailUpdate(ctx context.Context, c *xrpc.Client) (*ServerRequestEmailUpdate_Output, error) {
19
+
func ServerRequestEmailUpdate(ctx context.Context, c util.LexClient) (*ServerRequestEmailUpdate_Output, error) {
20
20
var out ServerRequestEmailUpdate_Output
21
-
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestEmailUpdate", nil, nil, &out); err != nil {
21
+
if err := c.LexDo(ctx, util.Procedure, "", "com.atproto.server.requestEmailUpdate", nil, nil, &out); err != nil {
22
22
return nil, err
23
23
}
24
24
+3
-3
api/atproto/serverrequestPasswordReset.go
+3
-3
api/atproto/serverrequestPasswordReset.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRequestPasswordReset_Input is the input argument to a com.atproto.server.requestPasswordReset call.
···
16
16
}
17
17
18
18
// ServerRequestPasswordReset calls the XRPC method "com.atproto.server.requestPasswordReset".
19
-
func ServerRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *ServerRequestPasswordReset_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
19
+
func ServerRequestPasswordReset(ctx context.Context, c util.LexClient, input *ServerRequestPasswordReset_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/atproto/serverreserveSigningKey.go
+3
-3
api/atproto/serverreserveSigningKey.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerReserveSigningKey_Input is the input argument to a com.atproto.server.reserveSigningKey call.
···
23
23
}
24
24
25
25
// ServerReserveSigningKey calls the XRPC method "com.atproto.server.reserveSigningKey".
26
-
func ServerReserveSigningKey(ctx context.Context, c *xrpc.Client, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) {
26
+
func ServerReserveSigningKey(ctx context.Context, c util.LexClient, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) {
27
27
var out ServerReserveSigningKey_Output
28
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/atproto/serverresetPassword.go
+3
-3
api/atproto/serverresetPassword.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.
···
17
17
}
18
18
19
19
// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".
20
-
func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
20
+
func ServerResetPassword(ctx context.Context, c util.LexClient, input *ServerResetPassword_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/serverrevokeAppPassword.go
+3
-3
api/atproto/serverrevokeAppPassword.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.
···
16
16
}
17
17
18
18
// ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".
19
-
func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
19
+
func ServerRevokeAppPassword(ctx context.Context, c util.LexClient, input *ServerRevokeAppPassword_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/atproto/serverupdateEmail.go
+3
-3
api/atproto/serverupdateEmail.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.
···
19
19
}
20
20
21
21
// ServerUpdateEmail calls the XRPC method "com.atproto.server.updateEmail".
22
-
func ServerUpdateEmail(ctx context.Context, c *xrpc.Client, input *ServerUpdateEmail_Input) error {
23
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil {
22
+
func ServerUpdateEmail(ctx context.Context, c util.LexClient, input *ServerUpdateEmail_Input) error {
23
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil {
24
24
return err
25
25
}
26
26
+3
-3
api/atproto/syncgetBlob.go
+3
-3
api/atproto/syncgetBlob.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SyncGetBlob calls the XRPC method "com.atproto.sync.getBlob".
15
15
//
16
16
// cid: The CID of the blob to fetch
17
17
// did: The DID of the account.
18
-
func SyncGetBlob(ctx context.Context, c *xrpc.Client, cid string, did string) ([]byte, error) {
18
+
func SyncGetBlob(ctx context.Context, c util.LexClient, cid string, did string) ([]byte, error) {
19
19
buf := new(bytes.Buffer)
20
20
21
21
params := map[string]interface{}{}
22
22
params["cid"] = cid
23
23
params["did"] = did
24
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlob", params, nil, buf); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getBlob", params, nil, buf); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/atproto/syncgetBlocks.go
+3
-3
api/atproto/syncgetBlocks.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
15
15
//
16
16
// did: The DID of the repo.
17
-
func SyncGetBlocks(ctx context.Context, c *xrpc.Client, cids []string, did string) ([]byte, error) {
17
+
func SyncGetBlocks(ctx context.Context, c util.LexClient, cids []string, did string) ([]byte, error) {
18
18
buf := new(bytes.Buffer)
19
19
20
20
params := map[string]interface{}{}
21
21
params["cids"] = cids
22
22
params["did"] = did
23
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
23
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
24
24
return nil, err
25
25
}
26
26
+3
-3
api/atproto/syncgetCheckout.go
+3
-3
api/atproto/syncgetCheckout.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
15
15
//
16
16
// did: The DID of the repo.
17
-
func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) {
17
+
func SyncGetCheckout(ctx context.Context, c util.LexClient, did string) ([]byte, error) {
18
18
buf := new(bytes.Buffer)
19
19
20
20
params := map[string]interface{}{}
21
21
params["did"] = did
22
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
22
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
23
23
return nil, err
24
24
}
25
25
+3
-3
api/atproto/syncgetHead.go
+3
-3
api/atproto/syncgetHead.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncGetHead_Output is the output of a com.atproto.sync.getHead call.
···
18
18
// SyncGetHead calls the XRPC method "com.atproto.sync.getHead".
19
19
//
20
20
// did: The DID of the repo.
21
-
func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error) {
21
+
func SyncGetHead(ctx context.Context, c util.LexClient, did string) (*SyncGetHead_Output, error) {
22
22
var out SyncGetHead_Output
23
23
24
24
params := map[string]interface{}{}
25
25
params["did"] = did
26
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHead", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getHead", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/atproto/syncgetHostStatus.go
+3
-3
api/atproto/syncgetHostStatus.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncGetHostStatus_Output is the output of a com.atproto.sync.getHostStatus call.
···
23
23
// SyncGetHostStatus calls the XRPC method "com.atproto.sync.getHostStatus".
24
24
//
25
25
// hostname: Hostname of the host (eg, PDS or relay) being queried.
26
-
func SyncGetHostStatus(ctx context.Context, c *xrpc.Client, hostname string) (*SyncGetHostStatus_Output, error) {
26
+
func SyncGetHostStatus(ctx context.Context, c util.LexClient, hostname string) (*SyncGetHostStatus_Output, error) {
27
27
var out SyncGetHostStatus_Output
28
28
29
29
params := map[string]interface{}{}
30
30
params["hostname"] = hostname
31
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHostStatus", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getHostStatus", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/atproto/syncgetLatestCommit.go
+3
-3
api/atproto/syncgetLatestCommit.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call.
···
19
19
// SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit".
20
20
//
21
21
// did: The DID of the repo.
22
-
func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error) {
22
+
func SyncGetLatestCommit(ctx context.Context, c util.LexClient, did string) (*SyncGetLatestCommit_Output, error) {
23
23
var out SyncGetLatestCommit_Output
24
24
25
25
params := map[string]interface{}{}
26
26
params["did"] = did
27
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/atproto/syncgetRecord.go
+3
-3
api/atproto/syncgetRecord.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".
15
15
//
16
16
// did: The DID of the repo.
17
17
// rkey: Record Key
18
-
func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, did string, rkey string) ([]byte, error) {
18
+
func SyncGetRecord(ctx context.Context, c util.LexClient, collection string, did string, rkey string) ([]byte, error) {
19
19
buf := new(bytes.Buffer)
20
20
21
21
params := map[string]interface{}{}
22
22
params["collection"] = collection
23
23
params["did"] = did
24
24
params["rkey"] = rkey
25
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil {
25
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil {
26
26
return nil, err
27
27
}
28
28
+3
-3
api/atproto/syncgetRepo.go
+3
-3
api/atproto/syncgetRepo.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".
15
15
//
16
16
// did: The DID of the repo.
17
17
// since: The revision ('rev') of the repo to create a diff from.
18
-
func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) {
18
+
func SyncGetRepo(ctx context.Context, c util.LexClient, did string, since string) ([]byte, error) {
19
19
buf := new(bytes.Buffer)
20
20
21
21
params := map[string]interface{}{}
···
23
23
if since != "" {
24
24
params["since"] = since
25
25
}
26
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/atproto/syncgetRepoStatus.go
+3
-3
api/atproto/syncgetRepoStatus.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call.
···
23
23
// SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus".
24
24
//
25
25
// did: The DID of the repo.
26
-
func SyncGetRepoStatus(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRepoStatus_Output, error) {
26
+
func SyncGetRepoStatus(ctx context.Context, c util.LexClient, did string) (*SyncGetRepoStatus_Output, error) {
27
27
var out SyncGetRepoStatus_Output
28
28
29
29
params := map[string]interface{}{}
30
30
params["did"] = did
31
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/atproto/synclistBlobs.go
+3
-3
api/atproto/synclistBlobs.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
···
20
20
//
21
21
// did: The DID of the repo.
22
22
// since: Optional revision of the repo to list blobs since.
23
-
func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
23
+
func SyncListBlobs(ctx context.Context, c util.LexClient, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
24
24
var out SyncListBlobs_Output
25
25
26
26
params := map[string]interface{}{}
···
34
34
if since != "" {
35
35
params["since"] = since
36
36
}
37
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
37
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
38
38
return nil, err
39
39
}
40
40
+3
-3
api/atproto/synclistHosts.go
+3
-3
api/atproto/synclistHosts.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncListHosts_Host is a "host" in the com.atproto.sync.listHosts schema.
···
28
28
}
29
29
30
30
// SyncListHosts calls the XRPC method "com.atproto.sync.listHosts".
31
-
func SyncListHosts(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListHosts_Output, error) {
31
+
func SyncListHosts(ctx context.Context, c util.LexClient, cursor string, limit int64) (*SyncListHosts_Output, error) {
32
32
var out SyncListHosts_Output
33
33
34
34
params := map[string]interface{}{}
···
38
38
if limit != 0 {
39
39
params["limit"] = limit
40
40
}
41
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listHosts", params, nil, &out); err != nil {
41
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listHosts", params, nil, &out); err != nil {
42
42
return nil, err
43
43
}
44
44
+3
-3
api/atproto/synclistRepos.go
+3
-3
api/atproto/synclistRepos.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.
···
28
28
}
29
29
30
30
// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
31
-
func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error) {
31
+
func SyncListRepos(ctx context.Context, c util.LexClient, cursor string, limit int64) (*SyncListRepos_Output, error) {
32
32
var out SyncListRepos_Output
33
33
34
34
params := map[string]interface{}{}
···
38
38
if limit != 0 {
39
39
params["limit"] = limit
40
40
}
41
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listRepos", params, nil, &out); err != nil {
41
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listRepos", params, nil, &out); err != nil {
42
42
return nil, err
43
43
}
44
44
+3
-3
api/atproto/synclistReposByCollection.go
+3
-3
api/atproto/synclistReposByCollection.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncListReposByCollection_Output is the output of a com.atproto.sync.listReposByCollection call.
···
24
24
// SyncListReposByCollection calls the XRPC method "com.atproto.sync.listReposByCollection".
25
25
//
26
26
// limit: Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists.
27
-
func SyncListReposByCollection(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64) (*SyncListReposByCollection_Output, error) {
27
+
func SyncListReposByCollection(ctx context.Context, c util.LexClient, collection string, cursor string, limit int64) (*SyncListReposByCollection_Output, error) {
28
28
var out SyncListReposByCollection_Output
29
29
30
30
params := map[string]interface{}{}
···
35
35
if limit != 0 {
36
36
params["limit"] = limit
37
37
}
38
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil {
38
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil {
39
39
return nil, err
40
40
}
41
41
+3
-3
api/atproto/syncnotifyOfUpdate.go
+3
-3
api/atproto/syncnotifyOfUpdate.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.
···
17
17
}
18
18
19
19
// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
20
-
func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
20
+
func SyncNotifyOfUpdate(ctx context.Context, c util.LexClient, input *SyncNotifyOfUpdate_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/syncrequestCrawl.go
+3
-3
api/atproto/syncrequestCrawl.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.
···
17
17
}
18
18
19
19
// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
20
-
func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error {
21
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
20
+
func SyncRequestCrawl(ctx context.Context, c util.LexClient, input *SyncRequestCrawl_Input) error {
21
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+3
-3
api/atproto/tempaddReservedHandle.go
+3
-3
api/atproto/tempaddReservedHandle.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TempAddReservedHandle_Input is the input argument to a com.atproto.temp.addReservedHandle call.
···
20
20
}
21
21
22
22
// TempAddReservedHandle calls the XRPC method "com.atproto.temp.addReservedHandle".
23
-
func TempAddReservedHandle(ctx context.Context, c *xrpc.Client, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) {
23
+
func TempAddReservedHandle(ctx context.Context, c util.LexClient, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) {
24
24
var out TempAddReservedHandle_Output
25
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil {
25
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil {
26
26
return nil, err
27
27
}
28
28
+3
-3
api/atproto/tempcheckSignupQueue.go
+3
-3
api/atproto/tempcheckSignupQueue.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call.
···
18
18
}
19
19
20
20
// TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue".
21
-
func TempCheckSignupQueue(ctx context.Context, c *xrpc.Client) (*TempCheckSignupQueue_Output, error) {
21
+
func TempCheckSignupQueue(ctx context.Context, c util.LexClient) (*TempCheckSignupQueue_Output, error) {
22
22
var out TempCheckSignupQueue_Output
23
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
23
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
24
24
return nil, err
25
25
}
26
26
+3
-3
api/atproto/tempfetchLabels.go
+3
-3
api/atproto/tempfetchLabels.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call.
···
16
16
}
17
17
18
18
// TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels".
19
-
func TempFetchLabels(ctx context.Context, c *xrpc.Client, limit int64, since int64) (*TempFetchLabels_Output, error) {
19
+
func TempFetchLabels(ctx context.Context, c util.LexClient, limit int64, since int64) (*TempFetchLabels_Output, error) {
20
20
var out TempFetchLabels_Output
21
21
22
22
params := map[string]interface{}{}
···
26
26
if since != 0 {
27
27
params["since"] = since
28
28
}
29
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
29
+
if err := c.LexDo(ctx, util.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
30
30
return nil, err
31
31
}
32
32
+3
-3
api/atproto/temprequestPhoneVerification.go
+3
-3
api/atproto/temprequestPhoneVerification.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call.
···
16
16
}
17
17
18
18
// TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification".
19
-
func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
19
+
func TempRequestPhoneVerification(ctx context.Context, c util.LexClient, input *TempRequestPhoneVerification_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/actorgetPreferences.go
+3
-3
api/bsky/actorgetPreferences.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorGetPreferences_Output is the output of a app.bsky.actor.getPreferences call.
···
16
16
}
17
17
18
18
// ActorGetPreferences calls the XRPC method "app.bsky.actor.getPreferences".
19
-
func ActorGetPreferences(ctx context.Context, c *xrpc.Client) (*ActorGetPreferences_Output, error) {
19
+
func ActorGetPreferences(ctx context.Context, c util.LexClient) (*ActorGetPreferences_Output, error) {
20
20
var out ActorGetPreferences_Output
21
21
22
22
params := map[string]interface{}{}
23
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getPreferences", params, nil, &out); err != nil {
23
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getPreferences", params, nil, &out); err != nil {
24
24
return nil, err
25
25
}
26
26
+3
-3
api/bsky/actorgetProfile.go
+3
-3
api/bsky/actorgetProfile.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorGetProfile calls the XRPC method "app.bsky.actor.getProfile".
14
14
//
15
15
// actor: Handle or DID of account to fetch profile of.
16
-
func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorDefs_ProfileViewDetailed, error) {
16
+
func ActorGetProfile(ctx context.Context, c util.LexClient, actor string) (*ActorDefs_ProfileViewDetailed, error) {
17
17
var out ActorDefs_ProfileViewDetailed
18
18
19
19
params := map[string]interface{}{}
20
20
params["actor"] = actor
21
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfile", params, nil, &out); err != nil {
21
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getProfile", params, nil, &out); err != nil {
22
22
return nil, err
23
23
}
24
24
+3
-3
api/bsky/actorgetProfiles.go
+3
-3
api/bsky/actorgetProfiles.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
···
16
16
}
17
17
18
18
// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
19
-
func ActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*ActorGetProfiles_Output, error) {
19
+
func ActorGetProfiles(ctx context.Context, c util.LexClient, actors []string) (*ActorGetProfiles_Output, error) {
20
20
var out ActorGetProfiles_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["actors"] = actors
24
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/bsky/actorgetSuggestions.go
+3
-3
api/bsky/actorgetSuggestions.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorGetSuggestions_Output is the output of a app.bsky.actor.getSuggestions call.
···
19
19
}
20
20
21
21
// ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
22
-
func ActorGetSuggestions(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
22
+
func ActorGetSuggestions(ctx context.Context, c util.LexClient, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
23
23
var out ActorGetSuggestions_Output
24
24
25
25
params := map[string]interface{}{}
···
29
29
if limit != 0 {
30
30
params["limit"] = limit
31
31
}
32
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getSuggestions", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getSuggestions", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/bsky/actorputPreferences.go
+3
-3
api/bsky/actorputPreferences.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorPutPreferences_Input is the input argument to a app.bsky.actor.putPreferences call.
···
16
16
}
17
17
18
18
// ActorPutPreferences calls the XRPC method "app.bsky.actor.putPreferences".
19
-
func ActorPutPreferences(ctx context.Context, c *xrpc.Client, input *ActorPutPreferences_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.actor.putPreferences", nil, input, nil); err != nil {
19
+
func ActorPutPreferences(ctx context.Context, c util.LexClient, input *ActorPutPreferences_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.actor.putPreferences", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/actorsearchActors.go
+3
-3
api/bsky/actorsearchActors.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorSearchActors_Output is the output of a app.bsky.actor.searchActors call.
···
20
20
//
21
21
// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
22
22
// term: DEPRECATED: use 'q' instead.
23
-
func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
23
+
func ActorSearchActors(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
24
24
var out ActorSearchActors_Output
25
25
26
26
params := map[string]interface{}{}
···
36
36
if term != "" {
37
37
params["term"] = term
38
38
}
39
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
39
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
40
40
return nil, err
41
41
}
42
42
+3
-3
api/bsky/actorsearchActorsTypeahead.go
+3
-3
api/bsky/actorsearchActorsTypeahead.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorSearchActorsTypeahead_Output is the output of a app.bsky.actor.searchActorsTypeahead call.
···
19
19
//
20
20
// q: Search query prefix; not a full query string.
21
21
// term: DEPRECATED: use 'q' instead.
22
-
func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) {
22
+
func ActorSearchActorsTypeahead(ctx context.Context, c util.LexClient, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) {
23
23
var out ActorSearchActorsTypeahead_Output
24
24
25
25
params := map[string]interface{}{}
···
32
32
if term != "" {
33
33
params["term"] = term
34
34
}
35
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil {
35
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil {
36
36
return nil, err
37
37
}
38
38
+3
-3
api/bsky/feeddescribeFeedGenerator.go
+3
-3
api/bsky/feeddescribeFeedGenerator.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedDescribeFeedGenerator_Feed is a "feed" in the app.bsky.feed.describeFeedGenerator schema.
···
29
29
}
30
30
31
31
// FeedDescribeFeedGenerator calls the XRPC method "app.bsky.feed.describeFeedGenerator".
32
-
func FeedDescribeFeedGenerator(ctx context.Context, c *xrpc.Client) (*FeedDescribeFeedGenerator_Output, error) {
32
+
func FeedDescribeFeedGenerator(ctx context.Context, c util.LexClient) (*FeedDescribeFeedGenerator_Output, error) {
33
33
var out FeedDescribeFeedGenerator_Output
34
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.describeFeedGenerator", nil, nil, &out); err != nil {
34
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.describeFeedGenerator", nil, nil, &out); err != nil {
35
35
return nil, err
36
36
}
37
37
+3
-3
api/bsky/feedgetActorFeeds.go
+3
-3
api/bsky/feedgetActorFeeds.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetActorFeeds_Output is the output of a app.bsky.feed.getActorFeeds call.
···
17
17
}
18
18
19
19
// FeedGetActorFeeds calls the XRPC method "app.bsky.feed.getActorFeeds".
20
-
func FeedGetActorFeeds(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorFeeds_Output, error) {
20
+
func FeedGetActorFeeds(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*FeedGetActorFeeds_Output, error) {
21
21
var out FeedGetActorFeeds_Output
22
22
23
23
params := map[string]interface{}{}
···
28
28
if limit != 0 {
29
29
params["limit"] = limit
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorFeeds", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getActorFeeds", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/feedgetActorLikes.go
+3
-3
api/bsky/feedgetActorLikes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call.
···
17
17
}
18
18
19
19
// FeedGetActorLikes calls the XRPC method "app.bsky.feed.getActorLikes".
20
-
func FeedGetActorLikes(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
20
+
func FeedGetActorLikes(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
21
21
var out FeedGetActorLikes_Output
22
22
23
23
params := map[string]interface{}{}
···
28
28
if limit != 0 {
29
29
params["limit"] = limit
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/feedgetAuthorFeed.go
+3
-3
api/bsky/feedgetAuthorFeed.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetAuthorFeed_Output is the output of a app.bsky.feed.getAuthorFeed call.
···
19
19
// FeedGetAuthorFeed calls the XRPC method "app.bsky.feed.getAuthorFeed".
20
20
//
21
21
// filter: Combinations of post/repost types to include in response.
22
-
func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
22
+
func FeedGetAuthorFeed(ctx context.Context, c util.LexClient, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
23
23
var out FeedGetAuthorFeed_Output
24
24
25
25
params := map[string]interface{}{}
···
36
36
if limit != 0 {
37
37
params["limit"] = limit
38
38
}
39
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
39
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
40
40
return nil, err
41
41
}
42
42
+3
-3
api/bsky/feedgetFeed.go
+3
-3
api/bsky/feedgetFeed.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetFeed_Output is the output of a app.bsky.feed.getFeed call.
···
17
17
}
18
18
19
19
// FeedGetFeed calls the XRPC method "app.bsky.feed.getFeed".
20
-
func FeedGetFeed(ctx context.Context, c *xrpc.Client, cursor string, feed string, limit int64) (*FeedGetFeed_Output, error) {
20
+
func FeedGetFeed(ctx context.Context, c util.LexClient, cursor string, feed string, limit int64) (*FeedGetFeed_Output, error) {
21
21
var out FeedGetFeed_Output
22
22
23
23
params := map[string]interface{}{}
···
28
28
if limit != 0 {
29
29
params["limit"] = limit
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/feedgetFeedGenerator.go
+3
-3
api/bsky/feedgetFeedGenerator.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetFeedGenerator_Output is the output of a app.bsky.feed.getFeedGenerator call.
···
22
22
// FeedGetFeedGenerator calls the XRPC method "app.bsky.feed.getFeedGenerator".
23
23
//
24
24
// feed: AT-URI of the feed generator record.
25
-
func FeedGetFeedGenerator(ctx context.Context, c *xrpc.Client, feed string) (*FeedGetFeedGenerator_Output, error) {
25
+
func FeedGetFeedGenerator(ctx context.Context, c util.LexClient, feed string) (*FeedGetFeedGenerator_Output, error) {
26
26
var out FeedGetFeedGenerator_Output
27
27
28
28
params := map[string]interface{}{}
29
29
params["feed"] = feed
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/feedgetFeedGenerators.go
+3
-3
api/bsky/feedgetFeedGenerators.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetFeedGenerators_Output is the output of a app.bsky.feed.getFeedGenerators call.
···
16
16
}
17
17
18
18
// FeedGetFeedGenerators calls the XRPC method "app.bsky.feed.getFeedGenerators".
19
-
func FeedGetFeedGenerators(ctx context.Context, c *xrpc.Client, feeds []string) (*FeedGetFeedGenerators_Output, error) {
19
+
func FeedGetFeedGenerators(ctx context.Context, c util.LexClient, feeds []string) (*FeedGetFeedGenerators_Output, error) {
20
20
var out FeedGetFeedGenerators_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["feeds"] = feeds
24
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedGenerators", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerators", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/bsky/feedgetFeedSkeleton.go
+3
-3
api/bsky/feedgetFeedSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetFeedSkeleton_Output is the output of a app.bsky.feed.getFeedSkeleton call.
···
21
21
// FeedGetFeedSkeleton calls the XRPC method "app.bsky.feed.getFeedSkeleton".
22
22
//
23
23
// feed: Reference to feed generator record describing the specific feed being requested.
24
-
func FeedGetFeedSkeleton(ctx context.Context, c *xrpc.Client, cursor string, feed string, limit int64) (*FeedGetFeedSkeleton_Output, error) {
24
+
func FeedGetFeedSkeleton(ctx context.Context, c util.LexClient, cursor string, feed string, limit int64) (*FeedGetFeedSkeleton_Output, error) {
25
25
var out FeedGetFeedSkeleton_Output
26
26
27
27
params := map[string]interface{}{}
···
32
32
if limit != 0 {
33
33
params["limit"] = limit
34
34
}
35
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeedSkeleton", params, nil, &out); err != nil {
35
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedSkeleton", params, nil, &out); err != nil {
36
36
return nil, err
37
37
}
38
38
+3
-3
api/bsky/feedgetLikes.go
+3
-3
api/bsky/feedgetLikes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetLikes_Like is a "like" in the app.bsky.feed.getLikes schema.
···
29
29
//
30
30
// cid: CID of the subject record (aka, specific version of record), to filter likes.
31
31
// uri: AT-URI of the subject (eg, a post record).
32
-
func FeedGetLikes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetLikes_Output, error) {
32
+
func FeedGetLikes(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetLikes_Output, error) {
33
33
var out FeedGetLikes_Output
34
34
35
35
params := map[string]interface{}{}
···
43
43
params["limit"] = limit
44
44
}
45
45
params["uri"] = uri
46
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getLikes", params, nil, &out); err != nil {
46
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getLikes", params, nil, &out); err != nil {
47
47
return nil, err
48
48
}
49
49
+3
-3
api/bsky/feedgetListFeed.go
+3
-3
api/bsky/feedgetListFeed.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetListFeed_Output is the output of a app.bsky.feed.getListFeed call.
···
19
19
// FeedGetListFeed calls the XRPC method "app.bsky.feed.getListFeed".
20
20
//
21
21
// list: Reference (AT-URI) to the list record.
22
-
func FeedGetListFeed(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*FeedGetListFeed_Output, error) {
22
+
func FeedGetListFeed(ctx context.Context, c util.LexClient, cursor string, limit int64, list string) (*FeedGetListFeed_Output, error) {
23
23
var out FeedGetListFeed_Output
24
24
25
25
params := map[string]interface{}{}
···
30
30
params["limit"] = limit
31
31
}
32
32
params["list"] = list
33
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getListFeed", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getListFeed", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+2
-3
api/bsky/feedgetPostThread.go
+2
-3
api/bsky/feedgetPostThread.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// FeedGetPostThread_Output is the output of a app.bsky.feed.getPostThread call.
···
67
66
// depth: How many levels of reply depth should be included in response.
68
67
// parentHeight: How many levels of parent (and grandparent, etc) post to include.
69
68
// uri: Reference (AT-URI) to post record.
70
-
func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, parentHeight int64, uri string) (*FeedGetPostThread_Output, error) {
69
+
func FeedGetPostThread(ctx context.Context, c util.LexClient, depth int64, parentHeight int64, uri string) (*FeedGetPostThread_Output, error) {
71
70
var out FeedGetPostThread_Output
72
71
73
72
params := map[string]interface{}{}
···
78
77
params["parentHeight"] = parentHeight
79
78
}
80
79
params["uri"] = uri
81
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getPostThread", params, nil, &out); err != nil {
80
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getPostThread", params, nil, &out); err != nil {
82
81
return nil, err
83
82
}
84
83
+3
-3
api/bsky/feedgetPosts.go
+3
-3
api/bsky/feedgetPosts.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetPosts_Output is the output of a app.bsky.feed.getPosts call.
···
18
18
// FeedGetPosts calls the XRPC method "app.bsky.feed.getPosts".
19
19
//
20
20
// uris: List of post AT-URIs to return hydrated views for.
21
-
func FeedGetPosts(ctx context.Context, c *xrpc.Client, uris []string) (*FeedGetPosts_Output, error) {
21
+
func FeedGetPosts(ctx context.Context, c util.LexClient, uris []string) (*FeedGetPosts_Output, error) {
22
22
var out FeedGetPosts_Output
23
23
24
24
params := map[string]interface{}{}
25
25
params["uris"] = uris
26
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getPosts", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getPosts", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/bsky/feedgetQuotes.go
+3
-3
api/bsky/feedgetQuotes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call.
···
22
22
//
23
23
// cid: If supplied, filters to quotes of specific version (by CID) of the post record.
24
24
// uri: Reference (AT-URI) of post record
25
-
func FeedGetQuotes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
25
+
func FeedGetQuotes(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
26
26
var out FeedGetQuotes_Output
27
27
28
28
params := map[string]interface{}{}
···
36
36
params["limit"] = limit
37
37
}
38
38
params["uri"] = uri
39
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
39
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
40
40
return nil, err
41
41
}
42
42
+3
-3
api/bsky/feedgetRepostedBy.go
+3
-3
api/bsky/feedgetRepostedBy.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetRepostedBy_Output is the output of a app.bsky.feed.getRepostedBy call.
···
22
22
//
23
23
// cid: If supplied, filters to reposts of specific version (by CID) of the post record.
24
24
// uri: Reference (AT-URI) of post record
25
-
func FeedGetRepostedBy(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
25
+
func FeedGetRepostedBy(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
26
26
var out FeedGetRepostedBy_Output
27
27
28
28
params := map[string]interface{}{}
···
36
36
params["limit"] = limit
37
37
}
38
38
params["uri"] = uri
39
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getRepostedBy", params, nil, &out); err != nil {
39
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getRepostedBy", params, nil, &out); err != nil {
40
40
return nil, err
41
41
}
42
42
+3
-3
api/bsky/feedgetSuggestedFeeds.go
+3
-3
api/bsky/feedgetSuggestedFeeds.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetSuggestedFeeds_Output is the output of a app.bsky.feed.getSuggestedFeeds call.
···
17
17
}
18
18
19
19
// FeedGetSuggestedFeeds calls the XRPC method "app.bsky.feed.getSuggestedFeeds".
20
-
func FeedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
20
+
func FeedGetSuggestedFeeds(ctx context.Context, c util.LexClient, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
21
21
var out FeedGetSuggestedFeeds_Output
22
22
23
23
params := map[string]interface{}{}
···
27
27
if limit != 0 {
28
28
params["limit"] = limit
29
29
}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/feedgetTimeline.go
+3
-3
api/bsky/feedgetTimeline.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedGetTimeline_Output is the output of a app.bsky.feed.getTimeline call.
···
19
19
// FeedGetTimeline calls the XRPC method "app.bsky.feed.getTimeline".
20
20
//
21
21
// algorithm: Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.
22
-
func FeedGetTimeline(ctx context.Context, c *xrpc.Client, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) {
22
+
func FeedGetTimeline(ctx context.Context, c util.LexClient, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) {
23
23
var out FeedGetTimeline_Output
24
24
25
25
params := map[string]interface{}{}
···
32
32
if limit != 0 {
33
33
params["limit"] = limit
34
34
}
35
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getTimeline", params, nil, &out); err != nil {
35
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getTimeline", params, nil, &out); err != nil {
36
36
return nil, err
37
37
}
38
38
+3
-3
api/bsky/feedsearchPosts.go
+3
-3
api/bsky/feedsearchPosts.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedSearchPosts_Output is the output of a app.bsky.feed.searchPosts call.
···
31
31
// 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.
32
32
// 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).
33
33
// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
34
-
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) {
34
+
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) {
35
35
var out FeedSearchPosts_Output
36
36
37
37
params := map[string]interface{}{}
···
69
69
if url != "" {
70
70
params["url"] = url
71
71
}
72
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil {
72
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil {
73
73
return nil, err
74
74
}
75
75
+3
-3
api/bsky/feedsendInteractions.go
+3
-3
api/bsky/feedsendInteractions.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// FeedSendInteractions_Input is the input argument to a app.bsky.feed.sendInteractions call.
···
20
20
}
21
21
22
22
// FeedSendInteractions calls the XRPC method "app.bsky.feed.sendInteractions".
23
-
func FeedSendInteractions(ctx context.Context, c *xrpc.Client, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) {
23
+
func FeedSendInteractions(ctx context.Context, c util.LexClient, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) {
24
24
var out FeedSendInteractions_Output
25
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil {
25
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil {
26
26
return nil, err
27
27
}
28
28
+3
-3
api/bsky/graphgetActorStarterPacks.go
+3
-3
api/bsky/graphgetActorStarterPacks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetActorStarterPacks_Output is the output of a app.bsky.graph.getActorStarterPacks call.
···
17
17
}
18
18
19
19
// GraphGetActorStarterPacks calls the XRPC method "app.bsky.graph.getActorStarterPacks".
20
-
func GraphGetActorStarterPacks(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetActorStarterPacks_Output, error) {
20
+
func GraphGetActorStarterPacks(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetActorStarterPacks_Output, error) {
21
21
var out GraphGetActorStarterPacks_Output
22
22
23
23
params := map[string]interface{}{}
···
28
28
if limit != 0 {
29
29
params["limit"] = limit
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/graphgetBlocks.go
+3
-3
api/bsky/graphgetBlocks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetBlocks_Output is the output of a app.bsky.graph.getBlocks call.
···
17
17
}
18
18
19
19
// GraphGetBlocks calls the XRPC method "app.bsky.graph.getBlocks".
20
-
func GraphGetBlocks(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetBlocks_Output, error) {
20
+
func GraphGetBlocks(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetBlocks_Output, error) {
21
21
var out GraphGetBlocks_Output
22
22
23
23
params := map[string]interface{}{}
···
27
27
if limit != 0 {
28
28
params["limit"] = limit
29
29
}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getBlocks", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getBlocks", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/graphgetFollowers.go
+3
-3
api/bsky/graphgetFollowers.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetFollowers_Output is the output of a app.bsky.graph.getFollowers call.
···
18
18
}
19
19
20
20
// GraphGetFollowers calls the XRPC method "app.bsky.graph.getFollowers".
21
-
func GraphGetFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
21
+
func GraphGetFollowers(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
22
22
var out GraphGetFollowers_Output
23
23
24
24
params := map[string]interface{}{}
···
29
29
if limit != 0 {
30
30
params["limit"] = limit
31
31
}
32
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/bsky/graphgetFollows.go
+3
-3
api/bsky/graphgetFollows.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetFollows_Output is the output of a app.bsky.graph.getFollows call.
···
18
18
}
19
19
20
20
// GraphGetFollows calls the XRPC method "app.bsky.graph.getFollows".
21
-
func GraphGetFollows(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) {
21
+
func GraphGetFollows(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) {
22
22
var out GraphGetFollows_Output
23
23
24
24
params := map[string]interface{}{}
···
29
29
if limit != 0 {
30
30
params["limit"] = limit
31
31
}
32
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/bsky/graphgetKnownFollowers.go
+3
-3
api/bsky/graphgetKnownFollowers.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetKnownFollowers_Output is the output of a app.bsky.graph.getKnownFollowers call.
···
18
18
}
19
19
20
20
// GraphGetKnownFollowers calls the XRPC method "app.bsky.graph.getKnownFollowers".
21
-
func GraphGetKnownFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetKnownFollowers_Output, error) {
21
+
func GraphGetKnownFollowers(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetKnownFollowers_Output, error) {
22
22
var out GraphGetKnownFollowers_Output
23
23
24
24
params := map[string]interface{}{}
···
29
29
if limit != 0 {
30
30
params["limit"] = limit
31
31
}
32
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/bsky/graphgetList.go
+3
-3
api/bsky/graphgetList.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetList_Output is the output of a app.bsky.graph.getList call.
···
20
20
// GraphGetList calls the XRPC method "app.bsky.graph.getList".
21
21
//
22
22
// list: Reference (AT-URI) of the list record to hydrate.
23
-
func GraphGetList(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*GraphGetList_Output, error) {
23
+
func GraphGetList(ctx context.Context, c util.LexClient, cursor string, limit int64, list string) (*GraphGetList_Output, error) {
24
24
var out GraphGetList_Output
25
25
26
26
params := map[string]interface{}{}
···
31
31
params["limit"] = limit
32
32
}
33
33
params["list"] = list
34
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil {
34
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil {
35
35
return nil, err
36
36
}
37
37
+3
-3
api/bsky/graphgetListBlocks.go
+3
-3
api/bsky/graphgetListBlocks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetListBlocks_Output is the output of a app.bsky.graph.getListBlocks call.
···
17
17
}
18
18
19
19
// GraphGetListBlocks calls the XRPC method "app.bsky.graph.getListBlocks".
20
-
func GraphGetListBlocks(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetListBlocks_Output, error) {
20
+
func GraphGetListBlocks(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetListBlocks_Output, error) {
21
21
var out GraphGetListBlocks_Output
22
22
23
23
params := map[string]interface{}{}
···
27
27
if limit != 0 {
28
28
params["limit"] = limit
29
29
}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getListBlocks", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getListBlocks", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/graphgetListMutes.go
+3
-3
api/bsky/graphgetListMutes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetListMutes_Output is the output of a app.bsky.graph.getListMutes call.
···
17
17
}
18
18
19
19
// GraphGetListMutes calls the XRPC method "app.bsky.graph.getListMutes".
20
-
func GraphGetListMutes(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetListMutes_Output, error) {
20
+
func GraphGetListMutes(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetListMutes_Output, error) {
21
21
var out GraphGetListMutes_Output
22
22
23
23
params := map[string]interface{}{}
···
27
27
if limit != 0 {
28
28
params["limit"] = limit
29
29
}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getListMutes", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getListMutes", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/graphgetLists.go
+3
-3
api/bsky/graphgetLists.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetLists_Output is the output of a app.bsky.graph.getLists call.
···
19
19
// GraphGetLists calls the XRPC method "app.bsky.graph.getLists".
20
20
//
21
21
// actor: The account (actor) to enumerate lists from.
22
-
func GraphGetLists(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetLists_Output, error) {
22
+
func GraphGetLists(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetLists_Output, error) {
23
23
var out GraphGetLists_Output
24
24
25
25
params := map[string]interface{}{}
···
30
30
if limit != 0 {
31
31
params["limit"] = limit
32
32
}
33
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+3
-3
api/bsky/graphgetMutes.go
+3
-3
api/bsky/graphgetMutes.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetMutes_Output is the output of a app.bsky.graph.getMutes call.
···
17
17
}
18
18
19
19
// GraphGetMutes calls the XRPC method "app.bsky.graph.getMutes".
20
-
func GraphGetMutes(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetMutes_Output, error) {
20
+
func GraphGetMutes(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetMutes_Output, error) {
21
21
var out GraphGetMutes_Output
22
22
23
23
params := map[string]interface{}{}
···
27
27
if limit != 0 {
28
28
params["limit"] = limit
29
29
}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getMutes", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getMutes", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+2
-3
api/bsky/graphgetRelationships.go
+2
-3
api/bsky/graphgetRelationships.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// GraphGetRelationships_Output is the output of a app.bsky.graph.getRelationships call.
···
58
57
//
59
58
// actor: Primary account requesting relationships for.
60
59
// others: List of 'other' accounts to be related back to the primary.
61
-
func GraphGetRelationships(ctx context.Context, c *xrpc.Client, actor string, others []string) (*GraphGetRelationships_Output, error) {
60
+
func GraphGetRelationships(ctx context.Context, c util.LexClient, actor string, others []string) (*GraphGetRelationships_Output, error) {
62
61
var out GraphGetRelationships_Output
63
62
64
63
params := map[string]interface{}{}
···
66
65
if len(others) != 0 {
67
66
params["others"] = others
68
67
}
69
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil {
68
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil {
70
69
return nil, err
71
70
}
72
71
+3
-3
api/bsky/graphgetStarterPack.go
+3
-3
api/bsky/graphgetStarterPack.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetStarterPack_Output is the output of a app.bsky.graph.getStarterPack call.
···
18
18
// GraphGetStarterPack calls the XRPC method "app.bsky.graph.getStarterPack".
19
19
//
20
20
// starterPack: Reference (AT-URI) of the starter pack record.
21
-
func GraphGetStarterPack(ctx context.Context, c *xrpc.Client, starterPack string) (*GraphGetStarterPack_Output, error) {
21
+
func GraphGetStarterPack(ctx context.Context, c util.LexClient, starterPack string) (*GraphGetStarterPack_Output, error) {
22
22
var out GraphGetStarterPack_Output
23
23
24
24
params := map[string]interface{}{}
25
25
params["starterPack"] = starterPack
26
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPack", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getStarterPack", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/bsky/graphgetStarterPacks.go
+3
-3
api/bsky/graphgetStarterPacks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetStarterPacks_Output is the output of a app.bsky.graph.getStarterPacks call.
···
16
16
}
17
17
18
18
// GraphGetStarterPacks calls the XRPC method "app.bsky.graph.getStarterPacks".
19
-
func GraphGetStarterPacks(ctx context.Context, c *xrpc.Client, uris []string) (*GraphGetStarterPacks_Output, error) {
19
+
func GraphGetStarterPacks(ctx context.Context, c util.LexClient, uris []string) (*GraphGetStarterPacks_Output, error) {
20
20
var out GraphGetStarterPacks_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["uris"] = uris
24
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/bsky/graphgetSuggestedFollowsByActor.go
+3
-3
api/bsky/graphgetSuggestedFollowsByActor.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
···
20
20
}
21
21
22
22
// GraphGetSuggestedFollowsByActor calls the XRPC method "app.bsky.graph.getSuggestedFollowsByActor".
23
-
func GraphGetSuggestedFollowsByActor(ctx context.Context, c *xrpc.Client, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
23
+
func GraphGetSuggestedFollowsByActor(ctx context.Context, c util.LexClient, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
24
24
var out GraphGetSuggestedFollowsByActor_Output
25
25
26
26
params := map[string]interface{}{}
27
27
params["actor"] = actor
28
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/bsky/graphmuteActor.go
+3
-3
api/bsky/graphmuteActor.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphMuteActor_Input is the input argument to a app.bsky.graph.muteActor call.
···
16
16
}
17
17
18
18
// GraphMuteActor calls the XRPC method "app.bsky.graph.muteActor".
19
-
func GraphMuteActor(ctx context.Context, c *xrpc.Client, input *GraphMuteActor_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
19
+
func GraphMuteActor(ctx context.Context, c util.LexClient, input *GraphMuteActor_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/graphmuteActorList.go
+3
-3
api/bsky/graphmuteActorList.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphMuteActorList_Input is the input argument to a app.bsky.graph.muteActorList call.
···
16
16
}
17
17
18
18
// GraphMuteActorList calls the XRPC method "app.bsky.graph.muteActorList".
19
-
func GraphMuteActorList(ctx context.Context, c *xrpc.Client, input *GraphMuteActorList_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActorList", nil, input, nil); err != nil {
19
+
func GraphMuteActorList(ctx context.Context, c util.LexClient, input *GraphMuteActorList_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteActorList", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/graphmuteThread.go
+3
-3
api/bsky/graphmuteThread.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphMuteThread_Input is the input argument to a app.bsky.graph.muteThread call.
···
16
16
}
17
17
18
18
// GraphMuteThread calls the XRPC method "app.bsky.graph.muteThread".
19
-
func GraphMuteThread(ctx context.Context, c *xrpc.Client, input *GraphMuteThread_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil {
19
+
func GraphMuteThread(ctx context.Context, c util.LexClient, input *GraphMuteThread_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/graphsearchStarterPacks.go
+3
-3
api/bsky/graphsearchStarterPacks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphSearchStarterPacks_Output is the output of a app.bsky.graph.searchStarterPacks call.
···
19
19
// GraphSearchStarterPacks calls the XRPC method "app.bsky.graph.searchStarterPacks".
20
20
//
21
21
// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
22
-
func GraphSearchStarterPacks(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) {
22
+
func GraphSearchStarterPacks(ctx context.Context, c util.LexClient, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) {
23
23
var out GraphSearchStarterPacks_Output
24
24
25
25
params := map[string]interface{}{}
···
30
30
params["limit"] = limit
31
31
}
32
32
params["q"] = q
33
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+3
-3
api/bsky/graphunmuteActor.go
+3
-3
api/bsky/graphunmuteActor.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphUnmuteActor_Input is the input argument to a app.bsky.graph.unmuteActor call.
···
16
16
}
17
17
18
18
// GraphUnmuteActor calls the XRPC method "app.bsky.graph.unmuteActor".
19
-
func GraphUnmuteActor(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActor_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
19
+
func GraphUnmuteActor(ctx context.Context, c util.LexClient, input *GraphUnmuteActor_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/graphunmuteActorList.go
+3
-3
api/bsky/graphunmuteActorList.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphUnmuteActorList_Input is the input argument to a app.bsky.graph.unmuteActorList call.
···
16
16
}
17
17
18
18
// GraphUnmuteActorList calls the XRPC method "app.bsky.graph.unmuteActorList".
19
-
func GraphUnmuteActorList(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActorList_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActorList", nil, input, nil); err != nil {
19
+
func GraphUnmuteActorList(ctx context.Context, c util.LexClient, input *GraphUnmuteActorList_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteActorList", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/graphunmuteThread.go
+3
-3
api/bsky/graphunmuteThread.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// GraphUnmuteThread_Input is the input argument to a app.bsky.graph.unmuteThread call.
···
16
16
}
17
17
18
18
// GraphUnmuteThread calls the XRPC method "app.bsky.graph.unmuteThread".
19
-
func GraphUnmuteThread(ctx context.Context, c *xrpc.Client, input *GraphUnmuteThread_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil {
19
+
func GraphUnmuteThread(ctx context.Context, c util.LexClient, input *GraphUnmuteThread_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+2
-3
api/bsky/labelergetServices.go
+2
-3
api/bsky/labelergetServices.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// LabelerGetServices_Output is the output of a app.bsky.labeler.getServices call.
···
54
53
}
55
54
56
55
// LabelerGetServices calls the XRPC method "app.bsky.labeler.getServices".
57
-
func LabelerGetServices(ctx context.Context, c *xrpc.Client, detailed bool, dids []string) (*LabelerGetServices_Output, error) {
56
+
func LabelerGetServices(ctx context.Context, c util.LexClient, detailed bool, dids []string) (*LabelerGetServices_Output, error) {
58
57
var out LabelerGetServices_Output
59
58
60
59
params := map[string]interface{}{}
···
62
61
params["detailed"] = detailed
63
62
}
64
63
params["dids"] = dids
65
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.labeler.getServices", params, nil, &out); err != nil {
64
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.labeler.getServices", params, nil, &out); err != nil {
66
65
return nil, err
67
66
}
68
67
+3
-3
api/bsky/notificationgetUnreadCount.go
+3
-3
api/bsky/notificationgetUnreadCount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// NotificationGetUnreadCount_Output is the output of a app.bsky.notification.getUnreadCount call.
···
16
16
}
17
17
18
18
// NotificationGetUnreadCount calls the XRPC method "app.bsky.notification.getUnreadCount".
19
-
func NotificationGetUnreadCount(ctx context.Context, c *xrpc.Client, priority bool, seenAt string) (*NotificationGetUnreadCount_Output, error) {
19
+
func NotificationGetUnreadCount(ctx context.Context, c util.LexClient, priority bool, seenAt string) (*NotificationGetUnreadCount_Output, error) {
20
20
var out NotificationGetUnreadCount_Output
21
21
22
22
params := map[string]interface{}{}
···
26
26
if seenAt != "" {
27
27
params["seenAt"] = seenAt
28
28
}
29
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.getUnreadCount", params, nil, &out); err != nil {
29
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.notification.getUnreadCount", params, nil, &out); err != nil {
30
30
return nil, err
31
31
}
32
32
+2
-3
api/bsky/notificationlistNotifications.go
+2
-3
api/bsky/notificationlistNotifications.go
···
9
9
10
10
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
11
11
"github.com/bluesky-social/indigo/lex/util"
12
-
"github.com/bluesky-social/indigo/xrpc"
13
12
)
14
13
15
14
// NotificationListNotifications_Notification is a "notification" in the app.bsky.notification.listNotifications schema.
···
37
36
// NotificationListNotifications calls the XRPC method "app.bsky.notification.listNotifications".
38
37
//
39
38
// reasons: Notification reasons to include in response.
40
-
func NotificationListNotifications(ctx context.Context, c *xrpc.Client, cursor string, limit int64, priority bool, reasons []string, seenAt string) (*NotificationListNotifications_Output, error) {
39
+
func NotificationListNotifications(ctx context.Context, c util.LexClient, cursor string, limit int64, priority bool, reasons []string, seenAt string) (*NotificationListNotifications_Output, error) {
41
40
var out NotificationListNotifications_Output
42
41
43
42
params := map[string]interface{}{}
···
56
55
if seenAt != "" {
57
56
params["seenAt"] = seenAt
58
57
}
59
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.listNotifications", params, nil, &out); err != nil {
58
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.notification.listNotifications", params, nil, &out); err != nil {
60
59
return nil, err
61
60
}
62
61
+3
-3
api/bsky/notificationputPreferences.go
+3
-3
api/bsky/notificationputPreferences.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// NotificationPutPreferences_Input is the input argument to a app.bsky.notification.putPreferences call.
···
16
16
}
17
17
18
18
// NotificationPutPreferences calls the XRPC method "app.bsky.notification.putPreferences".
19
-
func NotificationPutPreferences(ctx context.Context, c *xrpc.Client, input *NotificationPutPreferences_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.putPreferences", nil, input, nil); err != nil {
19
+
func NotificationPutPreferences(ctx context.Context, c util.LexClient, input *NotificationPutPreferences_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.putPreferences", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/notificationregisterPush.go
+3
-3
api/bsky/notificationregisterPush.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
···
19
19
}
20
20
21
21
// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
22
-
func NotificationRegisterPush(ctx context.Context, c *xrpc.Client, input *NotificationRegisterPush_Input) error {
23
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
22
+
func NotificationRegisterPush(ctx context.Context, c util.LexClient, input *NotificationRegisterPush_Input) error {
23
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.registerPush", nil, input, nil); err != nil {
24
24
return err
25
25
}
26
26
+3
-3
api/bsky/notificationupdateSeen.go
+3
-3
api/bsky/notificationupdateSeen.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// NotificationUpdateSeen_Input is the input argument to a app.bsky.notification.updateSeen call.
···
16
16
}
17
17
18
18
// NotificationUpdateSeen calls the XRPC method "app.bsky.notification.updateSeen".
19
-
func NotificationUpdateSeen(ctx context.Context, c *xrpc.Client, input *NotificationUpdateSeen_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
19
+
func NotificationUpdateSeen(ctx context.Context, c util.LexClient, input *NotificationUpdateSeen_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/bsky/unspeccedgetConfig.go
+3
-3
api/bsky/unspeccedgetConfig.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetConfig_LiveNowConfig is a "liveNowConfig" in the app.bsky.unspecced.getConfig schema.
···
23
23
}
24
24
25
25
// UnspeccedGetConfig calls the XRPC method "app.bsky.unspecced.getConfig".
26
-
func UnspeccedGetConfig(ctx context.Context, c *xrpc.Client) (*UnspeccedGetConfig_Output, error) {
26
+
func UnspeccedGetConfig(ctx context.Context, c util.LexClient) (*UnspeccedGetConfig_Output, error) {
27
27
var out UnspeccedGetConfig_Output
28
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getConfig", nil, nil, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getConfig", nil, nil, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/bsky/unspeccedgetPopularFeedGenerators.go
+3
-3
api/bsky/unspeccedgetPopularFeedGenerators.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetPopularFeedGenerators_Output is the output of a app.bsky.unspecced.getPopularFeedGenerators call.
···
17
17
}
18
18
19
19
// UnspeccedGetPopularFeedGenerators calls the XRPC method "app.bsky.unspecced.getPopularFeedGenerators".
20
-
func UnspeccedGetPopularFeedGenerators(ctx context.Context, c *xrpc.Client, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) {
20
+
func UnspeccedGetPopularFeedGenerators(ctx context.Context, c util.LexClient, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) {
21
21
var out UnspeccedGetPopularFeedGenerators_Output
22
22
23
23
params := map[string]interface{}{}
···
30
30
if query != "" {
31
31
params["query"] = query
32
32
}
33
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+3
-3
api/bsky/unspeccedgetSuggestedFeeds.go
+3
-3
api/bsky/unspeccedgetSuggestedFeeds.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedFeeds_Output is the output of a app.bsky.unspecced.getSuggestedFeeds call.
···
16
16
}
17
17
18
18
// UnspeccedGetSuggestedFeeds calls the XRPC method "app.bsky.unspecced.getSuggestedFeeds".
19
-
func UnspeccedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedFeeds_Output, error) {
19
+
func UnspeccedGetSuggestedFeeds(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetSuggestedFeeds_Output, error) {
20
20
var out UnspeccedGetSuggestedFeeds_Output
21
21
22
22
params := map[string]interface{}{}
23
23
if limit != 0 {
24
24
params["limit"] = limit
25
25
}
26
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeeds", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedFeeds", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/bsky/unspeccedgetSuggestedFeedsSkeleton.go
+3
-3
api/bsky/unspeccedgetSuggestedFeedsSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedFeedsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedFeedsSkeleton call.
···
18
18
// UnspeccedGetSuggestedFeedsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedFeedsSkeleton".
19
19
//
20
20
// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21
-
func UnspeccedGetSuggestedFeedsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetSuggestedFeedsSkeleton_Output, error) {
21
+
func UnspeccedGetSuggestedFeedsSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetSuggestedFeedsSkeleton_Output, error) {
22
22
var out UnspeccedGetSuggestedFeedsSkeleton_Output
23
23
24
24
params := map[string]interface{}{}
···
28
28
if viewer != "" {
29
29
params["viewer"] = viewer
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/unspeccedgetSuggestedStarterPacks.go
+3
-3
api/bsky/unspeccedgetSuggestedStarterPacks.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedStarterPacks_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacks call.
···
16
16
}
17
17
18
18
// UnspeccedGetSuggestedStarterPacks calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacks".
19
-
func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) {
19
+
func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) {
20
20
var out UnspeccedGetSuggestedStarterPacks_Output
21
21
22
22
params := map[string]interface{}{}
23
23
if limit != 0 {
24
24
params["limit"] = limit
25
25
}
26
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/bsky/unspeccedgetSuggestedStarterPacksSkeleton.go
+3
-3
api/bsky/unspeccedgetSuggestedStarterPacksSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacksSkeleton call.
···
18
18
// UnspeccedGetSuggestedStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacksSkeleton".
19
19
//
20
20
// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21
-
func UnspeccedGetSuggestedStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetSuggestedStarterPacksSkeleton_Output, error) {
21
+
func UnspeccedGetSuggestedStarterPacksSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetSuggestedStarterPacksSkeleton_Output, error) {
22
22
var out UnspeccedGetSuggestedStarterPacksSkeleton_Output
23
23
24
24
params := map[string]interface{}{}
···
28
28
if viewer != "" {
29
29
params["viewer"] = viewer
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/unspeccedgetSuggestedUsers.go
+3
-3
api/bsky/unspeccedgetSuggestedUsers.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedUsers_Output is the output of a app.bsky.unspecced.getSuggestedUsers call.
···
18
18
// UnspeccedGetSuggestedUsers calls the XRPC method "app.bsky.unspecced.getSuggestedUsers".
19
19
//
20
20
// category: Category of users to get suggestions for.
21
-
func UnspeccedGetSuggestedUsers(ctx context.Context, c *xrpc.Client, category string, limit int64) (*UnspeccedGetSuggestedUsers_Output, error) {
21
+
func UnspeccedGetSuggestedUsers(ctx context.Context, c util.LexClient, category string, limit int64) (*UnspeccedGetSuggestedUsers_Output, error) {
22
22
var out UnspeccedGetSuggestedUsers_Output
23
23
24
24
params := map[string]interface{}{}
···
28
28
if limit != 0 {
29
29
params["limit"] = limit
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsers", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedUsers", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/unspeccedgetSuggestedUsersSkeleton.go
+3
-3
api/bsky/unspeccedgetSuggestedUsersSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestedUsersSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedUsersSkeleton call.
···
19
19
//
20
20
// category: Category of users to get suggestions for.
21
21
// viewer: DID of the account making the request (not included for public/unauthenticated queries).
22
-
func UnspeccedGetSuggestedUsersSkeleton(ctx context.Context, c *xrpc.Client, category string, limit int64, viewer string) (*UnspeccedGetSuggestedUsersSkeleton_Output, error) {
22
+
func UnspeccedGetSuggestedUsersSkeleton(ctx context.Context, c util.LexClient, category string, limit int64, viewer string) (*UnspeccedGetSuggestedUsersSkeleton_Output, error) {
23
23
var out UnspeccedGetSuggestedUsersSkeleton_Output
24
24
25
25
params := map[string]interface{}{}
···
32
32
if viewer != "" {
33
33
params["viewer"] = viewer
34
34
}
35
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsersSkeleton", params, nil, &out); err != nil {
35
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedUsersSkeleton", params, nil, &out); err != nil {
36
36
return nil, err
37
37
}
38
38
+3
-3
api/bsky/unspeccedgetSuggestionsSkeleton.go
+3
-3
api/bsky/unspeccedgetSuggestionsSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetSuggestionsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestionsSkeleton call.
···
24
24
//
25
25
// relativeToDid: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer.
26
26
// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
27
-
func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) {
27
+
func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) {
28
28
var out UnspeccedGetSuggestionsSkeleton_Output
29
29
30
30
params := map[string]interface{}{}
···
40
40
if viewer != "" {
41
41
params["viewer"] = viewer
42
42
}
43
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil {
43
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil {
44
44
return nil, err
45
45
}
46
46
+3
-3
api/bsky/unspeccedgetTaggedSuggestions.go
+3
-3
api/bsky/unspeccedgetTaggedSuggestions.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetTaggedSuggestions_Output is the output of a app.bsky.unspecced.getTaggedSuggestions call.
···
23
23
}
24
24
25
25
// UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions".
26
-
func UnspeccedGetTaggedSuggestions(ctx context.Context, c *xrpc.Client) (*UnspeccedGetTaggedSuggestions_Output, error) {
26
+
func UnspeccedGetTaggedSuggestions(ctx context.Context, c util.LexClient) (*UnspeccedGetTaggedSuggestions_Output, error) {
27
27
var out UnspeccedGetTaggedSuggestions_Output
28
28
29
29
params := map[string]interface{}{}
30
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/bsky/unspeccedgetTrendingTopics.go
+3
-3
api/bsky/unspeccedgetTrendingTopics.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetTrendingTopics_Output is the output of a app.bsky.unspecced.getTrendingTopics call.
···
19
19
// UnspeccedGetTrendingTopics calls the XRPC method "app.bsky.unspecced.getTrendingTopics".
20
20
//
21
21
// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
22
-
func UnspeccedGetTrendingTopics(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) {
22
+
func UnspeccedGetTrendingTopics(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) {
23
23
var out UnspeccedGetTrendingTopics_Output
24
24
25
25
params := map[string]interface{}{}
···
29
29
if viewer != "" {
30
30
params["viewer"] = viewer
31
31
}
32
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/bsky/unspeccedgetTrends.go
+3
-3
api/bsky/unspeccedgetTrends.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetTrends_Output is the output of a app.bsky.unspecced.getTrends call.
···
16
16
}
17
17
18
18
// UnspeccedGetTrends calls the XRPC method "app.bsky.unspecced.getTrends".
19
-
func UnspeccedGetTrends(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetTrends_Output, error) {
19
+
func UnspeccedGetTrends(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetTrends_Output, error) {
20
20
var out UnspeccedGetTrends_Output
21
21
22
22
params := map[string]interface{}{}
23
23
if limit != 0 {
24
24
params["limit"] = limit
25
25
}
26
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/bsky/unspeccedgetTrendsSkeleton.go
+3
-3
api/bsky/unspeccedgetTrendsSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedGetTrendsSkeleton_Output is the output of a app.bsky.unspecced.getTrendsSkeleton call.
···
18
18
// UnspeccedGetTrendsSkeleton calls the XRPC method "app.bsky.unspecced.getTrendsSkeleton".
19
19
//
20
20
// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21
-
func UnspeccedGetTrendsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
21
+
func UnspeccedGetTrendsSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
22
22
var out UnspeccedGetTrendsSkeleton_Output
23
23
24
24
params := map[string]interface{}{}
···
28
28
if viewer != "" {
29
29
params["viewer"] = viewer
30
30
}
31
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
31
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
32
32
return nil, err
33
33
}
34
34
+3
-3
api/bsky/unspeccedsearchActorsSkeleton.go
+3
-3
api/bsky/unspeccedsearchActorsSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedSearchActorsSkeleton_Output is the output of a app.bsky.unspecced.searchActorsSkeleton call.
···
24
24
// 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.
25
25
// typeahead: If true, acts as fast/simple 'typeahead' query.
26
26
// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
27
-
func UnspeccedSearchActorsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, typeahead bool, viewer string) (*UnspeccedSearchActorsSkeleton_Output, error) {
27
+
func UnspeccedSearchActorsSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, typeahead bool, viewer string) (*UnspeccedSearchActorsSkeleton_Output, error) {
28
28
var out UnspeccedSearchActorsSkeleton_Output
29
29
30
30
params := map[string]interface{}{}
···
41
41
if viewer != "" {
42
42
params["viewer"] = viewer
43
43
}
44
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil {
44
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil {
45
45
return nil, err
46
46
}
47
47
+3
-3
api/bsky/unspeccedsearchPostsSkeleton.go
+3
-3
api/bsky/unspeccedsearchPostsSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedSearchPostsSkeleton_Output is the output of a app.bsky.unspecced.searchPostsSkeleton call.
···
32
32
// 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).
33
33
// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
34
34
// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries.
35
-
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) {
35
+
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) {
36
36
var out UnspeccedSearchPostsSkeleton_Output
37
37
38
38
params := map[string]interface{}{}
···
73
73
if viewer != "" {
74
74
params["viewer"] = viewer
75
75
}
76
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil {
76
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil {
77
77
return nil, err
78
78
}
79
79
+3
-3
api/bsky/unspeccedsearchStarterPacksSkeleton.go
+3
-3
api/bsky/unspeccedsearchStarterPacksSkeleton.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// UnspeccedSearchStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.searchStarterPacksSkeleton call.
···
23
23
// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
24
24
// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
25
25
// viewer: DID of the account making the request (not included for public/unauthenticated queries).
26
-
func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) {
26
+
func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) {
27
27
var out UnspeccedSearchStarterPacksSkeleton_Output
28
28
29
29
params := map[string]interface{}{}
···
37
37
if viewer != "" {
38
38
params["viewer"] = viewer
39
39
}
40
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil {
40
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil {
41
41
return nil, err
42
42
}
43
43
+3
-3
api/bsky/videogetJobStatus.go
+3
-3
api/bsky/videogetJobStatus.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// VideoGetJobStatus_Output is the output of a app.bsky.video.getJobStatus call.
···
16
16
}
17
17
18
18
// VideoGetJobStatus calls the XRPC method "app.bsky.video.getJobStatus".
19
-
func VideoGetJobStatus(ctx context.Context, c *xrpc.Client, jobId string) (*VideoGetJobStatus_Output, error) {
19
+
func VideoGetJobStatus(ctx context.Context, c util.LexClient, jobId string) (*VideoGetJobStatus_Output, error) {
20
20
var out VideoGetJobStatus_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["jobId"] = jobId
24
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/bsky/videogetUploadLimits.go
+3
-3
api/bsky/videogetUploadLimits.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// VideoGetUploadLimits_Output is the output of a app.bsky.video.getUploadLimits call.
···
20
20
}
21
21
22
22
// VideoGetUploadLimits calls the XRPC method "app.bsky.video.getUploadLimits".
23
-
func VideoGetUploadLimits(ctx context.Context, c *xrpc.Client) (*VideoGetUploadLimits_Output, error) {
23
+
func VideoGetUploadLimits(ctx context.Context, c util.LexClient) (*VideoGetUploadLimits_Output, error) {
24
24
var out VideoGetUploadLimits_Output
25
-
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getUploadLimits", nil, nil, &out); err != nil {
25
+
if err := c.LexDo(ctx, util.Query, "", "app.bsky.video.getUploadLimits", nil, nil, &out); err != nil {
26
26
return nil, err
27
27
}
28
28
+3
-3
api/bsky/videouploadVideo.go
+3
-3
api/bsky/videouploadVideo.go
···
8
8
"context"
9
9
"io"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// VideoUploadVideo_Output is the output of a app.bsky.video.uploadVideo call.
···
17
17
}
18
18
19
19
// VideoUploadVideo calls the XRPC method "app.bsky.video.uploadVideo".
20
-
func VideoUploadVideo(ctx context.Context, c *xrpc.Client, input io.Reader) (*VideoUploadVideo_Output, error) {
20
+
func VideoUploadVideo(ctx context.Context, c util.LexClient, input io.Reader) (*VideoUploadVideo_Output, error) {
21
21
var out VideoUploadVideo_Output
22
-
if err := c.Do(ctx, xrpc.Procedure, "video/mp4", "app.bsky.video.uploadVideo", nil, input, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Procedure, "video/mp4", "app.bsky.video.uploadVideo", nil, input, &out); err != nil {
23
23
return nil, err
24
24
}
25
25
+3
-3
api/chat/actordeleteAccount.go
+3
-3
api/chat/actordeleteAccount.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ActorDeleteAccount_Output is the output of a chat.bsky.actor.deleteAccount call.
···
15
15
}
16
16
17
17
// ActorDeleteAccount calls the XRPC method "chat.bsky.actor.deleteAccount".
18
-
func ActorDeleteAccount(ctx context.Context, c *xrpc.Client) (*ActorDeleteAccount_Output, error) {
18
+
func ActorDeleteAccount(ctx context.Context, c util.LexClient) (*ActorDeleteAccount_Output, error) {
19
19
var out ActorDeleteAccount_Output
20
-
if err := c.Do(ctx, xrpc.Procedure, "", "chat.bsky.actor.deleteAccount", nil, nil, &out); err != nil {
20
+
if err := c.LexDo(ctx, util.Procedure, "", "chat.bsky.actor.deleteAccount", nil, nil, &out); err != nil {
21
21
return nil, err
22
22
}
23
23
+3
-3
api/chat/actorexportAccountData.go
+3
-3
api/chat/actorexportAccountData.go
···
8
8
"bytes"
9
9
"context"
10
10
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// ActorExportAccountData calls the XRPC method "chat.bsky.actor.exportAccountData".
15
-
func ActorExportAccountData(ctx context.Context, c *xrpc.Client) ([]byte, error) {
15
+
func ActorExportAccountData(ctx context.Context, c util.LexClient) ([]byte, error) {
16
16
buf := new(bytes.Buffer)
17
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.actor.exportAccountData", nil, nil, buf); err != nil {
17
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.actor.exportAccountData", nil, nil, buf); err != nil {
18
18
return nil, err
19
19
}
20
20
+3
-3
api/chat/convoacceptConvo.go
+3
-3
api/chat/convoacceptConvo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoAcceptConvo_Input is the input argument to a chat.bsky.convo.acceptConvo call.
···
22
22
}
23
23
24
24
// ConvoAcceptConvo calls the XRPC method "chat.bsky.convo.acceptConvo".
25
-
func ConvoAcceptConvo(ctx context.Context, c *xrpc.Client, input *ConvoAcceptConvo_Input) (*ConvoAcceptConvo_Output, error) {
25
+
func ConvoAcceptConvo(ctx context.Context, c util.LexClient, input *ConvoAcceptConvo_Input) (*ConvoAcceptConvo_Output, error) {
26
26
var out ConvoAcceptConvo_Output
27
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.acceptConvo", nil, input, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.acceptConvo", nil, input, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/chat/convoaddReaction.go
+3
-3
api/chat/convoaddReaction.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoAddReaction_Input is the input argument to a chat.bsky.convo.addReaction call.
···
23
23
}
24
24
25
25
// ConvoAddReaction calls the XRPC method "chat.bsky.convo.addReaction".
26
-
func ConvoAddReaction(ctx context.Context, c *xrpc.Client, input *ConvoAddReaction_Input) (*ConvoAddReaction_Output, error) {
26
+
func ConvoAddReaction(ctx context.Context, c util.LexClient, input *ConvoAddReaction_Input) (*ConvoAddReaction_Output, error) {
27
27
var out ConvoAddReaction_Output
28
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.addReaction", nil, input, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.addReaction", nil, input, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/chat/convodeleteMessageForSelf.go
+3
-3
api/chat/convodeleteMessageForSelf.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoDeleteMessageForSelf_Input is the input argument to a chat.bsky.convo.deleteMessageForSelf call.
···
17
17
}
18
18
19
19
// ConvoDeleteMessageForSelf calls the XRPC method "chat.bsky.convo.deleteMessageForSelf".
20
-
func ConvoDeleteMessageForSelf(ctx context.Context, c *xrpc.Client, input *ConvoDeleteMessageForSelf_Input) (*ConvoDefs_DeletedMessageView, error) {
20
+
func ConvoDeleteMessageForSelf(ctx context.Context, c util.LexClient, input *ConvoDeleteMessageForSelf_Input) (*ConvoDefs_DeletedMessageView, error) {
21
21
var out ConvoDefs_DeletedMessageView
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.deleteMessageForSelf", nil, input, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.deleteMessageForSelf", nil, input, &out); err != nil {
23
23
return nil, err
24
24
}
25
25
+3
-3
api/chat/convogetConvo.go
+3
-3
api/chat/convogetConvo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoGetConvo_Output is the output of a chat.bsky.convo.getConvo call.
···
16
16
}
17
17
18
18
// ConvoGetConvo calls the XRPC method "chat.bsky.convo.getConvo".
19
-
func ConvoGetConvo(ctx context.Context, c *xrpc.Client, convoId string) (*ConvoGetConvo_Output, error) {
19
+
func ConvoGetConvo(ctx context.Context, c util.LexClient, convoId string) (*ConvoGetConvo_Output, error) {
20
20
var out ConvoGetConvo_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["convoId"] = convoId
24
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvo", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvo", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/chat/convogetConvoAvailability.go
+3
-3
api/chat/convogetConvoAvailability.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoGetConvoAvailability_Output is the output of a chat.bsky.convo.getConvoAvailability call.
···
17
17
}
18
18
19
19
// ConvoGetConvoAvailability calls the XRPC method "chat.bsky.convo.getConvoAvailability".
20
-
func ConvoGetConvoAvailability(ctx context.Context, c *xrpc.Client, members []string) (*ConvoGetConvoAvailability_Output, error) {
20
+
func ConvoGetConvoAvailability(ctx context.Context, c util.LexClient, members []string) (*ConvoGetConvoAvailability_Output, error) {
21
21
var out ConvoGetConvoAvailability_Output
22
22
23
23
params := map[string]interface{}{}
24
24
params["members"] = members
25
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvoAvailability", params, nil, &out); err != nil {
25
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvoAvailability", params, nil, &out); err != nil {
26
26
return nil, err
27
27
}
28
28
+3
-3
api/chat/convogetConvoForMembers.go
+3
-3
api/chat/convogetConvoForMembers.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoGetConvoForMembers_Output is the output of a chat.bsky.convo.getConvoForMembers call.
···
16
16
}
17
17
18
18
// ConvoGetConvoForMembers calls the XRPC method "chat.bsky.convo.getConvoForMembers".
19
-
func ConvoGetConvoForMembers(ctx context.Context, c *xrpc.Client, members []string) (*ConvoGetConvoForMembers_Output, error) {
19
+
func ConvoGetConvoForMembers(ctx context.Context, c util.LexClient, members []string) (*ConvoGetConvoForMembers_Output, error) {
20
20
var out ConvoGetConvoForMembers_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["members"] = members
24
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvoForMembers", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getConvoForMembers", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+2
-3
api/chat/convogetLog.go
+2
-3
api/chat/convogetLog.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ConvoGetLog_Output is the output of a chat.bsky.convo.getLog call.
···
119
118
}
120
119
121
120
// ConvoGetLog calls the XRPC method "chat.bsky.convo.getLog".
122
-
func ConvoGetLog(ctx context.Context, c *xrpc.Client, cursor string) (*ConvoGetLog_Output, error) {
121
+
func ConvoGetLog(ctx context.Context, c util.LexClient, cursor string) (*ConvoGetLog_Output, error) {
123
122
var out ConvoGetLog_Output
124
123
125
124
params := map[string]interface{}{}
126
125
if cursor != "" {
127
126
params["cursor"] = cursor
128
127
}
129
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getLog", params, nil, &out); err != nil {
128
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getLog", params, nil, &out); err != nil {
130
129
return nil, err
131
130
}
132
131
+2
-3
api/chat/convogetMessages.go
+2
-3
api/chat/convogetMessages.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ConvoGetMessages_Output is the output of a chat.bsky.convo.getMessages call.
···
55
54
}
56
55
57
56
// ConvoGetMessages calls the XRPC method "chat.bsky.convo.getMessages".
58
-
func ConvoGetMessages(ctx context.Context, c *xrpc.Client, convoId string, cursor string, limit int64) (*ConvoGetMessages_Output, error) {
57
+
func ConvoGetMessages(ctx context.Context, c util.LexClient, convoId string, cursor string, limit int64) (*ConvoGetMessages_Output, error) {
59
58
var out ConvoGetMessages_Output
60
59
61
60
params := map[string]interface{}{}
···
66
65
if limit != 0 {
67
66
params["limit"] = limit
68
67
}
69
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getMessages", params, nil, &out); err != nil {
68
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.getMessages", params, nil, &out); err != nil {
70
69
return nil, err
71
70
}
72
71
+3
-3
api/chat/convoleaveConvo.go
+3
-3
api/chat/convoleaveConvo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoLeaveConvo_Input is the input argument to a chat.bsky.convo.leaveConvo call.
···
22
22
}
23
23
24
24
// ConvoLeaveConvo calls the XRPC method "chat.bsky.convo.leaveConvo".
25
-
func ConvoLeaveConvo(ctx context.Context, c *xrpc.Client, input *ConvoLeaveConvo_Input) (*ConvoLeaveConvo_Output, error) {
25
+
func ConvoLeaveConvo(ctx context.Context, c util.LexClient, input *ConvoLeaveConvo_Input) (*ConvoLeaveConvo_Output, error) {
26
26
var out ConvoLeaveConvo_Output
27
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.leaveConvo", nil, input, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.leaveConvo", nil, input, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/chat/convolistConvos.go
+3
-3
api/chat/convolistConvos.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoListConvos_Output is the output of a chat.bsky.convo.listConvos call.
···
17
17
}
18
18
19
19
// ConvoListConvos calls the XRPC method "chat.bsky.convo.listConvos".
20
-
func ConvoListConvos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, readState string, status string) (*ConvoListConvos_Output, error) {
20
+
func ConvoListConvos(ctx context.Context, c util.LexClient, cursor string, limit int64, readState string, status string) (*ConvoListConvos_Output, error) {
21
21
var out ConvoListConvos_Output
22
22
23
23
params := map[string]interface{}{}
···
33
33
if status != "" {
34
34
params["status"] = status
35
35
}
36
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.listConvos", params, nil, &out); err != nil {
36
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.listConvos", params, nil, &out); err != nil {
37
37
return nil, err
38
38
}
39
39
+3
-3
api/chat/convomuteConvo.go
+3
-3
api/chat/convomuteConvo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoMuteConvo_Input is the input argument to a chat.bsky.convo.muteConvo call.
···
21
21
}
22
22
23
23
// ConvoMuteConvo calls the XRPC method "chat.bsky.convo.muteConvo".
24
-
func ConvoMuteConvo(ctx context.Context, c *xrpc.Client, input *ConvoMuteConvo_Input) (*ConvoMuteConvo_Output, error) {
24
+
func ConvoMuteConvo(ctx context.Context, c util.LexClient, input *ConvoMuteConvo_Input) (*ConvoMuteConvo_Output, error) {
25
25
var out ConvoMuteConvo_Output
26
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.muteConvo", nil, input, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.muteConvo", nil, input, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/chat/convoremoveReaction.go
+3
-3
api/chat/convoremoveReaction.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoRemoveReaction_Input is the input argument to a chat.bsky.convo.removeReaction call.
···
23
23
}
24
24
25
25
// ConvoRemoveReaction calls the XRPC method "chat.bsky.convo.removeReaction".
26
-
func ConvoRemoveReaction(ctx context.Context, c *xrpc.Client, input *ConvoRemoveReaction_Input) (*ConvoRemoveReaction_Output, error) {
26
+
func ConvoRemoveReaction(ctx context.Context, c util.LexClient, input *ConvoRemoveReaction_Input) (*ConvoRemoveReaction_Output, error) {
27
27
var out ConvoRemoveReaction_Output
28
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.removeReaction", nil, input, &out); err != nil {
28
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.removeReaction", nil, input, &out); err != nil {
29
29
return nil, err
30
30
}
31
31
+3
-3
api/chat/convosendMessage.go
+3
-3
api/chat/convosendMessage.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoSendMessage_Input is the input argument to a chat.bsky.convo.sendMessage call.
···
17
17
}
18
18
19
19
// ConvoSendMessage calls the XRPC method "chat.bsky.convo.sendMessage".
20
-
func ConvoSendMessage(ctx context.Context, c *xrpc.Client, input *ConvoSendMessage_Input) (*ConvoDefs_MessageView, error) {
20
+
func ConvoSendMessage(ctx context.Context, c util.LexClient, input *ConvoSendMessage_Input) (*ConvoDefs_MessageView, error) {
21
21
var out ConvoDefs_MessageView
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.sendMessage", nil, input, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.sendMessage", nil, input, &out); err != nil {
23
23
return nil, err
24
24
}
25
25
+3
-3
api/chat/convosendMessageBatch.go
+3
-3
api/chat/convosendMessageBatch.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoSendMessageBatch_BatchItem is a "batchItem" in the chat.bsky.convo.sendMessageBatch schema.
···
27
27
}
28
28
29
29
// ConvoSendMessageBatch calls the XRPC method "chat.bsky.convo.sendMessageBatch".
30
-
func ConvoSendMessageBatch(ctx context.Context, c *xrpc.Client, input *ConvoSendMessageBatch_Input) (*ConvoSendMessageBatch_Output, error) {
30
+
func ConvoSendMessageBatch(ctx context.Context, c util.LexClient, input *ConvoSendMessageBatch_Input) (*ConvoSendMessageBatch_Output, error) {
31
31
var out ConvoSendMessageBatch_Output
32
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.sendMessageBatch", nil, input, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.sendMessageBatch", nil, input, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/chat/convounmuteConvo.go
+3
-3
api/chat/convounmuteConvo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoUnmuteConvo_Input is the input argument to a chat.bsky.convo.unmuteConvo call.
···
21
21
}
22
22
23
23
// ConvoUnmuteConvo calls the XRPC method "chat.bsky.convo.unmuteConvo".
24
-
func ConvoUnmuteConvo(ctx context.Context, c *xrpc.Client, input *ConvoUnmuteConvo_Input) (*ConvoUnmuteConvo_Output, error) {
24
+
func ConvoUnmuteConvo(ctx context.Context, c util.LexClient, input *ConvoUnmuteConvo_Input) (*ConvoUnmuteConvo_Output, error) {
25
25
var out ConvoUnmuteConvo_Output
26
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.unmuteConvo", nil, input, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.unmuteConvo", nil, input, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/chat/convoupdateAllRead.go
+3
-3
api/chat/convoupdateAllRead.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoUpdateAllRead_Input is the input argument to a chat.bsky.convo.updateAllRead call.
···
22
22
}
23
23
24
24
// ConvoUpdateAllRead calls the XRPC method "chat.bsky.convo.updateAllRead".
25
-
func ConvoUpdateAllRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateAllRead_Input) (*ConvoUpdateAllRead_Output, error) {
25
+
func ConvoUpdateAllRead(ctx context.Context, c util.LexClient, input *ConvoUpdateAllRead_Input) (*ConvoUpdateAllRead_Output, error) {
26
26
var out ConvoUpdateAllRead_Output
27
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateAllRead", nil, input, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.updateAllRead", nil, input, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/chat/convoupdateRead.go
+3
-3
api/chat/convoupdateRead.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ConvoUpdateRead_Input is the input argument to a chat.bsky.convo.updateRead call.
···
22
22
}
23
23
24
24
// ConvoUpdateRead calls the XRPC method "chat.bsky.convo.updateRead".
25
-
func ConvoUpdateRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateRead_Input) (*ConvoUpdateRead_Output, error) {
25
+
func ConvoUpdateRead(ctx context.Context, c util.LexClient, input *ConvoUpdateRead_Input) (*ConvoUpdateRead_Output, error) {
26
26
var out ConvoUpdateRead_Output
27
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateRead", nil, input, &out); err != nil {
27
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.convo.updateRead", nil, input, &out); err != nil {
28
28
return nil, err
29
29
}
30
30
+3
-3
api/chat/moderationgetActorMetadata.go
+3
-3
api/chat/moderationgetActorMetadata.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetActorMetadata_Metadata is a "metadata" in the chat.bsky.moderation.getActorMetadata schema.
···
26
26
}
27
27
28
28
// ModerationGetActorMetadata calls the XRPC method "chat.bsky.moderation.getActorMetadata".
29
-
func ModerationGetActorMetadata(ctx context.Context, c *xrpc.Client, actor string) (*ModerationGetActorMetadata_Output, error) {
29
+
func ModerationGetActorMetadata(ctx context.Context, c util.LexClient, actor string) (*ModerationGetActorMetadata_Output, error) {
30
30
var out ModerationGetActorMetadata_Output
31
31
32
32
params := map[string]interface{}{}
33
33
params["actor"] = actor
34
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.moderation.getActorMetadata", params, nil, &out); err != nil {
34
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.moderation.getActorMetadata", params, nil, &out); err != nil {
35
35
return nil, err
36
36
}
37
37
+2
-3
api/chat/moderationgetMessageContext.go
+2
-3
api/chat/moderationgetMessageContext.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ModerationGetMessageContext_Output is the output of a chat.bsky.moderation.getMessageContext call.
···
56
55
// ModerationGetMessageContext calls the XRPC method "chat.bsky.moderation.getMessageContext".
57
56
//
58
57
// convoId: Conversation that the message is from. NOTE: this field will eventually be required.
59
-
func ModerationGetMessageContext(ctx context.Context, c *xrpc.Client, after int64, before int64, convoId string, messageId string) (*ModerationGetMessageContext_Output, error) {
58
+
func ModerationGetMessageContext(ctx context.Context, c util.LexClient, after int64, before int64, convoId string, messageId string) (*ModerationGetMessageContext_Output, error) {
60
59
var out ModerationGetMessageContext_Output
61
60
62
61
params := map[string]interface{}{}
···
70
69
params["convoId"] = convoId
71
70
}
72
71
params["messageId"] = messageId
73
-
if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.moderation.getMessageContext", params, nil, &out); err != nil {
72
+
if err := c.LexDo(ctx, util.Query, "", "chat.bsky.moderation.getMessageContext", params, nil, &out); err != nil {
74
73
return nil, err
75
74
}
76
75
+3
-3
api/chat/moderationupdateActorAccess.go
+3
-3
api/chat/moderationupdateActorAccess.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationUpdateActorAccess_Input is the input argument to a chat.bsky.moderation.updateActorAccess call.
···
18
18
}
19
19
20
20
// ModerationUpdateActorAccess calls the XRPC method "chat.bsky.moderation.updateActorAccess".
21
-
func ModerationUpdateActorAccess(ctx context.Context, c *xrpc.Client, input *ModerationUpdateActorAccess_Input) error {
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
21
+
func ModerationUpdateActorAccess(ctx context.Context, c util.LexClient, input *ModerationUpdateActorAccess_Input) error {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
23
23
return err
24
24
}
25
25
+3
-3
api/ozone/communicationcreateTemplate.go
+3
-3
api/ozone/communicationcreateTemplate.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// CommunicationCreateTemplate_Input is the input argument to a tools.ozone.communication.createTemplate call.
···
25
25
}
26
26
27
27
// CommunicationCreateTemplate calls the XRPC method "tools.ozone.communication.createTemplate".
28
-
func CommunicationCreateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
28
+
func CommunicationCreateTemplate(ctx context.Context, c util.LexClient, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
29
29
var out CommunicationDefs_TemplateView
30
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil {
31
31
return nil, err
32
32
}
33
33
+3
-3
api/ozone/communicationdeleteTemplate.go
+3
-3
api/ozone/communicationdeleteTemplate.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// CommunicationDeleteTemplate_Input is the input argument to a tools.ozone.communication.deleteTemplate call.
···
16
16
}
17
17
18
18
// CommunicationDeleteTemplate calls the XRPC method "tools.ozone.communication.deleteTemplate".
19
-
func CommunicationDeleteTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationDeleteTemplate_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil {
19
+
func CommunicationDeleteTemplate(ctx context.Context, c util.LexClient, input *CommunicationDeleteTemplate_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/ozone/communicationlistTemplates.go
+3
-3
api/ozone/communicationlistTemplates.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call.
···
16
16
}
17
17
18
18
// CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates".
19
-
func CommunicationListTemplates(ctx context.Context, c *xrpc.Client) (*CommunicationListTemplates_Output, error) {
19
+
func CommunicationListTemplates(ctx context.Context, c util.LexClient) (*CommunicationListTemplates_Output, error) {
20
20
var out CommunicationListTemplates_Output
21
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
21
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
22
22
return nil, err
23
23
}
24
24
+3
-3
api/ozone/communicationupdateTemplate.go
+3
-3
api/ozone/communicationupdateTemplate.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// CommunicationUpdateTemplate_Input is the input argument to a tools.ozone.communication.updateTemplate call.
···
28
28
}
29
29
30
30
// CommunicationUpdateTemplate calls the XRPC method "tools.ozone.communication.updateTemplate".
31
-
func CommunicationUpdateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
31
+
func CommunicationUpdateTemplate(ctx context.Context, c util.LexClient, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
32
32
var out CommunicationDefs_TemplateView
33
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
33
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
34
34
return nil, err
35
35
}
36
36
+2
-3
api/ozone/hostinggetAccountHistory.go
+2
-3
api/ozone/hostinggetAccountHistory.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// HostingGetAccountHistory_AccountCreated is a "accountCreated" in the tools.ozone.hosting.getAccountHistory schema.
···
126
125
}
127
126
128
127
// HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory".
129
-
func HostingGetAccountHistory(ctx context.Context, c *xrpc.Client, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) {
128
+
func HostingGetAccountHistory(ctx context.Context, c util.LexClient, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) {
130
129
var out HostingGetAccountHistory_Output
131
130
132
131
params := map[string]interface{}{}
···
140
139
if limit != 0 {
141
140
params["limit"] = limit
142
141
}
143
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil {
142
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil {
144
143
return nil, err
145
144
}
146
145
+2
-3
api/ozone/moderationemitEvent.go
+2
-3
api/ozone/moderationemitEvent.go
···
11
11
12
12
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
13
13
"github.com/bluesky-social/indigo/lex/util"
14
-
"github.com/bluesky-social/indigo/xrpc"
15
14
)
16
15
17
16
// ModerationEmitEvent_Input is the input argument to a tools.ozone.moderation.emitEvent call.
···
229
228
}
230
229
231
230
// ModerationEmitEvent calls the XRPC method "tools.ozone.moderation.emitEvent".
232
-
func ModerationEmitEvent(ctx context.Context, c *xrpc.Client, input *ModerationEmitEvent_Input) (*ModerationDefs_ModEventView, error) {
231
+
func ModerationEmitEvent(ctx context.Context, c util.LexClient, input *ModerationEmitEvent_Input) (*ModerationDefs_ModEventView, error) {
233
232
var out ModerationDefs_ModEventView
234
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.moderation.emitEvent", nil, input, &out); err != nil {
233
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.moderation.emitEvent", nil, input, &out); err != nil {
235
234
return nil, err
236
235
}
237
236
+3
-3
api/ozone/moderationgetEvent.go
+3
-3
api/ozone/moderationgetEvent.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetEvent calls the XRPC method "tools.ozone.moderation.getEvent".
14
-
func ModerationGetEvent(ctx context.Context, c *xrpc.Client, id int64) (*ModerationDefs_ModEventViewDetail, error) {
14
+
func ModerationGetEvent(ctx context.Context, c util.LexClient, id int64) (*ModerationDefs_ModEventViewDetail, error) {
15
15
var out ModerationDefs_ModEventViewDetail
16
16
17
17
params := map[string]interface{}{}
18
18
params["id"] = id
19
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getEvent", params, nil, &out); err != nil {
19
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getEvent", params, nil, &out); err != nil {
20
20
return nil, err
21
21
}
22
22
+3
-3
api/ozone/moderationgetRecord.go
+3
-3
api/ozone/moderationgetRecord.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetRecord calls the XRPC method "tools.ozone.moderation.getRecord".
14
-
func ModerationGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*ModerationDefs_RecordViewDetail, error) {
14
+
func ModerationGetRecord(ctx context.Context, c util.LexClient, cid string, uri string) (*ModerationDefs_RecordViewDetail, error) {
15
15
var out ModerationDefs_RecordViewDetail
16
16
17
17
params := map[string]interface{}{}
···
19
19
params["cid"] = cid
20
20
}
21
21
params["uri"] = uri
22
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRecord", params, nil, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRecord", params, nil, &out); err != nil {
23
23
return nil, err
24
24
}
25
25
+2
-3
api/ozone/moderationgetRecords.go
+2
-3
api/ozone/moderationgetRecords.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ModerationGetRecords_Output is the output of a tools.ozone.moderation.getRecords call.
···
54
53
}
55
54
56
55
// ModerationGetRecords calls the XRPC method "tools.ozone.moderation.getRecords".
57
-
func ModerationGetRecords(ctx context.Context, c *xrpc.Client, uris []string) (*ModerationGetRecords_Output, error) {
56
+
func ModerationGetRecords(ctx context.Context, c util.LexClient, uris []string) (*ModerationGetRecords_Output, error) {
58
57
var out ModerationGetRecords_Output
59
58
60
59
params := map[string]interface{}{}
61
60
params["uris"] = uris
62
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRecords", params, nil, &out); err != nil {
61
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRecords", params, nil, &out); err != nil {
63
62
return nil, err
64
63
}
65
64
+3
-3
api/ozone/moderationgetRepo.go
+3
-3
api/ozone/moderationgetRepo.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetRepo calls the XRPC method "tools.ozone.moderation.getRepo".
14
-
func ModerationGetRepo(ctx context.Context, c *xrpc.Client, did string) (*ModerationDefs_RepoViewDetail, error) {
14
+
func ModerationGetRepo(ctx context.Context, c util.LexClient, did string) (*ModerationDefs_RepoViewDetail, error) {
15
15
var out ModerationDefs_RepoViewDetail
16
16
17
17
params := map[string]interface{}{}
18
18
params["did"] = did
19
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRepo", params, nil, &out); err != nil {
19
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRepo", params, nil, &out); err != nil {
20
20
return nil, err
21
21
}
22
22
+3
-3
api/ozone/moderationgetReporterStats.go
+3
-3
api/ozone/moderationgetReporterStats.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetReporterStats_Output is the output of a tools.ozone.moderation.getReporterStats call.
···
16
16
}
17
17
18
18
// ModerationGetReporterStats calls the XRPC method "tools.ozone.moderation.getReporterStats".
19
-
func ModerationGetReporterStats(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetReporterStats_Output, error) {
19
+
func ModerationGetReporterStats(ctx context.Context, c util.LexClient, dids []string) (*ModerationGetReporterStats_Output, error) {
20
20
var out ModerationGetReporterStats_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["dids"] = dids
24
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getReporterStats", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getReporterStats", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+2
-3
api/ozone/moderationgetRepos.go
+2
-3
api/ozone/moderationgetRepos.go
···
10
10
"fmt"
11
11
12
12
"github.com/bluesky-social/indigo/lex/util"
13
-
"github.com/bluesky-social/indigo/xrpc"
14
13
)
15
14
16
15
// ModerationGetRepos_Output is the output of a tools.ozone.moderation.getRepos call.
···
54
53
}
55
54
56
55
// ModerationGetRepos calls the XRPC method "tools.ozone.moderation.getRepos".
57
-
func ModerationGetRepos(ctx context.Context, c *xrpc.Client, dids []string) (*ModerationGetRepos_Output, error) {
56
+
func ModerationGetRepos(ctx context.Context, c util.LexClient, dids []string) (*ModerationGetRepos_Output, error) {
58
57
var out ModerationGetRepos_Output
59
58
60
59
params := map[string]interface{}{}
61
60
params["dids"] = dids
62
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getRepos", params, nil, &out); err != nil {
61
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getRepos", params, nil, &out); err != nil {
63
62
return nil, err
64
63
}
65
64
+3
-3
api/ozone/moderationgetSubjects.go
+3
-3
api/ozone/moderationgetSubjects.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationGetSubjects_Output is the output of a tools.ozone.moderation.getSubjects call.
···
16
16
}
17
17
18
18
// ModerationGetSubjects calls the XRPC method "tools.ozone.moderation.getSubjects".
19
-
func ModerationGetSubjects(ctx context.Context, c *xrpc.Client, subjects []string) (*ModerationGetSubjects_Output, error) {
19
+
func ModerationGetSubjects(ctx context.Context, c util.LexClient, subjects []string) (*ModerationGetSubjects_Output, error) {
20
20
var out ModerationGetSubjects_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["subjects"] = subjects
24
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.getSubjects", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/ozone/moderationqueryEvents.go
+3
-3
api/ozone/moderationqueryEvents.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationQueryEvents_Output is the output of a tools.ozone.moderation.queryEvents call.
···
31
31
// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
32
32
// 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.
33
33
// 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.
34
-
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) {
34
+
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) {
35
35
var out ModerationQueryEvents_Output
36
36
37
37
params := map[string]interface{}{}
···
92
92
if len(types) != 0 {
93
93
params["types"] = types
94
94
}
95
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
95
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
96
96
return nil, err
97
97
}
98
98
+3
-3
api/ozone/moderationqueryStatuses.go
+3
-3
api/ozone/moderationqueryStatuses.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationQueryStatuses_Output is the output of a tools.ozone.moderation.queryStatuses call.
···
45
45
// subject: The subject to get the status for.
46
46
// 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.
47
47
// takendown: Get subjects that were taken down
48
-
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) {
48
+
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) {
49
49
var out ModerationQueryStatuses_Output
50
50
51
51
params := map[string]interface{}{}
···
151
151
if takendown {
152
152
params["takendown"] = takendown
153
153
}
154
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
154
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
155
155
return nil, err
156
156
}
157
157
+3
-3
api/ozone/moderationsearchRepos.go
+3
-3
api/ozone/moderationsearchRepos.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ModerationSearchRepos_Output is the output of a tools.ozone.moderation.searchRepos call.
···
19
19
// ModerationSearchRepos calls the XRPC method "tools.ozone.moderation.searchRepos".
20
20
//
21
21
// term: DEPRECATED: use 'q' instead
22
-
func ModerationSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) {
22
+
func ModerationSearchRepos(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) {
23
23
var out ModerationSearchRepos_Output
24
24
25
25
params := map[string]interface{}{}
···
35
35
if term != "" {
36
36
params["term"] = term
37
37
}
38
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil {
38
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil {
39
39
return nil, err
40
40
}
41
41
+3
-3
api/ozone/servergetConfig.go
+3
-3
api/ozone/servergetConfig.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// ServerGetConfig_Output is the output of a tools.ozone.server.getConfig call.
···
32
32
}
33
33
34
34
// ServerGetConfig calls the XRPC method "tools.ozone.server.getConfig".
35
-
func ServerGetConfig(ctx context.Context, c *xrpc.Client) (*ServerGetConfig_Output, error) {
35
+
func ServerGetConfig(ctx context.Context, c util.LexClient) (*ServerGetConfig_Output, error) {
36
36
var out ServerGetConfig_Output
37
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.server.getConfig", nil, nil, &out); err != nil {
37
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.server.getConfig", nil, nil, &out); err != nil {
38
38
return nil, err
39
39
}
40
40
+3
-3
api/ozone/setaddValues.go
+3
-3
api/ozone/setaddValues.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetAddValues_Input is the input argument to a tools.ozone.set.addValues call.
···
19
19
}
20
20
21
21
// SetAddValues calls the XRPC method "tools.ozone.set.addValues".
22
-
func SetAddValues(ctx context.Context, c *xrpc.Client, input *SetAddValues_Input) error {
23
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
22
+
func SetAddValues(ctx context.Context, c util.LexClient, input *SetAddValues_Input) error {
23
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
24
24
return err
25
25
}
26
26
+3
-3
api/ozone/setdeleteSet.go
+3
-3
api/ozone/setdeleteSet.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetDeleteSet_Input is the input argument to a tools.ozone.set.deleteSet call.
···
21
21
}
22
22
23
23
// SetDeleteSet calls the XRPC method "tools.ozone.set.deleteSet".
24
-
func SetDeleteSet(ctx context.Context, c *xrpc.Client, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
24
+
func SetDeleteSet(ctx context.Context, c util.LexClient, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
25
25
var out SetDeleteSet_Output
26
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+3
-3
api/ozone/setdeleteValues.go
+3
-3
api/ozone/setdeleteValues.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetDeleteValues_Input is the input argument to a tools.ozone.set.deleteValues call.
···
19
19
}
20
20
21
21
// SetDeleteValues calls the XRPC method "tools.ozone.set.deleteValues".
22
-
func SetDeleteValues(ctx context.Context, c *xrpc.Client, input *SetDeleteValues_Input) error {
23
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
22
+
func SetDeleteValues(ctx context.Context, c util.LexClient, input *SetDeleteValues_Input) error {
23
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
24
24
return err
25
25
}
26
26
+3
-3
api/ozone/setgetValues.go
+3
-3
api/ozone/setgetValues.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetGetValues_Output is the output of a tools.ozone.set.getValues call.
···
18
18
}
19
19
20
20
// SetGetValues calls the XRPC method "tools.ozone.set.getValues".
21
-
func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
21
+
func SetGetValues(ctx context.Context, c util.LexClient, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
22
22
var out SetGetValues_Output
23
23
24
24
params := map[string]interface{}{}
···
29
29
params["limit"] = limit
30
30
}
31
31
params["name"] = name
32
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/ozone/setquerySets.go
+3
-3
api/ozone/setquerySets.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetQuerySets_Output is the output of a tools.ozone.set.querySets call.
···
19
19
// SetQuerySets calls the XRPC method "tools.ozone.set.querySets".
20
20
//
21
21
// sortDirection: Defaults to ascending order of name field.
22
-
func SetQuerySets(ctx context.Context, c *xrpc.Client, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
22
+
func SetQuerySets(ctx context.Context, c util.LexClient, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
23
23
var out SetQuerySets_Output
24
24
25
25
params := map[string]interface{}{}
···
38
38
if sortDirection != "" {
39
39
params["sortDirection"] = sortDirection
40
40
}
41
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
41
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
42
42
return nil, err
43
43
}
44
44
+3
-3
api/ozone/settinglistOptions.go
+3
-3
api/ozone/settinglistOptions.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SettingListOptions_Output is the output of a tools.ozone.setting.listOptions call.
···
20
20
//
21
21
// keys: Filter for only the specified keys. Ignored if prefix is provided
22
22
// prefix: Filter keys by prefix
23
-
func SettingListOptions(ctx context.Context, c *xrpc.Client, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
23
+
func SettingListOptions(ctx context.Context, c util.LexClient, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
24
24
var out SettingListOptions_Output
25
25
26
26
params := map[string]interface{}{}
···
39
39
if scope != "" {
40
40
params["scope"] = scope
41
41
}
42
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
42
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
43
43
return nil, err
44
44
}
45
45
+3
-3
api/ozone/settingremoveOptions.go
+3
-3
api/ozone/settingremoveOptions.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SettingRemoveOptions_Input is the input argument to a tools.ozone.setting.removeOptions call.
···
21
21
}
22
22
23
23
// SettingRemoveOptions calls the XRPC method "tools.ozone.setting.removeOptions".
24
-
func SettingRemoveOptions(ctx context.Context, c *xrpc.Client, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
24
+
func SettingRemoveOptions(ctx context.Context, c util.LexClient, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
25
25
var out SettingRemoveOptions_Output
26
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
26
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
27
27
return nil, err
28
28
}
29
29
+2
-3
api/ozone/settingupsertOption.go
+2
-3
api/ozone/settingupsertOption.go
···
8
8
"context"
9
9
10
10
"github.com/bluesky-social/indigo/lex/util"
11
-
"github.com/bluesky-social/indigo/xrpc"
12
11
)
13
12
14
13
// SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call.
···
26
25
}
27
26
28
27
// SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption".
29
-
func SettingUpsertOption(ctx context.Context, c *xrpc.Client, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
28
+
func SettingUpsertOption(ctx context.Context, c util.LexClient, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
30
29
var out SettingUpsertOption_Output
31
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
30
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
32
31
return nil, err
33
32
}
34
33
+3
-3
api/ozone/setupsertSet.go
+3
-3
api/ozone/setupsertSet.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SetUpsertSet calls the XRPC method "tools.ozone.set.upsertSet".
14
-
func SetUpsertSet(ctx context.Context, c *xrpc.Client, input *SetDefs_Set) (*SetDefs_SetView, error) {
14
+
func SetUpsertSet(ctx context.Context, c util.LexClient, input *SetDefs_Set) (*SetDefs_SetView, error) {
15
15
var out SetDefs_SetView
16
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.upsertSet", nil, input, &out); err != nil {
16
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.upsertSet", nil, input, &out); err != nil {
17
17
return nil, err
18
18
}
19
19
+3
-3
api/ozone/signaturefindCorrelation.go
+3
-3
api/ozone/signaturefindCorrelation.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// SignatureFindCorrelation_Output is the output of a tools.ozone.signature.findCorrelation call.
···
16
16
}
17
17
18
18
// SignatureFindCorrelation calls the XRPC method "tools.ozone.signature.findCorrelation".
19
-
func SignatureFindCorrelation(ctx context.Context, c *xrpc.Client, dids []string) (*SignatureFindCorrelation_Output, error) {
19
+
func SignatureFindCorrelation(ctx context.Context, c util.LexClient, dids []string) (*SignatureFindCorrelation_Output, error) {
20
20
var out SignatureFindCorrelation_Output
21
21
22
22
params := map[string]interface{}{}
23
23
params["dids"] = dids
24
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findCorrelation", params, nil, &out); err != nil {
24
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.signature.findCorrelation", params, nil, &out); err != nil {
25
25
return nil, err
26
26
}
27
27
+3
-3
api/ozone/signaturefindRelatedAccounts.go
+3
-3
api/ozone/signaturefindRelatedAccounts.go
···
8
8
"context"
9
9
10
10
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SignatureFindRelatedAccounts_Output is the output of a tools.ozone.signature.findRelatedAccounts call.
···
24
24
}
25
25
26
26
// SignatureFindRelatedAccounts calls the XRPC method "tools.ozone.signature.findRelatedAccounts".
27
-
func SignatureFindRelatedAccounts(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error) {
27
+
func SignatureFindRelatedAccounts(ctx context.Context, c util.LexClient, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error) {
28
28
var out SignatureFindRelatedAccounts_Output
29
29
30
30
params := map[string]interface{}{}
···
35
35
if limit != 0 {
36
36
params["limit"] = limit
37
37
}
38
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findRelatedAccounts", params, nil, &out); err != nil {
38
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.signature.findRelatedAccounts", params, nil, &out); err != nil {
39
39
return nil, err
40
40
}
41
41
+3
-3
api/ozone/signaturesearchAccounts.go
+3
-3
api/ozone/signaturesearchAccounts.go
···
8
8
"context"
9
9
10
10
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
11
-
"github.com/bluesky-social/indigo/xrpc"
11
+
"github.com/bluesky-social/indigo/lex/util"
12
12
)
13
13
14
14
// SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call.
···
18
18
}
19
19
20
20
// SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts".
21
-
func SignatureSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) {
21
+
func SignatureSearchAccounts(ctx context.Context, c util.LexClient, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) {
22
22
var out SignatureSearchAccounts_Output
23
23
24
24
params := map[string]interface{}{}
···
29
29
params["limit"] = limit
30
30
}
31
31
params["values"] = values
32
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil {
32
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil {
33
33
return nil, err
34
34
}
35
35
+3
-3
api/ozone/teamaddMember.go
+3
-3
api/ozone/teamaddMember.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TeamAddMember_Input is the input argument to a tools.ozone.team.addMember call.
···
17
17
}
18
18
19
19
// TeamAddMember calls the XRPC method "tools.ozone.team.addMember".
20
-
func TeamAddMember(ctx context.Context, c *xrpc.Client, input *TeamAddMember_Input) (*TeamDefs_Member, error) {
20
+
func TeamAddMember(ctx context.Context, c util.LexClient, input *TeamAddMember_Input) (*TeamDefs_Member, error) {
21
21
var out TeamDefs_Member
22
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.addMember", nil, input, &out); err != nil {
22
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.team.addMember", nil, input, &out); err != nil {
23
23
return nil, err
24
24
}
25
25
+3
-3
api/ozone/teamdeleteMember.go
+3
-3
api/ozone/teamdeleteMember.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TeamDeleteMember_Input is the input argument to a tools.ozone.team.deleteMember call.
···
16
16
}
17
17
18
18
// TeamDeleteMember calls the XRPC method "tools.ozone.team.deleteMember".
19
-
func TeamDeleteMember(ctx context.Context, c *xrpc.Client, input *TeamDeleteMember_Input) error {
20
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.deleteMember", nil, input, nil); err != nil {
19
+
func TeamDeleteMember(ctx context.Context, c util.LexClient, input *TeamDeleteMember_Input) error {
20
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.team.deleteMember", nil, input, nil); err != nil {
21
21
return err
22
22
}
23
23
+3
-3
api/ozone/teamlistMembers.go
+3
-3
api/ozone/teamlistMembers.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TeamListMembers_Output is the output of a tools.ozone.team.listMembers call.
···
17
17
}
18
18
19
19
// TeamListMembers calls the XRPC method "tools.ozone.team.listMembers".
20
-
func TeamListMembers(ctx context.Context, c *xrpc.Client, cursor string, disabled bool, limit int64, q string, roles []string) (*TeamListMembers_Output, error) {
20
+
func TeamListMembers(ctx context.Context, c util.LexClient, cursor string, disabled bool, limit int64, q string, roles []string) (*TeamListMembers_Output, error) {
21
21
var out TeamListMembers_Output
22
22
23
23
params := map[string]interface{}{}
···
36
36
if len(roles) != 0 {
37
37
params["roles"] = roles
38
38
}
39
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.team.listMembers", params, nil, &out); err != nil {
39
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.team.listMembers", params, nil, &out); err != nil {
40
40
return nil, err
41
41
}
42
42
+3
-3
api/ozone/teamupdateMember.go
+3
-3
api/ozone/teamupdateMember.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// TeamUpdateMember_Input is the input argument to a tools.ozone.team.updateMember call.
···
18
18
}
19
19
20
20
// TeamUpdateMember calls the XRPC method "tools.ozone.team.updateMember".
21
-
func TeamUpdateMember(ctx context.Context, c *xrpc.Client, input *TeamUpdateMember_Input) (*TeamDefs_Member, error) {
21
+
func TeamUpdateMember(ctx context.Context, c util.LexClient, input *TeamUpdateMember_Input) (*TeamDefs_Member, error) {
22
22
var out TeamDefs_Member
23
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.updateMember", nil, input, &out); err != nil {
23
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.team.updateMember", nil, input, &out); err != nil {
24
24
return nil, err
25
25
}
26
26
+3
-3
api/ozone/verificationgrantVerifications.go
+3
-3
api/ozone/verificationgrantVerifications.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// VerificationGrantVerifications_GrantError is a "grantError" in the tools.ozone.verification.grantVerifications schema.
···
45
45
}
46
46
47
47
// VerificationGrantVerifications calls the XRPC method "tools.ozone.verification.grantVerifications".
48
-
func VerificationGrantVerifications(ctx context.Context, c *xrpc.Client, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) {
48
+
func VerificationGrantVerifications(ctx context.Context, c util.LexClient, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) {
49
49
var out VerificationGrantVerifications_Output
50
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil {
50
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil {
51
51
return nil, err
52
52
}
53
53
+3
-3
api/ozone/verificationlistVerifications.go
+3
-3
api/ozone/verificationlistVerifications.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// VerificationListVerifications_Output is the output of a tools.ozone.verification.listVerifications call.
···
26
26
// limit: Maximum number of results to return
27
27
// sortDirection: Sort direction for creation date
28
28
// subjects: Filter to specific verified DIDs
29
-
func VerificationListVerifications(ctx context.Context, c *xrpc.Client, createdAfter string, createdBefore string, cursor string, isRevoked bool, issuers []string, limit int64, sortDirection string, subjects []string) (*VerificationListVerifications_Output, error) {
29
+
func VerificationListVerifications(ctx context.Context, c util.LexClient, createdAfter string, createdBefore string, cursor string, isRevoked bool, issuers []string, limit int64, sortDirection string, subjects []string) (*VerificationListVerifications_Output, error) {
30
30
var out VerificationListVerifications_Output
31
31
32
32
params := map[string]interface{}{}
···
54
54
if len(subjects) != 0 {
55
55
params["subjects"] = subjects
56
56
}
57
-
if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.verification.listVerifications", params, nil, &out); err != nil {
57
+
if err := c.LexDo(ctx, util.Query, "", "tools.ozone.verification.listVerifications", params, nil, &out); err != nil {
58
58
return nil, err
59
59
}
60
60
+3
-3
api/ozone/verificationrevokeVerifications.go
+3
-3
api/ozone/verificationrevokeVerifications.go
···
7
7
import (
8
8
"context"
9
9
10
-
"github.com/bluesky-social/indigo/xrpc"
10
+
"github.com/bluesky-social/indigo/lex/util"
11
11
)
12
12
13
13
// VerificationRevokeVerifications_Input is the input argument to a tools.ozone.verification.revokeVerifications call.
···
37
37
}
38
38
39
39
// VerificationRevokeVerifications calls the XRPC method "tools.ozone.verification.revokeVerifications".
40
-
func VerificationRevokeVerifications(ctx context.Context, c *xrpc.Client, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) {
40
+
func VerificationRevokeVerifications(ctx context.Context, c util.LexClient, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) {
41
41
var out VerificationRevokeVerifications_Output
42
-
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil {
42
+
if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil {
43
43
return nil, err
44
44
}
45
45