lemmy-js-client 1.0.0-api-updates-5.0 → 1.0.0-api-updates-6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/http.d.ts +41 -43
  2. package/dist/index.d.ts +1 -21
  3. package/dist/types/AdminListUsers.d.ts +0 -1
  4. package/dist/types/GetComments.d.ts +0 -1
  5. package/dist/types/GetFederatedInstances.d.ts +0 -1
  6. package/dist/types/GetModlog.d.ts +0 -1
  7. package/dist/types/GetPosts.d.ts +0 -1
  8. package/dist/types/ListCommentLikes.d.ts +0 -1
  9. package/dist/types/ListCommunities.d.ts +0 -1
  10. package/dist/types/ListCommunityPendingFollows.d.ts +0 -1
  11. package/dist/types/ListMedia.d.ts +0 -1
  12. package/dist/types/ListMultiCommunities.d.ts +0 -1
  13. package/dist/types/ListNotifications.d.ts +0 -1
  14. package/dist/types/ListPersonContent.d.ts +0 -1
  15. package/dist/types/ListPersonHidden.d.ts +0 -1
  16. package/dist/types/ListPersonLiked.d.ts +0 -1
  17. package/dist/types/ListPersonRead.d.ts +0 -1
  18. package/dist/types/ListPersonSaved.d.ts +0 -1
  19. package/dist/types/ListPostLikes.d.ts +0 -1
  20. package/dist/types/ListRegistrationApplications.d.ts +0 -1
  21. package/dist/types/ListReports.d.ts +0 -1
  22. package/dist/types/ListTaglines.d.ts +0 -1
  23. package/dist/types/PagedResponse.d.ts +11 -0
  24. package/dist/types/PaginationCursor.d.ts +5 -1
  25. package/dist/types/PluginMetadata.d.ts +2 -2
  26. package/dist/types/Search.d.ts +4 -1
  27. package/dist/types/SearchResponse.d.ts +11 -1
  28. package/package.json +2 -2
  29. package/dist/types/AdminListUsersResponse.d.ts +0 -10
  30. package/dist/types/GetCommentsResponse.d.ts +0 -10
  31. package/dist/types/GetCommentsResponse.js +0 -2
  32. package/dist/types/GetCommentsSlimResponse.d.ts +0 -10
  33. package/dist/types/GetCommentsSlimResponse.js +0 -2
  34. package/dist/types/GetFederatedInstancesResponse.d.ts +0 -10
  35. package/dist/types/GetFederatedInstancesResponse.js +0 -2
  36. package/dist/types/GetModlogResponse.d.ts +0 -13
  37. package/dist/types/GetModlogResponse.js +0 -2
  38. package/dist/types/GetPostsResponse.d.ts +0 -13
  39. package/dist/types/GetPostsResponse.js +0 -2
  40. package/dist/types/ListCommentLikesResponse.d.ts +0 -13
  41. package/dist/types/ListCommentLikesResponse.js +0 -2
  42. package/dist/types/ListCommunitiesResponse.d.ts +0 -13
  43. package/dist/types/ListCommunitiesResponse.js +0 -2
  44. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +0 -10
  45. package/dist/types/ListCommunityPendingFollowsResponse.js +0 -2
  46. package/dist/types/ListMediaResponse.d.ts +0 -10
  47. package/dist/types/ListMediaResponse.js +0 -2
  48. package/dist/types/ListMultiCommunitiesResponse.d.ts +0 -10
  49. package/dist/types/ListMultiCommunitiesResponse.js +0 -2
  50. package/dist/types/ListNotificationsResponse.d.ts +0 -13
  51. package/dist/types/ListNotificationsResponse.js +0 -2
  52. package/dist/types/ListPersonContentResponse.d.ts +0 -13
  53. package/dist/types/ListPersonContentResponse.js +0 -2
  54. package/dist/types/ListPersonHiddenResponse.d.ts +0 -13
  55. package/dist/types/ListPersonHiddenResponse.js +0 -2
  56. package/dist/types/ListPersonLikedResponse.d.ts +0 -13
  57. package/dist/types/ListPersonLikedResponse.js +0 -2
  58. package/dist/types/ListPersonReadResponse.d.ts +0 -13
  59. package/dist/types/ListPersonReadResponse.js +0 -2
  60. package/dist/types/ListPersonSavedResponse.d.ts +0 -13
  61. package/dist/types/ListPersonSavedResponse.js +0 -2
  62. package/dist/types/ListPostLikesResponse.d.ts +0 -13
  63. package/dist/types/ListPostLikesResponse.js +0 -2
  64. package/dist/types/ListRegistrationApplicationsResponse.d.ts +0 -13
  65. package/dist/types/ListRegistrationApplicationsResponse.js +0 -2
  66. package/dist/types/ListReportsResponse.d.ts +0 -13
  67. package/dist/types/ListReportsResponse.js +0 -2
  68. package/dist/types/ListTaglinesResponse.d.ts +0 -13
  69. package/dist/types/ListTaglinesResponse.js +0 -2
  70. /package/dist/types/{AdminListUsersResponse.js → PagedResponse.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -51,20 +51,14 @@ import { OAuthProvider } from "./types/OAuthProvider";
51
51
  import { FeaturePost } from "./types/FeaturePost";
52
52
  import { FollowCommunity } from "./types/FollowCommunity";
53
53
  import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
54
- import { GetCommentsResponse } from "./types/GetCommentsResponse";
55
54
  import { GetCommunityResponse } from "./types/GetCommunityResponse";
56
- import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
57
- import { GetModlogResponse } from "./types/GetModlogResponse";
58
55
  import { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
59
56
  import { GetPostResponse } from "./types/GetPostResponse";
60
- import { GetPostsResponse } from "./types/GetPostsResponse";
61
57
  import { GetReportCountResponse } from "./types/GetReportCountResponse";
62
58
  import { GetSiteMetadataResponse } from "./types/GetSiteMetadataResponse";
63
59
  import { GetSiteResponse } from "./types/GetSiteResponse";
64
60
  import { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
65
61
  import { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
66
- import { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
67
- import { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
68
62
  import { LockPost } from "./types/LockPost";
69
63
  import { LockComment } from "./types/LockComment";
70
64
  import { Login } from "./types/Login";
@@ -101,52 +95,56 @@ import { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
101
95
  import { UpdateTotp } from "./types/UpdateTotp";
102
96
  import { UpdateTotpResponse } from "./types/UpdateTotpResponse";
103
97
  import { SuccessResponse } from "./types/SuccessResponse";
104
- import { ListPostLikesResponse } from "./types/ListPostLikesResponse";
105
- import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
106
98
  import { HidePost } from "./types/HidePost";
107
- import { ListMediaResponse } from "./types/ListMediaResponse";
108
99
  import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
109
100
  import { CreateTagline } from "./types/CreateTagline";
110
101
  import { TaglineResponse } from "./types/TaglineResponse";
111
102
  import { UpdateTagline } from "./types/UpdateTagline";
112
103
  import { DeleteTagline } from "./types/DeleteTagline";
113
- import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
114
104
  import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
115
105
  import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
116
106
  import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
117
- import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
118
- import { ListReportsResponse } from "./types/ListReportsResponse";
119
107
  import { MyUserInfo } from "./types/MyUserInfo";
120
108
  import { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
121
109
  import { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
122
- import { ListPersonContentResponse } from "./types/ListPersonContentResponse";
123
- import { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
124
110
  import { UploadImageResponse } from "./types/UploadImageResponse";
125
- import { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
126
111
  import { Tag } from "./types/Tag";
127
112
  import { ResendVerificationEmail } from "./types/ResendVerificationEmail";
128
- import { ListPersonReadResponse } from "./types/ListPersonReadResponse";
129
- import { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
130
113
  import { CommunityIdQuery } from "./types/CommunityIdQuery";
131
114
  import { CreateMultiCommunity } from "./types/CreateMultiCommunity";
132
115
  import { UpdateMultiCommunity } from "./types/UpdateMultiCommunity";
133
- import { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
134
- import { AdminListUsersResponse } from "./types/AdminListUsersResponse";
135
116
  import { CreateOrDeleteMultiCommunityEntry } from "./types/CreateOrDeleteMultiCommunityEntry";
136
117
  import { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
137
118
  import { FollowMultiCommunity } from "./types/FollowMultiCommunity";
138
119
  import { ListLoginsResponse } from "./types/ListLoginsResponse";
139
- import { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
140
120
  import { NotePerson } from "./types/NotePerson";
141
121
  import { UserBlockInstanceCommunitiesParams } from "./types/UserBlockInstanceCommunitiesParams";
142
122
  import { UserBlockInstancePersonsParams } from "./types/UserBlockInstancePersonsParams";
143
123
  import { MarkNotificationAsRead } from "./types/MarkNotificationAsRead";
144
- import { ListNotificationsResponse } from "./types/ListNotificationsResponse";
145
124
  import { ModEditPost } from "./types/ModEditPost";
146
125
  import { UpdateCommunityNotifications } from "./types/UpdateCommunityNotifications";
147
126
  import { UpdatePostNotifications } from "./types/UpdatePostNotifications";
148
127
  import { MultiCommunityResponse } from "./types/MultiCommunityResponse";
149
128
  import { PersonResponse } from "./types/PersonResponse";
129
+ import { LocalImageView } from "./types/LocalImageView";
130
+ import { PagedResponse } from "./types/PagedResponse";
131
+ import { ModlogView } from "./types/ModlogView";
132
+ import { CommunityView } from "./types/CommunityView";
133
+ import { PendingFollowerView } from "./types/PendingFollowerView";
134
+ import { PostView } from "./types/PostView";
135
+ import { VoteView } from "./types/VoteView";
136
+ import { CommentView } from "./types/CommentView";
137
+ import { CommentSlimView } from "./types/CommentSlimView";
138
+ import { PersonContentCombinedView } from "./types/PersonContentCombinedView";
139
+ import { LocalUserView } from "./types/LocalUserView";
140
+ import { PersonSavedCombinedView } from "./types/PersonSavedCombinedView";
141
+ import { NotificationView } from "./types/NotificationView";
142
+ import { PersonLikedCombinedView } from "./types/PersonLikedCombinedView";
143
+ import { RegistrationApplicationView } from "./types/RegistrationApplicationView";
144
+ import { Tagline } from "./types/Tagline";
145
+ import { ReportCombinedView } from "./types/ReportCombinedView";
146
+ import { FederatedInstanceView } from "./types/FederatedInstanceView";
147
+ import { MultiCommunityView } from "./types/MultiCommunityView";
150
148
  type RequestOptions = Pick<RequestInit, "signal">;
151
149
  /**
152
150
  * Helps build lemmy HTTP requests.
@@ -213,7 +211,7 @@ export declare class LemmyHttp extends Controller {
213
211
  /**
214
212
  * @summary List all the media for your account.
215
213
  */
216
- listMedia(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
214
+ listMedia(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
217
215
  /**
218
216
  * @summary Delete media for your account.
219
217
  */
@@ -225,7 +223,7 @@ export declare class LemmyHttp extends Controller {
225
223
  /**
226
224
  * @summary List all the media known to your instance.
227
225
  */
228
- listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<ListMediaResponse>;
226
+ listMediaAdmin(form?: ListMediaI, options?: RequestOptions): Promise<PagedResponse<LocalImageView>>;
229
227
  /**
230
228
  * @summary Enable / Disable TOTP / two-factor authentication.
231
229
  *
@@ -237,7 +235,7 @@ export declare class LemmyHttp extends Controller {
237
235
  /**
238
236
  * @summary Get the modlog.
239
237
  */
240
- getModlog(form?: GetModlogI, options?: RequestOptions): Promise<GetModlogResponse>;
238
+ getModlog(form?: GetModlogI, options?: RequestOptions): Promise<PagedResponse<ModlogView>>;
241
239
  /**
242
240
  * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
243
241
  */
@@ -261,7 +259,7 @@ export declare class LemmyHttp extends Controller {
261
259
  /**
262
260
  * @summary List communities, with various filters.
263
261
  */
264
- listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<ListCommunitiesResponse>;
262
+ listCommunities(form?: ListCommunitiesI, options?: RequestOptions): Promise<PagedResponse<CommunityView>>;
265
263
  /**
266
264
  * @summary Follow / subscribe to a community.
267
265
  */
@@ -273,7 +271,7 @@ export declare class LemmyHttp extends Controller {
273
271
  /**
274
272
  * @summary Get a community's pending followers.
275
273
  */
276
- listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<ListCommunityPendingFollowsResponse>;
274
+ listCommunityPendingFollows(form: ListCommunityPendingFollowsI, options?: RequestOptions): Promise<PagedResponse<PendingFollowerView>>;
277
275
  /**
278
276
  * @summary Approve a community pending follow request.
279
277
  */
@@ -365,7 +363,7 @@ export declare class LemmyHttp extends Controller {
365
363
  /**
366
364
  * @summary Get / fetch posts, with various filters.
367
365
  */
368
- getPosts(form?: GetPostsI, options?: RequestOptions): Promise<GetPostsResponse>;
366
+ getPosts(form?: GetPostsI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
369
367
  /**
370
368
  * @summary Like / vote on a post.
371
369
  */
@@ -373,7 +371,7 @@ export declare class LemmyHttp extends Controller {
373
371
  /**
374
372
  * @summary List a post's likes. Admin-only.
375
373
  */
376
- listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<ListPostLikesResponse>;
374
+ listPostLikes(form: ListPostLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
377
375
  /**
378
376
  * @summary Save a post.
379
377
  */
@@ -417,7 +415,7 @@ export declare class LemmyHttp extends Controller {
417
415
  /**
418
416
  * @summary List a comment's likes. Admin-only.
419
417
  */
420
- listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<ListCommentLikesResponse>;
418
+ listCommentLikes(form: ListCommentLikesI, options?: RequestOptions): Promise<PagedResponse<VoteView>>;
421
419
  /**
422
420
  * @summary Save a comment.
423
421
  */
@@ -429,11 +427,11 @@ export declare class LemmyHttp extends Controller {
429
427
  /**
430
428
  * @summary Get / fetch comments.
431
429
  */
432
- getComments(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsResponse>;
430
+ getComments(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentView>>;
433
431
  /**
434
432
  * @summary Get / fetch comments, but without the post or community.
435
433
  */
436
- getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<GetCommentsSlimResponse>;
434
+ getCommentsSlim(form?: GetCommentsI, options?: RequestOptions): Promise<PagedResponse<CommentSlimView>>;
437
435
  /**
438
436
  * @summary Get / fetch comment.
439
437
  */
@@ -485,7 +483,7 @@ export declare class LemmyHttp extends Controller {
485
483
  /**
486
484
  * @summary List the content for a person.
487
485
  */
488
- listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<ListPersonContentResponse>;
486
+ listPersonContent(form?: ListPersonContentI, options?: RequestOptions): Promise<PagedResponse<PersonContentCombinedView>>;
489
487
  /**
490
488
  * @summary Make a note for a person.
491
489
  */
@@ -497,7 +495,7 @@ export declare class LemmyHttp extends Controller {
497
495
  /**
498
496
  * @summary Get a list of users.
499
497
  */
500
- listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<AdminListUsersResponse>;
498
+ listUsers(form?: AdminListUsersI, options?: RequestOptions): Promise<PagedResponse<LocalUserView>>;
501
499
  /**
502
500
  * @summary Block a person.
503
501
  */
@@ -545,7 +543,7 @@ export declare class LemmyHttp extends Controller {
545
543
  /**
546
544
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
547
545
  */
548
- listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<ListNotificationsResponse>;
546
+ listNotifications(form: ListNotificationsI, options?: RequestOptions): Promise<PagedResponse<NotificationView>>;
549
547
  /**
550
548
  * @summary Verify your email
551
549
  */
@@ -557,19 +555,19 @@ export declare class LemmyHttp extends Controller {
557
555
  /**
558
556
  * @summary List your saved content.
559
557
  */
560
- listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<ListPersonSavedResponse>;
558
+ listPersonSaved(form: ListPersonSavedI, options?: RequestOptions): Promise<PagedResponse<PersonSavedCombinedView>>;
561
559
  /**
562
560
  * @summary List your read content.
563
561
  */
564
- listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<ListPersonReadResponse>;
562
+ listPersonRead(form: ListPersonReadI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
565
563
  /**
566
564
  * @summary List your hidden content.
567
565
  */
568
- listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<ListPersonHiddenResponse>;
566
+ listPersonHidden(form: ListPersonHiddenI, options?: RequestOptions): Promise<PagedResponse<PostView>>;
569
567
  /**
570
568
  * @summary List your liked content.
571
569
  */
572
- listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<ListPersonLikedResponse>;
570
+ listPersonLiked(form: ListPersonLikedI, options?: RequestOptions): Promise<PagedResponse<PersonLikedCombinedView>>;
573
571
  /**
574
572
  * @summary Add an admin to your site.
575
573
  */
@@ -581,7 +579,7 @@ export declare class LemmyHttp extends Controller {
581
579
  /**
582
580
  * @summary List the registration applications.
583
581
  */
584
- listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<ListRegistrationApplicationsResponse>;
582
+ listRegistrationApplications(form: ListRegistrationApplicationsI, options?: RequestOptions): Promise<PagedResponse<RegistrationApplicationView>>;
585
583
  /**
586
584
  * @summary Approve a registration application
587
585
  */
@@ -637,7 +635,7 @@ export declare class LemmyHttp extends Controller {
637
635
  /**
638
636
  * @summary List taglines.
639
637
  */
640
- listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<ListTaglinesResponse>;
638
+ listTaglines(form: ListTaglinesI, options?: RequestOptions): Promise<PagedResponse<Tagline>>;
641
639
  /**
642
640
  * @summary Create a community post tag.
643
641
  */
@@ -669,11 +667,11 @@ export declare class LemmyHttp extends Controller {
669
667
  /**
670
668
  * @summary Fetch federated instances.
671
669
  */
672
- getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
670
+ getFederatedInstances(form: GetFederatedInstancesI, options?: RequestOptions): Promise<PagedResponse<FederatedInstanceView>>;
673
671
  /**
674
672
  * @summary List user reports.
675
673
  */
676
- listReports(form: ListReportsI, options?: RequestOptions): Promise<ListReportsResponse>;
674
+ listReports(form: ListReportsI, options?: RequestOptions): Promise<PagedResponse<ReportCombinedView>>;
677
675
  /**
678
676
  * @summary Block an instance's communities as a user.
679
677
  */
@@ -755,7 +753,7 @@ export declare class LemmyHttp extends Controller {
755
753
  getMultiCommunity(form: GetMultiCommunityI, options?: RequestOptions): Promise<GetMultiCommunityResponse>;
756
754
  createMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<CommunityResponse>;
757
755
  deleteMultiCommunityEntry(form: CreateOrDeleteMultiCommunityEntry, options?: RequestOptions): Promise<SuccessResponse>;
758
- listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<ListMultiCommunitiesResponse>;
756
+ listMultiCommunities(form: ListMultiCommunitiesI, options?: RequestOptions): Promise<PagedResponse<MultiCommunityView>>;
759
757
  followMultiCommunity(form: FollowMultiCommunity, options?: RequestOptions): Promise<MultiCommunityResponse>;
760
758
  /**
761
759
  * @summary Change notification settings for a community
package/dist/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export { AddModToCommunityResponse } from "./types/AddModToCommunityResponse";
8
8
  export { AdminAllowInstanceParams } from "./types/AdminAllowInstanceParams";
9
9
  export { AdminBlockInstanceParams } from "./types/AdminBlockInstanceParams";
10
10
  export { AdminListUsers } from "./types/AdminListUsers";
11
- export { AdminListUsersResponse } from "./types/AdminListUsersResponse";
12
11
  export { AllLemmyErrors } from "./types/AllLemmyErrors";
13
12
  export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
14
13
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
@@ -100,16 +99,12 @@ export { GenerateTotpSecretResponse } from "./types/GenerateTotpSecretResponse";
100
99
  export { GetCaptchaResponse } from "./types/GetCaptchaResponse";
101
100
  export { GetComment } from "./types/GetComment";
102
101
  export { GetComments } from "./types/GetComments";
103
- export { GetCommentsResponse } from "./types/GetCommentsResponse";
104
- export { GetCommentsSlimResponse } from "./types/GetCommentsSlimResponse";
105
102
  export { GetCommunity } from "./types/GetCommunity";
106
103
  export { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
107
104
  export { GetCommunityResponse } from "./types/GetCommunityResponse";
108
105
  export { GetFederatedInstances } from "./types/GetFederatedInstances";
109
106
  export { GetFederatedInstancesKind } from "./types/GetFederatedInstancesKind";
110
- export { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse";
111
107
  export { GetModlog } from "./types/GetModlog";
112
- export { GetModlogResponse } from "./types/GetModlogResponse";
113
108
  export { GetMultiCommunity } from "./types/GetMultiCommunity";
114
109
  export { GetMultiCommunityResponse } from "./types/GetMultiCommunityResponse";
115
110
  export { GetPersonDetails } from "./types/GetPersonDetails";
@@ -117,7 +112,6 @@ export { GetPersonDetailsResponse } from "./types/GetPersonDetailsResponse";
117
112
  export { GetPost } from "./types/GetPost";
118
113
  export { GetPostResponse } from "./types/GetPostResponse";
119
114
  export { GetPosts } from "./types/GetPosts";
120
- export { GetPostsResponse } from "./types/GetPostsResponse";
121
115
  export { GetRandomCommunity } from "./types/GetRandomCommunity";
122
116
  export { GetRegistrationApplication } from "./types/GetRegistrationApplication";
123
117
  export { GetReportCount } from "./types/GetReportCount";
@@ -142,38 +136,23 @@ export { LemmyErrorType } from "./types/LemmyErrorType";
142
136
  export { LikeType } from "./types/LikeType";
143
137
  export { LinkMetadata } from "./types/LinkMetadata";
144
138
  export { ListCommentLikes } from "./types/ListCommentLikes";
145
- export { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
146
139
  export { ListCommunities } from "./types/ListCommunities";
147
- export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
148
140
  export { ListCommunityPendingFollows } from "./types/ListCommunityPendingFollows";
149
- export { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
150
141
  export { ListCustomEmojis } from "./types/ListCustomEmojis";
151
142
  export { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
152
143
  export { ListLoginsResponse } from "./types/ListLoginsResponse";
153
144
  export { ListMedia } from "./types/ListMedia";
154
- export { ListMediaResponse } from "./types/ListMediaResponse";
155
145
  export { ListMultiCommunities } from "./types/ListMultiCommunities";
156
- export { ListMultiCommunitiesResponse } from "./types/ListMultiCommunitiesResponse";
157
146
  export { ListNotifications } from "./types/ListNotifications";
158
- export { ListNotificationsResponse } from "./types/ListNotificationsResponse";
159
147
  export { ListPersonContent } from "./types/ListPersonContent";
160
- export { ListPersonContentResponse } from "./types/ListPersonContentResponse";
161
148
  export { ListPersonHidden } from "./types/ListPersonHidden";
162
- export { ListPersonHiddenResponse } from "./types/ListPersonHiddenResponse";
163
149
  export { ListPersonLiked } from "./types/ListPersonLiked";
164
- export { ListPersonLikedResponse } from "./types/ListPersonLikedResponse";
165
150
  export { ListPersonRead } from "./types/ListPersonRead";
166
- export { ListPersonReadResponse } from "./types/ListPersonReadResponse";
167
151
  export { ListPersonSaved } from "./types/ListPersonSaved";
168
- export { ListPersonSavedResponse } from "./types/ListPersonSavedResponse";
169
152
  export { ListPostLikes } from "./types/ListPostLikes";
170
- export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
171
153
  export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
172
- export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
173
154
  export { ListReports } from "./types/ListReports";
174
- export { ListReportsResponse } from "./types/ListReportsResponse";
175
155
  export { ListTaglines } from "./types/ListTaglines";
176
- export { ListTaglinesResponse } from "./types/ListTaglinesResponse";
177
156
  export { ListingType } from "./types/ListingType";
178
157
  export { LocalImage } from "./types/LocalImage";
179
158
  export { LocalImageView } from "./types/LocalImageView";
@@ -217,6 +196,7 @@ export { OAuthAccount } from "./types/OAuthAccount";
217
196
  export { OAuthProvider } from "./types/OAuthProvider";
218
197
  export { OAuthProviderId } from "./types/OAuthProviderId";
219
198
  export { OpenGraphData } from "./types/OpenGraphData";
199
+ export { PagedResponse } from "./types/PagedResponse";
220
200
  export { PaginationCursor } from "./types/PaginationCursor";
221
201
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
222
202
  export { PasswordReset } from "./types/PasswordReset";
@@ -2,6 +2,5 @@ import type { PaginationCursor } from "./PaginationCursor";
2
2
  export type AdminListUsers = {
3
3
  banned_only?: boolean;
4
4
  page_cursor?: PaginationCursor;
5
- page_back?: boolean;
6
5
  limit?: number;
7
6
  };
@@ -17,7 +17,6 @@ export type GetComments = {
17
17
  time_range_seconds?: number;
18
18
  max_depth?: number;
19
19
  page_cursor?: PaginationCursor;
20
- page_back?: boolean;
21
20
  limit?: number;
22
21
  community_id?: CommunityId;
23
22
  community_name?: string;
@@ -4,6 +4,5 @@ export type GetFederatedInstances = {
4
4
  domain_filter?: string;
5
5
  kind: GetFederatedInstancesKind;
6
6
  page_cursor?: PaginationCursor;
7
- page_back?: boolean;
8
7
  limit?: number;
9
8
  };
@@ -39,6 +39,5 @@ export type GetModlog = {
39
39
  */
40
40
  comment_id?: CommentId;
41
41
  page_cursor?: PaginationCursor;
42
- page_back?: boolean;
43
42
  limit?: number;
44
43
  };
@@ -41,6 +41,5 @@ export type GetPosts = {
41
41
  */
42
42
  no_comments_only?: boolean;
43
43
  page_cursor?: PaginationCursor;
44
- page_back?: boolean;
45
44
  limit?: number;
46
45
  };
@@ -6,6 +6,5 @@ import type { PaginationCursor } from "./PaginationCursor";
6
6
  export type ListCommentLikes = {
7
7
  comment_id: CommentId;
8
8
  page_cursor?: PaginationCursor;
9
- page_back?: boolean;
10
9
  limit?: number;
11
10
  };
@@ -14,6 +14,5 @@ export type ListCommunities = {
14
14
  time_range_seconds?: number;
15
15
  show_nsfw?: boolean;
16
16
  page_cursor?: PaginationCursor;
17
- page_back?: boolean;
18
17
  limit?: number;
19
18
  };
@@ -6,6 +6,5 @@ export type ListCommunityPendingFollows = {
6
6
  unread_only?: boolean;
7
7
  all_communities?: boolean;
8
8
  page_cursor?: PaginationCursor;
9
- page_back?: boolean;
10
9
  limit?: number;
11
10
  };
@@ -4,6 +4,5 @@ import type { PaginationCursor } from "./PaginationCursor";
4
4
  */
5
5
  export type ListMedia = {
6
6
  page_cursor?: PaginationCursor;
7
- page_back?: boolean;
8
7
  limit?: number;
9
8
  };
@@ -12,6 +12,5 @@ export type ListMultiCommunities = {
12
12
  */
13
13
  time_range_seconds?: number;
14
14
  page_cursor?: PaginationCursor;
15
- page_back?: boolean;
16
15
  limit?: number;
17
16
  };
@@ -7,6 +7,5 @@ export type ListNotifications = {
7
7
  type_?: NotificationDataType;
8
8
  unread_only?: boolean;
9
9
  page_cursor?: PaginationCursor;
10
- page_back?: boolean;
11
10
  limit?: number;
12
11
  };
@@ -14,6 +14,5 @@ export type ListPersonContent = {
14
14
  */
15
15
  username?: string;
16
16
  page_cursor?: PaginationCursor;
17
- page_back?: boolean;
18
17
  limit?: number;
19
18
  };
@@ -4,6 +4,5 @@ import type { PaginationCursor } from "./PaginationCursor";
4
4
  */
5
5
  export type ListPersonHidden = {
6
6
  page_cursor?: PaginationCursor;
7
- page_back?: boolean;
8
7
  limit?: number;
9
8
  };
@@ -8,6 +8,5 @@ export type ListPersonLiked = {
8
8
  type_?: PersonContentType;
9
9
  like_type?: LikeType;
10
10
  page_cursor?: PaginationCursor;
11
- page_back?: boolean;
12
11
  limit?: number;
13
12
  };
@@ -4,6 +4,5 @@ import type { PaginationCursor } from "./PaginationCursor";
4
4
  */
5
5
  export type ListPersonRead = {
6
6
  page_cursor?: PaginationCursor;
7
- page_back?: boolean;
8
7
  limit?: number;
9
8
  };
@@ -6,6 +6,5 @@ import type { PersonContentType } from "./PersonContentType";
6
6
  export type ListPersonSaved = {
7
7
  type_?: PersonContentType;
8
8
  page_cursor?: PaginationCursor;
9
- page_back?: boolean;
10
9
  limit?: number;
11
10
  };
@@ -6,6 +6,5 @@ import type { PostId } from "./PostId";
6
6
  export type ListPostLikes = {
7
7
  post_id: PostId;
8
8
  page_cursor?: PaginationCursor;
9
- page_back?: boolean;
10
9
  limit?: number;
11
10
  };
@@ -8,6 +8,5 @@ export type ListRegistrationApplications = {
8
8
  */
9
9
  unread_only?: boolean;
10
10
  page_cursor?: PaginationCursor;
11
- page_back?: boolean;
12
11
  limit?: number;
13
12
  };
@@ -23,7 +23,6 @@ export type ListReports = {
23
23
  */
24
24
  community_id?: CommunityId;
25
25
  page_cursor?: PaginationCursor;
26
- page_back?: boolean;
27
26
  limit?: number;
28
27
  /**
29
28
  * Only for admins: also show reports with `violates_instance_rules=false`
@@ -4,6 +4,5 @@ import type { PaginationCursor } from "./PaginationCursor";
4
4
  */
5
5
  export type ListTaglines = {
6
6
  page_cursor?: PaginationCursor;
7
- page_back?: boolean;
8
7
  limit?: number;
9
8
  };
@@ -0,0 +1,11 @@
1
+ import type { PaginationCursor } from "./PaginationCursor";
2
+ /**
3
+ * This response contains only a single page of items. To get the next page, take the
4
+ * cursor string from `next_page` and pass it to the same API endpoint via `page_cursor`
5
+ * parameter. For going to the previous page, use `prev_page` instead.
6
+ */
7
+ export type PagedResponse<T> = {
8
+ data: Array<T>;
9
+ next_page?: PaginationCursor;
10
+ prev_page?: PaginationCursor;
11
+ };
@@ -1,4 +1,8 @@
1
1
  /**
2
- * A pagination cursor
2
+ * To get the next or previous page, pass this string unchanged as `page_cursor` in a new request
3
+ * to the same endpoint.
4
+ *
5
+ * Do not attempt to parse or modify the cursor string. The format is internal and may change in
6
+ * minor Lemmy versions.
3
7
  */
4
8
  export type PaginationCursor = string;
@@ -1,5 +1,5 @@
1
1
  export type PluginMetadata = {
2
2
  name: string;
3
- url: string;
4
- description: string;
3
+ url?: string;
4
+ description?: string;
5
5
  };
@@ -8,6 +8,10 @@ import type { SearchType } from "./SearchType";
8
8
  * Searches the site, given a search term, and some optional filters.
9
9
  */
10
10
  export type Search = {
11
+ /**
12
+ * The search query. Can be a plain text, or an object ID which will be resolved
13
+ * (eg `https://lemmy.world/comment/1` or `!fediverse@lemmy.ml`).
14
+ */
11
15
  q: string;
12
16
  community_id?: CommunityId;
13
17
  community_name?: string;
@@ -29,6 +33,5 @@ export type Search = {
29
33
  */
30
34
  show_nsfw?: boolean;
31
35
  page_cursor?: PaginationCursor;
32
- page_back?: boolean;
33
36
  limit?: number;
34
37
  };
@@ -4,7 +4,17 @@ import type { SearchCombinedView } from "./SearchCombinedView";
4
4
  * The search response, containing lists of the return type possibilities
5
5
  */
6
6
  export type SearchResponse = {
7
- results: Array<SearchCombinedView>;
7
+ /**
8
+ * If `Search.q` contains an ActivityPub ID (eg `https://lemmy.world/comment/1`) or an
9
+ * identifier (eg `!fediverse@lemmy.ml`) then this field contains the resolved object.
10
+ * It should always be shown above other search results.
11
+ */
12
+ resolve?: SearchCombinedView;
13
+ /**
14
+ * Items which contain the search string in post body, comment text, community sidebar etc.
15
+ * This is always empty when calling `/api/v4/resolve_object`
16
+ */
17
+ search: Array<SearchCombinedView>;
8
18
  /**
9
19
  * the pagination cursor to use to fetch the next page
10
20
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "1.0.0-api-updates-5.0",
4
+ "version": "1.0.0-api-updates-6.1",
5
5
  "author": "Dessalines",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "typescript": "^5.5.4",
45
45
  "typescript-eslint": "^8.7.0"
46
46
  },
47
- "packageManager": "pnpm@10.20.0",
47
+ "packageManager": "pnpm@10.24.0",
48
48
  "types": "./dist/index.d.ts",
49
49
  "lint-staged": {
50
50
  "*.{ts,tsx,js}": [
@@ -1,10 +0,0 @@
1
- import type { LocalUserView } from "./LocalUserView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- export type AdminListUsersResponse = {
4
- users: Array<LocalUserView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,10 +0,0 @@
1
- import type { CommentView } from "./CommentView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The comment list response.
5
- */
6
- export type GetCommentsResponse = {
7
- comments: Array<CommentView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { CommentSlimView } from "./CommentSlimView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * A slimmer comment list response, without the post or community.
5
- */
6
- export type GetCommentsSlimResponse = {
7
- comments: Array<CommentSlimView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { FederatedInstanceView } from "./FederatedInstanceView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * A response of federated instances.
5
- */
6
- export type GetFederatedInstancesResponse = {
7
- federated_instances: Array<FederatedInstanceView>;
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { ModlogView } from "./ModlogView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The modlog fetch response.
5
- */
6
- export type GetModlogResponse = {
7
- modlog: Array<ModlogView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PostView } from "./PostView";
3
- /**
4
- * The post list response.
5
- */
6
- export type GetPostsResponse = {
7
- posts: Array<PostView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { VoteView } from "./VoteView";
3
- /**
4
- * The comment likes response
5
- */
6
- export type ListCommentLikesResponse = {
7
- comment_likes: Array<VoteView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { CommunityView } from "./CommunityView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * The response for listing communities.
5
- */
6
- export type ListCommunitiesResponse = {
7
- communities: Array<CommunityView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PendingFollowerView } from "./PendingFollowerView";
3
- export type ListCommunityPendingFollowsResponse = {
4
- items: Array<PendingFollowerView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { LocalImageView } from "./LocalImageView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- export type ListMediaResponse = {
4
- images: Array<LocalImageView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { MultiCommunityView } from "./MultiCommunityView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- export type ListMultiCommunitiesResponse = {
4
- multi_communities: Array<MultiCommunityView>;
5
- /**
6
- * the pagination cursor to use to fetch the next page
7
- */
8
- next_page?: PaginationCursor;
9
- prev_page?: PaginationCursor;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { NotificationView } from "./NotificationView";
2
- import type { PaginationCursor } from "./PaginationCursor";
3
- /**
4
- * Get your inbox (replies, comment mentions, post mentions, and messages)
5
- */
6
- export type ListNotificationsResponse = {
7
- notifications: Array<NotificationView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonContentCombinedView } from "./PersonContentCombinedView";
3
- /**
4
- * A person's content response.
5
- */
6
- export type ListPersonContentResponse = {
7
- content: Array<PersonContentCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PostView } from "./PostView";
3
- /**
4
- * You hidden posts response.
5
- */
6
- export type ListPersonHiddenResponse = {
7
- hidden: Array<PostView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonLikedCombinedView } from "./PersonLikedCombinedView";
3
- /**
4
- * Your liked posts response.
5
- */
6
- export type ListPersonLikedResponse = {
7
- liked: Array<PersonLikedCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PostView } from "./PostView";
3
- /**
4
- * You read posts response.
5
- */
6
- export type ListPersonReadResponse = {
7
- read: Array<PostView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { PersonSavedCombinedView } from "./PersonSavedCombinedView";
3
- /**
4
- * A person's saved content response.
5
- */
6
- export type ListPersonSavedResponse = {
7
- saved: Array<PersonSavedCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { VoteView } from "./VoteView";
3
- /**
4
- * The post likes response
5
- */
6
- export type ListPostLikesResponse = {
7
- post_likes: Array<VoteView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { RegistrationApplicationView } from "./RegistrationApplicationView";
3
- /**
4
- * The list of registration applications.
5
- */
6
- export type ListRegistrationApplicationsResponse = {
7
- registration_applications: Array<RegistrationApplicationView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { ReportCombinedView } from "./ReportCombinedView";
3
- /**
4
- * The post reports response.
5
- */
6
- export type ListReportsResponse = {
7
- reports: Array<ReportCombinedView>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import type { PaginationCursor } from "./PaginationCursor";
2
- import type { Tagline } from "./Tagline";
3
- /**
4
- * A response for taglines.
5
- */
6
- export type ListTaglinesResponse = {
7
- taglines: Array<Tagline>;
8
- /**
9
- * the pagination cursor to use to fetch the next page
10
- */
11
- next_page?: PaginationCursor;
12
- prev_page?: PaginationCursor;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });