lemmy-js-client 0.19.0-rc.9 → 0.19.2-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/dist/http.d.ts +99 -33
  2. package/dist/http.js +119 -31
  3. package/dist/index.d.ts +16 -25
  4. package/dist/{types/others.d.ts → other_types.d.ts} +4 -4
  5. package/dist/types/ActivityId.d.ts +1 -0
  6. package/dist/types/AddAdmin.d.ts +0 -1
  7. package/dist/types/AddModToCommunity.d.ts +0 -1
  8. package/dist/types/ApproveRegistrationApplication.d.ts +0 -1
  9. package/dist/types/BanFromCommunity.d.ts +0 -1
  10. package/dist/types/BanPerson.d.ts +0 -1
  11. package/dist/types/BlockCommunity.d.ts +0 -1
  12. package/dist/types/BlockInstance.d.ts +0 -1
  13. package/dist/types/BlockPerson.d.ts +0 -1
  14. package/dist/types/ChangePassword.d.ts +0 -1
  15. package/dist/types/CommentAggregates.d.ts +0 -3
  16. package/dist/types/CommentReplyView.d.ts +2 -0
  17. package/dist/types/CommentView.d.ts +2 -0
  18. package/dist/types/Community.d.ts +0 -2
  19. package/dist/types/CommunityAggregates.d.ts +0 -2
  20. package/dist/types/CreateComment.d.ts +0 -1
  21. package/dist/types/CreateCommentLike.d.ts +0 -1
  22. package/dist/types/CreateCommentReport.d.ts +0 -1
  23. package/dist/types/CreateCommunity.d.ts +0 -1
  24. package/dist/types/CreateCustomEmoji.d.ts +0 -1
  25. package/dist/types/CreatePost.d.ts +0 -1
  26. package/dist/types/CreatePostLike.d.ts +0 -1
  27. package/dist/types/CreatePostReport.d.ts +0 -1
  28. package/dist/types/CreatePrivateMessage.d.ts +0 -1
  29. package/dist/types/CreatePrivateMessageReport.d.ts +0 -1
  30. package/dist/types/CreateSite.d.ts +0 -1
  31. package/dist/types/CustomEmojiKeyword.d.ts +0 -1
  32. package/dist/types/DeleteAccount.d.ts +0 -1
  33. package/dist/types/DeleteComment.d.ts +0 -1
  34. package/dist/types/DeleteCommunity.d.ts +0 -1
  35. package/dist/types/DeleteCustomEmoji.d.ts +0 -1
  36. package/dist/types/DeletePost.d.ts +0 -1
  37. package/dist/types/DeletePrivateMessage.d.ts +0 -1
  38. package/dist/types/DistinguishComment.d.ts +0 -1
  39. package/dist/types/EditComment.d.ts +0 -1
  40. package/dist/types/EditCommunity.d.ts +0 -1
  41. package/dist/types/EditCustomEmoji.d.ts +0 -1
  42. package/dist/types/EditPost.d.ts +0 -1
  43. package/dist/types/EditPrivateMessage.d.ts +0 -1
  44. package/dist/types/EditSite.d.ts +0 -1
  45. package/dist/types/FeaturePost.d.ts +0 -1
  46. package/dist/types/FederatedInstances.d.ts +4 -4
  47. package/dist/types/FollowCommunity.d.ts +0 -1
  48. package/dist/types/GenerateTotpSecretResponse.d.ts +3 -0
  49. package/dist/types/GetComment.d.ts +0 -1
  50. package/dist/types/GetComments.d.ts +0 -1
  51. package/dist/types/GetCommunity.d.ts +0 -1
  52. package/dist/types/GetModlog.d.ts +0 -1
  53. package/dist/types/GetPersonDetails.d.ts +0 -1
  54. package/dist/types/GetPersonMentions.d.ts +0 -1
  55. package/dist/types/GetPost.d.ts +0 -1
  56. package/dist/types/GetPosts.d.ts +2 -1
  57. package/dist/types/GetPostsResponse.d.ts +2 -0
  58. package/dist/types/GetPrivateMessages.d.ts +0 -1
  59. package/dist/types/GetReplies.d.ts +0 -1
  60. package/dist/types/GetReportCount.d.ts +0 -1
  61. package/dist/types/HideCommunity.d.ts +0 -1
  62. package/dist/types/ImageUpload.d.ts +7 -0
  63. package/dist/types/InstanceWithFederationState.d.ts +11 -0
  64. package/dist/types/LemmyErrorType.d.ts +171 -138
  65. package/dist/types/ListCommentLikes.d.ts +6 -0
  66. package/dist/types/ListCommentLikesResponse.d.ts +4 -0
  67. package/dist/types/ListCommentReports.d.ts +0 -1
  68. package/dist/types/ListCommunities.d.ts +0 -1
  69. package/dist/types/ListPostLikes.d.ts +6 -0
  70. package/dist/types/ListPostLikesResponse.d.ts +4 -0
  71. package/dist/types/ListPostLikesResponse.js +2 -0
  72. package/dist/types/ListPostReports.d.ts +0 -1
  73. package/dist/types/ListPrivateMessageReports.d.ts +0 -1
  74. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  75. package/dist/types/LocalSite.d.ts +1 -0
  76. package/dist/types/LocalSiteRateLimit.d.ts +2 -1
  77. package/dist/types/LocalUser.d.ts +4 -3
  78. package/dist/types/LockPost.d.ts +0 -1
  79. package/dist/types/LoginToken.d.ts +7 -0
  80. package/dist/types/LoginToken.js +2 -0
  81. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -1
  82. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -1
  83. package/dist/types/MarkPostAsRead.d.ts +2 -2
  84. package/dist/types/MarkPrivateMessageAsRead.d.ts +0 -1
  85. package/dist/types/ModRemoveCommunity.d.ts +0 -1
  86. package/dist/types/PaginationCursor.d.ts +1 -0
  87. package/dist/types/Person.d.ts +0 -1
  88. package/dist/types/PersonAggregates.d.ts +0 -3
  89. package/dist/types/PersonMentionView.d.ts +2 -0
  90. package/dist/types/PersonView.d.ts +1 -0
  91. package/dist/types/PostAggregates.d.ts +0 -14
  92. package/dist/types/PostView.d.ts +2 -0
  93. package/dist/types/PurgeComment.d.ts +0 -1
  94. package/dist/types/PurgeCommunity.d.ts +0 -1
  95. package/dist/types/PurgePerson.d.ts +0 -1
  96. package/dist/types/PurgePost.d.ts +0 -1
  97. package/dist/types/ReadableFederationState.d.ts +10 -0
  98. package/dist/types/ReadableFederationState.js +2 -0
  99. package/dist/types/RemoveComment.d.ts +0 -1
  100. package/dist/types/RemoveCommunity.d.ts +0 -2
  101. package/dist/types/RemovePost.d.ts +0 -1
  102. package/dist/types/ResolveCommentReport.d.ts +0 -1
  103. package/dist/types/ResolveObject.d.ts +0 -1
  104. package/dist/types/ResolvePostReport.d.ts +0 -1
  105. package/dist/types/ResolvePrivateMessageReport.d.ts +0 -1
  106. package/dist/types/SaveComment.d.ts +0 -1
  107. package/dist/types/SavePost.d.ts +0 -1
  108. package/dist/types/SaveUserSettings.d.ts +5 -3
  109. package/dist/types/Search.d.ts +0 -1
  110. package/dist/types/SiteAggregates.d.ts +0 -1
  111. package/dist/types/SortType.d.ts +1 -1
  112. package/dist/types/SuccessResponse.d.ts +3 -0
  113. package/dist/types/TransferCommunity.d.ts +0 -1
  114. package/dist/types/UpdateTotp.d.ts +4 -0
  115. package/dist/types/UpdateTotpResponse.d.ts +3 -0
  116. package/dist/types/VoteView.d.ts +5 -0
  117. package/dist/types/VoteView.js +2 -0
  118. package/package.json +12 -12
  119. package/dist/types/CommunityBlockId.d.ts +0 -1
  120. package/dist/types/CommunityJoin.d.ts +0 -4
  121. package/dist/types/CommunityJoinResponse.d.ts +0 -3
  122. package/dist/types/DeleteAccountResponse.d.ts +0 -1
  123. package/dist/types/DeleteCustomEmojiResponse.d.ts +0 -5
  124. package/dist/types/GetBannedPersons.d.ts +0 -3
  125. package/dist/types/GetCaptcha.d.ts +0 -3
  126. package/dist/types/GetFederatedInstances.d.ts +0 -3
  127. package/dist/types/GetSite.d.ts +0 -3
  128. package/dist/types/GetSite.js +0 -3
  129. package/dist/types/GetUnreadCount.d.ts +0 -3
  130. package/dist/types/GetUnreadCount.js +0 -3
  131. package/dist/types/GetUnreadRegistrationApplicationCount.d.ts +0 -3
  132. package/dist/types/GetUnreadRegistrationApplicationCount.js +0 -3
  133. package/dist/types/LeaveAdmin.d.ts +0 -3
  134. package/dist/types/LeaveAdmin.js +0 -3
  135. package/dist/types/MarkAllAsRead.d.ts +0 -3
  136. package/dist/types/MarkAllAsRead.js +0 -3
  137. package/dist/types/ModJoin.d.ts +0 -4
  138. package/dist/types/ModJoinResponse.d.ts +0 -3
  139. package/dist/types/ModJoinResponse.js +0 -3
  140. package/dist/types/PasswordResetResponse.d.ts +0 -1
  141. package/dist/types/PasswordResetResponse.js +0 -3
  142. package/dist/types/PersonSortType.d.ts +0 -1
  143. package/dist/types/PersonSortType.js +0 -3
  144. package/dist/types/PostJoin.d.ts +0 -4
  145. package/dist/types/PostJoinResponse.d.ts +0 -3
  146. package/dist/types/PostJoinResponse.js +0 -3
  147. package/dist/types/PostOrCommentId.d.ts +0 -7
  148. package/dist/types/PurgeItemResponse.d.ts +0 -3
  149. package/dist/types/PurgeItemResponse.js +0 -3
  150. package/dist/types/UserJoin.d.ts +0 -3
  151. package/dist/types/UserJoin.js +0 -3
  152. package/dist/types/UserJoinResponse.d.ts +0 -3
  153. package/dist/types/UserJoinResponse.js +0 -3
  154. package/dist/types/VerifyEmailResponse.d.ts +0 -1
  155. package/dist/types/VerifyEmailResponse.js +0 -3
  156. package/dist/utils.d.ts +0 -0
  157. package/dist/utils.js +0 -0
  158. /package/dist/{types/others.js → other_types.js} +0 -0
  159. /package/dist/types/{CommunityBlockId.js → ActivityId.js} +0 -0
  160. /package/dist/types/{CommunityJoinResponse.js → GenerateTotpSecretResponse.js} +0 -0
  161. /package/dist/types/{CommunityJoin.js → ImageUpload.js} +0 -0
  162. /package/dist/types/{DeleteCustomEmojiResponse.js → InstanceWithFederationState.js} +0 -0
  163. /package/dist/types/{ModJoin.js → ListCommentLikes.js} +0 -0
  164. /package/dist/types/{PostJoin.js → ListCommentLikesResponse.js} +0 -0
  165. /package/dist/types/{PostOrCommentId.js → ListPostLikes.js} +0 -0
  166. /package/dist/types/{DeleteAccountResponse.js → PaginationCursor.js} +0 -0
  167. /package/dist/types/{GetBannedPersons.js → SuccessResponse.js} +0 -0
  168. /package/dist/types/{GetCaptcha.js → UpdateTotp.js} +0 -0
  169. /package/dist/types/{GetFederatedInstances.js → UpdateTotpResponse.js} +0 -0
@@ -3,4 +3,5 @@ import type { PersonAggregates } from "./PersonAggregates";
3
3
  export interface PersonView {
4
4
  person: Person;
5
5
  counts: PersonAggregates;
6
+ is_admin: boolean;
6
7
  }
@@ -1,23 +1,9 @@
1
- import type { CommunityId } from "./CommunityId";
2
- import type { InstanceId } from "./InstanceId";
3
- import type { PersonId } from "./PersonId";
4
1
  import type { PostId } from "./PostId";
5
2
  export interface PostAggregates {
6
- id: number;
7
3
  post_id: PostId;
8
4
  comments: number;
9
5
  score: number;
10
6
  upvotes: number;
11
7
  downvotes: number;
12
8
  published: string;
13
- newest_comment_time_necro: string;
14
- newest_comment_time: string;
15
- featured_community: boolean;
16
- featured_local: boolean;
17
- hot_rank: number;
18
- hot_rank_active: number;
19
- community_id: CommunityId;
20
- creator_id: PersonId;
21
- controversy_rank: number;
22
- instance_id: InstanceId;
23
9
  }
@@ -8,6 +8,8 @@ export interface PostView {
8
8
  creator: Person;
9
9
  community: Community;
10
10
  creator_banned_from_community: boolean;
11
+ creator_is_moderator: boolean;
12
+ creator_is_admin: boolean;
11
13
  counts: PostAggregates;
12
14
  subscribed: SubscribedType;
13
15
  saved: boolean;
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface PurgeComment {
3
3
  comment_id: CommentId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommunityId } from "./CommunityId";
2
2
  export interface PurgeCommunity {
3
3
  community_id: CommunityId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PersonId } from "./PersonId";
2
2
  export interface PurgePerson {
3
3
  person_id: PersonId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface PurgePost {
3
3
  post_id: PostId;
4
4
  reason?: string;
5
- auth: string;
6
5
  }
@@ -0,0 +1,10 @@
1
+ import type { ActivityId } from "./ActivityId";
2
+ import type { InstanceId } from "./InstanceId";
3
+ export interface ReadableFederationState {
4
+ instance_id: InstanceId;
5
+ last_successful_id?: ActivityId;
6
+ last_successful_published_time?: string;
7
+ fail_count: number;
8
+ last_retry?: string;
9
+ next_retry?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,5 +3,4 @@ export interface RemoveComment {
3
3
  comment_id: CommentId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- auth: string;
7
6
  }
@@ -3,6 +3,4 @@ export interface RemoveCommunity {
3
3
  community_id: CommunityId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- expires?: number;
7
- auth: string;
8
6
  }
@@ -3,5 +3,4 @@ export interface RemovePost {
3
3
  post_id: PostId;
4
4
  removed: boolean;
5
5
  reason?: string;
6
- auth: string;
7
6
  }
@@ -2,5 +2,4 @@ import type { CommentReportId } from "./CommentReportId";
2
2
  export interface ResolveCommentReport {
3
3
  report_id: CommentReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -1,4 +1,3 @@
1
1
  export interface ResolveObject {
2
2
  q: string;
3
- auth: string | null;
4
3
  }
@@ -2,5 +2,4 @@ import type { PostReportId } from "./PostReportId";
2
2
  export interface ResolvePostReport {
3
3
  report_id: PostReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PrivateMessageReportId } from "./PrivateMessageReportId";
2
2
  export interface ResolvePrivateMessageReport {
3
3
  report_id: PrivateMessageReportId;
4
4
  resolved: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { CommentId } from "./CommentId";
2
2
  export interface SaveComment {
3
3
  comment_id: CommentId;
4
4
  save: boolean;
5
- auth: string;
6
5
  }
@@ -2,5 +2,4 @@ import type { PostId } from "./PostId";
2
2
  export interface SavePost {
3
3
  post_id: PostId;
4
4
  save: boolean;
5
- auth: string;
6
5
  }
@@ -1,5 +1,6 @@
1
1
  import type { LanguageId } from "./LanguageId";
2
2
  import type { ListingType } from "./ListingType";
3
+ import type { PostListingMode } from "./PostListingMode";
3
4
  import type { SortType } from "./SortType";
4
5
  export interface SaveUserSettings {
5
6
  show_nsfw?: boolean;
@@ -21,10 +22,11 @@ export interface SaveUserSettings {
21
22
  bot_account?: boolean;
22
23
  show_bot_accounts?: boolean;
23
24
  show_read_posts?: boolean;
24
- show_new_post_notifs?: boolean;
25
25
  discussion_languages?: Array<LanguageId>;
26
- generate_totp_2fa?: boolean;
27
- auth: string;
28
26
  open_links_in_new_tab?: boolean;
29
27
  infinite_scroll_enabled?: boolean;
28
+ post_listing_mode?: PostListingMode;
29
+ enable_keyboard_navigation?: boolean;
30
+ enable_animated_images?: boolean;
31
+ collapse_bot_comments?: boolean;
30
32
  }
@@ -13,5 +13,4 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
- auth?: string;
17
16
  }
@@ -1,6 +1,5 @@
1
1
  import type { SiteId } from "./SiteId";
2
2
  export interface SiteAggregates {
3
- id: number;
4
3
  site_id: SiteId;
5
4
  users: number;
6
5
  posts: number;
@@ -1 +1 @@
1
- export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial";
1
+ export type SortType = "Active" | "Hot" | "New" | "Old" | "TopDay" | "TopWeek" | "TopMonth" | "TopYear" | "TopAll" | "MostComments" | "NewComments" | "TopHour" | "TopSixHour" | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" | "TopNineMonths" | "Controversial" | "Scaled";
@@ -0,0 +1,3 @@
1
+ export interface SuccessResponse {
2
+ success: boolean;
3
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ import type { Person } from "./Person";
2
+ export interface VoteView {
3
+ creator: Person;
4
+ score: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ 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.9",
3
+ "version": "0.19.2-alpha.1",
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",
@@ -30,20 +30,20 @@
30
30
  "form-data": "^4.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^20.1.2",
34
- "@typescript-eslint/eslint-plugin": "^5.59.5",
35
- "@typescript-eslint/parser": "^5.59.5",
36
- "eslint": "^8.40.0",
37
- "eslint-plugin-prettier": "^4.2.1",
33
+ "@types/node": "^20.10.0",
34
+ "@typescript-eslint/eslint-plugin": "^6.13.1",
35
+ "@typescript-eslint/parser": "^6.13.1",
36
+ "eslint": "^8.54.0",
37
+ "eslint-plugin-prettier": "^5.0.1",
38
38
  "husky": "^8.0.3",
39
- "lint-staged": "^13.2.2",
40
- "prettier": "^3.0.0",
39
+ "lint-staged": "^15.1.0",
40
+ "prettier": "^3.1.0",
41
41
  "prettier-plugin-import-sort": "^0.0.7",
42
- "prettier-plugin-organize-imports": "^3.2.2",
43
- "prettier-plugin-packagejson": "^2.4.3",
44
- "sortpack": "^2.3.4",
42
+ "prettier-plugin-organize-imports": "^3.2.4",
43
+ "prettier-plugin-packagejson": "^2.4.6",
44
+ "sortpack": "^2.3.5",
45
45
  "typedoc": "^0.24.7",
46
- "typescript": "^5.0.4"
46
+ "typescript": "^5.3.2"
47
47
  },
48
48
  "importSort": {
49
49
  ".js, .jsx, .ts, .tsx": {
@@ -1 +0,0 @@
1
- export type CommunityBlockId = number;
@@ -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 +0,0 @@
1
- export type DeleteAccountResponse = null;
@@ -1,5 +0,0 @@
1
- import type { CustomEmojiId } from "./CustomEmojiId";
2
- export interface DeleteCustomEmojiResponse {
3
- id: CustomEmojiId;
4
- success: boolean;
5
- }
@@ -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
- "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 GetUnreadCount {
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 GetUnreadRegistrationApplicationCount {
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 LeaveAdmin {
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 MarkAllAsRead {
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,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 +0,0 @@
1
- export type PasswordResetResponse = null;
@@ -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 +0,0 @@
1
- export type PersonSortType = "New" | "Old" | "MostComments" | "CommentScore" | "PostScore" | "PostCount";
@@ -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,3 +0,0 @@
1
- export interface PurgeItemResponse {
2
- success: 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,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 });
@@ -1 +0,0 @@
1
- export type VerifyEmailResponse = null;
@@ -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 });
package/dist/utils.d.ts DELETED
File without changes
package/dist/utils.js DELETED
File without changes
File without changes
File without changes
File without changes
File without changes