@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
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.1.
|
|
47
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
46
|
+
"X-Fern-SDK-Version": "2.1.8",
|
|
47
|
+
"User-Agent": "@foru-ms/sdk/2.1.8",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, 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,3 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RetrievePostPostsResponse = void 0;
|
|
5
|
+
var RetrievePostPostsResponse;
|
|
6
|
+
(function (RetrievePostPostsResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Reactions;
|
|
10
|
+
(function (Reactions) {
|
|
11
|
+
let Item;
|
|
12
|
+
(function (Item) {
|
|
13
|
+
Item.Type = {
|
|
14
|
+
Upvote: "UPVOTE",
|
|
15
|
+
Downvote: "DOWNVOTE",
|
|
16
|
+
Like: "LIKE",
|
|
17
|
+
Dislike: "DISLIKE",
|
|
18
|
+
};
|
|
19
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
20
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
21
|
+
})(Data = RetrievePostPostsResponse.Data || (RetrievePostPostsResponse.Data = {}));
|
|
22
|
+
})(RetrievePostPostsResponse || (exports.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,3 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdatePostsResponse = void 0;
|
|
5
|
+
var UpdatePostsResponse;
|
|
6
|
+
(function (UpdatePostsResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Reactions;
|
|
10
|
+
(function (Reactions) {
|
|
11
|
+
let Item;
|
|
12
|
+
(function (Item) {
|
|
13
|
+
Item.Type = {
|
|
14
|
+
Upvote: "UPVOTE",
|
|
15
|
+
Downvote: "DOWNVOTE",
|
|
16
|
+
Like: "LIKE",
|
|
17
|
+
Dislike: "DISLIKE",
|
|
18
|
+
};
|
|
19
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
20
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
21
|
+
})(Data = UpdatePostsResponse.Data || (UpdatePostsResponse.Data = {}));
|
|
22
|
+
})(UpdatePostsResponse || (exports.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,3 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RetrievePostThreadsResponse = void 0;
|
|
5
|
+
var RetrievePostThreadsResponse;
|
|
6
|
+
(function (RetrievePostThreadsResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Reactions;
|
|
10
|
+
(function (Reactions) {
|
|
11
|
+
let Item;
|
|
12
|
+
(function (Item) {
|
|
13
|
+
Item.Type = {
|
|
14
|
+
Upvote: "UPVOTE",
|
|
15
|
+
Downvote: "DOWNVOTE",
|
|
16
|
+
Like: "LIKE",
|
|
17
|
+
Dislike: "DISLIKE",
|
|
18
|
+
};
|
|
19
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
20
|
+
})(Reactions = Data.Reactions || (Data.Reactions = {}));
|
|
21
|
+
})(Data = RetrievePostThreadsResponse.Data || (RetrievePostThreadsResponse.Data = {}));
|
|
22
|
+
})(RetrievePostThreadsResponse || (exports.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
|
}
|
|
@@ -14,6 +14,21 @@ export declare namespace RetrieveFollowingUsersResponse {
|
|
|
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
|
}
|
|
@@ -11,8 +11,55 @@ export interface Post {
|
|
|
11
11
|
id: string;
|
|
12
12
|
/** Nesting level for threaded replies */
|
|
13
13
|
depth: number | null;
|
|
14
|
+
/** Post author */
|
|
15
|
+
user?: Post.User;
|
|
16
|
+
/** Post reactions */
|
|
17
|
+
reactions?: Post.Reactions.Item[];
|
|
14
18
|
/** Post creation timestamp */
|
|
15
19
|
createdAt: string;
|
|
16
20
|
/** Post last update timestamp */
|
|
17
21
|
updatedAt: string;
|
|
18
22
|
}
|
|
23
|
+
export declare namespace Post {
|
|
24
|
+
/**
|
|
25
|
+
* Post author
|
|
26
|
+
*/
|
|
27
|
+
interface User {
|
|
28
|
+
id: string;
|
|
29
|
+
username: string;
|
|
30
|
+
displayName: string | null;
|
|
31
|
+
bio: string | null;
|
|
32
|
+
url: string | null;
|
|
33
|
+
isOnline: boolean | null;
|
|
34
|
+
roles?: User.Roles.Item[];
|
|
35
|
+
}
|
|
36
|
+
namespace User {
|
|
37
|
+
type Roles = Roles.Item[];
|
|
38
|
+
namespace Roles {
|
|
39
|
+
interface Item {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
slug: string | null;
|
|
43
|
+
color: string | null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
type Reactions = Reactions.Item[];
|
|
48
|
+
namespace Reactions {
|
|
49
|
+
interface Item {
|
|
50
|
+
id: string;
|
|
51
|
+
type: Item.Type;
|
|
52
|
+
userId: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
}
|
|
55
|
+
namespace Item {
|
|
56
|
+
const Type: {
|
|
57
|
+
readonly Upvote: "UPVOTE";
|
|
58
|
+
readonly Downvote: "DOWNVOTE";
|
|
59
|
+
readonly Like: "LIKE";
|
|
60
|
+
readonly Dislike: "DISLIKE";
|
|
61
|
+
};
|
|
62
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Post = void 0;
|
|
5
|
+
var Post;
|
|
6
|
+
(function (Post) {
|
|
7
|
+
let Reactions;
|
|
8
|
+
(function (Reactions) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.Type = {
|
|
12
|
+
Upvote: "UPVOTE",
|
|
13
|
+
Downvote: "DOWNVOTE",
|
|
14
|
+
Like: "LIKE",
|
|
15
|
+
Dislike: "DISLIKE",
|
|
16
|
+
};
|
|
17
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
18
|
+
})(Reactions = Post.Reactions || (Post.Reactions = {}));
|
|
19
|
+
})(Post || (exports.Post = Post = {}));
|
|
@@ -25,11 +25,58 @@ export declare namespace PostListResponse {
|
|
|
25
25
|
id: string;
|
|
26
26
|
/** Nesting level for threaded replies */
|
|
27
27
|
depth: number | null;
|
|
28
|
+
/** Post author */
|
|
29
|
+
user?: Item.User;
|
|
30
|
+
/** Post reactions */
|
|
31
|
+
reactions?: Item.Reactions.Item[];
|
|
28
32
|
/** Post creation timestamp */
|
|
29
33
|
createdAt: string;
|
|
30
34
|
/** Post last update timestamp */
|
|
31
35
|
updatedAt: string;
|
|
32
36
|
}
|
|
37
|
+
namespace Item {
|
|
38
|
+
/**
|
|
39
|
+
* Post author
|
|
40
|
+
*/
|
|
41
|
+
interface User {
|
|
42
|
+
id: string;
|
|
43
|
+
username: string;
|
|
44
|
+
displayName: string | null;
|
|
45
|
+
bio: string | null;
|
|
46
|
+
url: string | null;
|
|
47
|
+
isOnline: boolean | null;
|
|
48
|
+
roles?: User.Roles.Item[];
|
|
49
|
+
}
|
|
50
|
+
namespace User {
|
|
51
|
+
type Roles = Roles.Item[];
|
|
52
|
+
namespace Roles {
|
|
53
|
+
interface Item {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
slug: string | null;
|
|
57
|
+
color: string | null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
type Reactions = Reactions.Item[];
|
|
62
|
+
namespace Reactions {
|
|
63
|
+
interface Item {
|
|
64
|
+
id: string;
|
|
65
|
+
type: Item.Type;
|
|
66
|
+
userId: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
}
|
|
69
|
+
namespace Item {
|
|
70
|
+
const Type: {
|
|
71
|
+
readonly Upvote: "UPVOTE";
|
|
72
|
+
readonly Downvote: "DOWNVOTE";
|
|
73
|
+
readonly Like: "LIKE";
|
|
74
|
+
readonly Dislike: "DISLIKE";
|
|
75
|
+
};
|
|
76
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
33
80
|
}
|
|
34
81
|
}
|
|
35
82
|
}
|
|
@@ -1,3 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PostListResponse = void 0;
|
|
5
|
+
var PostListResponse;
|
|
6
|
+
(function (PostListResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
let Items;
|
|
10
|
+
(function (Items) {
|
|
11
|
+
let Item;
|
|
12
|
+
(function (Item_1) {
|
|
13
|
+
let Reactions;
|
|
14
|
+
(function (Reactions) {
|
|
15
|
+
let Item;
|
|
16
|
+
(function (Item) {
|
|
17
|
+
Item.Type = {
|
|
18
|
+
Upvote: "UPVOTE",
|
|
19
|
+
Downvote: "DOWNVOTE",
|
|
20
|
+
Like: "LIKE",
|
|
21
|
+
Dislike: "DISLIKE",
|
|
22
|
+
};
|
|
23
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
24
|
+
})(Reactions = Item_1.Reactions || (Item_1.Reactions = {}));
|
|
25
|
+
})(Item = Items.Item || (Items.Item = {}));
|
|
26
|
+
})(Items = Data.Items || (Data.Items = {}));
|
|
27
|
+
})(Data = PostListResponse.Data || (PostListResponse.Data = {}));
|
|
28
|
+
})(PostListResponse || (exports.PostListResponse = PostListResponse = {}));
|
|
@@ -5,6 +5,7 @@ export interface PostPost {
|
|
|
5
5
|
body: string;
|
|
6
6
|
depth: number | null;
|
|
7
7
|
user?: PostPost.User;
|
|
8
|
+
reactions?: PostPost.Reactions.Item[];
|
|
8
9
|
_count?: PostPost.Count;
|
|
9
10
|
createdAt: string;
|
|
10
11
|
updatedAt: string;
|
|
@@ -14,6 +15,39 @@ export declare namespace PostPost {
|
|
|
14
15
|
id: string;
|
|
15
16
|
username: string;
|
|
16
17
|
displayName: string | null;
|
|
18
|
+
bio: string | null;
|
|
19
|
+
url: string | null;
|
|
20
|
+
isOnline: boolean | null;
|
|
21
|
+
roles?: User.Roles.Item[];
|
|
22
|
+
}
|
|
23
|
+
namespace User {
|
|
24
|
+
type Roles = Roles.Item[];
|
|
25
|
+
namespace Roles {
|
|
26
|
+
interface Item {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
slug: string | null;
|
|
30
|
+
color: string | null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
type Reactions = Reactions.Item[];
|
|
35
|
+
namespace Reactions {
|
|
36
|
+
interface Item {
|
|
37
|
+
id: string;
|
|
38
|
+
type: Item.Type;
|
|
39
|
+
userId: string;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
}
|
|
42
|
+
namespace Item {
|
|
43
|
+
const Type: {
|
|
44
|
+
readonly Upvote: "UPVOTE";
|
|
45
|
+
readonly Downvote: "DOWNVOTE";
|
|
46
|
+
readonly Like: "LIKE";
|
|
47
|
+
readonly Dislike: "DISLIKE";
|
|
48
|
+
};
|
|
49
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
50
|
+
}
|
|
17
51
|
}
|
|
18
52
|
interface Count {
|
|
19
53
|
reactions: number;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PostPost = void 0;
|
|
5
|
+
var PostPost;
|
|
6
|
+
(function (PostPost) {
|
|
7
|
+
let Reactions;
|
|
8
|
+
(function (Reactions) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.Type = {
|
|
12
|
+
Upvote: "UPVOTE",
|
|
13
|
+
Downvote: "DOWNVOTE",
|
|
14
|
+
Like: "LIKE",
|
|
15
|
+
Dislike: "DISLIKE",
|
|
16
|
+
};
|
|
17
|
+
})(Item = Reactions.Item || (Reactions.Item = {}));
|
|
18
|
+
})(Reactions = PostPost.Reactions || (PostPost.Reactions = {}));
|
|
19
|
+
})(PostPost || (exports.PostPost = PostPost = {}));
|