@foru-ms/sdk 2.1.9 → 2.1.11
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/posts/types/RetrievePostPostsResponse.d.ts +21 -2
- package/dist/cjs/api/resources/posts/types/RetrievePostPostsResponse.js +2 -2
- package/dist/cjs/api/resources/posts/types/RetrieveReactionPostsResponse.d.ts +19 -0
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.d.ts +21 -2
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.js +2 -2
- package/dist/cjs/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.ts +19 -0
- package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.d.ts +21 -2
- package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.js +2 -2
- package/dist/cjs/api/resources/threads/types/RetrieveReactionThreadsResponse.d.ts +19 -0
- package/dist/cjs/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.ts +19 -0
- package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +53 -11
- package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.js +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/users/client/Client.js +66 -0
- package/dist/cjs/api/resources/users/client/requests/CreateFollowerUsersRequest.d.ts +10 -0
- package/dist/cjs/api/resources/users/client/requests/CreateFollowerUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/types/RetrieveFollowerUsersResponse.d.ts +19 -0
- package/dist/cjs/api/resources/users/types/RetrieveFollowingUsersResponse.d.ts +19 -0
- package/dist/cjs/api/resources/users/types/UpdateUsersResponse.d.ts +1 -0
- package/dist/cjs/api/types/LoginResponse.d.ts +1 -0
- package/dist/cjs/api/types/MeResponse.d.ts +1 -0
- package/dist/cjs/api/types/Post.d.ts +21 -2
- package/dist/cjs/api/types/Post.js +2 -2
- package/dist/cjs/api/types/PostListResponse.d.ts +21 -2
- package/dist/cjs/api/types/PostListResponse.js +2 -2
- package/dist/cjs/api/types/PostPost.d.ts +21 -2
- package/dist/cjs/api/types/PostPost.js +2 -2
- package/dist/cjs/api/types/PostPostListResponse.d.ts +21 -2
- package/dist/cjs/api/types/PostPostListResponse.js +2 -2
- package/dist/cjs/api/types/PostPostResponse.d.ts +21 -2
- package/dist/cjs/api/types/PostPostResponse.js +2 -2
- package/dist/cjs/api/types/PostReaction.d.ts +19 -0
- package/dist/cjs/api/types/PostReactionListResponse.d.ts +19 -0
- package/dist/cjs/api/types/PostReactionResponse.d.ts +19 -0
- package/dist/cjs/api/types/PostResponse.d.ts +21 -2
- package/dist/cjs/api/types/PostResponse.js +2 -2
- package/dist/cjs/api/types/RegisterResponse.d.ts +1 -0
- package/dist/cjs/api/types/TagSubscriber.d.ts +19 -0
- package/dist/cjs/api/types/TagSubscriberListResponse.d.ts +19 -0
- package/dist/cjs/api/types/TagSubscriberResponse.d.ts +19 -0
- package/dist/cjs/api/types/Thread.d.ts +41 -6
- package/dist/cjs/api/types/Thread.js +2 -2
- package/dist/cjs/api/types/ThreadListResponse.d.ts +53 -11
- package/dist/cjs/api/types/ThreadListResponse.js +2 -2
- package/dist/cjs/api/types/ThreadPoll.d.ts +2 -6
- package/dist/cjs/api/types/ThreadPollListResponse.d.ts +2 -6
- package/dist/cjs/api/types/ThreadPollResponse.d.ts +2 -6
- package/dist/cjs/api/types/ThreadPost.d.ts +21 -2
- package/dist/cjs/api/types/ThreadPost.js +2 -2
- package/dist/cjs/api/types/ThreadPostListResponse.d.ts +21 -2
- package/dist/cjs/api/types/ThreadPostListResponse.js +2 -2
- package/dist/cjs/api/types/ThreadPostResponse.d.ts +21 -2
- package/dist/cjs/api/types/ThreadPostResponse.js +2 -2
- package/dist/cjs/api/types/ThreadReaction.d.ts +19 -0
- package/dist/cjs/api/types/ThreadReactionListResponse.d.ts +19 -0
- package/dist/cjs/api/types/ThreadReactionResponse.d.ts +19 -0
- package/dist/cjs/api/types/ThreadResponse.d.ts +53 -11
- package/dist/cjs/api/types/ThreadResponse.js +2 -2
- package/dist/cjs/api/types/ThreadSubscriber.d.ts +19 -0
- package/dist/cjs/api/types/ThreadSubscriberListResponse.d.ts +19 -0
- package/dist/cjs/api/types/ThreadSubscriberResponse.d.ts +19 -0
- package/dist/cjs/api/types/User.d.ts +1 -0
- package/dist/cjs/api/types/UserFollower.d.ts +19 -0
- package/dist/cjs/api/types/UserFollowerCreate.d.ts +4 -0
- package/dist/cjs/api/types/UserFollowerCreate.js +3 -0
- package/dist/cjs/api/types/UserFollowerListResponse.d.ts +19 -0
- package/dist/cjs/api/types/UserFollowerResponse.d.ts +19 -0
- package/dist/cjs/api/types/UserFollowing.d.ts +19 -0
- package/dist/cjs/api/types/UserFollowingListResponse.d.ts +19 -0
- package/dist/cjs/api/types/UserFollowingResponse.d.ts +19 -0
- package/dist/cjs/api/types/UserListResponse.d.ts +1 -0
- package/dist/cjs/api/types/UserResponse.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/posts/types/RetrievePostPostsResponse.d.mts +21 -2
- package/dist/esm/api/resources/posts/types/RetrievePostPostsResponse.mjs +2 -2
- package/dist/esm/api/resources/posts/types/RetrieveReactionPostsResponse.d.mts +19 -0
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.d.mts +21 -2
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.mjs +2 -2
- package/dist/esm/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.mts +19 -0
- package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.d.mts +21 -2
- package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.mjs +2 -2
- package/dist/esm/api/resources/threads/types/RetrieveReactionThreadsResponse.d.mts +19 -0
- package/dist/esm/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.mts +19 -0
- package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +53 -11
- package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.mjs +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/users/client/Client.mjs +66 -0
- package/dist/esm/api/resources/users/client/requests/CreateFollowerUsersRequest.d.mts +10 -0
- package/dist/esm/api/resources/users/client/requests/CreateFollowerUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/users/types/RetrieveFollowerUsersResponse.d.mts +19 -0
- package/dist/esm/api/resources/users/types/RetrieveFollowingUsersResponse.d.mts +19 -0
- package/dist/esm/api/resources/users/types/UpdateUsersResponse.d.mts +1 -0
- package/dist/esm/api/types/LoginResponse.d.mts +1 -0
- package/dist/esm/api/types/MeResponse.d.mts +1 -0
- package/dist/esm/api/types/Post.d.mts +21 -2
- package/dist/esm/api/types/Post.mjs +2 -2
- package/dist/esm/api/types/PostListResponse.d.mts +21 -2
- package/dist/esm/api/types/PostListResponse.mjs +2 -2
- package/dist/esm/api/types/PostPost.d.mts +21 -2
- package/dist/esm/api/types/PostPost.mjs +2 -2
- package/dist/esm/api/types/PostPostListResponse.d.mts +21 -2
- package/dist/esm/api/types/PostPostListResponse.mjs +2 -2
- package/dist/esm/api/types/PostPostResponse.d.mts +21 -2
- package/dist/esm/api/types/PostPostResponse.mjs +2 -2
- package/dist/esm/api/types/PostReaction.d.mts +19 -0
- package/dist/esm/api/types/PostReactionListResponse.d.mts +19 -0
- package/dist/esm/api/types/PostReactionResponse.d.mts +19 -0
- package/dist/esm/api/types/PostResponse.d.mts +21 -2
- package/dist/esm/api/types/PostResponse.mjs +2 -2
- package/dist/esm/api/types/RegisterResponse.d.mts +1 -0
- package/dist/esm/api/types/TagSubscriber.d.mts +19 -0
- package/dist/esm/api/types/TagSubscriberListResponse.d.mts +19 -0
- package/dist/esm/api/types/TagSubscriberResponse.d.mts +19 -0
- package/dist/esm/api/types/Thread.d.mts +41 -6
- package/dist/esm/api/types/Thread.mjs +2 -2
- package/dist/esm/api/types/ThreadListResponse.d.mts +53 -11
- package/dist/esm/api/types/ThreadListResponse.mjs +2 -2
- package/dist/esm/api/types/ThreadPoll.d.mts +2 -6
- package/dist/esm/api/types/ThreadPollListResponse.d.mts +2 -6
- package/dist/esm/api/types/ThreadPollResponse.d.mts +2 -6
- package/dist/esm/api/types/ThreadPost.d.mts +21 -2
- package/dist/esm/api/types/ThreadPost.mjs +2 -2
- package/dist/esm/api/types/ThreadPostListResponse.d.mts +21 -2
- package/dist/esm/api/types/ThreadPostListResponse.mjs +2 -2
- package/dist/esm/api/types/ThreadPostResponse.d.mts +21 -2
- package/dist/esm/api/types/ThreadPostResponse.mjs +2 -2
- package/dist/esm/api/types/ThreadReaction.d.mts +19 -0
- package/dist/esm/api/types/ThreadReactionListResponse.d.mts +19 -0
- package/dist/esm/api/types/ThreadReactionResponse.d.mts +19 -0
- package/dist/esm/api/types/ThreadResponse.d.mts +53 -11
- package/dist/esm/api/types/ThreadResponse.mjs +2 -2
- package/dist/esm/api/types/ThreadSubscriber.d.mts +19 -0
- package/dist/esm/api/types/ThreadSubscriberListResponse.d.mts +19 -0
- package/dist/esm/api/types/ThreadSubscriberResponse.d.mts +19 -0
- package/dist/esm/api/types/User.d.mts +1 -0
- package/dist/esm/api/types/UserFollower.d.mts +19 -0
- package/dist/esm/api/types/UserFollowerCreate.d.mts +4 -0
- package/dist/esm/api/types/UserFollowerCreate.mjs +2 -0
- package/dist/esm/api/types/UserFollowerListResponse.d.mts +19 -0
- package/dist/esm/api/types/UserFollowerResponse.d.mts +19 -0
- package/dist/esm/api/types/UserFollowing.d.mts +19 -0
- package/dist/esm/api/types/UserFollowingListResponse.d.mts +19 -0
- package/dist/esm/api/types/UserFollowingResponse.d.mts +19 -0
- package/dist/esm/api/types/UserListResponse.d.mts +1 -0
- package/dist/esm/api/types/UserResponse.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +65 -0
|
@@ -9,11 +9,30 @@ export declare namespace ThreadReaction {
|
|
|
9
9
|
interface User {
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
|
+
/** Display name */
|
|
12
13
|
displayName: string | null;
|
|
14
|
+
/** User bio */
|
|
13
15
|
bio: string | null;
|
|
16
|
+
/** Forum signature */
|
|
17
|
+
signature: string | null;
|
|
18
|
+
/** User website URL */
|
|
14
19
|
url: string | null;
|
|
20
|
+
/** Total posts by user */
|
|
21
|
+
postsCount?: number;
|
|
22
|
+
/** Total threads by user */
|
|
23
|
+
threadsCount?: number;
|
|
24
|
+
/** Online status */
|
|
15
25
|
isOnline: boolean | null;
|
|
26
|
+
/** Last activity timestamp */
|
|
27
|
+
lastSeenAt: string | null;
|
|
28
|
+
/** User roles */
|
|
16
29
|
roles?: User.Roles.Item[];
|
|
30
|
+
/** Custom user data */
|
|
31
|
+
extendedData: Record<string, unknown> | null;
|
|
32
|
+
/** Account creation timestamp */
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/** Profile last update timestamp */
|
|
35
|
+
updatedAt: string;
|
|
17
36
|
}
|
|
18
37
|
namespace User {
|
|
19
38
|
type Roles = Roles.Item[];
|
|
@@ -21,11 +21,30 @@ export declare namespace ThreadReactionListResponse {
|
|
|
21
21
|
interface User {
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
|
+
/** Display name */
|
|
24
25
|
displayName: string | null;
|
|
26
|
+
/** User bio */
|
|
25
27
|
bio: string | null;
|
|
28
|
+
/** Forum signature */
|
|
29
|
+
signature: string | null;
|
|
30
|
+
/** User website URL */
|
|
26
31
|
url: string | null;
|
|
32
|
+
/** Total posts by user */
|
|
33
|
+
postsCount?: number;
|
|
34
|
+
/** Total threads by user */
|
|
35
|
+
threadsCount?: number;
|
|
36
|
+
/** Online status */
|
|
27
37
|
isOnline: boolean | null;
|
|
38
|
+
/** Last activity timestamp */
|
|
39
|
+
lastSeenAt: string | null;
|
|
40
|
+
/** User roles */
|
|
28
41
|
roles?: User.Roles.Item[];
|
|
42
|
+
/** Custom user data */
|
|
43
|
+
extendedData: Record<string, unknown> | null;
|
|
44
|
+
/** Account creation timestamp */
|
|
45
|
+
createdAt: string;
|
|
46
|
+
/** Profile last update timestamp */
|
|
47
|
+
updatedAt: string;
|
|
29
48
|
}
|
|
30
49
|
namespace User {
|
|
31
50
|
type Roles = Roles.Item[];
|
|
@@ -13,11 +13,30 @@ export declare namespace ThreadReactionResponse {
|
|
|
13
13
|
interface User {
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
|
+
/** Display name */
|
|
16
17
|
displayName: string | null;
|
|
18
|
+
/** User bio */
|
|
17
19
|
bio: string | null;
|
|
20
|
+
/** Forum signature */
|
|
21
|
+
signature: string | null;
|
|
22
|
+
/** User website URL */
|
|
18
23
|
url: string | null;
|
|
24
|
+
/** Total posts by user */
|
|
25
|
+
postsCount?: number;
|
|
26
|
+
/** Total threads by user */
|
|
27
|
+
threadsCount?: number;
|
|
28
|
+
/** Online status */
|
|
19
29
|
isOnline: boolean | null;
|
|
30
|
+
/** Last activity timestamp */
|
|
31
|
+
lastSeenAt: string | null;
|
|
32
|
+
/** User roles */
|
|
20
33
|
roles?: User.Roles.Item[];
|
|
34
|
+
/** Custom user data */
|
|
35
|
+
extendedData: Record<string, unknown> | null;
|
|
36
|
+
/** Account creation timestamp */
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/** Profile last update timestamp */
|
|
39
|
+
updatedAt: string;
|
|
21
40
|
}
|
|
22
41
|
namespace User {
|
|
23
42
|
type Roles = Roles.Item[];
|
|
@@ -9,10 +9,10 @@ export declare namespace ThreadResponse {
|
|
|
9
9
|
body: string;
|
|
10
10
|
/** Author user ID (required for API key auth, ignored for JWT auth) */
|
|
11
11
|
userId?: string;
|
|
12
|
-
/**
|
|
13
|
-
tags?:
|
|
14
|
-
/**
|
|
15
|
-
poll?: Data.Poll;
|
|
12
|
+
/** Thread tags */
|
|
13
|
+
tags?: Data.Tags.Item[];
|
|
14
|
+
/** Thread poll */
|
|
15
|
+
poll?: Data.Poll | null;
|
|
16
16
|
/** Whether thread is locked */
|
|
17
17
|
locked: boolean | null;
|
|
18
18
|
/** Whether thread is pinned */
|
|
@@ -36,22 +36,45 @@ export declare namespace ThreadResponse {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
}
|
|
38
38
|
namespace Data {
|
|
39
|
+
type Tags = Tags.Item[];
|
|
40
|
+
namespace Tags {
|
|
41
|
+
interface Item {
|
|
42
|
+
/** Tag name */
|
|
43
|
+
name: string;
|
|
44
|
+
/** Tag slug (unique identifier) */
|
|
45
|
+
slug?: string;
|
|
46
|
+
/** Tag description */
|
|
47
|
+
description?: string;
|
|
48
|
+
/** Hex color code */
|
|
49
|
+
color?: string;
|
|
50
|
+
/** Extended data */
|
|
51
|
+
extendedData?: Record<string, unknown>;
|
|
52
|
+
id: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
39
55
|
/**
|
|
40
|
-
*
|
|
56
|
+
* Thread poll
|
|
41
57
|
*/
|
|
42
58
|
interface Poll {
|
|
43
|
-
|
|
59
|
+
id: string;
|
|
44
60
|
title: string;
|
|
45
|
-
|
|
61
|
+
closed: boolean | null;
|
|
62
|
+
closedAt: string | null;
|
|
63
|
+
expiresAt: string | null;
|
|
64
|
+
totalVotes: number;
|
|
46
65
|
options: Poll.Options.Item[];
|
|
66
|
+
createdAt: string;
|
|
67
|
+
updatedAt: string;
|
|
47
68
|
}
|
|
48
69
|
namespace Poll {
|
|
49
70
|
type Options = Options.Item[];
|
|
50
71
|
namespace Options {
|
|
51
72
|
interface Item {
|
|
73
|
+
id: string;
|
|
52
74
|
title: string;
|
|
53
|
-
color
|
|
54
|
-
|
|
75
|
+
color: string | null;
|
|
76
|
+
votesCount: number;
|
|
77
|
+
extendedData: Record<string, unknown> | null;
|
|
55
78
|
}
|
|
56
79
|
}
|
|
57
80
|
}
|
|
@@ -61,11 +84,30 @@ export declare namespace ThreadResponse {
|
|
|
61
84
|
interface User {
|
|
62
85
|
id: string;
|
|
63
86
|
username: string;
|
|
87
|
+
/** Display name */
|
|
64
88
|
displayName: string | null;
|
|
89
|
+
/** User bio */
|
|
65
90
|
bio: string | null;
|
|
91
|
+
/** Forum signature */
|
|
92
|
+
signature: string | null;
|
|
93
|
+
/** User website URL */
|
|
66
94
|
url: string | null;
|
|
95
|
+
/** Total posts by user */
|
|
96
|
+
postsCount?: number;
|
|
97
|
+
/** Total threads by user */
|
|
98
|
+
threadsCount?: number;
|
|
99
|
+
/** Online status */
|
|
67
100
|
isOnline: boolean | null;
|
|
101
|
+
/** Last activity timestamp */
|
|
102
|
+
lastSeenAt: string | null;
|
|
103
|
+
/** User roles */
|
|
68
104
|
roles?: User.Roles.Item[];
|
|
105
|
+
/** Custom user data */
|
|
106
|
+
extendedData: Record<string, unknown> | null;
|
|
107
|
+
/** Account creation timestamp */
|
|
108
|
+
createdAt: string;
|
|
109
|
+
/** Profile last update timestamp */
|
|
110
|
+
updatedAt: string;
|
|
69
111
|
}
|
|
70
112
|
namespace User {
|
|
71
113
|
type Roles = Roles.Item[];
|
|
@@ -88,10 +130,10 @@ export declare namespace ThreadResponse {
|
|
|
88
130
|
}
|
|
89
131
|
namespace Item {
|
|
90
132
|
const Type: {
|
|
91
|
-
readonly Upvote: "UPVOTE";
|
|
92
|
-
readonly Downvote: "DOWNVOTE";
|
|
93
133
|
readonly Like: "LIKE";
|
|
94
134
|
readonly Dislike: "DISLIKE";
|
|
135
|
+
readonly Upvote: "UPVOTE";
|
|
136
|
+
readonly Downvote: "DOWNVOTE";
|
|
95
137
|
};
|
|
96
138
|
type Type = (typeof Type)[keyof typeof Type];
|
|
97
139
|
}
|
|
@@ -8,10 +8,10 @@ export var ThreadResponse;
|
|
|
8
8
|
let Item;
|
|
9
9
|
(function (Item) {
|
|
10
10
|
Item.Type = {
|
|
11
|
-
Upvote: "UPVOTE",
|
|
12
|
-
Downvote: "DOWNVOTE",
|
|
13
11
|
Like: "LIKE",
|
|
14
12
|
Dislike: "DISLIKE",
|
|
13
|
+
Upvote: "UPVOTE",
|
|
14
|
+
Downvote: "DOWNVOTE",
|
|
15
15
|
};
|
|
16
16
|
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
17
17
|
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
@@ -9,11 +9,30 @@ export declare namespace ThreadSubscriber {
|
|
|
9
9
|
interface User {
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
|
+
/** Display name */
|
|
12
13
|
displayName: string | null;
|
|
14
|
+
/** User bio */
|
|
13
15
|
bio: string | null;
|
|
16
|
+
/** Forum signature */
|
|
17
|
+
signature: string | null;
|
|
18
|
+
/** User website URL */
|
|
14
19
|
url: string | null;
|
|
20
|
+
/** Total posts by user */
|
|
21
|
+
postsCount?: number;
|
|
22
|
+
/** Total threads by user */
|
|
23
|
+
threadsCount?: number;
|
|
24
|
+
/** Online status */
|
|
15
25
|
isOnline: boolean | null;
|
|
26
|
+
/** Last activity timestamp */
|
|
27
|
+
lastSeenAt: string | null;
|
|
28
|
+
/** User roles */
|
|
16
29
|
roles?: User.Roles.Item[];
|
|
30
|
+
/** Custom user data */
|
|
31
|
+
extendedData: Record<string, unknown> | null;
|
|
32
|
+
/** Account creation timestamp */
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/** Profile last update timestamp */
|
|
35
|
+
updatedAt: string;
|
|
17
36
|
}
|
|
18
37
|
namespace User {
|
|
19
38
|
type Roles = Roles.Item[];
|
|
@@ -21,11 +21,30 @@ export declare namespace ThreadSubscriberListResponse {
|
|
|
21
21
|
interface User {
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
|
+
/** Display name */
|
|
24
25
|
displayName: string | null;
|
|
26
|
+
/** User bio */
|
|
25
27
|
bio: string | null;
|
|
28
|
+
/** Forum signature */
|
|
29
|
+
signature: string | null;
|
|
30
|
+
/** User website URL */
|
|
26
31
|
url: string | null;
|
|
32
|
+
/** Total posts by user */
|
|
33
|
+
postsCount?: number;
|
|
34
|
+
/** Total threads by user */
|
|
35
|
+
threadsCount?: number;
|
|
36
|
+
/** Online status */
|
|
27
37
|
isOnline: boolean | null;
|
|
38
|
+
/** Last activity timestamp */
|
|
39
|
+
lastSeenAt: string | null;
|
|
40
|
+
/** User roles */
|
|
28
41
|
roles?: User.Roles.Item[];
|
|
42
|
+
/** Custom user data */
|
|
43
|
+
extendedData: Record<string, unknown> | null;
|
|
44
|
+
/** Account creation timestamp */
|
|
45
|
+
createdAt: string;
|
|
46
|
+
/** Profile last update timestamp */
|
|
47
|
+
updatedAt: string;
|
|
29
48
|
}
|
|
30
49
|
namespace User {
|
|
31
50
|
type Roles = Roles.Item[];
|
|
@@ -13,11 +13,30 @@ export declare namespace ThreadSubscriberResponse {
|
|
|
13
13
|
interface User {
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
|
+
/** Display name */
|
|
16
17
|
displayName: string | null;
|
|
18
|
+
/** User bio */
|
|
17
19
|
bio: string | null;
|
|
20
|
+
/** Forum signature */
|
|
21
|
+
signature: string | null;
|
|
22
|
+
/** User website URL */
|
|
18
23
|
url: string | null;
|
|
24
|
+
/** Total posts by user */
|
|
25
|
+
postsCount?: number;
|
|
26
|
+
/** Total threads by user */
|
|
27
|
+
threadsCount?: number;
|
|
28
|
+
/** Online status */
|
|
19
29
|
isOnline: boolean | null;
|
|
30
|
+
/** Last activity timestamp */
|
|
31
|
+
lastSeenAt: string | null;
|
|
32
|
+
/** User roles */
|
|
20
33
|
roles?: User.Roles.Item[];
|
|
34
|
+
/** Custom user data */
|
|
35
|
+
extendedData: Record<string, unknown> | null;
|
|
36
|
+
/** Account creation timestamp */
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/** Profile last update timestamp */
|
|
39
|
+
updatedAt: string;
|
|
21
40
|
}
|
|
22
41
|
namespace User {
|
|
23
42
|
type Roles = Roles.Item[];
|
|
@@ -9,11 +9,30 @@ export declare namespace UserFollower {
|
|
|
9
9
|
interface Follower {
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
|
+
/** Display name */
|
|
12
13
|
displayName: string | null;
|
|
14
|
+
/** User bio */
|
|
13
15
|
bio: string | null;
|
|
16
|
+
/** Forum signature */
|
|
17
|
+
signature: string | null;
|
|
18
|
+
/** User website URL */
|
|
14
19
|
url: string | null;
|
|
20
|
+
/** Total posts by user */
|
|
21
|
+
postsCount?: number;
|
|
22
|
+
/** Total threads by user */
|
|
23
|
+
threadsCount?: number;
|
|
24
|
+
/** Online status */
|
|
15
25
|
isOnline: boolean | null;
|
|
26
|
+
/** Last activity timestamp */
|
|
27
|
+
lastSeenAt: string | null;
|
|
28
|
+
/** User roles */
|
|
16
29
|
roles?: Follower.Roles.Item[];
|
|
30
|
+
/** Custom user data */
|
|
31
|
+
extendedData: Record<string, unknown> | null;
|
|
32
|
+
/** Account creation timestamp */
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/** Profile last update timestamp */
|
|
35
|
+
updatedAt: string;
|
|
17
36
|
}
|
|
18
37
|
namespace Follower {
|
|
19
38
|
type Roles = Roles.Item[];
|
|
@@ -21,11 +21,30 @@ export declare namespace UserFollowerListResponse {
|
|
|
21
21
|
interface Follower {
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
|
+
/** Display name */
|
|
24
25
|
displayName: string | null;
|
|
26
|
+
/** User bio */
|
|
25
27
|
bio: string | null;
|
|
28
|
+
/** Forum signature */
|
|
29
|
+
signature: string | null;
|
|
30
|
+
/** User website URL */
|
|
26
31
|
url: string | null;
|
|
32
|
+
/** Total posts by user */
|
|
33
|
+
postsCount?: number;
|
|
34
|
+
/** Total threads by user */
|
|
35
|
+
threadsCount?: number;
|
|
36
|
+
/** Online status */
|
|
27
37
|
isOnline: boolean | null;
|
|
38
|
+
/** Last activity timestamp */
|
|
39
|
+
lastSeenAt: string | null;
|
|
40
|
+
/** User roles */
|
|
28
41
|
roles?: Follower.Roles.Item[];
|
|
42
|
+
/** Custom user data */
|
|
43
|
+
extendedData: Record<string, unknown> | null;
|
|
44
|
+
/** Account creation timestamp */
|
|
45
|
+
createdAt: string;
|
|
46
|
+
/** Profile last update timestamp */
|
|
47
|
+
updatedAt: string;
|
|
29
48
|
}
|
|
30
49
|
namespace Follower {
|
|
31
50
|
type Roles = Roles.Item[];
|
|
@@ -13,11 +13,30 @@ export declare namespace UserFollowerResponse {
|
|
|
13
13
|
interface Follower {
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
|
+
/** Display name */
|
|
16
17
|
displayName: string | null;
|
|
18
|
+
/** User bio */
|
|
17
19
|
bio: string | null;
|
|
20
|
+
/** Forum signature */
|
|
21
|
+
signature: string | null;
|
|
22
|
+
/** User website URL */
|
|
18
23
|
url: string | null;
|
|
24
|
+
/** Total posts by user */
|
|
25
|
+
postsCount?: number;
|
|
26
|
+
/** Total threads by user */
|
|
27
|
+
threadsCount?: number;
|
|
28
|
+
/** Online status */
|
|
19
29
|
isOnline: boolean | null;
|
|
30
|
+
/** Last activity timestamp */
|
|
31
|
+
lastSeenAt: string | null;
|
|
32
|
+
/** User roles */
|
|
20
33
|
roles?: Follower.Roles.Item[];
|
|
34
|
+
/** Custom user data */
|
|
35
|
+
extendedData: Record<string, unknown> | null;
|
|
36
|
+
/** Account creation timestamp */
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/** Profile last update timestamp */
|
|
39
|
+
updatedAt: string;
|
|
21
40
|
}
|
|
22
41
|
namespace Follower {
|
|
23
42
|
type Roles = Roles.Item[];
|
|
@@ -9,11 +9,30 @@ export declare namespace UserFollowing {
|
|
|
9
9
|
interface Following {
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
|
+
/** Display name */
|
|
12
13
|
displayName: string | null;
|
|
14
|
+
/** User bio */
|
|
13
15
|
bio: string | null;
|
|
16
|
+
/** Forum signature */
|
|
17
|
+
signature: string | null;
|
|
18
|
+
/** User website URL */
|
|
14
19
|
url: string | null;
|
|
20
|
+
/** Total posts by user */
|
|
21
|
+
postsCount?: number;
|
|
22
|
+
/** Total threads by user */
|
|
23
|
+
threadsCount?: number;
|
|
24
|
+
/** Online status */
|
|
15
25
|
isOnline: boolean | null;
|
|
26
|
+
/** Last activity timestamp */
|
|
27
|
+
lastSeenAt: string | null;
|
|
28
|
+
/** User roles */
|
|
16
29
|
roles?: Following.Roles.Item[];
|
|
30
|
+
/** Custom user data */
|
|
31
|
+
extendedData: Record<string, unknown> | null;
|
|
32
|
+
/** Account creation timestamp */
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/** Profile last update timestamp */
|
|
35
|
+
updatedAt: string;
|
|
17
36
|
}
|
|
18
37
|
namespace Following {
|
|
19
38
|
type Roles = Roles.Item[];
|
|
@@ -21,11 +21,30 @@ export declare namespace UserFollowingListResponse {
|
|
|
21
21
|
interface Following {
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
|
+
/** Display name */
|
|
24
25
|
displayName: string | null;
|
|
26
|
+
/** User bio */
|
|
25
27
|
bio: string | null;
|
|
28
|
+
/** Forum signature */
|
|
29
|
+
signature: string | null;
|
|
30
|
+
/** User website URL */
|
|
26
31
|
url: string | null;
|
|
32
|
+
/** Total posts by user */
|
|
33
|
+
postsCount?: number;
|
|
34
|
+
/** Total threads by user */
|
|
35
|
+
threadsCount?: number;
|
|
36
|
+
/** Online status */
|
|
27
37
|
isOnline: boolean | null;
|
|
38
|
+
/** Last activity timestamp */
|
|
39
|
+
lastSeenAt: string | null;
|
|
40
|
+
/** User roles */
|
|
28
41
|
roles?: Following.Roles.Item[];
|
|
42
|
+
/** Custom user data */
|
|
43
|
+
extendedData: Record<string, unknown> | null;
|
|
44
|
+
/** Account creation timestamp */
|
|
45
|
+
createdAt: string;
|
|
46
|
+
/** Profile last update timestamp */
|
|
47
|
+
updatedAt: string;
|
|
29
48
|
}
|
|
30
49
|
namespace Following {
|
|
31
50
|
type Roles = Roles.Item[];
|
|
@@ -13,11 +13,30 @@ export declare namespace UserFollowingResponse {
|
|
|
13
13
|
interface Following {
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
|
+
/** Display name */
|
|
16
17
|
displayName: string | null;
|
|
18
|
+
/** User bio */
|
|
17
19
|
bio: string | null;
|
|
20
|
+
/** Forum signature */
|
|
21
|
+
signature: string | null;
|
|
22
|
+
/** User website URL */
|
|
18
23
|
url: string | null;
|
|
24
|
+
/** Total posts by user */
|
|
25
|
+
postsCount?: number;
|
|
26
|
+
/** Total threads by user */
|
|
27
|
+
threadsCount?: number;
|
|
28
|
+
/** Online status */
|
|
19
29
|
isOnline: boolean | null;
|
|
30
|
+
/** Last activity timestamp */
|
|
31
|
+
lastSeenAt: string | null;
|
|
32
|
+
/** User roles */
|
|
20
33
|
roles?: Following.Roles.Item[];
|
|
34
|
+
/** Custom user data */
|
|
35
|
+
extendedData: Record<string, unknown> | null;
|
|
36
|
+
/** Account creation timestamp */
|
|
37
|
+
createdAt: string;
|
|
38
|
+
/** Profile last update timestamp */
|
|
39
|
+
updatedAt: string;
|
|
21
40
|
}
|
|
22
41
|
namespace Following {
|
|
23
42
|
type Roles = Roles.Item[];
|
|
@@ -106,6 +106,7 @@ export * from "./UsageStats.mjs";
|
|
|
106
106
|
export * from "./User.mjs";
|
|
107
107
|
export * from "./UserCreate.mjs";
|
|
108
108
|
export * from "./UserFollower.mjs";
|
|
109
|
+
export * from "./UserFollowerCreate.mjs";
|
|
109
110
|
export * from "./UserFollowerListResponse.mjs";
|
|
110
111
|
export * from "./UserFollowerResponse.mjs";
|
|
111
112
|
export * from "./UserFollowing.mjs";
|
|
@@ -106,6 +106,7 @@ export * from "./UsageStats.mjs";
|
|
|
106
106
|
export * from "./User.mjs";
|
|
107
107
|
export * from "./UserCreate.mjs";
|
|
108
108
|
export * from "./UserFollower.mjs";
|
|
109
|
+
export * from "./UserFollowerCreate.mjs";
|
|
109
110
|
export * from "./UserFollowerListResponse.mjs";
|
|
110
111
|
export * from "./UserFollowerResponse.mjs";
|
|
111
112
|
export * from "./UserFollowing.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.1.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.11";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.1.
|
|
1
|
+
export const SDK_VERSION = "2.1.11";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3569,6 +3569,71 @@ await client.users.listFollowers({
|
|
|
3569
3569
|
</dl>
|
|
3570
3570
|
|
|
3571
3571
|
|
|
3572
|
+
</dd>
|
|
3573
|
+
</dl>
|
|
3574
|
+
</details>
|
|
3575
|
+
|
|
3576
|
+
<details><summary><code>client.users.<a href="/src/api/resources/users/client/Client.ts">createFollower</a>({ ...params }) -> Forum.UserFollowerResponse</code></summary>
|
|
3577
|
+
<dl>
|
|
3578
|
+
<dd>
|
|
3579
|
+
|
|
3580
|
+
#### 📝 Description
|
|
3581
|
+
|
|
3582
|
+
<dl>
|
|
3583
|
+
<dd>
|
|
3584
|
+
|
|
3585
|
+
<dl>
|
|
3586
|
+
<dd>
|
|
3587
|
+
|
|
3588
|
+
Create a Follower in User.
|
|
3589
|
+
</dd>
|
|
3590
|
+
</dl>
|
|
3591
|
+
</dd>
|
|
3592
|
+
</dl>
|
|
3593
|
+
|
|
3594
|
+
#### 🔌 Usage
|
|
3595
|
+
|
|
3596
|
+
<dl>
|
|
3597
|
+
<dd>
|
|
3598
|
+
|
|
3599
|
+
<dl>
|
|
3600
|
+
<dd>
|
|
3601
|
+
|
|
3602
|
+
```typescript
|
|
3603
|
+
await client.users.createFollower({
|
|
3604
|
+
id: "id"
|
|
3605
|
+
});
|
|
3606
|
+
|
|
3607
|
+
```
|
|
3608
|
+
</dd>
|
|
3609
|
+
</dl>
|
|
3610
|
+
</dd>
|
|
3611
|
+
</dl>
|
|
3612
|
+
|
|
3613
|
+
#### ⚙️ Parameters
|
|
3614
|
+
|
|
3615
|
+
<dl>
|
|
3616
|
+
<dd>
|
|
3617
|
+
|
|
3618
|
+
<dl>
|
|
3619
|
+
<dd>
|
|
3620
|
+
|
|
3621
|
+
**request:** `Forum.CreateFollowerUsersRequest`
|
|
3622
|
+
|
|
3623
|
+
</dd>
|
|
3624
|
+
</dl>
|
|
3625
|
+
|
|
3626
|
+
<dl>
|
|
3627
|
+
<dd>
|
|
3628
|
+
|
|
3629
|
+
**requestOptions:** `UsersClient.RequestOptions`
|
|
3630
|
+
|
|
3631
|
+
</dd>
|
|
3632
|
+
</dl>
|
|
3633
|
+
</dd>
|
|
3634
|
+
</dl>
|
|
3635
|
+
|
|
3636
|
+
|
|
3572
3637
|
</dd>
|
|
3573
3638
|
</dl>
|
|
3574
3639
|
</details>
|