lemmy-js-client 0.17.0-rc.9 → 0.17.2-rc.2
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.
- package/README.md +23 -4
- package/dist/http.d.ts +198 -16
- package/dist/http.js +245 -26
- package/dist/index.js +5 -1
- package/dist/interfaces/aggregates.d.ts +3 -0
- package/dist/interfaces/api/comment.d.ts +12 -11
- package/dist/interfaces/api/community.d.ts +5 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +40 -6
- package/dist/interfaces/api/post.d.ts +19 -8
- package/dist/interfaces/api/site.d.ts +96 -21
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +122 -85
- package/dist/interfaces/others.js +133 -59
- package/dist/interfaces/source.d.ts +124 -16
- package/dist/interfaces/source.js +7 -0
- package/dist/interfaces/views.d.ts +66 -18
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- package/dist/websocket.d.ts +44 -14
- package/dist/websocket.js +67 -19
- package/package.json +26 -24
package/dist/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -51,6 +51,8 @@ export interface PostAggregates {
|
|
51
51
|
*/
|
52
52
|
newest_comment_time_necro: string;
|
53
53
|
newest_comment_time: string;
|
54
|
+
featured_community: boolean;
|
55
|
+
featured_local: boolean;
|
54
56
|
}
|
55
57
|
/**
|
56
58
|
* Aggregate data for your community.
|
@@ -87,4 +89,5 @@ export interface CommentAggregates {
|
|
87
89
|
score: number;
|
88
90
|
upvotes: number;
|
89
91
|
downvotes: number;
|
92
|
+
child_count: number;
|
90
93
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { CommentSortType, ListingType } from "../others";
|
2
2
|
import { CommentReportView, CommentView } from "../views";
|
3
3
|
export interface CreateComment {
|
4
4
|
content: string;
|
5
5
|
parent_id?: number;
|
6
|
+
language_id?: number;
|
6
7
|
post_id: number;
|
7
8
|
/**
|
8
9
|
* An optional front end ID, to tell which is comment is coming back.
|
@@ -11,8 +12,13 @@ export interface CreateComment {
|
|
11
12
|
auth: string;
|
12
13
|
}
|
13
14
|
export interface EditComment {
|
14
|
-
content: string;
|
15
15
|
comment_id: number;
|
16
|
+
content?: string;
|
17
|
+
/**
|
18
|
+
* "Distinguishes" a comment, or speak officially. Only doable by community mods or admins.
|
19
|
+
*/
|
20
|
+
distinguished?: boolean;
|
21
|
+
language_id?: number;
|
16
22
|
/**
|
17
23
|
* An optional front end ID, to tell which is comment is coming back.
|
18
24
|
*/
|
@@ -36,14 +42,6 @@ export interface RemoveComment {
|
|
36
42
|
reason?: string;
|
37
43
|
auth: string;
|
38
44
|
}
|
39
|
-
/**
|
40
|
-
* Only the recipient can do this.
|
41
|
-
*/
|
42
|
-
export interface MarkCommentAsRead {
|
43
|
-
comment_id: number;
|
44
|
-
read: boolean;
|
45
|
-
auth: string;
|
46
|
-
}
|
47
45
|
export interface SaveComment {
|
48
46
|
comment_id: number;
|
49
47
|
save: boolean;
|
@@ -70,11 +68,14 @@ export interface CreateCommentLike {
|
|
70
68
|
*/
|
71
69
|
export interface GetComments {
|
72
70
|
type_?: ListingType;
|
73
|
-
sort?:
|
71
|
+
sort?: CommentSortType;
|
72
|
+
max_depth?: number;
|
74
73
|
page?: number;
|
75
74
|
limit?: number;
|
76
75
|
community_id?: number;
|
77
76
|
community_name?: string;
|
77
|
+
post_id?: number;
|
78
|
+
parent_id?: number;
|
78
79
|
saved_only?: boolean;
|
79
80
|
auth?: string;
|
80
81
|
}
|
@@ -16,6 +16,8 @@ export interface GetCommunityResponse {
|
|
16
16
|
site?: Site;
|
17
17
|
moderators: CommunityModeratorView[];
|
18
18
|
online: number;
|
19
|
+
discussion_languages: number[];
|
20
|
+
default_post_language?: number;
|
19
21
|
}
|
20
22
|
export interface CreateCommunity {
|
21
23
|
name: string;
|
@@ -25,10 +27,12 @@ export interface CreateCommunity {
|
|
25
27
|
banner?: string;
|
26
28
|
nsfw?: boolean;
|
27
29
|
posting_restricted_to_mods?: boolean;
|
30
|
+
discussion_languages?: number[];
|
28
31
|
auth: string;
|
29
32
|
}
|
30
33
|
export interface CommunityResponse {
|
31
34
|
community_view: CommunityView;
|
35
|
+
discussion_languages: number[];
|
32
36
|
}
|
33
37
|
export interface ListCommunities {
|
34
38
|
type_?: ListingType;
|
@@ -79,6 +83,7 @@ export interface EditCommunity {
|
|
79
83
|
banner?: string;
|
80
84
|
nsfw?: boolean;
|
81
85
|
posting_restricted_to_mods?: boolean;
|
86
|
+
discussion_languages?: number[];
|
82
87
|
auth: string;
|
83
88
|
}
|
84
89
|
export interface DeleteCommunity {
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { SortType } from "../others";
|
2
|
-
import { CommentView, CommunityModeratorView, PersonMentionView, PersonViewSafe, PostView, PrivateMessageView } from "../views";
|
1
|
+
import { CommentSortType, SortType } from "../others";
|
2
|
+
import { CommentReplyView, CommentView, CommunityModeratorView, PersonMentionView, PersonViewSafe, PostView, PrivateMessageReportView, PrivateMessageView } from "../views";
|
3
3
|
export interface Login {
|
4
4
|
username_or_email: string;
|
5
5
|
password: string;
|
6
|
+
totp_token?: string;
|
6
7
|
}
|
7
8
|
/**
|
8
9
|
* Register a new user.
|
@@ -69,7 +70,7 @@ export interface SaveUserSettings {
|
|
69
70
|
* Post listing types are `All, Subscribed, Community`
|
70
71
|
*/
|
71
72
|
default_listing_type?: number;
|
72
|
-
|
73
|
+
interface_language?: string;
|
73
74
|
avatar?: string;
|
74
75
|
banner?: string;
|
75
76
|
display_name?: string;
|
@@ -83,6 +84,8 @@ export interface SaveUserSettings {
|
|
83
84
|
show_bot_accounts?: boolean;
|
84
85
|
show_read_posts?: boolean;
|
85
86
|
show_new_post_notifs?: boolean;
|
87
|
+
discussion_languages?: number[];
|
88
|
+
generate_totp?: boolean;
|
86
89
|
auth: string;
|
87
90
|
}
|
88
91
|
export interface ChangePassword {
|
@@ -122,7 +125,7 @@ export interface GetPersonDetailsResponse {
|
|
122
125
|
moderates: CommunityModeratorView[];
|
123
126
|
}
|
124
127
|
export interface GetRepliesResponse {
|
125
|
-
replies:
|
128
|
+
replies: CommentReplyView[];
|
126
129
|
}
|
127
130
|
export interface GetPersonMentionsResponse {
|
128
131
|
mentions: PersonMentionView[];
|
@@ -157,14 +160,14 @@ export interface BanPersonResponse {
|
|
157
160
|
banned: boolean;
|
158
161
|
}
|
159
162
|
export interface GetReplies {
|
160
|
-
sort?:
|
163
|
+
sort?: CommentSortType;
|
161
164
|
page?: number;
|
162
165
|
limit?: number;
|
163
166
|
unread_only?: boolean;
|
164
167
|
auth: string;
|
165
168
|
}
|
166
169
|
export interface GetPersonMentions {
|
167
|
-
sort?:
|
170
|
+
sort?: CommentSortType;
|
168
171
|
page?: number;
|
169
172
|
limit?: number;
|
170
173
|
unread_only?: boolean;
|
@@ -178,6 +181,14 @@ export interface MarkPersonMentionAsRead {
|
|
178
181
|
export interface PersonMentionResponse {
|
179
182
|
person_mention_view: PersonMentionView;
|
180
183
|
}
|
184
|
+
export interface MarkCommentReplyAsRead {
|
185
|
+
comment_reply_id: number;
|
186
|
+
read: boolean;
|
187
|
+
auth: string;
|
188
|
+
}
|
189
|
+
export interface CommentReplyResponse {
|
190
|
+
comment_reply_view: CommentReplyView;
|
191
|
+
}
|
181
192
|
/**
|
182
193
|
* Permanently deletes your posts and comments
|
183
194
|
*/
|
@@ -229,6 +240,28 @@ export interface PrivateMessagesResponse {
|
|
229
240
|
export interface PrivateMessageResponse {
|
230
241
|
private_message_view: PrivateMessageView;
|
231
242
|
}
|
243
|
+
export interface CreatePrivateMessageReport {
|
244
|
+
private_message_id: number;
|
245
|
+
reason: string;
|
246
|
+
auth: string;
|
247
|
+
}
|
248
|
+
export interface PrivateMessageReportResponse {
|
249
|
+
private_message_report_view: PrivateMessageReportView;
|
250
|
+
}
|
251
|
+
export interface ResolvePrivateMessageReport {
|
252
|
+
report_id: number;
|
253
|
+
resolved: boolean;
|
254
|
+
auth: string;
|
255
|
+
}
|
256
|
+
export interface ListPrivateMessageReports {
|
257
|
+
page?: number;
|
258
|
+
limit?: number;
|
259
|
+
unresolved_only?: boolean;
|
260
|
+
auth: string;
|
261
|
+
}
|
262
|
+
export interface ListPrivateMessageReportsResponse {
|
263
|
+
private_message_reports: PrivateMessageReportView[];
|
264
|
+
}
|
232
265
|
export interface GetReportCount {
|
233
266
|
/**
|
234
267
|
* If a community is supplied, returns the report count for only that community, otherwise returns the report count for all communities the user moderates.
|
@@ -240,6 +273,7 @@ export interface GetReportCountResponse {
|
|
240
273
|
community_id?: number;
|
241
274
|
comment_reports: number;
|
242
275
|
post_reports: number;
|
276
|
+
private_message_reports?: number;
|
243
277
|
}
|
244
278
|
export interface GetUnreadCount {
|
245
279
|
auth: string;
|
@@ -1,25 +1,26 @@
|
|
1
|
-
import { ListingType, SiteMetadata, SortType } from "../others";
|
2
|
-
import {
|
1
|
+
import { ListingType, PostFeatureType, SiteMetadata, SortType } from "../others";
|
2
|
+
import { CommunityModeratorView, CommunityView, PostReportView, PostView } from "../views";
|
3
3
|
export interface CreatePost {
|
4
4
|
name: string;
|
5
5
|
url?: string;
|
6
6
|
body?: string;
|
7
7
|
nsfw?: boolean;
|
8
|
+
language_id?: number;
|
8
9
|
community_id: number;
|
9
|
-
auth: string;
|
10
10
|
honeypot?: string;
|
11
|
+
auth: string;
|
11
12
|
}
|
12
13
|
export interface PostResponse {
|
13
14
|
post_view: PostView;
|
14
15
|
}
|
15
16
|
export interface GetPost {
|
16
|
-
id
|
17
|
+
id?: number;
|
18
|
+
comment_id?: number;
|
17
19
|
auth?: string;
|
18
20
|
}
|
19
21
|
export interface GetPostResponse {
|
20
22
|
post_view: PostView;
|
21
23
|
community_view: CommunityView;
|
22
|
-
comments: CommentView[];
|
23
24
|
moderators: CommunityModeratorView[];
|
24
25
|
online: number;
|
25
26
|
}
|
@@ -53,6 +54,7 @@ export interface EditPost {
|
|
53
54
|
url?: string;
|
54
55
|
body?: string;
|
55
56
|
nsfw?: boolean;
|
57
|
+
language_id?: number;
|
56
58
|
auth: string;
|
57
59
|
}
|
58
60
|
export interface DeletePost {
|
@@ -69,6 +71,14 @@ export interface RemovePost {
|
|
69
71
|
reason?: string;
|
70
72
|
auth: string;
|
71
73
|
}
|
74
|
+
/**
|
75
|
+
* Marks a post as read.
|
76
|
+
*/
|
77
|
+
export interface MarkPostAsRead {
|
78
|
+
post_id: number;
|
79
|
+
read: boolean;
|
80
|
+
auth: string;
|
81
|
+
}
|
72
82
|
/**
|
73
83
|
* Only admins and mods can lock a post.
|
74
84
|
*/
|
@@ -78,11 +88,12 @@ export interface LockPost {
|
|
78
88
|
auth: string;
|
79
89
|
}
|
80
90
|
/**
|
81
|
-
* Only admins and mods can
|
91
|
+
* Only admins and mods can feature a community post.
|
82
92
|
*/
|
83
|
-
export interface
|
93
|
+
export interface FeaturePost {
|
84
94
|
post_id: number;
|
85
|
-
|
95
|
+
featured: boolean;
|
96
|
+
feature_type: PostFeatureType;
|
86
97
|
auth: string;
|
87
98
|
}
|
88
99
|
export interface SavePost {
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { ListingType, SearchType, SortType } from "../others";
|
2
|
-
import {
|
1
|
+
import { ListingType, ModlogActionType, SearchType, SortType } from "../others";
|
2
|
+
import { Language, RegistrationMode, Tagline } from "../source";
|
3
|
+
import { AdminPurgeCommentView, AdminPurgeCommunityView, AdminPurgePersonView, AdminPurgePostView, CommentView, CommunityBlockView, CommunityFollowerView, CommunityModeratorView, CommunityView, LocalUserSettingsView, ModAddCommunityView, ModAddView, ModBanFromCommunityView, ModBanView, ModFeaturePostView, ModLockPostView, ModRemoveCommentView, ModRemoveCommunityView, ModRemovePostView, ModTransferCommunityView, PersonBlockView, PersonViewSafe, PostView, RegistrationApplicationView, SiteView } from "../views";
|
3
4
|
/**
|
4
5
|
* Search lemmy for different types of data.
|
5
6
|
*/
|
@@ -34,11 +35,13 @@ export interface GetModlog {
|
|
34
35
|
page?: number;
|
35
36
|
limit?: number;
|
36
37
|
auth?: string;
|
38
|
+
type_: ModlogActionType;
|
39
|
+
other_person_id?: number;
|
37
40
|
}
|
38
41
|
export interface GetModlogResponse {
|
39
42
|
removed_posts: ModRemovePostView[];
|
40
43
|
locked_posts: ModLockPostView[];
|
41
|
-
|
44
|
+
featured_posts: ModFeaturePostView[];
|
42
45
|
removed_comments: ModRemoveCommentView[];
|
43
46
|
removed_communities: ModRemoveCommunityView[];
|
44
47
|
banned_from_community: ModBanFromCommunityView[];
|
@@ -46,6 +49,10 @@ export interface GetModlogResponse {
|
|
46
49
|
added_to_community: ModAddCommunityView[];
|
47
50
|
transferred_to_community: ModTransferCommunityView[];
|
48
51
|
added: ModAddView[];
|
52
|
+
admin_purged_persons: AdminPurgePersonView[];
|
53
|
+
admin_purged_communities: AdminPurgeCommunityView[];
|
54
|
+
admin_purged_posts: AdminPurgePostView[];
|
55
|
+
admin_purged_comments: AdminPurgeCommentView[];
|
49
56
|
}
|
50
57
|
export interface CreateSite {
|
51
58
|
name: string;
|
@@ -54,14 +61,41 @@ export interface CreateSite {
|
|
54
61
|
icon?: string;
|
55
62
|
banner?: string;
|
56
63
|
enable_downvotes?: boolean;
|
57
|
-
open_registration?: boolean;
|
58
64
|
enable_nsfw?: boolean;
|
59
65
|
community_creation_admin_only?: boolean;
|
60
66
|
require_email_verification?: boolean;
|
61
|
-
|
67
|
+
registration_mode?: RegistrationMode;
|
62
68
|
application_question?: string;
|
63
69
|
private_instance?: boolean;
|
64
70
|
default_theme?: string;
|
71
|
+
default_post_listing_type?: string;
|
72
|
+
application_email_admins?: boolean;
|
73
|
+
reports_email_admins?: boolean;
|
74
|
+
hide_modlog_mod_names?: boolean;
|
75
|
+
discussion_languages?: number[];
|
76
|
+
legal_information?: string;
|
77
|
+
slur_filter_regex?: string;
|
78
|
+
actor_name_max_length?: number;
|
79
|
+
rate_limit_message?: number;
|
80
|
+
rate_limit_message_per_second?: number;
|
81
|
+
rate_limit_post?: number;
|
82
|
+
rate_limit_post_per_second?: number;
|
83
|
+
rate_limit_register?: number;
|
84
|
+
rate_limit_register_per_second?: number;
|
85
|
+
rate_limit_image?: number;
|
86
|
+
rate_limit_image_per_second?: number;
|
87
|
+
rate_limit_comment?: number;
|
88
|
+
rate_limit_comment_per_second?: number;
|
89
|
+
rate_limit_search?: number;
|
90
|
+
rate_limit_search_per_second?: number;
|
91
|
+
federation_enabled?: boolean;
|
92
|
+
federation_debug?: boolean;
|
93
|
+
federation_worker_count?: number;
|
94
|
+
captcha_enabled?: boolean;
|
95
|
+
captcha_difficulty?: string;
|
96
|
+
allowed_instances?: string[];
|
97
|
+
blocked_instances?: string[];
|
98
|
+
taglines?: string[];
|
65
99
|
auth: string;
|
66
100
|
}
|
67
101
|
export interface EditSite {
|
@@ -71,14 +105,41 @@ export interface EditSite {
|
|
71
105
|
icon?: string;
|
72
106
|
banner?: string;
|
73
107
|
enable_downvotes?: boolean;
|
74
|
-
open_registration?: boolean;
|
75
108
|
enable_nsfw?: boolean;
|
76
109
|
community_creation_admin_only?: boolean;
|
77
110
|
require_email_verification?: boolean;
|
78
|
-
|
111
|
+
registration_mode?: RegistrationMode;
|
79
112
|
application_question?: string;
|
80
113
|
private_instance?: boolean;
|
81
114
|
default_theme?: string;
|
115
|
+
default_post_listing_type?: string;
|
116
|
+
legal_information?: string;
|
117
|
+
application_email_admins?: boolean;
|
118
|
+
reports_email_admins?: boolean;
|
119
|
+
hide_modlog_mod_names?: boolean;
|
120
|
+
discussion_languages?: number[];
|
121
|
+
slur_filter_regex?: string;
|
122
|
+
actor_name_max_length?: number;
|
123
|
+
rate_limit_message?: number;
|
124
|
+
rate_limit_message_per_second?: number;
|
125
|
+
rate_limit_post?: number;
|
126
|
+
rate_limit_post_per_second?: number;
|
127
|
+
rate_limit_register?: number;
|
128
|
+
rate_limit_register_per_second?: number;
|
129
|
+
rate_limit_image?: number;
|
130
|
+
rate_limit_image_per_second?: number;
|
131
|
+
rate_limit_comment?: number;
|
132
|
+
rate_limit_comment_per_second?: number;
|
133
|
+
rate_limit_search?: number;
|
134
|
+
rate_limit_search_per_second?: number;
|
135
|
+
federation_enabled?: boolean;
|
136
|
+
federation_debug?: boolean;
|
137
|
+
federation_worker_count?: number;
|
138
|
+
captcha_enabled?: boolean;
|
139
|
+
captcha_difficulty?: string;
|
140
|
+
allowed_instances?: string[];
|
141
|
+
blocked_instances?: string[];
|
142
|
+
taglines?: string[];
|
82
143
|
auth: string;
|
83
144
|
}
|
84
145
|
export interface GetSite {
|
@@ -88,10 +149,7 @@ export interface SiteResponse {
|
|
88
149
|
site_view: SiteView;
|
89
150
|
}
|
90
151
|
export interface GetSiteResponse {
|
91
|
-
|
92
|
-
* Optional, because the site might not be set up yet.
|
93
|
-
*/
|
94
|
-
site_view?: SiteView;
|
152
|
+
site_view: SiteView;
|
95
153
|
admins: PersonViewSafe[];
|
96
154
|
online: number;
|
97
155
|
version: string;
|
@@ -100,6 +158,9 @@ export interface GetSiteResponse {
|
|
100
158
|
*/
|
101
159
|
my_user?: MyUserInfo;
|
102
160
|
federated_instances?: FederatedInstances;
|
161
|
+
all_languages: Language[];
|
162
|
+
discussion_languages: number[];
|
163
|
+
taglines?: Tagline[];
|
103
164
|
}
|
104
165
|
/**
|
105
166
|
* Your user info, such as blocks, follows, etc.
|
@@ -110,20 +171,11 @@ export interface MyUserInfo {
|
|
110
171
|
moderates: CommunityModeratorView[];
|
111
172
|
community_blocks: CommunityBlockView[];
|
112
173
|
person_blocks: PersonBlockView[];
|
174
|
+
discussion_languages: number[];
|
113
175
|
}
|
114
176
|
export interface LeaveAdmin {
|
115
177
|
auth: string;
|
116
178
|
}
|
117
|
-
export interface GetSiteConfig {
|
118
|
-
auth: string;
|
119
|
-
}
|
120
|
-
export interface GetSiteConfigResponse {
|
121
|
-
config_hjson: string;
|
122
|
-
}
|
123
|
-
export interface SaveSiteConfig {
|
124
|
-
config_hjson: string;
|
125
|
-
auth: string;
|
126
|
-
}
|
127
179
|
export interface FederatedInstances {
|
128
180
|
linked: string[];
|
129
181
|
allowed?: string[];
|
@@ -139,6 +191,29 @@ export interface ResolveObjectResponse {
|
|
139
191
|
community?: CommunityView;
|
140
192
|
person?: PersonViewSafe;
|
141
193
|
}
|
194
|
+
export interface PurgePerson {
|
195
|
+
person_id: number;
|
196
|
+
reason?: string;
|
197
|
+
auth: string;
|
198
|
+
}
|
199
|
+
export interface PurgeCommunity {
|
200
|
+
community_id: number;
|
201
|
+
reason?: string;
|
202
|
+
auth: string;
|
203
|
+
}
|
204
|
+
export interface PurgePost {
|
205
|
+
post_id: number;
|
206
|
+
reason?: string;
|
207
|
+
auth: string;
|
208
|
+
}
|
209
|
+
export interface PurgeComment {
|
210
|
+
comment_id: number;
|
211
|
+
reason?: string;
|
212
|
+
auth: string;
|
213
|
+
}
|
214
|
+
export interface PurgeItemResponse {
|
215
|
+
success: boolean;
|
216
|
+
}
|
142
217
|
export interface ListRegistrationApplications {
|
143
218
|
/**
|
144
219
|
* Only shows the unread applications (IE those without an admin actor)
|
package/dist/interfaces/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|