From b32e07b88784b776b4b026433e49283e6c602712 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 7 Jan 2023 14:45:01 -0800 Subject: [PATCH] Regenerate code --- lemmy.go | 2 +- routes.gen.go | 2 ++ types/activity.gen.go | 2 ++ types/comment.1.gen.go | 2 ++ types/comment.gen.go | 2 ++ types/comment_report.gen.go | 2 ++ types/community.1.gen.go | 2 ++ types/community.gen.go | 2 ++ types/community_block.gen.go | 2 ++ types/email_verification.gen.go | 2 ++ types/lib.1.gen.go | 2 ++ types/lib.2.gen.go | 2 ++ types/lib.gen.go | 2 ++ types/local_user.gen.go | 2 ++ types/mod.gen.go | 2 ++ types/moderator.gen.go | 2 ++ types/password_reset_request.gen.go | 2 ++ types/person.1.gen.go | 2 ++ types/person.gen.go | 4 +++- types/person_block.gen.go | 2 ++ types/person_mention.gen.go | 2 ++ types/post.1.gen.go | 2 ++ types/post.gen.go | 2 ++ types/post_report.gen.go | 2 ++ types/private_message.gen.go | 2 ++ types/registration_application.gen.go | 2 ++ types/request.gen.go | 2 ++ types/secret.gen.go | 4 +++- types/sensitive.gen.go | 2 ++ types/site.1.gen.go | 2 ++ types/site.gen.go | 2 ++ types/structs.1.gen.go | 2 ++ types/structs.2.gen.go | 2 ++ types/structs.3.gen.go | 2 ++ types/structs.gen.go | 2 ++ types/utils.gen.go | 2 ++ types/websocket.gen.go | 2 ++ 37 files changed, 75 insertions(+), 3 deletions(-) diff --git a/lemmy.go b/lemmy.go index ab853ea..621c46f 100644 --- a/lemmy.go +++ b/lemmy.go @@ -45,7 +45,7 @@ func (c *Client) ClientLogin(ctx context.Context, l types.Login) error { return err } - c.Token = lr.Jwt.MustValue() + c.Token = lr.JWT.MustValue() return nil } diff --git a/routes.gen.go b/routes.gen.go index b36c5e5..3ea4eb7 100644 --- a/routes.gen.go +++ b/routes.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (routes generator). DO NOT EDIT. + package lemmy import ( diff --git a/types/activity.gen.go b/types/activity.gen.go index 9d40e9c..cfefaf5 100644 --- a/types/activity.gen.go +++ b/types/activity.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Activity struct { diff --git a/types/comment.1.gen.go b/types/comment.1.gen.go index f5c585a..b36217c 100644 --- a/types/comment.1.gen.go +++ b/types/comment.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Comment struct { diff --git a/types/comment.gen.go b/types/comment.gen.go index 6f19ea7..b87e1fd 100644 --- a/types/comment.gen.go +++ b/types/comment.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CreateComment struct { diff --git a/types/comment_report.gen.go b/types/comment_report.gen.go index fc0aca0..e8ffa3d 100644 --- a/types/comment_report.gen.go +++ b/types/comment_report.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CommentReport struct { diff --git a/types/community.1.gen.go b/types/community.1.gen.go index def8e40..14b1f15 100644 --- a/types/community.1.gen.go +++ b/types/community.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Community struct { diff --git a/types/community.gen.go b/types/community.gen.go index 7074898..aaa71db 100644 --- a/types/community.gen.go +++ b/types/community.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type GetCommunity struct { diff --git a/types/community_block.gen.go b/types/community_block.gen.go index e419ba3..1c02381 100644 --- a/types/community_block.gen.go +++ b/types/community_block.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CommunityBlock struct { diff --git a/types/email_verification.gen.go b/types/email_verification.gen.go index da6d775..b71a328 100644 --- a/types/email_verification.gen.go +++ b/types/email_verification.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type EmailVerification struct { diff --git a/types/lib.1.gen.go b/types/lib.1.gen.go index 1343340..32f0bca 100644 --- a/types/lib.1.gen.go +++ b/types/lib.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type SortType string diff --git a/types/lib.2.gen.go b/types/lib.2.gen.go index f5c9203..f8e9796 100644 --- a/types/lib.2.gen.go +++ b/types/lib.2.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type UserOperation string diff --git a/types/lib.gen.go b/types/lib.gen.go index ab1254f..42acd20 100644 --- a/types/lib.gen.go +++ b/types/lib.gen.go @@ -1 +1,3 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types diff --git a/types/local_user.gen.go b/types/local_user.gen.go index 41e311d..e9c4fc7 100644 --- a/types/local_user.gen.go +++ b/types/local_user.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type LocalUser struct { diff --git a/types/mod.gen.go b/types/mod.gen.go index ab1254f..42acd20 100644 --- a/types/mod.gen.go +++ b/types/mod.gen.go @@ -1 +1,3 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types diff --git a/types/moderator.gen.go b/types/moderator.gen.go index 5a00933..1200fe4 100644 --- a/types/moderator.gen.go +++ b/types/moderator.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type ModRemovePost struct { diff --git a/types/password_reset_request.gen.go b/types/password_reset_request.gen.go index 3781c8f..c313243 100644 --- a/types/password_reset_request.gen.go +++ b/types/password_reset_request.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type PasswordResetRequest struct { diff --git a/types/person.1.gen.go b/types/person.1.gen.go index f16b13b..b780759 100644 --- a/types/person.1.gen.go +++ b/types/person.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Person struct { diff --git a/types/person.gen.go b/types/person.gen.go index f11f8d8..802a781 100644 --- a/types/person.gen.go +++ b/types/person.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Login struct { @@ -54,7 +56,7 @@ type ChangePassword struct { Auth string `json:"auth" url:"auth,omitempty"` } type LoginResponse struct { - Jwt Optional[string] `json:"jwt" url:"jwt,omitempty"` + JWT Optional[string] `json:"jwt" url:"jwt,omitempty"` RegistrationCreated bool `json:"registration_created" url:"registration_created,omitempty"` VerifyEmailSent bool `json:"verify_email_sent" url:"verify_email_sent,omitempty"` LemmyResponse diff --git a/types/person_block.gen.go b/types/person_block.gen.go index 80cecd2..0e04caa 100644 --- a/types/person_block.gen.go +++ b/types/person_block.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type PersonBlock struct { diff --git a/types/person_mention.gen.go b/types/person_mention.gen.go index 16009d7..f33a74d 100644 --- a/types/person_mention.gen.go +++ b/types/person_mention.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type PersonMention struct { diff --git a/types/post.1.gen.go b/types/post.1.gen.go index fc696dc..155c8ed 100644 --- a/types/post.1.gen.go +++ b/types/post.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Post struct { diff --git a/types/post.gen.go b/types/post.gen.go index 91f63ed..14a1ab0 100644 --- a/types/post.gen.go +++ b/types/post.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CreatePost struct { diff --git a/types/post_report.gen.go b/types/post_report.gen.go index ab9fe9a..305f4b6 100644 --- a/types/post_report.gen.go +++ b/types/post_report.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type PostReport struct { diff --git a/types/private_message.gen.go b/types/private_message.gen.go index 104d59c..90fb926 100644 --- a/types/private_message.gen.go +++ b/types/private_message.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type PrivateMessage struct { diff --git a/types/registration_application.gen.go b/types/registration_application.gen.go index 65317f9..b926dbd 100644 --- a/types/registration_application.gen.go +++ b/types/registration_application.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type RegistrationApplication struct { diff --git a/types/request.gen.go b/types/request.gen.go index ab1254f..42acd20 100644 --- a/types/request.gen.go +++ b/types/request.gen.go @@ -1 +1,3 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types diff --git a/types/secret.gen.go b/types/secret.gen.go index 0de818c..6706e58 100644 --- a/types/secret.gen.go +++ b/types/secret.gen.go @@ -1,6 +1,8 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Secret struct { ID int32 `json:"id" url:"id,omitempty"` - JwtSecret string `json:"jwt_secret" url:"jwt_secret,omitempty"` + JWTSecret string `json:"jwt_secret" url:"jwt_secret,omitempty"` } diff --git a/types/sensitive.gen.go b/types/sensitive.gen.go index ab1254f..42acd20 100644 --- a/types/sensitive.gen.go +++ b/types/sensitive.gen.go @@ -1 +1,3 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types diff --git a/types/site.1.gen.go b/types/site.1.gen.go index 59e5b54..69a1c90 100644 --- a/types/site.1.gen.go +++ b/types/site.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Site struct { diff --git a/types/site.gen.go b/types/site.gen.go index 1a0d658..d3c88d1 100644 --- a/types/site.gen.go +++ b/types/site.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type Search struct { diff --git a/types/structs.1.gen.go b/types/structs.1.gen.go index 22c63aa..4236c16 100644 --- a/types/structs.1.gen.go +++ b/types/structs.1.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CommentReportView struct { diff --git a/types/structs.2.gen.go b/types/structs.2.gen.go index 2d888be..0b659db 100644 --- a/types/structs.2.gen.go +++ b/types/structs.2.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type ModAddCommunityView struct { diff --git a/types/structs.3.gen.go b/types/structs.3.gen.go index a4b56ae..588c536 100644 --- a/types/structs.3.gen.go +++ b/types/structs.3.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CommentAggregates struct { diff --git a/types/structs.gen.go b/types/structs.gen.go index 21d6edb..0118641 100644 --- a/types/structs.gen.go +++ b/types/structs.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type CommunityBlockView struct { diff --git a/types/utils.gen.go b/types/utils.gen.go index ab1254f..42acd20 100644 --- a/types/utils.gen.go +++ b/types/utils.gen.go @@ -1 +1,3 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types diff --git a/types/websocket.gen.go b/types/websocket.gen.go index 20312d2..0eac1a7 100644 --- a/types/websocket.gen.go +++ b/types/websocket.gen.go @@ -1,3 +1,5 @@ +// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. + package types type UserJoin struct {