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
@@ -16,4 +16,5 @@ export interface GetComments {
16
16
  saved_only?: boolean;
17
17
  liked_only?: boolean;
18
18
  disliked_only?: boolean;
19
+ auth?: string;
19
20
  }
@@ -2,4 +2,5 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface GetCommunity {
3
3
  id?: CommunityId;
4
4
  name?: string;
5
+ auth?: string;
5
6
  }
@@ -0,0 +1,3 @@
1
+ export interface GetFederatedInstances {
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 });
@@ -8,4 +8,5 @@ export interface GetModlog {
8
8
  limit?: number;
9
9
  type_?: ModlogActionType;
10
10
  other_person_id?: PersonId;
11
+ auth?: string;
11
12
  }
@@ -9,4 +9,5 @@ export interface GetPersonDetails {
9
9
  limit?: number;
10
10
  community_id?: CommunityId;
11
11
  saved_only?: boolean;
12
+ auth?: string;
12
13
  }
@@ -4,4 +4,5 @@ export interface GetPersonMentions {
4
4
  page?: number;
5
5
  limit?: number;
6
6
  unread_only?: boolean;
7
+ auth: string;
7
8
  }
@@ -3,4 +3,5 @@ import type { PostId } from "./PostId";
3
3
  export interface GetPost {
4
4
  id?: PostId;
5
5
  comment_id?: CommentId;
6
+ auth?: string;
6
7
  }
@@ -11,4 +11,5 @@ export interface GetPosts {
11
11
  saved_only?: boolean;
12
12
  liked_only?: boolean;
13
13
  disliked_only?: boolean;
14
+ auth?: string;
14
15
  }
@@ -4,4 +4,5 @@ export interface GetPrivateMessages {
4
4
  page?: number;
5
5
  limit?: number;
6
6
  creator_id?: PersonId;
7
+ auth: string;
7
8
  }
@@ -4,4 +4,5 @@ export interface GetReplies {
4
4
  page?: number;
5
5
  limit?: number;
6
6
  unread_only?: boolean;
7
+ auth: string;
7
8
  }
@@ -1,4 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
2
  export interface GetReportCount {
3
3
  community_id?: CommunityId;
4
+ auth: string;
4
5
  }
@@ -0,0 +1,3 @@
1
+ export interface GetSite {
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 GetUnreadCount {
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 GetUnreadRegistrationApplicationCount {
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 });
@@ -3,4 +3,5 @@ export interface HideCommunity {
3
3
  community_id: CommunityId;
4
4
  hidden: boolean;
5
5
  reason?: string;
6
+ auth: string;
6
7
  }
@@ -0,0 +1,8 @@
1
+ import type { Instance } from "./Instance";
2
+ import type { Person } from "./Person";
3
+ import type { Site } from "./Site";
4
+ export interface InstanceBlockView {
5
+ person: Person;
6
+ instance: Instance;
7
+ site?: Site;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface LeaveAdmin {
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 });
@@ -4,4 +4,5 @@ export interface ListCommentReports {
4
4
  limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
+ auth: string;
7
8
  }
@@ -6,4 +6,5 @@ export interface ListCommunities {
6
6
  show_nsfw?: boolean;
7
7
  page?: number;
8
8
  limit?: number;
9
+ auth?: string;
9
10
  }
@@ -4,4 +4,5 @@ export interface ListPostReports {
4
4
  limit?: number;
5
5
  unresolved_only?: boolean;
6
6
  community_id?: CommunityId;
7
+ auth: string;
7
8
  }
@@ -2,4 +2,5 @@ export interface ListPrivateMessageReports {
2
2
  page?: number;
3
3
  limit?: number;
4
4
  unresolved_only?: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ export interface ListRegistrationApplications {
2
2
  unread_only?: boolean;
3
3
  page?: number;
4
4
  limit?: number;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface LockPost {
3
3
  post_id: PostId;
4
4
  locked: boolean;
5
+ auth: string;
5
6
  }
@@ -0,0 +1,3 @@
1
+ export interface MarkAllAsRead {
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 });
@@ -2,4 +2,5 @@ import type { CommentReplyId } from "./CommentReplyId";
2
2
  export interface MarkCommentReplyAsRead {
3
3
  comment_reply_id: CommentReplyId;
4
4
  read: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PersonMentionId } from "./PersonMentionId";
2
2
  export interface MarkPersonMentionAsRead {
3
3
  person_mention_id: PersonMentionId;
4
4
  read: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface MarkPostAsRead {
3
3
  post_id: PostId;
4
4
  read: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PrivateMessageId } from "./PrivateMessageId";
2
2
  export interface MarkPrivateMessageAsRead {
3
3
  private_message_id: PrivateMessageId;
4
4
  read: boolean;
5
+ auth: string;
5
6
  }
@@ -0,0 +1,4 @@
1
+ import type { CommunityId } from "./CommunityId";
2
+ export interface ModJoin {
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 ModJoinResponse {
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 });
@@ -1,6 +1,7 @@
1
1
  import type { CommunityBlockView } from "./CommunityBlockView";
2
2
  import type { CommunityFollowerView } from "./CommunityFollowerView";
3
3
  import type { CommunityModeratorView } from "./CommunityModeratorView";
4
+ import type { InstanceBlockView } from "./InstanceBlockView";
4
5
  import type { LanguageId } from "./LanguageId";
5
6
  import type { LocalUserView } from "./LocalUserView";
6
7
  import type { PersonBlockView } from "./PersonBlockView";
@@ -9,6 +10,7 @@ export interface MyUserInfo {
9
10
  follows: Array<CommunityFollowerView>;
10
11
  moderates: Array<CommunityModeratorView>;
11
12
  community_blocks: Array<CommunityBlockView>;
13
+ instance_blocks: Array<InstanceBlockView>;
12
14
  person_blocks: Array<PersonBlockView>;
13
15
  discussion_languages: Array<LanguageId>;
14
16
  }
@@ -1,4 +1,5 @@
1
1
  import type { CommunityId } from "./CommunityId";
2
+ import type { InstanceId } from "./InstanceId";
2
3
  import type { PersonId } from "./PersonId";
3
4
  import type { PostId } from "./PostId";
4
5
  export interface PostAggregates {
@@ -18,4 +19,5 @@ export interface PostAggregates {
18
19
  community_id: CommunityId;
19
20
  creator_id: PersonId;
20
21
  controversy_rank: number;
22
+ instance_id: InstanceId;
21
23
  }
@@ -0,0 +1,4 @@
1
+ import type { PostId } from "./PostId";
2
+ export interface PostJoin {
3
+ post_id: PostId;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface PostJoinResponse {
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 });
@@ -0,0 +1,7 @@
1
+ import type { CommentId } from "./CommentId";
2
+ import type { PostId } from "./PostId";
3
+ export type PostOrCommentId = {
4
+ Post: PostId;
5
+ } | {
6
+ Comment: CommentId;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface PurgeComment {
3
3
  comment_id: CommentId;
4
4
  reason?: string;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface PurgeCommunity {
3
3
  community_id: CommunityId;
4
4
  reason?: string;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PersonId } from "./PersonId";
2
2
  export interface PurgePerson {
3
3
  person_id: PersonId;
4
4
  reason?: string;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface PurgePost {
3
3
  post_id: PostId;
4
4
  reason?: string;
5
+ auth: string;
5
6
  }
@@ -3,4 +3,5 @@ export interface RemoveComment {
3
3
  comment_id: CommentId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
+ auth: string;
6
7
  }
@@ -4,4 +4,5 @@ export interface RemoveCommunity {
4
4
  removed: boolean;
5
5
  reason?: string;
6
6
  expires?: number;
7
+ auth: string;
7
8
  }
@@ -3,4 +3,5 @@ export interface RemovePost {
3
3
  post_id: PostId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
+ auth: string;
6
7
  }
@@ -2,4 +2,5 @@ import type { CommentReportId } from "./CommentReportId";
2
2
  export interface ResolveCommentReport {
3
3
  report_id: CommentReportId;
4
4
  resolved: boolean;
5
+ auth: string;
5
6
  }
@@ -1,3 +1,4 @@
1
1
  export interface ResolveObject {
2
2
  q: string;
3
+ auth: string | null;
3
4
  }
@@ -2,4 +2,5 @@ import type { PostReportId } from "./PostReportId";
2
2
  export interface ResolvePostReport {
3
3
  report_id: PostReportId;
4
4
  resolved: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PrivateMessageReportId } from "./PrivateMessageReportId";
2
2
  export interface ResolvePrivateMessageReport {
3
3
  report_id: PrivateMessageReportId;
4
4
  resolved: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { CommentId } from "./CommentId";
2
2
  export interface SaveComment {
3
3
  comment_id: CommentId;
4
4
  save: boolean;
5
+ auth: string;
5
6
  }
@@ -2,4 +2,5 @@ import type { PostId } from "./PostId";
2
2
  export interface SavePost {
3
3
  post_id: PostId;
4
4
  save: boolean;
5
+ auth: string;
5
6
  }
@@ -24,6 +24,7 @@ export interface SaveUserSettings {
24
24
  show_new_post_notifs?: boolean;
25
25
  discussion_languages?: Array<LanguageId>;
26
26
  generate_totp_2fa?: boolean;
27
+ auth: string;
27
28
  open_links_in_new_tab?: boolean;
28
29
  infinite_scroll_enabled?: boolean;
29
30
  }
@@ -13,4 +13,5 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
+ auth?: string;
16
17
  }
@@ -3,4 +3,5 @@ import type { PersonId } from "./PersonId";
3
3
  export interface TransferCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
+ auth: string;
6
7
  }
@@ -0,0 +1,3 @@
1
+ export interface UserJoin {
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 UserJoinResponse {
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.19.0-rc.8",
3
+ "version": "0.19.0-rc.9",
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,9 +0,0 @@
1
- import type { ImageUploadId } from "./ImageUploadId";
2
- import type { LocalUserId } from "./LocalUserId";
3
- export interface ImageUpload {
4
- id: ImageUploadId;
5
- local_user_id: LocalUserId;
6
- pictrs_alias: string;
7
- pictrs_delete_token: string;
8
- published: string;
9
- }
@@ -1 +0,0 @@
1
- export type ImageUploadId = number;
File without changes