@blorp-labs/piefed-api-client 0.0.0-a79b844 → 0.0.0-cc3101d

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.
@@ -1,231 +1,20 @@
1
- declare const allFns: {
2
- getPostApiAlphaDomainBlockUrl: () => string;
3
- postApiAlphaDomainBlock: (domainBlockRequest: import("./schemas").DomainBlockRequest, options?: RequestInit) => Promise<import("./schemas").DomainBlockResponse>;
4
- getGetApiAlphaUserUrl: (params?: import("./schemas").GetApiAlphaUserParams) => string;
5
- getApiAlphaUser: (params?: import("./schemas").GetApiAlphaUserParams, options?: RequestInit) => Promise<import("./schemas").GetUserResponse>;
6
- getGetApiAlphaUserMeUrl: () => string;
7
- getApiAlphaUserMe: (options?: RequestInit) => Promise<import("./schemas").UserMeResponse>;
8
- getPostApiAlphaUserLoginUrl: () => string;
9
- postApiAlphaUserLogin: (userLoginRequest: import("./schemas").UserLoginRequest, options?: RequestInit) => Promise<import("./schemas").UserLoginResponse>;
10
- getGetApiAlphaUserUnreadCountUrl: () => string;
11
- getApiAlphaUserUnreadCount: (options?: RequestInit) => Promise<import("./schemas").UserUnreadCountsResponse>;
12
- getGetApiAlphaUserRepliesUrl: (params?: import("./schemas").GetApiAlphaUserRepliesParams) => string;
13
- getApiAlphaUserReplies: (params?: import("./schemas").GetApiAlphaUserRepliesParams, options?: RequestInit) => Promise<import("./schemas").UserRepliesResponse>;
14
- getGetApiAlphaUserMentionsUrl: (params?: import("./schemas").GetApiAlphaUserMentionsParams) => string;
15
- getApiAlphaUserMentions: (params?: import("./schemas").GetApiAlphaUserMentionsParams, options?: RequestInit) => Promise<import("./schemas").UserMentionsResponse>;
16
- getGetApiAlphaUserMediaUrl: (params?: import("./schemas").GetApiAlphaUserMediaParams) => string;
17
- getApiAlphaUserMedia: (params?: import("./schemas").GetApiAlphaUserMediaParams, options?: RequestInit) => Promise<import("./schemas").UserMediaResponse>;
18
- getPostApiAlphaUserBlockUrl: () => string;
19
- postApiAlphaUserBlock: (userBlockRequest: import("./schemas").UserBlockRequest, options?: RequestInit) => Promise<import("./schemas").UserBlockResponse>;
20
- getPostApiAlphaUserMarkAllAsReadUrl: () => string;
21
- postApiAlphaUserMarkAllAsRead: (options?: RequestInit) => Promise<import("./schemas").UserMarkAllReadResponse>;
22
- getPutApiAlphaUserSubscribeUrl: () => string;
23
- putApiAlphaUserSubscribe: (userSubscribeRequest: import("./schemas").UserSubscribeRequest, options?: RequestInit) => Promise<import("./schemas").UserSubscribeResponse>;
24
- getPutApiAlphaUserSaveUserSettingsUrl: () => string;
25
- putApiAlphaUserSaveUserSettings: (userSaveSettingsRequest: import("./schemas").UserSaveSettingsRequest, options?: RequestInit) => Promise<import("./schemas").UserSaveSettingsResponse>;
26
- getGetApiAlphaUserNotificationsUrl: (params: import("./schemas").GetApiAlphaUserNotificationsParams) => string;
27
- getApiAlphaUserNotifications: (params: import("./schemas").GetApiAlphaUserNotificationsParams, options?: RequestInit) => Promise<import("./schemas").UserNotificationsResponse>;
28
- getPutApiAlphaUserNotificationStateUrl: () => string;
29
- putApiAlphaUserNotificationState: (userNotificationStateRequest: import("./schemas").UserNotificationStateRequest, options?: RequestInit) => Promise<import("./schemas").UserNotificationItemView>;
30
- getGetApiAlphaUserNotificationsCountUrl: () => string;
31
- getApiAlphaUserNotificationsCount: (options?: RequestInit) => Promise<import("./schemas").UserNotificationsCountResponse>;
32
- getPutApiAlphaUserMarkAllNotificationsReadUrl: () => string;
33
- putApiAlphaUserMarkAllNotificationsRead: (options?: RequestInit) => Promise<import("./schemas").UserMarkAllNotifsReadResponse>;
34
- getPostApiAlphaUserVerifyCredentialsUrl: () => string;
35
- postApiAlphaUserVerifyCredentials: (userLoginRequest: import("./schemas").UserLoginRequest, options?: RequestInit) => Promise<void>;
36
- getPostApiAlphaUserSetFlairUrl: () => string;
37
- postApiAlphaUserSetFlair: (userSetFlairRequest: import("./schemas").UserSetFlairRequest, options?: RequestInit) => Promise<import("./schemas").UserSetFlairResponse>;
38
- getPostApiAlphaUserNoteUrl: () => string;
39
- postApiAlphaUserNote: (userSetNoteRequest: import("./schemas").UserSetNoteRequest, options?: RequestInit) => Promise<import("./schemas").UserSetNoteResponse>;
40
- getPostApiAlphaUserBanUrl: () => string;
41
- postApiAlphaUserBan: (userBanRequest: import("./schemas").UserBanRequest, options?: RequestInit) => Promise<import("./schemas").UserBanResponse>;
42
- getPostApiAlphaUserUnbanUrl: () => string;
43
- postApiAlphaUserUnban: (userUnbanRequest: import("./schemas").UserUnbanRequest, options?: RequestInit) => Promise<import("./schemas").UserBanResponse>;
44
- getPostApiAlphaUploadImageUrl: () => string;
45
- postApiAlphaUploadImage: (imageUploadRequest: import("./schemas").ImageUploadRequest, options?: RequestInit) => Promise<import("./schemas").ImageUploadResponse>;
46
- getPostApiAlphaUploadCommunityImageUrl: () => string;
47
- postApiAlphaUploadCommunityImage: (imageUploadRequest: import("./schemas").ImageUploadRequest, options?: RequestInit) => Promise<import("./schemas").ImageUploadResponse>;
48
- getPostApiAlphaUploadUserImageUrl: () => string;
49
- postApiAlphaUploadUserImage: (imageUploadRequest: import("./schemas").ImageUploadRequest, options?: RequestInit) => Promise<import("./schemas").ImageUploadResponse>;
50
- getPostApiAlphaImageDeleteUrl: () => string;
51
- postApiAlphaImageDelete: (imageDeleteRequest: import("./schemas").ImageDeleteRequest, options?: RequestInit) => Promise<import("./schemas").ImageDeleteResponse>;
52
- getGetApiAlphaTopicListUrl: (params?: import("./schemas").GetApiAlphaTopicListParams) => string;
53
- getApiAlphaTopicList: (params?: import("./schemas").GetApiAlphaTopicListParams, options?: RequestInit) => Promise<import("./schemas").TopicListResponse>;
54
- getGetApiAlphaSiteUrl: () => string;
55
- getApiAlphaSite: (options?: RequestInit) => Promise<import("./schemas").GetSiteResponse>;
56
- getGetApiAlphaSiteVersionUrl: () => string;
57
- getApiAlphaSiteVersion: (options?: RequestInit) => Promise<import("./schemas").GetSiteVersionResponse>;
58
- getPostApiAlphaSiteBlockUrl: () => string;
59
- postApiAlphaSiteBlock: (blockInstanceRequest: import("./schemas").BlockInstanceRequest, options?: RequestInit) => Promise<import("./schemas").BlockInstanceResponse>;
60
- getGetApiAlphaSiteInstanceChooserUrl: () => string;
61
- getApiAlphaSiteInstanceChooser: (options?: RequestInit) => Promise<import("./schemas").GetSiteInstanceChooserResponse>;
62
- getGetApiAlphaSiteInstanceChooserSearchUrl: (params?: import("./schemas").GetApiAlphaSiteInstanceChooserSearchParams) => string;
63
- getApiAlphaSiteInstanceChooserSearch: (params?: import("./schemas").GetApiAlphaSiteInstanceChooserSearchParams, options?: RequestInit) => Promise<import("./schemas").GetSiteInstanceChooserSearchResponse>;
64
- getGetApiAlphaPrivateMessageListUrl: (params?: import("./schemas").GetApiAlphaPrivateMessageListParams) => string;
65
- getApiAlphaPrivateMessageList: (params?: import("./schemas").GetApiAlphaPrivateMessageListParams, options?: RequestInit) => Promise<import("./schemas").ListPrivateMessagesResponse>;
66
- getGetApiAlphaPrivateMessageConversationUrl: (params?: import("./schemas").GetApiAlphaPrivateMessageConversationParams) => string;
67
- getApiAlphaPrivateMessageConversation: (params?: import("./schemas").GetApiAlphaPrivateMessageConversationParams, options?: RequestInit) => Promise<import("./schemas").GetPrivateMessageConversationResponse>;
68
- getPostApiAlphaPrivateMessageConversationLeaveUrl: () => string;
69
- postApiAlphaPrivateMessageConversationLeave: (leaveConversationRequest: import("./schemas").LeaveConversationRequest, options?: RequestInit) => Promise<void>;
70
- getPostApiAlphaPrivateMessageUrl: () => string;
71
- postApiAlphaPrivateMessage: (createPrivateMessageRequest: import("./schemas").CreatePrivateMessageRequest, options?: RequestInit) => Promise<import("./schemas").PrivateMessageResponse>;
72
- getPutApiAlphaPrivateMessageUrl: () => string;
73
- putApiAlphaPrivateMessage: (editPrivateMessageRequest: import("./schemas").EditPrivateMessageRequest, options?: RequestInit) => Promise<import("./schemas").PrivateMessageResponse>;
74
- getPostApiAlphaPrivateMessageMarkAsReadUrl: () => string;
75
- postApiAlphaPrivateMessageMarkAsRead: (markPrivateMessageAsReadRequest: import("./schemas").MarkPrivateMessageAsReadRequest, options?: RequestInit) => Promise<import("./schemas").PrivateMessageResponse>;
76
- getPostApiAlphaPrivateMessageDeleteUrl: () => string;
77
- postApiAlphaPrivateMessageDelete: (deletePrivateMessageRequest: import("./schemas").DeletePrivateMessageRequest, options?: RequestInit) => Promise<import("./schemas").PrivateMessageResponse>;
78
- getPostApiAlphaPrivateMessageReportUrl: () => string;
79
- postApiAlphaPrivateMessageReport: (reportPrivateMessageRequest: import("./schemas").ReportPrivateMessageRequest, options?: RequestInit) => Promise<import("./schemas").PrivateMessageResponse>;
80
- getGetApiAlphaPostListUrl: (params?: import("./schemas").GetApiAlphaPostListParams) => string;
81
- getApiAlphaPostList: (// Two instances at the same time:
82
- params?: import("./schemas").GetApiAlphaPostListParams, options?: RequestInit) => Promise<import("./schemas").ListPostsResponse>;
83
- getGetApiAlphaPostList2Url: (params?: import("./schemas").GetApiAlphaPostList2Params) => string;
84
- getApiAlphaPostList2: (params?: import("./schemas").GetApiAlphaPostList2Params, options?: RequestInit) => Promise<import("./schemas").ListPostsResponse>;
85
- getGetApiAlphaPostUrl: (params: import("./schemas").GetApiAlphaPostParams) => string;
86
- getApiAlphaPost: (params: import("./schemas").GetApiAlphaPostParams, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
87
- getPostApiAlphaPostUrl: () => string;
88
- postApiAlphaPost: (createPostRequest: import("./schemas").CreatePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
89
- getPutApiAlphaPostUrl: () => string;
90
- putApiAlphaPost: (editPostRequest: import("./schemas").EditPostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
91
- getGetApiAlphaPostRepliesUrl: (params?: import("./schemas").GetApiAlphaPostRepliesParams) => string;
92
- getApiAlphaPostReplies: (params?: import("./schemas").GetApiAlphaPostRepliesParams, options?: RequestInit) => Promise<import("./schemas").GetPostRepliesResponse>;
93
- getGetApiAlphaPostSiteMetadataUrl: (params?: import("./schemas").GetApiAlphaPostSiteMetadataParams) => string;
94
- getApiAlphaPostSiteMetadata: (params?: import("./schemas").GetApiAlphaPostSiteMetadataParams, options?: RequestInit) => Promise<import("./schemas").GetSiteMetadataResponse>;
95
- getPostApiAlphaPostLikeUrl: () => string;
96
- postApiAlphaPostLike: (likePostRequest: import("./schemas").LikePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
97
- getPutApiAlphaPostSaveUrl: () => string;
98
- putApiAlphaPostSave: (savePostRequest: import("./schemas").SavePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
99
- getPutApiAlphaPostSubscribeUrl: () => string;
100
- putApiAlphaPostSubscribe: (subscribePostRequest: import("./schemas").SubscribePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
101
- getPostApiAlphaPostDeleteUrl: () => string;
102
- postApiAlphaPostDelete: (deletePostRequest: import("./schemas").DeletePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
103
- getPostApiAlphaPostReportUrl: () => string;
104
- postApiAlphaPostReport: (reportPostRequest: import("./schemas").ReportPostRequest, options?: RequestInit) => Promise<import("./schemas").PostReportResponse>;
105
- getPostApiAlphaPostLockUrl: () => string;
106
- postApiAlphaPostLock: (lockPostRequest: import("./schemas").LockPostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
107
- getPostApiAlphaPostHideUrl: () => string;
108
- postApiAlphaPostHide: (hidePostRequest: import("./schemas").HidePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
109
- getPostApiAlphaPostFeatureUrl: () => string;
110
- postApiAlphaPostFeature: (featurePostRequest: import("./schemas").FeaturePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
111
- getPostApiAlphaPostRemoveUrl: () => string;
112
- postApiAlphaPostRemove: (removePostRequest: import("./schemas").RemovePostRequest, options?: RequestInit) => Promise<import("./schemas").GetPostResponse>;
113
- getPostApiAlphaPostMarkAsReadUrl: () => string;
114
- postApiAlphaPostMarkAsRead: (markPostAsReadRequest: import("./schemas").MarkPostAsReadRequest, options?: RequestInit) => Promise<import("./schemas").SuccessResponse>;
115
- getGetApiAlphaPostLikeListUrl: (params: import("./schemas").GetApiAlphaPostLikeListParams) => string;
116
- getApiAlphaPostLikeList: (params: import("./schemas").GetApiAlphaPostLikeListParams, options?: RequestInit) => Promise<import("./schemas").ListPostLikesResponse>;
117
- getPostApiAlphaPostAssignFlairUrl: () => string;
118
- postApiAlphaPostAssignFlair: (postSetFlairRequest: import("./schemas").PostSetFlairRequest, options?: RequestInit) => Promise<import("./schemas").PostSetFlairResponse>;
119
- getPostApiAlphaPostPollVoteUrl: () => string;
120
- postApiAlphaPostPollVote: (pollVoteRequest: import("./schemas").PollVoteRequest, options?: RequestInit) => Promise<import("./schemas").PollVoteResponse>;
121
- getGetApiAlphaSearchUrl: (params: import("./schemas").GetApiAlphaSearchParams) => string;
122
- getApiAlphaSearch: (params: import("./schemas").GetApiAlphaSearchParams, options?: RequestInit) => Promise<import("./schemas").SearchResponse>;
123
- getGetApiAlphaResolveObjectUrl: (params: import("./schemas").GetApiAlphaResolveObjectParams) => string;
124
- getApiAlphaResolveObject: (params: import("./schemas").GetApiAlphaResolveObjectParams, options?: RequestInit) => Promise<import("./schemas").ResolveObjectResponse>;
125
- getGetApiAlphaFederatedInstancesUrl: () => string;
126
- getApiAlphaFederatedInstances: (options?: RequestInit) => Promise<import("./schemas").GetFederatedInstancesResponse>;
127
- getGetApiAlphaSuggestCompletionUrl: (params?: import("./schemas").GetApiAlphaSuggestCompletionParams) => string;
128
- getApiAlphaSuggestCompletion: (params?: import("./schemas").GetApiAlphaSuggestCompletionParams, options?: RequestInit) => Promise<import("./schemas").GetSuggestCompletionResponse>;
129
- getGetApiAlphaModlogUrl: (params?: import("./schemas").GetApiAlphaModlogParams) => string;
130
- getApiAlphaModlog: (params?: import("./schemas").GetApiAlphaModlogParams, options?: RequestInit) => Promise<import("./schemas").GetModLogResponse>;
131
- getGetApiAlphaFeedUrl: (params?: import("./schemas").GetApiAlphaFeedParams) => string;
132
- getApiAlphaFeed: (params?: import("./schemas").GetApiAlphaFeedParams, options?: RequestInit) => Promise<import("./schemas").FeedView>;
133
- getPostApiAlphaFeedUrl: () => string;
134
- postApiAlphaFeed: (createFeedRequest: import("./schemas").CreateFeedRequest, options?: RequestInit) => Promise<import("./schemas").FeedView>;
135
- getPutApiAlphaFeedUrl: () => string;
136
- putApiAlphaFeed: (editFeedRequest: import("./schemas").EditFeedRequest, options?: RequestInit) => Promise<import("./schemas").FeedView>;
137
- getGetApiAlphaFeedListUrl: (params?: import("./schemas").GetApiAlphaFeedListParams) => string;
138
- getApiAlphaFeedList: (params?: import("./schemas").GetApiAlphaFeedListParams, options?: RequestInit) => Promise<import("./schemas").FeedListResponse>;
139
- getPostApiAlphaFeedFollowUrl: () => string;
140
- postApiAlphaFeedFollow: (followFeedRequest: import("./schemas").FollowFeedRequest, options?: RequestInit) => Promise<import("./schemas").FeedView>;
141
- getPostApiAlphaFeedDeleteUrl: () => string;
142
- postApiAlphaFeedDelete: (deleteFeedRequest: import("./schemas").DeleteFeedRequest, options?: RequestInit) => Promise<import("./schemas").FeedView>;
143
- getGetApiAlphaCommunityUrl: (params?: import("./schemas").GetApiAlphaCommunityParams) => string;
144
- getApiAlphaCommunity: (params?: import("./schemas").GetApiAlphaCommunityParams, options?: RequestInit) => Promise<import("./schemas").GetCommunityResponse>;
145
- getPostApiAlphaCommunityUrl: () => string;
146
- postApiAlphaCommunity: (createCommunityRequest: import("./schemas").CreateCommunityRequest, options?: RequestInit) => Promise<import("./schemas").CommunityResponse>;
147
- getPutApiAlphaCommunityUrl: () => string;
148
- putApiAlphaCommunity: (editCommunityRequest: import("./schemas").EditCommunityRequest, options?: RequestInit) => Promise<import("./schemas").CommunityResponse>;
149
- getGetApiAlphaCommunityListUrl: (params?: import("./schemas").GetApiAlphaCommunityListParams) => string;
150
- getApiAlphaCommunityList: (params?: import("./schemas").GetApiAlphaCommunityListParams, options?: RequestInit) => Promise<import("./schemas").ListCommunitiesResponse>;
151
- getPostApiAlphaCommunityFollowUrl: () => string;
152
- postApiAlphaCommunityFollow: (followCommunityRequest: import("./schemas").FollowCommunityRequest, options?: RequestInit) => Promise<import("./schemas").CommunityResponse>;
153
- getPostApiAlphaCommunityLeaveAllUrl: () => string;
154
- postApiAlphaCommunityLeaveAll: (options?: RequestInit) => Promise<import("./schemas").UserMeResponse>;
155
- getPostApiAlphaCommunityBlockUrl: () => string;
156
- postApiAlphaCommunityBlock: (blockCommunityRequest: import("./schemas").BlockCommunityRequest, options?: RequestInit) => Promise<import("./schemas").BlockCommunityResponse>;
157
- getPutApiAlphaCommunitySubscribeUrl: () => string;
158
- putApiAlphaCommunitySubscribe: (subscribeCommunityRequest: import("./schemas").SubscribeCommunityRequest, options?: RequestInit) => Promise<import("./schemas").CommunityResponse>;
159
- getPostApiAlphaCommunityDeleteUrl: () => string;
160
- postApiAlphaCommunityDelete: (deleteCommunityRequest: import("./schemas").DeleteCommunityRequest, options?: RequestInit) => Promise<import("./schemas").CommunityResponse>;
161
- getPostApiAlphaCommunityModUrl: () => string;
162
- postApiAlphaCommunityMod: (modCommunityRequest: import("./schemas").ModCommunityRequest, options?: RequestInit) => Promise<import("./schemas").ModCommunityResponse>;
163
- getGetApiAlphaCommunityModerateBansUrl: (params: import("./schemas").GetApiAlphaCommunityModerateBansParams) => string;
164
- getApiAlphaCommunityModerateBans: (params: import("./schemas").GetApiAlphaCommunityModerateBansParams, options?: RequestInit) => Promise<import("./schemas").CommunityModerationBansListResponse>;
165
- getPutApiAlphaCommunityModerateUnbanUrl: () => string;
166
- putApiAlphaCommunityModerateUnban: (communityModerationUnbanRequest: import("./schemas").CommunityModerationUnbanRequest, options?: RequestInit) => Promise<import("./schemas").CommunityModerationBanItem>;
167
- getPostApiAlphaCommunityModerateBanUrl: () => string;
168
- postApiAlphaCommunityModerateBan: (communityModerationBanRequest: import("./schemas").CommunityModerationBanRequest, options?: RequestInit) => Promise<import("./schemas").CommunityModerationBanItem>;
169
- getPostApiAlphaCommunityModeratePostNsfwUrl: () => string;
170
- postApiAlphaCommunityModeratePostNsfw: (communityModerationNsfwRequest: import("./schemas").CommunityModerationNsfwRequest, options?: RequestInit) => Promise<import("./schemas").PostView>;
171
- getPostApiAlphaCommunityFlairUrl: () => string;
172
- postApiAlphaCommunityFlair: (communityFlairCreateRequest: import("./schemas").CommunityFlairCreateRequest, options?: RequestInit) => Promise<import("./schemas").CommunityFlairCreateResponse>;
173
- getPutApiAlphaCommunityFlairUrl: () => string;
174
- putApiAlphaCommunityFlair: (communityFlairEditRequest: import("./schemas").CommunityFlairEditRequest, options?: RequestInit) => Promise<import("./schemas").CommunityFlairEditResponse>;
175
- getPostApiAlphaCommunityFlairDeleteUrl: () => string;
176
- postApiAlphaCommunityFlairDelete: (communityFlairDeleteRequest: import("./schemas").CommunityFlairDeleteRequest, options?: RequestInit) => Promise<import("./schemas").CommunityFlairDeleteResponse>;
177
- getGetApiAlphaCommentListUrl: (params?: import("./schemas").GetApiAlphaCommentListParams) => string;
178
- getApiAlphaCommentList: (params?: import("./schemas").GetApiAlphaCommentListParams, options?: RequestInit) => Promise<import("./schemas").ListCommentsResponse>;
179
- getPostApiAlphaCommentLikeUrl: () => string;
180
- postApiAlphaCommentLike: (likeCommentRequest: import("./schemas").LikeCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
181
- getPutApiAlphaCommentSaveUrl: () => string;
182
- putApiAlphaCommentSave: (saveCommentRequest: import("./schemas").SaveCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
183
- getPutApiAlphaCommentSubscribeUrl: () => string;
184
- putApiAlphaCommentSubscribe: (subscribeCommentRequest: import("./schemas").SubscribeCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
185
- getPostApiAlphaCommentUrl: () => string;
186
- postApiAlphaComment: (createCommentRequest: import("./schemas").CreateCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
187
- getPutApiAlphaCommentUrl: () => string;
188
- putApiAlphaComment: (editCommentRequest: import("./schemas").EditCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
189
- getGetApiAlphaCommentUrl: (params: import("./schemas").GetApiAlphaCommentParams) => string;
190
- getApiAlphaComment: (params: import("./schemas").GetApiAlphaCommentParams, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
191
- getPostApiAlphaCommentDeleteUrl: () => string;
192
- postApiAlphaCommentDelete: (deleteCommentRequest: import("./schemas").DeleteCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
193
- getPostApiAlphaCommentReportUrl: () => string;
194
- postApiAlphaCommentReport: (reportCommentRequest: import("./schemas").ReportCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentReportResponse>;
195
- getPostApiAlphaCommentRemoveUrl: () => string;
196
- postApiAlphaCommentRemove: (removeCommentRequest: import("./schemas").RemoveCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
197
- getPostApiAlphaCommentMarkAsReadUrl: () => string;
198
- postApiAlphaCommentMarkAsRead: (markCommentAsReadRequest: import("./schemas").MarkCommentAsReadRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentReplyResponse>;
199
- getPostApiAlphaCommentMarkAsAnswerUrl: () => string;
200
- postApiAlphaCommentMarkAsAnswer: (markCommentAsAnswerRequest: import("./schemas").MarkCommentAsAnswerRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentReplyResponse>;
201
- getPostApiAlphaCommentLockUrl: () => string;
202
- postApiAlphaCommentLock: (lockCommentRequest: import("./schemas").LockCommentRequest, options?: RequestInit) => Promise<import("./schemas").GetCommentResponse>;
203
- getGetApiAlphaCommentLikeListUrl: (params: import("./schemas").GetApiAlphaCommentLikeListParams) => string;
204
- getApiAlphaCommentLikeList: (params: import("./schemas").GetApiAlphaCommentLikeListParams, options?: RequestInit) => Promise<import("./schemas").ListCommentLikesResponse>;
205
- getGetApiAlphaAdminRegistrationApplicationListUrl: (params?: import("./schemas").GetApiAlphaAdminRegistrationApplicationListParams) => string;
206
- getApiAlphaAdminRegistrationApplicationList: (params?: import("./schemas").GetApiAlphaAdminRegistrationApplicationListParams, options?: RequestInit /**
207
- * Create a client bound to a specific PieFed instance.
208
- *
209
- * @example
210
- * const client = createClient('https://piefed.social');
211
- * const site = await client.getApiAlphaSite();
212
- *
213
- * // With auth:
214
- * const client = createClient('https://piefed.social', {
215
- * headers: { Authorization: 'Bearer <token>' },
216
- * });
217
- *
218
- * // Two instances at the same time:
219
- * const a = createClient('https://instance-a.com');
220
- * const b = createClient('https://instance-b.com');
221
- */) => Promise<import("./schemas").GetRegistrationListResponse>;
222
- getPutApiAlphaAdminRegistrationApplicationApproveUrl: () => string;
223
- putApiAlphaAdminRegistrationApplicationApprove: (registrationApproveRequest: import("./schemas").RegistrationApproveRequest, options?: RequestInit) => Promise<void>;
224
- };
1
+ import * as admin from './client/admin/admin';
2
+ import * as comment from './client/comment/comment';
3
+ import * as community from './client/community/community';
4
+ import * as feed from './client/feed/feed';
5
+ import * as misc from './client/misc/misc';
6
+ import * as post from './client/post/post';
7
+ import * as privateMessage from './client/private-message/private-message';
8
+ import * as site from './client/site/site';
9
+ import * as topic from './client/topic/topic';
10
+ import * as upload from './client/upload/upload';
11
+ import * as user from './client/user/user';
225
12
  type AsyncFn = (...args: any[]) => Promise<any>;
226
- type ApiFunctions = {
227
- [K in keyof typeof allFns as (typeof allFns)[K] extends AsyncFn ? K : never]: (typeof allFns)[K];
228
- };
13
+ type AllModules = typeof admin & typeof comment & typeof community & typeof feed & typeof misc & typeof post & typeof privateMessage & typeof site & typeof topic & typeof upload & typeof user;
14
+ type AsyncKeys = {
15
+ [K in keyof AllModules]: AllModules[K] extends AsyncFn ? K : never;
16
+ }[keyof AllModules];
17
+ type ApiFunctions = Pick<AllModules, AsyncKeys>;
229
18
  interface CreateClientOptions extends Omit<RequestInit, 'body' | 'method'> {
230
19
  /** Default headers merged into every request (e.g. Authorization). */
231
20
  headers?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-client.d.ts","sourceRoot":"","sources":["../src/create-client.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,MAAM;;8BA6B+B,0DACnB,EAAC,qBAAsB;4BAY7C,kDAA4B;sBAYA,kDAA8B,EAAC,qBAC7C;;wBASR,qBAGP;;4BAMwP,sDAAkC,EAAC,qBAAsB;;iCAAue,qBAAsB;mCAAqR,yDAAqC;6BAAmd,yDAAqC,EAAC,qBAAsB;oCAAwS,0DAAsC;8BAAsd,0DAAsC,EAAC,qBAAsB;iCAAkS,uDAAmC;2BAA6c,uDAAmC,EAAC,qBAAsB;;4BAAyW,sDAAkC,EAAC,qBAAsB;;oCAAsgB,qBAAsB;;+BAA+Z,8DAA0C,EAAC,qBAAsB;;sCAAsgB,oEAAgD,EAAC,qBAAsB;yCAA8c,8DAA0C;mCAAqe,8DAA0C,EAAC,qBAAsB;;uCAAie,8EAA0D,EAAC,qBAAsB;;wCAA6iB,qBAAsB;;8CAAyc,qBAAsB;;wCAA8b,sDAAkC,EAAC,qBAAsB;;+BAA0d,4DAAwC,EAAC,qBAAsB;;2BAA8d,0DAAsC,EAAC,qBAAsB;;0BAAyc,kDAA8B,EAAC,qBAAsB;;4BAAoc,sDAAkC,EAAC,qBAAsB;;8BA5E/3U,0DACZ,EAAC,qBAEvB;;uCAqBsB,0DAAsC,EAAC,qBACnD;;kCAmBb,0DAAsC,EAAC,qBAAsB;;8BAa3D,0DAA+B,EAAE,qBAAqB;iCA5DI,uDACzC;2BAqBH,uDACY,EAAC,qBAAsB;;sBAdzC,qBAEL;;6BAea,qBAAsB;;4BAa5B,8DAAyC,EACxD,qBAAqB;;qCAgBX,qBAAsB;iDAMF,uEAAmD;2CAiBwH,uEAAmD,EAAC,qBAAsB;0CAhE3Q,gEAKI;oCAcH,gEACgC,EAAC,qBACnC;kDA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AAC;YAExF,IAAI,CAAC,YAAY,CAAC,GAAG;gBACnB,GAAG,KAAK;gBACR,GAAG,QAAQ;gBACX,OAAO,EAAE;oBACP,GAAG,cAAc;oBACjB,GAAI,QAAQ,EAAE,OAA8C;iBAC7D;aACF,CAAC;YAEF,OAAQ,EAAc,CAAC,GAAG,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,QAAwB,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blorp-labs/piefed-api-client",
3
- "version": "0.0.0-a79b844",
3
+ "version": "0.0.0-cc3101d",
4
4
  "description": "Typed TypeScript client for the PieFed API, generated from the OpenAPI spec",
5
5
  "packageManager": "pnpm@10.6.5",
6
6
  "main": "./dist/index.js",
@@ -26,9 +26,11 @@ const allFns = {
26
26
 
27
27
  // Only the async API functions (not URL helpers or type exports)
28
28
  type AsyncFn = (...args: any[]) => Promise<any>;
29
- type ApiFunctions = {
30
- [K in keyof typeof allFns as (typeof allFns)[K] extends AsyncFn ? K : never]: (typeof allFns)[K];
31
- };
29
+ type AllModules =
30
+ typeof admin & typeof comment & typeof community & typeof feed & typeof misc &
31
+ typeof post & typeof privateMessage & typeof site & typeof topic & typeof upload & typeof user;
32
+ type AsyncKeys = { [K in keyof AllModules]: AllModules[K] extends AsyncFn ? K : never }[keyof AllModules];
33
+ type ApiFunctions = Pick<AllModules, AsyncKeys>;
32
34
 
33
35
  interface CreateClientOptions extends Omit<RequestInit, 'body' | 'method'> {
34
36
  /** Default headers merged into every request (e.g. Authorization). */