@chaaskit/shared 0.1.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.
Files changed (81) hide show
  1. package/dist/constants/index.d.ts +59 -0
  2. package/dist/constants/index.d.ts.map +1 -0
  3. package/dist/constants/index.js +69 -0
  4. package/dist/constants/index.js.map +1 -0
  5. package/dist/index.d.ts +20 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +23 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/types/admin.d.ts +98 -0
  10. package/dist/types/admin.d.ts.map +1 -0
  11. package/dist/types/admin.js +2 -0
  12. package/dist/types/admin.js.map +1 -0
  13. package/dist/types/auth.d.ts +43 -0
  14. package/dist/types/auth.d.ts.map +1 -0
  15. package/dist/types/auth.js +2 -0
  16. package/dist/types/auth.js.map +1 -0
  17. package/dist/types/config.d.ts +267 -0
  18. package/dist/types/config.d.ts.map +1 -0
  19. package/dist/types/config.js +2 -0
  20. package/dist/types/config.js.map +1 -0
  21. package/dist/types/documents.d.ts +80 -0
  22. package/dist/types/documents.d.ts.map +1 -0
  23. package/dist/types/documents.js +5 -0
  24. package/dist/types/documents.js.map +1 -0
  25. package/dist/types/mcp.d.ts +130 -0
  26. package/dist/types/mcp.d.ts.map +1 -0
  27. package/dist/types/mcp.js +2 -0
  28. package/dist/types/mcp.js.map +1 -0
  29. package/dist/types/message.d.ts +105 -0
  30. package/dist/types/message.d.ts.map +1 -0
  31. package/dist/types/message.js +2 -0
  32. package/dist/types/message.js.map +1 -0
  33. package/dist/types/payment.d.ts +57 -0
  34. package/dist/types/payment.d.ts.map +1 -0
  35. package/dist/types/payment.js +2 -0
  36. package/dist/types/payment.js.map +1 -0
  37. package/dist/types/project.d.ts +30 -0
  38. package/dist/types/project.d.ts.map +1 -0
  39. package/dist/types/project.js +2 -0
  40. package/dist/types/project.js.map +1 -0
  41. package/dist/types/scheduled-prompt.d.ts +99 -0
  42. package/dist/types/scheduled-prompt.d.ts.map +1 -0
  43. package/dist/types/scheduled-prompt.js +18 -0
  44. package/dist/types/scheduled-prompt.js.map +1 -0
  45. package/dist/types/team.d.ts +92 -0
  46. package/dist/types/team.d.ts.map +1 -0
  47. package/dist/types/team.js +2 -0
  48. package/dist/types/team.js.map +1 -0
  49. package/dist/types/theme.d.ts +42 -0
  50. package/dist/types/theme.d.ts.map +1 -0
  51. package/dist/types/theme.js +2 -0
  52. package/dist/types/theme.js.map +1 -0
  53. package/dist/types/thread.d.ts +41 -0
  54. package/dist/types/thread.d.ts.map +1 -0
  55. package/dist/types/thread.js +2 -0
  56. package/dist/types/thread.js.map +1 -0
  57. package/dist/types/user.d.ts +52 -0
  58. package/dist/types/user.d.ts.map +1 -0
  59. package/dist/types/user.js +2 -0
  60. package/dist/types/user.js.map +1 -0
  61. package/dist/validation/config.d.ts +1671 -0
  62. package/dist/validation/config.d.ts.map +1 -0
  63. package/dist/validation/config.js +160 -0
  64. package/dist/validation/config.js.map +1 -0
  65. package/dist/validation/message.d.ts +101 -0
  66. package/dist/validation/message.d.ts.map +1 -0
  67. package/dist/validation/message.js +33 -0
  68. package/dist/validation/message.js.map +1 -0
  69. package/dist/validation/project.d.ts +47 -0
  70. package/dist/validation/project.d.ts.map +1 -0
  71. package/dist/validation/project.js +19 -0
  72. package/dist/validation/project.js.map +1 -0
  73. package/dist/validation/team.d.ts +64 -0
  74. package/dist/validation/team.d.ts.map +1 -0
  75. package/dist/validation/team.js +27 -0
  76. package/dist/validation/team.js.map +1 -0
  77. package/dist/validation/user.d.ts +147 -0
  78. package/dist/validation/user.d.ts.map +1 -0
  79. package/dist/validation/user.js +37 -0
  80. package/dist/validation/user.js.map +1 -0
  81. package/package.json +41 -0
@@ -0,0 +1,1671 @@
1
+ import { z } from 'zod';
2
+ export declare const themeColorsSchema: z.ZodObject<{
3
+ primary: z.ZodString;
4
+ primaryHover: z.ZodString;
5
+ secondary: z.ZodString;
6
+ background: z.ZodString;
7
+ backgroundSecondary: z.ZodString;
8
+ sidebar: z.ZodString;
9
+ textPrimary: z.ZodString;
10
+ textSecondary: z.ZodString;
11
+ textMuted: z.ZodString;
12
+ border: z.ZodString;
13
+ inputBackground: z.ZodString;
14
+ inputBorder: z.ZodString;
15
+ userMessageBg: z.ZodString;
16
+ userMessageText: z.ZodString;
17
+ assistantMessageBg: z.ZodString;
18
+ assistantMessageText: z.ZodString;
19
+ success: z.ZodString;
20
+ warning: z.ZodString;
21
+ error: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ primary: string;
24
+ primaryHover: string;
25
+ secondary: string;
26
+ background: string;
27
+ backgroundSecondary: string;
28
+ sidebar: string;
29
+ textPrimary: string;
30
+ textSecondary: string;
31
+ textMuted: string;
32
+ border: string;
33
+ inputBackground: string;
34
+ inputBorder: string;
35
+ userMessageBg: string;
36
+ userMessageText: string;
37
+ assistantMessageBg: string;
38
+ assistantMessageText: string;
39
+ success: string;
40
+ warning: string;
41
+ error: string;
42
+ }, {
43
+ primary: string;
44
+ primaryHover: string;
45
+ secondary: string;
46
+ background: string;
47
+ backgroundSecondary: string;
48
+ sidebar: string;
49
+ textPrimary: string;
50
+ textSecondary: string;
51
+ textMuted: string;
52
+ border: string;
53
+ inputBackground: string;
54
+ inputBorder: string;
55
+ userMessageBg: string;
56
+ userMessageText: string;
57
+ assistantMessageBg: string;
58
+ assistantMessageText: string;
59
+ success: string;
60
+ warning: string;
61
+ error: string;
62
+ }>;
63
+ export declare const themeSchema: z.ZodObject<{
64
+ name: z.ZodString;
65
+ colors: z.ZodObject<{
66
+ primary: z.ZodString;
67
+ primaryHover: z.ZodString;
68
+ secondary: z.ZodString;
69
+ background: z.ZodString;
70
+ backgroundSecondary: z.ZodString;
71
+ sidebar: z.ZodString;
72
+ textPrimary: z.ZodString;
73
+ textSecondary: z.ZodString;
74
+ textMuted: z.ZodString;
75
+ border: z.ZodString;
76
+ inputBackground: z.ZodString;
77
+ inputBorder: z.ZodString;
78
+ userMessageBg: z.ZodString;
79
+ userMessageText: z.ZodString;
80
+ assistantMessageBg: z.ZodString;
81
+ assistantMessageText: z.ZodString;
82
+ success: z.ZodString;
83
+ warning: z.ZodString;
84
+ error: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ primary: string;
87
+ primaryHover: string;
88
+ secondary: string;
89
+ background: string;
90
+ backgroundSecondary: string;
91
+ sidebar: string;
92
+ textPrimary: string;
93
+ textSecondary: string;
94
+ textMuted: string;
95
+ border: string;
96
+ inputBackground: string;
97
+ inputBorder: string;
98
+ userMessageBg: string;
99
+ userMessageText: string;
100
+ assistantMessageBg: string;
101
+ assistantMessageText: string;
102
+ success: string;
103
+ warning: string;
104
+ error: string;
105
+ }, {
106
+ primary: string;
107
+ primaryHover: string;
108
+ secondary: string;
109
+ background: string;
110
+ backgroundSecondary: string;
111
+ sidebar: string;
112
+ textPrimary: string;
113
+ textSecondary: string;
114
+ textMuted: string;
115
+ border: string;
116
+ inputBackground: string;
117
+ inputBorder: string;
118
+ userMessageBg: string;
119
+ userMessageText: string;
120
+ assistantMessageBg: string;
121
+ assistantMessageText: string;
122
+ success: string;
123
+ warning: string;
124
+ error: string;
125
+ }>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ name: string;
128
+ colors: {
129
+ primary: string;
130
+ primaryHover: string;
131
+ secondary: string;
132
+ background: string;
133
+ backgroundSecondary: string;
134
+ sidebar: string;
135
+ textPrimary: string;
136
+ textSecondary: string;
137
+ textMuted: string;
138
+ border: string;
139
+ inputBackground: string;
140
+ inputBorder: string;
141
+ userMessageBg: string;
142
+ userMessageText: string;
143
+ assistantMessageBg: string;
144
+ assistantMessageText: string;
145
+ success: string;
146
+ warning: string;
147
+ error: string;
148
+ };
149
+ }, {
150
+ name: string;
151
+ colors: {
152
+ primary: string;
153
+ primaryHover: string;
154
+ secondary: string;
155
+ background: string;
156
+ backgroundSecondary: string;
157
+ sidebar: string;
158
+ textPrimary: string;
159
+ textSecondary: string;
160
+ textMuted: string;
161
+ border: string;
162
+ inputBackground: string;
163
+ inputBorder: string;
164
+ userMessageBg: string;
165
+ userMessageText: string;
166
+ assistantMessageBg: string;
167
+ assistantMessageText: string;
168
+ success: string;
169
+ warning: string;
170
+ error: string;
171
+ };
172
+ }>;
173
+ export declare const themingConfigSchema: z.ZodObject<{
174
+ defaultTheme: z.ZodString;
175
+ allowUserThemeSwitch: z.ZodBoolean;
176
+ themes: z.ZodRecord<z.ZodString, z.ZodObject<{
177
+ name: z.ZodString;
178
+ colors: z.ZodObject<{
179
+ primary: z.ZodString;
180
+ primaryHover: z.ZodString;
181
+ secondary: z.ZodString;
182
+ background: z.ZodString;
183
+ backgroundSecondary: z.ZodString;
184
+ sidebar: z.ZodString;
185
+ textPrimary: z.ZodString;
186
+ textSecondary: z.ZodString;
187
+ textMuted: z.ZodString;
188
+ border: z.ZodString;
189
+ inputBackground: z.ZodString;
190
+ inputBorder: z.ZodString;
191
+ userMessageBg: z.ZodString;
192
+ userMessageText: z.ZodString;
193
+ assistantMessageBg: z.ZodString;
194
+ assistantMessageText: z.ZodString;
195
+ success: z.ZodString;
196
+ warning: z.ZodString;
197
+ error: z.ZodString;
198
+ }, "strip", z.ZodTypeAny, {
199
+ primary: string;
200
+ primaryHover: string;
201
+ secondary: string;
202
+ background: string;
203
+ backgroundSecondary: string;
204
+ sidebar: string;
205
+ textPrimary: string;
206
+ textSecondary: string;
207
+ textMuted: string;
208
+ border: string;
209
+ inputBackground: string;
210
+ inputBorder: string;
211
+ userMessageBg: string;
212
+ userMessageText: string;
213
+ assistantMessageBg: string;
214
+ assistantMessageText: string;
215
+ success: string;
216
+ warning: string;
217
+ error: string;
218
+ }, {
219
+ primary: string;
220
+ primaryHover: string;
221
+ secondary: string;
222
+ background: string;
223
+ backgroundSecondary: string;
224
+ sidebar: string;
225
+ textPrimary: string;
226
+ textSecondary: string;
227
+ textMuted: string;
228
+ border: string;
229
+ inputBackground: string;
230
+ inputBorder: string;
231
+ userMessageBg: string;
232
+ userMessageText: string;
233
+ assistantMessageBg: string;
234
+ assistantMessageText: string;
235
+ success: string;
236
+ warning: string;
237
+ error: string;
238
+ }>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ name: string;
241
+ colors: {
242
+ primary: string;
243
+ primaryHover: string;
244
+ secondary: string;
245
+ background: string;
246
+ backgroundSecondary: string;
247
+ sidebar: string;
248
+ textPrimary: string;
249
+ textSecondary: string;
250
+ textMuted: string;
251
+ border: string;
252
+ inputBackground: string;
253
+ inputBorder: string;
254
+ userMessageBg: string;
255
+ userMessageText: string;
256
+ assistantMessageBg: string;
257
+ assistantMessageText: string;
258
+ success: string;
259
+ warning: string;
260
+ error: string;
261
+ };
262
+ }, {
263
+ name: string;
264
+ colors: {
265
+ primary: string;
266
+ primaryHover: string;
267
+ secondary: string;
268
+ background: string;
269
+ backgroundSecondary: string;
270
+ sidebar: string;
271
+ textPrimary: string;
272
+ textSecondary: string;
273
+ textMuted: string;
274
+ border: string;
275
+ inputBackground: string;
276
+ inputBorder: string;
277
+ userMessageBg: string;
278
+ userMessageText: string;
279
+ assistantMessageBg: string;
280
+ assistantMessageText: string;
281
+ success: string;
282
+ warning: string;
283
+ error: string;
284
+ };
285
+ }>>;
286
+ fonts: z.ZodObject<{
287
+ sans: z.ZodString;
288
+ mono: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ sans: string;
291
+ mono: string;
292
+ }, {
293
+ sans: string;
294
+ mono: string;
295
+ }>;
296
+ borderRadius: z.ZodObject<{
297
+ sm: z.ZodString;
298
+ md: z.ZodString;
299
+ lg: z.ZodString;
300
+ full: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ sm: string;
303
+ md: string;
304
+ lg: string;
305
+ full: string;
306
+ }, {
307
+ sm: string;
308
+ md: string;
309
+ lg: string;
310
+ full: string;
311
+ }>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ defaultTheme: string;
314
+ allowUserThemeSwitch: boolean;
315
+ themes: Record<string, {
316
+ name: string;
317
+ colors: {
318
+ primary: string;
319
+ primaryHover: string;
320
+ secondary: string;
321
+ background: string;
322
+ backgroundSecondary: string;
323
+ sidebar: string;
324
+ textPrimary: string;
325
+ textSecondary: string;
326
+ textMuted: string;
327
+ border: string;
328
+ inputBackground: string;
329
+ inputBorder: string;
330
+ userMessageBg: string;
331
+ userMessageText: string;
332
+ assistantMessageBg: string;
333
+ assistantMessageText: string;
334
+ success: string;
335
+ warning: string;
336
+ error: string;
337
+ };
338
+ }>;
339
+ fonts: {
340
+ sans: string;
341
+ mono: string;
342
+ };
343
+ borderRadius: {
344
+ sm: string;
345
+ md: string;
346
+ lg: string;
347
+ full: string;
348
+ };
349
+ }, {
350
+ defaultTheme: string;
351
+ allowUserThemeSwitch: boolean;
352
+ themes: Record<string, {
353
+ name: string;
354
+ colors: {
355
+ primary: string;
356
+ primaryHover: string;
357
+ secondary: string;
358
+ background: string;
359
+ backgroundSecondary: string;
360
+ sidebar: string;
361
+ textPrimary: string;
362
+ textSecondary: string;
363
+ textMuted: string;
364
+ border: string;
365
+ inputBackground: string;
366
+ inputBorder: string;
367
+ userMessageBg: string;
368
+ userMessageText: string;
369
+ assistantMessageBg: string;
370
+ assistantMessageText: string;
371
+ success: string;
372
+ warning: string;
373
+ error: string;
374
+ };
375
+ }>;
376
+ fonts: {
377
+ sans: string;
378
+ mono: string;
379
+ };
380
+ borderRadius: {
381
+ sm: string;
382
+ md: string;
383
+ lg: string;
384
+ full: string;
385
+ };
386
+ }>;
387
+ export declare const samplePromptSchema: z.ZodObject<{
388
+ label: z.ZodString;
389
+ prompt: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ label: string;
392
+ prompt: string;
393
+ }, {
394
+ label: string;
395
+ prompt: string;
396
+ }>;
397
+ export declare const uiConfigSchema: z.ZodObject<{
398
+ welcomeTitle: z.ZodString;
399
+ welcomeSubtitle: z.ZodString;
400
+ inputPlaceholder: z.ZodString;
401
+ samplePrompts: z.ZodArray<z.ZodObject<{
402
+ label: z.ZodString;
403
+ prompt: z.ZodString;
404
+ }, "strip", z.ZodTypeAny, {
405
+ label: string;
406
+ prompt: string;
407
+ }, {
408
+ label: string;
409
+ prompt: string;
410
+ }>, "many">;
411
+ logo: z.ZodUnion<[z.ZodString, z.ZodObject<{
412
+ light: z.ZodString;
413
+ dark: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ light: string;
416
+ dark: string;
417
+ }, {
418
+ light: string;
419
+ dark: string;
420
+ }>]>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ welcomeTitle: string;
423
+ welcomeSubtitle: string;
424
+ inputPlaceholder: string;
425
+ samplePrompts: {
426
+ label: string;
427
+ prompt: string;
428
+ }[];
429
+ logo: string | {
430
+ light: string;
431
+ dark: string;
432
+ };
433
+ }, {
434
+ welcomeTitle: string;
435
+ welcomeSubtitle: string;
436
+ inputPlaceholder: string;
437
+ samplePrompts: {
438
+ label: string;
439
+ prompt: string;
440
+ }[];
441
+ logo: string | {
442
+ light: string;
443
+ dark: string;
444
+ };
445
+ }>;
446
+ export declare const authConfigSchema: z.ZodObject<{
447
+ methods: z.ZodArray<z.ZodEnum<["email-password", "google", "github", "magic-link"]>, "many">;
448
+ allowUnauthenticated: z.ZodBoolean;
449
+ magicLink: z.ZodObject<{
450
+ enabled: z.ZodBoolean;
451
+ expiresInMinutes: z.ZodNumber;
452
+ }, "strip", z.ZodTypeAny, {
453
+ enabled: boolean;
454
+ expiresInMinutes: number;
455
+ }, {
456
+ enabled: boolean;
457
+ expiresInMinutes: number;
458
+ }>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
461
+ allowUnauthenticated: boolean;
462
+ magicLink: {
463
+ enabled: boolean;
464
+ expiresInMinutes: number;
465
+ };
466
+ }, {
467
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
468
+ allowUnauthenticated: boolean;
469
+ magicLink: {
470
+ enabled: boolean;
471
+ expiresInMinutes: number;
472
+ };
473
+ }>;
474
+ export declare const builtInAgentConfigSchema: z.ZodObject<{
475
+ type: z.ZodLiteral<"built-in">;
476
+ provider: z.ZodEnum<["anthropic", "openai"]>;
477
+ model: z.ZodString;
478
+ systemPrompt: z.ZodString;
479
+ maxTokens: z.ZodNumber;
480
+ }, "strip", z.ZodTypeAny, {
481
+ type: "built-in";
482
+ provider: "anthropic" | "openai";
483
+ model: string;
484
+ systemPrompt: string;
485
+ maxTokens: number;
486
+ }, {
487
+ type: "built-in";
488
+ provider: "anthropic" | "openai";
489
+ model: string;
490
+ systemPrompt: string;
491
+ maxTokens: number;
492
+ }>;
493
+ export declare const externalAgentConfigSchema: z.ZodObject<{
494
+ type: z.ZodLiteral<"external">;
495
+ endpoint: z.ZodString;
496
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ type: "external";
499
+ endpoint: string;
500
+ headers?: Record<string, string> | undefined;
501
+ }, {
502
+ type: "external";
503
+ endpoint: string;
504
+ headers?: Record<string, string> | undefined;
505
+ }>;
506
+ export declare const agentConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
507
+ type: z.ZodLiteral<"built-in">;
508
+ provider: z.ZodEnum<["anthropic", "openai"]>;
509
+ model: z.ZodString;
510
+ systemPrompt: z.ZodString;
511
+ maxTokens: z.ZodNumber;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "built-in";
514
+ provider: "anthropic" | "openai";
515
+ model: string;
516
+ systemPrompt: string;
517
+ maxTokens: number;
518
+ }, {
519
+ type: "built-in";
520
+ provider: "anthropic" | "openai";
521
+ model: string;
522
+ systemPrompt: string;
523
+ maxTokens: number;
524
+ }>, z.ZodObject<{
525
+ type: z.ZodLiteral<"external">;
526
+ endpoint: z.ZodString;
527
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ type: "external";
530
+ endpoint: string;
531
+ headers?: Record<string, string> | undefined;
532
+ }, {
533
+ type: "external";
534
+ endpoint: string;
535
+ headers?: Record<string, string> | undefined;
536
+ }>]>;
537
+ export declare const paymentPlanSchema: z.ZodObject<{
538
+ id: z.ZodString;
539
+ name: z.ZodString;
540
+ type: z.ZodEnum<["free", "monthly", "credits"]>;
541
+ params: z.ZodUnion<[z.ZodObject<{
542
+ monthlyMessageLimit: z.ZodNumber;
543
+ }, "strip", z.ZodTypeAny, {
544
+ monthlyMessageLimit: number;
545
+ }, {
546
+ monthlyMessageLimit: number;
547
+ }>, z.ZodObject<{
548
+ priceUSD: z.ZodNumber;
549
+ monthlyMessageLimit: z.ZodNumber;
550
+ stripePriceId: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ monthlyMessageLimit: number;
553
+ priceUSD: number;
554
+ stripePriceId: string;
555
+ }, {
556
+ monthlyMessageLimit: number;
557
+ priceUSD: number;
558
+ stripePriceId: string;
559
+ }>, z.ZodObject<{
560
+ pricePerCredit: z.ZodNumber;
561
+ messagesPerCredit: z.ZodNumber;
562
+ }, "strip", z.ZodTypeAny, {
563
+ pricePerCredit: number;
564
+ messagesPerCredit: number;
565
+ }, {
566
+ pricePerCredit: number;
567
+ messagesPerCredit: number;
568
+ }>]>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ params: {
571
+ monthlyMessageLimit: number;
572
+ } | {
573
+ monthlyMessageLimit: number;
574
+ priceUSD: number;
575
+ stripePriceId: string;
576
+ } | {
577
+ pricePerCredit: number;
578
+ messagesPerCredit: number;
579
+ };
580
+ type: "free" | "monthly" | "credits";
581
+ name: string;
582
+ id: string;
583
+ }, {
584
+ params: {
585
+ monthlyMessageLimit: number;
586
+ } | {
587
+ monthlyMessageLimit: number;
588
+ priceUSD: number;
589
+ stripePriceId: string;
590
+ } | {
591
+ pricePerCredit: number;
592
+ messagesPerCredit: number;
593
+ };
594
+ type: "free" | "monthly" | "credits";
595
+ name: string;
596
+ id: string;
597
+ }>;
598
+ export declare const paymentsConfigSchema: z.ZodObject<{
599
+ enabled: z.ZodBoolean;
600
+ provider: z.ZodLiteral<"stripe">;
601
+ plans: z.ZodArray<z.ZodObject<{
602
+ id: z.ZodString;
603
+ name: z.ZodString;
604
+ type: z.ZodEnum<["free", "monthly", "credits"]>;
605
+ params: z.ZodUnion<[z.ZodObject<{
606
+ monthlyMessageLimit: z.ZodNumber;
607
+ }, "strip", z.ZodTypeAny, {
608
+ monthlyMessageLimit: number;
609
+ }, {
610
+ monthlyMessageLimit: number;
611
+ }>, z.ZodObject<{
612
+ priceUSD: z.ZodNumber;
613
+ monthlyMessageLimit: z.ZodNumber;
614
+ stripePriceId: z.ZodString;
615
+ }, "strip", z.ZodTypeAny, {
616
+ monthlyMessageLimit: number;
617
+ priceUSD: number;
618
+ stripePriceId: string;
619
+ }, {
620
+ monthlyMessageLimit: number;
621
+ priceUSD: number;
622
+ stripePriceId: string;
623
+ }>, z.ZodObject<{
624
+ pricePerCredit: z.ZodNumber;
625
+ messagesPerCredit: z.ZodNumber;
626
+ }, "strip", z.ZodTypeAny, {
627
+ pricePerCredit: number;
628
+ messagesPerCredit: number;
629
+ }, {
630
+ pricePerCredit: number;
631
+ messagesPerCredit: number;
632
+ }>]>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ params: {
635
+ monthlyMessageLimit: number;
636
+ } | {
637
+ monthlyMessageLimit: number;
638
+ priceUSD: number;
639
+ stripePriceId: string;
640
+ } | {
641
+ pricePerCredit: number;
642
+ messagesPerCredit: number;
643
+ };
644
+ type: "free" | "monthly" | "credits";
645
+ name: string;
646
+ id: string;
647
+ }, {
648
+ params: {
649
+ monthlyMessageLimit: number;
650
+ } | {
651
+ monthlyMessageLimit: number;
652
+ priceUSD: number;
653
+ stripePriceId: string;
654
+ } | {
655
+ pricePerCredit: number;
656
+ messagesPerCredit: number;
657
+ };
658
+ type: "free" | "monthly" | "credits";
659
+ name: string;
660
+ id: string;
661
+ }>, "many">;
662
+ }, "strip", z.ZodTypeAny, {
663
+ enabled: boolean;
664
+ provider: "stripe";
665
+ plans: {
666
+ params: {
667
+ monthlyMessageLimit: number;
668
+ } | {
669
+ monthlyMessageLimit: number;
670
+ priceUSD: number;
671
+ stripePriceId: string;
672
+ } | {
673
+ pricePerCredit: number;
674
+ messagesPerCredit: number;
675
+ };
676
+ type: "free" | "monthly" | "credits";
677
+ name: string;
678
+ id: string;
679
+ }[];
680
+ }, {
681
+ enabled: boolean;
682
+ provider: "stripe";
683
+ plans: {
684
+ params: {
685
+ monthlyMessageLimit: number;
686
+ } | {
687
+ monthlyMessageLimit: number;
688
+ priceUSD: number;
689
+ stripePriceId: string;
690
+ } | {
691
+ pricePerCredit: number;
692
+ messagesPerCredit: number;
693
+ };
694
+ type: "free" | "monthly" | "credits";
695
+ name: string;
696
+ id: string;
697
+ }[];
698
+ }>;
699
+ export declare const mcpServerConfigSchema: z.ZodObject<{
700
+ id: z.ZodString;
701
+ name: z.ZodString;
702
+ transport: z.ZodEnum<["stdio", "sse"]>;
703
+ command: z.ZodOptional<z.ZodString>;
704
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
705
+ url: z.ZodOptional<z.ZodString>;
706
+ enabled: z.ZodBoolean;
707
+ }, "strip", z.ZodTypeAny, {
708
+ name: string;
709
+ enabled: boolean;
710
+ id: string;
711
+ transport: "stdio" | "sse";
712
+ command?: string | undefined;
713
+ args?: string[] | undefined;
714
+ url?: string | undefined;
715
+ }, {
716
+ name: string;
717
+ enabled: boolean;
718
+ id: string;
719
+ transport: "stdio" | "sse";
720
+ command?: string | undefined;
721
+ args?: string[] | undefined;
722
+ url?: string | undefined;
723
+ }>;
724
+ export declare const mcpConfigSchema: z.ZodObject<{
725
+ servers: z.ZodArray<z.ZodObject<{
726
+ id: z.ZodString;
727
+ name: z.ZodString;
728
+ transport: z.ZodEnum<["stdio", "sse"]>;
729
+ command: z.ZodOptional<z.ZodString>;
730
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
731
+ url: z.ZodOptional<z.ZodString>;
732
+ enabled: z.ZodBoolean;
733
+ }, "strip", z.ZodTypeAny, {
734
+ name: string;
735
+ enabled: boolean;
736
+ id: string;
737
+ transport: "stdio" | "sse";
738
+ command?: string | undefined;
739
+ args?: string[] | undefined;
740
+ url?: string | undefined;
741
+ }, {
742
+ name: string;
743
+ enabled: boolean;
744
+ id: string;
745
+ transport: "stdio" | "sse";
746
+ command?: string | undefined;
747
+ args?: string[] | undefined;
748
+ url?: string | undefined;
749
+ }>, "many">;
750
+ allowUserServers: z.ZodBoolean;
751
+ requireToolConfirmation: z.ZodBoolean;
752
+ toolTimeout: z.ZodNumber;
753
+ }, "strip", z.ZodTypeAny, {
754
+ servers: {
755
+ name: string;
756
+ enabled: boolean;
757
+ id: string;
758
+ transport: "stdio" | "sse";
759
+ command?: string | undefined;
760
+ args?: string[] | undefined;
761
+ url?: string | undefined;
762
+ }[];
763
+ allowUserServers: boolean;
764
+ requireToolConfirmation: boolean;
765
+ toolTimeout: number;
766
+ }, {
767
+ servers: {
768
+ name: string;
769
+ enabled: boolean;
770
+ id: string;
771
+ transport: "stdio" | "sse";
772
+ command?: string | undefined;
773
+ args?: string[] | undefined;
774
+ url?: string | undefined;
775
+ }[];
776
+ allowUserServers: boolean;
777
+ requireToolConfirmation: boolean;
778
+ toolTimeout: number;
779
+ }>;
780
+ export declare const userSettingsFieldSchema: z.ZodObject<{
781
+ key: z.ZodString;
782
+ label: z.ZodString;
783
+ type: z.ZodEnum<["text", "select", "textarea"]>;
784
+ placeholder: z.ZodOptional<z.ZodString>;
785
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ type: "text" | "select" | "textarea";
788
+ label: string;
789
+ key: string;
790
+ options?: string[] | undefined;
791
+ placeholder?: string | undefined;
792
+ }, {
793
+ type: "text" | "select" | "textarea";
794
+ label: string;
795
+ key: string;
796
+ options?: string[] | undefined;
797
+ placeholder?: string | undefined;
798
+ }>;
799
+ export declare const appConfigSchema: z.ZodObject<{
800
+ app: z.ZodObject<{
801
+ name: z.ZodString;
802
+ description: z.ZodString;
803
+ url: z.ZodString;
804
+ }, "strip", z.ZodTypeAny, {
805
+ name: string;
806
+ url: string;
807
+ description: string;
808
+ }, {
809
+ name: string;
810
+ url: string;
811
+ description: string;
812
+ }>;
813
+ ui: z.ZodObject<{
814
+ welcomeTitle: z.ZodString;
815
+ welcomeSubtitle: z.ZodString;
816
+ inputPlaceholder: z.ZodString;
817
+ samplePrompts: z.ZodArray<z.ZodObject<{
818
+ label: z.ZodString;
819
+ prompt: z.ZodString;
820
+ }, "strip", z.ZodTypeAny, {
821
+ label: string;
822
+ prompt: string;
823
+ }, {
824
+ label: string;
825
+ prompt: string;
826
+ }>, "many">;
827
+ logo: z.ZodUnion<[z.ZodString, z.ZodObject<{
828
+ light: z.ZodString;
829
+ dark: z.ZodString;
830
+ }, "strip", z.ZodTypeAny, {
831
+ light: string;
832
+ dark: string;
833
+ }, {
834
+ light: string;
835
+ dark: string;
836
+ }>]>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ welcomeTitle: string;
839
+ welcomeSubtitle: string;
840
+ inputPlaceholder: string;
841
+ samplePrompts: {
842
+ label: string;
843
+ prompt: string;
844
+ }[];
845
+ logo: string | {
846
+ light: string;
847
+ dark: string;
848
+ };
849
+ }, {
850
+ welcomeTitle: string;
851
+ welcomeSubtitle: string;
852
+ inputPlaceholder: string;
853
+ samplePrompts: {
854
+ label: string;
855
+ prompt: string;
856
+ }[];
857
+ logo: string | {
858
+ light: string;
859
+ dark: string;
860
+ };
861
+ }>;
862
+ theming: z.ZodObject<{
863
+ defaultTheme: z.ZodString;
864
+ allowUserThemeSwitch: z.ZodBoolean;
865
+ themes: z.ZodRecord<z.ZodString, z.ZodObject<{
866
+ name: z.ZodString;
867
+ colors: z.ZodObject<{
868
+ primary: z.ZodString;
869
+ primaryHover: z.ZodString;
870
+ secondary: z.ZodString;
871
+ background: z.ZodString;
872
+ backgroundSecondary: z.ZodString;
873
+ sidebar: z.ZodString;
874
+ textPrimary: z.ZodString;
875
+ textSecondary: z.ZodString;
876
+ textMuted: z.ZodString;
877
+ border: z.ZodString;
878
+ inputBackground: z.ZodString;
879
+ inputBorder: z.ZodString;
880
+ userMessageBg: z.ZodString;
881
+ userMessageText: z.ZodString;
882
+ assistantMessageBg: z.ZodString;
883
+ assistantMessageText: z.ZodString;
884
+ success: z.ZodString;
885
+ warning: z.ZodString;
886
+ error: z.ZodString;
887
+ }, "strip", z.ZodTypeAny, {
888
+ primary: string;
889
+ primaryHover: string;
890
+ secondary: string;
891
+ background: string;
892
+ backgroundSecondary: string;
893
+ sidebar: string;
894
+ textPrimary: string;
895
+ textSecondary: string;
896
+ textMuted: string;
897
+ border: string;
898
+ inputBackground: string;
899
+ inputBorder: string;
900
+ userMessageBg: string;
901
+ userMessageText: string;
902
+ assistantMessageBg: string;
903
+ assistantMessageText: string;
904
+ success: string;
905
+ warning: string;
906
+ error: string;
907
+ }, {
908
+ primary: string;
909
+ primaryHover: string;
910
+ secondary: string;
911
+ background: string;
912
+ backgroundSecondary: string;
913
+ sidebar: string;
914
+ textPrimary: string;
915
+ textSecondary: string;
916
+ textMuted: string;
917
+ border: string;
918
+ inputBackground: string;
919
+ inputBorder: string;
920
+ userMessageBg: string;
921
+ userMessageText: string;
922
+ assistantMessageBg: string;
923
+ assistantMessageText: string;
924
+ success: string;
925
+ warning: string;
926
+ error: string;
927
+ }>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ name: string;
930
+ colors: {
931
+ primary: string;
932
+ primaryHover: string;
933
+ secondary: string;
934
+ background: string;
935
+ backgroundSecondary: string;
936
+ sidebar: string;
937
+ textPrimary: string;
938
+ textSecondary: string;
939
+ textMuted: string;
940
+ border: string;
941
+ inputBackground: string;
942
+ inputBorder: string;
943
+ userMessageBg: string;
944
+ userMessageText: string;
945
+ assistantMessageBg: string;
946
+ assistantMessageText: string;
947
+ success: string;
948
+ warning: string;
949
+ error: string;
950
+ };
951
+ }, {
952
+ name: string;
953
+ colors: {
954
+ primary: string;
955
+ primaryHover: string;
956
+ secondary: string;
957
+ background: string;
958
+ backgroundSecondary: string;
959
+ sidebar: string;
960
+ textPrimary: string;
961
+ textSecondary: string;
962
+ textMuted: string;
963
+ border: string;
964
+ inputBackground: string;
965
+ inputBorder: string;
966
+ userMessageBg: string;
967
+ userMessageText: string;
968
+ assistantMessageBg: string;
969
+ assistantMessageText: string;
970
+ success: string;
971
+ warning: string;
972
+ error: string;
973
+ };
974
+ }>>;
975
+ fonts: z.ZodObject<{
976
+ sans: z.ZodString;
977
+ mono: z.ZodString;
978
+ }, "strip", z.ZodTypeAny, {
979
+ sans: string;
980
+ mono: string;
981
+ }, {
982
+ sans: string;
983
+ mono: string;
984
+ }>;
985
+ borderRadius: z.ZodObject<{
986
+ sm: z.ZodString;
987
+ md: z.ZodString;
988
+ lg: z.ZodString;
989
+ full: z.ZodString;
990
+ }, "strip", z.ZodTypeAny, {
991
+ sm: string;
992
+ md: string;
993
+ lg: string;
994
+ full: string;
995
+ }, {
996
+ sm: string;
997
+ md: string;
998
+ lg: string;
999
+ full: string;
1000
+ }>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ defaultTheme: string;
1003
+ allowUserThemeSwitch: boolean;
1004
+ themes: Record<string, {
1005
+ name: string;
1006
+ colors: {
1007
+ primary: string;
1008
+ primaryHover: string;
1009
+ secondary: string;
1010
+ background: string;
1011
+ backgroundSecondary: string;
1012
+ sidebar: string;
1013
+ textPrimary: string;
1014
+ textSecondary: string;
1015
+ textMuted: string;
1016
+ border: string;
1017
+ inputBackground: string;
1018
+ inputBorder: string;
1019
+ userMessageBg: string;
1020
+ userMessageText: string;
1021
+ assistantMessageBg: string;
1022
+ assistantMessageText: string;
1023
+ success: string;
1024
+ warning: string;
1025
+ error: string;
1026
+ };
1027
+ }>;
1028
+ fonts: {
1029
+ sans: string;
1030
+ mono: string;
1031
+ };
1032
+ borderRadius: {
1033
+ sm: string;
1034
+ md: string;
1035
+ lg: string;
1036
+ full: string;
1037
+ };
1038
+ }, {
1039
+ defaultTheme: string;
1040
+ allowUserThemeSwitch: boolean;
1041
+ themes: Record<string, {
1042
+ name: string;
1043
+ colors: {
1044
+ primary: string;
1045
+ primaryHover: string;
1046
+ secondary: string;
1047
+ background: string;
1048
+ backgroundSecondary: string;
1049
+ sidebar: string;
1050
+ textPrimary: string;
1051
+ textSecondary: string;
1052
+ textMuted: string;
1053
+ border: string;
1054
+ inputBackground: string;
1055
+ inputBorder: string;
1056
+ userMessageBg: string;
1057
+ userMessageText: string;
1058
+ assistantMessageBg: string;
1059
+ assistantMessageText: string;
1060
+ success: string;
1061
+ warning: string;
1062
+ error: string;
1063
+ };
1064
+ }>;
1065
+ fonts: {
1066
+ sans: string;
1067
+ mono: string;
1068
+ };
1069
+ borderRadius: {
1070
+ sm: string;
1071
+ md: string;
1072
+ lg: string;
1073
+ full: string;
1074
+ };
1075
+ }>;
1076
+ auth: z.ZodObject<{
1077
+ methods: z.ZodArray<z.ZodEnum<["email-password", "google", "github", "magic-link"]>, "many">;
1078
+ allowUnauthenticated: z.ZodBoolean;
1079
+ magicLink: z.ZodObject<{
1080
+ enabled: z.ZodBoolean;
1081
+ expiresInMinutes: z.ZodNumber;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ enabled: boolean;
1084
+ expiresInMinutes: number;
1085
+ }, {
1086
+ enabled: boolean;
1087
+ expiresInMinutes: number;
1088
+ }>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
1091
+ allowUnauthenticated: boolean;
1092
+ magicLink: {
1093
+ enabled: boolean;
1094
+ expiresInMinutes: number;
1095
+ };
1096
+ }, {
1097
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
1098
+ allowUnauthenticated: boolean;
1099
+ magicLink: {
1100
+ enabled: boolean;
1101
+ expiresInMinutes: number;
1102
+ };
1103
+ }>;
1104
+ agent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1105
+ type: z.ZodLiteral<"built-in">;
1106
+ provider: z.ZodEnum<["anthropic", "openai"]>;
1107
+ model: z.ZodString;
1108
+ systemPrompt: z.ZodString;
1109
+ maxTokens: z.ZodNumber;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ type: "built-in";
1112
+ provider: "anthropic" | "openai";
1113
+ model: string;
1114
+ systemPrompt: string;
1115
+ maxTokens: number;
1116
+ }, {
1117
+ type: "built-in";
1118
+ provider: "anthropic" | "openai";
1119
+ model: string;
1120
+ systemPrompt: string;
1121
+ maxTokens: number;
1122
+ }>, z.ZodObject<{
1123
+ type: z.ZodLiteral<"external">;
1124
+ endpoint: z.ZodString;
1125
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ type: "external";
1128
+ endpoint: string;
1129
+ headers?: Record<string, string> | undefined;
1130
+ }, {
1131
+ type: "external";
1132
+ endpoint: string;
1133
+ headers?: Record<string, string> | undefined;
1134
+ }>]>;
1135
+ payments: z.ZodObject<{
1136
+ enabled: z.ZodBoolean;
1137
+ provider: z.ZodLiteral<"stripe">;
1138
+ plans: z.ZodArray<z.ZodObject<{
1139
+ id: z.ZodString;
1140
+ name: z.ZodString;
1141
+ type: z.ZodEnum<["free", "monthly", "credits"]>;
1142
+ params: z.ZodUnion<[z.ZodObject<{
1143
+ monthlyMessageLimit: z.ZodNumber;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ monthlyMessageLimit: number;
1146
+ }, {
1147
+ monthlyMessageLimit: number;
1148
+ }>, z.ZodObject<{
1149
+ priceUSD: z.ZodNumber;
1150
+ monthlyMessageLimit: z.ZodNumber;
1151
+ stripePriceId: z.ZodString;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ monthlyMessageLimit: number;
1154
+ priceUSD: number;
1155
+ stripePriceId: string;
1156
+ }, {
1157
+ monthlyMessageLimit: number;
1158
+ priceUSD: number;
1159
+ stripePriceId: string;
1160
+ }>, z.ZodObject<{
1161
+ pricePerCredit: z.ZodNumber;
1162
+ messagesPerCredit: z.ZodNumber;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ pricePerCredit: number;
1165
+ messagesPerCredit: number;
1166
+ }, {
1167
+ pricePerCredit: number;
1168
+ messagesPerCredit: number;
1169
+ }>]>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ params: {
1172
+ monthlyMessageLimit: number;
1173
+ } | {
1174
+ monthlyMessageLimit: number;
1175
+ priceUSD: number;
1176
+ stripePriceId: string;
1177
+ } | {
1178
+ pricePerCredit: number;
1179
+ messagesPerCredit: number;
1180
+ };
1181
+ type: "free" | "monthly" | "credits";
1182
+ name: string;
1183
+ id: string;
1184
+ }, {
1185
+ params: {
1186
+ monthlyMessageLimit: number;
1187
+ } | {
1188
+ monthlyMessageLimit: number;
1189
+ priceUSD: number;
1190
+ stripePriceId: string;
1191
+ } | {
1192
+ pricePerCredit: number;
1193
+ messagesPerCredit: number;
1194
+ };
1195
+ type: "free" | "monthly" | "credits";
1196
+ name: string;
1197
+ id: string;
1198
+ }>, "many">;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ enabled: boolean;
1201
+ provider: "stripe";
1202
+ plans: {
1203
+ params: {
1204
+ monthlyMessageLimit: number;
1205
+ } | {
1206
+ monthlyMessageLimit: number;
1207
+ priceUSD: number;
1208
+ stripePriceId: string;
1209
+ } | {
1210
+ pricePerCredit: number;
1211
+ messagesPerCredit: number;
1212
+ };
1213
+ type: "free" | "monthly" | "credits";
1214
+ name: string;
1215
+ id: string;
1216
+ }[];
1217
+ }, {
1218
+ enabled: boolean;
1219
+ provider: "stripe";
1220
+ plans: {
1221
+ params: {
1222
+ monthlyMessageLimit: number;
1223
+ } | {
1224
+ monthlyMessageLimit: number;
1225
+ priceUSD: number;
1226
+ stripePriceId: string;
1227
+ } | {
1228
+ pricePerCredit: number;
1229
+ messagesPerCredit: number;
1230
+ };
1231
+ type: "free" | "monthly" | "credits";
1232
+ name: string;
1233
+ id: string;
1234
+ }[];
1235
+ }>;
1236
+ legal: z.ZodObject<{
1237
+ privacyPolicyUrl: z.ZodString;
1238
+ termsOfServiceUrl: z.ZodString;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ privacyPolicyUrl: string;
1241
+ termsOfServiceUrl: string;
1242
+ }, {
1243
+ privacyPolicyUrl: string;
1244
+ termsOfServiceUrl: string;
1245
+ }>;
1246
+ userSettings: z.ZodObject<{
1247
+ fields: z.ZodArray<z.ZodObject<{
1248
+ key: z.ZodString;
1249
+ label: z.ZodString;
1250
+ type: z.ZodEnum<["text", "select", "textarea"]>;
1251
+ placeholder: z.ZodOptional<z.ZodString>;
1252
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ type: "text" | "select" | "textarea";
1255
+ label: string;
1256
+ key: string;
1257
+ options?: string[] | undefined;
1258
+ placeholder?: string | undefined;
1259
+ }, {
1260
+ type: "text" | "select" | "textarea";
1261
+ label: string;
1262
+ key: string;
1263
+ options?: string[] | undefined;
1264
+ placeholder?: string | undefined;
1265
+ }>, "many">;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ fields: {
1268
+ type: "text" | "select" | "textarea";
1269
+ label: string;
1270
+ key: string;
1271
+ options?: string[] | undefined;
1272
+ placeholder?: string | undefined;
1273
+ }[];
1274
+ }, {
1275
+ fields: {
1276
+ type: "text" | "select" | "textarea";
1277
+ label: string;
1278
+ key: string;
1279
+ options?: string[] | undefined;
1280
+ placeholder?: string | undefined;
1281
+ }[];
1282
+ }>;
1283
+ mcp: z.ZodOptional<z.ZodObject<{
1284
+ servers: z.ZodArray<z.ZodObject<{
1285
+ id: z.ZodString;
1286
+ name: z.ZodString;
1287
+ transport: z.ZodEnum<["stdio", "sse"]>;
1288
+ command: z.ZodOptional<z.ZodString>;
1289
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1290
+ url: z.ZodOptional<z.ZodString>;
1291
+ enabled: z.ZodBoolean;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ name: string;
1294
+ enabled: boolean;
1295
+ id: string;
1296
+ transport: "stdio" | "sse";
1297
+ command?: string | undefined;
1298
+ args?: string[] | undefined;
1299
+ url?: string | undefined;
1300
+ }, {
1301
+ name: string;
1302
+ enabled: boolean;
1303
+ id: string;
1304
+ transport: "stdio" | "sse";
1305
+ command?: string | undefined;
1306
+ args?: string[] | undefined;
1307
+ url?: string | undefined;
1308
+ }>, "many">;
1309
+ allowUserServers: z.ZodBoolean;
1310
+ requireToolConfirmation: z.ZodBoolean;
1311
+ toolTimeout: z.ZodNumber;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ servers: {
1314
+ name: string;
1315
+ enabled: boolean;
1316
+ id: string;
1317
+ transport: "stdio" | "sse";
1318
+ command?: string | undefined;
1319
+ args?: string[] | undefined;
1320
+ url?: string | undefined;
1321
+ }[];
1322
+ allowUserServers: boolean;
1323
+ requireToolConfirmation: boolean;
1324
+ toolTimeout: number;
1325
+ }, {
1326
+ servers: {
1327
+ name: string;
1328
+ enabled: boolean;
1329
+ id: string;
1330
+ transport: "stdio" | "sse";
1331
+ command?: string | undefined;
1332
+ args?: string[] | undefined;
1333
+ url?: string | undefined;
1334
+ }[];
1335
+ allowUserServers: boolean;
1336
+ requireToolConfirmation: boolean;
1337
+ toolTimeout: number;
1338
+ }>>;
1339
+ sharing: z.ZodOptional<z.ZodObject<{
1340
+ enabled: z.ZodBoolean;
1341
+ allowPublicLinks: z.ZodBoolean;
1342
+ allowTeamSharing: z.ZodBoolean;
1343
+ expirationOptions: z.ZodArray<z.ZodString, "many">;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ enabled: boolean;
1346
+ allowPublicLinks: boolean;
1347
+ allowTeamSharing: boolean;
1348
+ expirationOptions: string[];
1349
+ }, {
1350
+ enabled: boolean;
1351
+ allowPublicLinks: boolean;
1352
+ allowTeamSharing: boolean;
1353
+ expirationOptions: string[];
1354
+ }>>;
1355
+ promptTemplates: z.ZodOptional<z.ZodObject<{
1356
+ enabled: z.ZodBoolean;
1357
+ builtIn: z.ZodArray<z.ZodObject<{
1358
+ id: z.ZodString;
1359
+ name: z.ZodString;
1360
+ prompt: z.ZodString;
1361
+ variables: z.ZodArray<z.ZodString, "many">;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ name: string;
1364
+ prompt: string;
1365
+ id: string;
1366
+ variables: string[];
1367
+ }, {
1368
+ name: string;
1369
+ prompt: string;
1370
+ id: string;
1371
+ variables: string[];
1372
+ }>, "many">;
1373
+ allowUserTemplates: z.ZodBoolean;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ enabled: boolean;
1376
+ builtIn: {
1377
+ name: string;
1378
+ prompt: string;
1379
+ id: string;
1380
+ variables: string[];
1381
+ }[];
1382
+ allowUserTemplates: boolean;
1383
+ }, {
1384
+ enabled: boolean;
1385
+ builtIn: {
1386
+ name: string;
1387
+ prompt: string;
1388
+ id: string;
1389
+ variables: string[];
1390
+ }[];
1391
+ allowUserTemplates: boolean;
1392
+ }>>;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ app: {
1395
+ name: string;
1396
+ url: string;
1397
+ description: string;
1398
+ };
1399
+ ui: {
1400
+ welcomeTitle: string;
1401
+ welcomeSubtitle: string;
1402
+ inputPlaceholder: string;
1403
+ samplePrompts: {
1404
+ label: string;
1405
+ prompt: string;
1406
+ }[];
1407
+ logo: string | {
1408
+ light: string;
1409
+ dark: string;
1410
+ };
1411
+ };
1412
+ theming: {
1413
+ defaultTheme: string;
1414
+ allowUserThemeSwitch: boolean;
1415
+ themes: Record<string, {
1416
+ name: string;
1417
+ colors: {
1418
+ primary: string;
1419
+ primaryHover: string;
1420
+ secondary: string;
1421
+ background: string;
1422
+ backgroundSecondary: string;
1423
+ sidebar: string;
1424
+ textPrimary: string;
1425
+ textSecondary: string;
1426
+ textMuted: string;
1427
+ border: string;
1428
+ inputBackground: string;
1429
+ inputBorder: string;
1430
+ userMessageBg: string;
1431
+ userMessageText: string;
1432
+ assistantMessageBg: string;
1433
+ assistantMessageText: string;
1434
+ success: string;
1435
+ warning: string;
1436
+ error: string;
1437
+ };
1438
+ }>;
1439
+ fonts: {
1440
+ sans: string;
1441
+ mono: string;
1442
+ };
1443
+ borderRadius: {
1444
+ sm: string;
1445
+ md: string;
1446
+ lg: string;
1447
+ full: string;
1448
+ };
1449
+ };
1450
+ auth: {
1451
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
1452
+ allowUnauthenticated: boolean;
1453
+ magicLink: {
1454
+ enabled: boolean;
1455
+ expiresInMinutes: number;
1456
+ };
1457
+ };
1458
+ agent: {
1459
+ type: "built-in";
1460
+ provider: "anthropic" | "openai";
1461
+ model: string;
1462
+ systemPrompt: string;
1463
+ maxTokens: number;
1464
+ } | {
1465
+ type: "external";
1466
+ endpoint: string;
1467
+ headers?: Record<string, string> | undefined;
1468
+ };
1469
+ payments: {
1470
+ enabled: boolean;
1471
+ provider: "stripe";
1472
+ plans: {
1473
+ params: {
1474
+ monthlyMessageLimit: number;
1475
+ } | {
1476
+ monthlyMessageLimit: number;
1477
+ priceUSD: number;
1478
+ stripePriceId: string;
1479
+ } | {
1480
+ pricePerCredit: number;
1481
+ messagesPerCredit: number;
1482
+ };
1483
+ type: "free" | "monthly" | "credits";
1484
+ name: string;
1485
+ id: string;
1486
+ }[];
1487
+ };
1488
+ legal: {
1489
+ privacyPolicyUrl: string;
1490
+ termsOfServiceUrl: string;
1491
+ };
1492
+ userSettings: {
1493
+ fields: {
1494
+ type: "text" | "select" | "textarea";
1495
+ label: string;
1496
+ key: string;
1497
+ options?: string[] | undefined;
1498
+ placeholder?: string | undefined;
1499
+ }[];
1500
+ };
1501
+ mcp?: {
1502
+ servers: {
1503
+ name: string;
1504
+ enabled: boolean;
1505
+ id: string;
1506
+ transport: "stdio" | "sse";
1507
+ command?: string | undefined;
1508
+ args?: string[] | undefined;
1509
+ url?: string | undefined;
1510
+ }[];
1511
+ allowUserServers: boolean;
1512
+ requireToolConfirmation: boolean;
1513
+ toolTimeout: number;
1514
+ } | undefined;
1515
+ sharing?: {
1516
+ enabled: boolean;
1517
+ allowPublicLinks: boolean;
1518
+ allowTeamSharing: boolean;
1519
+ expirationOptions: string[];
1520
+ } | undefined;
1521
+ promptTemplates?: {
1522
+ enabled: boolean;
1523
+ builtIn: {
1524
+ name: string;
1525
+ prompt: string;
1526
+ id: string;
1527
+ variables: string[];
1528
+ }[];
1529
+ allowUserTemplates: boolean;
1530
+ } | undefined;
1531
+ }, {
1532
+ app: {
1533
+ name: string;
1534
+ url: string;
1535
+ description: string;
1536
+ };
1537
+ ui: {
1538
+ welcomeTitle: string;
1539
+ welcomeSubtitle: string;
1540
+ inputPlaceholder: string;
1541
+ samplePrompts: {
1542
+ label: string;
1543
+ prompt: string;
1544
+ }[];
1545
+ logo: string | {
1546
+ light: string;
1547
+ dark: string;
1548
+ };
1549
+ };
1550
+ theming: {
1551
+ defaultTheme: string;
1552
+ allowUserThemeSwitch: boolean;
1553
+ themes: Record<string, {
1554
+ name: string;
1555
+ colors: {
1556
+ primary: string;
1557
+ primaryHover: string;
1558
+ secondary: string;
1559
+ background: string;
1560
+ backgroundSecondary: string;
1561
+ sidebar: string;
1562
+ textPrimary: string;
1563
+ textSecondary: string;
1564
+ textMuted: string;
1565
+ border: string;
1566
+ inputBackground: string;
1567
+ inputBorder: string;
1568
+ userMessageBg: string;
1569
+ userMessageText: string;
1570
+ assistantMessageBg: string;
1571
+ assistantMessageText: string;
1572
+ success: string;
1573
+ warning: string;
1574
+ error: string;
1575
+ };
1576
+ }>;
1577
+ fonts: {
1578
+ sans: string;
1579
+ mono: string;
1580
+ };
1581
+ borderRadius: {
1582
+ sm: string;
1583
+ md: string;
1584
+ lg: string;
1585
+ full: string;
1586
+ };
1587
+ };
1588
+ auth: {
1589
+ methods: ("email-password" | "google" | "github" | "magic-link")[];
1590
+ allowUnauthenticated: boolean;
1591
+ magicLink: {
1592
+ enabled: boolean;
1593
+ expiresInMinutes: number;
1594
+ };
1595
+ };
1596
+ agent: {
1597
+ type: "built-in";
1598
+ provider: "anthropic" | "openai";
1599
+ model: string;
1600
+ systemPrompt: string;
1601
+ maxTokens: number;
1602
+ } | {
1603
+ type: "external";
1604
+ endpoint: string;
1605
+ headers?: Record<string, string> | undefined;
1606
+ };
1607
+ payments: {
1608
+ enabled: boolean;
1609
+ provider: "stripe";
1610
+ plans: {
1611
+ params: {
1612
+ monthlyMessageLimit: number;
1613
+ } | {
1614
+ monthlyMessageLimit: number;
1615
+ priceUSD: number;
1616
+ stripePriceId: string;
1617
+ } | {
1618
+ pricePerCredit: number;
1619
+ messagesPerCredit: number;
1620
+ };
1621
+ type: "free" | "monthly" | "credits";
1622
+ name: string;
1623
+ id: string;
1624
+ }[];
1625
+ };
1626
+ legal: {
1627
+ privacyPolicyUrl: string;
1628
+ termsOfServiceUrl: string;
1629
+ };
1630
+ userSettings: {
1631
+ fields: {
1632
+ type: "text" | "select" | "textarea";
1633
+ label: string;
1634
+ key: string;
1635
+ options?: string[] | undefined;
1636
+ placeholder?: string | undefined;
1637
+ }[];
1638
+ };
1639
+ mcp?: {
1640
+ servers: {
1641
+ name: string;
1642
+ enabled: boolean;
1643
+ id: string;
1644
+ transport: "stdio" | "sse";
1645
+ command?: string | undefined;
1646
+ args?: string[] | undefined;
1647
+ url?: string | undefined;
1648
+ }[];
1649
+ allowUserServers: boolean;
1650
+ requireToolConfirmation: boolean;
1651
+ toolTimeout: number;
1652
+ } | undefined;
1653
+ sharing?: {
1654
+ enabled: boolean;
1655
+ allowPublicLinks: boolean;
1656
+ allowTeamSharing: boolean;
1657
+ expirationOptions: string[];
1658
+ } | undefined;
1659
+ promptTemplates?: {
1660
+ enabled: boolean;
1661
+ builtIn: {
1662
+ name: string;
1663
+ prompt: string;
1664
+ id: string;
1665
+ variables: string[];
1666
+ }[];
1667
+ allowUserTemplates: boolean;
1668
+ } | undefined;
1669
+ }>;
1670
+ export type ValidatedAppConfig = z.infer<typeof appConfigSchema>;
1671
+ //# sourceMappingURL=config.d.ts.map