@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
@@ -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,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.PostPostListResponse = void 0;
5
+ var PostPostListResponse;
6
+ (function (PostPostListResponse) {
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 = PostPostListResponse.Data || (PostPostListResponse.Data = {}));
28
+ })(PostPostListResponse || (exports.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,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.PostPostResponse = void 0;
5
+ var PostPostResponse;
6
+ (function (PostPostResponse) {
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 = PostPostResponse.Data || (PostPostResponse.Data = {}));
22
+ })(PostPostResponse || (exports.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,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.PostResponse = void 0;
5
+ var PostResponse;
6
+ (function (PostResponse) {
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 = PostResponse.Data || (PostResponse.Data = {}));
22
+ })(PostResponse || (exports.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 {
@@ -5,6 +5,7 @@ export interface ThreadPost {
5
5
  body: string;
6
6
  depth: number | null;
7
7
  user?: ThreadPost.User;
8
+ reactions?: ThreadPost.Reactions.Item[];
8
9
  _count?: ThreadPost.Count;
9
10
  createdAt: string;
10
11
  updatedAt: string;
@@ -14,6 +15,39 @@ export declare namespace ThreadPost {
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.ThreadPost = void 0;
5
+ var ThreadPost;
6
+ (function (ThreadPost) {
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 = ThreadPost.Reactions || (ThreadPost.Reactions = {}));
19
+ })(ThreadPost || (exports.ThreadPost = ThreadPost = {}));
@@ -17,6 +17,7 @@ export declare namespace ThreadPostListResponse {
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 ThreadPostListResponse {
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,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.ThreadPostListResponse = void 0;
5
+ var ThreadPostListResponse;
6
+ (function (ThreadPostListResponse) {
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 = ThreadPostListResponse.Data || (ThreadPostListResponse.Data = {}));
28
+ })(ThreadPostListResponse || (exports.ThreadPostListResponse = ThreadPostListResponse = {}));
@@ -9,6 +9,7 @@ export declare namespace ThreadPostResponse {
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 ThreadPostResponse {
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.ThreadPostResponse = void 0;
5
+ var ThreadPostResponse;
6
+ (function (ThreadPostResponse) {
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 = ThreadPostResponse.Data || (ThreadPostResponse.Data = {}));
22
+ })(ThreadPostResponse || (exports.ThreadPostResponse = ThreadPostResponse = {}));
@@ -10,5 +10,20 @@ export declare namespace ThreadReaction {
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
  }