@chaaskit/shared 0.1.1 → 0.1.2

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.
@@ -20,6 +20,8 @@ export declare const themeColorsSchema: z.ZodObject<{
20
20
  warning: z.ZodString;
21
21
  error: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ error: string;
24
+ success: string;
23
25
  primary: string;
24
26
  primaryHover: string;
25
27
  secondary: string;
@@ -36,10 +38,10 @@ export declare const themeColorsSchema: z.ZodObject<{
36
38
  userMessageText: string;
37
39
  assistantMessageBg: string;
38
40
  assistantMessageText: string;
39
- success: string;
40
41
  warning: string;
41
- error: string;
42
42
  }, {
43
+ error: string;
44
+ success: string;
43
45
  primary: string;
44
46
  primaryHover: string;
45
47
  secondary: string;
@@ -56,9 +58,7 @@ export declare const themeColorsSchema: z.ZodObject<{
56
58
  userMessageText: string;
57
59
  assistantMessageBg: string;
58
60
  assistantMessageText: string;
59
- success: string;
60
61
  warning: string;
61
- error: string;
62
62
  }>;
63
63
  export declare const themeSchema: z.ZodObject<{
64
64
  name: z.ZodString;
@@ -83,6 +83,8 @@ export declare const themeSchema: z.ZodObject<{
83
83
  warning: z.ZodString;
84
84
  error: z.ZodString;
85
85
  }, "strip", z.ZodTypeAny, {
86
+ error: string;
87
+ success: string;
86
88
  primary: string;
87
89
  primaryHover: string;
88
90
  secondary: string;
@@ -99,10 +101,10 @@ export declare const themeSchema: z.ZodObject<{
99
101
  userMessageText: string;
100
102
  assistantMessageBg: string;
101
103
  assistantMessageText: string;
102
- success: string;
103
104
  warning: string;
104
- error: string;
105
105
  }, {
106
+ error: string;
107
+ success: string;
106
108
  primary: string;
107
109
  primaryHover: string;
108
110
  secondary: string;
@@ -119,13 +121,13 @@ export declare const themeSchema: z.ZodObject<{
119
121
  userMessageText: string;
120
122
  assistantMessageBg: string;
121
123
  assistantMessageText: string;
122
- success: string;
123
124
  warning: string;
124
- error: string;
125
125
  }>;
126
126
  }, "strip", z.ZodTypeAny, {
127
127
  name: string;
128
128
  colors: {
129
+ error: string;
130
+ success: string;
129
131
  primary: string;
130
132
  primaryHover: string;
131
133
  secondary: string;
@@ -142,13 +144,13 @@ export declare const themeSchema: z.ZodObject<{
142
144
  userMessageText: string;
143
145
  assistantMessageBg: string;
144
146
  assistantMessageText: string;
145
- success: string;
146
147
  warning: string;
147
- error: string;
148
148
  };
149
149
  }, {
150
150
  name: string;
151
151
  colors: {
152
+ error: string;
153
+ success: string;
152
154
  primary: string;
153
155
  primaryHover: string;
154
156
  secondary: string;
@@ -165,9 +167,7 @@ export declare const themeSchema: z.ZodObject<{
165
167
  userMessageText: string;
166
168
  assistantMessageBg: string;
167
169
  assistantMessageText: string;
168
- success: string;
169
170
  warning: string;
170
- error: string;
171
171
  };
172
172
  }>;
173
173
  export declare const themingConfigSchema: z.ZodObject<{
@@ -196,6 +196,8 @@ export declare const themingConfigSchema: z.ZodObject<{
196
196
  warning: z.ZodString;
197
197
  error: z.ZodString;
198
198
  }, "strip", z.ZodTypeAny, {
199
+ error: string;
200
+ success: string;
199
201
  primary: string;
200
202
  primaryHover: string;
201
203
  secondary: string;
@@ -212,10 +214,10 @@ export declare const themingConfigSchema: z.ZodObject<{
212
214
  userMessageText: string;
213
215
  assistantMessageBg: string;
214
216
  assistantMessageText: string;
215
- success: string;
216
217
  warning: string;
217
- error: string;
218
218
  }, {
219
+ error: string;
220
+ success: string;
219
221
  primary: string;
220
222
  primaryHover: string;
221
223
  secondary: string;
@@ -232,13 +234,13 @@ export declare const themingConfigSchema: z.ZodObject<{
232
234
  userMessageText: string;
233
235
  assistantMessageBg: string;
234
236
  assistantMessageText: string;
235
- success: string;
236
237
  warning: string;
237
- error: string;
238
238
  }>;
239
239
  }, "strip", z.ZodTypeAny, {
240
240
  name: string;
241
241
  colors: {
242
+ error: string;
243
+ success: string;
242
244
  primary: string;
243
245
  primaryHover: string;
244
246
  secondary: string;
@@ -255,13 +257,13 @@ export declare const themingConfigSchema: z.ZodObject<{
255
257
  userMessageText: string;
256
258
  assistantMessageBg: string;
257
259
  assistantMessageText: string;
258
- success: string;
259
260
  warning: string;
260
- error: string;
261
261
  };
262
262
  }, {
263
263
  name: string;
264
264
  colors: {
265
+ error: string;
266
+ success: string;
265
267
  primary: string;
266
268
  primaryHover: string;
267
269
  secondary: string;
@@ -278,9 +280,7 @@ export declare const themingConfigSchema: z.ZodObject<{
278
280
  userMessageText: string;
279
281
  assistantMessageBg: string;
280
282
  assistantMessageText: string;
281
- success: string;
282
283
  warning: string;
283
- error: string;
284
284
  };
285
285
  }>>;
286
286
  fonts: z.ZodObject<{
@@ -315,6 +315,8 @@ export declare const themingConfigSchema: z.ZodObject<{
315
315
  themes: Record<string, {
316
316
  name: string;
317
317
  colors: {
318
+ error: string;
319
+ success: string;
318
320
  primary: string;
319
321
  primaryHover: string;
320
322
  secondary: string;
@@ -331,9 +333,7 @@ export declare const themingConfigSchema: z.ZodObject<{
331
333
  userMessageText: string;
332
334
  assistantMessageBg: string;
333
335
  assistantMessageText: string;
334
- success: string;
335
336
  warning: string;
336
- error: string;
337
337
  };
338
338
  }>;
339
339
  fonts: {
@@ -352,6 +352,8 @@ export declare const themingConfigSchema: z.ZodObject<{
352
352
  themes: Record<string, {
353
353
  name: string;
354
354
  colors: {
355
+ error: string;
356
+ success: string;
355
357
  primary: string;
356
358
  primaryHover: string;
357
359
  secondary: string;
@@ -368,9 +370,7 @@ export declare const themingConfigSchema: z.ZodObject<{
368
370
  userMessageText: string;
369
371
  assistantMessageBg: string;
370
372
  assistantMessageText: string;
371
- success: string;
372
373
  warning: string;
373
- error: string;
374
374
  };
375
375
  }>;
376
376
  fonts: {
@@ -443,6 +443,22 @@ export declare const uiConfigSchema: z.ZodObject<{
443
443
  dark: string;
444
444
  };
445
445
  }>;
446
+ export declare const emailVerificationSchema: z.ZodObject<{
447
+ enabled: z.ZodBoolean;
448
+ codeLength: z.ZodOptional<z.ZodNumber>;
449
+ expiresInMinutes: z.ZodOptional<z.ZodNumber>;
450
+ allowResendAfterSeconds: z.ZodOptional<z.ZodNumber>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ enabled: boolean;
453
+ codeLength?: number | undefined;
454
+ expiresInMinutes?: number | undefined;
455
+ allowResendAfterSeconds?: number | undefined;
456
+ }, {
457
+ enabled: boolean;
458
+ codeLength?: number | undefined;
459
+ expiresInMinutes?: number | undefined;
460
+ allowResendAfterSeconds?: number | undefined;
461
+ }>;
446
462
  export declare const authConfigSchema: z.ZodObject<{
447
463
  methods: z.ZodArray<z.ZodEnum<["email-password", "google", "github", "magic-link"]>, "many">;
448
464
  allowUnauthenticated: z.ZodBoolean;
@@ -456,6 +472,44 @@ export declare const authConfigSchema: z.ZodObject<{
456
472
  enabled: boolean;
457
473
  expiresInMinutes: number;
458
474
  }>;
475
+ emailVerification: z.ZodOptional<z.ZodObject<{
476
+ enabled: z.ZodBoolean;
477
+ codeLength: z.ZodOptional<z.ZodNumber>;
478
+ expiresInMinutes: z.ZodOptional<z.ZodNumber>;
479
+ allowResendAfterSeconds: z.ZodOptional<z.ZodNumber>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ enabled: boolean;
482
+ codeLength?: number | undefined;
483
+ expiresInMinutes?: number | undefined;
484
+ allowResendAfterSeconds?: number | undefined;
485
+ }, {
486
+ enabled: boolean;
487
+ codeLength?: number | undefined;
488
+ expiresInMinutes?: number | undefined;
489
+ allowResendAfterSeconds?: number | undefined;
490
+ }>>;
491
+ gating: z.ZodOptional<z.ZodObject<{
492
+ mode: z.ZodEnum<["open", "invite_only", "closed", "timed_window", "capacity_limit"]>;
493
+ inviteExpiryDays: z.ZodOptional<z.ZodNumber>;
494
+ windowStart: z.ZodOptional<z.ZodString>;
495
+ windowEnd: z.ZodOptional<z.ZodString>;
496
+ capacityLimit: z.ZodOptional<z.ZodNumber>;
497
+ waitlistEnabled: z.ZodOptional<z.ZodBoolean>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
500
+ inviteExpiryDays?: number | undefined;
501
+ windowStart?: string | undefined;
502
+ windowEnd?: string | undefined;
503
+ capacityLimit?: number | undefined;
504
+ waitlistEnabled?: boolean | undefined;
505
+ }, {
506
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
507
+ inviteExpiryDays?: number | undefined;
508
+ windowStart?: string | undefined;
509
+ windowEnd?: string | undefined;
510
+ capacityLimit?: number | undefined;
511
+ waitlistEnabled?: boolean | undefined;
512
+ }>>;
459
513
  }, "strip", z.ZodTypeAny, {
460
514
  methods: ("email-password" | "google" | "github" | "magic-link")[];
461
515
  allowUnauthenticated: boolean;
@@ -463,6 +517,20 @@ export declare const authConfigSchema: z.ZodObject<{
463
517
  enabled: boolean;
464
518
  expiresInMinutes: number;
465
519
  };
520
+ emailVerification?: {
521
+ enabled: boolean;
522
+ codeLength?: number | undefined;
523
+ expiresInMinutes?: number | undefined;
524
+ allowResendAfterSeconds?: number | undefined;
525
+ } | undefined;
526
+ gating?: {
527
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
528
+ inviteExpiryDays?: number | undefined;
529
+ windowStart?: string | undefined;
530
+ windowEnd?: string | undefined;
531
+ capacityLimit?: number | undefined;
532
+ waitlistEnabled?: boolean | undefined;
533
+ } | undefined;
466
534
  }, {
467
535
  methods: ("email-password" | "google" | "github" | "magic-link")[];
468
536
  allowUnauthenticated: boolean;
@@ -470,6 +538,20 @@ export declare const authConfigSchema: z.ZodObject<{
470
538
  enabled: boolean;
471
539
  expiresInMinutes: number;
472
540
  };
541
+ emailVerification?: {
542
+ enabled: boolean;
543
+ codeLength?: number | undefined;
544
+ expiresInMinutes?: number | undefined;
545
+ allowResendAfterSeconds?: number | undefined;
546
+ } | undefined;
547
+ gating?: {
548
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
549
+ inviteExpiryDays?: number | undefined;
550
+ windowStart?: string | undefined;
551
+ windowEnd?: string | undefined;
552
+ capacityLimit?: number | undefined;
553
+ waitlistEnabled?: boolean | undefined;
554
+ } | undefined;
473
555
  }>;
474
556
  export declare const builtInAgentConfigSchema: z.ZodObject<{
475
557
  type: z.ZodLiteral<"built-in">;
@@ -478,14 +560,14 @@ export declare const builtInAgentConfigSchema: z.ZodObject<{
478
560
  systemPrompt: z.ZodString;
479
561
  maxTokens: z.ZodNumber;
480
562
  }, "strip", z.ZodTypeAny, {
481
- type: "built-in";
482
563
  provider: "anthropic" | "openai";
564
+ type: "built-in";
483
565
  model: string;
484
566
  systemPrompt: string;
485
567
  maxTokens: number;
486
568
  }, {
487
- type: "built-in";
488
569
  provider: "anthropic" | "openai";
570
+ type: "built-in";
489
571
  model: string;
490
572
  systemPrompt: string;
491
573
  maxTokens: number;
@@ -503,21 +585,21 @@ export declare const externalAgentConfigSchema: z.ZodObject<{
503
585
  endpoint: string;
504
586
  headers?: Record<string, string> | undefined;
505
587
  }>;
506
- export declare const agentConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
588
+ export declare const agentConfigSchema: z.ZodUnion<[z.ZodObject<{
507
589
  type: z.ZodLiteral<"built-in">;
508
590
  provider: z.ZodEnum<["anthropic", "openai"]>;
509
591
  model: z.ZodString;
510
592
  systemPrompt: z.ZodString;
511
593
  maxTokens: z.ZodNumber;
512
594
  }, "strip", z.ZodTypeAny, {
513
- type: "built-in";
514
595
  provider: "anthropic" | "openai";
596
+ type: "built-in";
515
597
  model: string;
516
598
  systemPrompt: string;
517
599
  maxTokens: number;
518
600
  }, {
519
- type: "built-in";
520
601
  provider: "anthropic" | "openai";
602
+ type: "built-in";
521
603
  model: string;
522
604
  systemPrompt: string;
523
605
  maxTokens: number;
@@ -533,6 +615,107 @@ export declare const agentConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
533
615
  type: "external";
534
616
  endpoint: string;
535
617
  headers?: Record<string, string> | undefined;
618
+ }>, z.ZodObject<{
619
+ agents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
620
+ id: z.ZodString;
621
+ name: z.ZodString;
622
+ provider: z.ZodEnum<["anthropic", "openai"]>;
623
+ model: z.ZodString;
624
+ systemPrompt: z.ZodString;
625
+ maxTokens: z.ZodNumber;
626
+ isDefault: z.ZodOptional<z.ZodBoolean>;
627
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ plans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ provider: "anthropic" | "openai";
631
+ name: string;
632
+ model: string;
633
+ systemPrompt: string;
634
+ maxTokens: number;
635
+ id: string;
636
+ isDefault?: boolean | undefined;
637
+ allowedTools?: string[] | undefined;
638
+ plans?: string[] | undefined;
639
+ }, {
640
+ provider: "anthropic" | "openai";
641
+ name: string;
642
+ model: string;
643
+ systemPrompt: string;
644
+ maxTokens: number;
645
+ id: string;
646
+ isDefault?: boolean | undefined;
647
+ allowedTools?: string[] | undefined;
648
+ plans?: string[] | undefined;
649
+ }>, z.ZodObject<{
650
+ id: z.ZodString;
651
+ name: z.ZodString;
652
+ type: z.ZodLiteral<"external">;
653
+ endpoint: z.ZodString;
654
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
655
+ isDefault: z.ZodOptional<z.ZodBoolean>;
656
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
657
+ plans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ name: string;
660
+ type: "external";
661
+ endpoint: string;
662
+ id: string;
663
+ headers?: Record<string, string> | undefined;
664
+ isDefault?: boolean | undefined;
665
+ allowedTools?: string[] | undefined;
666
+ plans?: string[] | undefined;
667
+ }, {
668
+ name: string;
669
+ type: "external";
670
+ endpoint: string;
671
+ id: string;
672
+ headers?: Record<string, string> | undefined;
673
+ isDefault?: boolean | undefined;
674
+ allowedTools?: string[] | undefined;
675
+ plans?: string[] | undefined;
676
+ }>]>, "many">;
677
+ }, "strip", z.ZodTypeAny, {
678
+ agents: ({
679
+ provider: "anthropic" | "openai";
680
+ name: string;
681
+ model: string;
682
+ systemPrompt: string;
683
+ maxTokens: number;
684
+ id: string;
685
+ isDefault?: boolean | undefined;
686
+ allowedTools?: string[] | undefined;
687
+ plans?: string[] | undefined;
688
+ } | {
689
+ name: string;
690
+ type: "external";
691
+ endpoint: string;
692
+ id: string;
693
+ headers?: Record<string, string> | undefined;
694
+ isDefault?: boolean | undefined;
695
+ allowedTools?: string[] | undefined;
696
+ plans?: string[] | undefined;
697
+ })[];
698
+ }, {
699
+ agents: ({
700
+ provider: "anthropic" | "openai";
701
+ name: string;
702
+ model: string;
703
+ systemPrompt: string;
704
+ maxTokens: number;
705
+ id: string;
706
+ isDefault?: boolean | undefined;
707
+ allowedTools?: string[] | undefined;
708
+ plans?: string[] | undefined;
709
+ } | {
710
+ name: string;
711
+ type: "external";
712
+ endpoint: string;
713
+ id: string;
714
+ headers?: Record<string, string> | undefined;
715
+ isDefault?: boolean | undefined;
716
+ allowedTools?: string[] | undefined;
717
+ plans?: string[] | undefined;
718
+ })[];
536
719
  }>]>;
537
720
  export declare const paymentPlanSchema: z.ZodObject<{
538
721
  id: z.ZodString;
@@ -567,6 +750,7 @@ export declare const paymentPlanSchema: z.ZodObject<{
567
750
  messagesPerCredit: number;
568
751
  }>]>;
569
752
  }, "strip", z.ZodTypeAny, {
753
+ name: string;
570
754
  params: {
571
755
  monthlyMessageLimit: number;
572
756
  } | {
@@ -578,9 +762,9 @@ export declare const paymentPlanSchema: z.ZodObject<{
578
762
  messagesPerCredit: number;
579
763
  };
580
764
  type: "free" | "monthly" | "credits";
581
- name: string;
582
765
  id: string;
583
766
  }, {
767
+ name: string;
584
768
  params: {
585
769
  monthlyMessageLimit: number;
586
770
  } | {
@@ -592,7 +776,6 @@ export declare const paymentPlanSchema: z.ZodObject<{
592
776
  messagesPerCredit: number;
593
777
  };
594
778
  type: "free" | "monthly" | "credits";
595
- name: string;
596
779
  id: string;
597
780
  }>;
598
781
  export declare const paymentsConfigSchema: z.ZodObject<{
@@ -631,6 +814,7 @@ export declare const paymentsConfigSchema: z.ZodObject<{
631
814
  messagesPerCredit: number;
632
815
  }>]>;
633
816
  }, "strip", z.ZodTypeAny, {
817
+ name: string;
634
818
  params: {
635
819
  monthlyMessageLimit: number;
636
820
  } | {
@@ -642,9 +826,9 @@ export declare const paymentsConfigSchema: z.ZodObject<{
642
826
  messagesPerCredit: number;
643
827
  };
644
828
  type: "free" | "monthly" | "credits";
645
- name: string;
646
829
  id: string;
647
830
  }, {
831
+ name: string;
648
832
  params: {
649
833
  monthlyMessageLimit: number;
650
834
  } | {
@@ -656,13 +840,13 @@ export declare const paymentsConfigSchema: z.ZodObject<{
656
840
  messagesPerCredit: number;
657
841
  };
658
842
  type: "free" | "monthly" | "credits";
659
- name: string;
660
843
  id: string;
661
844
  }>, "many">;
662
845
  }, "strip", z.ZodTypeAny, {
663
- enabled: boolean;
664
846
  provider: "stripe";
847
+ enabled: boolean;
665
848
  plans: {
849
+ name: string;
666
850
  params: {
667
851
  monthlyMessageLimit: number;
668
852
  } | {
@@ -674,13 +858,13 @@ export declare const paymentsConfigSchema: z.ZodObject<{
674
858
  messagesPerCredit: number;
675
859
  };
676
860
  type: "free" | "monthly" | "credits";
677
- name: string;
678
861
  id: string;
679
862
  }[];
680
863
  }, {
681
- enabled: boolean;
682
864
  provider: "stripe";
865
+ enabled: boolean;
683
866
  plans: {
867
+ name: string;
684
868
  params: {
685
869
  monthlyMessageLimit: number;
686
870
  } | {
@@ -692,90 +876,216 @@ export declare const paymentsConfigSchema: z.ZodObject<{
692
876
  messagesPerCredit: number;
693
877
  };
694
878
  type: "free" | "monthly" | "credits";
695
- name: string;
696
879
  id: string;
697
880
  }[];
698
881
  }>;
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
882
  export declare const mcpConfigSchema: z.ZodObject<{
725
883
  servers: z.ZodArray<z.ZodObject<{
726
884
  id: z.ZodString;
727
885
  name: z.ZodString;
728
- transport: z.ZodEnum<["stdio", "sse"]>;
886
+ transport: z.ZodEnum<["stdio", "sse", "streamable-http"]>;
729
887
  command: z.ZodOptional<z.ZodString>;
730
888
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
731
889
  url: z.ZodOptional<z.ZodString>;
732
890
  enabled: z.ZodBoolean;
891
+ authMode: z.ZodOptional<z.ZodEnum<["none", "admin", "user-apikey", "user-oauth"]>>;
892
+ adminApiKeyEnvVar: z.ZodOptional<z.ZodString>;
893
+ oauth: z.ZodOptional<z.ZodObject<{
894
+ authorizationEndpoint: z.ZodOptional<z.ZodString>;
895
+ tokenEndpoint: z.ZodOptional<z.ZodString>;
896
+ clientId: z.ZodOptional<z.ZodString>;
897
+ clientSecretEnvVar: z.ZodOptional<z.ZodString>;
898
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
899
+ clientName: z.ZodOptional<z.ZodString>;
900
+ clientUri: z.ZodOptional<z.ZodString>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ authorizationEndpoint?: string | undefined;
903
+ tokenEndpoint?: string | undefined;
904
+ clientId?: string | undefined;
905
+ clientSecretEnvVar?: string | undefined;
906
+ scopes?: string[] | undefined;
907
+ clientName?: string | undefined;
908
+ clientUri?: string | undefined;
909
+ }, {
910
+ authorizationEndpoint?: string | undefined;
911
+ tokenEndpoint?: string | undefined;
912
+ clientId?: string | undefined;
913
+ clientSecretEnvVar?: string | undefined;
914
+ scopes?: string[] | undefined;
915
+ clientName?: string | undefined;
916
+ clientUri?: string | undefined;
917
+ }>>;
918
+ userInstructions: z.ZodOptional<z.ZodString>;
733
919
  }, "strip", z.ZodTypeAny, {
920
+ transport: "stdio" | "sse" | "streamable-http";
734
921
  name: string;
735
922
  enabled: boolean;
736
923
  id: string;
737
- transport: "stdio" | "sse";
924
+ oauth?: {
925
+ authorizationEndpoint?: string | undefined;
926
+ tokenEndpoint?: string | undefined;
927
+ clientId?: string | undefined;
928
+ clientSecretEnvVar?: string | undefined;
929
+ scopes?: string[] | undefined;
930
+ clientName?: string | undefined;
931
+ clientUri?: string | undefined;
932
+ } | undefined;
933
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
738
934
  command?: string | undefined;
739
935
  args?: string[] | undefined;
740
936
  url?: string | undefined;
937
+ adminApiKeyEnvVar?: string | undefined;
938
+ userInstructions?: string | undefined;
741
939
  }, {
940
+ transport: "stdio" | "sse" | "streamable-http";
742
941
  name: string;
743
942
  enabled: boolean;
744
943
  id: string;
745
- transport: "stdio" | "sse";
944
+ oauth?: {
945
+ authorizationEndpoint?: string | undefined;
946
+ tokenEndpoint?: string | undefined;
947
+ clientId?: string | undefined;
948
+ clientSecretEnvVar?: string | undefined;
949
+ scopes?: string[] | undefined;
950
+ clientName?: string | undefined;
951
+ clientUri?: string | undefined;
952
+ } | undefined;
953
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
746
954
  command?: string | undefined;
747
955
  args?: string[] | undefined;
748
956
  url?: string | undefined;
957
+ adminApiKeyEnvVar?: string | undefined;
958
+ userInstructions?: string | undefined;
749
959
  }>, "many">;
750
960
  allowUserServers: z.ZodBoolean;
751
- requireToolConfirmation: z.ZodBoolean;
961
+ toolConfirmation: z.ZodOptional<z.ZodObject<{
962
+ mode: z.ZodEnum<["none", "all", "whitelist", "blacklist"]>;
963
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ mode: "none" | "all" | "whitelist" | "blacklist";
966
+ tools?: string[] | undefined;
967
+ }, {
968
+ mode: "none" | "all" | "whitelist" | "blacklist";
969
+ tools?: string[] | undefined;
970
+ }>>;
752
971
  toolTimeout: z.ZodNumber;
972
+ showToolCalls: z.ZodOptional<z.ZodBoolean>;
973
+ server: z.ZodOptional<z.ZodObject<{
974
+ enabled: z.ZodBoolean;
975
+ exposeTools: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["all", "native"]>, z.ZodArray<z.ZodString, "many">]>>;
976
+ oauth: z.ZodOptional<z.ZodObject<{
977
+ enabled: z.ZodBoolean;
978
+ allowDynamicRegistration: z.ZodBoolean;
979
+ accessTokenTTLSeconds: z.ZodOptional<z.ZodNumber>;
980
+ refreshTokenTTLSeconds: z.ZodOptional<z.ZodNumber>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ enabled: boolean;
983
+ allowDynamicRegistration: boolean;
984
+ accessTokenTTLSeconds?: number | undefined;
985
+ refreshTokenTTLSeconds?: number | undefined;
986
+ }, {
987
+ enabled: boolean;
988
+ allowDynamicRegistration: boolean;
989
+ accessTokenTTLSeconds?: number | undefined;
990
+ refreshTokenTTLSeconds?: number | undefined;
991
+ }>>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ enabled: boolean;
994
+ oauth?: {
995
+ enabled: boolean;
996
+ allowDynamicRegistration: boolean;
997
+ accessTokenTTLSeconds?: number | undefined;
998
+ refreshTokenTTLSeconds?: number | undefined;
999
+ } | undefined;
1000
+ exposeTools?: "all" | string[] | "native" | undefined;
1001
+ }, {
1002
+ enabled: boolean;
1003
+ oauth?: {
1004
+ enabled: boolean;
1005
+ allowDynamicRegistration: boolean;
1006
+ accessTokenTTLSeconds?: number | undefined;
1007
+ refreshTokenTTLSeconds?: number | undefined;
1008
+ } | undefined;
1009
+ exposeTools?: "all" | string[] | "native" | undefined;
1010
+ }>>;
753
1011
  }, "strip", z.ZodTypeAny, {
754
1012
  servers: {
1013
+ transport: "stdio" | "sse" | "streamable-http";
755
1014
  name: string;
756
1015
  enabled: boolean;
757
1016
  id: string;
758
- transport: "stdio" | "sse";
1017
+ oauth?: {
1018
+ authorizationEndpoint?: string | undefined;
1019
+ tokenEndpoint?: string | undefined;
1020
+ clientId?: string | undefined;
1021
+ clientSecretEnvVar?: string | undefined;
1022
+ scopes?: string[] | undefined;
1023
+ clientName?: string | undefined;
1024
+ clientUri?: string | undefined;
1025
+ } | undefined;
1026
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
759
1027
  command?: string | undefined;
760
1028
  args?: string[] | undefined;
761
1029
  url?: string | undefined;
1030
+ adminApiKeyEnvVar?: string | undefined;
1031
+ userInstructions?: string | undefined;
762
1032
  }[];
763
1033
  allowUserServers: boolean;
764
- requireToolConfirmation: boolean;
765
1034
  toolTimeout: number;
1035
+ toolConfirmation?: {
1036
+ mode: "none" | "all" | "whitelist" | "blacklist";
1037
+ tools?: string[] | undefined;
1038
+ } | undefined;
1039
+ showToolCalls?: boolean | undefined;
1040
+ server?: {
1041
+ enabled: boolean;
1042
+ oauth?: {
1043
+ enabled: boolean;
1044
+ allowDynamicRegistration: boolean;
1045
+ accessTokenTTLSeconds?: number | undefined;
1046
+ refreshTokenTTLSeconds?: number | undefined;
1047
+ } | undefined;
1048
+ exposeTools?: "all" | string[] | "native" | undefined;
1049
+ } | undefined;
766
1050
  }, {
767
1051
  servers: {
1052
+ transport: "stdio" | "sse" | "streamable-http";
768
1053
  name: string;
769
1054
  enabled: boolean;
770
1055
  id: string;
771
- transport: "stdio" | "sse";
1056
+ oauth?: {
1057
+ authorizationEndpoint?: string | undefined;
1058
+ tokenEndpoint?: string | undefined;
1059
+ clientId?: string | undefined;
1060
+ clientSecretEnvVar?: string | undefined;
1061
+ scopes?: string[] | undefined;
1062
+ clientName?: string | undefined;
1063
+ clientUri?: string | undefined;
1064
+ } | undefined;
1065
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
772
1066
  command?: string | undefined;
773
1067
  args?: string[] | undefined;
774
1068
  url?: string | undefined;
1069
+ adminApiKeyEnvVar?: string | undefined;
1070
+ userInstructions?: string | undefined;
775
1071
  }[];
776
1072
  allowUserServers: boolean;
777
- requireToolConfirmation: boolean;
778
1073
  toolTimeout: number;
1074
+ toolConfirmation?: {
1075
+ mode: "none" | "all" | "whitelist" | "blacklist";
1076
+ tools?: string[] | undefined;
1077
+ } | undefined;
1078
+ showToolCalls?: boolean | undefined;
1079
+ server?: {
1080
+ enabled: boolean;
1081
+ oauth?: {
1082
+ enabled: boolean;
1083
+ allowDynamicRegistration: boolean;
1084
+ accessTokenTTLSeconds?: number | undefined;
1085
+ refreshTokenTTLSeconds?: number | undefined;
1086
+ } | undefined;
1087
+ exposeTools?: "all" | string[] | "native" | undefined;
1088
+ } | undefined;
779
1089
  }>;
780
1090
  export declare const userSettingsFieldSchema: z.ZodObject<{
781
1091
  key: z.ZodString;
@@ -801,14 +1111,17 @@ export declare const appConfigSchema: z.ZodObject<{
801
1111
  name: z.ZodString;
802
1112
  description: z.ZodString;
803
1113
  url: z.ZodString;
1114
+ basePath: z.ZodOptional<z.ZodString>;
804
1115
  }, "strip", z.ZodTypeAny, {
805
1116
  name: string;
806
1117
  url: string;
807
1118
  description: string;
1119
+ basePath?: string | undefined;
808
1120
  }, {
809
1121
  name: string;
810
1122
  url: string;
811
1123
  description: string;
1124
+ basePath?: string | undefined;
812
1125
  }>;
813
1126
  ui: z.ZodObject<{
814
1127
  welcomeTitle: z.ZodString;
@@ -885,6 +1198,8 @@ export declare const appConfigSchema: z.ZodObject<{
885
1198
  warning: z.ZodString;
886
1199
  error: z.ZodString;
887
1200
  }, "strip", z.ZodTypeAny, {
1201
+ error: string;
1202
+ success: string;
888
1203
  primary: string;
889
1204
  primaryHover: string;
890
1205
  secondary: string;
@@ -901,10 +1216,10 @@ export declare const appConfigSchema: z.ZodObject<{
901
1216
  userMessageText: string;
902
1217
  assistantMessageBg: string;
903
1218
  assistantMessageText: string;
904
- success: string;
905
1219
  warning: string;
906
- error: string;
907
1220
  }, {
1221
+ error: string;
1222
+ success: string;
908
1223
  primary: string;
909
1224
  primaryHover: string;
910
1225
  secondary: string;
@@ -921,13 +1236,13 @@ export declare const appConfigSchema: z.ZodObject<{
921
1236
  userMessageText: string;
922
1237
  assistantMessageBg: string;
923
1238
  assistantMessageText: string;
924
- success: string;
925
1239
  warning: string;
926
- error: string;
927
1240
  }>;
928
1241
  }, "strip", z.ZodTypeAny, {
929
1242
  name: string;
930
1243
  colors: {
1244
+ error: string;
1245
+ success: string;
931
1246
  primary: string;
932
1247
  primaryHover: string;
933
1248
  secondary: string;
@@ -944,13 +1259,13 @@ export declare const appConfigSchema: z.ZodObject<{
944
1259
  userMessageText: string;
945
1260
  assistantMessageBg: string;
946
1261
  assistantMessageText: string;
947
- success: string;
948
1262
  warning: string;
949
- error: string;
950
1263
  };
951
1264
  }, {
952
1265
  name: string;
953
1266
  colors: {
1267
+ error: string;
1268
+ success: string;
954
1269
  primary: string;
955
1270
  primaryHover: string;
956
1271
  secondary: string;
@@ -967,9 +1282,7 @@ export declare const appConfigSchema: z.ZodObject<{
967
1282
  userMessageText: string;
968
1283
  assistantMessageBg: string;
969
1284
  assistantMessageText: string;
970
- success: string;
971
1285
  warning: string;
972
- error: string;
973
1286
  };
974
1287
  }>>;
975
1288
  fonts: z.ZodObject<{
@@ -1004,6 +1317,8 @@ export declare const appConfigSchema: z.ZodObject<{
1004
1317
  themes: Record<string, {
1005
1318
  name: string;
1006
1319
  colors: {
1320
+ error: string;
1321
+ success: string;
1007
1322
  primary: string;
1008
1323
  primaryHover: string;
1009
1324
  secondary: string;
@@ -1020,9 +1335,7 @@ export declare const appConfigSchema: z.ZodObject<{
1020
1335
  userMessageText: string;
1021
1336
  assistantMessageBg: string;
1022
1337
  assistantMessageText: string;
1023
- success: string;
1024
1338
  warning: string;
1025
- error: string;
1026
1339
  };
1027
1340
  }>;
1028
1341
  fonts: {
@@ -1041,6 +1354,8 @@ export declare const appConfigSchema: z.ZodObject<{
1041
1354
  themes: Record<string, {
1042
1355
  name: string;
1043
1356
  colors: {
1357
+ error: string;
1358
+ success: string;
1044
1359
  primary: string;
1045
1360
  primaryHover: string;
1046
1361
  secondary: string;
@@ -1057,9 +1372,7 @@ export declare const appConfigSchema: z.ZodObject<{
1057
1372
  userMessageText: string;
1058
1373
  assistantMessageBg: string;
1059
1374
  assistantMessageText: string;
1060
- success: string;
1061
1375
  warning: string;
1062
- error: string;
1063
1376
  };
1064
1377
  }>;
1065
1378
  fonts: {
@@ -1086,6 +1399,44 @@ export declare const appConfigSchema: z.ZodObject<{
1086
1399
  enabled: boolean;
1087
1400
  expiresInMinutes: number;
1088
1401
  }>;
1402
+ emailVerification: z.ZodOptional<z.ZodObject<{
1403
+ enabled: z.ZodBoolean;
1404
+ codeLength: z.ZodOptional<z.ZodNumber>;
1405
+ expiresInMinutes: z.ZodOptional<z.ZodNumber>;
1406
+ allowResendAfterSeconds: z.ZodOptional<z.ZodNumber>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ enabled: boolean;
1409
+ codeLength?: number | undefined;
1410
+ expiresInMinutes?: number | undefined;
1411
+ allowResendAfterSeconds?: number | undefined;
1412
+ }, {
1413
+ enabled: boolean;
1414
+ codeLength?: number | undefined;
1415
+ expiresInMinutes?: number | undefined;
1416
+ allowResendAfterSeconds?: number | undefined;
1417
+ }>>;
1418
+ gating: z.ZodOptional<z.ZodObject<{
1419
+ mode: z.ZodEnum<["open", "invite_only", "closed", "timed_window", "capacity_limit"]>;
1420
+ inviteExpiryDays: z.ZodOptional<z.ZodNumber>;
1421
+ windowStart: z.ZodOptional<z.ZodString>;
1422
+ windowEnd: z.ZodOptional<z.ZodString>;
1423
+ capacityLimit: z.ZodOptional<z.ZodNumber>;
1424
+ waitlistEnabled: z.ZodOptional<z.ZodBoolean>;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
1427
+ inviteExpiryDays?: number | undefined;
1428
+ windowStart?: string | undefined;
1429
+ windowEnd?: string | undefined;
1430
+ capacityLimit?: number | undefined;
1431
+ waitlistEnabled?: boolean | undefined;
1432
+ }, {
1433
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
1434
+ inviteExpiryDays?: number | undefined;
1435
+ windowStart?: string | undefined;
1436
+ windowEnd?: string | undefined;
1437
+ capacityLimit?: number | undefined;
1438
+ waitlistEnabled?: boolean | undefined;
1439
+ }>>;
1089
1440
  }, "strip", z.ZodTypeAny, {
1090
1441
  methods: ("email-password" | "google" | "github" | "magic-link")[];
1091
1442
  allowUnauthenticated: boolean;
@@ -1093,6 +1444,20 @@ export declare const appConfigSchema: z.ZodObject<{
1093
1444
  enabled: boolean;
1094
1445
  expiresInMinutes: number;
1095
1446
  };
1447
+ emailVerification?: {
1448
+ enabled: boolean;
1449
+ codeLength?: number | undefined;
1450
+ expiresInMinutes?: number | undefined;
1451
+ allowResendAfterSeconds?: number | undefined;
1452
+ } | undefined;
1453
+ gating?: {
1454
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
1455
+ inviteExpiryDays?: number | undefined;
1456
+ windowStart?: string | undefined;
1457
+ windowEnd?: string | undefined;
1458
+ capacityLimit?: number | undefined;
1459
+ waitlistEnabled?: boolean | undefined;
1460
+ } | undefined;
1096
1461
  }, {
1097
1462
  methods: ("email-password" | "google" | "github" | "magic-link")[];
1098
1463
  allowUnauthenticated: boolean;
@@ -1100,22 +1465,36 @@ export declare const appConfigSchema: z.ZodObject<{
1100
1465
  enabled: boolean;
1101
1466
  expiresInMinutes: number;
1102
1467
  };
1468
+ emailVerification?: {
1469
+ enabled: boolean;
1470
+ codeLength?: number | undefined;
1471
+ expiresInMinutes?: number | undefined;
1472
+ allowResendAfterSeconds?: number | undefined;
1473
+ } | undefined;
1474
+ gating?: {
1475
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
1476
+ inviteExpiryDays?: number | undefined;
1477
+ windowStart?: string | undefined;
1478
+ windowEnd?: string | undefined;
1479
+ capacityLimit?: number | undefined;
1480
+ waitlistEnabled?: boolean | undefined;
1481
+ } | undefined;
1103
1482
  }>;
1104
- agent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1483
+ agent: z.ZodUnion<[z.ZodObject<{
1105
1484
  type: z.ZodLiteral<"built-in">;
1106
1485
  provider: z.ZodEnum<["anthropic", "openai"]>;
1107
1486
  model: z.ZodString;
1108
1487
  systemPrompt: z.ZodString;
1109
1488
  maxTokens: z.ZodNumber;
1110
1489
  }, "strip", z.ZodTypeAny, {
1111
- type: "built-in";
1112
1490
  provider: "anthropic" | "openai";
1491
+ type: "built-in";
1113
1492
  model: string;
1114
1493
  systemPrompt: string;
1115
1494
  maxTokens: number;
1116
1495
  }, {
1117
- type: "built-in";
1118
1496
  provider: "anthropic" | "openai";
1497
+ type: "built-in";
1119
1498
  model: string;
1120
1499
  systemPrompt: string;
1121
1500
  maxTokens: number;
@@ -1131,6 +1510,107 @@ export declare const appConfigSchema: z.ZodObject<{
1131
1510
  type: "external";
1132
1511
  endpoint: string;
1133
1512
  headers?: Record<string, string> | undefined;
1513
+ }>, z.ZodObject<{
1514
+ agents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1515
+ id: z.ZodString;
1516
+ name: z.ZodString;
1517
+ provider: z.ZodEnum<["anthropic", "openai"]>;
1518
+ model: z.ZodString;
1519
+ systemPrompt: z.ZodString;
1520
+ maxTokens: z.ZodNumber;
1521
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1522
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1523
+ plans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ provider: "anthropic" | "openai";
1526
+ name: string;
1527
+ model: string;
1528
+ systemPrompt: string;
1529
+ maxTokens: number;
1530
+ id: string;
1531
+ isDefault?: boolean | undefined;
1532
+ allowedTools?: string[] | undefined;
1533
+ plans?: string[] | undefined;
1534
+ }, {
1535
+ provider: "anthropic" | "openai";
1536
+ name: string;
1537
+ model: string;
1538
+ systemPrompt: string;
1539
+ maxTokens: number;
1540
+ id: string;
1541
+ isDefault?: boolean | undefined;
1542
+ allowedTools?: string[] | undefined;
1543
+ plans?: string[] | undefined;
1544
+ }>, z.ZodObject<{
1545
+ id: z.ZodString;
1546
+ name: z.ZodString;
1547
+ type: z.ZodLiteral<"external">;
1548
+ endpoint: z.ZodString;
1549
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1550
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1551
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1552
+ plans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ name: string;
1555
+ type: "external";
1556
+ endpoint: string;
1557
+ id: string;
1558
+ headers?: Record<string, string> | undefined;
1559
+ isDefault?: boolean | undefined;
1560
+ allowedTools?: string[] | undefined;
1561
+ plans?: string[] | undefined;
1562
+ }, {
1563
+ name: string;
1564
+ type: "external";
1565
+ endpoint: string;
1566
+ id: string;
1567
+ headers?: Record<string, string> | undefined;
1568
+ isDefault?: boolean | undefined;
1569
+ allowedTools?: string[] | undefined;
1570
+ plans?: string[] | undefined;
1571
+ }>]>, "many">;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ agents: ({
1574
+ provider: "anthropic" | "openai";
1575
+ name: string;
1576
+ model: string;
1577
+ systemPrompt: string;
1578
+ maxTokens: number;
1579
+ id: string;
1580
+ isDefault?: boolean | undefined;
1581
+ allowedTools?: string[] | undefined;
1582
+ plans?: string[] | undefined;
1583
+ } | {
1584
+ name: string;
1585
+ type: "external";
1586
+ endpoint: string;
1587
+ id: string;
1588
+ headers?: Record<string, string> | undefined;
1589
+ isDefault?: boolean | undefined;
1590
+ allowedTools?: string[] | undefined;
1591
+ plans?: string[] | undefined;
1592
+ })[];
1593
+ }, {
1594
+ agents: ({
1595
+ provider: "anthropic" | "openai";
1596
+ name: string;
1597
+ model: string;
1598
+ systemPrompt: string;
1599
+ maxTokens: number;
1600
+ id: string;
1601
+ isDefault?: boolean | undefined;
1602
+ allowedTools?: string[] | undefined;
1603
+ plans?: string[] | undefined;
1604
+ } | {
1605
+ name: string;
1606
+ type: "external";
1607
+ endpoint: string;
1608
+ id: string;
1609
+ headers?: Record<string, string> | undefined;
1610
+ isDefault?: boolean | undefined;
1611
+ allowedTools?: string[] | undefined;
1612
+ plans?: string[] | undefined;
1613
+ })[];
1134
1614
  }>]>;
1135
1615
  payments: z.ZodObject<{
1136
1616
  enabled: z.ZodBoolean;
@@ -1168,6 +1648,7 @@ export declare const appConfigSchema: z.ZodObject<{
1168
1648
  messagesPerCredit: number;
1169
1649
  }>]>;
1170
1650
  }, "strip", z.ZodTypeAny, {
1651
+ name: string;
1171
1652
  params: {
1172
1653
  monthlyMessageLimit: number;
1173
1654
  } | {
@@ -1179,9 +1660,9 @@ export declare const appConfigSchema: z.ZodObject<{
1179
1660
  messagesPerCredit: number;
1180
1661
  };
1181
1662
  type: "free" | "monthly" | "credits";
1182
- name: string;
1183
1663
  id: string;
1184
1664
  }, {
1665
+ name: string;
1185
1666
  params: {
1186
1667
  monthlyMessageLimit: number;
1187
1668
  } | {
@@ -1193,13 +1674,13 @@ export declare const appConfigSchema: z.ZodObject<{
1193
1674
  messagesPerCredit: number;
1194
1675
  };
1195
1676
  type: "free" | "monthly" | "credits";
1196
- name: string;
1197
1677
  id: string;
1198
1678
  }>, "many">;
1199
1679
  }, "strip", z.ZodTypeAny, {
1200
- enabled: boolean;
1201
1680
  provider: "stripe";
1681
+ enabled: boolean;
1202
1682
  plans: {
1683
+ name: string;
1203
1684
  params: {
1204
1685
  monthlyMessageLimit: number;
1205
1686
  } | {
@@ -1211,13 +1692,13 @@ export declare const appConfigSchema: z.ZodObject<{
1211
1692
  messagesPerCredit: number;
1212
1693
  };
1213
1694
  type: "free" | "monthly" | "credits";
1214
- name: string;
1215
1695
  id: string;
1216
1696
  }[];
1217
1697
  }, {
1218
- enabled: boolean;
1219
1698
  provider: "stripe";
1699
+ enabled: boolean;
1220
1700
  plans: {
1701
+ name: string;
1221
1702
  params: {
1222
1703
  monthlyMessageLimit: number;
1223
1704
  } | {
@@ -1229,7 +1710,6 @@ export declare const appConfigSchema: z.ZodObject<{
1229
1710
  messagesPerCredit: number;
1230
1711
  };
1231
1712
  type: "free" | "monthly" | "credits";
1232
- name: string;
1233
1713
  id: string;
1234
1714
  }[];
1235
1715
  }>;
@@ -1284,72 +1764,221 @@ export declare const appConfigSchema: z.ZodObject<{
1284
1764
  servers: z.ZodArray<z.ZodObject<{
1285
1765
  id: z.ZodString;
1286
1766
  name: z.ZodString;
1287
- transport: z.ZodEnum<["stdio", "sse"]>;
1767
+ transport: z.ZodEnum<["stdio", "sse", "streamable-http"]>;
1288
1768
  command: z.ZodOptional<z.ZodString>;
1289
1769
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1290
1770
  url: z.ZodOptional<z.ZodString>;
1291
1771
  enabled: z.ZodBoolean;
1772
+ authMode: z.ZodOptional<z.ZodEnum<["none", "admin", "user-apikey", "user-oauth"]>>;
1773
+ adminApiKeyEnvVar: z.ZodOptional<z.ZodString>;
1774
+ oauth: z.ZodOptional<z.ZodObject<{
1775
+ authorizationEndpoint: z.ZodOptional<z.ZodString>;
1776
+ tokenEndpoint: z.ZodOptional<z.ZodString>;
1777
+ clientId: z.ZodOptional<z.ZodString>;
1778
+ clientSecretEnvVar: z.ZodOptional<z.ZodString>;
1779
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1780
+ clientName: z.ZodOptional<z.ZodString>;
1781
+ clientUri: z.ZodOptional<z.ZodString>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ authorizationEndpoint?: string | undefined;
1784
+ tokenEndpoint?: string | undefined;
1785
+ clientId?: string | undefined;
1786
+ clientSecretEnvVar?: string | undefined;
1787
+ scopes?: string[] | undefined;
1788
+ clientName?: string | undefined;
1789
+ clientUri?: string | undefined;
1790
+ }, {
1791
+ authorizationEndpoint?: string | undefined;
1792
+ tokenEndpoint?: string | undefined;
1793
+ clientId?: string | undefined;
1794
+ clientSecretEnvVar?: string | undefined;
1795
+ scopes?: string[] | undefined;
1796
+ clientName?: string | undefined;
1797
+ clientUri?: string | undefined;
1798
+ }>>;
1799
+ userInstructions: z.ZodOptional<z.ZodString>;
1292
1800
  }, "strip", z.ZodTypeAny, {
1801
+ transport: "stdio" | "sse" | "streamable-http";
1293
1802
  name: string;
1294
1803
  enabled: boolean;
1295
1804
  id: string;
1296
- transport: "stdio" | "sse";
1805
+ oauth?: {
1806
+ authorizationEndpoint?: string | undefined;
1807
+ tokenEndpoint?: string | undefined;
1808
+ clientId?: string | undefined;
1809
+ clientSecretEnvVar?: string | undefined;
1810
+ scopes?: string[] | undefined;
1811
+ clientName?: string | undefined;
1812
+ clientUri?: string | undefined;
1813
+ } | undefined;
1814
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1297
1815
  command?: string | undefined;
1298
1816
  args?: string[] | undefined;
1299
1817
  url?: string | undefined;
1818
+ adminApiKeyEnvVar?: string | undefined;
1819
+ userInstructions?: string | undefined;
1300
1820
  }, {
1821
+ transport: "stdio" | "sse" | "streamable-http";
1301
1822
  name: string;
1302
1823
  enabled: boolean;
1303
1824
  id: string;
1304
- transport: "stdio" | "sse";
1825
+ oauth?: {
1826
+ authorizationEndpoint?: string | undefined;
1827
+ tokenEndpoint?: string | undefined;
1828
+ clientId?: string | undefined;
1829
+ clientSecretEnvVar?: string | undefined;
1830
+ scopes?: string[] | undefined;
1831
+ clientName?: string | undefined;
1832
+ clientUri?: string | undefined;
1833
+ } | undefined;
1834
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1305
1835
  command?: string | undefined;
1306
1836
  args?: string[] | undefined;
1307
1837
  url?: string | undefined;
1838
+ adminApiKeyEnvVar?: string | undefined;
1839
+ userInstructions?: string | undefined;
1308
1840
  }>, "many">;
1309
1841
  allowUserServers: z.ZodBoolean;
1310
- requireToolConfirmation: z.ZodBoolean;
1842
+ toolConfirmation: z.ZodOptional<z.ZodObject<{
1843
+ mode: z.ZodEnum<["none", "all", "whitelist", "blacklist"]>;
1844
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ mode: "none" | "all" | "whitelist" | "blacklist";
1847
+ tools?: string[] | undefined;
1848
+ }, {
1849
+ mode: "none" | "all" | "whitelist" | "blacklist";
1850
+ tools?: string[] | undefined;
1851
+ }>>;
1311
1852
  toolTimeout: z.ZodNumber;
1853
+ showToolCalls: z.ZodOptional<z.ZodBoolean>;
1854
+ server: z.ZodOptional<z.ZodObject<{
1855
+ enabled: z.ZodBoolean;
1856
+ exposeTools: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["all", "native"]>, z.ZodArray<z.ZodString, "many">]>>;
1857
+ oauth: z.ZodOptional<z.ZodObject<{
1858
+ enabled: z.ZodBoolean;
1859
+ allowDynamicRegistration: z.ZodBoolean;
1860
+ accessTokenTTLSeconds: z.ZodOptional<z.ZodNumber>;
1861
+ refreshTokenTTLSeconds: z.ZodOptional<z.ZodNumber>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ enabled: boolean;
1864
+ allowDynamicRegistration: boolean;
1865
+ accessTokenTTLSeconds?: number | undefined;
1866
+ refreshTokenTTLSeconds?: number | undefined;
1867
+ }, {
1868
+ enabled: boolean;
1869
+ allowDynamicRegistration: boolean;
1870
+ accessTokenTTLSeconds?: number | undefined;
1871
+ refreshTokenTTLSeconds?: number | undefined;
1872
+ }>>;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ enabled: boolean;
1875
+ oauth?: {
1876
+ enabled: boolean;
1877
+ allowDynamicRegistration: boolean;
1878
+ accessTokenTTLSeconds?: number | undefined;
1879
+ refreshTokenTTLSeconds?: number | undefined;
1880
+ } | undefined;
1881
+ exposeTools?: "all" | string[] | "native" | undefined;
1882
+ }, {
1883
+ enabled: boolean;
1884
+ oauth?: {
1885
+ enabled: boolean;
1886
+ allowDynamicRegistration: boolean;
1887
+ accessTokenTTLSeconds?: number | undefined;
1888
+ refreshTokenTTLSeconds?: number | undefined;
1889
+ } | undefined;
1890
+ exposeTools?: "all" | string[] | "native" | undefined;
1891
+ }>>;
1312
1892
  }, "strip", z.ZodTypeAny, {
1313
1893
  servers: {
1894
+ transport: "stdio" | "sse" | "streamable-http";
1314
1895
  name: string;
1315
1896
  enabled: boolean;
1316
1897
  id: string;
1317
- transport: "stdio" | "sse";
1898
+ oauth?: {
1899
+ authorizationEndpoint?: string | undefined;
1900
+ tokenEndpoint?: string | undefined;
1901
+ clientId?: string | undefined;
1902
+ clientSecretEnvVar?: string | undefined;
1903
+ scopes?: string[] | undefined;
1904
+ clientName?: string | undefined;
1905
+ clientUri?: string | undefined;
1906
+ } | undefined;
1907
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1318
1908
  command?: string | undefined;
1319
1909
  args?: string[] | undefined;
1320
1910
  url?: string | undefined;
1911
+ adminApiKeyEnvVar?: string | undefined;
1912
+ userInstructions?: string | undefined;
1321
1913
  }[];
1322
1914
  allowUserServers: boolean;
1323
- requireToolConfirmation: boolean;
1324
1915
  toolTimeout: number;
1916
+ toolConfirmation?: {
1917
+ mode: "none" | "all" | "whitelist" | "blacklist";
1918
+ tools?: string[] | undefined;
1919
+ } | undefined;
1920
+ showToolCalls?: boolean | undefined;
1921
+ server?: {
1922
+ enabled: boolean;
1923
+ oauth?: {
1924
+ enabled: boolean;
1925
+ allowDynamicRegistration: boolean;
1926
+ accessTokenTTLSeconds?: number | undefined;
1927
+ refreshTokenTTLSeconds?: number | undefined;
1928
+ } | undefined;
1929
+ exposeTools?: "all" | string[] | "native" | undefined;
1930
+ } | undefined;
1325
1931
  }, {
1326
1932
  servers: {
1933
+ transport: "stdio" | "sse" | "streamable-http";
1327
1934
  name: string;
1328
1935
  enabled: boolean;
1329
1936
  id: string;
1330
- transport: "stdio" | "sse";
1937
+ oauth?: {
1938
+ authorizationEndpoint?: string | undefined;
1939
+ tokenEndpoint?: string | undefined;
1940
+ clientId?: string | undefined;
1941
+ clientSecretEnvVar?: string | undefined;
1942
+ scopes?: string[] | undefined;
1943
+ clientName?: string | undefined;
1944
+ clientUri?: string | undefined;
1945
+ } | undefined;
1946
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1331
1947
  command?: string | undefined;
1332
1948
  args?: string[] | undefined;
1333
1949
  url?: string | undefined;
1950
+ adminApiKeyEnvVar?: string | undefined;
1951
+ userInstructions?: string | undefined;
1334
1952
  }[];
1335
1953
  allowUserServers: boolean;
1336
- requireToolConfirmation: boolean;
1337
1954
  toolTimeout: number;
1955
+ toolConfirmation?: {
1956
+ mode: "none" | "all" | "whitelist" | "blacklist";
1957
+ tools?: string[] | undefined;
1958
+ } | undefined;
1959
+ showToolCalls?: boolean | undefined;
1960
+ server?: {
1961
+ enabled: boolean;
1962
+ oauth?: {
1963
+ enabled: boolean;
1964
+ allowDynamicRegistration: boolean;
1965
+ accessTokenTTLSeconds?: number | undefined;
1966
+ refreshTokenTTLSeconds?: number | undefined;
1967
+ } | undefined;
1968
+ exposeTools?: "all" | string[] | "native" | undefined;
1969
+ } | undefined;
1338
1970
  }>>;
1339
1971
  sharing: z.ZodOptional<z.ZodObject<{
1340
1972
  enabled: z.ZodBoolean;
1341
- allowPublicLinks: z.ZodBoolean;
1342
- allowTeamSharing: z.ZodBoolean;
1973
+ scope: z.ZodEnum<["public", "team"]>;
1343
1974
  expirationOptions: z.ZodArray<z.ZodString, "many">;
1344
1975
  }, "strip", z.ZodTypeAny, {
1345
1976
  enabled: boolean;
1346
- allowPublicLinks: boolean;
1347
- allowTeamSharing: boolean;
1977
+ scope: "team" | "public";
1348
1978
  expirationOptions: string[];
1349
1979
  }, {
1350
1980
  enabled: boolean;
1351
- allowPublicLinks: boolean;
1352
- allowTeamSharing: boolean;
1981
+ scope: "team" | "public";
1353
1982
  expirationOptions: string[];
1354
1983
  }>>;
1355
1984
  promptTemplates: z.ZodOptional<z.ZodObject<{
@@ -1390,11 +2019,458 @@ export declare const appConfigSchema: z.ZodObject<{
1390
2019
  }[];
1391
2020
  allowUserTemplates: boolean;
1392
2021
  }>>;
2022
+ teams: z.ZodOptional<z.ZodObject<{
2023
+ enabled: z.ZodBoolean;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ enabled: boolean;
2026
+ }, {
2027
+ enabled: boolean;
2028
+ }>>;
2029
+ projects: z.ZodOptional<z.ZodObject<{
2030
+ enabled: z.ZodBoolean;
2031
+ colors: z.ZodArray<z.ZodString, "many">;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ colors: string[];
2034
+ enabled: boolean;
2035
+ }, {
2036
+ colors: string[];
2037
+ enabled: boolean;
2038
+ }>>;
2039
+ admin: z.ZodOptional<z.ZodObject<{
2040
+ emails: z.ZodArray<z.ZodString, "many">;
2041
+ }, "strip", z.ZodTypeAny, {
2042
+ emails: string[];
2043
+ }, {
2044
+ emails: string[];
2045
+ }>>;
2046
+ api: z.ZodOptional<z.ZodObject<{
2047
+ enabled: z.ZodBoolean;
2048
+ allowedPlans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2049
+ keyPrefix: z.ZodOptional<z.ZodString>;
2050
+ allowedEndpoints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ enabled: boolean;
2053
+ allowedPlans?: string[] | undefined;
2054
+ keyPrefix?: string | undefined;
2055
+ allowedEndpoints?: string[] | undefined;
2056
+ }, {
2057
+ enabled: boolean;
2058
+ allowedPlans?: string[] | undefined;
2059
+ keyPrefix?: string | undefined;
2060
+ allowedEndpoints?: string[] | undefined;
2061
+ }>>;
2062
+ documents: z.ZodOptional<z.ZodObject<{
2063
+ enabled: z.ZodBoolean;
2064
+ storage: z.ZodObject<{
2065
+ provider: z.ZodEnum<["database", "filesystem", "s3"]>;
2066
+ filesystem: z.ZodOptional<z.ZodObject<{
2067
+ basePath: z.ZodString;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ basePath: string;
2070
+ }, {
2071
+ basePath: string;
2072
+ }>>;
2073
+ s3: z.ZodOptional<z.ZodObject<{
2074
+ bucket: z.ZodString;
2075
+ region: z.ZodString;
2076
+ endpoint: z.ZodOptional<z.ZodString>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ bucket: string;
2079
+ region: string;
2080
+ endpoint?: string | undefined;
2081
+ }, {
2082
+ bucket: string;
2083
+ region: string;
2084
+ endpoint?: string | undefined;
2085
+ }>>;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ provider: "database" | "filesystem" | "s3";
2088
+ filesystem?: {
2089
+ basePath: string;
2090
+ } | undefined;
2091
+ s3?: {
2092
+ bucket: string;
2093
+ region: string;
2094
+ endpoint?: string | undefined;
2095
+ } | undefined;
2096
+ }, {
2097
+ provider: "database" | "filesystem" | "s3";
2098
+ filesystem?: {
2099
+ basePath: string;
2100
+ } | undefined;
2101
+ s3?: {
2102
+ bucket: string;
2103
+ region: string;
2104
+ endpoint?: string | undefined;
2105
+ } | undefined;
2106
+ }>;
2107
+ maxFileSizeMB: z.ZodNumber;
2108
+ hybridThreshold: z.ZodNumber;
2109
+ acceptedTypes: z.ZodArray<z.ZodString, "many">;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ enabled: boolean;
2112
+ storage: {
2113
+ provider: "database" | "filesystem" | "s3";
2114
+ filesystem?: {
2115
+ basePath: string;
2116
+ } | undefined;
2117
+ s3?: {
2118
+ bucket: string;
2119
+ region: string;
2120
+ endpoint?: string | undefined;
2121
+ } | undefined;
2122
+ };
2123
+ maxFileSizeMB: number;
2124
+ hybridThreshold: number;
2125
+ acceptedTypes: string[];
2126
+ }, {
2127
+ enabled: boolean;
2128
+ storage: {
2129
+ provider: "database" | "filesystem" | "s3";
2130
+ filesystem?: {
2131
+ basePath: string;
2132
+ } | undefined;
2133
+ s3?: {
2134
+ bucket: string;
2135
+ region: string;
2136
+ endpoint?: string | undefined;
2137
+ } | undefined;
2138
+ };
2139
+ maxFileSizeMB: number;
2140
+ hybridThreshold: number;
2141
+ acceptedTypes: string[];
2142
+ }>>;
2143
+ slack: z.ZodOptional<z.ZodObject<{
2144
+ enabled: z.ZodBoolean;
2145
+ clientIdEnvVar: z.ZodString;
2146
+ clientSecretEnvVar: z.ZodString;
2147
+ signingSecretEnvVar: z.ZodString;
2148
+ internalSecretEnvVar: z.ZodString;
2149
+ allowedPlans: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2150
+ aiChat: z.ZodOptional<z.ZodObject<{
2151
+ enabled: z.ZodBoolean;
2152
+ threadContinuity: z.ZodBoolean;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ enabled: boolean;
2155
+ threadContinuity: boolean;
2156
+ }, {
2157
+ enabled: boolean;
2158
+ threadContinuity: boolean;
2159
+ }>>;
2160
+ notifications: z.ZodOptional<z.ZodObject<{
2161
+ events: z.ZodArray<z.ZodObject<{
2162
+ event: z.ZodEnum<["thread_shared", "message_liked", "team_member_joined"]>;
2163
+ enabled: z.ZodBoolean;
2164
+ }, "strip", z.ZodTypeAny, {
2165
+ enabled: boolean;
2166
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2167
+ }, {
2168
+ enabled: boolean;
2169
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2170
+ }>, "many">;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ events: {
2173
+ enabled: boolean;
2174
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2175
+ }[];
2176
+ }, {
2177
+ events: {
2178
+ enabled: boolean;
2179
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2180
+ }[];
2181
+ }>>;
2182
+ }, "strip", z.ZodTypeAny, {
2183
+ enabled: boolean;
2184
+ clientSecretEnvVar: string;
2185
+ clientIdEnvVar: string;
2186
+ signingSecretEnvVar: string;
2187
+ internalSecretEnvVar: string;
2188
+ allowedPlans?: string[] | undefined;
2189
+ aiChat?: {
2190
+ enabled: boolean;
2191
+ threadContinuity: boolean;
2192
+ } | undefined;
2193
+ notifications?: {
2194
+ events: {
2195
+ enabled: boolean;
2196
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2197
+ }[];
2198
+ } | undefined;
2199
+ }, {
2200
+ enabled: boolean;
2201
+ clientSecretEnvVar: string;
2202
+ clientIdEnvVar: string;
2203
+ signingSecretEnvVar: string;
2204
+ internalSecretEnvVar: string;
2205
+ allowedPlans?: string[] | undefined;
2206
+ aiChat?: {
2207
+ enabled: boolean;
2208
+ threadContinuity: boolean;
2209
+ } | undefined;
2210
+ notifications?: {
2211
+ events: {
2212
+ enabled: boolean;
2213
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2214
+ }[];
2215
+ } | undefined;
2216
+ }>>;
2217
+ queue: z.ZodOptional<z.ZodObject<{
2218
+ enabled: z.ZodBoolean;
2219
+ providerConfig: z.ZodUnion<[z.ZodObject<{
2220
+ type: z.ZodLiteral<"memory">;
2221
+ maxHistorySize: z.ZodOptional<z.ZodNumber>;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ type: "memory";
2224
+ maxHistorySize?: number | undefined;
2225
+ }, {
2226
+ type: "memory";
2227
+ maxHistorySize?: number | undefined;
2228
+ }>, z.ZodObject<{
2229
+ type: z.ZodLiteral<"sqs">;
2230
+ region: z.ZodString;
2231
+ queueUrl: z.ZodString;
2232
+ deadLetterQueueUrl: z.ZodOptional<z.ZodString>;
2233
+ visibilityTimeout: z.ZodOptional<z.ZodNumber>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ type: "sqs";
2236
+ region: string;
2237
+ queueUrl: string;
2238
+ deadLetterQueueUrl?: string | undefined;
2239
+ visibilityTimeout?: number | undefined;
2240
+ }, {
2241
+ type: "sqs";
2242
+ region: string;
2243
+ queueUrl: string;
2244
+ deadLetterQueueUrl?: string | undefined;
2245
+ visibilityTimeout?: number | undefined;
2246
+ }>]>;
2247
+ worker: z.ZodOptional<z.ZodObject<{
2248
+ mode: z.ZodEnum<["in-process", "standalone"]>;
2249
+ concurrency: z.ZodOptional<z.ZodNumber>;
2250
+ pollInterval: z.ZodOptional<z.ZodNumber>;
2251
+ shutdownTimeout: z.ZodOptional<z.ZodNumber>;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ mode: "in-process" | "standalone";
2254
+ concurrency?: number | undefined;
2255
+ pollInterval?: number | undefined;
2256
+ shutdownTimeout?: number | undefined;
2257
+ }, {
2258
+ mode: "in-process" | "standalone";
2259
+ concurrency?: number | undefined;
2260
+ pollInterval?: number | undefined;
2261
+ shutdownTimeout?: number | undefined;
2262
+ }>>;
2263
+ scheduler: z.ZodOptional<z.ZodObject<{
2264
+ enabled: z.ZodBoolean;
2265
+ pollInterval: z.ZodOptional<z.ZodNumber>;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ enabled: boolean;
2268
+ pollInterval?: number | undefined;
2269
+ }, {
2270
+ enabled: boolean;
2271
+ pollInterval?: number | undefined;
2272
+ }>>;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ enabled: boolean;
2275
+ providerConfig: {
2276
+ type: "memory";
2277
+ maxHistorySize?: number | undefined;
2278
+ } | {
2279
+ type: "sqs";
2280
+ region: string;
2281
+ queueUrl: string;
2282
+ deadLetterQueueUrl?: string | undefined;
2283
+ visibilityTimeout?: number | undefined;
2284
+ };
2285
+ worker?: {
2286
+ mode: "in-process" | "standalone";
2287
+ concurrency?: number | undefined;
2288
+ pollInterval?: number | undefined;
2289
+ shutdownTimeout?: number | undefined;
2290
+ } | undefined;
2291
+ scheduler?: {
2292
+ enabled: boolean;
2293
+ pollInterval?: number | undefined;
2294
+ } | undefined;
2295
+ }, {
2296
+ enabled: boolean;
2297
+ providerConfig: {
2298
+ type: "memory";
2299
+ maxHistorySize?: number | undefined;
2300
+ } | {
2301
+ type: "sqs";
2302
+ region: string;
2303
+ queueUrl: string;
2304
+ deadLetterQueueUrl?: string | undefined;
2305
+ visibilityTimeout?: number | undefined;
2306
+ };
2307
+ worker?: {
2308
+ mode: "in-process" | "standalone";
2309
+ concurrency?: number | undefined;
2310
+ pollInterval?: number | undefined;
2311
+ shutdownTimeout?: number | undefined;
2312
+ } | undefined;
2313
+ scheduler?: {
2314
+ enabled: boolean;
2315
+ pollInterval?: number | undefined;
2316
+ } | undefined;
2317
+ }>>;
2318
+ email: z.ZodOptional<z.ZodObject<{
2319
+ enabled: z.ZodBoolean;
2320
+ providerConfig: z.ZodObject<{
2321
+ type: z.ZodLiteral<"ses">;
2322
+ region: z.ZodString;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ type: "ses";
2325
+ region: string;
2326
+ }, {
2327
+ type: "ses";
2328
+ region: string;
2329
+ }>;
2330
+ fromAddress: z.ZodString;
2331
+ fromName: z.ZodOptional<z.ZodString>;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ enabled: boolean;
2334
+ providerConfig: {
2335
+ type: "ses";
2336
+ region: string;
2337
+ };
2338
+ fromAddress: string;
2339
+ fromName?: string | undefined;
2340
+ }, {
2341
+ enabled: boolean;
2342
+ providerConfig: {
2343
+ type: "ses";
2344
+ region: string;
2345
+ };
2346
+ fromAddress: string;
2347
+ fromName?: string | undefined;
2348
+ }>>;
2349
+ scheduledPrompts: z.ZodOptional<z.ZodObject<{
2350
+ enabled: z.ZodBoolean;
2351
+ featureName: z.ZodOptional<z.ZodString>;
2352
+ allowUserPrompts: z.ZodOptional<z.ZodBoolean>;
2353
+ allowTeamPrompts: z.ZodOptional<z.ZodBoolean>;
2354
+ defaultTimezone: z.ZodOptional<z.ZodString>;
2355
+ planLimits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2356
+ plan: z.ZodString;
2357
+ maxUserPrompts: z.ZodOptional<z.ZodNumber>;
2358
+ maxTeamPrompts: z.ZodOptional<z.ZodNumber>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ plan: string;
2361
+ maxUserPrompts?: number | undefined;
2362
+ maxTeamPrompts?: number | undefined;
2363
+ }, {
2364
+ plan: string;
2365
+ maxUserPrompts?: number | undefined;
2366
+ maxTeamPrompts?: number | undefined;
2367
+ }>, "many">>;
2368
+ defaultMaxUserPrompts: z.ZodOptional<z.ZodNumber>;
2369
+ defaultMaxTeamPrompts: z.ZodOptional<z.ZodNumber>;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ enabled: boolean;
2372
+ featureName?: string | undefined;
2373
+ allowUserPrompts?: boolean | undefined;
2374
+ allowTeamPrompts?: boolean | undefined;
2375
+ defaultTimezone?: string | undefined;
2376
+ planLimits?: {
2377
+ plan: string;
2378
+ maxUserPrompts?: number | undefined;
2379
+ maxTeamPrompts?: number | undefined;
2380
+ }[] | undefined;
2381
+ defaultMaxUserPrompts?: number | undefined;
2382
+ defaultMaxTeamPrompts?: number | undefined;
2383
+ }, {
2384
+ enabled: boolean;
2385
+ featureName?: string | undefined;
2386
+ allowUserPrompts?: boolean | undefined;
2387
+ allowTeamPrompts?: boolean | undefined;
2388
+ defaultTimezone?: string | undefined;
2389
+ planLimits?: {
2390
+ plan: string;
2391
+ maxUserPrompts?: number | undefined;
2392
+ maxTeamPrompts?: number | undefined;
2393
+ }[] | undefined;
2394
+ defaultMaxUserPrompts?: number | undefined;
2395
+ defaultMaxTeamPrompts?: number | undefined;
2396
+ }>>;
2397
+ rateLimit: z.ZodOptional<z.ZodObject<{
2398
+ enabled: z.ZodOptional<z.ZodBoolean>;
2399
+ windowMs: z.ZodOptional<z.ZodNumber>;
2400
+ max: z.ZodOptional<z.ZodNumber>;
2401
+ message: z.ZodOptional<z.ZodString>;
2402
+ }, "strip", z.ZodTypeAny, {
2403
+ message?: string | undefined;
2404
+ enabled?: boolean | undefined;
2405
+ windowMs?: number | undefined;
2406
+ max?: number | undefined;
2407
+ }, {
2408
+ message?: string | undefined;
2409
+ enabled?: boolean | undefined;
2410
+ windowMs?: number | undefined;
2411
+ max?: number | undefined;
2412
+ }>>;
2413
+ credits: z.ZodOptional<z.ZodObject<{
2414
+ enabled: z.ZodBoolean;
2415
+ expiryEnabled: z.ZodOptional<z.ZodBoolean>;
2416
+ defaultExpiryDays: z.ZodOptional<z.ZodNumber>;
2417
+ tokensPerCredit: z.ZodOptional<z.ZodNumber>;
2418
+ referralRewardCredits: z.ZodOptional<z.ZodNumber>;
2419
+ referralTriggers: z.ZodOptional<z.ZodObject<{
2420
+ signup: z.ZodBoolean;
2421
+ firstMessage: z.ZodBoolean;
2422
+ paying: z.ZodBoolean;
2423
+ }, "strip", z.ZodTypeAny, {
2424
+ signup: boolean;
2425
+ firstMessage: boolean;
2426
+ paying: boolean;
2427
+ }, {
2428
+ signup: boolean;
2429
+ firstMessage: boolean;
2430
+ paying: boolean;
2431
+ }>>;
2432
+ promoEnabled: z.ZodOptional<z.ZodBoolean>;
2433
+ }, "strip", z.ZodTypeAny, {
2434
+ enabled: boolean;
2435
+ expiryEnabled?: boolean | undefined;
2436
+ defaultExpiryDays?: number | undefined;
2437
+ tokensPerCredit?: number | undefined;
2438
+ referralRewardCredits?: number | undefined;
2439
+ referralTriggers?: {
2440
+ signup: boolean;
2441
+ firstMessage: boolean;
2442
+ paying: boolean;
2443
+ } | undefined;
2444
+ promoEnabled?: boolean | undefined;
2445
+ }, {
2446
+ enabled: boolean;
2447
+ expiryEnabled?: boolean | undefined;
2448
+ defaultExpiryDays?: number | undefined;
2449
+ tokensPerCredit?: number | undefined;
2450
+ referralRewardCredits?: number | undefined;
2451
+ referralTriggers?: {
2452
+ signup: boolean;
2453
+ firstMessage: boolean;
2454
+ paying: boolean;
2455
+ } | undefined;
2456
+ promoEnabled?: boolean | undefined;
2457
+ }>>;
2458
+ metering: z.ZodOptional<z.ZodObject<{
2459
+ enabled: z.ZodBoolean;
2460
+ recordPromptCompletion: z.ZodOptional<z.ZodBoolean>;
2461
+ }, "strip", z.ZodTypeAny, {
2462
+ enabled: boolean;
2463
+ recordPromptCompletion?: boolean | undefined;
2464
+ }, {
2465
+ enabled: boolean;
2466
+ recordPromptCompletion?: boolean | undefined;
2467
+ }>>;
1393
2468
  }, "strip", z.ZodTypeAny, {
1394
2469
  app: {
1395
2470
  name: string;
1396
2471
  url: string;
1397
2472
  description: string;
2473
+ basePath?: string | undefined;
1398
2474
  };
1399
2475
  ui: {
1400
2476
  welcomeTitle: string;
@@ -1415,6 +2491,8 @@ export declare const appConfigSchema: z.ZodObject<{
1415
2491
  themes: Record<string, {
1416
2492
  name: string;
1417
2493
  colors: {
2494
+ error: string;
2495
+ success: string;
1418
2496
  primary: string;
1419
2497
  primaryHover: string;
1420
2498
  secondary: string;
@@ -1431,9 +2509,7 @@ export declare const appConfigSchema: z.ZodObject<{
1431
2509
  userMessageText: string;
1432
2510
  assistantMessageBg: string;
1433
2511
  assistantMessageText: string;
1434
- success: string;
1435
2512
  warning: string;
1436
- error: string;
1437
2513
  };
1438
2514
  }>;
1439
2515
  fonts: {
@@ -1454,10 +2530,24 @@ export declare const appConfigSchema: z.ZodObject<{
1454
2530
  enabled: boolean;
1455
2531
  expiresInMinutes: number;
1456
2532
  };
2533
+ emailVerification?: {
2534
+ enabled: boolean;
2535
+ codeLength?: number | undefined;
2536
+ expiresInMinutes?: number | undefined;
2537
+ allowResendAfterSeconds?: number | undefined;
2538
+ } | undefined;
2539
+ gating?: {
2540
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
2541
+ inviteExpiryDays?: number | undefined;
2542
+ windowStart?: string | undefined;
2543
+ windowEnd?: string | undefined;
2544
+ capacityLimit?: number | undefined;
2545
+ waitlistEnabled?: boolean | undefined;
2546
+ } | undefined;
1457
2547
  };
1458
2548
  agent: {
1459
- type: "built-in";
1460
2549
  provider: "anthropic" | "openai";
2550
+ type: "built-in";
1461
2551
  model: string;
1462
2552
  systemPrompt: string;
1463
2553
  maxTokens: number;
@@ -1465,11 +2555,33 @@ export declare const appConfigSchema: z.ZodObject<{
1465
2555
  type: "external";
1466
2556
  endpoint: string;
1467
2557
  headers?: Record<string, string> | undefined;
2558
+ } | {
2559
+ agents: ({
2560
+ provider: "anthropic" | "openai";
2561
+ name: string;
2562
+ model: string;
2563
+ systemPrompt: string;
2564
+ maxTokens: number;
2565
+ id: string;
2566
+ isDefault?: boolean | undefined;
2567
+ allowedTools?: string[] | undefined;
2568
+ plans?: string[] | undefined;
2569
+ } | {
2570
+ name: string;
2571
+ type: "external";
2572
+ endpoint: string;
2573
+ id: string;
2574
+ headers?: Record<string, string> | undefined;
2575
+ isDefault?: boolean | undefined;
2576
+ allowedTools?: string[] | undefined;
2577
+ plans?: string[] | undefined;
2578
+ })[];
1468
2579
  };
1469
2580
  payments: {
1470
- enabled: boolean;
1471
2581
  provider: "stripe";
2582
+ enabled: boolean;
1472
2583
  plans: {
2584
+ name: string;
1473
2585
  params: {
1474
2586
  monthlyMessageLimit: number;
1475
2587
  } | {
@@ -1481,7 +2593,6 @@ export declare const appConfigSchema: z.ZodObject<{
1481
2593
  messagesPerCredit: number;
1482
2594
  };
1483
2595
  type: "free" | "monthly" | "credits";
1484
- name: string;
1485
2596
  id: string;
1486
2597
  }[];
1487
2598
  };
@@ -1498,24 +2609,65 @@ export declare const appConfigSchema: z.ZodObject<{
1498
2609
  placeholder?: string | undefined;
1499
2610
  }[];
1500
2611
  };
2612
+ credits?: {
2613
+ enabled: boolean;
2614
+ expiryEnabled?: boolean | undefined;
2615
+ defaultExpiryDays?: number | undefined;
2616
+ tokensPerCredit?: number | undefined;
2617
+ referralRewardCredits?: number | undefined;
2618
+ referralTriggers?: {
2619
+ signup: boolean;
2620
+ firstMessage: boolean;
2621
+ paying: boolean;
2622
+ } | undefined;
2623
+ promoEnabled?: boolean | undefined;
2624
+ } | undefined;
2625
+ admin?: {
2626
+ emails: string[];
2627
+ } | undefined;
1501
2628
  mcp?: {
1502
2629
  servers: {
2630
+ transport: "stdio" | "sse" | "streamable-http";
1503
2631
  name: string;
1504
2632
  enabled: boolean;
1505
2633
  id: string;
1506
- transport: "stdio" | "sse";
2634
+ oauth?: {
2635
+ authorizationEndpoint?: string | undefined;
2636
+ tokenEndpoint?: string | undefined;
2637
+ clientId?: string | undefined;
2638
+ clientSecretEnvVar?: string | undefined;
2639
+ scopes?: string[] | undefined;
2640
+ clientName?: string | undefined;
2641
+ clientUri?: string | undefined;
2642
+ } | undefined;
2643
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1507
2644
  command?: string | undefined;
1508
2645
  args?: string[] | undefined;
1509
2646
  url?: string | undefined;
2647
+ adminApiKeyEnvVar?: string | undefined;
2648
+ userInstructions?: string | undefined;
1510
2649
  }[];
1511
2650
  allowUserServers: boolean;
1512
- requireToolConfirmation: boolean;
1513
2651
  toolTimeout: number;
2652
+ toolConfirmation?: {
2653
+ mode: "none" | "all" | "whitelist" | "blacklist";
2654
+ tools?: string[] | undefined;
2655
+ } | undefined;
2656
+ showToolCalls?: boolean | undefined;
2657
+ server?: {
2658
+ enabled: boolean;
2659
+ oauth?: {
2660
+ enabled: boolean;
2661
+ allowDynamicRegistration: boolean;
2662
+ accessTokenTTLSeconds?: number | undefined;
2663
+ refreshTokenTTLSeconds?: number | undefined;
2664
+ } | undefined;
2665
+ exposeTools?: "all" | string[] | "native" | undefined;
2666
+ } | undefined;
1514
2667
  } | undefined;
1515
2668
  sharing?: {
1516
2669
  enabled: boolean;
1517
- allowPublicLinks: boolean;
1518
- allowTeamSharing: boolean;
2670
+ scope: "team" | "public";
1519
2671
  expirationOptions: string[];
1520
2672
  } | undefined;
1521
2673
  promptTemplates?: {
@@ -1528,11 +2680,116 @@ export declare const appConfigSchema: z.ZodObject<{
1528
2680
  }[];
1529
2681
  allowUserTemplates: boolean;
1530
2682
  } | undefined;
2683
+ teams?: {
2684
+ enabled: boolean;
2685
+ } | undefined;
2686
+ projects?: {
2687
+ colors: string[];
2688
+ enabled: boolean;
2689
+ } | undefined;
2690
+ api?: {
2691
+ enabled: boolean;
2692
+ allowedPlans?: string[] | undefined;
2693
+ keyPrefix?: string | undefined;
2694
+ allowedEndpoints?: string[] | undefined;
2695
+ } | undefined;
2696
+ documents?: {
2697
+ enabled: boolean;
2698
+ storage: {
2699
+ provider: "database" | "filesystem" | "s3";
2700
+ filesystem?: {
2701
+ basePath: string;
2702
+ } | undefined;
2703
+ s3?: {
2704
+ bucket: string;
2705
+ region: string;
2706
+ endpoint?: string | undefined;
2707
+ } | undefined;
2708
+ };
2709
+ maxFileSizeMB: number;
2710
+ hybridThreshold: number;
2711
+ acceptedTypes: string[];
2712
+ } | undefined;
2713
+ slack?: {
2714
+ enabled: boolean;
2715
+ clientSecretEnvVar: string;
2716
+ clientIdEnvVar: string;
2717
+ signingSecretEnvVar: string;
2718
+ internalSecretEnvVar: string;
2719
+ allowedPlans?: string[] | undefined;
2720
+ aiChat?: {
2721
+ enabled: boolean;
2722
+ threadContinuity: boolean;
2723
+ } | undefined;
2724
+ notifications?: {
2725
+ events: {
2726
+ enabled: boolean;
2727
+ event: "thread_shared" | "message_liked" | "team_member_joined";
2728
+ }[];
2729
+ } | undefined;
2730
+ } | undefined;
2731
+ queue?: {
2732
+ enabled: boolean;
2733
+ providerConfig: {
2734
+ type: "memory";
2735
+ maxHistorySize?: number | undefined;
2736
+ } | {
2737
+ type: "sqs";
2738
+ region: string;
2739
+ queueUrl: string;
2740
+ deadLetterQueueUrl?: string | undefined;
2741
+ visibilityTimeout?: number | undefined;
2742
+ };
2743
+ worker?: {
2744
+ mode: "in-process" | "standalone";
2745
+ concurrency?: number | undefined;
2746
+ pollInterval?: number | undefined;
2747
+ shutdownTimeout?: number | undefined;
2748
+ } | undefined;
2749
+ scheduler?: {
2750
+ enabled: boolean;
2751
+ pollInterval?: number | undefined;
2752
+ } | undefined;
2753
+ } | undefined;
2754
+ email?: {
2755
+ enabled: boolean;
2756
+ providerConfig: {
2757
+ type: "ses";
2758
+ region: string;
2759
+ };
2760
+ fromAddress: string;
2761
+ fromName?: string | undefined;
2762
+ } | undefined;
2763
+ scheduledPrompts?: {
2764
+ enabled: boolean;
2765
+ featureName?: string | undefined;
2766
+ allowUserPrompts?: boolean | undefined;
2767
+ allowTeamPrompts?: boolean | undefined;
2768
+ defaultTimezone?: string | undefined;
2769
+ planLimits?: {
2770
+ plan: string;
2771
+ maxUserPrompts?: number | undefined;
2772
+ maxTeamPrompts?: number | undefined;
2773
+ }[] | undefined;
2774
+ defaultMaxUserPrompts?: number | undefined;
2775
+ defaultMaxTeamPrompts?: number | undefined;
2776
+ } | undefined;
2777
+ rateLimit?: {
2778
+ message?: string | undefined;
2779
+ enabled?: boolean | undefined;
2780
+ windowMs?: number | undefined;
2781
+ max?: number | undefined;
2782
+ } | undefined;
2783
+ metering?: {
2784
+ enabled: boolean;
2785
+ recordPromptCompletion?: boolean | undefined;
2786
+ } | undefined;
1531
2787
  }, {
1532
2788
  app: {
1533
2789
  name: string;
1534
2790
  url: string;
1535
2791
  description: string;
2792
+ basePath?: string | undefined;
1536
2793
  };
1537
2794
  ui: {
1538
2795
  welcomeTitle: string;
@@ -1553,6 +2810,8 @@ export declare const appConfigSchema: z.ZodObject<{
1553
2810
  themes: Record<string, {
1554
2811
  name: string;
1555
2812
  colors: {
2813
+ error: string;
2814
+ success: string;
1556
2815
  primary: string;
1557
2816
  primaryHover: string;
1558
2817
  secondary: string;
@@ -1569,9 +2828,7 @@ export declare const appConfigSchema: z.ZodObject<{
1569
2828
  userMessageText: string;
1570
2829
  assistantMessageBg: string;
1571
2830
  assistantMessageText: string;
1572
- success: string;
1573
2831
  warning: string;
1574
- error: string;
1575
2832
  };
1576
2833
  }>;
1577
2834
  fonts: {
@@ -1592,10 +2849,24 @@ export declare const appConfigSchema: z.ZodObject<{
1592
2849
  enabled: boolean;
1593
2850
  expiresInMinutes: number;
1594
2851
  };
2852
+ emailVerification?: {
2853
+ enabled: boolean;
2854
+ codeLength?: number | undefined;
2855
+ expiresInMinutes?: number | undefined;
2856
+ allowResendAfterSeconds?: number | undefined;
2857
+ } | undefined;
2858
+ gating?: {
2859
+ mode: "open" | "invite_only" | "closed" | "timed_window" | "capacity_limit";
2860
+ inviteExpiryDays?: number | undefined;
2861
+ windowStart?: string | undefined;
2862
+ windowEnd?: string | undefined;
2863
+ capacityLimit?: number | undefined;
2864
+ waitlistEnabled?: boolean | undefined;
2865
+ } | undefined;
1595
2866
  };
1596
2867
  agent: {
1597
- type: "built-in";
1598
2868
  provider: "anthropic" | "openai";
2869
+ type: "built-in";
1599
2870
  model: string;
1600
2871
  systemPrompt: string;
1601
2872
  maxTokens: number;
@@ -1603,11 +2874,33 @@ export declare const appConfigSchema: z.ZodObject<{
1603
2874
  type: "external";
1604
2875
  endpoint: string;
1605
2876
  headers?: Record<string, string> | undefined;
2877
+ } | {
2878
+ agents: ({
2879
+ provider: "anthropic" | "openai";
2880
+ name: string;
2881
+ model: string;
2882
+ systemPrompt: string;
2883
+ maxTokens: number;
2884
+ id: string;
2885
+ isDefault?: boolean | undefined;
2886
+ allowedTools?: string[] | undefined;
2887
+ plans?: string[] | undefined;
2888
+ } | {
2889
+ name: string;
2890
+ type: "external";
2891
+ endpoint: string;
2892
+ id: string;
2893
+ headers?: Record<string, string> | undefined;
2894
+ isDefault?: boolean | undefined;
2895
+ allowedTools?: string[] | undefined;
2896
+ plans?: string[] | undefined;
2897
+ })[];
1606
2898
  };
1607
2899
  payments: {
1608
- enabled: boolean;
1609
2900
  provider: "stripe";
2901
+ enabled: boolean;
1610
2902
  plans: {
2903
+ name: string;
1611
2904
  params: {
1612
2905
  monthlyMessageLimit: number;
1613
2906
  } | {
@@ -1619,7 +2912,6 @@ export declare const appConfigSchema: z.ZodObject<{
1619
2912
  messagesPerCredit: number;
1620
2913
  };
1621
2914
  type: "free" | "monthly" | "credits";
1622
- name: string;
1623
2915
  id: string;
1624
2916
  }[];
1625
2917
  };
@@ -1636,24 +2928,65 @@ export declare const appConfigSchema: z.ZodObject<{
1636
2928
  placeholder?: string | undefined;
1637
2929
  }[];
1638
2930
  };
2931
+ credits?: {
2932
+ enabled: boolean;
2933
+ expiryEnabled?: boolean | undefined;
2934
+ defaultExpiryDays?: number | undefined;
2935
+ tokensPerCredit?: number | undefined;
2936
+ referralRewardCredits?: number | undefined;
2937
+ referralTriggers?: {
2938
+ signup: boolean;
2939
+ firstMessage: boolean;
2940
+ paying: boolean;
2941
+ } | undefined;
2942
+ promoEnabled?: boolean | undefined;
2943
+ } | undefined;
2944
+ admin?: {
2945
+ emails: string[];
2946
+ } | undefined;
1639
2947
  mcp?: {
1640
2948
  servers: {
2949
+ transport: "stdio" | "sse" | "streamable-http";
1641
2950
  name: string;
1642
2951
  enabled: boolean;
1643
2952
  id: string;
1644
- transport: "stdio" | "sse";
2953
+ oauth?: {
2954
+ authorizationEndpoint?: string | undefined;
2955
+ tokenEndpoint?: string | undefined;
2956
+ clientId?: string | undefined;
2957
+ clientSecretEnvVar?: string | undefined;
2958
+ scopes?: string[] | undefined;
2959
+ clientName?: string | undefined;
2960
+ clientUri?: string | undefined;
2961
+ } | undefined;
2962
+ authMode?: "none" | "admin" | "user-apikey" | "user-oauth" | undefined;
1645
2963
  command?: string | undefined;
1646
2964
  args?: string[] | undefined;
1647
2965
  url?: string | undefined;
2966
+ adminApiKeyEnvVar?: string | undefined;
2967
+ userInstructions?: string | undefined;
1648
2968
  }[];
1649
2969
  allowUserServers: boolean;
1650
- requireToolConfirmation: boolean;
1651
2970
  toolTimeout: number;
2971
+ toolConfirmation?: {
2972
+ mode: "none" | "all" | "whitelist" | "blacklist";
2973
+ tools?: string[] | undefined;
2974
+ } | undefined;
2975
+ showToolCalls?: boolean | undefined;
2976
+ server?: {
2977
+ enabled: boolean;
2978
+ oauth?: {
2979
+ enabled: boolean;
2980
+ allowDynamicRegistration: boolean;
2981
+ accessTokenTTLSeconds?: number | undefined;
2982
+ refreshTokenTTLSeconds?: number | undefined;
2983
+ } | undefined;
2984
+ exposeTools?: "all" | string[] | "native" | undefined;
2985
+ } | undefined;
1652
2986
  } | undefined;
1653
2987
  sharing?: {
1654
2988
  enabled: boolean;
1655
- allowPublicLinks: boolean;
1656
- allowTeamSharing: boolean;
2989
+ scope: "team" | "public";
1657
2990
  expirationOptions: string[];
1658
2991
  } | undefined;
1659
2992
  promptTemplates?: {
@@ -1666,6 +2999,110 @@ export declare const appConfigSchema: z.ZodObject<{
1666
2999
  }[];
1667
3000
  allowUserTemplates: boolean;
1668
3001
  } | undefined;
3002
+ teams?: {
3003
+ enabled: boolean;
3004
+ } | undefined;
3005
+ projects?: {
3006
+ colors: string[];
3007
+ enabled: boolean;
3008
+ } | undefined;
3009
+ api?: {
3010
+ enabled: boolean;
3011
+ allowedPlans?: string[] | undefined;
3012
+ keyPrefix?: string | undefined;
3013
+ allowedEndpoints?: string[] | undefined;
3014
+ } | undefined;
3015
+ documents?: {
3016
+ enabled: boolean;
3017
+ storage: {
3018
+ provider: "database" | "filesystem" | "s3";
3019
+ filesystem?: {
3020
+ basePath: string;
3021
+ } | undefined;
3022
+ s3?: {
3023
+ bucket: string;
3024
+ region: string;
3025
+ endpoint?: string | undefined;
3026
+ } | undefined;
3027
+ };
3028
+ maxFileSizeMB: number;
3029
+ hybridThreshold: number;
3030
+ acceptedTypes: string[];
3031
+ } | undefined;
3032
+ slack?: {
3033
+ enabled: boolean;
3034
+ clientSecretEnvVar: string;
3035
+ clientIdEnvVar: string;
3036
+ signingSecretEnvVar: string;
3037
+ internalSecretEnvVar: string;
3038
+ allowedPlans?: string[] | undefined;
3039
+ aiChat?: {
3040
+ enabled: boolean;
3041
+ threadContinuity: boolean;
3042
+ } | undefined;
3043
+ notifications?: {
3044
+ events: {
3045
+ enabled: boolean;
3046
+ event: "thread_shared" | "message_liked" | "team_member_joined";
3047
+ }[];
3048
+ } | undefined;
3049
+ } | undefined;
3050
+ queue?: {
3051
+ enabled: boolean;
3052
+ providerConfig: {
3053
+ type: "memory";
3054
+ maxHistorySize?: number | undefined;
3055
+ } | {
3056
+ type: "sqs";
3057
+ region: string;
3058
+ queueUrl: string;
3059
+ deadLetterQueueUrl?: string | undefined;
3060
+ visibilityTimeout?: number | undefined;
3061
+ };
3062
+ worker?: {
3063
+ mode: "in-process" | "standalone";
3064
+ concurrency?: number | undefined;
3065
+ pollInterval?: number | undefined;
3066
+ shutdownTimeout?: number | undefined;
3067
+ } | undefined;
3068
+ scheduler?: {
3069
+ enabled: boolean;
3070
+ pollInterval?: number | undefined;
3071
+ } | undefined;
3072
+ } | undefined;
3073
+ email?: {
3074
+ enabled: boolean;
3075
+ providerConfig: {
3076
+ type: "ses";
3077
+ region: string;
3078
+ };
3079
+ fromAddress: string;
3080
+ fromName?: string | undefined;
3081
+ } | undefined;
3082
+ scheduledPrompts?: {
3083
+ enabled: boolean;
3084
+ featureName?: string | undefined;
3085
+ allowUserPrompts?: boolean | undefined;
3086
+ allowTeamPrompts?: boolean | undefined;
3087
+ defaultTimezone?: string | undefined;
3088
+ planLimits?: {
3089
+ plan: string;
3090
+ maxUserPrompts?: number | undefined;
3091
+ maxTeamPrompts?: number | undefined;
3092
+ }[] | undefined;
3093
+ defaultMaxUserPrompts?: number | undefined;
3094
+ defaultMaxTeamPrompts?: number | undefined;
3095
+ } | undefined;
3096
+ rateLimit?: {
3097
+ message?: string | undefined;
3098
+ enabled?: boolean | undefined;
3099
+ windowMs?: number | undefined;
3100
+ max?: number | undefined;
3101
+ } | undefined;
3102
+ metering?: {
3103
+ enabled: boolean;
3104
+ recordPromptCompletion?: boolean | undefined;
3105
+ } | undefined;
1669
3106
  }>;
1670
3107
  export type ValidatedAppConfig = z.infer<typeof appConfigSchema>;
1671
3108
  //# sourceMappingURL=config.d.ts.map