forked from bluesky-social/indigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ea3242
commit 7945d7b
Showing
15 changed files
with
295 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package atproto | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bluesky-social/indigo/xrpc" | ||
) | ||
|
||
// schema: com.atproto.admin.updateAccountEmail | ||
|
||
func init() { | ||
} | ||
|
||
type AdminUpdateAccountEmail_Input struct { | ||
Account string `json:"account" cborgen:"account"` | ||
Email string `json:"email" cborgen:"email"` | ||
} | ||
|
||
func AdminUpdateAccountEmail(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountEmail_Input) error { | ||
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountEmail", nil, input, nil); err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package atproto | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bluesky-social/indigo/xrpc" | ||
) | ||
|
||
// schema: com.atproto.admin.updateAccountHandle | ||
|
||
func init() { | ||
} | ||
|
||
type AdminUpdateAccountHandle_Input struct { | ||
Did string `json:"did" cborgen:"did"` | ||
Handle string `json:"handle" cborgen:"handle"` | ||
} | ||
|
||
func AdminUpdateAccountHandle(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountHandle_Input) error { | ||
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountHandle", nil, input, nil); err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package atproto | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bluesky-social/indigo/xrpc" | ||
) | ||
|
||
// schema: com.atproto.server.createAppPassword | ||
|
||
func init() { | ||
} | ||
|
||
type ServerCreateAppPassword_AppPassword struct { | ||
CreatedAt string `json:"createdAt" cborgen:"createdAt"` | ||
Name string `json:"name" cborgen:"name"` | ||
Password string `json:"password" cborgen:"password"` | ||
} | ||
|
||
type ServerCreateAppPassword_Input struct { | ||
Name string `json:"name" cborgen:"name"` | ||
} | ||
|
||
func ServerCreateAppPassword(ctx context.Context, c *xrpc.Client, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) { | ||
var out ServerCreateAppPassword_AppPassword | ||
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil { | ||
return nil, err | ||
} | ||
|
||
return &out, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package atproto | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bluesky-social/indigo/xrpc" | ||
) | ||
|
||
// schema: com.atproto.server.listAppPasswords | ||
|
||
func init() { | ||
} | ||
|
||
type ServerListAppPasswords_AppPassword struct { | ||
CreatedAt string `json:"createdAt" cborgen:"createdAt"` | ||
Name string `json:"name" cborgen:"name"` | ||
} | ||
|
||
type ServerListAppPasswords_Output struct { | ||
Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"` | ||
} | ||
|
||
func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) { | ||
var out ServerListAppPasswords_Output | ||
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil { | ||
return nil, err | ||
} | ||
|
||
return &out, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package atproto | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bluesky-social/indigo/xrpc" | ||
) | ||
|
||
// schema: com.atproto.server.revokeAppPassword | ||
|
||
func init() { | ||
} | ||
|
||
type ServerRevokeAppPassword_Input struct { | ||
Name string `json:"name" cborgen:"name"` | ||
} | ||
|
||
func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error { | ||
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.