strapi-plugin-comments 3.2.4 → 3.2.5

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 (144) hide show
  1. package/LICENSE.md +18 -4
  2. package/README.md +379 -26
  3. package/dist/_chunks/{en-CT6Rt2uf.mjs → en-B_ywmALc.mjs} +3 -0
  4. package/dist/_chunks/{en-Tdlz6WoL.js → en-CTX-vxI-.js} +1 -1
  5. package/dist/_chunks/{fr-BlaISu0-.js → fr-CJZ1I0cO.js} +1 -1
  6. package/dist/_chunks/{fr-CTKzDZoe.mjs → fr-CzgABcR9.mjs} +3 -0
  7. package/dist/_chunks/{index-CqWqvu-C.mjs → index-2HqVa6_n.mjs} +11273 -12118
  8. package/dist/_chunks/index-BFzHCJ8V.mjs +5959 -0
  9. package/dist/_chunks/index-BYQzi_fP.js +44 -0
  10. package/dist/_chunks/{index-CgbBtemc.js → index-Cfy8GjIN.js} +134 -91
  11. package/dist/_chunks/{index-CynNsAVf.mjs → index-D8SWUMcR.mjs} +45 -23
  12. package/dist/_chunks/index-DXgb05uJ.js +1 -0
  13. package/dist/_chunks/{index-D9B_m9fB.mjs → index-W9svnX5A.mjs} +185 -146
  14. package/dist/_chunks/index-hBG5i5nT.js +5 -0
  15. package/dist/_chunks/{pl-BE9Xc2Tq.mjs → pl-Ca-o0rE-.mjs} +3 -0
  16. package/dist/_chunks/{pl-r2tJzCYX.js → pl-clljrMvo.js} +1 -1
  17. package/dist/_chunks/{pt-BR-BntmApbV.js → pt-BR-DV48_kX8.js} +1 -1
  18. package/dist/_chunks/{pt-BR-ZzKZqryk.mjs → pt-BR-XHO5Olrb.mjs} +3 -0
  19. package/dist/_chunks/{ru-DdjjIy0c.js → ru-BK78F2Vt.js} +1 -1
  20. package/dist/_chunks/{ru-NqAiywiG.mjs → ru-zKH0YOjJ.mjs} +3 -0
  21. package/dist/_chunks/{tr-v1mNvsod.js → tr-BMe1cFKp.js} +1 -1
  22. package/dist/_chunks/{tr-6Vivmm9L.mjs → tr-BaczzuT6.mjs} +3 -0
  23. package/dist/_chunks/{zh-Hans-B3CCaxs8.mjs → zh-Hans-CPSQ76Y3.mjs} +3 -0
  24. package/dist/_chunks/{zh-Hans-_ImAlhp2.js → zh-Hans-xMRxrXVG.js} +1 -1
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/dist/admin/src/api/client.d.ts +67 -58
  28. package/dist/admin/src/api/schemas.d.ts +169 -2797
  29. package/dist/admin/src/components/ActionButton/index.d.ts +2 -4
  30. package/dist/admin/src/components/CommentReactionsSummary/index.d.ts +8 -0
  31. package/dist/admin/src/components/CommentStatusFilters/index.d.ts +2 -1
  32. package/dist/admin/src/components/CustomInjectionZone/index.d.ts +6 -0
  33. package/dist/admin/src/components/CustomInjectionZoneCell/index.d.ts +7 -0
  34. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
  35. package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +3 -3
  36. package/dist/admin/src/components/IconButtonGroup/index.d.ts +2 -5
  37. package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +2 -1
  38. package/dist/admin/src/components/PluginIcon/index.d.ts +2 -1
  39. package/dist/admin/src/components/ReactionCounter/index.d.ts +7 -0
  40. package/dist/admin/src/components/ReactionCounter/styled.d.ts +16 -0
  41. package/dist/admin/src/components/SideNav/index.d.ts +2 -1
  42. package/dist/admin/src/components/StatusBadge/index.d.ts +3 -5
  43. package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +2 -2
  44. package/dist/admin/src/components/Wysiwyg/PreviewWysiwyg.d.ts +2 -1
  45. package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +2 -1
  46. package/dist/admin/src/components/Wysiwyg/WysiwygNav.d.ts +1 -1
  47. package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
  48. package/dist/admin/src/components/icons/comments.d.ts +2 -1
  49. package/dist/admin/src/components/icons/strapiIcons.d.ts +2 -1
  50. package/dist/admin/src/contexts/UserContext.d.ts +7 -7
  51. package/dist/admin/src/hooks/useAPI.d.ts +74 -65
  52. package/dist/admin/src/hooks/useCommentMutations.d.ts +18 -18
  53. package/dist/admin/src/hooks/useCommentsAll.d.ts +8 -6
  54. package/dist/admin/src/hooks/useConfig.d.ts +2 -0
  55. package/dist/admin/src/hooks/useReactionCounts.d.ts +2 -0
  56. package/dist/admin/src/hooks/useReactionTypes.d.ts +8 -0
  57. package/dist/admin/src/hooks/useReports.d.ts +13 -11
  58. package/dist/admin/src/hooks/useUserContext.d.ts +7 -7
  59. package/dist/admin/src/pages/AiEvaluations/index.d.ts +2 -0
  60. package/dist/admin/src/pages/App/index.d.ts +2 -1
  61. package/dist/admin/src/pages/Details/DetailsEntry.d.ts +2 -1
  62. package/dist/admin/src/pages/Discover/index.d.ts +2 -1
  63. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +9 -7
  64. package/dist/admin/src/pages/Settings/index.d.ts +2 -1
  65. package/dist/admin/src/translations/en.d.ts +3 -0
  66. package/dist/admin/src/translations/fr.d.ts +3 -0
  67. package/dist/admin/src/translations/pl.d.ts +3 -0
  68. package/dist/admin/src/translations/pt-BR.d.ts +3 -0
  69. package/dist/admin/src/translations/ru.d.ts +3 -0
  70. package/dist/admin/src/translations/tr.d.ts +3 -0
  71. package/dist/admin/src/translations/zh-Hans.d.ts +3 -0
  72. package/dist/admin/src/utils/functions.d.ts +3 -0
  73. package/dist/admin/src/utils/reactionsIntegration.d.ts +24 -0
  74. package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +1 -1
  75. package/dist/admin/src/utils/resolveReportStatusColor.d.ts +1 -1
  76. package/dist/server/index.js +69 -88
  77. package/dist/server/index.mjs +9727 -7544
  78. package/dist/server/src/config/index.d.ts +37 -112
  79. package/dist/server/src/const/REPORT_SOURCE.d.ts +4 -0
  80. package/dist/server/src/const/index.d.ts +1 -0
  81. package/dist/server/src/content-types/index.d.ts +7 -0
  82. package/dist/server/src/content-types/report/index.d.ts +7 -0
  83. package/dist/server/src/content-types/report/schema.d.ts +8 -1
  84. package/dist/server/src/controllers/admin.controller.d.ts +920 -888
  85. package/dist/server/src/controllers/client.controller.d.ts +1595 -709
  86. package/dist/server/src/controllers/index.d.ts +2784 -6208
  87. package/dist/server/src/controllers/settings.controller.d.ts +110 -94
  88. package/dist/server/src/graphql/getResolversConfig.d.ts +33 -0
  89. package/dist/server/src/graphql/mutations/getApproveComment.d.ts +149 -0
  90. package/dist/server/src/graphql/mutations/getBlockComment.d.ts +149 -0
  91. package/dist/server/src/graphql/mutations/getBlockCommentThread.d.ts +149 -0
  92. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +81 -78
  93. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +74 -72
  94. package/dist/server/src/graphql/mutations/getRejectComment.d.ts +149 -0
  95. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +74 -72
  96. package/dist/server/src/graphql/mutations/getResolveAbuseReport.d.ts +25 -0
  97. package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForComment.d.ts +16 -0
  98. package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForThread.d.ts +16 -0
  99. package/dist/server/src/graphql/mutations/getResolveCommentMultipleAbuseReports.d.ts +17 -0
  100. package/dist/server/src/graphql/mutations/getResolveMultipleAbuseReports.d.ts +16 -0
  101. package/dist/server/src/graphql/mutations/getUnblockComment.d.ts +149 -0
  102. package/dist/server/src/graphql/mutations/getUnblockCommentThread.d.ts +149 -0
  103. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +74 -72
  104. package/dist/server/src/graphql/queries/findAllFlat.d.ts +162 -155
  105. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +9 -1
  106. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +161 -154
  107. package/dist/server/src/graphql/types/getCommentReactionCount.d.ts +2 -0
  108. package/dist/server/src/graphql/types/getCommentReactionsMetaEntry.d.ts +2 -0
  109. package/dist/server/src/graphql/types/getModerateCommentInput.d.ts +2 -0
  110. package/dist/server/src/graphql/types/getReportsResolveBatch.d.ts +2 -0
  111. package/dist/server/src/graphql/types/getResolveAbuseReportInput.d.ts +2 -0
  112. package/dist/server/src/graphql/types/getResolveCommentMultipleAbuseReportsInput.d.ts +2 -0
  113. package/dist/server/src/graphql/types/getResolveMultipleAbuseReportsInput.d.ts +2 -0
  114. package/dist/server/src/graphql/types/index.d.ts +1 -1
  115. package/dist/server/src/index.d.ts +17 -35339
  116. package/dist/server/src/repositories/report.comment.repository.d.ts +87 -83
  117. package/dist/server/src/repositories/store.repository.d.ts +144 -124
  118. package/dist/server/src/services/admin/admin.service.d.ts +14597 -8230
  119. package/dist/server/src/services/client.service.d.ts +11410 -7681
  120. package/dist/server/src/services/common.service.d.ts +3548 -471
  121. package/dist/server/src/services/email.service.d.ts +11 -0
  122. package/dist/server/src/services/index.d.ts +17 -27339
  123. package/dist/server/src/services/reactions.service.d.ts +11976 -0
  124. package/dist/server/src/services/settings.service.d.ts +85 -73
  125. package/dist/server/src/services/utils/functions.d.ts +2 -2
  126. package/dist/server/src/services/utils/reactions.d.ts +12 -0
  127. package/dist/server/src/utils/constants.d.ts +1 -0
  128. package/dist/server/src/utils/getConfig.d.ts +1 -1
  129. package/dist/server/src/utils/getPluginService.d.ts +1 -1
  130. package/dist/server/src/utils/types.d.ts +5 -3
  131. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +234 -1322
  132. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +2051 -2013
  133. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +15 -13
  134. package/dist/server/src/validators/repositories/comment.schema.d.ts +15 -439
  135. package/dist/server/src/validators/repositories/comment.validator.d.ts +240 -7397
  136. package/dist/server/src/validators/repositories/reports.validator.d.ts +89 -2940
  137. package/dist/server/src/validators/repositories/utils.d.ts +5 -13
  138. package/dist/server/src/validators/utils.d.ts +164 -1875
  139. package/dist/shared/constants.d.ts +1 -0
  140. package/package.json +40 -48
  141. package/dist/_chunks/index-BIaTg-pL.mjs +0 -5682
  142. package/dist/_chunks/index-BIivsuhp.js +0 -44
  143. package/dist/_chunks/index-Dz3cg8MA.js +0 -1
  144. package/dist/_chunks/index-sPxsE9Y1.js +0 -5
@@ -1,91 +1,29 @@
1
1
  import { z } from 'zod';
2
2
  export declare const configSchema: z.ZodObject<{
3
- entryLabel: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
4
- approvalFlow: z.ZodArray<z.ZodString, "many">;
5
- blockedAuthorProps: z.ZodArray<z.ZodString, "many">;
3
+ entryLabel: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
4
+ approvalFlow: z.ZodArray<z.ZodString>;
5
+ blockedAuthorProps: z.ZodArray<z.ZodString>;
6
+ reactionsEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6
7
  reportReasons: z.ZodRecord<z.ZodString, z.ZodString>;
7
8
  regex: z.ZodObject<{
8
9
  uid: z.ZodString;
9
10
  relatedUid: z.ZodString;
10
11
  email: z.ZodString;
11
12
  sorting: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- uid: string;
14
- relatedUid: string;
15
- email: string;
16
- sorting: string;
17
- }, {
18
- uid: string;
19
- relatedUid: string;
20
- email: string;
21
- sorting: string;
22
- }>;
23
- enabledCollections: z.ZodArray<z.ZodString, "many">;
24
- moderatorRoles: z.ZodArray<z.ZodString, "many">;
13
+ }, z.core.$strip>;
14
+ enabledCollections: z.ZodArray<z.ZodString>;
15
+ moderatorRoles: z.ZodArray<z.ZodString>;
25
16
  isGQLPluginEnabled: z.ZodBoolean;
17
+ isReactionsPluginInstalled: z.ZodBoolean;
26
18
  badWords: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
27
19
  gql: z.ZodOptional<z.ZodObject<{
28
20
  auth: z.ZodNullable<z.ZodBoolean>;
29
- }, "strip", z.ZodTypeAny, {
30
- auth: boolean | null;
31
- }, {
32
- auth: boolean | null;
33
- }>>;
21
+ }, z.core.$strip>>;
34
22
  client: z.ZodDefault<z.ZodObject<{
35
23
  url: z.ZodNullable<z.ZodString>;
36
24
  contactEmail: z.ZodNullable<z.ZodString>;
37
- }, "strip", z.ZodTypeAny, {
38
- url: string | null;
39
- contactEmail: string | null;
40
- }, {
41
- url: string | null;
42
- contactEmail: string | null;
43
- }>>;
44
- }, "strip", z.ZodTypeAny, {
45
- entryLabel: Record<string, string[]>;
46
- approvalFlow: string[];
47
- blockedAuthorProps: string[];
48
- reportReasons: Record<string, string>;
49
- regex: {
50
- uid: string;
51
- relatedUid: string;
52
- email: string;
53
- sorting: string;
54
- };
55
- enabledCollections: string[];
56
- moderatorRoles: string[];
57
- isGQLPluginEnabled: boolean;
58
- client: {
59
- url: string | null;
60
- contactEmail: string | null;
61
- };
62
- badWords?: boolean | null | undefined;
63
- gql?: {
64
- auth: boolean | null;
65
- } | undefined;
66
- }, {
67
- entryLabel: Record<string, string[]>;
68
- approvalFlow: string[];
69
- blockedAuthorProps: string[];
70
- reportReasons: Record<string, string>;
71
- regex: {
72
- uid: string;
73
- relatedUid: string;
74
- email: string;
75
- sorting: string;
76
- };
77
- enabledCollections: string[];
78
- moderatorRoles: string[];
79
- isGQLPluginEnabled: boolean;
80
- badWords?: boolean | null | undefined;
81
- gql?: {
82
- auth: boolean | null;
83
- } | undefined;
84
- client?: {
85
- url: string | null;
86
- contactEmail: string | null;
87
- } | undefined;
88
- }>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
89
27
  export type Config = z.infer<typeof configSchema>;
90
28
  declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
91
29
  id: z.ZodNumber;
@@ -95,96 +33,22 @@ declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
95
33
  updatedAt: z.ZodString;
96
34
  publishedAt: z.ZodNullable<z.ZodString>;
97
35
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- }, "strip", z.ZodTypeAny, {
99
- uid: string;
100
- id: number;
101
- documentId: string;
102
- createdAt: string;
103
- updatedAt: string;
104
- publishedAt: string | null;
105
- locale?: string | null | undefined;
106
- }, {
107
- uid: string;
108
- id: number;
109
- documentId: string;
110
- createdAt: string;
111
- updatedAt: string;
112
- publishedAt: string | null;
113
- locale?: string | null | undefined;
114
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
37
  declare const authorSchema: z.ZodObject<{
116
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
38
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
117
39
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
118
40
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
119
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
41
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
120
42
  url: z.ZodString;
121
- }, "strip", z.ZodTypeAny, {
122
- url: string;
123
- }, {
124
- url: string;
125
- }>, z.ZodObject<{
43
+ }, z.core.$strip>, z.ZodObject<{
126
44
  url: z.ZodString;
127
45
  formats: z.ZodObject<{
128
46
  thumbnail: z.ZodNullable<z.ZodObject<{
129
47
  url: z.ZodString;
130
- }, "strip", z.ZodTypeAny, {
131
- url: string;
132
- }, {
133
- url: string;
134
- }>>;
135
- }, "strip", z.ZodTypeAny, {
136
- thumbnail: {
137
- url: string;
138
- } | null;
139
- }, {
140
- thumbnail: {
141
- url: string;
142
- } | null;
143
- }>;
144
- }, "strip", z.ZodTypeAny, {
145
- url: string;
146
- formats: {
147
- thumbnail: {
148
- url: string;
149
- } | null;
150
- };
151
- }, {
152
- url: string;
153
- formats: {
154
- thumbnail: {
155
- url: string;
156
- } | null;
157
- };
158
- }>, z.ZodString]>>>;
159
- }, "strip", z.ZodTypeAny, {
160
- email?: string | null | undefined;
161
- id?: string | number | null | undefined;
162
- name?: string | null | undefined;
163
- avatar?: string | {
164
- url: string;
165
- } | {
166
- url: string;
167
- formats: {
168
- thumbnail: {
169
- url: string;
170
- } | null;
171
- };
172
- } | null | undefined;
173
- }, {
174
- email?: string | null | undefined;
175
- id?: string | number | null | undefined;
176
- name?: string | null | undefined;
177
- avatar?: string | {
178
- url: string;
179
- } | {
180
- url: string;
181
- formats: {
182
- thumbnail: {
183
- url: string;
184
- } | null;
185
- };
186
- } | null | undefined;
187
- }>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>;
50
+ }, z.core.$strip>, z.ZodString]>>>;
51
+ }, z.core.$strip>;
188
52
  export type Author = z.infer<typeof authorSchema>;
189
53
  declare const commentReportSchema: z.ZodObject<{
190
54
  id: z.ZodNumber;
@@ -193,21 +57,11 @@ declare const commentReportSchema: z.ZodObject<{
193
57
  resolved: z.ZodBoolean;
194
58
  createdAt: z.ZodString;
195
59
  updatedAt: z.ZodNullable<z.ZodString>;
196
- }, "strip", z.ZodTypeAny, {
197
- resolved: boolean;
198
- id: number;
199
- createdAt: string;
200
- updatedAt: string | null;
201
- content: string;
202
- reason?: string | null | undefined;
203
- }, {
204
- resolved: boolean;
205
- id: number;
206
- createdAt: string;
207
- updatedAt: string | null;
208
- content: string;
209
- reason?: string | null | undefined;
210
- }>;
60
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
61
+ USER: "USER";
62
+ AI: "AI";
63
+ }>>>;
64
+ }, z.core.$strip>;
211
65
  declare const baseCommentSchema: z.ZodObject<{
212
66
  id: z.ZodNumber;
213
67
  content: z.ZodString;
@@ -216,7 +70,7 @@ declare const baseCommentSchema: z.ZodObject<{
216
70
  blockReason: z.ZodNullable<z.ZodString>;
217
71
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
218
72
  removed: z.ZodNullable<z.ZodBoolean>;
219
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
73
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
220
74
  createdAt: z.ZodString;
221
75
  updatedAt: z.ZodString;
222
76
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -226,175 +80,36 @@ declare const baseCommentSchema: z.ZodObject<{
226
80
  resolved: z.ZodBoolean;
227
81
  createdAt: z.ZodString;
228
82
  updatedAt: z.ZodNullable<z.ZodString>;
229
- }, "strip", z.ZodTypeAny, {
230
- resolved: boolean;
231
- id: number;
232
- createdAt: string;
233
- updatedAt: string | null;
234
- content: string;
235
- reason?: string | null | undefined;
236
- }, {
237
- resolved: boolean;
238
- id: number;
239
- createdAt: string;
240
- updatedAt: string | null;
241
- content: string;
242
- reason?: string | null | undefined;
243
- }>, "many">>>;
83
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
84
+ USER: "USER";
85
+ AI: "AI";
86
+ }>>>;
87
+ }, z.core.$strip>>>>;
244
88
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
245
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
89
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
246
90
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
247
91
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
248
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
92
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
249
93
  url: z.ZodString;
250
- }, "strip", z.ZodTypeAny, {
251
- url: string;
252
- }, {
253
- url: string;
254
- }>, z.ZodObject<{
94
+ }, z.core.$strip>, z.ZodObject<{
255
95
  url: z.ZodString;
256
96
  formats: z.ZodObject<{
257
97
  thumbnail: z.ZodNullable<z.ZodObject<{
258
98
  url: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- url: string;
261
- }, {
262
- url: string;
263
- }>>;
264
- }, "strip", z.ZodTypeAny, {
265
- thumbnail: {
266
- url: string;
267
- } | null;
268
- }, {
269
- thumbnail: {
270
- url: string;
271
- } | null;
272
- }>;
273
- }, "strip", z.ZodTypeAny, {
274
- url: string;
275
- formats: {
276
- thumbnail: {
277
- url: string;
278
- } | null;
279
- };
280
- }, {
281
- url: string;
282
- formats: {
283
- thumbnail: {
284
- url: string;
285
- } | null;
286
- };
287
- }>, z.ZodString]>>>;
288
- }, "strip", z.ZodTypeAny, {
289
- email?: string | null | undefined;
290
- id?: string | number | null | undefined;
291
- name?: string | null | undefined;
292
- avatar?: string | {
293
- url: string;
294
- } | {
295
- url: string;
296
- formats: {
297
- thumbnail: {
298
- url: string;
299
- } | null;
300
- };
301
- } | null | undefined;
302
- }, {
303
- email?: string | null | undefined;
304
- id?: string | number | null | undefined;
305
- name?: string | null | undefined;
306
- avatar?: string | {
307
- url: string;
308
- } | {
309
- url: string;
310
- formats: {
311
- thumbnail: {
312
- url: string;
313
- } | null;
314
- };
315
- } | null | undefined;
316
- }>>>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>;
101
+ }, z.core.$strip>, z.ZodString]>>>;
102
+ }, z.core.$strip>>>;
317
103
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
318
104
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
319
- }, "strip", z.ZodTypeAny, {
320
- id: number;
321
- createdAt: string;
322
- updatedAt: string;
323
- content: string;
324
- blocked: boolean | null;
325
- blockedThread: boolean | null;
326
- blockReason: string | null;
327
- isAdminComment: boolean | null;
328
- removed: boolean | null;
329
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
330
- reports?: {
331
- resolved: boolean;
332
- id: number;
333
- createdAt: string;
334
- updatedAt: string | null;
335
- content: string;
336
- reason?: string | null | undefined;
337
- }[] | null | undefined;
338
- author?: {
339
- email?: string | null | undefined;
340
- id?: string | number | null | undefined;
341
- name?: string | null | undefined;
342
- avatar?: string | {
343
- url: string;
344
- } | {
345
- url: string;
346
- formats: {
347
- thumbnail: {
348
- url: string;
349
- } | null;
350
- };
351
- } | null | undefined;
352
- } | null | undefined;
353
- gotThread?: boolean | null | undefined;
354
- threadFirstItemId?: number | null | undefined;
355
- }, {
356
- id: number;
357
- createdAt: string;
358
- updatedAt: string;
359
- content: string;
360
- blocked: boolean | null;
361
- blockedThread: boolean | null;
362
- blockReason: string | null;
363
- isAdminComment: boolean | null;
364
- removed: boolean | null;
365
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
366
- reports?: {
367
- resolved: boolean;
368
- id: number;
369
- createdAt: string;
370
- updatedAt: string | null;
371
- content: string;
372
- reason?: string | null | undefined;
373
- }[] | null | undefined;
374
- author?: {
375
- email?: string | null | undefined;
376
- id?: string | number | null | undefined;
377
- name?: string | null | undefined;
378
- avatar?: string | {
379
- url: string;
380
- } | {
381
- url: string;
382
- formats: {
383
- thumbnail: {
384
- url: string;
385
- } | null;
386
- };
387
- } | null | undefined;
388
- } | null | undefined;
389
- gotThread?: boolean | null | undefined;
390
- threadFirstItemId?: number | null | undefined;
391
- }>;
105
+ }, z.core.$strip>;
392
106
  type BaseComment = z.infer<typeof baseCommentSchema>;
393
107
  export type CommentReport = z.infer<typeof commentReportSchema>;
394
108
  export type Comment = BaseComment & {
395
109
  threadOf?: Comment | null;
396
110
  related?: z.infer<typeof relatedSchema> | string;
397
111
  documentId?: string;
112
+ locale?: string | null;
398
113
  };
399
114
  export declare const commentsSchema: z.ZodObject<{
400
115
  pagination: z.ZodObject<{
@@ -402,35 +117,9 @@ export declare const commentsSchema: z.ZodObject<{
402
117
  pageSize: z.ZodNumber;
403
118
  pageCount: z.ZodNumber;
404
119
  total: z.ZodNumber;
405
- }, "strip", z.ZodTypeAny, {
406
- page: number;
407
- pageSize: number;
408
- pageCount: number;
409
- total: number;
410
- }, {
411
- page: number;
412
- pageSize: number;
413
- pageCount: number;
414
- total: number;
415
- }>;
416
- result: z.ZodArray<z.ZodType<Comment, z.ZodTypeDef, Comment>, "many">;
417
- }, "strip", z.ZodTypeAny, {
418
- pagination: {
419
- page: number;
420
- pageSize: number;
421
- pageCount: number;
422
- total: number;
423
- };
424
- result: Comment[];
425
- }, {
426
- pagination: {
427
- page: number;
428
- pageSize: number;
429
- pageCount: number;
430
- total: number;
431
- };
432
- result: Comment[];
433
- }>;
120
+ }, z.core.$strip>;
121
+ result: z.ZodArray<z.ZodType<Comment, unknown, z.core.$ZodTypeInternals<Comment, unknown>>>;
122
+ }, z.core.$strip>;
434
123
  export declare const commentDetailsSchema: z.ZodObject<{
435
124
  entity: z.ZodIntersection<z.ZodObject<{
436
125
  id: z.ZodNumber;
@@ -440,23 +129,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
440
129
  updatedAt: z.ZodString;
441
130
  publishedAt: z.ZodNullable<z.ZodString>;
442
131
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
- }, "strip", z.ZodTypeAny, {
444
- uid: string;
445
- id: number;
446
- documentId: string;
447
- createdAt: string;
448
- updatedAt: string;
449
- publishedAt: string | null;
450
- locale?: string | null | undefined;
451
- }, {
452
- uid: string;
453
- id: number;
454
- documentId: string;
455
- createdAt: string;
456
- updatedAt: string;
457
- publishedAt: string | null;
458
- locale?: string | null | undefined;
459
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
460
133
  selected: z.ZodNullable<z.ZodObject<{
461
134
  id: z.ZodNumber;
462
135
  content: z.ZodString;
@@ -465,7 +138,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
465
138
  blockReason: z.ZodNullable<z.ZodString>;
466
139
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
467
140
  removed: z.ZodNullable<z.ZodBoolean>;
468
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
141
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
469
142
  createdAt: z.ZodString;
470
143
  updatedAt: z.ZodString;
471
144
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -475,109 +148,42 @@ export declare const commentDetailsSchema: z.ZodObject<{
475
148
  resolved: z.ZodBoolean;
476
149
  createdAt: z.ZodString;
477
150
  updatedAt: z.ZodNullable<z.ZodString>;
478
- }, "strip", z.ZodTypeAny, {
479
- resolved: boolean;
480
- id: number;
481
- createdAt: string;
482
- updatedAt: string | null;
483
- content: string;
484
- reason?: string | null | undefined;
485
- }, {
486
- resolved: boolean;
487
- id: number;
488
- createdAt: string;
489
- updatedAt: string | null;
490
- content: string;
491
- reason?: string | null | undefined;
492
- }>, "many">>>;
151
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
152
+ USER: "USER";
153
+ AI: "AI";
154
+ }>>>;
155
+ }, z.core.$strip>>>>;
493
156
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
494
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
157
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
495
158
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
496
159
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
497
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
160
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
498
161
  url: z.ZodString;
499
- }, "strip", z.ZodTypeAny, {
500
- url: string;
501
- }, {
502
- url: string;
503
- }>, z.ZodObject<{
162
+ }, z.core.$strip>, z.ZodObject<{
504
163
  url: z.ZodString;
505
164
  formats: z.ZodObject<{
506
165
  thumbnail: z.ZodNullable<z.ZodObject<{
507
166
  url: z.ZodString;
508
- }, "strip", z.ZodTypeAny, {
509
- url: string;
510
- }, {
511
- url: string;
512
- }>>;
513
- }, "strip", z.ZodTypeAny, {
514
- thumbnail: {
515
- url: string;
516
- } | null;
517
- }, {
518
- thumbnail: {
519
- url: string;
520
- } | null;
521
- }>;
522
- }, "strip", z.ZodTypeAny, {
523
- url: string;
524
- formats: {
525
- thumbnail: {
526
- url: string;
527
- } | null;
528
- };
529
- }, {
530
- url: string;
531
- formats: {
532
- thumbnail: {
533
- url: string;
534
- } | null;
535
- };
536
- }>, z.ZodString]>>>;
537
- }, "strip", z.ZodTypeAny, {
538
- email?: string | null | undefined;
539
- id?: string | number | null | undefined;
540
- name?: string | null | undefined;
541
- avatar?: string | {
542
- url: string;
543
- } | {
544
- url: string;
545
- formats: {
546
- thumbnail: {
547
- url: string;
548
- } | null;
549
- };
550
- } | null | undefined;
551
- }, {
552
- email?: string | null | undefined;
553
- id?: string | number | null | undefined;
554
- name?: string | null | undefined;
555
- avatar?: string | {
556
- url: string;
557
- } | {
558
- url: string;
559
- formats: {
560
- thumbnail: {
561
- url: string;
562
- } | null;
563
- };
564
- } | null | undefined;
565
- }>>>;
167
+ }, z.core.$strip>>;
168
+ }, z.core.$strip>;
169
+ }, z.core.$strip>, z.ZodString]>>>;
170
+ }, z.core.$strip>>>;
566
171
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
567
172
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
568
- } & {
173
+ documentId: z.ZodString;
569
174
  related: z.ZodString;
570
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
175
+ threadOf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
571
176
  id: z.ZodNumber;
177
+ documentId: z.ZodString;
178
+ createdAt: z.ZodString;
179
+ updatedAt: z.ZodString;
572
180
  content: z.ZodString;
573
181
  blocked: z.ZodNullable<z.ZodBoolean>;
574
182
  blockedThread: z.ZodNullable<z.ZodBoolean>;
575
183
  blockReason: z.ZodNullable<z.ZodString>;
576
184
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
577
185
  removed: z.ZodNullable<z.ZodBoolean>;
578
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
579
- createdAt: z.ZodString;
580
- updatedAt: z.ZodString;
186
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
581
187
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
582
188
  id: z.ZodNumber;
583
189
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -585,123 +191,28 @@ export declare const commentDetailsSchema: z.ZodObject<{
585
191
  resolved: z.ZodBoolean;
586
192
  createdAt: z.ZodString;
587
193
  updatedAt: z.ZodNullable<z.ZodString>;
588
- }, "strip", z.ZodTypeAny, {
589
- resolved: boolean;
590
- id: number;
591
- createdAt: string;
592
- updatedAt: string | null;
593
- content: string;
594
- reason?: string | null | undefined;
595
- }, {
596
- resolved: boolean;
597
- id: number;
598
- createdAt: string;
599
- updatedAt: string | null;
600
- content: string;
601
- reason?: string | null | undefined;
602
- }>, "many">>>;
194
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
195
+ USER: "USER";
196
+ AI: "AI";
197
+ }>>>;
198
+ }, z.core.$strip>>>>;
603
199
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
604
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
200
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
605
201
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
606
202
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
607
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
203
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
608
204
  url: z.ZodString;
609
- }, "strip", z.ZodTypeAny, {
610
- url: string;
611
- }, {
612
- url: string;
613
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
614
206
  url: z.ZodString;
615
207
  formats: z.ZodObject<{
616
208
  thumbnail: z.ZodNullable<z.ZodObject<{
617
209
  url: z.ZodString;
618
- }, "strip", z.ZodTypeAny, {
619
- url: string;
620
- }, {
621
- url: string;
622
- }>>;
623
- }, "strip", z.ZodTypeAny, {
624
- thumbnail: {
625
- url: string;
626
- } | null;
627
- }, {
628
- thumbnail: {
629
- url: string;
630
- } | null;
631
- }>;
632
- }, "strip", z.ZodTypeAny, {
633
- url: string;
634
- formats: {
635
- thumbnail: {
636
- url: string;
637
- } | null;
638
- };
639
- }, {
640
- url: string;
641
- formats: {
642
- thumbnail: {
643
- url: string;
644
- } | null;
645
- };
646
- }>, z.ZodString]>>>;
647
- }, "strip", z.ZodTypeAny, {
648
- email?: string | null | undefined;
649
- id?: string | number | null | undefined;
650
- name?: string | null | undefined;
651
- avatar?: string | {
652
- url: string;
653
- } | {
654
- url: string;
655
- formats: {
656
- thumbnail: {
657
- url: string;
658
- } | null;
659
- };
660
- } | null | undefined;
661
- }, {
662
- email?: string | null | undefined;
663
- id?: string | number | null | undefined;
664
- name?: string | null | undefined;
665
- avatar?: string | {
666
- url: string;
667
- } | {
668
- url: string;
669
- formats: {
670
- thumbnail: {
671
- url: string;
672
- } | null;
673
- };
674
- } | null | undefined;
675
- }>>>;
210
+ }, z.core.$strip>>;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>, z.ZodString]>>>;
213
+ }, z.core.$strip>>>;
676
214
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
677
215
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
678
- } & {
679
- related: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
680
- id: z.ZodNumber;
681
- uid: z.ZodString;
682
- documentId: z.ZodString;
683
- createdAt: z.ZodString;
684
- updatedAt: z.ZodString;
685
- publishedAt: z.ZodNullable<z.ZodString>;
686
- locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
- }, "strip", z.ZodTypeAny, {
688
- uid: string;
689
- id: number;
690
- documentId: string;
691
- createdAt: string;
692
- updatedAt: string;
693
- publishedAt: string | null;
694
- locale?: string | null | undefined;
695
- }, {
696
- uid: string;
697
- id: number;
698
- documentId: string;
699
- createdAt: string;
700
- updatedAt: string;
701
- publishedAt: string | null;
702
- locale?: string | null | undefined;
703
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
704
- documentId: z.ZodString;
705
216
  threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
706
217
  id: z.ZodNumber;
707
218
  content: z.ZodString;
@@ -710,7 +221,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
710
221
  blockReason: z.ZodNullable<z.ZodString>;
711
222
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
712
223
  removed: z.ZodNullable<z.ZodBoolean>;
713
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
224
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
714
225
  createdAt: z.ZodString;
715
226
  updatedAt: z.ZodString;
716
227
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -720,582 +231,47 @@ export declare const commentDetailsSchema: z.ZodObject<{
720
231
  resolved: z.ZodBoolean;
721
232
  createdAt: z.ZodString;
722
233
  updatedAt: z.ZodNullable<z.ZodString>;
723
- }, "strip", z.ZodTypeAny, {
724
- resolved: boolean;
725
- id: number;
726
- createdAt: string;
727
- updatedAt: string | null;
728
- content: string;
729
- reason?: string | null | undefined;
730
- }, {
731
- resolved: boolean;
732
- id: number;
733
- createdAt: string;
734
- updatedAt: string | null;
735
- content: string;
736
- reason?: string | null | undefined;
737
- }>, "many">>>;
234
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
235
+ USER: "USER";
236
+ AI: "AI";
237
+ }>>>;
238
+ }, z.core.$strip>>>>;
738
239
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
739
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
240
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
740
241
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
741
242
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
742
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
243
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
743
244
  url: z.ZodString;
744
- }, "strip", z.ZodTypeAny, {
745
- url: string;
746
- }, {
747
- url: string;
748
- }>, z.ZodObject<{
245
+ }, z.core.$strip>, z.ZodObject<{
749
246
  url: z.ZodString;
750
247
  formats: z.ZodObject<{
751
248
  thumbnail: z.ZodNullable<z.ZodObject<{
752
249
  url: z.ZodString;
753
- }, "strip", z.ZodTypeAny, {
754
- url: string;
755
- }, {
756
- url: string;
757
- }>>;
758
- }, "strip", z.ZodTypeAny, {
759
- thumbnail: {
760
- url: string;
761
- } | null;
762
- }, {
763
- thumbnail: {
764
- url: string;
765
- } | null;
766
- }>;
767
- }, "strip", z.ZodTypeAny, {
768
- url: string;
769
- formats: {
770
- thumbnail: {
771
- url: string;
772
- } | null;
773
- };
774
- }, {
775
- url: string;
776
- formats: {
777
- thumbnail: {
778
- url: string;
779
- } | null;
780
- };
781
- }>, z.ZodString]>>>;
782
- }, "strip", z.ZodTypeAny, {
783
- email?: string | null | undefined;
784
- id?: string | number | null | undefined;
785
- name?: string | null | undefined;
786
- avatar?: string | {
787
- url: string;
788
- } | {
789
- url: string;
790
- formats: {
791
- thumbnail: {
792
- url: string;
793
- } | null;
794
- };
795
- } | null | undefined;
796
- }, {
797
- email?: string | null | undefined;
798
- id?: string | number | null | undefined;
799
- name?: string | null | undefined;
800
- avatar?: string | {
801
- url: string;
802
- } | {
803
- url: string;
804
- formats: {
805
- thumbnail: {
806
- url: string;
807
- } | null;
808
- };
809
- } | null | undefined;
810
- }>>>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strip>;
252
+ }, z.core.$strip>, z.ZodString]>>>;
253
+ }, z.core.$strip>>>;
811
254
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
812
255
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
813
- } & {
814
256
  related: z.ZodString;
815
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodType<Comment, z.ZodTypeDef, Comment>>>;
257
+ threadOf: z.ZodOptional<z.ZodNullable<z.ZodType<Comment, unknown, z.core.$ZodTypeInternals<Comment, unknown>>>>;
816
258
  documentId: z.ZodOptional<z.ZodString>;
817
- }, "strip", z.ZodTypeAny, {
818
- id: number;
819
- createdAt: string;
820
- updatedAt: string;
821
- content: string;
822
- blocked: boolean | null;
823
- blockedThread: boolean | null;
824
- blockReason: string | null;
825
- isAdminComment: boolean | null;
826
- removed: boolean | null;
827
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
828
- related: string;
829
- documentId?: string | undefined;
830
- reports?: {
831
- resolved: boolean;
832
- id: number;
833
- createdAt: string;
834
- updatedAt: string | null;
835
- content: string;
836
- reason?: string | null | undefined;
837
- }[] | null | undefined;
838
- author?: {
839
- email?: string | null | undefined;
840
- id?: string | number | null | undefined;
841
- name?: string | null | undefined;
842
- avatar?: string | {
843
- url: string;
844
- } | {
845
- url: string;
846
- formats: {
847
- thumbnail: {
848
- url: string;
849
- } | null;
850
- };
851
- } | null | undefined;
852
- } | null | undefined;
853
- gotThread?: boolean | null | undefined;
854
- threadFirstItemId?: number | null | undefined;
855
- threadOf?: Comment | null | undefined;
856
- }, {
857
- id: number;
858
- createdAt: string;
859
- updatedAt: string;
860
- content: string;
861
- blocked: boolean | null;
862
- blockedThread: boolean | null;
863
- blockReason: string | null;
864
- isAdminComment: boolean | null;
865
- removed: boolean | null;
866
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
867
- related: string;
868
- documentId?: string | undefined;
869
- reports?: {
870
- resolved: boolean;
871
- id: number;
872
- createdAt: string;
873
- updatedAt: string | null;
874
- content: string;
875
- reason?: string | null | undefined;
876
- }[] | null | undefined;
877
- author?: {
878
- email?: string | null | undefined;
879
- id?: string | number | null | undefined;
880
- name?: string | null | undefined;
881
- avatar?: string | {
882
- url: string;
883
- } | {
884
- url: string;
885
- formats: {
886
- thumbnail: {
887
- url: string;
888
- } | null;
889
- };
890
- } | null | undefined;
891
- } | null | undefined;
892
- gotThread?: boolean | null | undefined;
893
- threadFirstItemId?: number | null | undefined;
894
- threadOf?: Comment | null | undefined;
895
- }>>>>;
896
- }, "related"> & {
259
+ }, z.core.$strip>>>>;
897
260
  related: z.ZodString;
898
- }, "strip", z.ZodTypeAny, {
899
- id: number;
900
- documentId: string;
901
- createdAt: string;
902
- updatedAt: string;
903
- content: string;
904
- blocked: boolean | null;
905
- blockedThread: boolean | null;
906
- blockReason: string | null;
907
- isAdminComment: boolean | null;
908
- removed: boolean | null;
909
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
910
- related: string;
911
- reports?: {
912
- resolved: boolean;
913
- id: number;
914
- createdAt: string;
915
- updatedAt: string | null;
916
- content: string;
917
- reason?: string | null | undefined;
918
- }[] | null | undefined;
919
- author?: {
920
- email?: string | null | undefined;
921
- id?: string | number | null | undefined;
922
- name?: string | null | undefined;
923
- avatar?: string | {
924
- url: string;
925
- } | {
926
- url: string;
927
- formats: {
928
- thumbnail: {
929
- url: string;
930
- } | null;
931
- };
932
- } | null | undefined;
933
- } | null | undefined;
934
- gotThread?: boolean | null | undefined;
935
- threadFirstItemId?: number | null | undefined;
936
- threadOf?: {
937
- id: number;
938
- createdAt: string;
939
- updatedAt: string;
940
- content: string;
941
- blocked: boolean | null;
942
- blockedThread: boolean | null;
943
- blockReason: string | null;
944
- isAdminComment: boolean | null;
945
- removed: boolean | null;
946
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
947
- related: string;
948
- documentId?: string | undefined;
949
- reports?: {
950
- resolved: boolean;
951
- id: number;
952
- createdAt: string;
953
- updatedAt: string | null;
954
- content: string;
955
- reason?: string | null | undefined;
956
- }[] | null | undefined;
957
- author?: {
958
- email?: string | null | undefined;
959
- id?: string | number | null | undefined;
960
- name?: string | null | undefined;
961
- avatar?: string | {
962
- url: string;
963
- } | {
964
- url: string;
965
- formats: {
966
- thumbnail: {
967
- url: string;
968
- } | null;
969
- };
970
- } | null | undefined;
971
- } | null | undefined;
972
- gotThread?: boolean | null | undefined;
973
- threadFirstItemId?: number | null | undefined;
974
- threadOf?: Comment | null | undefined;
975
- } | null | undefined;
976
- }, {
977
- id: number;
978
- documentId: string;
979
- createdAt: string;
980
- updatedAt: string;
981
- content: string;
982
- blocked: boolean | null;
983
- blockedThread: boolean | null;
984
- blockReason: string | null;
985
- isAdminComment: boolean | null;
986
- removed: boolean | null;
987
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
988
- related: string;
989
- reports?: {
990
- resolved: boolean;
991
- id: number;
992
- createdAt: string;
993
- updatedAt: string | null;
994
- content: string;
995
- reason?: string | null | undefined;
996
- }[] | null | undefined;
997
- author?: {
998
- email?: string | null | undefined;
999
- id?: string | number | null | undefined;
1000
- name?: string | null | undefined;
1001
- avatar?: string | {
1002
- url: string;
1003
- } | {
1004
- url: string;
1005
- formats: {
1006
- thumbnail: {
1007
- url: string;
1008
- } | null;
1009
- };
1010
- } | null | undefined;
1011
- } | null | undefined;
1012
- gotThread?: boolean | null | undefined;
1013
- threadFirstItemId?: number | null | undefined;
1014
- threadOf?: {
1015
- id: number;
1016
- createdAt: string;
1017
- updatedAt: string;
1018
- content: string;
1019
- blocked: boolean | null;
1020
- blockedThread: boolean | null;
1021
- blockReason: string | null;
1022
- isAdminComment: boolean | null;
1023
- removed: boolean | null;
1024
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1025
- related: string;
1026
- documentId?: string | undefined;
1027
- reports?: {
1028
- resolved: boolean;
1029
- id: number;
1030
- createdAt: string;
1031
- updatedAt: string | null;
1032
- content: string;
1033
- reason?: string | null | undefined;
1034
- }[] | null | undefined;
1035
- author?: {
1036
- email?: string | null | undefined;
1037
- id?: string | number | null | undefined;
1038
- name?: string | null | undefined;
1039
- avatar?: string | {
1040
- url: string;
1041
- } | {
1042
- url: string;
1043
- formats: {
1044
- thumbnail: {
1045
- url: string;
1046
- } | null;
1047
- };
1048
- } | null | undefined;
1049
- } | null | undefined;
1050
- gotThread?: boolean | null | undefined;
1051
- threadFirstItemId?: number | null | undefined;
1052
- threadOf?: Comment | null | undefined;
1053
- } | null | undefined;
1054
- }>>>;
1055
- }, "strip", z.ZodTypeAny, {
1056
- id: number;
1057
- createdAt: string;
1058
- updatedAt: string;
1059
- content: string;
1060
- blocked: boolean | null;
1061
- blockedThread: boolean | null;
1062
- blockReason: string | null;
1063
- isAdminComment: boolean | null;
1064
- removed: boolean | null;
1065
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1066
- related: string;
1067
- reports?: {
1068
- resolved: boolean;
1069
- id: number;
1070
- createdAt: string;
1071
- updatedAt: string | null;
1072
- content: string;
1073
- reason?: string | null | undefined;
1074
- }[] | null | undefined;
1075
- author?: {
1076
- email?: string | null | undefined;
1077
- id?: string | number | null | undefined;
1078
- name?: string | null | undefined;
1079
- avatar?: string | {
1080
- url: string;
1081
- } | {
1082
- url: string;
1083
- formats: {
1084
- thumbnail: {
1085
- url: string;
1086
- } | null;
1087
- };
1088
- } | null | undefined;
1089
- } | null | undefined;
1090
- gotThread?: boolean | null | undefined;
1091
- threadFirstItemId?: number | null | undefined;
1092
- threadOf?: {
1093
- id: number;
1094
- documentId: string;
1095
- createdAt: string;
1096
- updatedAt: string;
1097
- content: string;
1098
- blocked: boolean | null;
1099
- blockedThread: boolean | null;
1100
- blockReason: string | null;
1101
- isAdminComment: boolean | null;
1102
- removed: boolean | null;
1103
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1104
- related: string;
1105
- reports?: {
1106
- resolved: boolean;
1107
- id: number;
1108
- createdAt: string;
1109
- updatedAt: string | null;
1110
- content: string;
1111
- reason?: string | null | undefined;
1112
- }[] | null | undefined;
1113
- author?: {
1114
- email?: string | null | undefined;
1115
- id?: string | number | null | undefined;
1116
- name?: string | null | undefined;
1117
- avatar?: string | {
1118
- url: string;
1119
- } | {
1120
- url: string;
1121
- formats: {
1122
- thumbnail: {
1123
- url: string;
1124
- } | null;
1125
- };
1126
- } | null | undefined;
1127
- } | null | undefined;
1128
- gotThread?: boolean | null | undefined;
1129
- threadFirstItemId?: number | null | undefined;
1130
- threadOf?: {
1131
- id: number;
1132
- createdAt: string;
1133
- updatedAt: string;
1134
- content: string;
1135
- blocked: boolean | null;
1136
- blockedThread: boolean | null;
1137
- blockReason: string | null;
1138
- isAdminComment: boolean | null;
1139
- removed: boolean | null;
1140
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1141
- related: string;
1142
- documentId?: string | undefined;
1143
- reports?: {
1144
- resolved: boolean;
1145
- id: number;
1146
- createdAt: string;
1147
- updatedAt: string | null;
1148
- content: string;
1149
- reason?: string | null | undefined;
1150
- }[] | null | undefined;
1151
- author?: {
1152
- email?: string | null | undefined;
1153
- id?: string | number | null | undefined;
1154
- name?: string | null | undefined;
1155
- avatar?: string | {
1156
- url: string;
1157
- } | {
1158
- url: string;
1159
- formats: {
1160
- thumbnail: {
1161
- url: string;
1162
- } | null;
1163
- };
1164
- } | null | undefined;
1165
- } | null | undefined;
1166
- gotThread?: boolean | null | undefined;
1167
- threadFirstItemId?: number | null | undefined;
1168
- threadOf?: Comment | null | undefined;
1169
- } | null | undefined;
1170
- } | null | undefined;
1171
- }, {
1172
- id: number;
1173
- createdAt: string;
1174
- updatedAt: string;
1175
- content: string;
1176
- blocked: boolean | null;
1177
- blockedThread: boolean | null;
1178
- blockReason: string | null;
1179
- isAdminComment: boolean | null;
1180
- removed: boolean | null;
1181
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1182
- related: string;
1183
- reports?: {
1184
- resolved: boolean;
1185
- id: number;
1186
- createdAt: string;
1187
- updatedAt: string | null;
1188
- content: string;
1189
- reason?: string | null | undefined;
1190
- }[] | null | undefined;
1191
- author?: {
1192
- email?: string | null | undefined;
1193
- id?: string | number | null | undefined;
1194
- name?: string | null | undefined;
1195
- avatar?: string | {
1196
- url: string;
1197
- } | {
1198
- url: string;
1199
- formats: {
1200
- thumbnail: {
1201
- url: string;
1202
- } | null;
1203
- };
1204
- } | null | undefined;
1205
- } | null | undefined;
1206
- gotThread?: boolean | null | undefined;
1207
- threadFirstItemId?: number | null | undefined;
1208
- threadOf?: {
1209
- id: number;
1210
- documentId: string;
1211
- createdAt: string;
1212
- updatedAt: string;
1213
- content: string;
1214
- blocked: boolean | null;
1215
- blockedThread: boolean | null;
1216
- blockReason: string | null;
1217
- isAdminComment: boolean | null;
1218
- removed: boolean | null;
1219
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1220
- related: string;
1221
- reports?: {
1222
- resolved: boolean;
1223
- id: number;
1224
- createdAt: string;
1225
- updatedAt: string | null;
1226
- content: string;
1227
- reason?: string | null | undefined;
1228
- }[] | null | undefined;
1229
- author?: {
1230
- email?: string | null | undefined;
1231
- id?: string | number | null | undefined;
1232
- name?: string | null | undefined;
1233
- avatar?: string | {
1234
- url: string;
1235
- } | {
1236
- url: string;
1237
- formats: {
1238
- thumbnail: {
1239
- url: string;
1240
- } | null;
1241
- };
1242
- } | null | undefined;
1243
- } | null | undefined;
1244
- gotThread?: boolean | null | undefined;
1245
- threadFirstItemId?: number | null | undefined;
1246
- threadOf?: {
1247
- id: number;
1248
- createdAt: string;
1249
- updatedAt: string;
1250
- content: string;
1251
- blocked: boolean | null;
1252
- blockedThread: boolean | null;
1253
- blockReason: string | null;
1254
- isAdminComment: boolean | null;
1255
- removed: boolean | null;
1256
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1257
- related: string;
1258
- documentId?: string | undefined;
1259
- reports?: {
1260
- resolved: boolean;
1261
- id: number;
1262
- createdAt: string;
1263
- updatedAt: string | null;
1264
- content: string;
1265
- reason?: string | null | undefined;
1266
- }[] | null | undefined;
1267
- author?: {
1268
- email?: string | null | undefined;
1269
- id?: string | number | null | undefined;
1270
- name?: string | null | undefined;
1271
- avatar?: string | {
1272
- url: string;
1273
- } | {
1274
- url: string;
1275
- formats: {
1276
- thumbnail: {
1277
- url: string;
1278
- } | null;
1279
- };
1280
- } | null | undefined;
1281
- } | null | undefined;
1282
- gotThread?: boolean | null | undefined;
1283
- threadFirstItemId?: number | null | undefined;
1284
- threadOf?: Comment | null | undefined;
1285
- } | null | undefined;
1286
- } | null | undefined;
1287
- }>>;
1288
- level: z.ZodArray<z.ZodObject<Omit<{
261
+ }, z.core.$strip>>>;
262
+ }, z.core.$strip>>;
263
+ level: z.ZodArray<z.ZodObject<{
1289
264
  id: z.ZodNumber;
265
+ documentId: z.ZodString;
266
+ createdAt: z.ZodString;
267
+ updatedAt: z.ZodString;
1290
268
  content: z.ZodString;
1291
269
  blocked: z.ZodNullable<z.ZodBoolean>;
1292
270
  blockedThread: z.ZodNullable<z.ZodBoolean>;
1293
271
  blockReason: z.ZodNullable<z.ZodString>;
1294
272
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
1295
273
  removed: z.ZodNullable<z.ZodBoolean>;
1296
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
1297
- createdAt: z.ZodString;
1298
- updatedAt: z.ZodString;
274
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
1299
275
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1300
276
  id: z.ZodNumber;
1301
277
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1303,720 +279,30 @@ export declare const commentDetailsSchema: z.ZodObject<{
1303
279
  resolved: z.ZodBoolean;
1304
280
  createdAt: z.ZodString;
1305
281
  updatedAt: z.ZodNullable<z.ZodString>;
1306
- }, "strip", z.ZodTypeAny, {
1307
- resolved: boolean;
1308
- id: number;
1309
- createdAt: string;
1310
- updatedAt: string | null;
1311
- content: string;
1312
- reason?: string | null | undefined;
1313
- }, {
1314
- resolved: boolean;
1315
- id: number;
1316
- createdAt: string;
1317
- updatedAt: string | null;
1318
- content: string;
1319
- reason?: string | null | undefined;
1320
- }>, "many">>>;
282
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
283
+ USER: "USER";
284
+ AI: "AI";
285
+ }>>>;
286
+ }, z.core.$strip>>>>;
1321
287
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1322
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
288
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
1323
289
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1324
290
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1325
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
291
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1326
292
  url: z.ZodString;
1327
- }, "strip", z.ZodTypeAny, {
1328
- url: string;
1329
- }, {
1330
- url: string;
1331
- }>, z.ZodObject<{
293
+ }, z.core.$strip>, z.ZodObject<{
1332
294
  url: z.ZodString;
1333
295
  formats: z.ZodObject<{
1334
296
  thumbnail: z.ZodNullable<z.ZodObject<{
1335
297
  url: z.ZodString;
1336
- }, "strip", z.ZodTypeAny, {
1337
- url: string;
1338
- }, {
1339
- url: string;
1340
- }>>;
1341
- }, "strip", z.ZodTypeAny, {
1342
- thumbnail: {
1343
- url: string;
1344
- } | null;
1345
- }, {
1346
- thumbnail: {
1347
- url: string;
1348
- } | null;
1349
- }>;
1350
- }, "strip", z.ZodTypeAny, {
1351
- url: string;
1352
- formats: {
1353
- thumbnail: {
1354
- url: string;
1355
- } | null;
1356
- };
1357
- }, {
1358
- url: string;
1359
- formats: {
1360
- thumbnail: {
1361
- url: string;
1362
- } | null;
1363
- };
1364
- }>, z.ZodString]>>>;
1365
- }, "strip", z.ZodTypeAny, {
1366
- email?: string | null | undefined;
1367
- id?: string | number | null | undefined;
1368
- name?: string | null | undefined;
1369
- avatar?: string | {
1370
- url: string;
1371
- } | {
1372
- url: string;
1373
- formats: {
1374
- thumbnail: {
1375
- url: string;
1376
- } | null;
1377
- };
1378
- } | null | undefined;
1379
- }, {
1380
- email?: string | null | undefined;
1381
- id?: string | number | null | undefined;
1382
- name?: string | null | undefined;
1383
- avatar?: string | {
1384
- url: string;
1385
- } | {
1386
- url: string;
1387
- formats: {
1388
- thumbnail: {
1389
- url: string;
1390
- } | null;
1391
- };
1392
- } | null | undefined;
1393
- }>>>;
298
+ }, z.core.$strip>>;
299
+ }, z.core.$strip>;
300
+ }, z.core.$strip>, z.ZodString]>>>;
301
+ }, z.core.$strip>>>;
1394
302
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1395
303
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1396
- } & {
1397
- related: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
1398
- id: z.ZodNumber;
1399
- uid: z.ZodString;
1400
- documentId: z.ZodString;
1401
- createdAt: z.ZodString;
1402
- updatedAt: z.ZodString;
1403
- publishedAt: z.ZodNullable<z.ZodString>;
1404
- locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1405
- }, "strip", z.ZodTypeAny, {
1406
- uid: string;
1407
- id: number;
1408
- documentId: string;
1409
- createdAt: string;
1410
- updatedAt: string;
1411
- publishedAt: string | null;
1412
- locale?: string | null | undefined;
1413
- }, {
1414
- uid: string;
1415
- id: number;
1416
- documentId: string;
1417
- createdAt: string;
1418
- updatedAt: string;
1419
- publishedAt: string | null;
1420
- locale?: string | null | undefined;
1421
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1422
- documentId: z.ZodString;
1423
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
1424
- id: z.ZodNumber;
1425
- content: z.ZodString;
1426
- blocked: z.ZodNullable<z.ZodBoolean>;
1427
- blockedThread: z.ZodNullable<z.ZodBoolean>;
1428
- blockReason: z.ZodNullable<z.ZodString>;
1429
- isAdminComment: z.ZodNullable<z.ZodBoolean>;
1430
- removed: z.ZodNullable<z.ZodBoolean>;
1431
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
1432
- createdAt: z.ZodString;
1433
- updatedAt: z.ZodString;
1434
- reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1435
- id: z.ZodNumber;
1436
- reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1437
- content: z.ZodString;
1438
- resolved: z.ZodBoolean;
1439
- createdAt: z.ZodString;
1440
- updatedAt: z.ZodNullable<z.ZodString>;
1441
- }, "strip", z.ZodTypeAny, {
1442
- resolved: boolean;
1443
- id: number;
1444
- createdAt: string;
1445
- updatedAt: string | null;
1446
- content: string;
1447
- reason?: string | null | undefined;
1448
- }, {
1449
- resolved: boolean;
1450
- id: number;
1451
- createdAt: string;
1452
- updatedAt: string | null;
1453
- content: string;
1454
- reason?: string | null | undefined;
1455
- }>, "many">>>;
1456
- author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1457
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
1458
- name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1459
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1460
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1461
- url: z.ZodString;
1462
- }, "strip", z.ZodTypeAny, {
1463
- url: string;
1464
- }, {
1465
- url: string;
1466
- }>, z.ZodObject<{
1467
- url: z.ZodString;
1468
- formats: z.ZodObject<{
1469
- thumbnail: z.ZodNullable<z.ZodObject<{
1470
- url: z.ZodString;
1471
- }, "strip", z.ZodTypeAny, {
1472
- url: string;
1473
- }, {
1474
- url: string;
1475
- }>>;
1476
- }, "strip", z.ZodTypeAny, {
1477
- thumbnail: {
1478
- url: string;
1479
- } | null;
1480
- }, {
1481
- thumbnail: {
1482
- url: string;
1483
- } | null;
1484
- }>;
1485
- }, "strip", z.ZodTypeAny, {
1486
- url: string;
1487
- formats: {
1488
- thumbnail: {
1489
- url: string;
1490
- } | null;
1491
- };
1492
- }, {
1493
- url: string;
1494
- formats: {
1495
- thumbnail: {
1496
- url: string;
1497
- } | null;
1498
- };
1499
- }>, z.ZodString]>>>;
1500
- }, "strip", z.ZodTypeAny, {
1501
- email?: string | null | undefined;
1502
- id?: string | number | null | undefined;
1503
- name?: string | null | undefined;
1504
- avatar?: string | {
1505
- url: string;
1506
- } | {
1507
- url: string;
1508
- formats: {
1509
- thumbnail: {
1510
- url: string;
1511
- } | null;
1512
- };
1513
- } | null | undefined;
1514
- }, {
1515
- email?: string | null | undefined;
1516
- id?: string | number | null | undefined;
1517
- name?: string | null | undefined;
1518
- avatar?: string | {
1519
- url: string;
1520
- } | {
1521
- url: string;
1522
- formats: {
1523
- thumbnail: {
1524
- url: string;
1525
- } | null;
1526
- };
1527
- } | null | undefined;
1528
- }>>>;
1529
- gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1530
- threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1531
- } & {
1532
- related: z.ZodString;
1533
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodType<Comment, z.ZodTypeDef, Comment>>>;
1534
- documentId: z.ZodOptional<z.ZodString>;
1535
- }, "strip", z.ZodTypeAny, {
1536
- id: number;
1537
- createdAt: string;
1538
- updatedAt: string;
1539
- content: string;
1540
- blocked: boolean | null;
1541
- blockedThread: boolean | null;
1542
- blockReason: string | null;
1543
- isAdminComment: boolean | null;
1544
- removed: boolean | null;
1545
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1546
- related: string;
1547
- documentId?: string | undefined;
1548
- reports?: {
1549
- resolved: boolean;
1550
- id: number;
1551
- createdAt: string;
1552
- updatedAt: string | null;
1553
- content: string;
1554
- reason?: string | null | undefined;
1555
- }[] | null | undefined;
1556
- author?: {
1557
- email?: string | null | undefined;
1558
- id?: string | number | null | undefined;
1559
- name?: string | null | undefined;
1560
- avatar?: string | {
1561
- url: string;
1562
- } | {
1563
- url: string;
1564
- formats: {
1565
- thumbnail: {
1566
- url: string;
1567
- } | null;
1568
- };
1569
- } | null | undefined;
1570
- } | null | undefined;
1571
- gotThread?: boolean | null | undefined;
1572
- threadFirstItemId?: number | null | undefined;
1573
- threadOf?: Comment | null | undefined;
1574
- }, {
1575
- id: number;
1576
- createdAt: string;
1577
- updatedAt: string;
1578
- content: string;
1579
- blocked: boolean | null;
1580
- blockedThread: boolean | null;
1581
- blockReason: string | null;
1582
- isAdminComment: boolean | null;
1583
- removed: boolean | null;
1584
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1585
- related: string;
1586
- documentId?: string | undefined;
1587
- reports?: {
1588
- resolved: boolean;
1589
- id: number;
1590
- createdAt: string;
1591
- updatedAt: string | null;
1592
- content: string;
1593
- reason?: string | null | undefined;
1594
- }[] | null | undefined;
1595
- author?: {
1596
- email?: string | null | undefined;
1597
- id?: string | number | null | undefined;
1598
- name?: string | null | undefined;
1599
- avatar?: string | {
1600
- url: string;
1601
- } | {
1602
- url: string;
1603
- formats: {
1604
- thumbnail: {
1605
- url: string;
1606
- } | null;
1607
- };
1608
- } | null | undefined;
1609
- } | null | undefined;
1610
- gotThread?: boolean | null | undefined;
1611
- threadFirstItemId?: number | null | undefined;
1612
- threadOf?: Comment | null | undefined;
1613
- }>>>>;
1614
- }, "related" | "threadOf">, "strip", z.ZodTypeAny, {
1615
- id: number;
1616
- documentId: string;
1617
- createdAt: string;
1618
- updatedAt: string;
1619
- content: string;
1620
- blocked: boolean | null;
1621
- blockedThread: boolean | null;
1622
- blockReason: string | null;
1623
- isAdminComment: boolean | null;
1624
- removed: boolean | null;
1625
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1626
- reports?: {
1627
- resolved: boolean;
1628
- id: number;
1629
- createdAt: string;
1630
- updatedAt: string | null;
1631
- content: string;
1632
- reason?: string | null | undefined;
1633
- }[] | null | undefined;
1634
- author?: {
1635
- email?: string | null | undefined;
1636
- id?: string | number | null | undefined;
1637
- name?: string | null | undefined;
1638
- avatar?: string | {
1639
- url: string;
1640
- } | {
1641
- url: string;
1642
- formats: {
1643
- thumbnail: {
1644
- url: string;
1645
- } | null;
1646
- };
1647
- } | null | undefined;
1648
- } | null | undefined;
1649
- gotThread?: boolean | null | undefined;
1650
- threadFirstItemId?: number | null | undefined;
1651
- }, {
1652
- id: number;
1653
- documentId: string;
1654
- createdAt: string;
1655
- updatedAt: string;
1656
- content: string;
1657
- blocked: boolean | null;
1658
- blockedThread: boolean | null;
1659
- blockReason: string | null;
1660
- isAdminComment: boolean | null;
1661
- removed: boolean | null;
1662
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1663
- reports?: {
1664
- resolved: boolean;
1665
- id: number;
1666
- createdAt: string;
1667
- updatedAt: string | null;
1668
- content: string;
1669
- reason?: string | null | undefined;
1670
- }[] | null | undefined;
1671
- author?: {
1672
- email?: string | null | undefined;
1673
- id?: string | number | null | undefined;
1674
- name?: string | null | undefined;
1675
- avatar?: string | {
1676
- url: string;
1677
- } | {
1678
- url: string;
1679
- formats: {
1680
- thumbnail: {
1681
- url: string;
1682
- } | null;
1683
- };
1684
- } | null | undefined;
1685
- } | null | undefined;
1686
- gotThread?: boolean | null | undefined;
1687
- threadFirstItemId?: number | null | undefined;
1688
- }>, "many">;
1689
- }, "strip", z.ZodTypeAny, {
1690
- entity: {
1691
- uid: string;
1692
- id: number;
1693
- documentId: string;
1694
- createdAt: string;
1695
- updatedAt: string;
1696
- publishedAt: string | null;
1697
- locale?: string | null | undefined;
1698
- } & Record<string, unknown>;
1699
- selected: {
1700
- id: number;
1701
- createdAt: string;
1702
- updatedAt: string;
1703
- content: string;
1704
- blocked: boolean | null;
1705
- blockedThread: boolean | null;
1706
- blockReason: string | null;
1707
- isAdminComment: boolean | null;
1708
- removed: boolean | null;
1709
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1710
- related: string;
1711
- reports?: {
1712
- resolved: boolean;
1713
- id: number;
1714
- createdAt: string;
1715
- updatedAt: string | null;
1716
- content: string;
1717
- reason?: string | null | undefined;
1718
- }[] | null | undefined;
1719
- author?: {
1720
- email?: string | null | undefined;
1721
- id?: string | number | null | undefined;
1722
- name?: string | null | undefined;
1723
- avatar?: string | {
1724
- url: string;
1725
- } | {
1726
- url: string;
1727
- formats: {
1728
- thumbnail: {
1729
- url: string;
1730
- } | null;
1731
- };
1732
- } | null | undefined;
1733
- } | null | undefined;
1734
- gotThread?: boolean | null | undefined;
1735
- threadFirstItemId?: number | null | undefined;
1736
- threadOf?: {
1737
- id: number;
1738
- documentId: string;
1739
- createdAt: string;
1740
- updatedAt: string;
1741
- content: string;
1742
- blocked: boolean | null;
1743
- blockedThread: boolean | null;
1744
- blockReason: string | null;
1745
- isAdminComment: boolean | null;
1746
- removed: boolean | null;
1747
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1748
- related: string;
1749
- reports?: {
1750
- resolved: boolean;
1751
- id: number;
1752
- createdAt: string;
1753
- updatedAt: string | null;
1754
- content: string;
1755
- reason?: string | null | undefined;
1756
- }[] | null | undefined;
1757
- author?: {
1758
- email?: string | null | undefined;
1759
- id?: string | number | null | undefined;
1760
- name?: string | null | undefined;
1761
- avatar?: string | {
1762
- url: string;
1763
- } | {
1764
- url: string;
1765
- formats: {
1766
- thumbnail: {
1767
- url: string;
1768
- } | null;
1769
- };
1770
- } | null | undefined;
1771
- } | null | undefined;
1772
- gotThread?: boolean | null | undefined;
1773
- threadFirstItemId?: number | null | undefined;
1774
- threadOf?: {
1775
- id: number;
1776
- createdAt: string;
1777
- updatedAt: string;
1778
- content: string;
1779
- blocked: boolean | null;
1780
- blockedThread: boolean | null;
1781
- blockReason: string | null;
1782
- isAdminComment: boolean | null;
1783
- removed: boolean | null;
1784
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1785
- related: string;
1786
- documentId?: string | undefined;
1787
- reports?: {
1788
- resolved: boolean;
1789
- id: number;
1790
- createdAt: string;
1791
- updatedAt: string | null;
1792
- content: string;
1793
- reason?: string | null | undefined;
1794
- }[] | null | undefined;
1795
- author?: {
1796
- email?: string | null | undefined;
1797
- id?: string | number | null | undefined;
1798
- name?: string | null | undefined;
1799
- avatar?: string | {
1800
- url: string;
1801
- } | {
1802
- url: string;
1803
- formats: {
1804
- thumbnail: {
1805
- url: string;
1806
- } | null;
1807
- };
1808
- } | null | undefined;
1809
- } | null | undefined;
1810
- gotThread?: boolean | null | undefined;
1811
- threadFirstItemId?: number | null | undefined;
1812
- threadOf?: Comment | null | undefined;
1813
- } | null | undefined;
1814
- } | null | undefined;
1815
- } | null;
1816
- level: {
1817
- id: number;
1818
- documentId: string;
1819
- createdAt: string;
1820
- updatedAt: string;
1821
- content: string;
1822
- blocked: boolean | null;
1823
- blockedThread: boolean | null;
1824
- blockReason: string | null;
1825
- isAdminComment: boolean | null;
1826
- removed: boolean | null;
1827
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1828
- reports?: {
1829
- resolved: boolean;
1830
- id: number;
1831
- createdAt: string;
1832
- updatedAt: string | null;
1833
- content: string;
1834
- reason?: string | null | undefined;
1835
- }[] | null | undefined;
1836
- author?: {
1837
- email?: string | null | undefined;
1838
- id?: string | number | null | undefined;
1839
- name?: string | null | undefined;
1840
- avatar?: string | {
1841
- url: string;
1842
- } | {
1843
- url: string;
1844
- formats: {
1845
- thumbnail: {
1846
- url: string;
1847
- } | null;
1848
- };
1849
- } | null | undefined;
1850
- } | null | undefined;
1851
- gotThread?: boolean | null | undefined;
1852
- threadFirstItemId?: number | null | undefined;
1853
- }[];
1854
- }, {
1855
- entity: {
1856
- uid: string;
1857
- id: number;
1858
- documentId: string;
1859
- createdAt: string;
1860
- updatedAt: string;
1861
- publishedAt: string | null;
1862
- locale?: string | null | undefined;
1863
- } & Record<string, unknown>;
1864
- selected: {
1865
- id: number;
1866
- createdAt: string;
1867
- updatedAt: string;
1868
- content: string;
1869
- blocked: boolean | null;
1870
- blockedThread: boolean | null;
1871
- blockReason: string | null;
1872
- isAdminComment: boolean | null;
1873
- removed: boolean | null;
1874
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1875
- related: string;
1876
- reports?: {
1877
- resolved: boolean;
1878
- id: number;
1879
- createdAt: string;
1880
- updatedAt: string | null;
1881
- content: string;
1882
- reason?: string | null | undefined;
1883
- }[] | null | undefined;
1884
- author?: {
1885
- email?: string | null | undefined;
1886
- id?: string | number | null | undefined;
1887
- name?: string | null | undefined;
1888
- avatar?: string | {
1889
- url: string;
1890
- } | {
1891
- url: string;
1892
- formats: {
1893
- thumbnail: {
1894
- url: string;
1895
- } | null;
1896
- };
1897
- } | null | undefined;
1898
- } | null | undefined;
1899
- gotThread?: boolean | null | undefined;
1900
- threadFirstItemId?: number | null | undefined;
1901
- threadOf?: {
1902
- id: number;
1903
- documentId: string;
1904
- createdAt: string;
1905
- updatedAt: string;
1906
- content: string;
1907
- blocked: boolean | null;
1908
- blockedThread: boolean | null;
1909
- blockReason: string | null;
1910
- isAdminComment: boolean | null;
1911
- removed: boolean | null;
1912
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1913
- related: string;
1914
- reports?: {
1915
- resolved: boolean;
1916
- id: number;
1917
- createdAt: string;
1918
- updatedAt: string | null;
1919
- content: string;
1920
- reason?: string | null | undefined;
1921
- }[] | null | undefined;
1922
- author?: {
1923
- email?: string | null | undefined;
1924
- id?: string | number | null | undefined;
1925
- name?: string | null | undefined;
1926
- avatar?: string | {
1927
- url: string;
1928
- } | {
1929
- url: string;
1930
- formats: {
1931
- thumbnail: {
1932
- url: string;
1933
- } | null;
1934
- };
1935
- } | null | undefined;
1936
- } | null | undefined;
1937
- gotThread?: boolean | null | undefined;
1938
- threadFirstItemId?: number | null | undefined;
1939
- threadOf?: {
1940
- id: number;
1941
- createdAt: string;
1942
- updatedAt: string;
1943
- content: string;
1944
- blocked: boolean | null;
1945
- blockedThread: boolean | null;
1946
- blockReason: string | null;
1947
- isAdminComment: boolean | null;
1948
- removed: boolean | null;
1949
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1950
- related: string;
1951
- documentId?: string | undefined;
1952
- reports?: {
1953
- resolved: boolean;
1954
- id: number;
1955
- createdAt: string;
1956
- updatedAt: string | null;
1957
- content: string;
1958
- reason?: string | null | undefined;
1959
- }[] | null | undefined;
1960
- author?: {
1961
- email?: string | null | undefined;
1962
- id?: string | number | null | undefined;
1963
- name?: string | null | undefined;
1964
- avatar?: string | {
1965
- url: string;
1966
- } | {
1967
- url: string;
1968
- formats: {
1969
- thumbnail: {
1970
- url: string;
1971
- } | null;
1972
- };
1973
- } | null | undefined;
1974
- } | null | undefined;
1975
- gotThread?: boolean | null | undefined;
1976
- threadFirstItemId?: number | null | undefined;
1977
- threadOf?: Comment | null | undefined;
1978
- } | null | undefined;
1979
- } | null | undefined;
1980
- } | null;
1981
- level: {
1982
- id: number;
1983
- documentId: string;
1984
- createdAt: string;
1985
- updatedAt: string;
1986
- content: string;
1987
- blocked: boolean | null;
1988
- blockedThread: boolean | null;
1989
- blockReason: string | null;
1990
- isAdminComment: boolean | null;
1991
- removed: boolean | null;
1992
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
1993
- reports?: {
1994
- resolved: boolean;
1995
- id: number;
1996
- createdAt: string;
1997
- updatedAt: string | null;
1998
- content: string;
1999
- reason?: string | null | undefined;
2000
- }[] | null | undefined;
2001
- author?: {
2002
- email?: string | null | undefined;
2003
- id?: string | number | null | undefined;
2004
- name?: string | null | undefined;
2005
- avatar?: string | {
2006
- url: string;
2007
- } | {
2008
- url: string;
2009
- formats: {
2010
- thumbnail: {
2011
- url: string;
2012
- } | null;
2013
- };
2014
- } | null | undefined;
2015
- } | null | undefined;
2016
- gotThread?: boolean | null | undefined;
2017
- threadFirstItemId?: number | null | undefined;
2018
- }[];
2019
- }>;
304
+ }, z.core.$strip>>;
305
+ }, z.core.$strip>;
2020
306
  export type CommentDetails = z.infer<typeof commentDetailsSchema>;
2021
307
  export declare const contentTypeSchema: z.ZodObject<{
2022
308
  data: z.ZodObject<{
@@ -2024,12 +310,8 @@ export declare const contentTypeSchema: z.ZodObject<{
2024
310
  uid: z.ZodString;
2025
311
  schema: z.ZodObject<{
2026
312
  attributes: z.ZodRecord<z.ZodString, z.ZodObject<{
2027
- type: z.ZodUnion<[z.ZodLiteral<"string">, z.ZodString]>;
2028
- }, "strip", z.ZodTypeAny, {
2029
- type: string;
2030
- }, {
2031
- type: string;
2032
- }>>;
313
+ type: z.ZodUnion<readonly [z.ZodLiteral<"string">, z.ZodString]>;
314
+ }, z.core.$strip>>;
2033
315
  collectionName: z.ZodString;
2034
316
  description: z.ZodString;
2035
317
  displayName: z.ZodString;
@@ -2038,113 +320,17 @@ export declare const contentTypeSchema: z.ZodObject<{
2038
320
  pluralName: z.ZodString;
2039
321
  singularName: z.ZodString;
2040
322
  visible: z.ZodBoolean;
2041
- }, "strip", z.ZodTypeAny, {
2042
- attributes: Record<string, {
2043
- type: string;
2044
- }>;
2045
- collectionName: string;
2046
- description: string;
2047
- displayName: string;
2048
- draftAndPublish: boolean;
2049
- kind: string;
2050
- pluralName: string;
2051
- singularName: string;
2052
- visible: boolean;
2053
- }, {
2054
- attributes: Record<string, {
2055
- type: string;
2056
- }>;
2057
- collectionName: string;
2058
- description: string;
2059
- displayName: string;
2060
- draftAndPublish: boolean;
2061
- kind: string;
2062
- pluralName: string;
2063
- singularName: string;
2064
- visible: boolean;
2065
- }>;
2066
- }, "strip", z.ZodTypeAny, {
2067
- uid: string;
2068
- apiID: string;
2069
- schema: {
2070
- attributes: Record<string, {
2071
- type: string;
2072
- }>;
2073
- collectionName: string;
2074
- description: string;
2075
- displayName: string;
2076
- draftAndPublish: boolean;
2077
- kind: string;
2078
- pluralName: string;
2079
- singularName: string;
2080
- visible: boolean;
2081
- };
2082
- }, {
2083
- uid: string;
2084
- apiID: string;
2085
- schema: {
2086
- attributes: Record<string, {
2087
- type: string;
2088
- }>;
2089
- collectionName: string;
2090
- description: string;
2091
- displayName: string;
2092
- draftAndPublish: boolean;
2093
- kind: string;
2094
- pluralName: string;
2095
- singularName: string;
2096
- visible: boolean;
2097
- };
2098
- }>;
2099
- }, "strip", z.ZodTypeAny, {
2100
- data: {
2101
- uid: string;
2102
- apiID: string;
2103
- schema: {
2104
- attributes: Record<string, {
2105
- type: string;
2106
- }>;
2107
- collectionName: string;
2108
- description: string;
2109
- displayName: string;
2110
- draftAndPublish: boolean;
2111
- kind: string;
2112
- pluralName: string;
2113
- singularName: string;
2114
- visible: boolean;
2115
- };
2116
- };
2117
- }, {
2118
- data: {
2119
- uid: string;
2120
- apiID: string;
2121
- schema: {
2122
- attributes: Record<string, {
2123
- type: string;
2124
- }>;
2125
- collectionName: string;
2126
- description: string;
2127
- displayName: string;
2128
- draftAndPublish: boolean;
2129
- kind: string;
2130
- pluralName: string;
2131
- singularName: string;
2132
- visible: boolean;
2133
- };
2134
- };
2135
- }>;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>;
325
+ }, z.core.$strip>;
2136
326
  export declare const contentTypesSchema: z.ZodObject<{
2137
327
  data: z.ZodArray<z.ZodObject<{
2138
328
  apiID: z.ZodString;
2139
329
  uid: z.ZodString;
2140
330
  schema: z.ZodObject<{
2141
331
  attributes: z.ZodRecord<z.ZodString, z.ZodObject<{
2142
- type: z.ZodUnion<[z.ZodLiteral<"string">, z.ZodString]>;
2143
- }, "strip", z.ZodTypeAny, {
2144
- type: string;
2145
- }, {
2146
- type: string;
2147
- }>>;
332
+ type: z.ZodUnion<readonly [z.ZodLiteral<"string">, z.ZodString]>;
333
+ }, z.core.$strip>>;
2148
334
  collectionName: z.ZodString;
2149
335
  description: z.ZodString;
2150
336
  displayName: z.ZodString;
@@ -2153,109 +339,17 @@ export declare const contentTypesSchema: z.ZodObject<{
2153
339
  pluralName: z.ZodString;
2154
340
  singularName: z.ZodString;
2155
341
  visible: z.ZodBoolean;
2156
- }, "strip", z.ZodTypeAny, {
2157
- attributes: Record<string, {
2158
- type: string;
2159
- }>;
2160
- collectionName: string;
2161
- description: string;
2162
- displayName: string;
2163
- draftAndPublish: boolean;
2164
- kind: string;
2165
- pluralName: string;
2166
- singularName: string;
2167
- visible: boolean;
2168
- }, {
2169
- attributes: Record<string, {
2170
- type: string;
2171
- }>;
2172
- collectionName: string;
2173
- description: string;
2174
- displayName: string;
2175
- draftAndPublish: boolean;
2176
- kind: string;
2177
- pluralName: string;
2178
- singularName: string;
2179
- visible: boolean;
2180
- }>;
2181
- }, "strip", z.ZodTypeAny, {
2182
- uid: string;
2183
- apiID: string;
2184
- schema: {
2185
- attributes: Record<string, {
2186
- type: string;
2187
- }>;
2188
- collectionName: string;
2189
- description: string;
2190
- displayName: string;
2191
- draftAndPublish: boolean;
2192
- kind: string;
2193
- pluralName: string;
2194
- singularName: string;
2195
- visible: boolean;
2196
- };
2197
- }, {
2198
- uid: string;
2199
- apiID: string;
2200
- schema: {
2201
- attributes: Record<string, {
2202
- type: string;
2203
- }>;
2204
- collectionName: string;
2205
- description: string;
2206
- displayName: string;
2207
- draftAndPublish: boolean;
2208
- kind: string;
2209
- pluralName: string;
2210
- singularName: string;
2211
- visible: boolean;
2212
- };
2213
- }>, "many">;
2214
- }, "strip", z.ZodTypeAny, {
2215
- data: {
2216
- uid: string;
2217
- apiID: string;
2218
- schema: {
2219
- attributes: Record<string, {
2220
- type: string;
2221
- }>;
2222
- collectionName: string;
2223
- description: string;
2224
- displayName: string;
2225
- draftAndPublish: boolean;
2226
- kind: string;
2227
- pluralName: string;
2228
- singularName: string;
2229
- visible: boolean;
2230
- };
2231
- }[];
2232
- }, {
2233
- data: {
2234
- uid: string;
2235
- apiID: string;
2236
- schema: {
2237
- attributes: Record<string, {
2238
- type: string;
2239
- }>;
2240
- collectionName: string;
2241
- description: string;
2242
- displayName: string;
2243
- draftAndPublish: boolean;
2244
- kind: string;
2245
- pluralName: string;
2246
- singularName: string;
2247
- visible: boolean;
2248
- };
2249
- }[];
2250
- }>;
342
+ }, z.core.$strip>;
343
+ }, z.core.$strip>>;
344
+ }, z.core.$strip>;
2251
345
  export type ContentType = z.infer<typeof contentTypeSchema>;
2252
346
  export declare const reportSchema: z.ZodObject<{
2253
347
  author: z.ZodUnknown;
2254
348
  content: z.ZodString;
2255
349
  id: z.ZodNumber;
2256
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>>;
350
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>>;
2257
351
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2258
- reports: z.ZodArray<z.ZodUnknown, "many">;
352
+ reports: z.ZodArray<z.ZodUnknown>;
2259
353
  resolved: z.ZodOptional<z.ZodBoolean>;
2260
354
  updatedAt: z.ZodNullable<z.ZodString>;
2261
355
  createdAt: z.ZodString;
@@ -2267,7 +361,7 @@ export declare const reportSchema: z.ZodObject<{
2267
361
  blockReason: z.ZodNullable<z.ZodString>;
2268
362
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
2269
363
  removed: z.ZodNullable<z.ZodBoolean>;
2270
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
364
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
2271
365
  createdAt: z.ZodString;
2272
366
  updatedAt: z.ZodString;
2273
367
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -2277,264 +371,34 @@ export declare const reportSchema: z.ZodObject<{
2277
371
  resolved: z.ZodBoolean;
2278
372
  createdAt: z.ZodString;
2279
373
  updatedAt: z.ZodNullable<z.ZodString>;
2280
- }, "strip", z.ZodTypeAny, {
2281
- resolved: boolean;
2282
- id: number;
2283
- createdAt: string;
2284
- updatedAt: string | null;
2285
- content: string;
2286
- reason?: string | null | undefined;
2287
- }, {
2288
- resolved: boolean;
2289
- id: number;
2290
- createdAt: string;
2291
- updatedAt: string | null;
2292
- content: string;
2293
- reason?: string | null | undefined;
2294
- }>, "many">>>;
374
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
375
+ USER: "USER";
376
+ AI: "AI";
377
+ }>>>;
378
+ }, z.core.$strip>>>>;
2295
379
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2296
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
380
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2297
381
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2298
382
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2299
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
383
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
2300
384
  url: z.ZodString;
2301
- }, "strip", z.ZodTypeAny, {
2302
- url: string;
2303
- }, {
2304
- url: string;
2305
- }>, z.ZodObject<{
385
+ }, z.core.$strip>, z.ZodObject<{
2306
386
  url: z.ZodString;
2307
387
  formats: z.ZodObject<{
2308
388
  thumbnail: z.ZodNullable<z.ZodObject<{
2309
389
  url: z.ZodString;
2310
- }, "strip", z.ZodTypeAny, {
2311
- url: string;
2312
- }, {
2313
- url: string;
2314
- }>>;
2315
- }, "strip", z.ZodTypeAny, {
2316
- thumbnail: {
2317
- url: string;
2318
- } | null;
2319
- }, {
2320
- thumbnail: {
2321
- url: string;
2322
- } | null;
2323
- }>;
2324
- }, "strip", z.ZodTypeAny, {
2325
- url: string;
2326
- formats: {
2327
- thumbnail: {
2328
- url: string;
2329
- } | null;
2330
- };
2331
- }, {
2332
- url: string;
2333
- formats: {
2334
- thumbnail: {
2335
- url: string;
2336
- } | null;
2337
- };
2338
- }>, z.ZodString]>>>;
2339
- }, "strip", z.ZodTypeAny, {
2340
- email?: string | null | undefined;
2341
- id?: string | number | null | undefined;
2342
- name?: string | null | undefined;
2343
- avatar?: string | {
2344
- url: string;
2345
- } | {
2346
- url: string;
2347
- formats: {
2348
- thumbnail: {
2349
- url: string;
2350
- } | null;
2351
- };
2352
- } | null | undefined;
2353
- }, {
2354
- email?: string | null | undefined;
2355
- id?: string | number | null | undefined;
2356
- name?: string | null | undefined;
2357
- avatar?: string | {
2358
- url: string;
2359
- } | {
2360
- url: string;
2361
- formats: {
2362
- thumbnail: {
2363
- url: string;
2364
- } | null;
2365
- };
2366
- } | null | undefined;
2367
- }>>>;
390
+ }, z.core.$strip>>;
391
+ }, z.core.$strip>;
392
+ }, z.core.$strip>, z.ZodString]>>>;
393
+ }, z.core.$strip>>>;
2368
394
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2369
395
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2370
- }, "strip", z.ZodTypeAny, {
2371
- id: number;
2372
- createdAt: string;
2373
- updatedAt: string;
2374
- content: string;
2375
- blocked: boolean | null;
2376
- blockedThread: boolean | null;
2377
- blockReason: string | null;
2378
- isAdminComment: boolean | null;
2379
- removed: boolean | null;
2380
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2381
- reports?: {
2382
- resolved: boolean;
2383
- id: number;
2384
- createdAt: string;
2385
- updatedAt: string | null;
2386
- content: string;
2387
- reason?: string | null | undefined;
2388
- }[] | null | undefined;
2389
- author?: {
2390
- email?: string | null | undefined;
2391
- id?: string | number | null | undefined;
2392
- name?: string | null | undefined;
2393
- avatar?: string | {
2394
- url: string;
2395
- } | {
2396
- url: string;
2397
- formats: {
2398
- thumbnail: {
2399
- url: string;
2400
- } | null;
2401
- };
2402
- } | null | undefined;
2403
- } | null | undefined;
2404
- gotThread?: boolean | null | undefined;
2405
- threadFirstItemId?: number | null | undefined;
2406
- }, {
2407
- id: number;
2408
- createdAt: string;
2409
- updatedAt: string;
2410
- content: string;
2411
- blocked: boolean | null;
2412
- blockedThread: boolean | null;
2413
- blockReason: string | null;
2414
- isAdminComment: boolean | null;
2415
- removed: boolean | null;
2416
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2417
- reports?: {
2418
- resolved: boolean;
2419
- id: number;
2420
- createdAt: string;
2421
- updatedAt: string | null;
2422
- content: string;
2423
- reason?: string | null | undefined;
2424
- }[] | null | undefined;
2425
- author?: {
2426
- email?: string | null | undefined;
2427
- id?: string | number | null | undefined;
2428
- name?: string | null | undefined;
2429
- avatar?: string | {
2430
- url: string;
2431
- } | {
2432
- url: string;
2433
- formats: {
2434
- thumbnail: {
2435
- url: string;
2436
- } | null;
2437
- };
2438
- } | null | undefined;
2439
- } | null | undefined;
2440
- gotThread?: boolean | null | undefined;
2441
- threadFirstItemId?: number | null | undefined;
2442
- }>;
2443
- }, "strip", z.ZodTypeAny, {
2444
- id: number;
2445
- createdAt: string;
2446
- updatedAt: string | null;
2447
- content: string;
2448
- reports: unknown[];
2449
- related: {
2450
- id: number;
2451
- createdAt: string;
2452
- updatedAt: string;
2453
- content: string;
2454
- blocked: boolean | null;
2455
- blockedThread: boolean | null;
2456
- blockReason: string | null;
2457
- isAdminComment: boolean | null;
2458
- removed: boolean | null;
2459
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2460
- reports?: {
2461
- resolved: boolean;
2462
- id: number;
2463
- createdAt: string;
2464
- updatedAt: string | null;
2465
- content: string;
2466
- reason?: string | null | undefined;
2467
- }[] | null | undefined;
2468
- author?: {
2469
- email?: string | null | undefined;
2470
- id?: string | number | null | undefined;
2471
- name?: string | null | undefined;
2472
- avatar?: string | {
2473
- url: string;
2474
- } | {
2475
- url: string;
2476
- formats: {
2477
- thumbnail: {
2478
- url: string;
2479
- } | null;
2480
- };
2481
- } | null | undefined;
2482
- } | null | undefined;
2483
- gotThread?: boolean | null | undefined;
2484
- threadFirstItemId?: number | null | undefined;
2485
- };
2486
- resolved?: boolean | undefined;
2487
- reason?: string | null | undefined;
2488
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2489
- author?: unknown;
2490
- }, {
2491
- id: number;
2492
- createdAt: string;
2493
- updatedAt: string | null;
2494
- content: string;
2495
- reports: unknown[];
2496
- related: {
2497
- id: number;
2498
- createdAt: string;
2499
- updatedAt: string;
2500
- content: string;
2501
- blocked: boolean | null;
2502
- blockedThread: boolean | null;
2503
- blockReason: string | null;
2504
- isAdminComment: boolean | null;
2505
- removed: boolean | null;
2506
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2507
- reports?: {
2508
- resolved: boolean;
2509
- id: number;
2510
- createdAt: string;
2511
- updatedAt: string | null;
2512
- content: string;
2513
- reason?: string | null | undefined;
2514
- }[] | null | undefined;
2515
- author?: {
2516
- email?: string | null | undefined;
2517
- id?: string | number | null | undefined;
2518
- name?: string | null | undefined;
2519
- avatar?: string | {
2520
- url: string;
2521
- } | {
2522
- url: string;
2523
- formats: {
2524
- thumbnail: {
2525
- url: string;
2526
- } | null;
2527
- };
2528
- } | null | undefined;
2529
- } | null | undefined;
2530
- gotThread?: boolean | null | undefined;
2531
- threadFirstItemId?: number | null | undefined;
2532
- };
2533
- resolved?: boolean | undefined;
2534
- reason?: string | null | undefined;
2535
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2536
- author?: unknown;
2537
- }>;
396
+ }, z.core.$strip>;
397
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
398
+ USER: "USER";
399
+ AI: "AI";
400
+ }>>>;
401
+ }, z.core.$strip>;
2538
402
  export type Report = z.infer<typeof reportSchema>;
2539
403
  export declare const reportsSchema: z.ZodObject<{
2540
404
  pagination: z.ZodObject<{
@@ -2542,24 +406,14 @@ export declare const reportsSchema: z.ZodObject<{
2542
406
  pageSize: z.ZodNumber;
2543
407
  pageCount: z.ZodNumber;
2544
408
  total: z.ZodNumber;
2545
- }, "strip", z.ZodTypeAny, {
2546
- page: number;
2547
- pageSize: number;
2548
- pageCount: number;
2549
- total: number;
2550
- }, {
2551
- page: number;
2552
- pageSize: number;
2553
- pageCount: number;
2554
- total: number;
2555
- }>;
409
+ }, z.core.$strip>;
2556
410
  result: z.ZodArray<z.ZodObject<{
2557
411
  author: z.ZodUnknown;
2558
412
  content: z.ZodString;
2559
413
  id: z.ZodNumber;
2560
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>>;
414
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>>;
2561
415
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2562
- reports: z.ZodArray<z.ZodUnknown, "many">;
416
+ reports: z.ZodArray<z.ZodUnknown>;
2563
417
  resolved: z.ZodOptional<z.ZodBoolean>;
2564
418
  updatedAt: z.ZodNullable<z.ZodString>;
2565
419
  createdAt: z.ZodString;
@@ -2571,7 +425,7 @@ export declare const reportsSchema: z.ZodObject<{
2571
425
  blockReason: z.ZodNullable<z.ZodString>;
2572
426
  isAdminComment: z.ZodNullable<z.ZodBoolean>;
2573
427
  removed: z.ZodNullable<z.ZodBoolean>;
2574
- approvalStatus: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
428
+ approvalStatus: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"PENDING">, z.ZodLiteral<"APPROVED">, z.ZodLiteral<"REJECTED">, z.ZodLiteral<"BLOCKED">, z.ZodLiteral<"OPEN">, z.ZodLiteral<"REMOVED">, z.ZodLiteral<"TO_REVIEW">, z.ZodLiteral<"UNKNOWN">]>>;
2575
429
  createdAt: z.ZodString;
2576
430
  updatedAt: z.ZodString;
2577
431
  reports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -2581,375 +435,35 @@ export declare const reportsSchema: z.ZodObject<{
2581
435
  resolved: z.ZodBoolean;
2582
436
  createdAt: z.ZodString;
2583
437
  updatedAt: z.ZodNullable<z.ZodString>;
2584
- }, "strip", z.ZodTypeAny, {
2585
- resolved: boolean;
2586
- id: number;
2587
- createdAt: string;
2588
- updatedAt: string | null;
2589
- content: string;
2590
- reason?: string | null | undefined;
2591
- }, {
2592
- resolved: boolean;
2593
- id: number;
2594
- createdAt: string;
2595
- updatedAt: string | null;
2596
- content: string;
2597
- reason?: string | null | undefined;
2598
- }>, "many">>>;
438
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
439
+ USER: "USER";
440
+ AI: "AI";
441
+ }>>>;
442
+ }, z.core.$strip>>>>;
2599
443
  author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2600
- id: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
444
+ id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
2601
445
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2602
446
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2603
- avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
447
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
2604
448
  url: z.ZodString;
2605
- }, "strip", z.ZodTypeAny, {
2606
- url: string;
2607
- }, {
2608
- url: string;
2609
- }>, z.ZodObject<{
449
+ }, z.core.$strip>, z.ZodObject<{
2610
450
  url: z.ZodString;
2611
451
  formats: z.ZodObject<{
2612
452
  thumbnail: z.ZodNullable<z.ZodObject<{
2613
453
  url: z.ZodString;
2614
- }, "strip", z.ZodTypeAny, {
2615
- url: string;
2616
- }, {
2617
- url: string;
2618
- }>>;
2619
- }, "strip", z.ZodTypeAny, {
2620
- thumbnail: {
2621
- url: string;
2622
- } | null;
2623
- }, {
2624
- thumbnail: {
2625
- url: string;
2626
- } | null;
2627
- }>;
2628
- }, "strip", z.ZodTypeAny, {
2629
- url: string;
2630
- formats: {
2631
- thumbnail: {
2632
- url: string;
2633
- } | null;
2634
- };
2635
- }, {
2636
- url: string;
2637
- formats: {
2638
- thumbnail: {
2639
- url: string;
2640
- } | null;
2641
- };
2642
- }>, z.ZodString]>>>;
2643
- }, "strip", z.ZodTypeAny, {
2644
- email?: string | null | undefined;
2645
- id?: string | number | null | undefined;
2646
- name?: string | null | undefined;
2647
- avatar?: string | {
2648
- url: string;
2649
- } | {
2650
- url: string;
2651
- formats: {
2652
- thumbnail: {
2653
- url: string;
2654
- } | null;
2655
- };
2656
- } | null | undefined;
2657
- }, {
2658
- email?: string | null | undefined;
2659
- id?: string | number | null | undefined;
2660
- name?: string | null | undefined;
2661
- avatar?: string | {
2662
- url: string;
2663
- } | {
2664
- url: string;
2665
- formats: {
2666
- thumbnail: {
2667
- url: string;
2668
- } | null;
2669
- };
2670
- } | null | undefined;
2671
- }>>>;
454
+ }, z.core.$strip>>;
455
+ }, z.core.$strip>;
456
+ }, z.core.$strip>, z.ZodString]>>>;
457
+ }, z.core.$strip>>>;
2672
458
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2673
459
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2674
- }, "strip", z.ZodTypeAny, {
2675
- id: number;
2676
- createdAt: string;
2677
- updatedAt: string;
2678
- content: string;
2679
- blocked: boolean | null;
2680
- blockedThread: boolean | null;
2681
- blockReason: string | null;
2682
- isAdminComment: boolean | null;
2683
- removed: boolean | null;
2684
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2685
- reports?: {
2686
- resolved: boolean;
2687
- id: number;
2688
- createdAt: string;
2689
- updatedAt: string | null;
2690
- content: string;
2691
- reason?: string | null | undefined;
2692
- }[] | null | undefined;
2693
- author?: {
2694
- email?: string | null | undefined;
2695
- id?: string | number | null | undefined;
2696
- name?: string | null | undefined;
2697
- avatar?: string | {
2698
- url: string;
2699
- } | {
2700
- url: string;
2701
- formats: {
2702
- thumbnail: {
2703
- url: string;
2704
- } | null;
2705
- };
2706
- } | null | undefined;
2707
- } | null | undefined;
2708
- gotThread?: boolean | null | undefined;
2709
- threadFirstItemId?: number | null | undefined;
2710
- }, {
2711
- id: number;
2712
- createdAt: string;
2713
- updatedAt: string;
2714
- content: string;
2715
- blocked: boolean | null;
2716
- blockedThread: boolean | null;
2717
- blockReason: string | null;
2718
- isAdminComment: boolean | null;
2719
- removed: boolean | null;
2720
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2721
- reports?: {
2722
- resolved: boolean;
2723
- id: number;
2724
- createdAt: string;
2725
- updatedAt: string | null;
2726
- content: string;
2727
- reason?: string | null | undefined;
2728
- }[] | null | undefined;
2729
- author?: {
2730
- email?: string | null | undefined;
2731
- id?: string | number | null | undefined;
2732
- name?: string | null | undefined;
2733
- avatar?: string | {
2734
- url: string;
2735
- } | {
2736
- url: string;
2737
- formats: {
2738
- thumbnail: {
2739
- url: string;
2740
- } | null;
2741
- };
2742
- } | null | undefined;
2743
- } | null | undefined;
2744
- gotThread?: boolean | null | undefined;
2745
- threadFirstItemId?: number | null | undefined;
2746
- }>;
2747
- }, "strip", z.ZodTypeAny, {
2748
- id: number;
2749
- createdAt: string;
2750
- updatedAt: string | null;
2751
- content: string;
2752
- reports: unknown[];
2753
- related: {
2754
- id: number;
2755
- createdAt: string;
2756
- updatedAt: string;
2757
- content: string;
2758
- blocked: boolean | null;
2759
- blockedThread: boolean | null;
2760
- blockReason: string | null;
2761
- isAdminComment: boolean | null;
2762
- removed: boolean | null;
2763
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2764
- reports?: {
2765
- resolved: boolean;
2766
- id: number;
2767
- createdAt: string;
2768
- updatedAt: string | null;
2769
- content: string;
2770
- reason?: string | null | undefined;
2771
- }[] | null | undefined;
2772
- author?: {
2773
- email?: string | null | undefined;
2774
- id?: string | number | null | undefined;
2775
- name?: string | null | undefined;
2776
- avatar?: string | {
2777
- url: string;
2778
- } | {
2779
- url: string;
2780
- formats: {
2781
- thumbnail: {
2782
- url: string;
2783
- } | null;
2784
- };
2785
- } | null | undefined;
2786
- } | null | undefined;
2787
- gotThread?: boolean | null | undefined;
2788
- threadFirstItemId?: number | null | undefined;
2789
- };
2790
- resolved?: boolean | undefined;
2791
- reason?: string | null | undefined;
2792
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2793
- author?: unknown;
2794
- }, {
2795
- id: number;
2796
- createdAt: string;
2797
- updatedAt: string | null;
2798
- content: string;
2799
- reports: unknown[];
2800
- related: {
2801
- id: number;
2802
- createdAt: string;
2803
- updatedAt: string;
2804
- content: string;
2805
- blocked: boolean | null;
2806
- blockedThread: boolean | null;
2807
- blockReason: string | null;
2808
- isAdminComment: boolean | null;
2809
- removed: boolean | null;
2810
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2811
- reports?: {
2812
- resolved: boolean;
2813
- id: number;
2814
- createdAt: string;
2815
- updatedAt: string | null;
2816
- content: string;
2817
- reason?: string | null | undefined;
2818
- }[] | null | undefined;
2819
- author?: {
2820
- email?: string | null | undefined;
2821
- id?: string | number | null | undefined;
2822
- name?: string | null | undefined;
2823
- avatar?: string | {
2824
- url: string;
2825
- } | {
2826
- url: string;
2827
- formats: {
2828
- thumbnail: {
2829
- url: string;
2830
- } | null;
2831
- };
2832
- } | null | undefined;
2833
- } | null | undefined;
2834
- gotThread?: boolean | null | undefined;
2835
- threadFirstItemId?: number | null | undefined;
2836
- };
2837
- resolved?: boolean | undefined;
2838
- reason?: string | null | undefined;
2839
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2840
- author?: unknown;
2841
- }>, "many">;
2842
- }, "strip", z.ZodTypeAny, {
2843
- pagination: {
2844
- page: number;
2845
- pageSize: number;
2846
- pageCount: number;
2847
- total: number;
2848
- };
2849
- result: {
2850
- id: number;
2851
- createdAt: string;
2852
- updatedAt: string | null;
2853
- content: string;
2854
- reports: unknown[];
2855
- related: {
2856
- id: number;
2857
- createdAt: string;
2858
- updatedAt: string;
2859
- content: string;
2860
- blocked: boolean | null;
2861
- blockedThread: boolean | null;
2862
- blockReason: string | null;
2863
- isAdminComment: boolean | null;
2864
- removed: boolean | null;
2865
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2866
- reports?: {
2867
- resolved: boolean;
2868
- id: number;
2869
- createdAt: string;
2870
- updatedAt: string | null;
2871
- content: string;
2872
- reason?: string | null | undefined;
2873
- }[] | null | undefined;
2874
- author?: {
2875
- email?: string | null | undefined;
2876
- id?: string | number | null | undefined;
2877
- name?: string | null | undefined;
2878
- avatar?: string | {
2879
- url: string;
2880
- } | {
2881
- url: string;
2882
- formats: {
2883
- thumbnail: {
2884
- url: string;
2885
- } | null;
2886
- };
2887
- } | null | undefined;
2888
- } | null | undefined;
2889
- gotThread?: boolean | null | undefined;
2890
- threadFirstItemId?: number | null | undefined;
2891
- };
2892
- resolved?: boolean | undefined;
2893
- reason?: string | null | undefined;
2894
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2895
- author?: unknown;
2896
- }[];
2897
- }, {
2898
- pagination: {
2899
- page: number;
2900
- pageSize: number;
2901
- pageCount: number;
2902
- total: number;
2903
- };
2904
- result: {
2905
- id: number;
2906
- createdAt: string;
2907
- updatedAt: string | null;
2908
- content: string;
2909
- reports: unknown[];
2910
- related: {
2911
- id: number;
2912
- createdAt: string;
2913
- updatedAt: string;
2914
- content: string;
2915
- blocked: boolean | null;
2916
- blockedThread: boolean | null;
2917
- blockReason: string | null;
2918
- isAdminComment: boolean | null;
2919
- removed: boolean | null;
2920
- approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
2921
- reports?: {
2922
- resolved: boolean;
2923
- id: number;
2924
- createdAt: string;
2925
- updatedAt: string | null;
2926
- content: string;
2927
- reason?: string | null | undefined;
2928
- }[] | null | undefined;
2929
- author?: {
2930
- email?: string | null | undefined;
2931
- id?: string | number | null | undefined;
2932
- name?: string | null | undefined;
2933
- avatar?: string | {
2934
- url: string;
2935
- } | {
2936
- url: string;
2937
- formats: {
2938
- thumbnail: {
2939
- url: string;
2940
- } | null;
2941
- };
2942
- } | null | undefined;
2943
- } | null | undefined;
2944
- gotThread?: boolean | null | undefined;
2945
- threadFirstItemId?: number | null | undefined;
2946
- };
2947
- resolved?: boolean | undefined;
2948
- reason?: string | null | undefined;
2949
- approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
2950
- author?: unknown;
2951
- }[];
2952
- }>;
460
+ }, z.core.$strip>;
461
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
462
+ USER: "USER";
463
+ AI: "AI";
464
+ }>>>;
465
+ }, z.core.$strip>>;
466
+ }, z.core.$strip>;
2953
467
  export declare const rolesListSchema: z.ZodObject<{
2954
468
  data: z.ZodArray<z.ZodObject<{
2955
469
  id: z.ZodNumber;
@@ -2962,56 +476,8 @@ export declare const rolesListSchema: z.ZodObject<{
2962
476
  publishedAt: z.ZodNullable<z.ZodString>;
2963
477
  locale: z.ZodNullable<z.ZodString>;
2964
478
  usersCount: z.ZodNumber;
2965
- }, "strip", z.ZodTypeAny, {
2966
- code: string;
2967
- id: number;
2968
- documentId: string;
2969
- createdAt: string | null;
2970
- updatedAt: string | null;
2971
- publishedAt: string | null;
2972
- locale: string | null;
2973
- name: string;
2974
- description: string;
2975
- usersCount: number;
2976
- }, {
2977
- code: string;
2978
- id: number;
2979
- documentId: string;
2980
- createdAt: string | null;
2981
- updatedAt: string | null;
2982
- publishedAt: string | null;
2983
- locale: string | null;
2984
- name: string;
2985
- description: string;
2986
- usersCount: number;
2987
- }>, "many">;
2988
- }, "strip", z.ZodTypeAny, {
2989
- data: {
2990
- code: string;
2991
- id: number;
2992
- documentId: string;
2993
- createdAt: string | null;
2994
- updatedAt: string | null;
2995
- publishedAt: string | null;
2996
- locale: string | null;
2997
- name: string;
2998
- description: string;
2999
- usersCount: number;
3000
- }[];
3001
- }, {
3002
- data: {
3003
- code: string;
3004
- id: number;
3005
- documentId: string;
3006
- createdAt: string | null;
3007
- updatedAt: string | null;
3008
- publishedAt: string | null;
3009
- locale: string | null;
3010
- name: string;
3011
- description: string;
3012
- usersCount: number;
3013
- }[];
3014
- }>;
479
+ }, z.core.$strip>>;
480
+ }, z.core.$strip>;
3015
481
  export declare const userSchema: z.ZodObject<{
3016
482
  data: z.ZodObject<{
3017
483
  id: z.ZodNumber;
@@ -3032,102 +498,8 @@ export declare const userSchema: z.ZodObject<{
3032
498
  name: z.ZodString;
3033
499
  description: z.ZodString;
3034
500
  code: z.ZodString;
3035
- }, "strip", z.ZodTypeAny, {
3036
- code: string;
3037
- id: number;
3038
- name: string;
3039
- description: string;
3040
- }, {
3041
- code: string;
3042
- id: number;
3043
- name: string;
3044
- description: string;
3045
- }>, "many">;
3046
- }, "strip", z.ZodTypeAny, {
3047
- email: string;
3048
- id: number;
3049
- documentId: string;
3050
- createdAt: string | null;
3051
- updatedAt: string | null;
3052
- publishedAt: string | null;
3053
- locale: null;
3054
- blocked: boolean | null;
3055
- firstname: string;
3056
- lastname: string | null;
3057
- username: string | null;
3058
- isActive: boolean;
3059
- preferedLanguage: string | null;
3060
- roles: {
3061
- code: string;
3062
- id: number;
3063
- name: string;
3064
- description: string;
3065
- }[];
3066
- }, {
3067
- email: string;
3068
- id: number;
3069
- documentId: string;
3070
- createdAt: string | null;
3071
- updatedAt: string | null;
3072
- publishedAt: string | null;
3073
- locale: null;
3074
- blocked: boolean | null;
3075
- firstname: string;
3076
- lastname: string | null;
3077
- username: string | null;
3078
- isActive: boolean;
3079
- preferedLanguage: string | null;
3080
- roles: {
3081
- code: string;
3082
- id: number;
3083
- name: string;
3084
- description: string;
3085
- }[];
3086
- }>;
3087
- }, "strip", z.ZodTypeAny, {
3088
- data: {
3089
- email: string;
3090
- id: number;
3091
- documentId: string;
3092
- createdAt: string | null;
3093
- updatedAt: string | null;
3094
- publishedAt: string | null;
3095
- locale: null;
3096
- blocked: boolean | null;
3097
- firstname: string;
3098
- lastname: string | null;
3099
- username: string | null;
3100
- isActive: boolean;
3101
- preferedLanguage: string | null;
3102
- roles: {
3103
- code: string;
3104
- id: number;
3105
- name: string;
3106
- description: string;
3107
- }[];
3108
- };
3109
- }, {
3110
- data: {
3111
- email: string;
3112
- id: number;
3113
- documentId: string;
3114
- createdAt: string | null;
3115
- updatedAt: string | null;
3116
- publishedAt: string | null;
3117
- locale: null;
3118
- blocked: boolean | null;
3119
- firstname: string;
3120
- lastname: string | null;
3121
- username: string | null;
3122
- isActive: boolean;
3123
- preferedLanguage: string | null;
3124
- roles: {
3125
- code: string;
3126
- id: number;
3127
- name: string;
3128
- description: string;
3129
- }[];
3130
- };
3131
- }>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>;
503
+ }, z.core.$strip>;
3132
504
  export type User = z.infer<typeof userSchema>['data'];
3133
505
  export {};