lemmy-js-client 0.18.3-rc.3 → 0.19.0-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/dist/http.d.ts +61 -20
  2. package/dist/http.js +87 -31
  3. package/dist/index.d.ts +13 -18
  4. package/dist/types/AddAdmin.d.ts +0 -1
  5. package/dist/types/AddModToCommunity.d.ts +0 -1
  6. package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
  7. package/dist/types/BanFromCommunity.d.ts +0 -1
  8. package/dist/types/BanPerson.d.ts +0 -1
  9. package/dist/types/BlockCommunity.d.ts +0 -1
  10. package/dist/types/BlockInstance.d.ts +5 -0
  11. package/dist/types/BlockInstanceResponse.d.ts +3 -0
  12. package/dist/types/BlockPerson.d.ts +0 -1
  13. package/dist/types/ChangePassword.d.ts +0 -1
  14. package/dist/types/CommentAggregates.d.ts +0 -1
  15. package/dist/types/CommentResponse.d.ts +0 -1
  16. package/dist/types/CommentSortType.d.ts +1 -1
  17. package/dist/types/Community.d.ts +0 -2
  18. package/dist/types/CommunityAggregates.d.ts +0 -1
  19. package/dist/types/CreateComment.d.ts +0 -2
  20. package/dist/types/CreateCommentLike.d.ts +0 -1
  21. package/dist/types/CreateCommentReport.d.ts +0 -1
  22. package/dist/types/CreateCommunity.d.ts +0 -1
  23. package/dist/types/CreateCustomEmoji.d.ts +0 -1
  24. package/dist/types/CreatePost.d.ts +0 -1
  25. package/dist/types/CreatePostLike.d.ts +0 -1
  26. package/dist/types/CreatePostReport.d.ts +0 -1
  27. package/dist/types/CreatePrivateMessage.d.ts +0 -1
  28. package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
  29. package/dist/types/CreateSite.d.ts +0 -1
  30. package/dist/types/DeleteAccount.d.ts +1 -1
  31. package/dist/types/DeleteAccountResponse.d.ts +1 -1
  32. package/dist/types/DeleteComment.d.ts +0 -1
  33. package/dist/types/DeleteCommunity.d.ts +0 -1
  34. package/dist/types/DeleteCustomEmoji.d.ts +0 -1
  35. package/dist/types/DeletePost.d.ts +0 -1
  36. package/dist/types/DeletePrivateMessage.d.ts +0 -1
  37. package/dist/types/DistinguishComment.d.ts +0 -1
  38. package/dist/types/EditComment.d.ts +0 -2
  39. package/dist/types/EditCommunity.d.ts +0 -1
  40. package/dist/types/EditCustomEmoji.d.ts +0 -1
  41. package/dist/types/EditPost.d.ts +0 -1
  42. package/dist/types/EditPrivateMessage.d.ts +0 -1
  43. package/dist/types/EditSite.d.ts +0 -1
  44. package/dist/types/FeaturePost.d.ts +0 -1
  45. package/dist/types/FollowCommunity.d.ts +0 -1
  46. package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
  47. package/dist/types/GetComment.d.ts +0 -1
  48. package/dist/types/GetComments.d.ts +2 -1
  49. package/dist/types/GetCommunity.d.ts +0 -1
  50. package/dist/types/GetModlog.d.ts +0 -1
  51. package/dist/types/GetPersonDetails.d.ts +0 -1
  52. package/dist/types/GetPersonMentions.d.ts +0 -1
  53. package/dist/types/GetPost.d.ts +0 -1
  54. package/dist/types/GetPosts.d.ts +4 -2
  55. package/dist/types/GetPostsResponse.d.ts +2 -0
  56. package/dist/types/GetPrivateMessages.d.ts +2 -1
  57. package/dist/types/GetPrivateMessages.js +0 -1
  58. package/dist/types/GetReplies.d.ts +0 -1
  59. package/dist/types/GetReportCount.d.ts +0 -1
  60. package/dist/types/HideCommunity.d.ts +0 -1
  61. package/dist/types/ImageUpload.d.ts +9 -0
  62. package/dist/types/ImageUploadId.d.ts +1 -0
  63. package/dist/types/InstanceBlockView.d.ts +8 -0
  64. package/dist/types/ListCommentReports.d.ts +0 -1
  65. package/dist/types/ListCommunities.d.ts +0 -1
  66. package/dist/types/ListPostReports.d.ts +0 -1
  67. package/dist/types/ListPrivateMessageReports.d.ts +0 -1
  68. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  69. package/dist/types/ListingType.d.ts +1 -1
  70. package/dist/types/LocalSiteRateLimit.d.ts +2 -0
  71. package/dist/types/LocalUser.d.ts +8 -5
  72. package/dist/types/LockPost.d.ts +0 -1
  73. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
  74. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
  75. package/dist/types/MarkPostAsRead.d.ts +1 -1
  76. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
  77. package/dist/types/MyUserInfo.d.ts +2 -0
  78. package/dist/types/PaginationCursor.d.ts +1 -0
  79. package/dist/types/PasswordResetResponse.d.ts +1 -1
  80. package/dist/types/Person.d.ts +0 -2
  81. package/dist/types/PersonSortType.d.ts +1 -0
  82. package/dist/types/PostAggregates.d.ts +0 -6
  83. package/dist/types/PostListingMode.d.ts +1 -0
  84. package/dist/types/PurgeComment.d.ts +0 -1
  85. package/dist/types/PurgeCommunity.d.ts +0 -1
  86. package/dist/types/PurgePerson.d.ts +0 -1
  87. package/dist/types/PurgePost.d.ts +0 -1
  88. package/dist/types/RemoveComment.d.ts +0 -1
  89. package/dist/types/RemoveCommunity.d.ts +0 -1
  90. package/dist/types/RemovePost.d.ts +0 -1
  91. package/dist/types/ResolveCommentReport.d.ts +0 -1
  92. package/dist/types/ResolveObject.d.ts +0 -1
  93. package/dist/types/ResolvePostReport.d.ts +0 -1
  94. package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
  95. package/dist/types/SaveComment.d.ts +0 -1
  96. package/dist/types/SavePost.d.ts +0 -1
  97. package/dist/types/SaveUserSettings.d.ts +2 -2
  98. package/dist/types/Search.d.ts +0 -1
  99. package/dist/types/SortType.d.ts +1 -1
  100. package/dist/types/SuccessResponse.d.ts +3 -0
  101. package/dist/types/TransferCommunity.d.ts +0 -1
  102. package/dist/types/UpdateTotp.d.ts +4 -0
  103. package/dist/types/UpdateTotpResponse.d.ts +3 -0
  104. package/dist/types/VerifyEmailResponse.d.ts +1 -1
  105. package/dist/types/others.d.ts +8 -0
  106. package/package.json +1 -1
  107. package/dist/types/CommunityJoin.d.ts +0 -4
  108. package/dist/types/CommunityJoinResponse.d.ts +0 -3
  109. package/dist/types/GetBannedPersons.d.ts +0 -3
  110. package/dist/types/GetCaptcha.d.ts +0 -3
  111. package/dist/types/GetFederatedInstances.d.ts +0 -3
  112. package/dist/types/GetSite.d.ts +0 -3
  113. package/dist/types/GetUnreadCount.d.ts +0 -3
  114. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
  115. package/dist/types/LeaveAdmin.d.ts +0 -3
  116. package/dist/types/MarkAllAsRead.d.ts +0 -3
  117. package/dist/types/ModJoin.d.ts +0 -4
  118. package/dist/types/ModJoinResponse.d.ts +0 -3
  119. package/dist/types/ModJoinResponse.js +0 -3
  120. package/dist/types/PostJoin.d.ts +0 -4
  121. package/dist/types/PostJoinResponse.d.ts +0 -3
  122. package/dist/types/PostJoinResponse.js +0 -3
  123. package/dist/types/PostOrCommentId.d.ts +0 -7
  124. package/dist/types/PostOrCommentId.js +0 -2
  125. package/dist/types/UserJoin.d.ts +0 -3
  126. package/dist/types/UserJoin.js +0 -3
  127. package/dist/types/UserJoinResponse.d.ts +0 -3
  128. package/dist/types/UserJoinResponse.js +0 -3
  129. /package/dist/types/{CommunityJoin.js → BlockInstance.js} +0 -0
  130. /package/dist/types/{CommunityJoinResponse.js → BlockInstanceResponse.js} +0 -0
  131. /package/dist/types/{GetBannedPersons.js → GenerateTotpSecretResponse.js} +0 -0
  132. /package/dist/types/{ModJoin.js → ImageUpload.js} +0 -0
  133. /package/dist/types/{GetCaptcha.js → ImageUploadId.js} +0 -0
  134. /package/dist/types/{PostJoin.js → InstanceBlockView.js} +0 -0
  135. /package/dist/types/{GetFederatedInstances.js → PaginationCursor.js} +0 -0
  136. /package/dist/types/{GetSite.js → PersonSortType.js} +0 -0
  137. /package/dist/types/{GetUnreadCount.js → PostListingMode.js} +0 -0
  138. /package/dist/types/{GetUnreadRegistrationApplicationCount.js → SuccessResponse.js} +0 -0
  139. /package/dist/types/{LeaveAdmin.js → UpdateTotp.js} +0 -0
  140. /package/dist/types/{MarkAllAsRead.js → UpdateTotpResponse.js} +0 -0
@@ -3,5 +3,4 @@ import type { PersonId } from "./PersonId";
3
3
  export interface TransferCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
- auth: string;
7
6
  }
@@ -0,0 +1,4 @@
1
+ export interface UpdateTotp {
2
+ totp_token: string;
3
+ enabled: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateTotpResponse {
2
+ enabled: boolean;
3
+ }
@@ -1 +1 @@
1
- export type VerifyEmailResponse = null;
1
+ export type VerifyEmailResponse = Record<string, never>;
@@ -20,3 +20,11 @@ export interface ImageFile {
20
20
  file: string;
21
21
  delete_token: string;
22
22
  }
23
+ export interface DeleteImage {
24
+ token: string;
25
+ filename: string;
26
+ /**
27
+ * Optional if cookie with jwt set is already present. Otherwise, auth is required.
28
+ */
29
+ auth?: string;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.18.3-rc.3",
3
+ "version": "0.19.0-alpha.10",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",
@@ -1,4 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- export interface CommunityJoin {
3
- community_id: CommunityId;
4
- }
@@ -1,3 +0,0 @@
1
- export interface CommunityJoinResponse {
2
- joined: boolean;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetBannedPersons {
2
- auth: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetCaptcha {
2
- auth?: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetFederatedInstances {
2
- auth?: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetSite {
2
- auth?: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetUnreadCount {
2
- auth: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface GetUnreadRegistrationApplicationCount {
2
- auth: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface LeaveAdmin {
2
- auth: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface MarkAllAsRead {
2
- auth: string;
3
- }
@@ -1,4 +0,0 @@
1
- import type { CommunityId } from "./CommunityId";
2
- export interface ModJoin {
3
- community_id: CommunityId;
4
- }
@@ -1,3 +0,0 @@
1
- export interface ModJoinResponse {
2
- joined: boolean;
3
- }
@@ -1,3 +0,0 @@
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 +0,0 @@
1
- import type { PostId } from "./PostId";
2
- export interface PostJoin {
3
- post_id: PostId;
4
- }
@@ -1,3 +0,0 @@
1
- export interface PostJoinResponse {
2
- joined: boolean;
3
- }
@@ -1,3 +0,0 @@
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,7 +0,0 @@
1
- import type { CommentId } from "./CommentId";
2
- import type { PostId } from "./PostId";
3
- export type PostOrCommentId = {
4
- Post: PostId;
5
- } | {
6
- Comment: CommentId;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface UserJoin {
2
- auth: string;
3
- }
@@ -1,3 +0,0 @@
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,3 +0,0 @@
1
- export interface UserJoinResponse {
2
- joined: boolean;
3
- }
@@ -1,3 +0,0 @@
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 });
File without changes
File without changes
File without changes
File without changes