lemmy-js-client 0.20.0-alpha.6 → 0.20.0-private-community.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/dist/http.d.ts +82 -0
  2. package/dist/http.js +90 -0
  3. package/dist/index.d.ts +28 -5
  4. package/dist/types/ApproveCommunityPendingFollows.d.ts +6 -0
  5. package/dist/types/AuthenticateWithOauth.d.ts +8 -0
  6. package/dist/types/BanFromCommunity.d.ts +1 -1
  7. package/dist/types/BanPerson.d.ts +1 -1
  8. package/dist/types/CommunityFollowerState.d.ts +1 -0
  9. package/dist/types/CommunityFollowerState.js +3 -0
  10. package/dist/types/CommunityVisibility.d.ts +1 -1
  11. package/dist/types/CreateOAuthProvider.d.ts +14 -0
  12. package/dist/types/CreateOAuthProvider.js +3 -0
  13. package/dist/types/CreateSite.d.ts +11 -5
  14. package/dist/types/CreateTagline.d.ts +3 -0
  15. package/dist/types/CreateTagline.js +3 -0
  16. package/dist/types/CustomEmoji.d.ts +0 -2
  17. package/dist/types/DeleteOAuthProvider.d.ts +4 -0
  18. package/dist/types/DeleteTagline.d.ts +4 -0
  19. package/dist/types/EditOAuthProvider.d.ts +14 -0
  20. package/dist/types/EditOAuthProvider.js +2 -0
  21. package/dist/types/EditPost.d.ts +1 -0
  22. package/dist/types/EditSite.d.ts +11 -5
  23. package/dist/types/FederationMode.d.ts +1 -0
  24. package/dist/types/FederationMode.js +3 -0
  25. package/dist/types/GetCommunityPendingFollowsCount.d.ts +4 -0
  26. package/dist/types/GetCommunityPendingFollowsCount.js +2 -0
  27. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +3 -0
  28. package/dist/types/GetCommunityPendingFollowsCountResponse.js +3 -0
  29. package/dist/types/GetPersonDetails.d.ts +2 -2
  30. package/dist/types/GetPosts.d.ts +2 -2
  31. package/dist/types/GetRandomCommunity.d.ts +4 -0
  32. package/dist/types/GetRandomCommunity.js +2 -0
  33. package/dist/types/GetSiteResponse.d.ts +7 -3
  34. package/dist/types/LemmyErrorType.d.ts +19 -31
  35. package/dist/types/ListCommunities.d.ts +2 -2
  36. package/dist/types/ListCommunityPendingFollows.d.ts +7 -0
  37. package/dist/types/ListCommunityPendingFollows.js +2 -0
  38. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +4 -0
  39. package/dist/types/ListCommunityPendingFollowsResponse.js +2 -0
  40. package/dist/types/ListCustomEmojis.d.ts +6 -0
  41. package/dist/types/ListCustomEmojis.js +3 -0
  42. package/dist/types/ListCustomEmojisResponse.d.ts +4 -0
  43. package/dist/types/ListCustomEmojisResponse.js +2 -0
  44. package/dist/types/ListLoginsResponse.d.ts +4 -0
  45. package/dist/types/ListLoginsResponse.js +2 -0
  46. package/dist/types/ListTaglines.d.ts +4 -0
  47. package/dist/types/ListTaglines.js +3 -0
  48. package/dist/types/ListTaglinesResponse.d.ts +4 -0
  49. package/dist/types/ListTaglinesResponse.js +2 -0
  50. package/dist/types/LocalSite.d.ts +10 -4
  51. package/dist/types/LocalUser.d.ts +4 -4
  52. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -2
  53. package/dist/types/LocalUserVoteDisplayMode.js +1 -0
  54. package/dist/types/MyUserInfo.d.ts +6 -6
  55. package/dist/types/OAuthAccount.d.ts +9 -0
  56. package/dist/types/OAuthAccount.js +2 -0
  57. package/dist/types/OAuthProvider.d.ts +17 -0
  58. package/dist/types/OAuthProvider.js +2 -0
  59. package/dist/types/OAuthProviderId.d.ts +1 -0
  60. package/dist/types/OAuthProviderId.js +3 -0
  61. package/dist/types/Post.d.ts +1 -1
  62. package/dist/types/PostSortType.d.ts +1 -0
  63. package/dist/types/PostSortType.js +3 -0
  64. package/dist/types/PublicOAuthProvider.d.ts +2 -0
  65. package/dist/types/PublicOAuthProvider.js +2 -0
  66. package/dist/types/SaveUserSettings.d.ts +5 -4
  67. package/dist/types/Search.d.ts +7 -2
  68. package/dist/types/SearchType.d.ts +1 -1
  69. package/dist/types/SiteResponse.d.ts +1 -2
  70. package/dist/types/Tagline.d.ts +0 -2
  71. package/dist/types/Tagline.js +1 -0
  72. package/dist/types/TaglineId.d.ts +1 -0
  73. package/dist/types/TaglineId.js +3 -0
  74. package/dist/types/TaglineResponse.d.ts +4 -0
  75. package/dist/types/TaglineResponse.js +2 -0
  76. package/dist/types/UpdateTagline.d.ts +5 -0
  77. package/dist/types/UpdateTagline.js +2 -0
  78. package/package.json +7 -7
  79. package/dist/types/CommunityBlockView.d.ts +0 -6
  80. package/dist/types/InstanceBlockView.d.ts +0 -8
  81. package/dist/types/PersonBlockView.d.ts +0 -5
  82. package/dist/types/SortType.d.ts +0 -1
  83. /package/dist/types/{CommunityBlockView.js → ApproveCommunityPendingFollows.js} +0 -0
  84. /package/dist/types/{SortType.js → AuthenticateWithOauth.js} +0 -0
  85. /package/dist/types/{InstanceBlockView.js → DeleteOAuthProvider.js} +0 -0
  86. /package/dist/types/{PersonBlockView.js → DeleteTagline.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -22,6 +22,7 @@ import { CreateCommentLike } from "./types/CreateCommentLike";
22
22
  import { CreateCommentReport } from "./types/CreateCommentReport";
23
23
  import { CreateCommunity } from "./types/CreateCommunity";
24
24
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
25
+ import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
25
26
  import { CreatePost } from "./types/CreatePost";
26
27
  import { CreatePostLike } from "./types/CreatePostLike";
27
28
  import { CreatePostReport } from "./types/CreatePostReport";
@@ -33,15 +34,18 @@ import { DeleteAccount } from "./types/DeleteAccount";
33
34
  import { DeleteComment } from "./types/DeleteComment";
34
35
  import { DeleteCommunity } from "./types/DeleteCommunity";
35
36
  import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
37
+ import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
36
38
  import { DeletePost } from "./types/DeletePost";
37
39
  import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
38
40
  import { DistinguishComment } from "./types/DistinguishComment";
39
41
  import { EditComment } from "./types/EditComment";
40
42
  import { EditCommunity } from "./types/EditCommunity";
41
43
  import { EditCustomEmoji } from "./types/EditCustomEmoji";
44
+ import { EditOAuthProvider } from "./types/EditOAuthProvider";
42
45
  import { EditPost } from "./types/EditPost";
43
46
  import { EditPrivateMessage } from "./types/EditPrivateMessage";
44
47
  import { EditSite } from "./types/EditSite";
48
+ import { OAuthProvider } from "./types/OAuthProvider";
45
49
  import { FeaturePost } from "./types/FeaturePost";
46
50
  import { FollowCommunity } from "./types/FollowCommunity";
47
51
  import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
@@ -134,7 +138,22 @@ import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
134
138
  import { HidePost } from "./types/HidePost";
135
139
  import { ListMedia } from "./types/ListMedia";
136
140
  import { ListMediaResponse } from "./types/ListMediaResponse";
141
+ import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
137
142
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
143
+ import { CreateTagline } from "./types/CreateTagline";
144
+ import { TaglineResponse } from "./types/TaglineResponse";
145
+ import { UpdateTagline } from "./types/UpdateTagline";
146
+ import { DeleteTagline } from "./types/DeleteTagline";
147
+ import { ListTaglines } from "./types/ListTaglines";
148
+ import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
149
+ import { ListCustomEmojis } from "./types/ListCustomEmojis";
150
+ import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
151
+ import { GetRandomCommunity } from "./types/GetRandomCommunity";
152
+ import { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows";
153
+ import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
154
+ import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
155
+ import { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
156
+ import { CommunityId } from "./types/CommunityId";
138
157
  /**
139
158
  * Helps build lemmy HTTP requests.
140
159
  */
@@ -278,6 +297,9 @@ export declare class LemmyHttp {
278
297
  * `HTTP.POST /community/follow`
279
298
  */
280
299
  followCommunity(form: FollowCommunity): Promise<CommunityResponse>;
300
+ getCommunityPendingFollowsCount(community_id: CommunityId): Promise<GetCommunityPendingFollowsCountResponse>;
301
+ listCommunityPendingFollows(form: ListCommunityPendingFollows): Promise<ListCommunityPendingFollowsResponse>;
302
+ approveCommunityPendingFollow(form: ApproveCommunityPendingFollows): Promise<SuccessResponse>;
281
303
  /**
282
304
  * Block a community.
283
305
  *
@@ -320,6 +342,12 @@ export declare class LemmyHttp {
320
342
  * `HTTP.POST /community/mod`
321
343
  */
322
344
  addModToCommunity(form: AddModToCommunity): Promise<AddModToCommunityResponse>;
345
+ /**
346
+ * Get a random community.
347
+ *
348
+ * `HTTP.GET /community/random`
349
+ */
350
+ getRandomCommunity(form: GetRandomCommunity): Promise<CommunityResponse>;
323
351
  /**
324
352
  * Create a post.
325
353
  *
@@ -746,6 +774,60 @@ export declare class LemmyHttp {
746
774
  * `HTTP.Post /custom_emoji/delete`
747
775
  */
748
776
  deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
777
+ /**
778
+ * List custom emojis
779
+ *
780
+ * `HTTP.GET /custom_emoji/list`
781
+ */
782
+ listCustomEmojis(form: ListCustomEmojis): Promise<ListCustomEmojisResponse>;
783
+ /**
784
+ * Create a new tagline
785
+ *
786
+ * `HTTP.POST /admin/tagline`
787
+ */
788
+ createTagline(form: CreateTagline): Promise<TaglineResponse>;
789
+ /**
790
+ * Edit an existing tagline
791
+ *
792
+ * `HTTP.PUT /admin/tagline`
793
+ */
794
+ editTagline(form: UpdateTagline): Promise<TaglineResponse>;
795
+ /**
796
+ * Delete a tagline
797
+ *
798
+ * `HTTP.Post /admin/tagline/delete`
799
+ */
800
+ deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
801
+ /**
802
+ * List taglines
803
+ *
804
+ * `HTTP.GET /admin/tagline/list`
805
+ */
806
+ listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
807
+ /**
808
+ * Create a new oauth provider method
809
+ *
810
+ * `HTTP.POST /oauth_provider`
811
+ */
812
+ createOAuthProvider(form: CreateOAuthProvider): Promise<OAuthProvider>;
813
+ /**
814
+ * Edit an existing oauth provider method
815
+ *
816
+ * `HTTP.PUT /oauth_provider`
817
+ */
818
+ editOAuthProvider(form: EditOAuthProvider): Promise<OAuthProvider>;
819
+ /**
820
+ * Delete an oauth provider method
821
+ *
822
+ * `HTTP.Post /oauth_provider/delete`
823
+ */
824
+ deleteOAuthProvider(form: DeleteOAuthProvider): Promise<SuccessResponse>;
825
+ /**
826
+ * Authenticate with OAuth
827
+ *
828
+ * `HTTP.Post /oauth/authenticate`
829
+ */
830
+ authenticateWithOAuth(form: AuthenticateWithOauth): Promise<LoginResponse>;
749
831
  /**
750
832
  * Fetch federated instances.
751
833
  *
package/dist/http.js CHANGED
@@ -220,6 +220,16 @@ class LemmyHttp {
220
220
  followCommunity(form) {
221
221
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form);
222
222
  }
223
+ getCommunityPendingFollowsCount(community_id) {
224
+ const form = { community_id };
225
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form);
226
+ }
227
+ listCommunityPendingFollows(form) {
228
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form);
229
+ }
230
+ approveCommunityPendingFollow(form) {
231
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form);
232
+ }
223
233
  /**
224
234
  * Block a community.
225
235
  *
@@ -276,6 +286,14 @@ class LemmyHttp {
276
286
  addModToCommunity(form) {
277
287
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form);
278
288
  }
289
+ /**
290
+ * Get a random community.
291
+ *
292
+ * `HTTP.GET /community/random`
293
+ */
294
+ getRandomCommunity(form) {
295
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form);
296
+ }
279
297
  /**
280
298
  * Create a post.
281
299
  *
@@ -844,6 +862,78 @@ class LemmyHttp {
844
862
  deleteCustomEmoji(form) {
845
863
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
846
864
  }
865
+ /**
866
+ * List custom emojis
867
+ *
868
+ * `HTTP.GET /custom_emoji/list`
869
+ */
870
+ listCustomEmojis(form) {
871
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form);
872
+ }
873
+ /**
874
+ * Create a new tagline
875
+ *
876
+ * `HTTP.POST /admin/tagline`
877
+ */
878
+ createTagline(form) {
879
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form);
880
+ }
881
+ /**
882
+ * Edit an existing tagline
883
+ *
884
+ * `HTTP.PUT /admin/tagline`
885
+ */
886
+ editTagline(form) {
887
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form);
888
+ }
889
+ /**
890
+ * Delete a tagline
891
+ *
892
+ * `HTTP.Post /admin/tagline/delete`
893
+ */
894
+ deleteTagline(form) {
895
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form);
896
+ }
897
+ /**
898
+ * List taglines
899
+ *
900
+ * `HTTP.GET /admin/tagline/list`
901
+ */
902
+ listTaglines(form) {
903
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form);
904
+ }
905
+ /**
906
+ * Create a new oauth provider method
907
+ *
908
+ * `HTTP.POST /oauth_provider`
909
+ */
910
+ createOAuthProvider(form) {
911
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form);
912
+ }
913
+ /**
914
+ * Edit an existing oauth provider method
915
+ *
916
+ * `HTTP.PUT /oauth_provider`
917
+ */
918
+ editOAuthProvider(form) {
919
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form);
920
+ }
921
+ /**
922
+ * Delete an oauth provider method
923
+ *
924
+ * `HTTP.Post /oauth_provider/delete`
925
+ */
926
+ deleteOAuthProvider(form) {
927
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form);
928
+ }
929
+ /**
930
+ * Authenticate with OAuth
931
+ *
932
+ * `HTTP.Post /oauth/authenticate`
933
+ */
934
+ authenticateWithOAuth(form) {
935
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form);
936
+ }
847
937
  /**
848
938
  * Fetch federated instances.
849
939
  *
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./http";
2
+ export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
2
3
  export { ActivityId } from "./types/ActivityId";
3
4
  export { AddAdmin } from "./types/AddAdmin";
4
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
@@ -12,7 +13,9 @@ export { AdminPurgePerson } from "./types/AdminPurgePerson";
12
13
  export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
13
14
  export { AdminPurgePost } from "./types/AdminPurgePost";
14
15
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
16
+ export { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows";
15
17
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
18
+ export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
16
19
  export { BanFromCommunity } from "./types/BanFromCommunity";
17
20
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
18
21
  export { BanPerson } from "./types/BanPerson";
@@ -42,7 +45,7 @@ export { CommentSortType } from "./types/CommentSortType";
42
45
  export { CommentView } from "./types/CommentView";
43
46
  export { Community } from "./types/Community";
44
47
  export { CommunityAggregates } from "./types/CommunityAggregates";
45
- export { CommunityBlockView } from "./types/CommunityBlockView";
48
+ export { CommunityFollowerState } from "./types/CommunityFollowerState";
46
49
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
47
50
  export { CommunityId } from "./types/CommunityId";
48
51
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
@@ -54,12 +57,14 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
54
57
  export { CreateCommentReport } from "./types/CreateCommentReport";
55
58
  export { CreateCommunity } from "./types/CreateCommunity";
56
59
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
60
+ export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
57
61
  export { CreatePost } from "./types/CreatePost";
58
62
  export { CreatePostLike } from "./types/CreatePostLike";
59
63
  export { CreatePostReport } from "./types/CreatePostReport";
60
64
  export { CreatePrivateMessage } from "./types/CreatePrivateMessage";
61
65
  export { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport";
62
66
  export { CreateSite } from "./types/CreateSite";
67
+ export { CreateTagline } from "./types/CreateTagline";
63
68
  export { CustomEmoji } from "./types/CustomEmoji";
64
69
  export { CustomEmojiId } from "./types/CustomEmojiId";
65
70
  export { CustomEmojiKeyword } from "./types/CustomEmojiKeyword";
@@ -69,17 +74,21 @@ export { DeleteAccount } from "./types/DeleteAccount";
69
74
  export { DeleteComment } from "./types/DeleteComment";
70
75
  export { DeleteCommunity } from "./types/DeleteCommunity";
71
76
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
77
+ export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
72
78
  export { DeletePost } from "./types/DeletePost";
73
79
  export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
80
+ export { DeleteTagline } from "./types/DeleteTagline";
74
81
  export { DistinguishComment } from "./types/DistinguishComment";
75
82
  export { EditComment } from "./types/EditComment";
76
83
  export { EditCommunity } from "./types/EditCommunity";
77
84
  export { EditCustomEmoji } from "./types/EditCustomEmoji";
85
+ export { EditOAuthProvider } from "./types/EditOAuthProvider";
78
86
  export { EditPost } from "./types/EditPost";
79
87
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
80
88
  export { EditSite } from "./types/EditSite";
81
89
  export { FeaturePost } from "./types/FeaturePost";
82
90
  export { FederatedInstances } from "./types/FederatedInstances";
91
+ export { FederationMode } from "./types/FederationMode";
83
92
  export { FollowCommunity } from "./types/FollowCommunity";
84
93
  export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
85
94
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
@@ -87,6 +96,8 @@ export { GetComment } from "./types/GetComment";
87
96
  export { GetComments } from "./types/GetComments";
88
97
  export { GetCommentsResponse } from "./types/GetCommentsResponse";
89
98
  export { GetCommunity } from "./types/GetCommunity";
99
+ export { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
100
+ export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
90
101
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
91
102
  export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
92
103
  export { GetModlog } from "./types/GetModlog";
@@ -100,6 +111,7 @@ export { GetPostResponse } from "./types/GetPostResponse";
100
111
  export { GetPosts } from "./types/GetPosts";
101
112
  export { GetPostsResponse } from "./types/GetPostsResponse";
102
113
  export { GetPrivateMessages } from "./types/GetPrivateMessages";
114
+ export { GetRandomCommunity } from "./types/GetRandomCommunity";
103
115
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
104
116
  export { GetReplies } from "./types/GetReplies";
105
117
  export { GetRepliesResponse } from "./types/GetRepliesResponse";
@@ -114,7 +126,6 @@ export { HideCommunity } from "./types/HideCommunity";
114
126
  export { HidePost } from "./types/HidePost";
115
127
  export { ImageDetails } from "./types/ImageDetails";
116
128
  export { Instance } from "./types/Instance";
117
- export { InstanceBlockView } from "./types/InstanceBlockView";
118
129
  export { InstanceId } from "./types/InstanceId";
119
130
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
120
131
  export { Language } from "./types/Language";
@@ -127,6 +138,11 @@ export { ListCommentReports } from "./types/ListCommentReports";
127
138
  export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
128
139
  export { ListCommunities } from "./types/ListCommunities";
129
140
  export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
141
+ export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
142
+ export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
143
+ export { ListCustomEmojis } from "./types/ListCustomEmojis";
144
+ export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
145
+ export { ListLoginsResponse } from "./types/ListLoginsResponse";
130
146
  export { ListMedia } from "./types/ListMedia";
131
147
  export { ListMediaResponse } from "./types/ListMediaResponse";
132
148
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -137,6 +153,8 @@ export { ListPrivateMessageReports } from "./types/ListPrivateMessageReports";
137
153
  export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageReportsResponse";
138
154
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
139
155
  export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
156
+ export { ListTaglines } from "./types/ListTaglines";
157
+ export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
140
158
  export { ListingType } from "./types/ListingType";
141
159
  export { LocalImage } from "./types/LocalImage";
142
160
  export { LocalImageView } from "./types/LocalImageView";
@@ -181,13 +199,15 @@ export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
181
199
  export { ModlogActionType } from "./types/ModlogActionType";
182
200
  export { ModlogListParams } from "./types/ModlogListParams";
183
201
  export { MyUserInfo } from "./types/MyUserInfo";
202
+ export { OAuthAccount } from "./types/OAuthAccount";
203
+ export { OAuthProvider } from "./types/OAuthProvider";
204
+ export { OAuthProviderId } from "./types/OAuthProviderId";
184
205
  export { OpenGraphData } from "./types/OpenGraphData";
185
206
  export { PaginationCursor } from "./types/PaginationCursor";
186
207
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
187
208
  export { PasswordReset } from "./types/PasswordReset";
188
209
  export { Person } from "./types/Person";
189
210
  export { PersonAggregates } from "./types/PersonAggregates";
190
- export { PersonBlockView } from "./types/PersonBlockView";
191
211
  export { PersonId } from "./types/PersonId";
192
212
  export { PersonMention } from "./types/PersonMention";
193
213
  export { PersonMentionId } from "./types/PersonMentionId";
@@ -204,6 +224,7 @@ export { PostReportId } from "./types/PostReportId";
204
224
  export { PostReportResponse } from "./types/PostReportResponse";
205
225
  export { PostReportView } from "./types/PostReportView";
206
226
  export { PostResponse } from "./types/PostResponse";
227
+ export { PostSortType } from "./types/PostSortType";
207
228
  export { PostView } from "./types/PostView";
208
229
  export { PrivateMessage } from "./types/PrivateMessage";
209
230
  export { PrivateMessageId } from "./types/PrivateMessageId";
@@ -214,6 +235,7 @@ export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
214
235
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
215
236
  export { PrivateMessageView } from "./types/PrivateMessageView";
216
237
  export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
238
+ export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
217
239
  export { PurgeComment } from "./types/PurgeComment";
218
240
  export { PurgeCommunity } from "./types/PurgeCommunity";
219
241
  export { PurgePerson } from "./types/PurgePerson";
@@ -244,13 +266,14 @@ export { SiteAggregates } from "./types/SiteAggregates";
244
266
  export { SiteId } from "./types/SiteId";
245
267
  export { SiteResponse } from "./types/SiteResponse";
246
268
  export { SiteView } from "./types/SiteView";
247
- export { SortType } from "./types/SortType";
248
269
  export { SubscribedType } from "./types/SubscribedType";
249
270
  export { SuccessResponse } from "./types/SuccessResponse";
250
271
  export { Tagline } from "./types/Tagline";
272
+ export { TaglineId } from "./types/TaglineId";
273
+ export { TaglineResponse } from "./types/TaglineResponse";
251
274
  export { TransferCommunity } from "./types/TransferCommunity";
275
+ export { UpdateTagline } from "./types/UpdateTagline";
252
276
  export { UpdateTotp } from "./types/UpdateTotp";
253
277
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
254
278
  export { VerifyEmail } from "./types/VerifyEmail";
255
279
  export { VoteView } from "./types/VoteView";
256
- export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
@@ -0,0 +1,6 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ import type { PersonId } from "./PersonId";
3
+ export interface ApproveCommunityPendingFollows {
4
+ community_id: CommunityId;
5
+ follower_id: PersonId;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface AuthenticateWithOauth {
2
+ code: string;
3
+ oauth_provider_id: string;
4
+ redirect_uri: string;
5
+ show_nsfw?: boolean;
6
+ username?: string;
7
+ answer?: string;
8
+ }
@@ -4,7 +4,7 @@ export interface BanFromCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
6
  ban: boolean;
7
- remove_data?: boolean;
7
+ remove_or_restore_data?: boolean;
8
8
  reason?: string;
9
9
  expires?: number;
10
10
  }
@@ -2,7 +2,7 @@ import type { PersonId } from "./PersonId";
2
2
  export interface BanPerson {
3
3
  person_id: PersonId;
4
4
  ban: boolean;
5
- remove_data?: boolean;
5
+ remove_or_restore_data?: boolean;
6
6
  reason?: string;
7
7
  expires?: number;
8
8
  }
@@ -0,0 +1 @@
1
+ export type CommunityFollowerState = "Accepted" | "Pending" | "ApprovalRequired";
@@ -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 +1 @@
1
- export type CommunityVisibility = "Public" | "LocalOnly";
1
+ export type CommunityVisibility = "Public" | "LocalOnly" | "Private";
@@ -0,0 +1,14 @@
1
+ export interface CreateOAuthProvider {
2
+ display_name: string;
3
+ issuer: string;
4
+ authorization_endpoint: string;
5
+ token_endpoint: string;
6
+ userinfo_endpoint: string;
7
+ id_claim: string;
8
+ client_id: string;
9
+ client_secret: string;
10
+ scopes: string;
11
+ auto_verify_email?: boolean;
12
+ account_linking_enabled?: boolean;
13
+ enabled?: boolean;
14
+ }
@@ -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,15 +1,16 @@
1
+ import type { CommentSortType } from "./CommentSortType";
2
+ import type { FederationMode } from "./FederationMode";
1
3
  import type { LanguageId } from "./LanguageId";
2
4
  import type { ListingType } from "./ListingType";
3
5
  import type { PostListingMode } from "./PostListingMode";
6
+ import type { PostSortType } from "./PostSortType";
4
7
  import type { RegistrationMode } from "./RegistrationMode";
5
- import type { SortType } from "./SortType";
6
8
  export interface CreateSite {
7
9
  name: string;
8
10
  sidebar?: string;
9
11
  description?: string;
10
12
  icon?: string;
11
13
  banner?: string;
12
- enable_downvotes?: boolean;
13
14
  enable_nsfw?: boolean;
14
15
  community_creation_admin_only?: boolean;
15
16
  require_email_verification?: boolean;
@@ -17,7 +18,9 @@ export interface CreateSite {
17
18
  private_instance?: boolean;
18
19
  default_theme?: string;
19
20
  default_post_listing_type?: ListingType;
20
- default_sort_type?: SortType;
21
+ default_post_listing_mode?: PostListingMode;
22
+ default_post_sort_type?: PostSortType;
23
+ default_comment_sort_type?: CommentSortType;
21
24
  legal_information?: string;
22
25
  application_email_admins?: boolean;
23
26
  hide_modlog_mod_names?: boolean;
@@ -42,8 +45,11 @@ export interface CreateSite {
42
45
  captcha_difficulty?: string;
43
46
  allowed_instances?: Array<string>;
44
47
  blocked_instances?: Array<string>;
45
- taglines?: Array<string>;
46
48
  registration_mode?: RegistrationMode;
49
+ oauth_registration?: boolean;
47
50
  content_warning?: string;
48
- default_post_listing_mode?: PostListingMode;
51
+ post_upvotes?: FederationMode;
52
+ post_downvotes?: FederationMode;
53
+ comment_upvotes?: FederationMode;
54
+ comment_downvotes?: FederationMode;
49
55
  }
@@ -0,0 +1,3 @@
1
+ export interface CreateTagline {
2
+ content: 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,8 +1,6 @@
1
1
  import type { CustomEmojiId } from "./CustomEmojiId";
2
- import type { LocalSiteId } from "./LocalSiteId";
3
2
  export interface CustomEmoji {
4
3
  id: CustomEmojiId;
5
- local_site_id: LocalSiteId;
6
4
  shortcode: string;
7
5
  image_url: string;
8
6
  alt_text: string;
@@ -0,0 +1,4 @@
1
+ import type { OAuthProviderId } from "./OAuthProviderId";
2
+ export interface DeleteOAuthProvider {
3
+ id: OAuthProviderId;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { TaglineId } from "./TaglineId";
2
+ export interface DeleteTagline {
3
+ id: TaglineId;
4
+ }
@@ -0,0 +1,14 @@
1
+ import type { OAuthProviderId } from "./OAuthProviderId";
2
+ export interface EditOAuthProvider {
3
+ id: OAuthProviderId;
4
+ display_name?: string;
5
+ authorization_endpoint?: string;
6
+ token_endpoint?: string;
7
+ userinfo_endpoint?: string;
8
+ id_claim?: string;
9
+ client_secret?: string;
10
+ scopes?: string;
11
+ auto_verify_email?: boolean;
12
+ account_linking_enabled?: boolean;
13
+ enabled?: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,4 +9,5 @@ export interface EditPost {
9
9
  nsfw?: boolean;
10
10
  language_id?: LanguageId;
11
11
  custom_thumbnail?: string;
12
+ scheduled_publish_time?: number;
12
13
  }
@@ -1,15 +1,16 @@
1
+ import type { CommentSortType } from "./CommentSortType";
2
+ import type { FederationMode } from "./FederationMode";
1
3
  import type { LanguageId } from "./LanguageId";
2
4
  import type { ListingType } from "./ListingType";
3
5
  import type { PostListingMode } from "./PostListingMode";
6
+ import type { PostSortType } from "./PostSortType";
4
7
  import type { RegistrationMode } from "./RegistrationMode";
5
- import type { SortType } from "./SortType";
6
8
  export interface EditSite {
7
9
  name?: string;
8
10
  sidebar?: string;
9
11
  description?: string;
10
12
  icon?: string;
11
13
  banner?: string;
12
- enable_downvotes?: boolean;
13
14
  enable_nsfw?: boolean;
14
15
  community_creation_admin_only?: boolean;
15
16
  require_email_verification?: boolean;
@@ -17,7 +18,9 @@ export interface EditSite {
17
18
  private_instance?: boolean;
18
19
  default_theme?: string;
19
20
  default_post_listing_type?: ListingType;
20
- default_sort_type?: SortType;
21
+ default_post_listing_mode?: PostListingMode;
22
+ default_post_sort_type?: PostSortType;
23
+ default_comment_sort_type?: CommentSortType;
21
24
  legal_information?: string;
22
25
  application_email_admins?: boolean;
23
26
  hide_modlog_mod_names?: boolean;
@@ -43,9 +46,12 @@ export interface EditSite {
43
46
  allowed_instances?: Array<string>;
44
47
  blocked_instances?: Array<string>;
45
48
  blocked_urls?: Array<string>;
46
- taglines?: Array<string>;
47
49
  registration_mode?: RegistrationMode;
48
50
  reports_email_admins?: boolean;
49
51
  content_warning?: string;
50
- default_post_listing_mode?: PostListingMode;
52
+ oauth_registration?: boolean;
53
+ post_upvotes?: FederationMode;
54
+ post_downvotes?: FederationMode;
55
+ comment_upvotes?: FederationMode;
56
+ comment_downvotes?: FederationMode;
51
57
  }
@@ -0,0 +1 @@
1
+ export type FederationMode = "All" | "Local" | "Disable";
@@ -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,4 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ export interface GetCommunityPendingFollowsCount {
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 GetCommunityPendingFollowsCountResponse {
2
+ count: number;
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 });