@foru-ms/sdk 2.1.7 → 2.1.8
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 +34 -0
- package/dist/cjs/api/resources/posts/types/RetrievePostPostsResponse.js +19 -0
- package/dist/cjs/api/resources/posts/types/RetrieveReactionPostsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.d.ts +47 -0
- package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.js +19 -0
- package/dist/cjs/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.d.ts +34 -0
- package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.js +19 -0
- package/dist/cjs/api/resources/threads/types/RetrieveReactionThreadsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.ts +15 -0
- package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +25 -0
- package/dist/cjs/api/resources/users/types/RetrieveFollowerUsersResponse.d.ts +15 -0
- package/dist/cjs/api/resources/users/types/RetrieveFollowingUsersResponse.d.ts +15 -0
- package/dist/cjs/api/types/Post.d.ts +47 -0
- package/dist/cjs/api/types/Post.js +16 -0
- package/dist/cjs/api/types/PostListResponse.d.ts +47 -0
- package/dist/cjs/api/types/PostListResponse.js +25 -0
- package/dist/cjs/api/types/PostPost.d.ts +34 -0
- package/dist/cjs/api/types/PostPost.js +16 -0
- package/dist/cjs/api/types/PostPostListResponse.d.ts +34 -0
- package/dist/cjs/api/types/PostPostListResponse.js +25 -0
- package/dist/cjs/api/types/PostPostResponse.d.ts +34 -0
- package/dist/cjs/api/types/PostPostResponse.js +19 -0
- package/dist/cjs/api/types/PostReaction.d.ts +15 -0
- package/dist/cjs/api/types/PostReactionListResponse.d.ts +15 -0
- package/dist/cjs/api/types/PostReactionResponse.d.ts +15 -0
- package/dist/cjs/api/types/PostResponse.d.ts +47 -0
- package/dist/cjs/api/types/PostResponse.js +19 -0
- package/dist/cjs/api/types/TagSubscriber.d.ts +15 -0
- package/dist/cjs/api/types/TagSubscriberListResponse.d.ts +15 -0
- package/dist/cjs/api/types/TagSubscriberResponse.d.ts +15 -0
- package/dist/cjs/api/types/Thread.d.ts +25 -0
- package/dist/cjs/api/types/ThreadListResponse.d.ts +25 -0
- package/dist/cjs/api/types/ThreadPost.d.ts +34 -0
- package/dist/cjs/api/types/ThreadPost.js +16 -0
- package/dist/cjs/api/types/ThreadPostListResponse.d.ts +34 -0
- package/dist/cjs/api/types/ThreadPostListResponse.js +25 -0
- package/dist/cjs/api/types/ThreadPostResponse.d.ts +34 -0
- package/dist/cjs/api/types/ThreadPostResponse.js +19 -0
- package/dist/cjs/api/types/ThreadReaction.d.ts +15 -0
- package/dist/cjs/api/types/ThreadReactionListResponse.d.ts +15 -0
- package/dist/cjs/api/types/ThreadReactionResponse.d.ts +15 -0
- package/dist/cjs/api/types/ThreadResponse.d.ts +25 -0
- package/dist/cjs/api/types/ThreadSubscriber.d.ts +15 -0
- package/dist/cjs/api/types/ThreadSubscriberListResponse.d.ts +15 -0
- package/dist/cjs/api/types/ThreadSubscriberResponse.d.ts +15 -0
- package/dist/cjs/api/types/UserFollower.d.ts +15 -0
- package/dist/cjs/api/types/UserFollowerListResponse.d.ts +15 -0
- package/dist/cjs/api/types/UserFollowerResponse.d.ts +15 -0
- package/dist/cjs/api/types/UserFollowing.d.ts +15 -0
- package/dist/cjs/api/types/UserFollowingListResponse.d.ts +15 -0
- package/dist/cjs/api/types/UserFollowingResponse.d.ts +15 -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 +34 -0
- package/dist/esm/api/resources/posts/types/RetrievePostPostsResponse.mjs +18 -1
- package/dist/esm/api/resources/posts/types/RetrieveReactionPostsResponse.d.mts +15 -0
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.d.mts +47 -0
- package/dist/esm/api/resources/posts/types/UpdatePostsResponse.mjs +18 -1
- package/dist/esm/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.mts +15 -0
- package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.d.mts +34 -0
- package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.mjs +18 -1
- package/dist/esm/api/resources/threads/types/RetrieveReactionThreadsResponse.d.mts +15 -0
- package/dist/esm/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.mts +15 -0
- package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +25 -0
- package/dist/esm/api/resources/users/types/RetrieveFollowerUsersResponse.d.mts +15 -0
- package/dist/esm/api/resources/users/types/RetrieveFollowingUsersResponse.d.mts +15 -0
- package/dist/esm/api/types/Post.d.mts +47 -0
- package/dist/esm/api/types/Post.mjs +15 -1
- package/dist/esm/api/types/PostListResponse.d.mts +47 -0
- package/dist/esm/api/types/PostListResponse.mjs +24 -1
- package/dist/esm/api/types/PostPost.d.mts +34 -0
- package/dist/esm/api/types/PostPost.mjs +15 -1
- package/dist/esm/api/types/PostPostListResponse.d.mts +34 -0
- package/dist/esm/api/types/PostPostListResponse.mjs +24 -1
- package/dist/esm/api/types/PostPostResponse.d.mts +34 -0
- package/dist/esm/api/types/PostPostResponse.mjs +18 -1
- package/dist/esm/api/types/PostReaction.d.mts +15 -0
- package/dist/esm/api/types/PostReactionListResponse.d.mts +15 -0
- package/dist/esm/api/types/PostReactionResponse.d.mts +15 -0
- package/dist/esm/api/types/PostResponse.d.mts +47 -0
- package/dist/esm/api/types/PostResponse.mjs +18 -1
- package/dist/esm/api/types/TagSubscriber.d.mts +15 -0
- package/dist/esm/api/types/TagSubscriberListResponse.d.mts +15 -0
- package/dist/esm/api/types/TagSubscriberResponse.d.mts +15 -0
- package/dist/esm/api/types/Thread.d.mts +25 -0
- package/dist/esm/api/types/ThreadListResponse.d.mts +25 -0
- package/dist/esm/api/types/ThreadPost.d.mts +34 -0
- package/dist/esm/api/types/ThreadPost.mjs +15 -1
- package/dist/esm/api/types/ThreadPostListResponse.d.mts +34 -0
- package/dist/esm/api/types/ThreadPostListResponse.mjs +24 -1
- package/dist/esm/api/types/ThreadPostResponse.d.mts +34 -0
- package/dist/esm/api/types/ThreadPostResponse.mjs +18 -1
- package/dist/esm/api/types/ThreadReaction.d.mts +15 -0
- package/dist/esm/api/types/ThreadReactionListResponse.d.mts +15 -0
- package/dist/esm/api/types/ThreadReactionResponse.d.mts +15 -0
- package/dist/esm/api/types/ThreadResponse.d.mts +25 -0
- package/dist/esm/api/types/ThreadSubscriber.d.mts +15 -0
- package/dist/esm/api/types/ThreadSubscriberListResponse.d.mts +15 -0
- package/dist/esm/api/types/ThreadSubscriberResponse.d.mts +15 -0
- package/dist/esm/api/types/UserFollower.d.mts +15 -0
- package/dist/esm/api/types/UserFollowerListResponse.d.mts +15 -0
- package/dist/esm/api/types/UserFollowerResponse.d.mts +15 -0
- package/dist/esm/api/types/UserFollowing.d.mts +15 -0
- package/dist/esm/api/types/UserFollowingListResponse.d.mts +15 -0
- package/dist/esm/api/types/UserFollowingResponse.d.mts +15 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,21 @@ export declare namespace ThreadReactionListResponse {
|
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
24
|
displayName: string | null;
|
|
25
|
+
bio: string | null;
|
|
26
|
+
url: string | null;
|
|
27
|
+
isOnline: boolean | null;
|
|
28
|
+
roles?: User.Roles.Item[];
|
|
29
|
+
}
|
|
30
|
+
namespace User {
|
|
31
|
+
type Roles = Roles.Item[];
|
|
32
|
+
namespace Roles {
|
|
33
|
+
interface Item {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string | null;
|
|
37
|
+
color: string | null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
25
40
|
}
|
|
26
41
|
}
|
|
27
42
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace ThreadReactionResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -28,6 +28,8 @@ export declare namespace ThreadResponse {
|
|
|
28
28
|
postsCount: number;
|
|
29
29
|
/** Timestamp of the last post */
|
|
30
30
|
lastPostAt: string | null;
|
|
31
|
+
/** Thread author */
|
|
32
|
+
user?: Data.User;
|
|
31
33
|
/** Thread reactions */
|
|
32
34
|
reactions?: Data.Reactions.Item[];
|
|
33
35
|
createdAt: string;
|
|
@@ -53,6 +55,29 @@ export declare namespace ThreadResponse {
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Thread author
|
|
60
|
+
*/
|
|
61
|
+
interface User {
|
|
62
|
+
id: string;
|
|
63
|
+
username: string;
|
|
64
|
+
displayName: string | null;
|
|
65
|
+
bio: string | null;
|
|
66
|
+
url: string | null;
|
|
67
|
+
isOnline: boolean | null;
|
|
68
|
+
roles?: User.Roles.Item[];
|
|
69
|
+
}
|
|
70
|
+
namespace User {
|
|
71
|
+
type Roles = Roles.Item[];
|
|
72
|
+
namespace Roles {
|
|
73
|
+
interface Item {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
slug: string | null;
|
|
77
|
+
color: string | null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
56
81
|
type Reactions = Reactions.Item[];
|
|
57
82
|
namespace Reactions {
|
|
58
83
|
interface Item {
|
|
@@ -10,5 +10,20 @@ export declare namespace ThreadSubscriber {
|
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
displayName: string | null;
|
|
13
|
+
bio: string | null;
|
|
14
|
+
url: string | null;
|
|
15
|
+
isOnline: boolean | null;
|
|
16
|
+
roles?: User.Roles.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace User {
|
|
19
|
+
type Roles = Roles.Item[];
|
|
20
|
+
namespace Roles {
|
|
21
|
+
interface Item {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
slug: string | null;
|
|
25
|
+
color: string | null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
13
28
|
}
|
|
14
29
|
}
|
|
@@ -22,6 +22,21 @@ export declare namespace ThreadSubscriberListResponse {
|
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
24
|
displayName: string | null;
|
|
25
|
+
bio: string | null;
|
|
26
|
+
url: string | null;
|
|
27
|
+
isOnline: boolean | null;
|
|
28
|
+
roles?: User.Roles.Item[];
|
|
29
|
+
}
|
|
30
|
+
namespace User {
|
|
31
|
+
type Roles = Roles.Item[];
|
|
32
|
+
namespace Roles {
|
|
33
|
+
interface Item {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string | null;
|
|
37
|
+
color: string | null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
25
40
|
}
|
|
26
41
|
}
|
|
27
42
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace ThreadSubscriberResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -10,5 +10,20 @@ export declare namespace UserFollower {
|
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
displayName: string | null;
|
|
13
|
+
bio: string | null;
|
|
14
|
+
url: string | null;
|
|
15
|
+
isOnline: boolean | null;
|
|
16
|
+
roles?: Follower.Roles.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace Follower {
|
|
19
|
+
type Roles = Roles.Item[];
|
|
20
|
+
namespace Roles {
|
|
21
|
+
interface Item {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
slug: string | null;
|
|
25
|
+
color: string | null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
13
28
|
}
|
|
14
29
|
}
|
|
@@ -22,6 +22,21 @@ export declare namespace UserFollowerListResponse {
|
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
24
|
displayName: string | null;
|
|
25
|
+
bio: string | null;
|
|
26
|
+
url: string | null;
|
|
27
|
+
isOnline: boolean | null;
|
|
28
|
+
roles?: Follower.Roles.Item[];
|
|
29
|
+
}
|
|
30
|
+
namespace Follower {
|
|
31
|
+
type Roles = Roles.Item[];
|
|
32
|
+
namespace Roles {
|
|
33
|
+
interface Item {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string | null;
|
|
37
|
+
color: string | null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
25
40
|
}
|
|
26
41
|
}
|
|
27
42
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace UserFollowerResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: Follower.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace Follower {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -10,5 +10,20 @@ export declare namespace UserFollowing {
|
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
displayName: string | null;
|
|
13
|
+
bio: string | null;
|
|
14
|
+
url: string | null;
|
|
15
|
+
isOnline: boolean | null;
|
|
16
|
+
roles?: Following.Roles.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace Following {
|
|
19
|
+
type Roles = Roles.Item[];
|
|
20
|
+
namespace Roles {
|
|
21
|
+
interface Item {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
slug: string | null;
|
|
25
|
+
color: string | null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
13
28
|
}
|
|
14
29
|
}
|
|
@@ -22,6 +22,21 @@ export declare namespace UserFollowingListResponse {
|
|
|
22
22
|
id: string;
|
|
23
23
|
username: string;
|
|
24
24
|
displayName: string | null;
|
|
25
|
+
bio: string | null;
|
|
26
|
+
url: string | null;
|
|
27
|
+
isOnline: boolean | null;
|
|
28
|
+
roles?: Following.Roles.Item[];
|
|
29
|
+
}
|
|
30
|
+
namespace Following {
|
|
31
|
+
type Roles = Roles.Item[];
|
|
32
|
+
namespace Roles {
|
|
33
|
+
interface Item {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string | null;
|
|
37
|
+
color: string | null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
25
40
|
}
|
|
26
41
|
}
|
|
27
42
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace UserFollowingResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: Following.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace Following {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.1.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.8";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "2.1.
|
|
10
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
9
|
+
"X-Fern-SDK-Version": "2.1.8",
|
|
10
|
+
"User-Agent": "@foru-ms/sdk/2.1.8",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -9,6 +9,7 @@ export declare namespace RetrievePostPostsResponse {
|
|
|
9
9
|
body: string;
|
|
10
10
|
depth: number | null;
|
|
11
11
|
user?: Data.User;
|
|
12
|
+
reactions?: Data.Reactions.Item[];
|
|
12
13
|
_count?: Data.Count;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
@@ -18,6 +19,39 @@ export declare namespace RetrievePostPostsResponse {
|
|
|
18
19
|
id: string;
|
|
19
20
|
username: string;
|
|
20
21
|
displayName: string | null;
|
|
22
|
+
bio: string | null;
|
|
23
|
+
url: string | null;
|
|
24
|
+
isOnline: boolean | null;
|
|
25
|
+
roles?: User.Roles.Item[];
|
|
26
|
+
}
|
|
27
|
+
namespace User {
|
|
28
|
+
type Roles = Roles.Item[];
|
|
29
|
+
namespace Roles {
|
|
30
|
+
interface Item {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
slug: string | null;
|
|
34
|
+
color: string | null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
type Reactions = Reactions.Item[];
|
|
39
|
+
namespace Reactions {
|
|
40
|
+
interface Item {
|
|
41
|
+
id: string;
|
|
42
|
+
type: Item.Type;
|
|
43
|
+
userId: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
}
|
|
46
|
+
namespace Item {
|
|
47
|
+
const Type: {
|
|
48
|
+
readonly Upvote: "UPVOTE";
|
|
49
|
+
readonly Downvote: "DOWNVOTE";
|
|
50
|
+
readonly Like: "LIKE";
|
|
51
|
+
readonly Dislike: "DISLIKE";
|
|
52
|
+
};
|
|
53
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
54
|
+
}
|
|
21
55
|
}
|
|
22
56
|
interface Count {
|
|
23
57
|
reactions: number;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var RetrievePostPostsResponse;
|
|
3
|
+
(function (RetrievePostPostsResponse) {
|
|
4
|
+
let Data;
|
|
5
|
+
(function (Data) {
|
|
6
|
+
let Reactions;
|
|
7
|
+
(function (Reactions) {
|
|
8
|
+
let Item;
|
|
9
|
+
(function (Item) {
|
|
10
|
+
Item.Type = {
|
|
11
|
+
Upvote: "UPVOTE",
|
|
12
|
+
Downvote: "DOWNVOTE",
|
|
13
|
+
Like: "LIKE",
|
|
14
|
+
Dislike: "DISLIKE",
|
|
15
|
+
};
|
|
16
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
17
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
18
|
+
})(Data = RetrievePostPostsResponse.Data || (RetrievePostPostsResponse.Data = {}));
|
|
19
|
+
})(RetrievePostPostsResponse || (RetrievePostPostsResponse = {}));
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveReactionPostsResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -15,9 +15,56 @@ export declare namespace UpdatePostsResponse {
|
|
|
15
15
|
id: string;
|
|
16
16
|
/** Nesting level for threaded replies */
|
|
17
17
|
depth: number | null;
|
|
18
|
+
/** Post author */
|
|
19
|
+
user?: Data.User;
|
|
20
|
+
/** Post reactions */
|
|
21
|
+
reactions?: Data.Reactions.Item[];
|
|
18
22
|
/** Post creation timestamp */
|
|
19
23
|
createdAt: string;
|
|
20
24
|
/** Post last update timestamp */
|
|
21
25
|
updatedAt: string;
|
|
22
26
|
}
|
|
27
|
+
namespace Data {
|
|
28
|
+
/**
|
|
29
|
+
* Post author
|
|
30
|
+
*/
|
|
31
|
+
interface User {
|
|
32
|
+
id: string;
|
|
33
|
+
username: string;
|
|
34
|
+
displayName: string | null;
|
|
35
|
+
bio: string | null;
|
|
36
|
+
url: string | null;
|
|
37
|
+
isOnline: boolean | null;
|
|
38
|
+
roles?: User.Roles.Item[];
|
|
39
|
+
}
|
|
40
|
+
namespace User {
|
|
41
|
+
type Roles = Roles.Item[];
|
|
42
|
+
namespace Roles {
|
|
43
|
+
interface Item {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string | null;
|
|
47
|
+
color: string | null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
type Reactions = Reactions.Item[];
|
|
52
|
+
namespace Reactions {
|
|
53
|
+
interface Item {
|
|
54
|
+
id: string;
|
|
55
|
+
type: Item.Type;
|
|
56
|
+
userId: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
}
|
|
59
|
+
namespace Item {
|
|
60
|
+
const Type: {
|
|
61
|
+
readonly Upvote: "UPVOTE";
|
|
62
|
+
readonly Downvote: "DOWNVOTE";
|
|
63
|
+
readonly Like: "LIKE";
|
|
64
|
+
readonly Dislike: "DISLIKE";
|
|
65
|
+
};
|
|
66
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
23
70
|
}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var UpdatePostsResponse;
|
|
3
|
+
(function (UpdatePostsResponse) {
|
|
4
|
+
let Data;
|
|
5
|
+
(function (Data) {
|
|
6
|
+
let Reactions;
|
|
7
|
+
(function (Reactions) {
|
|
8
|
+
let Item;
|
|
9
|
+
(function (Item) {
|
|
10
|
+
Item.Type = {
|
|
11
|
+
Upvote: "UPVOTE",
|
|
12
|
+
Downvote: "DOWNVOTE",
|
|
13
|
+
Like: "LIKE",
|
|
14
|
+
Dislike: "DISLIKE",
|
|
15
|
+
};
|
|
16
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
17
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
18
|
+
})(Data = UpdatePostsResponse.Data || (UpdatePostsResponse.Data = {}));
|
|
19
|
+
})(UpdatePostsResponse || (UpdatePostsResponse = {}));
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveSubscriberTagsResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -9,6 +9,7 @@ export declare namespace RetrievePostThreadsResponse {
|
|
|
9
9
|
body: string;
|
|
10
10
|
depth: number | null;
|
|
11
11
|
user?: Data.User;
|
|
12
|
+
reactions?: Data.Reactions.Item[];
|
|
12
13
|
_count?: Data.Count;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
@@ -18,6 +19,39 @@ export declare namespace RetrievePostThreadsResponse {
|
|
|
18
19
|
id: string;
|
|
19
20
|
username: string;
|
|
20
21
|
displayName: string | null;
|
|
22
|
+
bio: string | null;
|
|
23
|
+
url: string | null;
|
|
24
|
+
isOnline: boolean | null;
|
|
25
|
+
roles?: User.Roles.Item[];
|
|
26
|
+
}
|
|
27
|
+
namespace User {
|
|
28
|
+
type Roles = Roles.Item[];
|
|
29
|
+
namespace Roles {
|
|
30
|
+
interface Item {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
slug: string | null;
|
|
34
|
+
color: string | null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
type Reactions = Reactions.Item[];
|
|
39
|
+
namespace Reactions {
|
|
40
|
+
interface Item {
|
|
41
|
+
id: string;
|
|
42
|
+
type: Item.Type;
|
|
43
|
+
userId: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
}
|
|
46
|
+
namespace Item {
|
|
47
|
+
const Type: {
|
|
48
|
+
readonly Upvote: "UPVOTE";
|
|
49
|
+
readonly Downvote: "DOWNVOTE";
|
|
50
|
+
readonly Like: "LIKE";
|
|
51
|
+
readonly Dislike: "DISLIKE";
|
|
52
|
+
};
|
|
53
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
54
|
+
}
|
|
21
55
|
}
|
|
22
56
|
interface Count {
|
|
23
57
|
reactions: number;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var RetrievePostThreadsResponse;
|
|
3
|
+
(function (RetrievePostThreadsResponse) {
|
|
4
|
+
let Data;
|
|
5
|
+
(function (Data) {
|
|
6
|
+
let Reactions;
|
|
7
|
+
(function (Reactions) {
|
|
8
|
+
let Item;
|
|
9
|
+
(function (Item) {
|
|
10
|
+
Item.Type = {
|
|
11
|
+
Upvote: "UPVOTE",
|
|
12
|
+
Downvote: "DOWNVOTE",
|
|
13
|
+
Like: "LIKE",
|
|
14
|
+
Dislike: "DISLIKE",
|
|
15
|
+
};
|
|
16
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
17
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
18
|
+
})(Data = RetrievePostThreadsResponse.Data || (RetrievePostThreadsResponse.Data = {}));
|
|
19
|
+
})(RetrievePostThreadsResponse || (RetrievePostThreadsResponse = {}));
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveReactionThreadsResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveSubscriberThreadsResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: User.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace User {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|
|
@@ -28,6 +28,8 @@ export declare namespace UpdateThreadsResponse {
|
|
|
28
28
|
postsCount: number;
|
|
29
29
|
/** Timestamp of the last post */
|
|
30
30
|
lastPostAt: string | null;
|
|
31
|
+
/** Thread author */
|
|
32
|
+
user?: Data.User;
|
|
31
33
|
/** Thread reactions */
|
|
32
34
|
reactions?: Data.Reactions.Item[];
|
|
33
35
|
createdAt: string;
|
|
@@ -53,6 +55,29 @@ export declare namespace UpdateThreadsResponse {
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Thread author
|
|
60
|
+
*/
|
|
61
|
+
interface User {
|
|
62
|
+
id: string;
|
|
63
|
+
username: string;
|
|
64
|
+
displayName: string | null;
|
|
65
|
+
bio: string | null;
|
|
66
|
+
url: string | null;
|
|
67
|
+
isOnline: boolean | null;
|
|
68
|
+
roles?: User.Roles.Item[];
|
|
69
|
+
}
|
|
70
|
+
namespace User {
|
|
71
|
+
type Roles = Roles.Item[];
|
|
72
|
+
namespace Roles {
|
|
73
|
+
interface Item {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
slug: string | null;
|
|
77
|
+
color: string | null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
56
81
|
type Reactions = Reactions.Item[];
|
|
57
82
|
namespace Reactions {
|
|
58
83
|
interface Item {
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveFollowerUsersResponse {
|
|
|
14
14
|
id: string;
|
|
15
15
|
username: string;
|
|
16
16
|
displayName: string | null;
|
|
17
|
+
bio: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
isOnline: boolean | null;
|
|
20
|
+
roles?: Follower.Roles.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace Follower {
|
|
23
|
+
type Roles = Roles.Item[];
|
|
24
|
+
namespace Roles {
|
|
25
|
+
interface Item {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
slug: string | null;
|
|
29
|
+
color: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
}
|