diff --git a/fe_calckey/frontend/magnetar-common/src/endpoints.ts b/fe_calckey/frontend/magnetar-common/src/endpoints.ts index 7438ad3..27c3cd1 100644 --- a/fe_calckey/frontend/magnetar-common/src/endpoints.ts +++ b/fe_calckey/frontend/magnetar-common/src/endpoints.ts @@ -4,3 +4,8 @@ export { GetUserById } from "./types/endpoints/GetUserById"; export { GetUserByAcct } from "./types/endpoints/GetUserByAcct"; export { GetUserSelf } from "./types/endpoints/GetUserSelf"; export { GetManyUsersById } from "./types/endpoints/GetManyUsersById"; +export { GetFollowersById } from "./types/endpoints/GetFollowersById"; +export { GetFollowersSelf } from "./types/endpoints/GetFollowersSelf"; +export { GetFollowingById } from "./types/endpoints/GetFollowingById"; +export { GetFollowingSelf } from "./types/endpoints/GetFollowingSelf"; +export { GetFollowRequestsSelf } from "./types/endpoints/GetFollowRequestsSelf"; diff --git a/fe_calckey/frontend/magnetar-common/src/types.ts b/fe_calckey/frontend/magnetar-common/src/types.ts index 8ffefae..719292a 100644 --- a/fe_calckey/frontend/magnetar-common/src/types.ts +++ b/fe_calckey/frontend/magnetar-common/src/types.ts @@ -47,3 +47,4 @@ export { EndFilter } from "./types/EndFilter"; export { StartFilter } from "./types/StartFilter"; export { NoFilter } from "./types/NoFilter"; export { TimelineType } from "./types/TimelineType"; +export { Empty } from "./types/Empty"; diff --git a/fe_calckey/frontend/magnetar-common/src/types/Empty.ts b/fe_calckey/frontend/magnetar-common/src/types/Empty.ts new file mode 100644 index 0000000..07d3e62 --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/Empty.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Empty = null; \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/NoteBase.ts b/fe_calckey/frontend/magnetar-common/src/types/NoteBase.ts index e4ed2cf..590ca67 100644 --- a/fe_calckey/frontend/magnetar-common/src/types/NoteBase.ts +++ b/fe_calckey/frontend/magnetar-common/src/types/NoteBase.ts @@ -5,4 +5,4 @@ import type { NoteVisibility } from "./NoteVisibility"; import type { PackUserBase } from "./packed/PackUserBase"; import type { ReactionPair } from "./ReactionPair"; -export interface NoteBase { created_at: string, updated_at: string | null, cw: string | null, cw_mm: MmXml | null, uri: string | null, url: string | null, text: string, text_mm: MmXml | null, visibility: NoteVisibility, user: PackUserBase, parent_note_id: string | null, renoted_note_id: string | null, reply_count: number, renote_count: number, mentions: Array, visible_user_ids: Array | null, hashtags: Array, reactions: Array, local_only: boolean, has_poll: boolean, file_ids: Array, emojis: EmojiContext, } \ No newline at end of file +export interface NoteBase { created_at: string, updated_at: string | null, cw: string | null, cw_mm: MmXml | null, uri: string | null, url: string | null, text: string, text_mm: MmXml | null, visibility: NoteVisibility, user: PackUserBase, parent_note_id: string | null, renoted_note_id: string | null, reply_count: number, renote_count: number, mentions: Array, visible_user_ids: Array | null, hashtags: Array, reactions: Array, local_only: boolean, has_poll: boolean, file_ids: Array, emojis: EmojiContext, is_quote: boolean, } \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowRequestsSelf.ts b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowRequestsSelf.ts new file mode 100644 index 0000000..2d2da20 --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowRequestsSelf.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Empty } from "../Empty"; +import type { PackUserBase } from "../packed/PackUserBase"; + +export const GetFollowRequestsSelf = { + endpoint: "/users/@self/follow-requests", + pathParams: [] as [], + method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH", + request: undefined as unknown as Empty, + response: undefined as unknown as Array +} + \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersById.ts b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersById.ts new file mode 100644 index 0000000..419b860 --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersById.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Empty } from "../Empty"; +import type { PackUserBase } from "../packed/PackUserBase"; + +export const GetFollowersById = { + endpoint: "/users/:id/followers", + pathParams: ["id"] as ["id"], + method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH", + request: undefined as unknown as Empty, + response: undefined as unknown as Array +} + \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersSelf.ts b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersSelf.ts new file mode 100644 index 0000000..a3ee873 --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowersSelf.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Empty } from "../Empty"; +import type { PackUserBase } from "../packed/PackUserBase"; + +export const GetFollowersSelf = { + endpoint: "/users/@self/followers", + pathParams: [] as [], + method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH", + request: undefined as unknown as Empty, + response: undefined as unknown as Array +} + \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingById.ts b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingById.ts new file mode 100644 index 0000000..c782707 --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingById.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Empty } from "../Empty"; +import type { PackUserBase } from "../packed/PackUserBase"; + +export const GetFollowingById = { + endpoint: "/users/:id/following", + pathParams: ["id"] as ["id"], + method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH", + request: undefined as unknown as Empty, + response: undefined as unknown as Array +} + \ No newline at end of file diff --git a/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingSelf.ts b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingSelf.ts new file mode 100644 index 0000000..691c8eb --- /dev/null +++ b/fe_calckey/frontend/magnetar-common/src/types/endpoints/GetFollowingSelf.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Empty } from "../Empty"; +import type { PackUserBase } from "../packed/PackUserBase"; + +export const GetFollowingSelf = { + endpoint: "/users/@self/following", + pathParams: [] as [], + method: "GET" as "GET" | "POST" | "PUT" | "DELETE" | "PATCH", + request: undefined as unknown as Empty, + response: undefined as unknown as Array +} + \ No newline at end of file diff --git a/magnetar_sdk/src/endpoints/mod.rs b/magnetar_sdk/src/endpoints/mod.rs index 31e59e8..fc6cfc2 100644 --- a/magnetar_sdk/src/endpoints/mod.rs +++ b/magnetar_sdk/src/endpoints/mod.rs @@ -23,6 +23,7 @@ pub enum ErrorKind { } #[derive(Clone, Debug, Serialize, Deserialize, TS)] +#[ts(export)] pub struct Empty; impl From for () {