lemmy-js-client 0.20.0-alpha.15 → 0.20.0-alpha.17

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -146,6 +146,8 @@ import { UpdateTagline } from "./types/UpdateTagline";
146
146
  import { DeleteTagline } from "./types/DeleteTagline";
147
147
  import { ListTaglines } from "./types/ListTaglines";
148
148
  import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
149
+ import { ListCustomEmojis } from "./types/ListCustomEmojis";
150
+ import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
149
151
  /**
150
152
  * Helps build lemmy HTTP requests.
151
153
  */
@@ -757,28 +759,34 @@ export declare class LemmyHttp {
757
759
  * `HTTP.Post /custom_emoji/delete`
758
760
  */
759
761
  deleteCustomEmoji(form: DeleteCustomEmoji): Promise<SuccessResponse>;
762
+ /**
763
+ * List custom emojis
764
+ *
765
+ * `HTTP.GET /custom_emoji/list`
766
+ */
767
+ listCustomEmojis(form: ListCustomEmojis): Promise<ListCustomEmojisResponse>;
760
768
  /**
761
769
  * Create a new tagline
762
770
  *
763
- * `HTTP.POST /tagline`
771
+ * `HTTP.POST /admin/tagline`
764
772
  */
765
773
  createTagline(form: CreateTagline): Promise<TaglineResponse>;
766
774
  /**
767
775
  * Edit an existing tagline
768
776
  *
769
- * `HTTP.PUT /tagline`
777
+ * `HTTP.PUT /admin/tagline`
770
778
  */
771
779
  editTagline(form: UpdateTagline): Promise<TaglineResponse>;
772
780
  /**
773
781
  * Delete a tagline
774
782
  *
775
- * `HTTP.Post /tagline/delete`
783
+ * `HTTP.Post /admin/tagline/delete`
776
784
  */
777
785
  deleteTagline(form: DeleteTagline): Promise<SuccessResponse>;
778
786
  /**
779
787
  * List taglines
780
788
  *
781
- * `HTTP.GET /tagline/list`
789
+ * `HTTP.GET /admin/tagline/list`
782
790
  */
783
791
  listTaglines(form: ListTaglines): Promise<ListTaglinesResponse>;
784
792
  /**
package/dist/http.js CHANGED
@@ -844,37 +844,45 @@ 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
+ * List custom emojis
849
+ *
850
+ * `HTTP.GET /custom_emoji/list`
851
+ */
852
+ listCustomEmojis(form) {
853
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form);
854
+ }
847
855
  /**
848
856
  * Create a new tagline
849
857
  *
850
- * `HTTP.POST /tagline`
858
+ * `HTTP.POST /admin/tagline`
851
859
  */
852
860
  createTagline(form) {
853
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/tagline", form);
861
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form);
854
862
  }
855
863
  /**
856
864
  * Edit an existing tagline
857
865
  *
858
- * `HTTP.PUT /tagline`
866
+ * `HTTP.PUT /admin/tagline`
859
867
  */
860
868
  editTagline(form) {
861
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/tagline", form);
869
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form);
862
870
  }
863
871
  /**
864
872
  * Delete a tagline
865
873
  *
866
- * `HTTP.Post /tagline/delete`
874
+ * `HTTP.Post /admin/tagline/delete`
867
875
  */
868
876
  deleteTagline(form) {
869
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/tagline/delete", form);
877
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form);
870
878
  }
871
879
  /**
872
880
  * List taglines
873
881
  *
874
- * `HTTP.GET /tagline/list`
882
+ * `HTTP.GET /admin/tagline/list`
875
883
  */
876
884
  listTaglines(form) {
877
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/tagline/list", form);
885
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form);
878
886
  }
879
887
  /**
880
888
  * Create a new oauth provider method
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./http";
2
+ export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
2
3
  export { ActivityId } from "./types/ActivityId";
3
4
  export { AddAdmin } from "./types/AddAdmin";
4
5
  export { AddAdminResponse } from "./types/AddAdminResponse";
@@ -193,8 +194,6 @@ export { MyUserInfo } from "./types/MyUserInfo";
193
194
  export { OAuthAccount } from "./types/OAuthAccount";
194
195
  export { OAuthProvider } from "./types/OAuthProvider";
195
196
  export { OAuthProviderId } from "./types/OAuthProviderId";
196
- export { OAuthProviderInsertForm } from "./types/OAuthProviderInsertForm";
197
- export { OAuthProviderUpdateForm } from "./types/OAuthProviderUpdateForm";
198
197
  export { OpenGraphData } from "./types/OpenGraphData";
199
198
  export { PaginationCursor } from "./types/PaginationCursor";
200
199
  export { PasswordChangeAfterReset } from "./types/PasswordChangeAfterReset";
@@ -270,4 +269,3 @@ export { UpdateTotp } from "./types/UpdateTotp";
270
269
  export { UpdateTotpResponse } from "./types/UpdateTotpResponse";
271
270
  export { VerifyEmail } from "./types/VerifyEmail";
272
271
  export { VoteView } from "./types/VoteView";
273
- export { UploadImage, UploadImageResponse, ImageFile, DeleteImage, } from "./other_types";
@@ -8,7 +8,7 @@ export interface CreateOAuthProvider {
8
8
  client_id: string;
9
9
  client_secret: string;
10
10
  scopes: string;
11
- auto_verify_email: boolean;
12
- account_linking_enabled: boolean;
13
- enabled: boolean;
11
+ auto_verify_email?: boolean;
12
+ account_linking_enabled?: boolean;
13
+ enabled?: boolean;
14
14
  }
@@ -1,14 +1,14 @@
1
1
  import type { OAuthProviderId } from "./OAuthProviderId";
2
2
  export interface EditOAuthProvider {
3
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;
4
+ display_name?: string;
5
+ authorization_endpoint?: string;
6
+ token_endpoint?: string;
7
+ userinfo_endpoint?: string;
8
+ id_claim?: string;
9
+ client_secret?: string;
10
+ scopes?: string;
11
+ auto_verify_email?: boolean;
12
+ account_linking_enabled?: boolean;
13
+ enabled?: boolean;
14
14
  }
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.15",
4
+ "version": "0.20.0-alpha.17",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -19,10 +19,10 @@
19
19
  "url": "git+https://github.com/LemmyNet/lemmy-js-client.git"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/node": "^22.1.0",
23
- "@typescript-eslint/eslint-plugin": "^8.0.0",
24
- "@typescript-eslint/parser": "^8.0.0",
25
- "eslint": "^9.8.0",
22
+ "@types/node": "^22.7.3",
23
+ "@typescript-eslint/eslint-plugin": "^8.7.0",
24
+ "@typescript-eslint/parser": "^8.7.0",
25
+ "eslint": "^9.11.1",
26
26
  "eslint-plugin-prettier": "^5.2.1",
27
27
  "husky": "^9.1.4",
28
28
  "lint-staged": "^15.2.7",
@@ -33,7 +33,7 @@
33
33
  "sortpack": "^2.4.0",
34
34
  "typedoc": "^0.26.5",
35
35
  "typescript": "^5.5.4",
36
- "typescript-eslint": "^8.0.0"
36
+ "typescript-eslint": "^8.7.0"
37
37
  },
38
38
  "packageManager": "pnpm@9.11.0",
39
39
  "types": "./dist/index.d.ts",
@@ -1,14 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
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 });
@@ -1,13 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
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 });