lemmy-js-client 0.20.0-alpha.5 → 0.20.0-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/http.d.ts +29 -0
  2. package/dist/http.js +32 -0
  3. package/dist/index.d.ts +11 -3
  4. package/dist/types/AuthenticateWithOauth.d.ts +8 -0
  5. package/dist/types/AuthenticateWithOauth.js +3 -0
  6. package/dist/types/BanFromCommunity.d.ts +1 -1
  7. package/dist/types/BanPerson.d.ts +1 -1
  8. package/dist/types/CreateOAuthProvider.d.ts +14 -0
  9. package/dist/types/CreateOAuthProvider.js +3 -0
  10. package/dist/types/CreatePost.d.ts +0 -1
  11. package/dist/types/CreateSite.d.ts +1 -0
  12. package/dist/types/DeleteOAuthProvider.d.ts +4 -0
  13. package/dist/types/EditOAuthProvider.d.ts +14 -0
  14. package/dist/types/EditSite.d.ts +1 -0
  15. package/dist/types/GetSiteResponse.d.ts +4 -0
  16. package/dist/types/LemmyErrorType.d.ts +17 -1
  17. package/dist/types/ListLoginsResponse.d.ts +4 -0
  18. package/dist/types/LocalSite.d.ts +1 -1
  19. package/dist/types/LocalUser.d.ts +0 -1
  20. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -2
  21. package/dist/types/LocalUserVoteDisplayMode.js +1 -0
  22. package/dist/types/MyUserInfo.d.ts +6 -6
  23. package/dist/types/OAuthAccount.d.ts +9 -0
  24. package/dist/types/OAuthAccount.js +2 -0
  25. package/dist/types/OAuthProvider.d.ts +17 -0
  26. package/dist/types/OAuthProvider.js +2 -0
  27. package/dist/types/OAuthProviderId.d.ts +1 -0
  28. package/dist/types/OAuthProviderId.js +3 -0
  29. package/dist/types/OAuthProviderInsertForm.d.ts +14 -0
  30. package/dist/types/OAuthProviderInsertForm.js +3 -0
  31. package/dist/types/OAuthProviderUpdateForm.d.ts +13 -0
  32. package/dist/types/OAuthProviderUpdateForm.js +3 -0
  33. package/dist/types/Post.d.ts +0 -1
  34. package/dist/types/PublicOAuthProvider.d.ts +2 -0
  35. package/dist/types/PublicOAuthProvider.js +2 -0
  36. package/dist/types/Search.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/dist/types/CommunityBlockView.d.ts +0 -6
  39. package/dist/types/InstanceBlockView.d.ts +0 -8
  40. package/dist/types/PersonBlockView.d.ts +0 -5
  41. /package/dist/types/{CommunityBlockView.js → DeleteOAuthProvider.js} +0 -0
  42. /package/dist/types/{InstanceBlockView.js → EditOAuthProvider.js} +0 -0
  43. /package/dist/types/{PersonBlockView.js → ListLoginsResponse.js} +0 -0
package/dist/http.d.ts CHANGED
@@ -22,6 +22,7 @@ import { CreateCommentLike } from "./types/CreateCommentLike";
22
22
  import { CreateCommentReport } from "./types/CreateCommentReport";
23
23
  import { CreateCommunity } from "./types/CreateCommunity";
24
24
  import { CreateCustomEmoji } from "./types/CreateCustomEmoji";
25
+ import { CreateOAuthProvider } from "./types/CreateOAuthProvider";
25
26
  import { CreatePost } from "./types/CreatePost";
26
27
  import { CreatePostLike } from "./types/CreatePostLike";
27
28
  import { CreatePostReport } from "./types/CreatePostReport";
@@ -33,15 +34,18 @@ import { DeleteAccount } from "./types/DeleteAccount";
33
34
  import { DeleteComment } from "./types/DeleteComment";
34
35
  import { DeleteCommunity } from "./types/DeleteCommunity";
35
36
  import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
37
+ import { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
36
38
  import { DeletePost } from "./types/DeletePost";
37
39
  import { DeletePrivateMessage } from "./types/DeletePrivateMessage";
38
40
  import { DistinguishComment } from "./types/DistinguishComment";
39
41
  import { EditComment } from "./types/EditComment";
40
42
  import { EditCommunity } from "./types/EditCommunity";
41
43
  import { EditCustomEmoji } from "./types/EditCustomEmoji";
44
+ import { EditOAuthProvider } from "./types/EditOAuthProvider";
42
45
  import { EditPost } from "./types/EditPost";
43
46
  import { EditPrivateMessage } from "./types/EditPrivateMessage";
44
47
  import { EditSite } from "./types/EditSite";
48
+ import { OAuthProvider } from "./types/OAuthProvider";
45
49
  import { FeaturePost } from "./types/FeaturePost";
46
50
  import { FollowCommunity } from "./types/FollowCommunity";
47
51
  import { GetCaptchaResponse } from "./types/GetCaptchaResponse";
@@ -134,6 +138,7 @@ import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
134
138
  import { HidePost } from "./types/HidePost";
135
139
  import { ListMedia } from "./types/ListMedia";
136
140
  import { ListMediaResponse } from "./types/ListMediaResponse";
141
+ import { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
137
142
  import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
138
143
  /**
139
144
  * Helps build lemmy HTTP requests.
@@ -746,6 +751,30 @@ export declare class LemmyHttp {
746
751
  * `HTTP.Post /custom_emoji/delete`
747
752
  */
748
753
  deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
754
+ /**
755
+ * Create a new oauth provider method
756
+ *
757
+ * `HTTP.POST /oauth_provider`
758
+ */
759
+ createOAuthProvider(form: CreateOAuthProvider): Promise<OAuthProvider>;
760
+ /**
761
+ * Edit an existing oauth provider method
762
+ *
763
+ * `HTTP.PUT /oauth_provider`
764
+ */
765
+ editOAuthProvider(form: EditOAuthProvider): Promise<OAuthProvider>;
766
+ /**
767
+ * Delete an oauth provider method
768
+ *
769
+ * `HTTP.Post /oauth_provider/delete`
770
+ */
771
+ deleteOAuthProvider(form: DeleteOAuthProvider): Promise<SuccessResponse>;
772
+ /**
773
+ * Authenticate with OAuth
774
+ *
775
+ * `HTTP.Post /oauth/authenticate`
776
+ */
777
+ authenticateWithOAuth(form: AuthenticateWithOauth): Promise<LoginResponse>;
749
778
  /**
750
779
  * Fetch federated instances.
751
780
  *
package/dist/http.js CHANGED
@@ -844,6 +844,38 @@ class LemmyHttp {
844
844
  deleteCustomEmoji(form) {
845
845
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
846
846
  }
847
+ /**
848
+ * Create a new oauth provider method
849
+ *
850
+ * `HTTP.POST /oauth_provider`
851
+ */
852
+ createOAuthProvider(form) {
853
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form);
854
+ }
855
+ /**
856
+ * Edit an existing oauth provider method
857
+ *
858
+ * `HTTP.PUT /oauth_provider`
859
+ */
860
+ editOAuthProvider(form) {
861
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form);
862
+ }
863
+ /**
864
+ * Delete an oauth provider method
865
+ *
866
+ * `HTTP.Post /oauth_provider/delete`
867
+ */
868
+ deleteOAuthProvider(form) {
869
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form);
870
+ }
871
+ /**
872
+ * Authenticate with OAuth
873
+ *
874
+ * `HTTP.Post /oauth/authenticate`
875
+ */
876
+ authenticateWithOAuth(form) {
877
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form);
878
+ }
847
879
  /**
848
880
  * Fetch federated instances.
849
881
  *
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
13
13
  export { AdminPurgePost } from "./types/AdminPurgePost";
14
14
  export { AdminPurgePostView } from "./types/AdminPurgePostView";
15
15
  export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
16
+ export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
16
17
  export { BanFromCommunity } from "./types/BanFromCommunity";
17
18
  export { BanFromCommunityResponse } from "./types/BanFromCommunityResponse";
18
19
  export { BanPerson } from "./types/BanPerson";
@@ -42,7 +43,6 @@ export { CommentSortType } from "./types/CommentSortType";
42
43
  export { CommentView } from "./types/CommentView";
43
44
  export { Community } from "./types/Community";
44
45
  export { CommunityAggregates } from "./types/CommunityAggregates";
45
- export { CommunityBlockView } from "./types/CommunityBlockView";
46
46
  export { CommunityFollowerView } from "./types/CommunityFollowerView";
47
47
  export { CommunityId } from "./types/CommunityId";
48
48
  export { CommunityModeratorView } from "./types/CommunityModeratorView";
@@ -54,6 +54,7 @@ export { CreateCommentLike } from "./types/CreateCommentLike";
54
54
  export { CreateCommentReport } from "./types/CreateCommentReport";
55
55
  export { CreateCommunity } from "./types/CreateCommunity";
56
56
  export { CreateCustomEmoji } from "./types/CreateCustomEmoji";
57
+ export { CreateOAuthProvider } from "./types/CreateOAuthProvider";
57
58
  export { CreatePost } from "./types/CreatePost";
58
59
  export { CreatePostLike } from "./types/CreatePostLike";
59
60
  export { CreatePostReport } from "./types/CreatePostReport";
@@ -69,12 +70,14 @@ export { DeleteAccount } from "./types/DeleteAccount";
69
70
  export { DeleteComment } from "./types/DeleteComment";
70
71
  export { DeleteCommunity } from "./types/DeleteCommunity";
71
72
  export { DeleteCustomEmoji } from "./types/DeleteCustomEmoji";
73
+ export { DeleteOAuthProvider } from "./types/DeleteOAuthProvider";
72
74
  export { DeletePost } from "./types/DeletePost";
73
75
  export { DeletePrivateMessage } from "./types/DeletePrivateMessage";
74
76
  export { DistinguishComment } from "./types/DistinguishComment";
75
77
  export { EditComment } from "./types/EditComment";
76
78
  export { EditCommunity } from "./types/EditCommunity";
77
79
  export { EditCustomEmoji } from "./types/EditCustomEmoji";
80
+ export { EditOAuthProvider } from "./types/EditOAuthProvider";
78
81
  export { EditPost } from "./types/EditPost";
79
82
  export { EditPrivateMessage } from "./types/EditPrivateMessage";
80
83
  export { EditSite } from "./types/EditSite";
@@ -114,7 +117,6 @@ export { HideCommunity } from "./types/HideCommunity";
114
117
  export { HidePost } from "./types/HidePost";
115
118
  export { ImageDetails } from "./types/ImageDetails";
116
119
  export { Instance } from "./types/Instance";
117
- export { InstanceBlockView } from "./types/InstanceBlockView";
118
120
  export { InstanceId } from "./types/InstanceId";
119
121
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
120
122
  export { Language } from "./types/Language";
@@ -127,6 +129,7 @@ export { ListCommentReports } from "./types/ListCommentReports";
127
129
  export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
128
130
  export { ListCommunities } from "./types/ListCommunities";
129
131
  export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
132
+ export { ListLoginsResponse } from "./types/ListLoginsResponse";
130
133
  export { ListMedia } from "./types/ListMedia";
131
134
  export { ListMediaResponse } from "./types/ListMediaResponse";
132
135
  export { ListPostLikes } from "./types/ListPostLikes";
@@ -181,13 +184,17 @@ export { ModTransferCommunityView } from "./types/ModTransferCommunityView";
181
184
  export { ModlogActionType } from "./types/ModlogActionType";
182
185
  export { ModlogListParams } from "./types/ModlogListParams";
183
186
  export { MyUserInfo } from "./types/MyUserInfo";
187
+ export { OAuthAccount } from "./types/OAuthAccount";
188
+ export { OAuthProvider } from "./types/OAuthProvider";
189
+ export { OAuthProviderId } from "./types/OAuthProviderId";
190
+ export { OAuthProviderInsertForm } from "./types/OAuthProviderInsertForm";
191
+ export { OAuthProviderUpdateForm } from "./types/OAuthProviderUpdateForm";
184
192
  export { OpenGraphData } from "./types/OpenGraphData";
185
193
  export { PaginationCursor } from "./types/PaginationCursor";
186
194
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
187
195
  export { PasswordReset } from "./types/PasswordReset";
188
196
  export { Person } from "./types/Person";
189
197
  export { PersonAggregates } from "./types/PersonAggregates";
190
- export { PersonBlockView } from "./types/PersonBlockView";
191
198
  export { PersonId } from "./types/PersonId";
192
199
  export { PersonMention } from "./types/PersonMention";
193
200
  export { PersonMentionId } from "./types/PersonMentionId";
@@ -214,6 +221,7 @@ export { PrivateMessageReportView } from "./types/PrivateMessageReportView";
214
221
  export { PrivateMessageResponse } from "./types/PrivateMessageResponse";
215
222
  export { PrivateMessageView } from "./types/PrivateMessageView";
216
223
  export { PrivateMessagesResponse } from "./types/PrivateMessagesResponse";
224
+ export { PublicOAuthProvider } from "./types/PublicOAuthProvider";
217
225
  export { PurgeComment } from "./types/PurgeComment";
218
226
  export { PurgeCommunity } from "./types/PurgeCommunity";
219
227
  export { PurgePerson } from "./types/PurgePerson";
@@ -0,0 +1,8 @@
1
+ export interface AuthenticateWithOauth {
2
+ code: string;
3
+ oauth_provider_id: string;
4
+ redirect_uri: string;
5
+ show_nsfw?: boolean;
6
+ username?: string;
7
+ answer?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,7 @@ export interface BanFromCommunity {
4
4
  community_id: CommunityId;
5
5
  person_id: PersonId;
6
6
  ban: boolean;
7
- remove_data?: boolean;
7
+ remove_or_restore_data?: boolean;
8
8
  reason?: string;
9
9
  expires?: number;
10
10
  }
@@ -2,7 +2,7 @@ import type { PersonId } from "./PersonId";
2
2
  export interface BanPerson {
3
3
  person_id: PersonId;
4
4
  ban: boolean;
5
- remove_data?: boolean;
5
+ remove_or_restore_data?: boolean;
6
6
  reason?: string;
7
7
  expires?: number;
8
8
  }
@@ -0,0 +1,14 @@
1
+ export interface CreateOAuthProvider {
2
+ display_name: string;
3
+ issuer: string;
4
+ authorization_endpoint: string;
5
+ token_endpoint: string;
6
+ userinfo_endpoint: string;
7
+ id_claim: string;
8
+ client_id: string;
9
+ client_secret: string;
10
+ scopes: string;
11
+ auto_verify_email: boolean;
12
+ account_linking_enabled: boolean;
13
+ enabled: boolean;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,5 +10,4 @@ export interface CreatePost {
10
10
  nsfw?: boolean;
11
11
  language_id?: LanguageId;
12
12
  custom_thumbnail?: string;
13
- scheduled_publish_time?: string;
14
13
  }
@@ -44,6 +44,7 @@ export interface CreateSite {
44
44
  blocked_instances?: Array<string>;
45
45
  taglines?: Array<string>;
46
46
  registration_mode?: RegistrationMode;
47
+ oauth_registration?: boolean;
47
48
  content_warning?: string;
48
49
  default_post_listing_mode?: PostListingMode;
49
50
  }
@@ -0,0 +1,4 @@
1
+ import type { OAuthProviderId } from "./OAuthProviderId";
2
+ export interface DeleteOAuthProvider {
3
+ id: OAuthProviderId;
4
+ }
@@ -0,0 +1,14 @@
1
+ import type { OAuthProviderId } from "./OAuthProviderId";
2
+ export interface EditOAuthProvider {
3
+ id: OAuthProviderId;
4
+ display_name: string | null;
5
+ authorization_endpoint: string | null;
6
+ token_endpoint: string | null;
7
+ userinfo_endpoint: string | null;
8
+ id_claim: string | null;
9
+ client_secret: string | null;
10
+ scopes: string | null;
11
+ auto_verify_email: boolean | null;
12
+ account_linking_enabled: boolean | null;
13
+ enabled: boolean | null;
14
+ }
@@ -45,6 +45,7 @@ export interface EditSite {
45
45
  blocked_urls?: Array<string>;
46
46
  taglines?: Array<string>;
47
47
  registration_mode?: RegistrationMode;
48
+ oauth_registration?: boolean;
48
49
  reports_email_admins?: boolean;
49
50
  content_warning?: string;
50
51
  default_post_listing_mode?: PostListingMode;
@@ -3,7 +3,9 @@ import type { Language } from "./Language";
3
3
  import type { LanguageId } from "./LanguageId";
4
4
  import type { LocalSiteUrlBlocklist } from "./LocalSiteUrlBlocklist";
5
5
  import type { MyUserInfo } from "./MyUserInfo";
6
+ import type { OAuthProvider } from "./OAuthProvider";
6
7
  import type { PersonView } from "./PersonView";
8
+ import type { PublicOAuthProvider } from "./PublicOAuthProvider";
7
9
  import type { SiteView } from "./SiteView";
8
10
  import type { Tagline } from "./Tagline";
9
11
  export interface GetSiteResponse {
@@ -15,5 +17,7 @@ export interface GetSiteResponse {
15
17
  discussion_languages: Array<LanguageId>;
16
18
  taglines: Array<Tagline>;
17
19
  custom_emojis: Array<CustomEmojiView>;
20
+ oauth_providers?: Array<PublicOAuthProvider>;
21
+ admin_oauth_providers?: Array<OAuthProvider>;
18
22
  blocked_urls: Array<LocalSiteUrlBlocklist>;
19
23
  }
@@ -90,6 +90,8 @@ export type LemmyErrorType = {
90
90
  error: "couldnt_find_private_message";
91
91
  } | {
92
92
  error: "couldnt_find_activity";
93
+ } | {
94
+ error: "couldnt_find_oauth_provider";
93
95
  } | {
94
96
  error: "person_is_blocked";
95
97
  } | {
@@ -144,8 +146,12 @@ export type LemmyErrorType = {
144
146
  error: "registration_closed";
145
147
  } | {
146
148
  error: "registration_application_answer_required";
149
+ } | {
150
+ error: "registration_username_required";
147
151
  } | {
148
152
  error: "email_already_exists";
153
+ } | {
154
+ error: "username_already_exists";
149
155
  } | {
150
156
  error: "federation_forbidden_by_strict_allow_list";
151
157
  } | {
@@ -334,11 +340,21 @@ export type LemmyErrorType = {
334
340
  error: "url_without_domain";
335
341
  } | {
336
342
  error: "inbox_timeout";
343
+ } | {
344
+ error: "oauth_authorization_invalid";
345
+ } | {
346
+ error: "oauth_login_failed";
347
+ } | {
348
+ error: "oauth_registration_closed";
349
+ } | {
350
+ error: "couldnt_delete_oauth_provider";
337
351
  } | {
338
352
  error: "unknown";
339
353
  message: string;
340
354
  } | {
341
355
  error: "cant_delete_site";
342
356
  } | {
343
- error: "post_schedule_time_must_be_in_future";
357
+ error: "url_length_overflow";
358
+ } | {
359
+ error: "cant_delete_site";
344
360
  };
@@ -0,0 +1,4 @@
1
+ import type { LoginToken } from "./LoginToken";
2
+ export interface ListLoginsResponse {
3
+ logins: Array<LoginToken>;
4
+ }
@@ -9,7 +9,6 @@ export interface LocalSite {
9
9
  site_id: SiteId;
10
10
  site_setup: boolean;
11
11
  enable_downvotes: boolean;
12
- enable_nsfw: boolean;
13
12
  community_creation_admin_only: boolean;
14
13
  require_email_verification: boolean;
15
14
  application_question?: string;
@@ -31,4 +30,5 @@ export interface LocalSite {
31
30
  federation_signed_fetch: boolean;
32
31
  default_post_listing_mode: PostListingMode;
33
32
  default_sort_type: SortType;
33
+ oauth_registration: boolean;
34
34
  }
@@ -14,7 +14,6 @@ export interface LocalUser {
14
14
  interface_language: string;
15
15
  show_avatars: boolean;
16
16
  send_notifications_to_email: boolean;
17
- show_scores: boolean;
18
17
  show_bot_accounts: boolean;
19
18
  show_read_posts: boolean;
20
19
  email_verified: boolean;
@@ -1,6 +1,4 @@
1
- import type { LocalUserId } from "./LocalUserId";
2
1
  export interface LocalUserVoteDisplayMode {
3
- local_user_id: LocalUserId;
4
2
  score: boolean;
5
3
  upvotes: boolean;
6
4
  downvotes: boolean;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,16 @@
1
- import type { CommunityBlockView } from "./CommunityBlockView";
1
+ import type { Community } from "./Community";
2
2
  import type { CommunityFollowerView } from "./CommunityFollowerView";
3
3
  import type { CommunityModeratorView } from "./CommunityModeratorView";
4
- import type { InstanceBlockView } from "./InstanceBlockView";
4
+ import type { Instance } from "./Instance";
5
5
  import type { LanguageId } from "./LanguageId";
6
6
  import type { LocalUserView } from "./LocalUserView";
7
- import type { PersonBlockView } from "./PersonBlockView";
7
+ import type { Person } from "./Person";
8
8
  export interface MyUserInfo {
9
9
  local_user_view: LocalUserView;
10
10
  follows: Array<CommunityFollowerView>;
11
11
  moderates: Array<CommunityModeratorView>;
12
- community_blocks: Array<CommunityBlockView>;
13
- instance_blocks: Array<InstanceBlockView>;
14
- person_blocks: Array<PersonBlockView>;
12
+ community_blocks: Array<Community>;
13
+ instance_blocks: Array<Instance>;
14
+ person_blocks: Array<Person>;
15
15
  discussion_languages: Array<LanguageId>;
16
16
  }
@@ -0,0 +1,9 @@
1
+ import type { LocalUserId } from "./LocalUserId";
2
+ import type { OAuthProviderId } from "./OAuthProviderId";
3
+ export interface OAuthAccount {
4
+ local_user_id: LocalUserId;
5
+ oauth_provider_id: OAuthProviderId;
6
+ oauth_user_id: string;
7
+ published: string;
8
+ updated?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type { OAuthProviderId } from "./OAuthProviderId";
2
+ export interface OAuthProvider {
3
+ id: OAuthProviderId;
4
+ display_name: string;
5
+ issuer: string;
6
+ authorization_endpoint: string;
7
+ token_endpoint: string;
8
+ userinfo_endpoint: string;
9
+ id_claim: string;
10
+ client_id: string;
11
+ scopes: string;
12
+ auto_verify_email: boolean;
13
+ account_linking_enabled: boolean;
14
+ enabled: boolean;
15
+ published: string;
16
+ updated?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type OAuthProviderId = number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface OAuthProviderInsertForm {
2
+ display_name: string;
3
+ issuer: string;
4
+ authorization_endpoint: string;
5
+ token_endpoint: string;
6
+ userinfo_endpoint: string;
7
+ id_claim: string;
8
+ client_id: string;
9
+ client_secret: string;
10
+ scopes: string;
11
+ auto_verify_email: boolean;
12
+ account_linking_enabled: boolean;
13
+ enabled: boolean;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export interface OAuthProviderUpdateForm {
2
+ display_name: string | null;
3
+ authorization_endpoint: string;
4
+ token_endpoint: string;
5
+ userinfo_endpoint: string;
6
+ id_claim: string | null;
7
+ client_secret: string | null;
8
+ scopes: string | null;
9
+ auto_verify_email: boolean | null;
10
+ account_linking_enabled: boolean | null;
11
+ enabled: boolean | null;
12
+ updated: string | null | null;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,5 +26,4 @@ export interface Post {
26
26
  featured_local: boolean;
27
27
  url_content_type?: string;
28
28
  alt_text?: string;
29
- scheduled_publish_time?: string;
30
29
  }
@@ -0,0 +1,2 @@
1
+ import type { OAuthProvider } from "./OAuthProvider";
2
+ export type PublicOAuthProvider = OAuthProvider;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,4 +13,5 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
+ post_title_only?: boolean;
16
17
  }
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": "0.20.0-alpha.5",
4
+ "version": "0.20.0-alpha.7",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -1,6 +0,0 @@
1
- import type { Community } from "./Community";
2
- import type { Person } from "./Person";
3
- export interface CommunityBlockView {
4
- person: Person;
5
- community: Community;
6
- }
@@ -1,8 +0,0 @@
1
- import type { Instance } from "./Instance";
2
- import type { Person } from "./Person";
3
- import type { Site } from "./Site";
4
- export interface InstanceBlockView {
5
- person: Person;
6
- instance: Instance;
7
- site?: Site;
8
- }
@@ -1,5 +0,0 @@
1
- import type { Person } from "./Person";
2
- export interface PersonBlockView {
3
- person: Person;
4
- target: Person;
5
- }