@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.
Files changed (111) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/posts/types/RetrievePostPostsResponse.d.ts +34 -0
  3. package/dist/cjs/api/resources/posts/types/RetrievePostPostsResponse.js +19 -0
  4. package/dist/cjs/api/resources/posts/types/RetrieveReactionPostsResponse.d.ts +15 -0
  5. package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.d.ts +47 -0
  6. package/dist/cjs/api/resources/posts/types/UpdatePostsResponse.js +19 -0
  7. package/dist/cjs/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.ts +15 -0
  8. package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.d.ts +34 -0
  9. package/dist/cjs/api/resources/threads/types/RetrievePostThreadsResponse.js +19 -0
  10. package/dist/cjs/api/resources/threads/types/RetrieveReactionThreadsResponse.d.ts +15 -0
  11. package/dist/cjs/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.ts +15 -0
  12. package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +25 -0
  13. package/dist/cjs/api/resources/users/types/RetrieveFollowerUsersResponse.d.ts +15 -0
  14. package/dist/cjs/api/resources/users/types/RetrieveFollowingUsersResponse.d.ts +15 -0
  15. package/dist/cjs/api/types/Post.d.ts +47 -0
  16. package/dist/cjs/api/types/Post.js +16 -0
  17. package/dist/cjs/api/types/PostListResponse.d.ts +47 -0
  18. package/dist/cjs/api/types/PostListResponse.js +25 -0
  19. package/dist/cjs/api/types/PostPost.d.ts +34 -0
  20. package/dist/cjs/api/types/PostPost.js +16 -0
  21. package/dist/cjs/api/types/PostPostListResponse.d.ts +34 -0
  22. package/dist/cjs/api/types/PostPostListResponse.js +25 -0
  23. package/dist/cjs/api/types/PostPostResponse.d.ts +34 -0
  24. package/dist/cjs/api/types/PostPostResponse.js +19 -0
  25. package/dist/cjs/api/types/PostReaction.d.ts +15 -0
  26. package/dist/cjs/api/types/PostReactionListResponse.d.ts +15 -0
  27. package/dist/cjs/api/types/PostReactionResponse.d.ts +15 -0
  28. package/dist/cjs/api/types/PostResponse.d.ts +47 -0
  29. package/dist/cjs/api/types/PostResponse.js +19 -0
  30. package/dist/cjs/api/types/TagSubscriber.d.ts +15 -0
  31. package/dist/cjs/api/types/TagSubscriberListResponse.d.ts +15 -0
  32. package/dist/cjs/api/types/TagSubscriberResponse.d.ts +15 -0
  33. package/dist/cjs/api/types/Thread.d.ts +25 -0
  34. package/dist/cjs/api/types/ThreadListResponse.d.ts +25 -0
  35. package/dist/cjs/api/types/ThreadPost.d.ts +34 -0
  36. package/dist/cjs/api/types/ThreadPost.js +16 -0
  37. package/dist/cjs/api/types/ThreadPostListResponse.d.ts +34 -0
  38. package/dist/cjs/api/types/ThreadPostListResponse.js +25 -0
  39. package/dist/cjs/api/types/ThreadPostResponse.d.ts +34 -0
  40. package/dist/cjs/api/types/ThreadPostResponse.js +19 -0
  41. package/dist/cjs/api/types/ThreadReaction.d.ts +15 -0
  42. package/dist/cjs/api/types/ThreadReactionListResponse.d.ts +15 -0
  43. package/dist/cjs/api/types/ThreadReactionResponse.d.ts +15 -0
  44. package/dist/cjs/api/types/ThreadResponse.d.ts +25 -0
  45. package/dist/cjs/api/types/ThreadSubscriber.d.ts +15 -0
  46. package/dist/cjs/api/types/ThreadSubscriberListResponse.d.ts +15 -0
  47. package/dist/cjs/api/types/ThreadSubscriberResponse.d.ts +15 -0
  48. package/dist/cjs/api/types/UserFollower.d.ts +15 -0
  49. package/dist/cjs/api/types/UserFollowerListResponse.d.ts +15 -0
  50. package/dist/cjs/api/types/UserFollowerResponse.d.ts +15 -0
  51. package/dist/cjs/api/types/UserFollowing.d.ts +15 -0
  52. package/dist/cjs/api/types/UserFollowingListResponse.d.ts +15 -0
  53. package/dist/cjs/api/types/UserFollowingResponse.d.ts +15 -0
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/api/resources/posts/types/RetrievePostPostsResponse.d.mts +34 -0
  58. package/dist/esm/api/resources/posts/types/RetrievePostPostsResponse.mjs +18 -1
  59. package/dist/esm/api/resources/posts/types/RetrieveReactionPostsResponse.d.mts +15 -0
  60. package/dist/esm/api/resources/posts/types/UpdatePostsResponse.d.mts +47 -0
  61. package/dist/esm/api/resources/posts/types/UpdatePostsResponse.mjs +18 -1
  62. package/dist/esm/api/resources/tags/types/RetrieveSubscriberTagsResponse.d.mts +15 -0
  63. package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.d.mts +34 -0
  64. package/dist/esm/api/resources/threads/types/RetrievePostThreadsResponse.mjs +18 -1
  65. package/dist/esm/api/resources/threads/types/RetrieveReactionThreadsResponse.d.mts +15 -0
  66. package/dist/esm/api/resources/threads/types/RetrieveSubscriberThreadsResponse.d.mts +15 -0
  67. package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +25 -0
  68. package/dist/esm/api/resources/users/types/RetrieveFollowerUsersResponse.d.mts +15 -0
  69. package/dist/esm/api/resources/users/types/RetrieveFollowingUsersResponse.d.mts +15 -0
  70. package/dist/esm/api/types/Post.d.mts +47 -0
  71. package/dist/esm/api/types/Post.mjs +15 -1
  72. package/dist/esm/api/types/PostListResponse.d.mts +47 -0
  73. package/dist/esm/api/types/PostListResponse.mjs +24 -1
  74. package/dist/esm/api/types/PostPost.d.mts +34 -0
  75. package/dist/esm/api/types/PostPost.mjs +15 -1
  76. package/dist/esm/api/types/PostPostListResponse.d.mts +34 -0
  77. package/dist/esm/api/types/PostPostListResponse.mjs +24 -1
  78. package/dist/esm/api/types/PostPostResponse.d.mts +34 -0
  79. package/dist/esm/api/types/PostPostResponse.mjs +18 -1
  80. package/dist/esm/api/types/PostReaction.d.mts +15 -0
  81. package/dist/esm/api/types/PostReactionListResponse.d.mts +15 -0
  82. package/dist/esm/api/types/PostReactionResponse.d.mts +15 -0
  83. package/dist/esm/api/types/PostResponse.d.mts +47 -0
  84. package/dist/esm/api/types/PostResponse.mjs +18 -1
  85. package/dist/esm/api/types/TagSubscriber.d.mts +15 -0
  86. package/dist/esm/api/types/TagSubscriberListResponse.d.mts +15 -0
  87. package/dist/esm/api/types/TagSubscriberResponse.d.mts +15 -0
  88. package/dist/esm/api/types/Thread.d.mts +25 -0
  89. package/dist/esm/api/types/ThreadListResponse.d.mts +25 -0
  90. package/dist/esm/api/types/ThreadPost.d.mts +34 -0
  91. package/dist/esm/api/types/ThreadPost.mjs +15 -1
  92. package/dist/esm/api/types/ThreadPostListResponse.d.mts +34 -0
  93. package/dist/esm/api/types/ThreadPostListResponse.mjs +24 -1
  94. package/dist/esm/api/types/ThreadPostResponse.d.mts +34 -0
  95. package/dist/esm/api/types/ThreadPostResponse.mjs +18 -1
  96. package/dist/esm/api/types/ThreadReaction.d.mts +15 -0
  97. package/dist/esm/api/types/ThreadReactionListResponse.d.mts +15 -0
  98. package/dist/esm/api/types/ThreadReactionResponse.d.mts +15 -0
  99. package/dist/esm/api/types/ThreadResponse.d.mts +25 -0
  100. package/dist/esm/api/types/ThreadSubscriber.d.mts +15 -0
  101. package/dist/esm/api/types/ThreadSubscriberListResponse.d.mts +15 -0
  102. package/dist/esm/api/types/ThreadSubscriberResponse.d.mts +15 -0
  103. package/dist/esm/api/types/UserFollower.d.mts +15 -0
  104. package/dist/esm/api/types/UserFollowerListResponse.d.mts +15 -0
  105. package/dist/esm/api/types/UserFollowerResponse.d.mts +15 -0
  106. package/dist/esm/api/types/UserFollowing.d.mts +15 -0
  107. package/dist/esm/api/types/UserFollowingListResponse.d.mts +15 -0
  108. package/dist/esm/api/types/UserFollowingResponse.d.mts +15 -0
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +1 -1
@@ -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,2 +1,16 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var Post;
3
+ (function (Post) {
4
+ let Reactions;
5
+ (function (Reactions) {
6
+ let Item;
7
+ (function (Item) {
8
+ Item.Type = {
9
+ Upvote: "UPVOTE",
10
+ Downvote: "DOWNVOTE",
11
+ Like: "LIKE",
12
+ Dislike: "DISLIKE",
13
+ };
14
+ })(Item = Reactions.Item || (Reactions.Item = {}));
15
+ })(Reactions = Post.Reactions || (Post.Reactions = {}));
16
+ })(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,2 +1,25 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PostListResponse;
3
+ (function (PostListResponse) {
4
+ let Data;
5
+ (function (Data) {
6
+ let Items;
7
+ (function (Items) {
8
+ let Item;
9
+ (function (Item_1) {
10
+ let Reactions;
11
+ (function (Reactions) {
12
+ let Item;
13
+ (function (Item) {
14
+ Item.Type = {
15
+ Upvote: "UPVOTE",
16
+ Downvote: "DOWNVOTE",
17
+ Like: "LIKE",
18
+ Dislike: "DISLIKE",
19
+ };
20
+ })(Item = Reactions.Item || (Reactions.Item = {}));
21
+ })(Reactions = Item_1.Reactions || (Item_1.Reactions = {}));
22
+ })(Item = Items.Item || (Items.Item = {}));
23
+ })(Items = Data.Items || (Data.Items = {}));
24
+ })(Data = PostListResponse.Data || (PostListResponse.Data = {}));
25
+ })(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,2 +1,16 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PostPost;
3
+ (function (PostPost) {
4
+ let Reactions;
5
+ (function (Reactions) {
6
+ let Item;
7
+ (function (Item) {
8
+ Item.Type = {
9
+ Upvote: "UPVOTE",
10
+ Downvote: "DOWNVOTE",
11
+ Like: "LIKE",
12
+ Dislike: "DISLIKE",
13
+ };
14
+ })(Item = Reactions.Item || (Reactions.Item = {}));
15
+ })(Reactions = PostPost.Reactions || (PostPost.Reactions = {}));
16
+ })(PostPost || (PostPost = {}));
@@ -17,6 +17,7 @@ export declare namespace PostPostListResponse {
17
17
  body: string;
18
18
  depth: number | null;
19
19
  user?: Item.User;
20
+ reactions?: Item.Reactions.Item[];
20
21
  _count?: Item.Count;
21
22
  createdAt: string;
22
23
  updatedAt: string;
@@ -26,6 +27,39 @@ export declare namespace PostPostListResponse {
26
27
  id: string;
27
28
  username: string;
28
29
  displayName: string | null;
30
+ bio: string | null;
31
+ url: string | null;
32
+ isOnline: boolean | null;
33
+ roles?: User.Roles.Item[];
34
+ }
35
+ namespace User {
36
+ type Roles = Roles.Item[];
37
+ namespace Roles {
38
+ interface Item {
39
+ id: string;
40
+ name: string;
41
+ slug: string | null;
42
+ color: string | null;
43
+ }
44
+ }
45
+ }
46
+ type Reactions = Reactions.Item[];
47
+ namespace Reactions {
48
+ interface Item {
49
+ id: string;
50
+ type: Item.Type;
51
+ userId: string;
52
+ createdAt: string;
53
+ }
54
+ namespace Item {
55
+ const Type: {
56
+ readonly Upvote: "UPVOTE";
57
+ readonly Downvote: "DOWNVOTE";
58
+ readonly Like: "LIKE";
59
+ readonly Dislike: "DISLIKE";
60
+ };
61
+ type Type = (typeof Type)[keyof typeof Type];
62
+ }
29
63
  }
30
64
  interface Count {
31
65
  reactions: number;
@@ -1,2 +1,25 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PostPostListResponse;
3
+ (function (PostPostListResponse) {
4
+ let Data;
5
+ (function (Data) {
6
+ let Items;
7
+ (function (Items) {
8
+ let Item;
9
+ (function (Item_1) {
10
+ let Reactions;
11
+ (function (Reactions) {
12
+ let Item;
13
+ (function (Item) {
14
+ Item.Type = {
15
+ Upvote: "UPVOTE",
16
+ Downvote: "DOWNVOTE",
17
+ Like: "LIKE",
18
+ Dislike: "DISLIKE",
19
+ };
20
+ })(Item = Reactions.Item || (Reactions.Item = {}));
21
+ })(Reactions = Item_1.Reactions || (Item_1.Reactions = {}));
22
+ })(Item = Items.Item || (Items.Item = {}));
23
+ })(Items = Data.Items || (Data.Items = {}));
24
+ })(Data = PostPostListResponse.Data || (PostPostListResponse.Data = {}));
25
+ })(PostPostListResponse || (PostPostListResponse = {}));
@@ -9,6 +9,7 @@ export declare namespace PostPostResponse {
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 PostPostResponse {
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 PostPostResponse;
3
+ (function (PostPostResponse) {
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 = PostPostResponse.Data || (PostPostResponse.Data = {}));
19
+ })(PostPostResponse || (PostPostResponse = {}));
@@ -10,5 +10,20 @@ export declare namespace PostReaction {
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 PostReactionListResponse {
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 PostReactionResponse {
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 PostResponse {
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 PostResponse;
3
+ (function (PostResponse) {
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 = PostResponse.Data || (PostResponse.Data = {}));
19
+ })(PostResponse || (PostResponse = {}));
@@ -10,5 +10,20 @@ export declare namespace TagSubscriber {
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 TagSubscriberListResponse {
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 TagSubscriberResponse {
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
  }
@@ -25,12 +25,37 @@ export interface Thread {
25
25
  postsCount: number;
26
26
  /** Timestamp of the last post */
27
27
  lastPostAt: string | null;
28
+ /** Thread author */
29
+ user?: Thread.User;
28
30
  /** Thread reactions */
29
31
  reactions?: Thread.Reactions.Item[];
30
32
  createdAt: string;
31
33
  updatedAt: string;
32
34
  }
33
35
  export declare namespace Thread {
36
+ /**
37
+ * Thread author
38
+ */
39
+ interface User {
40
+ id: string;
41
+ username: string;
42
+ displayName: string | null;
43
+ bio: string | null;
44
+ url: string | null;
45
+ isOnline: boolean | null;
46
+ roles?: User.Roles.Item[];
47
+ }
48
+ namespace User {
49
+ type Roles = Roles.Item[];
50
+ namespace Roles {
51
+ interface Item {
52
+ id: string;
53
+ name: string;
54
+ slug: string | null;
55
+ color: string | null;
56
+ }
57
+ }
58
+ }
34
59
  type Reactions = Reactions.Item[];
35
60
  namespace Reactions {
36
61
  interface Item {
@@ -38,6 +38,8 @@ export declare namespace ThreadListResponse {
38
38
  postsCount: number;
39
39
  /** Timestamp of the last post */
40
40
  lastPostAt: string | null;
41
+ /** Thread author */
42
+ user?: Item.User;
41
43
  /** Thread reactions */
42
44
  reactions?: Item.Reactions.Item[];
43
45
  createdAt: string;
@@ -63,6 +65,29 @@ export declare namespace ThreadListResponse {
63
65
  }
64
66
  }
65
67
  }
68
+ /**
69
+ * Thread author
70
+ */
71
+ interface User {
72
+ id: string;
73
+ username: string;
74
+ displayName: string | null;
75
+ bio: string | null;
76
+ url: string | null;
77
+ isOnline: boolean | null;
78
+ roles?: User.Roles.Item[];
79
+ }
80
+ namespace User {
81
+ type Roles = Roles.Item[];
82
+ namespace Roles {
83
+ interface Item {
84
+ id: string;
85
+ name: string;
86
+ slug: string | null;
87
+ color: string | null;
88
+ }
89
+ }
90
+ }
66
91
  type Reactions = Reactions.Item[];
67
92
  namespace Reactions {
68
93
  interface Item {