lemmy-js-client 0.17.0-rc.2 → 0.17.0-rc.20

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,7 +1,8 @@
1
- export interface LocalUserSettings {
1
+ import { Option } from "@sniptt/monads";
2
+ export declare class LocalUserSettings {
2
3
  id: number;
3
4
  person_id: number;
4
- email?: string;
5
+ email: Option<string>;
5
6
  show_nsfw: boolean;
6
7
  theme: string;
7
8
  default_sort_type: number;
@@ -16,50 +17,52 @@ export interface LocalUserSettings {
16
17
  email_verified: boolean;
17
18
  accepted_application: boolean;
18
19
  }
19
- export interface PersonSafe {
20
+ export declare class PersonSafe {
20
21
  id: number;
21
22
  name: string;
22
- display_name?: string;
23
- avatar?: string;
23
+ display_name: Option<string>;
24
+ avatar: Option<string>;
24
25
  banned: boolean;
25
26
  published: string;
26
- updated?: string;
27
+ updated: Option<string>;
27
28
  actor_id: string;
28
- bio?: string;
29
+ bio: Option<string>;
29
30
  local: boolean;
30
- banner?: string;
31
+ banner: Option<string>;
31
32
  deleted: boolean;
32
33
  inbox_url: string;
33
34
  shared_inbox_url: string;
34
- matrix_user_id?: string;
35
+ matrix_user_id: Option<string>;
35
36
  admin: boolean;
36
37
  bot_account: boolean;
37
- ban_expires?: string;
38
+ ban_expires: Option<string>;
38
39
  }
39
- export interface Site {
40
+ export declare class Site {
40
41
  id: number;
41
42
  name: string;
42
- sidebar?: string;
43
+ sidebar: Option<string>;
43
44
  published: string;
44
- updated?: string;
45
+ updated: Option<string>;
45
46
  enable_downvotes: boolean;
46
47
  open_registration: boolean;
47
48
  enable_nsfw: boolean;
48
- icon?: string;
49
- banner?: string;
50
- description?: string;
49
+ icon: Option<string>;
50
+ banner: Option<string>;
51
+ description: Option<string>;
51
52
  community_creation_admin_only: boolean;
52
53
  require_email_verification: boolean;
53
54
  require_application: boolean;
54
- application_question?: string;
55
+ application_question: Option<string>;
55
56
  private_instance: boolean;
56
57
  default_theme: string;
58
+ default_post_listing_type: string;
57
59
  actor_id: string;
58
60
  last_refreshed_at: string;
59
61
  inbox_url: string;
60
62
  public_key: string;
63
+ legal_information: Option<string>;
61
64
  }
62
- export interface PrivateMessage {
65
+ export declare class PrivateMessage {
63
66
  id: number;
64
67
  creator_id: number;
65
68
  recipient_id: number;
@@ -67,184 +70,184 @@ export interface PrivateMessage {
67
70
  deleted: boolean;
68
71
  read: boolean;
69
72
  published: string;
70
- updated?: string;
73
+ updated: Option<string>;
71
74
  ap_id: string;
72
75
  local: boolean;
73
76
  }
74
- export interface PostReport {
77
+ export declare class PostReport {
75
78
  id: number;
76
79
  creator_id: number;
77
80
  post_id: number;
78
81
  original_post_name: string;
79
- original_post_url?: string;
80
- original_post_body?: string;
82
+ original_post_url: Option<string>;
83
+ original_post_body: Option<string>;
81
84
  reason: string;
82
85
  resolved: boolean;
83
- resolver_id?: number;
86
+ resolver_id: Option<number>;
84
87
  published: string;
85
- updated?: string;
88
+ updated: Option<string>;
86
89
  }
87
- export interface Post {
90
+ export declare class Post {
88
91
  id: number;
89
92
  name: string;
90
- url?: string;
91
- body?: string;
93
+ url: Option<string>;
94
+ body: Option<string>;
92
95
  creator_id: number;
93
96
  community_id: number;
94
97
  removed: boolean;
95
98
  locked: boolean;
96
99
  published: string;
97
- updated?: string;
100
+ updated: Option<string>;
98
101
  deleted: boolean;
99
102
  nsfw: boolean;
100
103
  stickied: boolean;
101
- embed_title?: string;
102
- embed_description?: string;
103
- embed_html?: string;
104
- thumbnail_url?: string;
104
+ embed_title: Option<string>;
105
+ embed_description: Option<string>;
106
+ embed_html: Option<string>;
107
+ thumbnail_url: Option<string>;
105
108
  ap_id: string;
106
109
  local: boolean;
107
110
  }
108
- export interface PasswordResetRequest {
111
+ export declare class PasswordResetRequest {
109
112
  id: number;
110
113
  local_user_id: number;
111
114
  token_encrypted: string;
112
115
  published: string;
113
116
  }
114
- export interface ModRemovePost {
117
+ export declare class ModRemovePost {
115
118
  id: number;
116
119
  mod_person_id: number;
117
120
  post_id: number;
118
- reason?: string;
119
- removed?: boolean;
121
+ reason: Option<string>;
122
+ removed: Option<boolean>;
120
123
  when_: string;
121
124
  }
122
- export interface ModLockPost {
125
+ export declare class ModLockPost {
123
126
  id: number;
124
127
  mod_person_id: number;
125
128
  post_id: number;
126
- locked?: boolean;
129
+ locked: Option<boolean>;
127
130
  when_: string;
128
131
  }
129
- export interface ModStickyPost {
132
+ export declare class ModStickyPost {
130
133
  id: number;
131
134
  mod_person_id: number;
132
135
  post_id: number;
133
- stickied?: boolean;
136
+ stickied: Option<boolean>;
134
137
  when_: string;
135
138
  }
136
- export interface ModRemoveComment {
139
+ export declare class ModRemoveComment {
137
140
  id: number;
138
141
  mod_person_id: number;
139
142
  comment_id: number;
140
- reason?: string;
141
- removed?: boolean;
143
+ reason: Option<string>;
144
+ removed: Option<boolean>;
142
145
  when_: string;
143
146
  }
144
- export interface ModRemoveCommunity {
147
+ export declare class ModRemoveCommunity {
145
148
  id: number;
146
149
  mod_person_id: number;
147
150
  community_id: number;
148
- reason?: string;
149
- removed?: boolean;
150
- expires?: string;
151
+ reason: Option<string>;
152
+ removed: Option<boolean>;
153
+ expires: Option<string>;
151
154
  when_: string;
152
155
  }
153
- export interface ModBanFromCommunity {
156
+ export declare class ModBanFromCommunity {
154
157
  id: number;
155
158
  mod_person_id: number;
156
159
  other_person_id: number;
157
160
  community_id: number;
158
- reason?: string;
159
- banned?: boolean;
160
- expires?: string;
161
+ reason: Option<string>;
162
+ banned: Option<boolean>;
163
+ expires: Option<string>;
161
164
  when_: string;
162
165
  }
163
- export interface ModBan {
166
+ export declare class ModBan {
164
167
  id: number;
165
168
  mod_person_id: number;
166
169
  other_person_id: number;
167
- reason?: string;
168
- banned?: boolean;
169
- expires?: string;
170
+ reason: Option<string>;
171
+ banned: Option<boolean>;
172
+ expires: Option<string>;
170
173
  when_: string;
171
174
  }
172
- export interface ModAddCommunity {
175
+ export declare class ModAddCommunity {
173
176
  id: number;
174
177
  mod_person_id: number;
175
178
  other_person_id: number;
176
179
  community_id: number;
177
- removed?: boolean;
180
+ removed: Option<boolean>;
178
181
  when_: string;
179
182
  }
180
- export interface ModTransferCommunity {
183
+ export declare class ModTransferCommunity {
181
184
  id: number;
182
185
  mod_person_id: number;
183
186
  other_person_id: number;
184
187
  community_id: number;
185
- removed?: boolean;
188
+ removed: Option<boolean>;
186
189
  when_: string;
187
190
  }
188
- export interface ModAdd {
191
+ export declare class ModAdd {
189
192
  id: number;
190
193
  mod_person_id: number;
191
194
  other_person_id: number;
192
- removed?: boolean;
195
+ removed: Option<boolean>;
193
196
  when_: string;
194
197
  }
195
- export interface CommunitySafe {
198
+ export declare class CommunitySafe {
196
199
  id: number;
197
200
  name: string;
198
201
  title: string;
199
- description?: string;
202
+ description: Option<string>;
200
203
  removed: boolean;
201
204
  published: string;
202
- updated?: string;
205
+ updated: Option<string>;
203
206
  deleted: boolean;
204
207
  nsfw: boolean;
205
208
  actor_id: string;
206
209
  local: boolean;
207
- icon?: string;
208
- banner?: string;
210
+ icon: Option<string>;
211
+ banner: Option<string>;
209
212
  posting_restricted_to_mods: boolean;
210
213
  }
211
- export interface CommentReport {
214
+ export declare class CommentReport {
212
215
  id: number;
213
216
  creator_id: number;
214
217
  comment_id: number;
215
218
  original_comment_text: string;
216
219
  reason: string;
217
220
  resolved: boolean;
218
- resolver_id?: number;
221
+ resolver_id: Option<number>;
219
222
  published: string;
220
- updated?: string;
223
+ updated: Option<string>;
221
224
  }
222
- export interface Comment {
225
+ export declare class Comment {
223
226
  id: number;
224
227
  creator_id: number;
225
228
  post_id: number;
226
- parent_id?: number;
229
+ parent_id: Option<number>;
227
230
  content: string;
228
231
  removed: boolean;
229
232
  read: boolean;
230
233
  published: string;
231
- updated?: string;
234
+ updated: Option<string>;
232
235
  deleted: boolean;
233
236
  ap_id: string;
234
237
  local: boolean;
235
238
  }
236
- export interface PersonMention {
239
+ export declare class PersonMention {
237
240
  id: number;
238
241
  recipient_id: number;
239
242
  comment_id: number;
240
243
  read: boolean;
241
244
  published: string;
242
245
  }
243
- export interface RegistrationApplication {
246
+ export declare class RegistrationApplication {
244
247
  id: number;
245
248
  local_user_id: number;
246
249
  answer: string;
247
- admin_id?: number;
248
- deny_reason?: string;
250
+ admin_id: Option<number>;
251
+ deny_reason: Option<string>;
249
252
  published: string;
250
253
  }