@bernierllc/content-management-suite 0.4.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +9 -1291
- package/dist/index.d.ts +9 -1291
- package/dist/index.js +1144 -831
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1134 -818
- package/dist/index.mjs.map +1 -1
- package/dist/prisma.d.mts +26 -0
- package/dist/prisma.d.ts +26 -0
- package/dist/prisma.js +35 -0
- package/dist/prisma.js.map +1 -0
- package/dist/prisma.mjs +10 -0
- package/dist/prisma.mjs.map +1 -0
- package/dist/types-DQpwJ5e3.d.ts +1234 -0
- package/dist/ui.d.mts +1 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +37 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +14 -0
- package/dist/ui.mjs.map +1 -0
- package/dist/utils.d.mts +9 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +117 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +88 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +40 -22
- package/dist/server.d.mts +0 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.js +0 -1102
- package/dist/server.js.map +0 -1
- package/dist/server.mjs +0 -1089
- package/dist/server.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,1294 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export { ImageContentType } from '@bernierllc/content-type-image';
|
|
5
|
-
export { AudioContentTypeManager } from '@bernierllc/content-type-audio';
|
|
6
|
-
export { VideoContentType } from '@bernierllc/content-type-video';
|
|
7
|
-
export { ContentTypeRegistry } from '@bernierllc/content-type-registry';
|
|
8
|
-
export { EditorialWorkflowEngine, WorkflowBuilder, WorkflowFactory, WorkflowTemplates } from '@bernierllc/content-editorial-workflow';
|
|
9
|
-
export { AutosaveManager } from '@bernierllc/content-autosave-manager';
|
|
10
|
-
export { ContentSoftDelete } from '@bernierllc/content-soft-delete';
|
|
11
|
-
|
|
12
|
-
declare const ContentManagementConfigSchema: z.ZodObject<{
|
|
13
|
-
server: z.ZodDefault<z.ZodObject<{
|
|
14
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
host: z.ZodDefault<z.ZodString>;
|
|
16
|
-
cors: z.ZodDefault<z.ZodObject<{
|
|
17
|
-
origin: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
18
|
-
credentials: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
origin: string | string[];
|
|
21
|
-
credentials: boolean;
|
|
22
|
-
}, {
|
|
23
|
-
origin?: string | string[] | undefined;
|
|
24
|
-
credentials?: boolean | undefined;
|
|
25
|
-
}>>;
|
|
26
|
-
security: z.ZodDefault<z.ZodObject<{
|
|
27
|
-
helmet: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
rateLimit: z.ZodDefault<z.ZodObject<{
|
|
29
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
31
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
windowMs: number;
|
|
35
|
-
max: number;
|
|
36
|
-
}, {
|
|
37
|
-
enabled?: boolean | undefined;
|
|
38
|
-
windowMs?: number | undefined;
|
|
39
|
-
max?: number | undefined;
|
|
40
|
-
}>>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
helmet: boolean;
|
|
43
|
-
rateLimit: {
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
windowMs: number;
|
|
46
|
-
max: number;
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
49
|
-
helmet?: boolean | undefined;
|
|
50
|
-
rateLimit?: {
|
|
51
|
-
enabled?: boolean | undefined;
|
|
52
|
-
windowMs?: number | undefined;
|
|
53
|
-
max?: number | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
}>>;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
port: number;
|
|
58
|
-
host: string;
|
|
59
|
-
cors: {
|
|
60
|
-
origin: string | string[];
|
|
61
|
-
credentials: boolean;
|
|
62
|
-
};
|
|
63
|
-
security: {
|
|
64
|
-
helmet: boolean;
|
|
65
|
-
rateLimit: {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
windowMs: number;
|
|
68
|
-
max: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}, {
|
|
72
|
-
port?: number | undefined;
|
|
73
|
-
host?: string | undefined;
|
|
74
|
-
cors?: {
|
|
75
|
-
origin?: string | string[] | undefined;
|
|
76
|
-
credentials?: boolean | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
security?: {
|
|
79
|
-
helmet?: boolean | undefined;
|
|
80
|
-
rateLimit?: {
|
|
81
|
-
enabled?: boolean | undefined;
|
|
82
|
-
windowMs?: number | undefined;
|
|
83
|
-
max?: number | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
}>>;
|
|
87
|
-
database: z.ZodDefault<z.ZodObject<{
|
|
88
|
-
type: z.ZodDefault<z.ZodEnum<["sqlite", "postgresql", "mysql", "mongodb"]>>;
|
|
89
|
-
url: z.ZodOptional<z.ZodString>;
|
|
90
|
-
host: z.ZodDefault<z.ZodString>;
|
|
91
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
name: z.ZodDefault<z.ZodString>;
|
|
93
|
-
username: z.ZodOptional<z.ZodString>;
|
|
94
|
-
password: z.ZodOptional<z.ZodString>;
|
|
95
|
-
ssl: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
-
pool: z.ZodDefault<z.ZodObject<{
|
|
97
|
-
min: z.ZodDefault<z.ZodNumber>;
|
|
98
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
max: number;
|
|
101
|
-
min: number;
|
|
102
|
-
}, {
|
|
103
|
-
max?: number | undefined;
|
|
104
|
-
min?: number | undefined;
|
|
105
|
-
}>>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
host: string;
|
|
108
|
-
type: "sqlite" | "postgresql" | "mysql" | "mongodb";
|
|
109
|
-
name: string;
|
|
110
|
-
ssl: boolean;
|
|
111
|
-
pool: {
|
|
112
|
-
max: number;
|
|
113
|
-
min: number;
|
|
114
|
-
};
|
|
115
|
-
port?: number | undefined;
|
|
116
|
-
url?: string | undefined;
|
|
117
|
-
username?: string | undefined;
|
|
118
|
-
password?: string | undefined;
|
|
119
|
-
}, {
|
|
120
|
-
port?: number | undefined;
|
|
121
|
-
host?: string | undefined;
|
|
122
|
-
type?: "sqlite" | "postgresql" | "mysql" | "mongodb" | undefined;
|
|
123
|
-
url?: string | undefined;
|
|
124
|
-
name?: string | undefined;
|
|
125
|
-
username?: string | undefined;
|
|
126
|
-
password?: string | undefined;
|
|
127
|
-
ssl?: boolean | undefined;
|
|
128
|
-
pool?: {
|
|
129
|
-
max?: number | undefined;
|
|
130
|
-
min?: number | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
}>>;
|
|
133
|
-
content: z.ZodDefault<z.ZodObject<{
|
|
134
|
-
defaultWorkflow: z.ZodDefault<z.ZodObject<{
|
|
135
|
-
id: z.ZodDefault<z.ZodString>;
|
|
136
|
-
name: z.ZodDefault<z.ZodString>;
|
|
137
|
-
description: z.ZodDefault<z.ZodString>;
|
|
138
|
-
stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
139
|
-
id: z.ZodString;
|
|
140
|
-
name: z.ZodString;
|
|
141
|
-
order: z.ZodNumber;
|
|
142
|
-
isPublishStage: z.ZodDefault<z.ZodBoolean>;
|
|
143
|
-
allowsScheduling: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
-
description: z.ZodOptional<z.ZodString>;
|
|
145
|
-
permissions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
name: string;
|
|
148
|
-
id: string;
|
|
149
|
-
order: number;
|
|
150
|
-
isPublishStage: boolean;
|
|
151
|
-
allowsScheduling: boolean;
|
|
152
|
-
permissions: string[];
|
|
153
|
-
description?: string | undefined;
|
|
154
|
-
}, {
|
|
155
|
-
name: string;
|
|
156
|
-
id: string;
|
|
157
|
-
order: number;
|
|
158
|
-
description?: string | undefined;
|
|
159
|
-
isPublishStage?: boolean | undefined;
|
|
160
|
-
allowsScheduling?: boolean | undefined;
|
|
161
|
-
permissions?: string[] | undefined;
|
|
162
|
-
}>, "many">>;
|
|
163
|
-
transitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
164
|
-
id: z.ZodString;
|
|
165
|
-
from: z.ZodString;
|
|
166
|
-
to: z.ZodString;
|
|
167
|
-
description: z.ZodOptional<z.ZodString>;
|
|
168
|
-
permissions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
id: string;
|
|
171
|
-
permissions: string[];
|
|
172
|
-
from: string;
|
|
173
|
-
to: string;
|
|
174
|
-
description?: string | undefined;
|
|
175
|
-
}, {
|
|
176
|
-
id: string;
|
|
177
|
-
from: string;
|
|
178
|
-
to: string;
|
|
179
|
-
description?: string | undefined;
|
|
180
|
-
permissions?: string[] | undefined;
|
|
181
|
-
}>, "many">>;
|
|
182
|
-
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
name: string;
|
|
184
|
-
id: string;
|
|
185
|
-
description: string;
|
|
186
|
-
stages: {
|
|
187
|
-
name: string;
|
|
188
|
-
id: string;
|
|
189
|
-
order: number;
|
|
190
|
-
isPublishStage: boolean;
|
|
191
|
-
allowsScheduling: boolean;
|
|
192
|
-
permissions: string[];
|
|
193
|
-
description?: string | undefined;
|
|
194
|
-
}[];
|
|
195
|
-
transitions: {
|
|
196
|
-
id: string;
|
|
197
|
-
permissions: string[];
|
|
198
|
-
from: string;
|
|
199
|
-
to: string;
|
|
200
|
-
description?: string | undefined;
|
|
201
|
-
}[];
|
|
202
|
-
}, {
|
|
203
|
-
name?: string | undefined;
|
|
204
|
-
id?: string | undefined;
|
|
205
|
-
description?: string | undefined;
|
|
206
|
-
stages?: {
|
|
207
|
-
name: string;
|
|
208
|
-
id: string;
|
|
209
|
-
order: number;
|
|
210
|
-
description?: string | undefined;
|
|
211
|
-
isPublishStage?: boolean | undefined;
|
|
212
|
-
allowsScheduling?: boolean | undefined;
|
|
213
|
-
permissions?: string[] | undefined;
|
|
214
|
-
}[] | undefined;
|
|
215
|
-
transitions?: {
|
|
216
|
-
id: string;
|
|
217
|
-
from: string;
|
|
218
|
-
to: string;
|
|
219
|
-
description?: string | undefined;
|
|
220
|
-
permissions?: string[] | undefined;
|
|
221
|
-
}[] | undefined;
|
|
222
|
-
}>>;
|
|
223
|
-
contentTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
224
|
-
autoSave: z.ZodDefault<z.ZodObject<{
|
|
225
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
226
|
-
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
227
|
-
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
228
|
-
backoffMs: z.ZodDefault<z.ZodNumber>;
|
|
229
|
-
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
enabled: boolean;
|
|
231
|
-
debounceMs: number;
|
|
232
|
-
maxRetries: number;
|
|
233
|
-
backoffMs: number;
|
|
234
|
-
}, {
|
|
235
|
-
enabled?: boolean | undefined;
|
|
236
|
-
debounceMs?: number | undefined;
|
|
237
|
-
maxRetries?: number | undefined;
|
|
238
|
-
backoffMs?: number | undefined;
|
|
239
|
-
}>>;
|
|
240
|
-
softDelete: z.ZodDefault<z.ZodObject<{
|
|
241
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
-
showDeletedToUsers: z.ZodDefault<z.ZodBoolean>;
|
|
243
|
-
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
enabled: boolean;
|
|
246
|
-
showDeletedToUsers: boolean;
|
|
247
|
-
retentionDays: number;
|
|
248
|
-
}, {
|
|
249
|
-
enabled?: boolean | undefined;
|
|
250
|
-
showDeletedToUsers?: boolean | undefined;
|
|
251
|
-
retentionDays?: number | undefined;
|
|
252
|
-
}>>;
|
|
253
|
-
upload: z.ZodDefault<z.ZodObject<{
|
|
254
|
-
maxFileSize: z.ZodDefault<z.ZodNumber>;
|
|
255
|
-
allowedTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
256
|
-
storage: z.ZodDefault<z.ZodObject<{
|
|
257
|
-
type: z.ZodDefault<z.ZodEnum<["local", "s3", "gcs", "azure"]>>;
|
|
258
|
-
path: z.ZodDefault<z.ZodString>;
|
|
259
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
260
|
-
region: z.ZodOptional<z.ZodString>;
|
|
261
|
-
accessKey: z.ZodOptional<z.ZodString>;
|
|
262
|
-
secretKey: z.ZodOptional<z.ZodString>;
|
|
263
|
-
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
path: string;
|
|
265
|
-
type: "local" | "s3" | "gcs" | "azure";
|
|
266
|
-
bucket?: string | undefined;
|
|
267
|
-
region?: string | undefined;
|
|
268
|
-
accessKey?: string | undefined;
|
|
269
|
-
secretKey?: string | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
path?: string | undefined;
|
|
272
|
-
type?: "local" | "s3" | "gcs" | "azure" | undefined;
|
|
273
|
-
bucket?: string | undefined;
|
|
274
|
-
region?: string | undefined;
|
|
275
|
-
accessKey?: string | undefined;
|
|
276
|
-
secretKey?: string | undefined;
|
|
277
|
-
}>>;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
maxFileSize: number;
|
|
280
|
-
allowedTypes: string[];
|
|
281
|
-
storage: {
|
|
282
|
-
path: string;
|
|
283
|
-
type: "local" | "s3" | "gcs" | "azure";
|
|
284
|
-
bucket?: string | undefined;
|
|
285
|
-
region?: string | undefined;
|
|
286
|
-
accessKey?: string | undefined;
|
|
287
|
-
secretKey?: string | undefined;
|
|
288
|
-
};
|
|
289
|
-
}, {
|
|
290
|
-
maxFileSize?: number | undefined;
|
|
291
|
-
allowedTypes?: string[] | undefined;
|
|
292
|
-
storage?: {
|
|
293
|
-
path?: string | undefined;
|
|
294
|
-
type?: "local" | "s3" | "gcs" | "azure" | undefined;
|
|
295
|
-
bucket?: string | undefined;
|
|
296
|
-
region?: string | undefined;
|
|
297
|
-
accessKey?: string | undefined;
|
|
298
|
-
secretKey?: string | undefined;
|
|
299
|
-
} | undefined;
|
|
300
|
-
}>>;
|
|
301
|
-
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
defaultWorkflow: {
|
|
303
|
-
name: string;
|
|
304
|
-
id: string;
|
|
305
|
-
description: string;
|
|
306
|
-
stages: {
|
|
307
|
-
name: string;
|
|
308
|
-
id: string;
|
|
309
|
-
order: number;
|
|
310
|
-
isPublishStage: boolean;
|
|
311
|
-
allowsScheduling: boolean;
|
|
312
|
-
permissions: string[];
|
|
313
|
-
description?: string | undefined;
|
|
314
|
-
}[];
|
|
315
|
-
transitions: {
|
|
316
|
-
id: string;
|
|
317
|
-
permissions: string[];
|
|
318
|
-
from: string;
|
|
319
|
-
to: string;
|
|
320
|
-
description?: string | undefined;
|
|
321
|
-
}[];
|
|
322
|
-
};
|
|
323
|
-
contentTypes: string[];
|
|
324
|
-
autoSave: {
|
|
325
|
-
enabled: boolean;
|
|
326
|
-
debounceMs: number;
|
|
327
|
-
maxRetries: number;
|
|
328
|
-
backoffMs: number;
|
|
329
|
-
};
|
|
330
|
-
softDelete: {
|
|
331
|
-
enabled: boolean;
|
|
332
|
-
showDeletedToUsers: boolean;
|
|
333
|
-
retentionDays: number;
|
|
334
|
-
};
|
|
335
|
-
upload: {
|
|
336
|
-
maxFileSize: number;
|
|
337
|
-
allowedTypes: string[];
|
|
338
|
-
storage: {
|
|
339
|
-
path: string;
|
|
340
|
-
type: "local" | "s3" | "gcs" | "azure";
|
|
341
|
-
bucket?: string | undefined;
|
|
342
|
-
region?: string | undefined;
|
|
343
|
-
accessKey?: string | undefined;
|
|
344
|
-
secretKey?: string | undefined;
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
}, {
|
|
348
|
-
defaultWorkflow?: {
|
|
349
|
-
name?: string | undefined;
|
|
350
|
-
id?: string | undefined;
|
|
351
|
-
description?: string | undefined;
|
|
352
|
-
stages?: {
|
|
353
|
-
name: string;
|
|
354
|
-
id: string;
|
|
355
|
-
order: number;
|
|
356
|
-
description?: string | undefined;
|
|
357
|
-
isPublishStage?: boolean | undefined;
|
|
358
|
-
allowsScheduling?: boolean | undefined;
|
|
359
|
-
permissions?: string[] | undefined;
|
|
360
|
-
}[] | undefined;
|
|
361
|
-
transitions?: {
|
|
362
|
-
id: string;
|
|
363
|
-
from: string;
|
|
364
|
-
to: string;
|
|
365
|
-
description?: string | undefined;
|
|
366
|
-
permissions?: string[] | undefined;
|
|
367
|
-
}[] | undefined;
|
|
368
|
-
} | undefined;
|
|
369
|
-
contentTypes?: string[] | undefined;
|
|
370
|
-
autoSave?: {
|
|
371
|
-
enabled?: boolean | undefined;
|
|
372
|
-
debounceMs?: number | undefined;
|
|
373
|
-
maxRetries?: number | undefined;
|
|
374
|
-
backoffMs?: number | undefined;
|
|
375
|
-
} | undefined;
|
|
376
|
-
softDelete?: {
|
|
377
|
-
enabled?: boolean | undefined;
|
|
378
|
-
showDeletedToUsers?: boolean | undefined;
|
|
379
|
-
retentionDays?: number | undefined;
|
|
380
|
-
} | undefined;
|
|
381
|
-
upload?: {
|
|
382
|
-
maxFileSize?: number | undefined;
|
|
383
|
-
allowedTypes?: string[] | undefined;
|
|
384
|
-
storage?: {
|
|
385
|
-
path?: string | undefined;
|
|
386
|
-
type?: "local" | "s3" | "gcs" | "azure" | undefined;
|
|
387
|
-
bucket?: string | undefined;
|
|
388
|
-
region?: string | undefined;
|
|
389
|
-
accessKey?: string | undefined;
|
|
390
|
-
secretKey?: string | undefined;
|
|
391
|
-
} | undefined;
|
|
392
|
-
} | undefined;
|
|
393
|
-
}>>;
|
|
394
|
-
ui: z.ZodDefault<z.ZodObject<{
|
|
395
|
-
theme: z.ZodDefault<z.ZodObject<{
|
|
396
|
-
mode: z.ZodDefault<z.ZodEnum<["light", "dark", "auto"]>>;
|
|
397
|
-
primaryColor: z.ZodDefault<z.ZodString>;
|
|
398
|
-
secondaryColor: z.ZodDefault<z.ZodString>;
|
|
399
|
-
accentColor: z.ZodDefault<z.ZodString>;
|
|
400
|
-
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
mode: "light" | "dark" | "auto";
|
|
402
|
-
primaryColor: string;
|
|
403
|
-
secondaryColor: string;
|
|
404
|
-
accentColor: string;
|
|
405
|
-
}, {
|
|
406
|
-
mode?: "light" | "dark" | "auto" | undefined;
|
|
407
|
-
primaryColor?: string | undefined;
|
|
408
|
-
secondaryColor?: string | undefined;
|
|
409
|
-
accentColor?: string | undefined;
|
|
410
|
-
}>>;
|
|
411
|
-
editor: z.ZodDefault<z.ZodObject<{
|
|
412
|
-
showToolbar: z.ZodDefault<z.ZodBoolean>;
|
|
413
|
-
showStatusBar: z.ZodDefault<z.ZodBoolean>;
|
|
414
|
-
showWordCount: z.ZodDefault<z.ZodBoolean>;
|
|
415
|
-
showCharacterCount: z.ZodDefault<z.ZodBoolean>;
|
|
416
|
-
autoSave: z.ZodDefault<z.ZodBoolean>;
|
|
417
|
-
placeholder: z.ZodDefault<z.ZodString>;
|
|
418
|
-
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
autoSave: boolean;
|
|
420
|
-
showToolbar: boolean;
|
|
421
|
-
showStatusBar: boolean;
|
|
422
|
-
showWordCount: boolean;
|
|
423
|
-
showCharacterCount: boolean;
|
|
424
|
-
placeholder: string;
|
|
425
|
-
}, {
|
|
426
|
-
autoSave?: boolean | undefined;
|
|
427
|
-
showToolbar?: boolean | undefined;
|
|
428
|
-
showStatusBar?: boolean | undefined;
|
|
429
|
-
showWordCount?: boolean | undefined;
|
|
430
|
-
showCharacterCount?: boolean | undefined;
|
|
431
|
-
placeholder?: string | undefined;
|
|
432
|
-
}>>;
|
|
433
|
-
list: z.ZodDefault<z.ZodObject<{
|
|
434
|
-
defaultView: z.ZodDefault<z.ZodEnum<["table", "list", "grid", "kanban"]>>;
|
|
435
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
436
|
-
showSearch: z.ZodDefault<z.ZodBoolean>;
|
|
437
|
-
showFilters: z.ZodDefault<z.ZodBoolean>;
|
|
438
|
-
showSorting: z.ZodDefault<z.ZodBoolean>;
|
|
439
|
-
showPagination: z.ZodDefault<z.ZodBoolean>;
|
|
440
|
-
}, "strip", z.ZodTypeAny, {
|
|
441
|
-
defaultView: "table" | "list" | "grid" | "kanban";
|
|
442
|
-
pageSize: number;
|
|
443
|
-
showSearch: boolean;
|
|
444
|
-
showFilters: boolean;
|
|
445
|
-
showSorting: boolean;
|
|
446
|
-
showPagination: boolean;
|
|
447
|
-
}, {
|
|
448
|
-
defaultView?: "table" | "list" | "grid" | "kanban" | undefined;
|
|
449
|
-
pageSize?: number | undefined;
|
|
450
|
-
showSearch?: boolean | undefined;
|
|
451
|
-
showFilters?: boolean | undefined;
|
|
452
|
-
showSorting?: boolean | undefined;
|
|
453
|
-
showPagination?: boolean | undefined;
|
|
454
|
-
}>>;
|
|
455
|
-
}, "strip", z.ZodTypeAny, {
|
|
456
|
-
theme: {
|
|
457
|
-
mode: "light" | "dark" | "auto";
|
|
458
|
-
primaryColor: string;
|
|
459
|
-
secondaryColor: string;
|
|
460
|
-
accentColor: string;
|
|
461
|
-
};
|
|
462
|
-
editor: {
|
|
463
|
-
autoSave: boolean;
|
|
464
|
-
showToolbar: boolean;
|
|
465
|
-
showStatusBar: boolean;
|
|
466
|
-
showWordCount: boolean;
|
|
467
|
-
showCharacterCount: boolean;
|
|
468
|
-
placeholder: string;
|
|
469
|
-
};
|
|
470
|
-
list: {
|
|
471
|
-
defaultView: "table" | "list" | "grid" | "kanban";
|
|
472
|
-
pageSize: number;
|
|
473
|
-
showSearch: boolean;
|
|
474
|
-
showFilters: boolean;
|
|
475
|
-
showSorting: boolean;
|
|
476
|
-
showPagination: boolean;
|
|
477
|
-
};
|
|
478
|
-
}, {
|
|
479
|
-
theme?: {
|
|
480
|
-
mode?: "light" | "dark" | "auto" | undefined;
|
|
481
|
-
primaryColor?: string | undefined;
|
|
482
|
-
secondaryColor?: string | undefined;
|
|
483
|
-
accentColor?: string | undefined;
|
|
484
|
-
} | undefined;
|
|
485
|
-
editor?: {
|
|
486
|
-
autoSave?: boolean | undefined;
|
|
487
|
-
showToolbar?: boolean | undefined;
|
|
488
|
-
showStatusBar?: boolean | undefined;
|
|
489
|
-
showWordCount?: boolean | undefined;
|
|
490
|
-
showCharacterCount?: boolean | undefined;
|
|
491
|
-
placeholder?: string | undefined;
|
|
492
|
-
} | undefined;
|
|
493
|
-
list?: {
|
|
494
|
-
defaultView?: "table" | "list" | "grid" | "kanban" | undefined;
|
|
495
|
-
pageSize?: number | undefined;
|
|
496
|
-
showSearch?: boolean | undefined;
|
|
497
|
-
showFilters?: boolean | undefined;
|
|
498
|
-
showSorting?: boolean | undefined;
|
|
499
|
-
showPagination?: boolean | undefined;
|
|
500
|
-
} | undefined;
|
|
501
|
-
}>>;
|
|
502
|
-
integrations: z.ZodDefault<z.ZodObject<{
|
|
503
|
-
neverAdmin: z.ZodDefault<z.ZodObject<{
|
|
504
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
505
|
-
url: z.ZodOptional<z.ZodString>;
|
|
506
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
507
|
-
syncInterval: z.ZodDefault<z.ZodNumber>;
|
|
508
|
-
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
enabled: boolean;
|
|
510
|
-
syncInterval: number;
|
|
511
|
-
url?: string | undefined;
|
|
512
|
-
apiKey?: string | undefined;
|
|
513
|
-
}, {
|
|
514
|
-
enabled?: boolean | undefined;
|
|
515
|
-
url?: string | undefined;
|
|
516
|
-
apiKey?: string | undefined;
|
|
517
|
-
syncInterval?: number | undefined;
|
|
518
|
-
}>>;
|
|
519
|
-
neverHub: z.ZodDefault<z.ZodObject<{
|
|
520
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
521
|
-
url: z.ZodOptional<z.ZodString>;
|
|
522
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
523
|
-
packageDiscovery: z.ZodDefault<z.ZodBoolean>;
|
|
524
|
-
}, "strip", z.ZodTypeAny, {
|
|
525
|
-
enabled: boolean;
|
|
526
|
-
packageDiscovery: boolean;
|
|
527
|
-
url?: string | undefined;
|
|
528
|
-
apiKey?: string | undefined;
|
|
529
|
-
}, {
|
|
530
|
-
enabled?: boolean | undefined;
|
|
531
|
-
url?: string | undefined;
|
|
532
|
-
apiKey?: string | undefined;
|
|
533
|
-
packageDiscovery?: boolean | undefined;
|
|
534
|
-
}>>;
|
|
535
|
-
analytics: z.ZodDefault<z.ZodObject<{
|
|
536
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
537
|
-
provider: z.ZodOptional<z.ZodEnum<["google", "mixpanel", "amplitude", "custom"]>>;
|
|
538
|
-
trackingId: z.ZodOptional<z.ZodString>;
|
|
539
|
-
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
540
|
-
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
enabled: boolean;
|
|
542
|
-
config: Record<string, any>;
|
|
543
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
544
|
-
trackingId?: string | undefined;
|
|
545
|
-
}, {
|
|
546
|
-
enabled?: boolean | undefined;
|
|
547
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
548
|
-
trackingId?: string | undefined;
|
|
549
|
-
config?: Record<string, any> | undefined;
|
|
550
|
-
}>>;
|
|
551
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
neverAdmin: {
|
|
553
|
-
enabled: boolean;
|
|
554
|
-
syncInterval: number;
|
|
555
|
-
url?: string | undefined;
|
|
556
|
-
apiKey?: string | undefined;
|
|
557
|
-
};
|
|
558
|
-
neverHub: {
|
|
559
|
-
enabled: boolean;
|
|
560
|
-
packageDiscovery: boolean;
|
|
561
|
-
url?: string | undefined;
|
|
562
|
-
apiKey?: string | undefined;
|
|
563
|
-
};
|
|
564
|
-
analytics: {
|
|
565
|
-
enabled: boolean;
|
|
566
|
-
config: Record<string, any>;
|
|
567
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
568
|
-
trackingId?: string | undefined;
|
|
569
|
-
};
|
|
570
|
-
}, {
|
|
571
|
-
neverAdmin?: {
|
|
572
|
-
enabled?: boolean | undefined;
|
|
573
|
-
url?: string | undefined;
|
|
574
|
-
apiKey?: string | undefined;
|
|
575
|
-
syncInterval?: number | undefined;
|
|
576
|
-
} | undefined;
|
|
577
|
-
neverHub?: {
|
|
578
|
-
enabled?: boolean | undefined;
|
|
579
|
-
url?: string | undefined;
|
|
580
|
-
apiKey?: string | undefined;
|
|
581
|
-
packageDiscovery?: boolean | undefined;
|
|
582
|
-
} | undefined;
|
|
583
|
-
analytics?: {
|
|
584
|
-
enabled?: boolean | undefined;
|
|
585
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
586
|
-
trackingId?: string | undefined;
|
|
587
|
-
config?: Record<string, any> | undefined;
|
|
588
|
-
} | undefined;
|
|
589
|
-
}>>;
|
|
590
|
-
security: z.ZodDefault<z.ZodObject<{
|
|
591
|
-
jwt: z.ZodDefault<z.ZodObject<{
|
|
592
|
-
secret: z.ZodDefault<z.ZodString>;
|
|
593
|
-
expiresIn: z.ZodDefault<z.ZodString>;
|
|
594
|
-
issuer: z.ZodDefault<z.ZodString>;
|
|
595
|
-
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
secret: string;
|
|
597
|
-
expiresIn: string;
|
|
598
|
-
issuer: string;
|
|
599
|
-
}, {
|
|
600
|
-
secret?: string | undefined;
|
|
601
|
-
expiresIn?: string | undefined;
|
|
602
|
-
issuer?: string | undefined;
|
|
603
|
-
}>>;
|
|
604
|
-
permissions: z.ZodDefault<z.ZodObject<{
|
|
605
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
606
|
-
defaultRole: z.ZodDefault<z.ZodString>;
|
|
607
|
-
roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
608
|
-
name: z.ZodString;
|
|
609
|
-
permissions: z.ZodArray<z.ZodString, "many">;
|
|
610
|
-
description: z.ZodOptional<z.ZodString>;
|
|
611
|
-
}, "strip", z.ZodTypeAny, {
|
|
612
|
-
name: string;
|
|
613
|
-
permissions: string[];
|
|
614
|
-
description?: string | undefined;
|
|
615
|
-
}, {
|
|
616
|
-
name: string;
|
|
617
|
-
permissions: string[];
|
|
618
|
-
description?: string | undefined;
|
|
619
|
-
}>, "many">>;
|
|
620
|
-
}, "strip", z.ZodTypeAny, {
|
|
621
|
-
enabled: boolean;
|
|
622
|
-
defaultRole: string;
|
|
623
|
-
roles: {
|
|
624
|
-
name: string;
|
|
625
|
-
permissions: string[];
|
|
626
|
-
description?: string | undefined;
|
|
627
|
-
}[];
|
|
628
|
-
}, {
|
|
629
|
-
enabled?: boolean | undefined;
|
|
630
|
-
defaultRole?: string | undefined;
|
|
631
|
-
roles?: {
|
|
632
|
-
name: string;
|
|
633
|
-
permissions: string[];
|
|
634
|
-
description?: string | undefined;
|
|
635
|
-
}[] | undefined;
|
|
636
|
-
}>>;
|
|
637
|
-
}, "strip", z.ZodTypeAny, {
|
|
638
|
-
permissions: {
|
|
639
|
-
enabled: boolean;
|
|
640
|
-
defaultRole: string;
|
|
641
|
-
roles: {
|
|
642
|
-
name: string;
|
|
643
|
-
permissions: string[];
|
|
644
|
-
description?: string | undefined;
|
|
645
|
-
}[];
|
|
646
|
-
};
|
|
647
|
-
jwt: {
|
|
648
|
-
secret: string;
|
|
649
|
-
expiresIn: string;
|
|
650
|
-
issuer: string;
|
|
651
|
-
};
|
|
652
|
-
}, {
|
|
653
|
-
permissions?: {
|
|
654
|
-
enabled?: boolean | undefined;
|
|
655
|
-
defaultRole?: string | undefined;
|
|
656
|
-
roles?: {
|
|
657
|
-
name: string;
|
|
658
|
-
permissions: string[];
|
|
659
|
-
description?: string | undefined;
|
|
660
|
-
}[] | undefined;
|
|
661
|
-
} | undefined;
|
|
662
|
-
jwt?: {
|
|
663
|
-
secret?: string | undefined;
|
|
664
|
-
expiresIn?: string | undefined;
|
|
665
|
-
issuer?: string | undefined;
|
|
666
|
-
} | undefined;
|
|
667
|
-
}>>;
|
|
668
|
-
logging: z.ZodDefault<z.ZodObject<{
|
|
669
|
-
level: z.ZodDefault<z.ZodEnum<["error", "warn", "info", "debug"]>>;
|
|
670
|
-
format: z.ZodDefault<z.ZodEnum<["json", "text"]>>;
|
|
671
|
-
file: z.ZodDefault<z.ZodObject<{
|
|
672
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
673
|
-
path: z.ZodDefault<z.ZodString>;
|
|
674
|
-
maxSize: z.ZodDefault<z.ZodString>;
|
|
675
|
-
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
676
|
-
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
path: string;
|
|
678
|
-
enabled: boolean;
|
|
679
|
-
maxSize: string;
|
|
680
|
-
maxFiles: number;
|
|
681
|
-
}, {
|
|
682
|
-
path?: string | undefined;
|
|
683
|
-
enabled?: boolean | undefined;
|
|
684
|
-
maxSize?: string | undefined;
|
|
685
|
-
maxFiles?: number | undefined;
|
|
686
|
-
}>>;
|
|
687
|
-
console: z.ZodDefault<z.ZodObject<{
|
|
688
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
689
|
-
colorize: z.ZodDefault<z.ZodBoolean>;
|
|
690
|
-
}, "strip", z.ZodTypeAny, {
|
|
691
|
-
enabled: boolean;
|
|
692
|
-
colorize: boolean;
|
|
693
|
-
}, {
|
|
694
|
-
enabled?: boolean | undefined;
|
|
695
|
-
colorize?: boolean | undefined;
|
|
696
|
-
}>>;
|
|
697
|
-
}, "strip", z.ZodTypeAny, {
|
|
698
|
-
level: "error" | "warn" | "info" | "debug";
|
|
699
|
-
format: "text" | "json";
|
|
700
|
-
file: {
|
|
701
|
-
path: string;
|
|
702
|
-
enabled: boolean;
|
|
703
|
-
maxSize: string;
|
|
704
|
-
maxFiles: number;
|
|
705
|
-
};
|
|
706
|
-
console: {
|
|
707
|
-
enabled: boolean;
|
|
708
|
-
colorize: boolean;
|
|
709
|
-
};
|
|
710
|
-
}, {
|
|
711
|
-
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
712
|
-
format?: "text" | "json" | undefined;
|
|
713
|
-
file?: {
|
|
714
|
-
path?: string | undefined;
|
|
715
|
-
enabled?: boolean | undefined;
|
|
716
|
-
maxSize?: string | undefined;
|
|
717
|
-
maxFiles?: number | undefined;
|
|
718
|
-
} | undefined;
|
|
719
|
-
console?: {
|
|
720
|
-
enabled?: boolean | undefined;
|
|
721
|
-
colorize?: boolean | undefined;
|
|
722
|
-
} | undefined;
|
|
723
|
-
}>>;
|
|
724
|
-
performance: z.ZodDefault<z.ZodObject<{
|
|
725
|
-
cache: z.ZodDefault<z.ZodObject<{
|
|
726
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
727
|
-
ttl: z.ZodDefault<z.ZodNumber>;
|
|
728
|
-
maxSize: z.ZodDefault<z.ZodNumber>;
|
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
|
730
|
-
enabled: boolean;
|
|
731
|
-
maxSize: number;
|
|
732
|
-
ttl: number;
|
|
733
|
-
}, {
|
|
734
|
-
enabled?: boolean | undefined;
|
|
735
|
-
maxSize?: number | undefined;
|
|
736
|
-
ttl?: number | undefined;
|
|
737
|
-
}>>;
|
|
738
|
-
compression: z.ZodDefault<z.ZodObject<{
|
|
739
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
740
|
-
level: z.ZodDefault<z.ZodNumber>;
|
|
741
|
-
}, "strip", z.ZodTypeAny, {
|
|
742
|
-
enabled: boolean;
|
|
743
|
-
level: number;
|
|
744
|
-
}, {
|
|
745
|
-
enabled?: boolean | undefined;
|
|
746
|
-
level?: number | undefined;
|
|
747
|
-
}>>;
|
|
748
|
-
rateLimit: z.ZodDefault<z.ZodObject<{
|
|
749
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
750
|
-
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
751
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
752
|
-
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
enabled: boolean;
|
|
754
|
-
windowMs: number;
|
|
755
|
-
max: number;
|
|
756
|
-
}, {
|
|
757
|
-
enabled?: boolean | undefined;
|
|
758
|
-
windowMs?: number | undefined;
|
|
759
|
-
max?: number | undefined;
|
|
760
|
-
}>>;
|
|
761
|
-
}, "strip", z.ZodTypeAny, {
|
|
762
|
-
rateLimit: {
|
|
763
|
-
enabled: boolean;
|
|
764
|
-
windowMs: number;
|
|
765
|
-
max: number;
|
|
766
|
-
};
|
|
767
|
-
cache: {
|
|
768
|
-
enabled: boolean;
|
|
769
|
-
maxSize: number;
|
|
770
|
-
ttl: number;
|
|
771
|
-
};
|
|
772
|
-
compression: {
|
|
773
|
-
enabled: boolean;
|
|
774
|
-
level: number;
|
|
775
|
-
};
|
|
776
|
-
}, {
|
|
777
|
-
rateLimit?: {
|
|
778
|
-
enabled?: boolean | undefined;
|
|
779
|
-
windowMs?: number | undefined;
|
|
780
|
-
max?: number | undefined;
|
|
781
|
-
} | undefined;
|
|
782
|
-
cache?: {
|
|
783
|
-
enabled?: boolean | undefined;
|
|
784
|
-
maxSize?: number | undefined;
|
|
785
|
-
ttl?: number | undefined;
|
|
786
|
-
} | undefined;
|
|
787
|
-
compression?: {
|
|
788
|
-
enabled?: boolean | undefined;
|
|
789
|
-
level?: number | undefined;
|
|
790
|
-
} | undefined;
|
|
791
|
-
}>>;
|
|
792
|
-
}, "strip", z.ZodTypeAny, {
|
|
793
|
-
security: {
|
|
794
|
-
permissions: {
|
|
795
|
-
enabled: boolean;
|
|
796
|
-
defaultRole: string;
|
|
797
|
-
roles: {
|
|
798
|
-
name: string;
|
|
799
|
-
permissions: string[];
|
|
800
|
-
description?: string | undefined;
|
|
801
|
-
}[];
|
|
802
|
-
};
|
|
803
|
-
jwt: {
|
|
804
|
-
secret: string;
|
|
805
|
-
expiresIn: string;
|
|
806
|
-
issuer: string;
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
server: {
|
|
810
|
-
port: number;
|
|
811
|
-
host: string;
|
|
812
|
-
cors: {
|
|
813
|
-
origin: string | string[];
|
|
814
|
-
credentials: boolean;
|
|
815
|
-
};
|
|
816
|
-
security: {
|
|
817
|
-
helmet: boolean;
|
|
818
|
-
rateLimit: {
|
|
819
|
-
enabled: boolean;
|
|
820
|
-
windowMs: number;
|
|
821
|
-
max: number;
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
};
|
|
825
|
-
database: {
|
|
826
|
-
host: string;
|
|
827
|
-
type: "sqlite" | "postgresql" | "mysql" | "mongodb";
|
|
828
|
-
name: string;
|
|
829
|
-
ssl: boolean;
|
|
830
|
-
pool: {
|
|
831
|
-
max: number;
|
|
832
|
-
min: number;
|
|
833
|
-
};
|
|
834
|
-
port?: number | undefined;
|
|
835
|
-
url?: string | undefined;
|
|
836
|
-
username?: string | undefined;
|
|
837
|
-
password?: string | undefined;
|
|
838
|
-
};
|
|
839
|
-
content: {
|
|
840
|
-
defaultWorkflow: {
|
|
841
|
-
name: string;
|
|
842
|
-
id: string;
|
|
843
|
-
description: string;
|
|
844
|
-
stages: {
|
|
845
|
-
name: string;
|
|
846
|
-
id: string;
|
|
847
|
-
order: number;
|
|
848
|
-
isPublishStage: boolean;
|
|
849
|
-
allowsScheduling: boolean;
|
|
850
|
-
permissions: string[];
|
|
851
|
-
description?: string | undefined;
|
|
852
|
-
}[];
|
|
853
|
-
transitions: {
|
|
854
|
-
id: string;
|
|
855
|
-
permissions: string[];
|
|
856
|
-
from: string;
|
|
857
|
-
to: string;
|
|
858
|
-
description?: string | undefined;
|
|
859
|
-
}[];
|
|
860
|
-
};
|
|
861
|
-
contentTypes: string[];
|
|
862
|
-
autoSave: {
|
|
863
|
-
enabled: boolean;
|
|
864
|
-
debounceMs: number;
|
|
865
|
-
maxRetries: number;
|
|
866
|
-
backoffMs: number;
|
|
867
|
-
};
|
|
868
|
-
softDelete: {
|
|
869
|
-
enabled: boolean;
|
|
870
|
-
showDeletedToUsers: boolean;
|
|
871
|
-
retentionDays: number;
|
|
872
|
-
};
|
|
873
|
-
upload: {
|
|
874
|
-
maxFileSize: number;
|
|
875
|
-
allowedTypes: string[];
|
|
876
|
-
storage: {
|
|
877
|
-
path: string;
|
|
878
|
-
type: "local" | "s3" | "gcs" | "azure";
|
|
879
|
-
bucket?: string | undefined;
|
|
880
|
-
region?: string | undefined;
|
|
881
|
-
accessKey?: string | undefined;
|
|
882
|
-
secretKey?: string | undefined;
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
ui: {
|
|
887
|
-
theme: {
|
|
888
|
-
mode: "light" | "dark" | "auto";
|
|
889
|
-
primaryColor: string;
|
|
890
|
-
secondaryColor: string;
|
|
891
|
-
accentColor: string;
|
|
892
|
-
};
|
|
893
|
-
editor: {
|
|
894
|
-
autoSave: boolean;
|
|
895
|
-
showToolbar: boolean;
|
|
896
|
-
showStatusBar: boolean;
|
|
897
|
-
showWordCount: boolean;
|
|
898
|
-
showCharacterCount: boolean;
|
|
899
|
-
placeholder: string;
|
|
900
|
-
};
|
|
901
|
-
list: {
|
|
902
|
-
defaultView: "table" | "list" | "grid" | "kanban";
|
|
903
|
-
pageSize: number;
|
|
904
|
-
showSearch: boolean;
|
|
905
|
-
showFilters: boolean;
|
|
906
|
-
showSorting: boolean;
|
|
907
|
-
showPagination: boolean;
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
integrations: {
|
|
911
|
-
neverAdmin: {
|
|
912
|
-
enabled: boolean;
|
|
913
|
-
syncInterval: number;
|
|
914
|
-
url?: string | undefined;
|
|
915
|
-
apiKey?: string | undefined;
|
|
916
|
-
};
|
|
917
|
-
neverHub: {
|
|
918
|
-
enabled: boolean;
|
|
919
|
-
packageDiscovery: boolean;
|
|
920
|
-
url?: string | undefined;
|
|
921
|
-
apiKey?: string | undefined;
|
|
922
|
-
};
|
|
923
|
-
analytics: {
|
|
924
|
-
enabled: boolean;
|
|
925
|
-
config: Record<string, any>;
|
|
926
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
927
|
-
trackingId?: string | undefined;
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
logging: {
|
|
931
|
-
level: "error" | "warn" | "info" | "debug";
|
|
932
|
-
format: "text" | "json";
|
|
933
|
-
file: {
|
|
934
|
-
path: string;
|
|
935
|
-
enabled: boolean;
|
|
936
|
-
maxSize: string;
|
|
937
|
-
maxFiles: number;
|
|
938
|
-
};
|
|
939
|
-
console: {
|
|
940
|
-
enabled: boolean;
|
|
941
|
-
colorize: boolean;
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
performance: {
|
|
945
|
-
rateLimit: {
|
|
946
|
-
enabled: boolean;
|
|
947
|
-
windowMs: number;
|
|
948
|
-
max: number;
|
|
949
|
-
};
|
|
950
|
-
cache: {
|
|
951
|
-
enabled: boolean;
|
|
952
|
-
maxSize: number;
|
|
953
|
-
ttl: number;
|
|
954
|
-
};
|
|
955
|
-
compression: {
|
|
956
|
-
enabled: boolean;
|
|
957
|
-
level: number;
|
|
958
|
-
};
|
|
959
|
-
};
|
|
960
|
-
}, {
|
|
961
|
-
security?: {
|
|
962
|
-
permissions?: {
|
|
963
|
-
enabled?: boolean | undefined;
|
|
964
|
-
defaultRole?: string | undefined;
|
|
965
|
-
roles?: {
|
|
966
|
-
name: string;
|
|
967
|
-
permissions: string[];
|
|
968
|
-
description?: string | undefined;
|
|
969
|
-
}[] | undefined;
|
|
970
|
-
} | undefined;
|
|
971
|
-
jwt?: {
|
|
972
|
-
secret?: string | undefined;
|
|
973
|
-
expiresIn?: string | undefined;
|
|
974
|
-
issuer?: string | undefined;
|
|
975
|
-
} | undefined;
|
|
976
|
-
} | undefined;
|
|
977
|
-
server?: {
|
|
978
|
-
port?: number | undefined;
|
|
979
|
-
host?: string | undefined;
|
|
980
|
-
cors?: {
|
|
981
|
-
origin?: string | string[] | undefined;
|
|
982
|
-
credentials?: boolean | undefined;
|
|
983
|
-
} | undefined;
|
|
984
|
-
security?: {
|
|
985
|
-
helmet?: boolean | undefined;
|
|
986
|
-
rateLimit?: {
|
|
987
|
-
enabled?: boolean | undefined;
|
|
988
|
-
windowMs?: number | undefined;
|
|
989
|
-
max?: number | undefined;
|
|
990
|
-
} | undefined;
|
|
991
|
-
} | undefined;
|
|
992
|
-
} | undefined;
|
|
993
|
-
database?: {
|
|
994
|
-
port?: number | undefined;
|
|
995
|
-
host?: string | undefined;
|
|
996
|
-
type?: "sqlite" | "postgresql" | "mysql" | "mongodb" | undefined;
|
|
997
|
-
url?: string | undefined;
|
|
998
|
-
name?: string | undefined;
|
|
999
|
-
username?: string | undefined;
|
|
1000
|
-
password?: string | undefined;
|
|
1001
|
-
ssl?: boolean | undefined;
|
|
1002
|
-
pool?: {
|
|
1003
|
-
max?: number | undefined;
|
|
1004
|
-
min?: number | undefined;
|
|
1005
|
-
} | undefined;
|
|
1006
|
-
} | undefined;
|
|
1007
|
-
content?: {
|
|
1008
|
-
defaultWorkflow?: {
|
|
1009
|
-
name?: string | undefined;
|
|
1010
|
-
id?: string | undefined;
|
|
1011
|
-
description?: string | undefined;
|
|
1012
|
-
stages?: {
|
|
1013
|
-
name: string;
|
|
1014
|
-
id: string;
|
|
1015
|
-
order: number;
|
|
1016
|
-
description?: string | undefined;
|
|
1017
|
-
isPublishStage?: boolean | undefined;
|
|
1018
|
-
allowsScheduling?: boolean | undefined;
|
|
1019
|
-
permissions?: string[] | undefined;
|
|
1020
|
-
}[] | undefined;
|
|
1021
|
-
transitions?: {
|
|
1022
|
-
id: string;
|
|
1023
|
-
from: string;
|
|
1024
|
-
to: string;
|
|
1025
|
-
description?: string | undefined;
|
|
1026
|
-
permissions?: string[] | undefined;
|
|
1027
|
-
}[] | undefined;
|
|
1028
|
-
} | undefined;
|
|
1029
|
-
contentTypes?: string[] | undefined;
|
|
1030
|
-
autoSave?: {
|
|
1031
|
-
enabled?: boolean | undefined;
|
|
1032
|
-
debounceMs?: number | undefined;
|
|
1033
|
-
maxRetries?: number | undefined;
|
|
1034
|
-
backoffMs?: number | undefined;
|
|
1035
|
-
} | undefined;
|
|
1036
|
-
softDelete?: {
|
|
1037
|
-
enabled?: boolean | undefined;
|
|
1038
|
-
showDeletedToUsers?: boolean | undefined;
|
|
1039
|
-
retentionDays?: number | undefined;
|
|
1040
|
-
} | undefined;
|
|
1041
|
-
upload?: {
|
|
1042
|
-
maxFileSize?: number | undefined;
|
|
1043
|
-
allowedTypes?: string[] | undefined;
|
|
1044
|
-
storage?: {
|
|
1045
|
-
path?: string | undefined;
|
|
1046
|
-
type?: "local" | "s3" | "gcs" | "azure" | undefined;
|
|
1047
|
-
bucket?: string | undefined;
|
|
1048
|
-
region?: string | undefined;
|
|
1049
|
-
accessKey?: string | undefined;
|
|
1050
|
-
secretKey?: string | undefined;
|
|
1051
|
-
} | undefined;
|
|
1052
|
-
} | undefined;
|
|
1053
|
-
} | undefined;
|
|
1054
|
-
ui?: {
|
|
1055
|
-
theme?: {
|
|
1056
|
-
mode?: "light" | "dark" | "auto" | undefined;
|
|
1057
|
-
primaryColor?: string | undefined;
|
|
1058
|
-
secondaryColor?: string | undefined;
|
|
1059
|
-
accentColor?: string | undefined;
|
|
1060
|
-
} | undefined;
|
|
1061
|
-
editor?: {
|
|
1062
|
-
autoSave?: boolean | undefined;
|
|
1063
|
-
showToolbar?: boolean | undefined;
|
|
1064
|
-
showStatusBar?: boolean | undefined;
|
|
1065
|
-
showWordCount?: boolean | undefined;
|
|
1066
|
-
showCharacterCount?: boolean | undefined;
|
|
1067
|
-
placeholder?: string | undefined;
|
|
1068
|
-
} | undefined;
|
|
1069
|
-
list?: {
|
|
1070
|
-
defaultView?: "table" | "list" | "grid" | "kanban" | undefined;
|
|
1071
|
-
pageSize?: number | undefined;
|
|
1072
|
-
showSearch?: boolean | undefined;
|
|
1073
|
-
showFilters?: boolean | undefined;
|
|
1074
|
-
showSorting?: boolean | undefined;
|
|
1075
|
-
showPagination?: boolean | undefined;
|
|
1076
|
-
} | undefined;
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
integrations?: {
|
|
1079
|
-
neverAdmin?: {
|
|
1080
|
-
enabled?: boolean | undefined;
|
|
1081
|
-
url?: string | undefined;
|
|
1082
|
-
apiKey?: string | undefined;
|
|
1083
|
-
syncInterval?: number | undefined;
|
|
1084
|
-
} | undefined;
|
|
1085
|
-
neverHub?: {
|
|
1086
|
-
enabled?: boolean | undefined;
|
|
1087
|
-
url?: string | undefined;
|
|
1088
|
-
apiKey?: string | undefined;
|
|
1089
|
-
packageDiscovery?: boolean | undefined;
|
|
1090
|
-
} | undefined;
|
|
1091
|
-
analytics?: {
|
|
1092
|
-
enabled?: boolean | undefined;
|
|
1093
|
-
provider?: "custom" | "google" | "mixpanel" | "amplitude" | undefined;
|
|
1094
|
-
trackingId?: string | undefined;
|
|
1095
|
-
config?: Record<string, any> | undefined;
|
|
1096
|
-
} | undefined;
|
|
1097
|
-
} | undefined;
|
|
1098
|
-
logging?: {
|
|
1099
|
-
level?: "error" | "warn" | "info" | "debug" | undefined;
|
|
1100
|
-
format?: "text" | "json" | undefined;
|
|
1101
|
-
file?: {
|
|
1102
|
-
path?: string | undefined;
|
|
1103
|
-
enabled?: boolean | undefined;
|
|
1104
|
-
maxSize?: string | undefined;
|
|
1105
|
-
maxFiles?: number | undefined;
|
|
1106
|
-
} | undefined;
|
|
1107
|
-
console?: {
|
|
1108
|
-
enabled?: boolean | undefined;
|
|
1109
|
-
colorize?: boolean | undefined;
|
|
1110
|
-
} | undefined;
|
|
1111
|
-
} | undefined;
|
|
1112
|
-
performance?: {
|
|
1113
|
-
rateLimit?: {
|
|
1114
|
-
enabled?: boolean | undefined;
|
|
1115
|
-
windowMs?: number | undefined;
|
|
1116
|
-
max?: number | undefined;
|
|
1117
|
-
} | undefined;
|
|
1118
|
-
cache?: {
|
|
1119
|
-
enabled?: boolean | undefined;
|
|
1120
|
-
maxSize?: number | undefined;
|
|
1121
|
-
ttl?: number | undefined;
|
|
1122
|
-
} | undefined;
|
|
1123
|
-
compression?: {
|
|
1124
|
-
enabled?: boolean | undefined;
|
|
1125
|
-
level?: number | undefined;
|
|
1126
|
-
} | undefined;
|
|
1127
|
-
} | undefined;
|
|
1128
|
-
}>;
|
|
1129
|
-
type ContentManagementConfig = z.infer<typeof ContentManagementConfigSchema>;
|
|
1130
|
-
interface ContentManagementSuite {
|
|
1131
|
-
configManager: any;
|
|
1132
|
-
workflowService: any;
|
|
1133
|
-
editorService: any;
|
|
1134
|
-
contentTypes: Map<string, any>;
|
|
1135
|
-
editor: any;
|
|
1136
|
-
workflow: any;
|
|
1137
|
-
list: any;
|
|
1138
|
-
admin: any;
|
|
1139
|
-
server: any;
|
|
1140
|
-
start(): Promise<void>;
|
|
1141
|
-
stop(): Promise<void>;
|
|
1142
|
-
getConfig(): ContentManagementConfig;
|
|
1143
|
-
updateConfig(config: Partial<ContentManagementConfig>): Promise<void>;
|
|
1144
|
-
registerContentType(contentType: any): void;
|
|
1145
|
-
unregisterContentType(contentTypeId: string): void;
|
|
1146
|
-
getContentType(contentTypeId: string): any;
|
|
1147
|
-
listContentTypes(): any[];
|
|
1148
|
-
registerPlugin(plugin: ContentManagementSuitePlugin): void;
|
|
1149
|
-
unregisterPlugin(pluginName: string): void;
|
|
1150
|
-
addMiddleware(middleware: ContentManagementSuiteMiddleware): void;
|
|
1151
|
-
addHook(hook: ContentManagementSuiteHook): void;
|
|
1152
|
-
}
|
|
1153
|
-
interface ContentManagementSuiteOptions {
|
|
1154
|
-
config?: Partial<ContentManagementConfig>;
|
|
1155
|
-
configFile?: string;
|
|
1156
|
-
database?: any;
|
|
1157
|
-
logger?: any;
|
|
1158
|
-
plugins?: any[];
|
|
1159
|
-
}
|
|
1160
|
-
interface ContentManagementSuiteEvents {
|
|
1161
|
-
'content:created': (content: any) => void;
|
|
1162
|
-
'content:updated': (content: any) => void;
|
|
1163
|
-
'content:deleted': (content: any) => void;
|
|
1164
|
-
'content:published': (content: any) => void;
|
|
1165
|
-
'content:scheduled': (content: any, date: Date) => void;
|
|
1166
|
-
'workflow:transition': (content: any, from: string, to: string) => void;
|
|
1167
|
-
'config:updated': (config: ContentManagementConfig) => void;
|
|
1168
|
-
'error': (error: Error) => void;
|
|
1169
|
-
}
|
|
1170
|
-
interface ContentManagementSuiteAPI {
|
|
1171
|
-
createContent(type: string, data: any): Promise<any>;
|
|
1172
|
-
getContent(id: string): Promise<any>;
|
|
1173
|
-
updateContent(id: string, data: any): Promise<any>;
|
|
1174
|
-
deleteContent(id: string, soft?: boolean): Promise<void>;
|
|
1175
|
-
listContent(filters?: any): Promise<any[]>;
|
|
1176
|
-
searchContent(query: string, options?: any): Promise<any[]>;
|
|
1177
|
-
getWorkflow(id: string): Promise<any>;
|
|
1178
|
-
createWorkflow(data: any): Promise<any>;
|
|
1179
|
-
updateWorkflow(id: string, data: any): Promise<any>;
|
|
1180
|
-
deleteWorkflow(id: string): Promise<void>;
|
|
1181
|
-
listWorkflows(): Promise<any[]>;
|
|
1182
|
-
getContentType(id: string): Promise<any>;
|
|
1183
|
-
createContentType(data: any): Promise<any>;
|
|
1184
|
-
updateContentType(id: string, data: any): Promise<any>;
|
|
1185
|
-
deleteContentType(id: string): Promise<void>;
|
|
1186
|
-
listContentTypes(): Promise<any[]>;
|
|
1187
|
-
getConfig(): Promise<ContentManagementConfig>;
|
|
1188
|
-
updateConfig(config: Partial<ContentManagementConfig>): Promise<void>;
|
|
1189
|
-
createUser(data: any): Promise<any>;
|
|
1190
|
-
getUser(id: string): Promise<any>;
|
|
1191
|
-
updateUser(id: string, data: any): Promise<any>;
|
|
1192
|
-
deleteUser(id: string): Promise<void>;
|
|
1193
|
-
listUsers(): Promise<any[]>;
|
|
1194
|
-
checkPermission(userId: string, permission: string): Promise<boolean>;
|
|
1195
|
-
grantPermission(userId: string, permission: string): Promise<void>;
|
|
1196
|
-
revokePermission(userId: string, permission: string): Promise<void>;
|
|
1197
|
-
}
|
|
1198
|
-
interface ContentManagementSuitePlugin {
|
|
1199
|
-
name: string;
|
|
1200
|
-
version: string;
|
|
1201
|
-
description: string;
|
|
1202
|
-
dependencies?: string[];
|
|
1203
|
-
install(suite: ContentManagementSuite): Promise<void>;
|
|
1204
|
-
uninstall(suite: ContentManagementSuite): Promise<void>;
|
|
1205
|
-
enable(suite: ContentManagementSuite): Promise<void>;
|
|
1206
|
-
disable(suite: ContentManagementSuite): Promise<void>;
|
|
1207
|
-
}
|
|
1208
|
-
interface ContentManagementSuiteMiddleware {
|
|
1209
|
-
name: string;
|
|
1210
|
-
handler: (req: any, res: any, next: any) => void;
|
|
1211
|
-
order?: number;
|
|
1212
|
-
}
|
|
1213
|
-
interface ContentManagementSuiteHook {
|
|
1214
|
-
name: string;
|
|
1215
|
-
handler: (...args: any[]) => Promise<any> | any;
|
|
1216
|
-
priority?: number;
|
|
1217
|
-
}
|
|
1218
|
-
interface ContentManagementSuiteValidation {
|
|
1219
|
-
validateConfig(config: any): boolean;
|
|
1220
|
-
validateContent(content: any, type: string): boolean;
|
|
1221
|
-
validateWorkflow(workflow: any): boolean;
|
|
1222
|
-
validateUser(user: any): boolean;
|
|
1223
|
-
}
|
|
1224
|
-
interface ContentManagementSuiteStorage {
|
|
1225
|
-
saveContent(content: any): Promise<void>;
|
|
1226
|
-
loadContent(id: string): Promise<any>;
|
|
1227
|
-
deleteContent(id: string): Promise<void>;
|
|
1228
|
-
listContent(filters?: any): Promise<any[]>;
|
|
1229
|
-
searchContent(query: string, options?: any): Promise<any[]>;
|
|
1230
|
-
saveWorkflow(workflow: any): Promise<void>;
|
|
1231
|
-
loadWorkflow(id: string): Promise<any>;
|
|
1232
|
-
deleteWorkflow(id: string): Promise<void>;
|
|
1233
|
-
listWorkflows(): Promise<any[]>;
|
|
1234
|
-
saveConfig(config: ContentManagementConfig): Promise<void>;
|
|
1235
|
-
loadConfig(): Promise<ContentManagementConfig>;
|
|
1236
|
-
saveUser(user: any): Promise<void>;
|
|
1237
|
-
loadUser(id: string): Promise<any>;
|
|
1238
|
-
deleteUser(id: string): Promise<void>;
|
|
1239
|
-
listUsers(): Promise<any[]>;
|
|
1240
|
-
}
|
|
1241
|
-
interface ContentManagementSuiteCache {
|
|
1242
|
-
get(key: string): Promise<any>;
|
|
1243
|
-
set(key: string, value: any, ttl?: number): Promise<void>;
|
|
1244
|
-
delete(key: string): Promise<void>;
|
|
1245
|
-
clear(): Promise<void>;
|
|
1246
|
-
has(key: string): Promise<boolean>;
|
|
1247
|
-
}
|
|
1248
|
-
interface ContentManagementSuiteLogger {
|
|
1249
|
-
error(message: string, meta?: any): void;
|
|
1250
|
-
warn(message: string, meta?: any): void;
|
|
1251
|
-
info(message: string, meta?: any): void;
|
|
1252
|
-
debug(message: string, meta?: any): void;
|
|
1253
|
-
}
|
|
1254
|
-
interface ContentManagementSuiteMetrics {
|
|
1255
|
-
increment(name: string, value?: number): void;
|
|
1256
|
-
decrement(name: string, value?: number): void;
|
|
1257
|
-
gauge(name: string, value: number): void;
|
|
1258
|
-
histogram(name: string, value: number): void;
|
|
1259
|
-
counter(name: string, value?: number): void;
|
|
1260
|
-
}
|
|
1261
|
-
interface ContentManagementSuiteHealthCheck {
|
|
1262
|
-
name: string;
|
|
1263
|
-
check(): Promise<boolean>;
|
|
1264
|
-
timeout?: number;
|
|
1265
|
-
interval?: number;
|
|
1266
|
-
}
|
|
1267
|
-
declare class ContentManagementSuiteError extends Error {
|
|
1268
|
-
code: string;
|
|
1269
|
-
statusCode: number;
|
|
1270
|
-
details?: any;
|
|
1271
|
-
constructor(message: string, code: string, statusCode?: number, details?: any);
|
|
1272
|
-
}
|
|
1273
|
-
declare class ContentManagementSuiteValidationError extends ContentManagementSuiteError {
|
|
1274
|
-
constructor(message: string, details?: any);
|
|
1275
|
-
}
|
|
1276
|
-
declare class ContentManagementSuiteNotFoundError extends ContentManagementSuiteError {
|
|
1277
|
-
constructor(message: string, details?: any);
|
|
1278
|
-
}
|
|
1279
|
-
declare class ContentManagementSuiteUnauthorizedError extends ContentManagementSuiteError {
|
|
1280
|
-
constructor(message: string, details?: any);
|
|
1281
|
-
}
|
|
1282
|
-
declare class ContentManagementSuiteForbiddenError extends ContentManagementSuiteError {
|
|
1283
|
-
constructor(message: string, details?: any);
|
|
1284
|
-
}
|
|
1285
|
-
declare class ContentManagementSuiteConflictError extends ContentManagementSuiteError {
|
|
1286
|
-
constructor(message: string, details?: any);
|
|
1287
|
-
}
|
|
1288
|
-
declare class ContentManagementSuiteInternalError extends ContentManagementSuiteError {
|
|
1289
|
-
constructor(message: string, details?: any);
|
|
1290
|
-
}
|
|
1
|
+
import { a as ContentManagementSuiteOptions, b as ContentManagementSuite, C as ContentStorageAdapter } from './types-DQpwJ5e3.js';
|
|
2
|
+
export { ai as AIConfiguration, o as AIEnhanceService, af as AINamespace, ah as AIReview, l as AIReviewService, m as AIReviewServiceResult, A as AIReviewStorageNamespace, H as AIReviewSuggestion, n as AISocialGeneratorService, k as AnalyticsStorageNamespace, ab as ConfigNamespace, f as ConflictError, O as ContentFilters, J as ContentItem, d as ContentManagementConfig, c as ContentManagementConfigSchema, e as ContentManagementError, a4 as ContentManagementLogger, a6 as ContentNamespace, s as ContentPublishResult, r as ContentPublisher, u as ContentSource, g as ContentStorageNamespace, B as ContentTypeDefinition, T as ContentTypeInfo, h as ContentTypeStorageNamespace, a7 as ContentTypesNamespace, K as CreateContentInput, a1 as CreateUserInput, _ as CreateWorkflowInput, E as EnhanceOptions, p as EnhancedContent, F as ForbiddenError, v as IngestResult, I as InternalError, M as MediaStorageNamespace, N as NotFoundError, R as PaginatedResult, aa as PermissionsNamespace, z as PlatformInfo, x as PlatformPublishResult, ac as PluginsNamespace, t as PreviewResult, P as PublishResult, ad as PublishersNamespace, j as ScheduleStorageNamespace, D as SchemaValidationResult, Q as SearchOptions, y as SocialMetrics, ag as SocialNamespace, w as SocialPlatformAdapter, ak as SocialPost, S as SocialPostStorageNamespace, ae as SourcesNamespace, G as StageConditions, i as StoredContentTypeDefinition, q as Suggestion, a5 as SuiteEventMap, a3 as SuitePlugin, U as UnauthorizedError, L as UpdateContentInput, a2 as UpdateUserInput, $ as UpdateWorkflowInput, a0 as User, a9 as UsersNamespace, V as ValidationError, X as Workflow, aj as WorkflowConfiguration, Y as WorkflowStage, W as WorkflowStorageNamespace, Z as WorkflowTransition, a8 as WorkflowsNamespace } from './types-DQpwJ5e3.js';
|
|
3
|
+
import 'zod';
|
|
1291
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Factory function to create a new ContentManagementSuite instance.
|
|
7
|
+
*/
|
|
1292
8
|
declare function createContentManagementSuite(options?: ContentManagementSuiteOptions): ContentManagementSuite;
|
|
1293
9
|
|
|
1294
|
-
|
|
10
|
+
declare function createInMemoryAdapter(): ContentStorageAdapter;
|
|
11
|
+
|
|
12
|
+
export { ContentManagementSuite, ContentManagementSuiteOptions, ContentStorageAdapter, createContentManagementSuite, createInMemoryAdapter };
|