lemmy-js-client 0.19.0-rc.8 → 0.19.0-rc.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/dist/http.d.ts +30 -8
  2. package/dist/http.js +30 -16
  3. package/dist/index.d.ts +22 -2
  4. package/dist/types/AddAdmin.d.ts +1 -0
  5. package/dist/types/AddModToCommunity.d.ts +1 -0
  6. package/dist/types/ApproveRegistrationApplication.d.ts +1 -0
  7. package/dist/types/BanFromCommunity.d.ts +1 -0
  8. package/dist/types/BanPerson.d.ts +1 -0
  9. package/dist/types/BlockCommunity.d.ts +1 -0
  10. package/dist/types/BlockInstance.d.ts +6 -0
  11. package/dist/types/BlockInstanceResponse.d.ts +3 -0
  12. package/dist/types/BlockPerson.d.ts +1 -0
  13. package/dist/types/ChangePassword.d.ts +1 -0
  14. package/dist/types/CommunityJoin.d.ts +4 -0
  15. package/dist/types/CommunityJoin.js +2 -0
  16. package/dist/types/CommunityJoinResponse.d.ts +3 -0
  17. package/dist/types/CommunityJoinResponse.js +3 -0
  18. package/dist/types/CreateComment.d.ts +1 -0
  19. package/dist/types/CreateCommentLike.d.ts +1 -0
  20. package/dist/types/CreateCommentReport.d.ts +1 -0
  21. package/dist/types/CreateCommunity.d.ts +1 -0
  22. package/dist/types/CreateCustomEmoji.d.ts +1 -0
  23. package/dist/types/CreatePost.d.ts +1 -0
  24. package/dist/types/CreatePostLike.d.ts +1 -0
  25. package/dist/types/CreatePostReport.d.ts +1 -0
  26. package/dist/types/CreatePrivateMessage.d.ts +1 -0
  27. package/dist/types/CreatePrivateMessageReport.d.ts +1 -0
  28. package/dist/types/CreateSite.d.ts +1 -0
  29. package/dist/types/DeleteAccount.d.ts +1 -0
  30. package/dist/types/DeleteComment.d.ts +1 -0
  31. package/dist/types/DeleteCommunity.d.ts +1 -0
  32. package/dist/types/DeleteCustomEmoji.d.ts +1 -0
  33. package/dist/types/DeletePost.d.ts +1 -0
  34. package/dist/types/DeletePrivateMessage.d.ts +1 -0
  35. package/dist/types/DistinguishComment.d.ts +1 -0
  36. package/dist/types/EditComment.d.ts +1 -0
  37. package/dist/types/EditCommunity.d.ts +1 -0
  38. package/dist/types/EditCustomEmoji.d.ts +1 -0
  39. package/dist/types/EditPost.d.ts +1 -0
  40. package/dist/types/EditPrivateMessage.d.ts +1 -0
  41. package/dist/types/EditSite.d.ts +1 -0
  42. package/dist/types/FeaturePost.d.ts +1 -0
  43. package/dist/types/FollowCommunity.d.ts +1 -0
  44. package/dist/types/GetBannedPersons.d.ts +3 -0
  45. package/dist/types/GetBannedPersons.js +3 -0
  46. package/dist/types/GetCaptcha.d.ts +3 -0
  47. package/dist/types/GetCaptcha.js +3 -0
  48. package/dist/types/GetComment.d.ts +1 -0
  49. package/dist/types/GetComments.d.ts +1 -0
  50. package/dist/types/GetCommunity.d.ts +1 -0
  51. package/dist/types/GetFederatedInstances.d.ts +3 -0
  52. package/dist/types/GetFederatedInstances.js +3 -0
  53. package/dist/types/GetModlog.d.ts +1 -0
  54. package/dist/types/GetPersonDetails.d.ts +1 -0
  55. package/dist/types/GetPersonMentions.d.ts +1 -0
  56. package/dist/types/GetPost.d.ts +1 -0
  57. package/dist/types/GetPosts.d.ts +1 -0
  58. package/dist/types/GetPrivateMessages.d.ts +1 -0
  59. package/dist/types/GetReplies.d.ts +1 -0
  60. package/dist/types/GetReportCount.d.ts +1 -0
  61. package/dist/types/GetSite.d.ts +3 -0
  62. package/dist/types/GetSite.js +3 -0
  63. package/dist/types/GetUnreadCount.d.ts +3 -0
  64. package/dist/types/GetUnreadCount.js +3 -0
  65. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +3 -0
  66. package/dist/types/GetUnreadRegistrationApplicationCount.js +3 -0
  67. package/dist/types/HideCommunity.d.ts +1 -0
  68. package/dist/types/InstanceBlockView.d.ts +8 -0
  69. package/dist/types/InstanceBlockView.js +2 -0
  70. package/dist/types/LeaveAdmin.d.ts +3 -0
  71. package/dist/types/LeaveAdmin.js +3 -0
  72. package/dist/types/ListCommentReports.d.ts +1 -0
  73. package/dist/types/ListCommunities.d.ts +1 -0
  74. package/dist/types/ListPostReports.d.ts +1 -0
  75. package/dist/types/ListPrivateMessageReports.d.ts +1 -0
  76. package/dist/types/ListRegistrationApplications.d.ts +1 -0
  77. package/dist/types/LockPost.d.ts +1 -0
  78. package/dist/types/MarkAllAsRead.d.ts +3 -0
  79. package/dist/types/MarkAllAsRead.js +3 -0
  80. package/dist/types/MarkCommentReplyAsRead.d.ts +1 -0
  81. package/dist/types/MarkPersonMentionAsRead.d.ts +1 -0
  82. package/dist/types/MarkPostAsRead.d.ts +1 -0
  83. package/dist/types/MarkPrivateMessageAsRead.d.ts +1 -0
  84. package/dist/types/ModJoin.d.ts +4 -0
  85. package/dist/types/ModJoin.js +2 -0
  86. package/dist/types/ModJoinResponse.d.ts +3 -0
  87. package/dist/types/ModJoinResponse.js +3 -0
  88. package/dist/types/MyUserInfo.d.ts +2 -0
  89. package/dist/types/PostAggregates.d.ts +2 -0
  90. package/dist/types/PostJoin.d.ts +4 -0
  91. package/dist/types/PostJoin.js +2 -0
  92. package/dist/types/PostJoinResponse.d.ts +3 -0
  93. package/dist/types/PostJoinResponse.js +3 -0
  94. package/dist/types/PostOrCommentId.d.ts +7 -0
  95. package/dist/types/PostOrCommentId.js +2 -0
  96. package/dist/types/PurgeComment.d.ts +1 -0
  97. package/dist/types/PurgeCommunity.d.ts +1 -0
  98. package/dist/types/PurgePerson.d.ts +1 -0
  99. package/dist/types/PurgePost.d.ts +1 -0
  100. package/dist/types/RemoveComment.d.ts +1 -0
  101. package/dist/types/RemoveCommunity.d.ts +1 -0
  102. package/dist/types/RemovePost.d.ts +1 -0
  103. package/dist/types/ResolveCommentReport.d.ts +1 -0
  104. package/dist/types/ResolveObject.d.ts +1 -0
  105. package/dist/types/ResolvePostReport.d.ts +1 -0
  106. package/dist/types/ResolvePrivateMessageReport.d.ts +1 -0
  107. package/dist/types/SaveComment.d.ts +1 -0
  108. package/dist/types/SavePost.d.ts +1 -0
  109. package/dist/types/SaveUserSettings.d.ts +1 -0
  110. package/dist/types/Search.d.ts +1 -0
  111. package/dist/types/TransferCommunity.d.ts +1 -0
  112. package/dist/types/UserJoin.d.ts +3 -0
  113. package/dist/types/UserJoin.js +3 -0
  114. package/dist/types/UserJoinResponse.d.ts +3 -0
  115. package/dist/types/UserJoinResponse.js +3 -0
  116. package/package.json +1 -1
  117. package/dist/types/ImageUpload.d.ts +0 -9
  118. package/dist/types/ImageUploadId.d.ts +0 -1
  119. /package/dist/types/{ImageUpload.js → BlockInstance.js} +0 -0
  120. /package/dist/types/{ImageUploadId.js → BlockInstanceResponse.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -46,12 +46,15 @@ import { EditPrivateMessage } from "./types/EditPrivateMessage";
46
46
  import { EditSite } from "./types/EditSite";
47
47
  import { FeaturePost } from "./types/FeaturePost";
48
48
  import { FollowCommunity } from "./types/FollowCommunity";
49
+ import { GetBannedPersons } from "./types/GetBannedPersons";
50
+ import { GetCaptcha } from "./types/GetCaptcha";
49
51
  import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
50
52
  import { GetComment } from "./types/GetComment";
51
53
  import { GetComments } from "./types/GetComments";
52
54
  import { GetCommentsResponse } from "./types/GetCommentsResponse";
53
55
  import { GetCommunity } from "./types/GetCommunity";
54
56
  import { GetCommunityResponse } from "./types/GetCommunityResponse";
57
+ import { GetFederatedInstances } from "./types/GetFederatedInstances";
55
58
  import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
56
59
  import { GetModlog } from "./types/GetModlog";
57
60
  import { GetModlogResponse } from "./types/GetModlogResponse";
@@ -68,11 +71,15 @@ import { GetReplies } from "./types/GetReplies";
68
71
  import { GetRepliesResponse } from "./types/GetRepliesResponse";
69
72
  import { GetReportCount } from "./types/GetReportCount";
70
73
  import { GetReportCountResponse } from "./types/GetReportCountResponse";
74
+ import { GetSite } from "./types/GetSite";
71
75
  import { GetSiteMetadata } from "./types/GetSiteMetadata";
72
76
  import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
73
77
  import { GetSiteResponse } from "./types/GetSiteResponse";
78
+ import { GetUnreadCount } from "./types/GetUnreadCount";
74
79
  import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
80
+ import { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
75
81
  import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
82
+ import { LeaveAdmin } from "./types/LeaveAdmin";
76
83
  import { ListCommentReports } from "./types/ListCommentReports";
77
84
  import { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
78
85
  import { ListCommunities } from "./types/ListCommunities";
@@ -86,6 +93,7 @@ import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationAp
86
93
  import { LockPost } from "./types/LockPost";
87
94
  import { Login } from "./types/Login";
88
95
  import { LoginResponse } from "./types/LoginResponse";
96
+ import { MarkAllAsRead } from "./types/MarkAllAsRead";
89
97
  import { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
90
98
  import { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
91
99
  import { MarkPostAsRead } from "./types/MarkPostAsRead";
@@ -122,6 +130,8 @@ import { SiteResponse } from "./types/SiteResponse";
122
130
  import { TransferCommunity } from "./types/TransferCommunity";
123
131
  import { VerifyEmail } from "./types/VerifyEmail";
124
132
  import { UploadImage, UploadImageResponse } from "./types/others";
133
+ import { BlockInstance } from "./types/BlockInstance";
134
+ import { BlockInstanceResponse } from "./types/BlockInstanceResponse";
125
135
  /**
126
136
  * Helps build lemmy HTTP requests.
127
137
  */
@@ -143,7 +153,7 @@ export declare class LemmyHttp {
143
153
  *
144
154
  * `HTTP.GET /site`
145
155
  */
146
- getSite(): Promise<GetSiteResponse>;
156
+ getSite(form?: GetSite): Promise<GetSiteResponse>;
147
157
  /**
148
158
  * Create your site.
149
159
  *
@@ -161,7 +171,7 @@ export declare class LemmyHttp {
161
171
  *
162
172
  * `HTTP.POST /user/leave_admin`
163
173
  */
164
- leaveAdmin(): Promise<GetSiteResponse>;
174
+ leaveAdmin(form: LeaveAdmin): Promise<GetSiteResponse>;
165
175
  /**
166
176
  * Get the modlog.
167
177
  *
@@ -509,7 +519,7 @@ export declare class LemmyHttp {
509
519
  *
510
520
  * `HTTP.GET /user/banned`
511
521
  */
512
- getBannedPersons(): Promise<BannedPersonsResponse>;
522
+ getBannedPersons(form: GetBannedPersons): Promise<BannedPersonsResponse>;
513
523
  /**
514
524
  * Block a person.
515
525
  *
@@ -521,7 +531,7 @@ export declare class LemmyHttp {
521
531
  *
522
532
  * `HTTP.GET /user/get_captcha`
523
533
  */
524
- getCaptcha(): Promise<GetCaptchaResponse>;
534
+ getCaptcha(form?: GetCaptcha): Promise<GetCaptchaResponse>;
525
535
  /**
526
536
  * Delete your account.
527
537
  *
@@ -545,7 +555,7 @@ export declare class LemmyHttp {
545
555
  *
546
556
  * `HTTP.POST /user/mark_all_as_read`
547
557
  */
548
- markAllAsRead(): Promise<GetRepliesResponse>;
558
+ markAllAsRead(form: MarkAllAsRead): Promise<GetRepliesResponse>;
549
559
  /**
550
560
  * Save your user settings.
551
561
  *
@@ -569,7 +579,7 @@ export declare class LemmyHttp {
569
579
  *
570
580
  * `HTTP.GET /user/unread_count`
571
581
  */
572
- getUnreadCount(): Promise<GetUnreadCountResponse>;
582
+ getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse>;
573
583
  /**
574
584
  * Verify your email
575
585
  *
@@ -587,7 +597,7 @@ export declare class LemmyHttp {
587
597
  *
588
598
  * `HTTP.GET /admin/registration_application/count`
589
599
  */
590
- getUnreadRegistrationApplicationCount(): Promise<GetUnreadRegistrationApplicationCountResponse>;
600
+ getUnreadRegistrationApplicationCount(form: GetUnreadRegistrationApplicationCount): Promise<GetUnreadRegistrationApplicationCountResponse>;
591
601
  /**
592
602
  * List the registration applications.
593
603
  *
@@ -647,9 +657,21 @@ export declare class LemmyHttp {
647
657
  *
648
658
  * `HTTP.Get /federated_instances`
649
659
  */
650
- getFederatedInstances(): Promise<GetFederatedInstancesResponse>;
660
+ getFederatedInstances(form?: GetFederatedInstances): Promise<GetFederatedInstancesResponse>;
661
+ /**
662
+ * Block an instance
663
+ *
664
+ * `HTTP.POST /site/block`
665
+ */
666
+ blockInstance(form: BlockInstance): Promise<BlockInstanceResponse>;
651
667
  /**
652
668
  * Upload an image to the server.
653
669
  */
654
670
  uploadImage({ image, auth, }: UploadImage): Promise<UploadImageResponse>;
671
+ /**
672
+ * Set the headers (can be used to set the auth header)
673
+ */
674
+ setHeaders(headers: {
675
+ [key: string]: string;
676
+ }): void;
655
677
  }
package/dist/http.js CHANGED
@@ -63,8 +63,8 @@ class LemmyHttp {
63
63
  *
64
64
  * `HTTP.GET /site`
65
65
  */
66
- getSite() {
67
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {});
66
+ getSite(form = {}) {
67
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", form);
68
68
  }
69
69
  /**
70
70
  * Create your site.
@@ -87,8 +87,8 @@ class LemmyHttp {
87
87
  *
88
88
  * `HTTP.POST /user/leave_admin`
89
89
  */
90
- leaveAdmin() {
91
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", {});
90
+ leaveAdmin(form) {
91
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", form);
92
92
  }
93
93
  /**
94
94
  * Get the modlog.
@@ -551,8 +551,8 @@ class LemmyHttp {
551
551
  *
552
552
  * `HTTP.GET /user/banned`
553
553
  */
554
- getBannedPersons() {
555
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", {});
554
+ getBannedPersons(form) {
555
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", form);
556
556
  }
557
557
  /**
558
558
  * Block a person.
@@ -567,8 +567,8 @@ class LemmyHttp {
567
567
  *
568
568
  * `HTTP.GET /user/get_captcha`
569
569
  */
570
- getCaptcha() {
571
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", {});
570
+ getCaptcha(form = {}) {
571
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", form);
572
572
  }
573
573
  /**
574
574
  * Delete your account.
@@ -599,8 +599,8 @@ class LemmyHttp {
599
599
  *
600
600
  * `HTTP.POST /user/mark_all_as_read`
601
601
  */
602
- markAllAsRead() {
603
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", {});
602
+ markAllAsRead(form) {
603
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", form);
604
604
  }
605
605
  /**
606
606
  * Save your user settings.
@@ -631,8 +631,8 @@ class LemmyHttp {
631
631
  *
632
632
  * `HTTP.GET /user/unread_count`
633
633
  */
634
- getUnreadCount() {
635
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", {});
634
+ getUnreadCount(form) {
635
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", form);
636
636
  }
637
637
  /**
638
638
  * Verify your email
@@ -655,8 +655,8 @@ class LemmyHttp {
655
655
  *
656
656
  * `HTTP.GET /admin/registration_application/count`
657
657
  */
658
- getUnreadRegistrationApplicationCount() {
659
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {});
658
+ getUnreadRegistrationApplicationCount(form) {
659
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", form);
660
660
  }
661
661
  /**
662
662
  * List the registration applications.
@@ -735,8 +735,16 @@ class LemmyHttp {
735
735
  *
736
736
  * `HTTP.Get /federated_instances`
737
737
  */
738
- getFederatedInstances() {
739
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {});
738
+ getFederatedInstances(form = {}) {
739
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", form);
740
+ }
741
+ /**
742
+ * Block an instance
743
+ *
744
+ * `HTTP.POST /site/block`
745
+ */
746
+ blockInstance(form) {
747
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form);
740
748
  }
741
749
  /**
742
750
  * Upload an image to the server.
@@ -771,6 +779,12 @@ class LemmyHttp {
771
779
  delete_url });
772
780
  });
773
781
  }
782
+ /**
783
+ * Set the headers (can be used to set the auth header)
784
+ */
785
+ setHeaders(headers) {
786
+ __classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
787
+ }
774
788
  }
775
789
  exports.LemmyHttp = LemmyHttp;
776
790
  _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHttp_pictrsUrl = new WeakMap(), _LemmyHttp_fetchFunction = new WeakMap(), _LemmyHttp_instances = new WeakSet(), _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
package/dist/index.d.ts CHANGED
@@ -19,6 +19,8 @@ export { BanPersonResponse } from "./types/BanPersonResponse";
19
19
  export { BannedPersonsResponse } from "./types/BannedPersonsResponse";
20
20
  export { BlockCommunity } from "./types/BlockCommunity";
21
21
  export { BlockCommunityResponse } from "./types/BlockCommunityResponse";
22
+ export { BlockInstance } from "./types/BlockInstance";
23
+ export { BlockInstanceResponse } from "./types/BlockInstanceResponse";
22
24
  export { BlockPerson } from "./types/BlockPerson";
23
25
  export { BlockPersonResponse } from "./types/BlockPersonResponse";
24
26
  export { CaptchaResponse } from "./types/CaptchaResponse";
@@ -43,6 +45,8 @@ export { CommunityBlockId } from "./types/CommunityBlockId";
43
45
  export { CommunityBlockView } from "./types/CommunityBlockView";
44
46
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
45
47
  export { CommunityId } from "./types/CommunityId";
48
+ export { CommunityJoin } from "./types/CommunityJoin";
49
+ export { CommunityJoinResponse } from "./types/CommunityJoinResponse";
46
50
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
47
51
  export { CommunityResponse } from "./types/CommunityResponse";
48
52
  export { CommunityView } from "./types/CommunityView";
@@ -80,12 +84,15 @@ export { EditSite } from "./types/EditSite";
80
84
  export { FeaturePost } from "./types/FeaturePost";
81
85
  export { FederatedInstances } from "./types/FederatedInstances";
82
86
  export { FollowCommunity } from "./types/FollowCommunity";
87
+ export { GetBannedPersons } from "./types/GetBannedPersons";
88
+ export { GetCaptcha } from "./types/GetCaptcha";
83
89
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
84
90
  export { GetComment } from "./types/GetComment";
85
91
  export { GetComments } from "./types/GetComments";
86
92
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
87
93
  export { GetCommunity } from "./types/GetCommunity";
88
94
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
95
+ export { GetFederatedInstances } from "./types/GetFederatedInstances";
89
96
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
90
97
  export { GetModlog } from "./types/GetModlog";
91
98
  export { GetModlogResponse } from "./types/GetModlogResponse";
@@ -102,18 +109,22 @@ export { GetReplies } from "./types/GetReplies";
102
109
  export { GetRepliesResponse } from "./types/GetRepliesResponse";
103
110
  export { GetReportCount } from "./types/GetReportCount";
104
111
  export { GetReportCountResponse } from "./types/GetReportCountResponse";
112
+ export { GetSite } from "./types/GetSite";
105
113
  export { GetSiteMetadata } from "./types/GetSiteMetadata";
106
114
  export { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
107
115
  export { GetSiteResponse } from "./types/GetSiteResponse";
116
+ export { GetUnreadCount } from "./types/GetUnreadCount";
108
117
  export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
118
+ export { GetUnreadRegistrationApplicationCount } from "./types/GetUnreadRegistrationApplicationCount";
109
119
  export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
110
120
  export { HideCommunity } from "./types/HideCommunity";
111
- export { ImageUpload } from "./types/ImageUpload";
112
- export { ImageUploadId } from "./types/ImageUploadId";
113
121
  export { Instance } from "./types/Instance";
122
+ export { InstanceBlockView } from "./types/InstanceBlockView";
114
123
  export { InstanceId } from "./types/InstanceId";
115
124
  export { Language } from "./types/Language";
116
125
  export { LanguageId } from "./types/LanguageId";
126
+ export { LeaveAdmin } from "./types/LeaveAdmin";
127
+ export { LemmyErrorType } from "./types/LemmyErrorType";
117
128
  export { ListCommentReports } from "./types/ListCommentReports";
118
129
  export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
119
130
  export { ListCommunities } from "./types/ListCommunities";
@@ -134,6 +145,7 @@ export { LocalUserView } from "./types/LocalUserView";
134
145
  export { LockPost } from "./types/LockPost";
135
146
  export { Login } from "./types/Login";
136
147
  export { LoginResponse } from "./types/LoginResponse";
148
+ export { MarkAllAsRead } from "./types/MarkAllAsRead";
137
149
  export { MarkCommentReplyAsRead } from "./types/MarkCommentReplyAsRead";
138
150
  export { MarkPersonMentionAsRead } from "./types/MarkPersonMentionAsRead";
139
151
  export { MarkPostAsRead } from "./types/MarkPostAsRead";
@@ -150,6 +162,8 @@ export { ModFeaturePost } from "./types/ModFeaturePost";
150
162
  export { ModFeaturePostView } from "./types/ModFeaturePostView";
151
163
  export { ModHideCommunity } from "./types/ModHideCommunity";
152
164
  export { ModHideCommunityView } from "./types/ModHideCommunityView";
165
+ export { ModJoin } from "./types/ModJoin";
166
+ export { ModJoinResponse } from "./types/ModJoinResponse";
153
167
  export { ModLockPost } from "./types/ModLockPost";
154
168
  export { ModLockPostView } from "./types/ModLockPostView";
155
169
  export { ModRemoveComment } from "./types/ModRemoveComment";
@@ -181,7 +195,10 @@ export { Post } from "./types/Post";
181
195
  export { PostAggregates } from "./types/PostAggregates";
182
196
  export { PostFeatureType } from "./types/PostFeatureType";
183
197
  export { PostId } from "./types/PostId";
198
+ export { PostJoin } from "./types/PostJoin";
199
+ export { PostJoinResponse } from "./types/PostJoinResponse";
184
200
  export { PostListingMode } from "./types/PostListingMode";
201
+ export { PostOrCommentId } from "./types/PostOrCommentId";
185
202
  export { PostReport } from "./types/PostReport";
186
203
  export { PostReportId } from "./types/PostReportId";
187
204
  export { PostReportResponse } from "./types/PostReportResponse";
@@ -231,5 +248,8 @@ export { SortType } from "./types/SortType";
231
248
  export { SubscribedType } from "./types/SubscribedType";
232
249
  export { Tagline } from "./types/Tagline";
233
250
  export { TransferCommunity } from "./types/TransferCommunity";
251
+ export { UserJoin } from "./types/UserJoin";
252
+ export { UserJoinResponse } from "./types/UserJoinResponse";
234
253
  export { VerifyEmail } from "./types/VerifyEmail";
235
254
  export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
255
+ export { UploadImage, UploadImageResponse, ImageFile } from "./types/others";
@@ -2,4 +2,5 @@ import type { PersonId } from "./PersonId";
2
2
  export interface AddAdmin {
3
3
  person_id: PersonId;
4
4
  added: boolean;
5
+ auth: string;
5
6
  }
@@ -4,4 +4,5 @@ export interface AddModToCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
6
  added: boolean;
7
+ auth: string;
7
8
  }
@@ -2,4 +2,5 @@ export interface ApproveRegistrationApplication {
2
2
  id: number;
3
3
  approve: boolean;
4
4
  deny_reason?: string;
5
+ auth: string;
5
6
  }
@@ -7,4 +7,5 @@ export interface BanFromCommunity {
7
7
  remove_data?: boolean;
8
8
  reason?: string;
9
9
  expires?: number;
10
+ auth: string;
10
11
  }
@@ -5,4 +5,5 @@ export interface BanPerson {
5
5
  remove_data?: boolean;
6
6
  reason?: string;
7
7
  expires?: number;
8
+ auth: string;
8
9
  }
@@ -2,4 +2,5 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface BlockCommunity {
3
3
  community_id: CommunityId;
4
4
  block: boolean;
5
+ auth: string;
5
6
  }
@@ -0,0 +1,6 @@
1
+ import type { InstanceId } from "./InstanceId";
2
+ export interface BlockInstance {
3
+ instance_id: InstanceId;
4
+ block: boolean;
5
+ auth: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface BlockInstanceResponse {
2
+ blocked: boolean;
3
+ }
@@ -2,4 +2,5 @@ import type { PersonId } from "./PersonId";
2
2
  export interface BlockPerson {
3
3
  person_id: PersonId;
4
4
  block: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ export interface ChangePassword {
2
2
  new_password: string;
3
3
  new_password_verify: string;
4
4
  old_password: string;
5
+ auth: string;
5
6
  }
@@ -0,0 +1,4 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ export interface CommunityJoin {
3
+ community_id: CommunityId;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface CommunityJoinResponse {
2
+ joined: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,4 +6,5 @@ export interface CreateComment {
6
6
  post_id: PostId;
7
7
  parent_id?: CommentId;
8
8
  language_id?: LanguageId;
9
+ auth: string;
9
10
  }
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CreateCommentLike {
3
3
  comment_id: CommentId;
4
4
  score: number;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface CreateCommentReport {
3
3
  comment_id: CommentId;
4
4
  reason: string;
5
+ auth: string;
5
6
  }
@@ -8,4 +8,5 @@ export interface CreateCommunity {
8
8
  nsfw?: boolean;
9
9
  posting_restricted_to_mods?: boolean;
10
10
  discussion_languages?: Array<LanguageId>;
11
+ auth: string;
11
12
  }
@@ -4,4 +4,5 @@ export interface CreateCustomEmoji {
4
4
  image_url: string;
5
5
  alt_text: string;
6
6
  keywords: Array<string>;
7
+ auth: string;
7
8
  }
@@ -8,4 +8,5 @@ export interface CreatePost {
8
8
  honeypot?: string;
9
9
  nsfw?: boolean;
10
10
  language_id?: LanguageId;
11
+ auth: string;
11
12
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface CreatePostLike {
3
3
  post_id: PostId;
4
4
  score: number;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface CreatePostReport {
3
3
  post_id: PostId;
4
4
  reason: string;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PersonId } from "./PersonId";
2
2
  export interface CreatePrivateMessage {
3
3
  content: string;
4
4
  recipient_id: PersonId;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface CreatePrivateMessageReport {
3
3
  private_message_id: PrivateMessageId;
4
4
  reason: string;
5
+ auth: string;
5
6
  }
@@ -41,4 +41,5 @@ export interface CreateSite {
41
41
  blocked_instances?: Array<string>;
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
+ auth: string;
44
45
  }
@@ -1,4 +1,5 @@
1
1
  export interface DeleteAccount {
2
2
  password: string;
3
3
  delete_content: boolean;
4
+ auth: string;
4
5
  }
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface DeleteComment {
3
3
  comment_id: CommentId;
4
4
  deleted: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface DeleteCommunity {
3
3
  community_id: CommunityId;
4
4
  deleted: boolean;
5
+ auth: string;
5
6
  }
@@ -1,4 +1,5 @@
1
1
  import type { CustomEmojiId } from "./CustomEmojiId";
2
2
  export interface DeleteCustomEmoji {
3
3
  id: CustomEmojiId;
4
+ auth: string;
4
5
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface DeletePost {
3
3
  post_id: PostId;
4
4
  deleted: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface DeletePrivateMessage {
3
3
  private_message_id: PrivateMessageId;
4
4
  deleted: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface DistinguishComment {
3
3
  comment_id: CommentId;
4
4
  distinguished: boolean;
5
+ auth: string;
5
6
  }
@@ -4,4 +4,5 @@ export interface EditComment {
4
4
  comment_id: CommentId;
5
5
  content?: string;
6
6
  language_id?: LanguageId;
7
+ auth: string;
7
8
  }
@@ -9,4 +9,5 @@ export interface EditCommunity {
9
9
  nsfw?: boolean;
10
10
  posting_restricted_to_mods?: boolean;
11
11
  discussion_languages?: Array<LanguageId>;
12
+ auth: string;
12
13
  }
@@ -5,4 +5,5 @@ export interface EditCustomEmoji {
5
5
  image_url: string;
6
6
  alt_text: string;
7
7
  keywords: Array<string>;
8
+ auth: string;
8
9
  }
@@ -7,4 +7,5 @@ export interface EditPost {
7
7
  body?: string;
8
8
  nsfw?: boolean;
9
9
  language_id?: LanguageId;
10
+ auth: string;
10
11
  }
@@ -2,4 +2,5 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface EditPrivateMessage {
3
3
  private_message_id: PrivateMessageId;
4
4
  content: string;
5
+ auth: string;
5
6
  }
@@ -42,4 +42,5 @@ export interface EditSite {
42
42
  taglines?: Array<string>;
43
43
  registration_mode?: RegistrationMode;
44
44
  reports_email_admins?: boolean;
45
+ auth: string;
45
46
  }
@@ -4,4 +4,5 @@ export interface FeaturePost {
4
4
  post_id: PostId;
5
5
  featured: boolean;
6
6
  feature_type: PostFeatureType;
7
+ auth: string;
7
8
  }
@@ -2,4 +2,5 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface FollowCommunity {
3
3
  community_id: CommunityId;
4
4
  follow: boolean;
5
+ auth: string;
5
6
  }
@@ -0,0 +1,3 @@
1
+ export interface GetBannedPersons {
2
+ auth: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface GetCaptcha {
2
+ auth?: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import type { CommentId } from "./CommentId";
2
2
  export interface GetComment {
3
3
  id: CommentId;
4
+ auth?: string;
4
5
  }