@inkeep/agents-core 0.0.0-dev-20250910233441 → 0.0.0-dev-20250911000146

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.
@@ -1,7 +1,8 @@
1
- import { z as z$1 } from 'zod';
1
+ import { z } from 'zod';
2
2
  import * as drizzle_zod from 'drizzle-zod';
3
3
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
- import { z } from '@hono/zod-openapi';
4
+ import { z as z$1 } from '@hono/zod-openapi';
5
+ import { StreamableHTTPReconnectionOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
5
6
 
6
7
  interface PartBase {
7
8
  metadata?: {
@@ -376,28 +377,250 @@ type A2AResponse = SendMessageResponse | SendStreamingMessageResponse | GetTaskR
376
377
  type MessagePart = Part;
377
378
  type TaskArtifact = Artifact;
378
379
 
380
+ type MessageVisibility = 'user-facing' | 'internal' | 'system' | 'external';
381
+ type MessageType = 'chat' | 'a2a-request' | 'a2a-response' | 'task-update' | 'tool-call';
382
+ type MessageRole = 'user' | 'agent' | 'system';
383
+ type MessageMode = 'full' | 'scoped' | 'none';
384
+ type Models = z.infer<typeof ModelSchema>;
385
+ type ModelSettings = {
386
+ model?: string;
387
+ providerOptions?: Record<string, unknown>;
388
+ };
389
+ type StatusUpdateSettings = z.infer<typeof StatusUpdateSchema>;
390
+ type StatusComponent = z.infer<typeof StatusComponentSchema>;
391
+ type PaginationConfig = {
392
+ page?: number;
393
+ limit?: number;
394
+ };
395
+ type PaginationResult = {
396
+ page: number;
397
+ limit: number;
398
+ total: number;
399
+ pages: number;
400
+ };
401
+ type ScopeConfig = {
402
+ tenantId: string;
403
+ projectId: string;
404
+ };
405
+ interface ConversationScopeOptions {
406
+ taskId?: string;
407
+ agentId?: string;
408
+ }
409
+ type ConversationHistoryConfig = {
410
+ mode?: 'full' | 'scoped' | 'none';
411
+ limit?: number;
412
+ maxOutputTokens?: number;
413
+ includeInternal?: boolean;
414
+ messageTypes?: MessageType[];
415
+ };
416
+ interface AgentConversationHistoryConfig extends ConversationHistoryConfig {
417
+ mode: 'full' | 'scoped' | 'none';
418
+ }
419
+ type ConversationMetadata = {
420
+ userContext?: Record<string, unknown>;
421
+ preferences?: Record<string, unknown>;
422
+ sessionData?: Record<string, unknown>;
423
+ };
424
+ type MessageContent = {
425
+ text?: string;
426
+ parts?: Array<{
427
+ kind: string;
428
+ text?: string;
429
+ data?: string | Record<string, unknown>;
430
+ metadata?: Record<string, unknown>;
431
+ }>;
432
+ tool_calls?: Array<{
433
+ id: string;
434
+ type: string;
435
+ function: {
436
+ name: string;
437
+ arguments: string;
438
+ };
439
+ }>;
440
+ tool_call_id?: string;
441
+ name?: string;
442
+ };
443
+ type MessageMetadata = {
444
+ openai_model?: string;
445
+ finish_reason?: string;
446
+ usage?: {
447
+ prompt_tokens?: number;
448
+ completion_tokens?: number;
449
+ total_tokens?: number;
450
+ };
451
+ a2a_metadata?: Record<string, unknown>;
452
+ processing_time_ms?: number;
453
+ error_details?: Record<string, unknown>;
454
+ };
455
+ type ContextFetchDefinition = {
456
+ id: string;
457
+ name?: string;
458
+ trigger: 'initialization' | 'invocation';
459
+ fetchConfig: {
460
+ url: string;
461
+ method?: string;
462
+ headers?: Record<string, string>;
463
+ body?: Record<string, unknown>;
464
+ transform?: string;
465
+ timeout?: number;
466
+ };
467
+ responseSchema?: Record<string, unknown>;
468
+ defaultValue?: unknown;
469
+ credentialReferenceId?: string;
470
+ };
471
+ type ContextCacheEntry = {
472
+ id: string;
473
+ tenantId: string;
474
+ projectId: string;
475
+ conversationId: string;
476
+ contextConfigId: string;
477
+ contextVariableKey: string;
478
+ value: unknown;
479
+ requestHash?: string;
480
+ fetchedAt: Date;
481
+ fetchSource?: string;
482
+ fetchDurationMs?: number;
483
+ createdAt: Date;
484
+ updatedAt: Date;
485
+ };
486
+ type McpAuthType = 'bearer' | 'basic' | 'api_key' | 'none';
487
+ type McpServerAuth = {
488
+ type: McpAuthType;
489
+ token?: string;
490
+ username?: string;
491
+ password?: string;
492
+ apiKey?: string;
493
+ headerName?: string;
494
+ };
495
+ type McpTransportConfig = z.infer<typeof McpTransportConfigSchema>;
496
+ type McpServerCapabilities = {
497
+ tools?: boolean;
498
+ resources?: boolean;
499
+ prompts?: boolean;
500
+ logging?: boolean;
501
+ };
502
+ type McpToolDefinition = {
503
+ name: string;
504
+ description?: string;
505
+ inputSchema?: Record<string, unknown>;
506
+ };
507
+ type ToolMcpConfig = {
508
+ server: {
509
+ url: string;
510
+ timeout?: number;
511
+ headers?: Record<string, string>;
512
+ };
513
+ transport?: McpTransportConfig;
514
+ activeTools?: string[];
515
+ };
516
+ type ToolServerCapabilities = {
517
+ tools?: boolean;
518
+ resources?: boolean;
519
+ prompts?: boolean;
520
+ logging?: boolean;
521
+ streaming?: boolean;
522
+ };
523
+ type TaskMetadataConfig = {
524
+ conversation_id: string;
525
+ message_id: string;
526
+ created_at: string;
527
+ updated_at: string;
528
+ root_agent_id?: string;
529
+ agent_id?: string;
530
+ tool_id?: string;
531
+ graph_id?: string;
532
+ stream_request_id?: string;
533
+ };
534
+ interface ProjectInfo {
535
+ projectId: string;
536
+ }
537
+ interface ProjectResourceCounts {
538
+ agents: number;
539
+ agentGraphs: number;
540
+ tools: number;
541
+ contextConfigs: number;
542
+ externalAgents: number;
543
+ }
544
+ interface RequestSchemaDefinition {
545
+ body?: z.ZodSchema<any>;
546
+ headers?: z.ZodSchema<any>;
547
+ query?: z.ZodSchema<any>;
548
+ params?: z.ZodSchema<any>;
549
+ }
550
+ interface RequestSchemaConfig {
551
+ schemas: RequestSchemaDefinition;
552
+ optional?: ('body' | 'headers' | 'query' | 'params')[];
553
+ }
554
+ type toolStatus = 'healthy' | 'unhealthy' | 'unknown';
555
+ declare const TOOL_STATUS_VALUES: readonly ["healthy", "unhealthy", "unknown", "disabled", "needs_auth"];
556
+ declare const VALID_RELATION_TYPES: readonly ["transfer", "delegate"];
557
+ declare const MCPTransportType: {
558
+ readonly streamableHttp: "streamable_http";
559
+ readonly sse: "sse";
560
+ };
561
+ declare const MCPServerType: {
562
+ readonly nango: "nango";
563
+ readonly generic: "generic";
564
+ };
565
+ declare const CredentialStoreType: {
566
+ readonly memory: "memory";
567
+ readonly keychain: "keychain";
568
+ readonly nango: "nango";
569
+ };
570
+ type McpToolStatus = (typeof TOOL_STATUS_VALUES)[number];
571
+ interface CreateApiKeyParams {
572
+ tenantId: string;
573
+ projectId: string;
574
+ graphId: string;
575
+ expiresAt?: string;
576
+ }
577
+ interface ApiKeyCreateResult {
578
+ apiKey: ApiKeySelect;
579
+ key: string;
580
+ }
581
+ /**
582
+ * Execution context that gets propagated through agent calls
583
+ * Contains authentication and routing information for internal API calls
584
+ */
585
+ interface ExecutionContext {
586
+ /** The original API key from the client request */
587
+ apiKey: string;
588
+ /** Tenant ID extracted from API key */
589
+ tenantId: string;
590
+ /** Project ID extracted from API key */
591
+ projectId: string;
592
+ /** Graph ID extracted from API key */
593
+ graphId: string;
594
+ /** Base URL for internal API calls */
595
+ baseUrl: string;
596
+ /** API key ID for tracking */
597
+ apiKeyId: string;
598
+ /** Agent ID extracted from request headers (only for internal A2A calls) */
599
+ agentId?: string;
600
+ }
601
+
379
602
  declare const MIN_ID_LENGTH = 1;
380
603
  declare const MAX_ID_LENGTH = 255;
381
604
  declare const URL_SAFE_ID_PATTERN: RegExp;
382
- declare const resourceIdSchema: z.ZodString;
383
- declare const ModelSettingsSchema: z.ZodObject<{
384
- model: z.ZodOptional<z.ZodString>;
385
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
386
- }, z.core.$strip>;
387
- declare const ModelSchema: z.ZodObject<{
388
- base: z.ZodOptional<z.ZodObject<{
389
- model: z.ZodOptional<z.ZodString>;
390
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
- }, z.core.$strip>>;
392
- structuredOutput: z.ZodOptional<z.ZodObject<{
393
- model: z.ZodOptional<z.ZodString>;
394
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
395
- }, z.core.$strip>>;
396
- summarizer: z.ZodOptional<z.ZodObject<{
397
- model: z.ZodOptional<z.ZodString>;
398
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
- }, z.core.$strip>>;
400
- }, z.core.$strip>;
605
+ declare const resourceIdSchema: z$1.ZodString;
606
+ declare const ModelSettingsSchema: z$1.ZodObject<{
607
+ model: z$1.ZodOptional<z$1.ZodString>;
608
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
609
+ }, z$1.core.$strip>;
610
+ declare const ModelSchema: z$1.ZodObject<{
611
+ base: z$1.ZodOptional<z$1.ZodObject<{
612
+ model: z$1.ZodOptional<z$1.ZodString>;
613
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
614
+ }, z$1.core.$strip>>;
615
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
616
+ model: z$1.ZodOptional<z$1.ZodString>;
617
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
618
+ }, z$1.core.$strip>>;
619
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
620
+ model: z$1.ZodOptional<z$1.ZodString>;
621
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
622
+ }, z$1.core.$strip>>;
623
+ }, z$1.core.$strip>;
401
624
  declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
402
625
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
403
626
  name: "tenant_id";
@@ -639,88 +862,88 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
639
862
  length: number | undefined;
640
863
  }>;
641
864
  }, undefined, undefined>;
642
- declare const AgentInsertSchema: z.ZodObject<{
643
- tenantId: z.ZodString;
644
- projectId: z.ZodString;
645
- name: z.ZodString;
646
- description: z.ZodString;
647
- prompt: z.ZodString;
648
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
649
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
865
+ declare const AgentInsertSchema: z$1.ZodObject<{
866
+ tenantId: z$1.ZodString;
867
+ projectId: z$1.ZodString;
868
+ name: z$1.ZodString;
869
+ description: z$1.ZodString;
870
+ prompt: z$1.ZodString;
871
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
872
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
650
873
  stepCountIs?: number;
651
874
  }, {
652
875
  stepCountIs?: number;
653
- }, z.core.$ZodTypeInternals<{
876
+ }, z$1.core.$ZodTypeInternals<{
654
877
  stepCountIs?: number;
655
878
  }, {
656
879
  stepCountIs?: number;
657
880
  }>>>>;
658
- createdAt: z.ZodOptional<z.ZodString>;
659
- updatedAt: z.ZodOptional<z.ZodString>;
660
- id: z.ZodString;
661
- models: z.ZodOptional<z.ZodObject<{
662
- base: z.ZodOptional<z.ZodObject<{
663
- model: z.ZodOptional<z.ZodString>;
664
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
665
- }, z.core.$strip>>;
666
- structuredOutput: z.ZodOptional<z.ZodObject<{
667
- model: z.ZodOptional<z.ZodString>;
668
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
669
- }, z.core.$strip>>;
670
- summarizer: z.ZodOptional<z.ZodObject<{
671
- model: z.ZodOptional<z.ZodString>;
672
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
673
- }, z.core.$strip>>;
674
- }, z.core.$strip>>;
881
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
882
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
883
+ id: z$1.ZodString;
884
+ models: z$1.ZodOptional<z$1.ZodObject<{
885
+ base: z$1.ZodOptional<z$1.ZodObject<{
886
+ model: z$1.ZodOptional<z$1.ZodString>;
887
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
888
+ }, z$1.core.$strip>>;
889
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
890
+ model: z$1.ZodOptional<z$1.ZodString>;
891
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
892
+ }, z$1.core.$strip>>;
893
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
894
+ model: z$1.ZodOptional<z$1.ZodString>;
895
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
896
+ }, z$1.core.$strip>>;
897
+ }, z$1.core.$strip>>;
675
898
  }, {
676
899
  out: {};
677
900
  in: {};
678
901
  }>;
679
- declare const AgentUpdateSchema: z.ZodObject<{
680
- tenantId: z.ZodOptional<z.ZodString>;
681
- projectId: z.ZodOptional<z.ZodString>;
682
- name: z.ZodOptional<z.ZodString>;
683
- description: z.ZodOptional<z.ZodString>;
684
- prompt: z.ZodOptional<z.ZodString>;
685
- conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>;
686
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
902
+ declare const AgentUpdateSchema: z$1.ZodObject<{
903
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
904
+ projectId: z$1.ZodOptional<z$1.ZodString>;
905
+ name: z$1.ZodOptional<z$1.ZodString>;
906
+ description: z$1.ZodOptional<z$1.ZodString>;
907
+ prompt: z$1.ZodOptional<z$1.ZodString>;
908
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>;
909
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
687
910
  stepCountIs?: number;
688
911
  }, {
689
912
  stepCountIs?: number;
690
- }, z.core.$ZodTypeInternals<{
913
+ }, z$1.core.$ZodTypeInternals<{
691
914
  stepCountIs?: number;
692
915
  }, {
693
916
  stepCountIs?: number;
694
917
  }>>>>>;
695
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
696
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
697
- id: z.ZodOptional<z.ZodString>;
698
- models: z.ZodOptional<z.ZodOptional<z.ZodObject<{
699
- base: z.ZodOptional<z.ZodObject<{
700
- model: z.ZodOptional<z.ZodString>;
701
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
702
- }, z.core.$strip>>;
703
- structuredOutput: z.ZodOptional<z.ZodObject<{
704
- model: z.ZodOptional<z.ZodString>;
705
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
706
- }, z.core.$strip>>;
707
- summarizer: z.ZodOptional<z.ZodObject<{
708
- model: z.ZodOptional<z.ZodString>;
709
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
710
- }, z.core.$strip>>;
711
- }, z.core.$strip>>>;
918
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
919
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
920
+ id: z$1.ZodOptional<z$1.ZodString>;
921
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
922
+ base: z$1.ZodOptional<z$1.ZodObject<{
923
+ model: z$1.ZodOptional<z$1.ZodString>;
924
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
925
+ }, z$1.core.$strip>>;
926
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
927
+ model: z$1.ZodOptional<z$1.ZodString>;
928
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
929
+ }, z$1.core.$strip>>;
930
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
931
+ model: z$1.ZodOptional<z$1.ZodString>;
932
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
933
+ }, z$1.core.$strip>>;
934
+ }, z$1.core.$strip>>>;
712
935
  }, {
713
936
  out: {};
714
937
  in: {};
715
938
  }>;
716
- declare const AgentApiSelectSchema: z.ZodObject<{
717
- name: z.ZodString;
718
- prompt: z.ZodString;
719
- description: z.ZodString;
720
- id: z.ZodString;
721
- createdAt: z.ZodString;
722
- updatedAt: z.ZodString;
723
- models: z.ZodNullable<z.ZodType<{
939
+ declare const AgentApiSelectSchema: z$1.ZodObject<{
940
+ id: z$1.ZodString;
941
+ name: z$1.ZodString;
942
+ description: z$1.ZodString;
943
+ prompt: z$1.ZodString;
944
+ createdAt: z$1.ZodString;
945
+ updatedAt: z$1.ZodString;
946
+ models: z$1.ZodNullable<z$1.ZodType<{
724
947
  base?: {
725
948
  model?: string | undefined;
726
949
  providerOptions?: Record<string, unknown> | undefined;
@@ -746,7 +969,7 @@ declare const AgentApiSelectSchema: z.ZodObject<{
746
969
  model?: string | undefined;
747
970
  providerOptions?: Record<string, unknown> | undefined;
748
971
  } | undefined;
749
- }, z.core.$ZodTypeInternals<{
972
+ }, z$1.core.$ZodTypeInternals<{
750
973
  base?: {
751
974
  model?: string | undefined;
752
975
  providerOptions?: Record<string, unknown> | undefined;
@@ -773,81 +996,81 @@ declare const AgentApiSelectSchema: z.ZodObject<{
773
996
  providerOptions?: Record<string, unknown> | undefined;
774
997
  } | undefined;
775
998
  }>>>;
776
- stopWhen: z.ZodNullable<z.ZodType<{
999
+ stopWhen: z$1.ZodNullable<z$1.ZodType<{
777
1000
  stepCountIs?: number;
778
1001
  }, {
779
1002
  stepCountIs?: number;
780
- }, z.core.$ZodTypeInternals<{
1003
+ }, z$1.core.$ZodTypeInternals<{
781
1004
  stepCountIs?: number;
782
1005
  }, {
783
1006
  stepCountIs?: number;
784
1007
  }>>>;
785
- conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
786
- }, z.core.$strip>;
787
- declare const AgentApiInsertSchema: z.ZodObject<{
788
- name: z.ZodString;
789
- prompt: z.ZodString;
790
- description: z.ZodString;
791
- id: z.ZodString;
792
- createdAt: z.ZodOptional<z.ZodString>;
793
- updatedAt: z.ZodOptional<z.ZodString>;
794
- models: z.ZodOptional<z.ZodObject<{
795
- base: z.ZodOptional<z.ZodObject<{
796
- model: z.ZodOptional<z.ZodString>;
797
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
798
- }, z.core.$strip>>;
799
- structuredOutput: z.ZodOptional<z.ZodObject<{
800
- model: z.ZodOptional<z.ZodString>;
801
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
802
- }, z.core.$strip>>;
803
- summarizer: z.ZodOptional<z.ZodObject<{
804
- model: z.ZodOptional<z.ZodString>;
805
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
806
- }, z.core.$strip>>;
807
- }, z.core.$strip>>;
808
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
1008
+ conversationHistoryConfig: z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
1009
+ }, z$1.core.$strip>;
1010
+ declare const AgentApiInsertSchema: z$1.ZodObject<{
1011
+ id: z$1.ZodString;
1012
+ name: z$1.ZodString;
1013
+ description: z$1.ZodString;
1014
+ prompt: z$1.ZodString;
1015
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1016
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1017
+ models: z$1.ZodOptional<z$1.ZodObject<{
1018
+ base: z$1.ZodOptional<z$1.ZodObject<{
1019
+ model: z$1.ZodOptional<z$1.ZodString>;
1020
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1021
+ }, z$1.core.$strip>>;
1022
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
1023
+ model: z$1.ZodOptional<z$1.ZodString>;
1024
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1025
+ }, z$1.core.$strip>>;
1026
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
1027
+ model: z$1.ZodOptional<z$1.ZodString>;
1028
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1029
+ }, z$1.core.$strip>>;
1030
+ }, z$1.core.$strip>>;
1031
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
809
1032
  stepCountIs?: number;
810
1033
  }, {
811
1034
  stepCountIs?: number;
812
- }, z.core.$ZodTypeInternals<{
1035
+ }, z$1.core.$ZodTypeInternals<{
813
1036
  stepCountIs?: number;
814
1037
  }, {
815
1038
  stepCountIs?: number;
816
1039
  }>>>>;
817
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
818
- }, z.core.$strip>;
819
- declare const AgentApiUpdateSchema: z.ZodObject<{
820
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
821
- prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
822
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
823
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
824
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
825
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
826
- models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
827
- base: z.ZodOptional<z.ZodObject<{
828
- model: z.ZodOptional<z.ZodString>;
829
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
830
- }, z.core.$strip>>;
831
- structuredOutput: z.ZodOptional<z.ZodObject<{
832
- model: z.ZodOptional<z.ZodString>;
833
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
834
- }, z.core.$strip>>;
835
- summarizer: z.ZodOptional<z.ZodObject<{
836
- model: z.ZodOptional<z.ZodString>;
837
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
838
- }, z.core.$strip>>;
839
- }, z.core.$strip>>>>;
840
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
1040
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
1041
+ }, z$1.core.$strip>;
1042
+ declare const AgentApiUpdateSchema: z$1.ZodObject<{
1043
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1044
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1045
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1046
+ prompt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1047
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1048
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1049
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1050
+ base: z$1.ZodOptional<z$1.ZodObject<{
1051
+ model: z$1.ZodOptional<z$1.ZodString>;
1052
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1053
+ }, z$1.core.$strip>>;
1054
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
1055
+ model: z$1.ZodOptional<z$1.ZodString>;
1056
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1057
+ }, z$1.core.$strip>>;
1058
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
1059
+ model: z$1.ZodOptional<z$1.ZodString>;
1060
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1061
+ }, z$1.core.$strip>>;
1062
+ }, z$1.core.$strip>>>>;
1063
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
841
1064
  stepCountIs?: number;
842
1065
  }, {
843
1066
  stepCountIs?: number;
844
- }, z.core.$ZodTypeInternals<{
1067
+ }, z$1.core.$ZodTypeInternals<{
845
1068
  stepCountIs?: number;
846
1069
  }, {
847
1070
  stepCountIs?: number;
848
1071
  }>>>>>>;
849
- conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
850
- }, z.core.$strip>;
1072
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
1073
+ }, z$1.core.$strip>;
851
1074
  declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
852
1075
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
853
1076
  name: "tenant_id";
@@ -1040,102 +1263,102 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1040
1263
  length: number | undefined;
1041
1264
  }>;
1042
1265
  }, undefined, undefined>;
1043
- declare const AgentRelationInsertSchema: z.ZodObject<{
1044
- tenantId: z.ZodString;
1045
- projectId: z.ZodString;
1046
- relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
- createdAt: z.ZodOptional<z.ZodString>;
1048
- updatedAt: z.ZodOptional<z.ZodString>;
1049
- id: z.ZodString;
1050
- graphId: z.ZodString;
1051
- sourceAgentId: z.ZodString;
1052
- targetAgentId: z.ZodOptional<z.ZodString>;
1053
- externalAgentId: z.ZodOptional<z.ZodString>;
1266
+ declare const AgentRelationInsertSchema: z$1.ZodObject<{
1267
+ tenantId: z$1.ZodString;
1268
+ projectId: z$1.ZodString;
1269
+ relationType: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1270
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1271
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1272
+ id: z$1.ZodString;
1273
+ graphId: z$1.ZodString;
1274
+ sourceAgentId: z$1.ZodString;
1275
+ targetAgentId: z$1.ZodOptional<z$1.ZodString>;
1276
+ externalAgentId: z$1.ZodOptional<z$1.ZodString>;
1054
1277
  }, {
1055
1278
  out: {};
1056
1279
  in: {};
1057
1280
  }>;
1058
- declare const AgentRelationUpdateSchema: z.ZodObject<{
1059
- tenantId: z.ZodOptional<z.ZodString>;
1060
- projectId: z.ZodOptional<z.ZodString>;
1061
- relationType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1062
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1063
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1064
- id: z.ZodOptional<z.ZodString>;
1065
- graphId: z.ZodOptional<z.ZodString>;
1066
- sourceAgentId: z.ZodOptional<z.ZodString>;
1067
- targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1068
- externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1281
+ declare const AgentRelationUpdateSchema: z$1.ZodObject<{
1282
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
1283
+ projectId: z$1.ZodOptional<z$1.ZodString>;
1284
+ relationType: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
1285
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1286
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1287
+ id: z$1.ZodOptional<z$1.ZodString>;
1288
+ graphId: z$1.ZodOptional<z$1.ZodString>;
1289
+ sourceAgentId: z$1.ZodOptional<z$1.ZodString>;
1290
+ targetAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1291
+ externalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1069
1292
  }, {
1070
1293
  out: {};
1071
1294
  in: {};
1072
1295
  }>;
1073
- declare const AgentRelationApiSelectSchema: z.ZodObject<{
1074
- id: z.ZodString;
1075
- graphId: z.ZodString;
1076
- createdAt: z.ZodString;
1077
- updatedAt: z.ZodString;
1078
- sourceAgentId: z.ZodString;
1079
- targetAgentId: z.ZodNullable<z.ZodString>;
1080
- externalAgentId: z.ZodNullable<z.ZodString>;
1081
- relationType: z.ZodNullable<z.ZodString>;
1082
- }, z.core.$strip>;
1083
- declare const AgentRelationApiInsertSchema: z.ZodObject<{
1084
- id: z.ZodString;
1085
- graphId: z.ZodString;
1086
- createdAt: z.ZodOptional<z.ZodString>;
1087
- updatedAt: z.ZodOptional<z.ZodString>;
1088
- sourceAgentId: z.ZodString;
1089
- targetAgentId: z.ZodOptional<z.ZodString>;
1090
- externalAgentId: z.ZodOptional<z.ZodString>;
1091
- relationType: z.ZodEnum<{
1296
+ declare const AgentRelationApiSelectSchema: z$1.ZodObject<{
1297
+ id: z$1.ZodString;
1298
+ graphId: z$1.ZodString;
1299
+ createdAt: z$1.ZodString;
1300
+ updatedAt: z$1.ZodString;
1301
+ sourceAgentId: z$1.ZodString;
1302
+ targetAgentId: z$1.ZodNullable<z$1.ZodString>;
1303
+ externalAgentId: z$1.ZodNullable<z$1.ZodString>;
1304
+ relationType: z$1.ZodNullable<z$1.ZodString>;
1305
+ }, z$1.core.$strip>;
1306
+ declare const AgentRelationApiInsertSchema: z$1.ZodObject<{
1307
+ id: z$1.ZodString;
1308
+ graphId: z$1.ZodString;
1309
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1310
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1311
+ sourceAgentId: z$1.ZodString;
1312
+ targetAgentId: z$1.ZodOptional<z$1.ZodString>;
1313
+ externalAgentId: z$1.ZodOptional<z$1.ZodString>;
1314
+ relationType: z$1.ZodEnum<{
1092
1315
  transfer: "transfer";
1093
1316
  delegate: "delegate";
1094
1317
  }>;
1095
- }, z.core.$strip>;
1096
- declare const AgentRelationApiUpdateSchema: z.ZodObject<{
1097
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1098
- graphId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1099
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1100
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1101
- sourceAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1102
- targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1103
- externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1104
- relationType: z.ZodOptional<z.ZodEnum<{
1318
+ }, z$1.core.$strip>;
1319
+ declare const AgentRelationApiUpdateSchema: z$1.ZodObject<{
1320
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1321
+ graphId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1322
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1323
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1324
+ sourceAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1325
+ targetAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1326
+ externalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
1327
+ relationType: z$1.ZodOptional<z$1.ZodEnum<{
1105
1328
  transfer: "transfer";
1106
1329
  delegate: "delegate";
1107
1330
  }>>;
1108
- }, z.core.$strip>;
1109
- declare const AgentRelationQuerySchema: z.ZodObject<{
1110
- sourceAgentId: z.ZodOptional<z.ZodString>;
1111
- targetAgentId: z.ZodOptional<z.ZodString>;
1112
- externalAgentId: z.ZodOptional<z.ZodString>;
1113
- }, z.core.$strip>;
1114
- declare const ExternalAgentRelationInsertSchema: z.ZodObject<{
1115
- tenantId: z.ZodString;
1116
- projectId: z.ZodString;
1117
- targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1118
- relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1119
- createdAt: z.ZodOptional<z.ZodString>;
1120
- updatedAt: z.ZodOptional<z.ZodString>;
1121
- id: z.ZodString;
1122
- graphId: z.ZodString;
1123
- sourceAgentId: z.ZodString;
1124
- externalAgentId: z.ZodString;
1331
+ }, z$1.core.$strip>;
1332
+ declare const AgentRelationQuerySchema: z$1.ZodObject<{
1333
+ sourceAgentId: z$1.ZodOptional<z$1.ZodString>;
1334
+ targetAgentId: z$1.ZodOptional<z$1.ZodString>;
1335
+ externalAgentId: z$1.ZodOptional<z$1.ZodString>;
1336
+ }, z$1.core.$strip>;
1337
+ declare const ExternalAgentRelationInsertSchema: z$1.ZodObject<{
1338
+ tenantId: z$1.ZodString;
1339
+ projectId: z$1.ZodString;
1340
+ targetAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1341
+ relationType: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1342
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1343
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1344
+ id: z$1.ZodString;
1345
+ graphId: z$1.ZodString;
1346
+ sourceAgentId: z$1.ZodString;
1347
+ externalAgentId: z$1.ZodString;
1125
1348
  }, {
1126
1349
  out: {};
1127
1350
  in: {};
1128
1351
  }>;
1129
- declare const ExternalAgentRelationApiInsertSchema: z.ZodObject<{
1130
- id: z.ZodString;
1131
- graphId: z.ZodString;
1132
- createdAt: z.ZodOptional<z.ZodString>;
1133
- updatedAt: z.ZodOptional<z.ZodString>;
1134
- sourceAgentId: z.ZodString;
1135
- targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1136
- externalAgentId: z.ZodString;
1137
- relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
- }, z.core.$strip>;
1352
+ declare const ExternalAgentRelationApiInsertSchema: z$1.ZodObject<{
1353
+ id: z$1.ZodString;
1354
+ graphId: z$1.ZodString;
1355
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1356
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1357
+ sourceAgentId: z$1.ZodString;
1358
+ targetAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1359
+ externalAgentId: z$1.ZodString;
1360
+ relationType: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1361
+ }, z$1.core.$strip>;
1139
1362
  declare const AgentGraphSelectSchema: drizzle_zod.BuildSchema<"select", {
1140
1363
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
1141
1364
  name: "tenant_id";
@@ -1443,14 +1666,14 @@ declare const AgentGraphSelectSchema: drizzle_zod.BuildSchema<"select", {
1443
1666
  length: number | undefined;
1444
1667
  }>;
1445
1668
  }, undefined, undefined>;
1446
- declare const AgentGraphInsertSchema: z.ZodObject<{
1447
- tenantId: z.ZodString;
1448
- projectId: z.ZodString;
1449
- name: z.ZodString;
1450
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1451
- defaultAgentId: z.ZodString;
1452
- contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
- models: z.ZodOptional<z.ZodNullable<z.ZodType<{
1669
+ declare const AgentGraphInsertSchema: z$1.ZodObject<{
1670
+ tenantId: z$1.ZodString;
1671
+ projectId: z$1.ZodString;
1672
+ name: z$1.ZodString;
1673
+ description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1674
+ defaultAgentId: z$1.ZodString;
1675
+ contextConfigId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1676
+ models: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1454
1677
  base?: {
1455
1678
  model?: string | undefined;
1456
1679
  providerOptions?: Record<string, unknown> | undefined;
@@ -1476,7 +1699,7 @@ declare const AgentGraphInsertSchema: z.ZodObject<{
1476
1699
  model?: string | undefined;
1477
1700
  providerOptions?: Record<string, unknown> | undefined;
1478
1701
  } | undefined;
1479
- }, z.core.$ZodTypeInternals<{
1702
+ }, z$1.core.$ZodTypeInternals<{
1480
1703
  base?: {
1481
1704
  model?: string | undefined;
1482
1705
  providerOptions?: Record<string, unknown> | undefined;
@@ -1503,7 +1726,7 @@ declare const AgentGraphInsertSchema: z.ZodObject<{
1503
1726
  providerOptions?: Record<string, unknown> | undefined;
1504
1727
  } | undefined;
1505
1728
  }>>>>;
1506
- statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
1729
+ statusUpdates: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1507
1730
  enabled?: boolean | undefined;
1508
1731
  numEvents?: number | undefined;
1509
1732
  timeInSeconds?: number | undefined;
@@ -1531,7 +1754,7 @@ declare const AgentGraphInsertSchema: z.ZodObject<{
1531
1754
  required?: string[] | undefined;
1532
1755
  } | undefined;
1533
1756
  }[] | undefined;
1534
- }, z.core.$ZodTypeInternals<{
1757
+ }, z$1.core.$ZodTypeInternals<{
1535
1758
  enabled?: boolean | undefined;
1536
1759
  numEvents?: number | undefined;
1537
1760
  timeInSeconds?: number | undefined;
@@ -1560,31 +1783,31 @@ declare const AgentGraphInsertSchema: z.ZodObject<{
1560
1783
  } | undefined;
1561
1784
  }[] | undefined;
1562
1785
  }>>>>;
1563
- graphPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
1786
+ graphPrompt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1787
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1565
1788
  transferCountIs?: number;
1566
1789
  }, {
1567
1790
  transferCountIs?: number;
1568
- }, z.core.$ZodTypeInternals<{
1791
+ }, z$1.core.$ZodTypeInternals<{
1569
1792
  transferCountIs?: number;
1570
1793
  }, {
1571
1794
  transferCountIs?: number;
1572
1795
  }>>>>;
1573
- createdAt: z.ZodOptional<z.ZodString>;
1574
- updatedAt: z.ZodOptional<z.ZodString>;
1575
- id: z.ZodString;
1796
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
1797
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
1798
+ id: z$1.ZodString;
1576
1799
  }, {
1577
1800
  out: {};
1578
1801
  in: {};
1579
1802
  }>;
1580
- declare const AgentGraphUpdateSchema: z.ZodObject<{
1581
- tenantId: z.ZodOptional<z.ZodString>;
1582
- projectId: z.ZodOptional<z.ZodString>;
1583
- name: z.ZodOptional<z.ZodString>;
1584
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1585
- defaultAgentId: z.ZodOptional<z.ZodString>;
1586
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1587
- models: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
1803
+ declare const AgentGraphUpdateSchema: z$1.ZodObject<{
1804
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
1805
+ projectId: z$1.ZodOptional<z$1.ZodString>;
1806
+ name: z$1.ZodOptional<z$1.ZodString>;
1807
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
1808
+ defaultAgentId: z$1.ZodOptional<z$1.ZodString>;
1809
+ contextConfigId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
1810
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1588
1811
  base?: {
1589
1812
  model?: string | undefined;
1590
1813
  providerOptions?: Record<string, unknown> | undefined;
@@ -1610,7 +1833,7 @@ declare const AgentGraphUpdateSchema: z.ZodObject<{
1610
1833
  model?: string | undefined;
1611
1834
  providerOptions?: Record<string, unknown> | undefined;
1612
1835
  } | undefined;
1613
- }, z.core.$ZodTypeInternals<{
1836
+ }, z$1.core.$ZodTypeInternals<{
1614
1837
  base?: {
1615
1838
  model?: string | undefined;
1616
1839
  providerOptions?: Record<string, unknown> | undefined;
@@ -1637,7 +1860,7 @@ declare const AgentGraphUpdateSchema: z.ZodObject<{
1637
1860
  providerOptions?: Record<string, unknown> | undefined;
1638
1861
  } | undefined;
1639
1862
  }>>>>>;
1640
- statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
1863
+ statusUpdates: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1641
1864
  enabled?: boolean | undefined;
1642
1865
  numEvents?: number | undefined;
1643
1866
  timeInSeconds?: number | undefined;
@@ -1665,7 +1888,7 @@ declare const AgentGraphUpdateSchema: z.ZodObject<{
1665
1888
  required?: string[] | undefined;
1666
1889
  } | undefined;
1667
1890
  }[] | undefined;
1668
- }, z.core.$ZodTypeInternals<{
1891
+ }, z$1.core.$ZodTypeInternals<{
1669
1892
  enabled?: boolean | undefined;
1670
1893
  numEvents?: number | undefined;
1671
1894
  timeInSeconds?: number | undefined;
@@ -1694,32 +1917,31 @@ declare const AgentGraphUpdateSchema: z.ZodObject<{
1694
1917
  } | undefined;
1695
1918
  }[] | undefined;
1696
1919
  }>>>>>;
1697
- graphPrompt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1698
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
1920
+ graphPrompt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
1921
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1699
1922
  transferCountIs?: number;
1700
1923
  }, {
1701
1924
  transferCountIs?: number;
1702
- }, z.core.$ZodTypeInternals<{
1925
+ }, z$1.core.$ZodTypeInternals<{
1703
1926
  transferCountIs?: number;
1704
1927
  }, {
1705
1928
  transferCountIs?: number;
1706
1929
  }>>>>>;
1707
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1708
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1709
- id: z.ZodOptional<z.ZodString>;
1930
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1931
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
1932
+ id: z$1.ZodOptional<z$1.ZodString>;
1710
1933
  }, {
1711
1934
  out: {};
1712
1935
  in: {};
1713
1936
  }>;
1714
- declare const AgentGraphApiSelectSchema: z.ZodObject<{
1715
- name: z.ZodString;
1716
- description: z.ZodNullable<z.ZodString>;
1717
- id: z.ZodString;
1718
- createdAt: z.ZodString;
1719
- updatedAt: z.ZodString;
1720
- defaultAgentId: z.ZodString;
1721
- contextConfigId: z.ZodNullable<z.ZodString>;
1722
- models: z.ZodNullable<z.ZodType<{
1937
+ declare const AgentGraphApiSelectSchema: z$1.ZodObject<{
1938
+ id: z$1.ZodString;
1939
+ name: z$1.ZodString;
1940
+ description: z$1.ZodNullable<z$1.ZodString>;
1941
+ createdAt: z$1.ZodString;
1942
+ updatedAt: z$1.ZodString;
1943
+ defaultAgentId: z$1.ZodString;
1944
+ models: z$1.ZodNullable<z$1.ZodType<{
1723
1945
  base?: {
1724
1946
  model?: string | undefined;
1725
1947
  providerOptions?: Record<string, unknown> | undefined;
@@ -1745,7 +1967,7 @@ declare const AgentGraphApiSelectSchema: z.ZodObject<{
1745
1967
  model?: string | undefined;
1746
1968
  providerOptions?: Record<string, unknown> | undefined;
1747
1969
  } | undefined;
1748
- }, z.core.$ZodTypeInternals<{
1970
+ }, z$1.core.$ZodTypeInternals<{
1749
1971
  base?: {
1750
1972
  model?: string | undefined;
1751
1973
  providerOptions?: Record<string, unknown> | undefined;
@@ -1772,7 +1994,17 @@ declare const AgentGraphApiSelectSchema: z.ZodObject<{
1772
1994
  providerOptions?: Record<string, unknown> | undefined;
1773
1995
  } | undefined;
1774
1996
  }>>>;
1775
- statusUpdates: z.ZodNullable<z.ZodType<{
1997
+ stopWhen: z$1.ZodNullable<z$1.ZodType<{
1998
+ transferCountIs?: number;
1999
+ }, {
2000
+ transferCountIs?: number;
2001
+ }, z$1.core.$ZodTypeInternals<{
2002
+ transferCountIs?: number;
2003
+ }, {
2004
+ transferCountIs?: number;
2005
+ }>>>;
2006
+ graphPrompt: z$1.ZodNullable<z$1.ZodString>;
2007
+ statusUpdates: z$1.ZodNullable<z$1.ZodType<{
1776
2008
  enabled?: boolean | undefined;
1777
2009
  numEvents?: number | undefined;
1778
2010
  timeInSeconds?: number | undefined;
@@ -1800,7 +2032,7 @@ declare const AgentGraphApiSelectSchema: z.ZodObject<{
1800
2032
  required?: string[] | undefined;
1801
2033
  } | undefined;
1802
2034
  }[] | undefined;
1803
- }, z.core.$ZodTypeInternals<{
2035
+ }, z$1.core.$ZodTypeInternals<{
1804
2036
  enabled?: boolean | undefined;
1805
2037
  numEvents?: number | undefined;
1806
2038
  timeInSeconds?: number | undefined;
@@ -1829,25 +2061,15 @@ declare const AgentGraphApiSelectSchema: z.ZodObject<{
1829
2061
  } | undefined;
1830
2062
  }[] | undefined;
1831
2063
  }>>>;
1832
- graphPrompt: z.ZodNullable<z.ZodString>;
1833
- stopWhen: z.ZodNullable<z.ZodType<{
1834
- transferCountIs?: number;
1835
- }, {
1836
- transferCountIs?: number;
1837
- }, z.core.$ZodTypeInternals<{
1838
- transferCountIs?: number;
1839
- }, {
1840
- transferCountIs?: number;
1841
- }>>>;
1842
- }, z.core.$strip>;
1843
- declare const AgentGraphApiInsertSchema: z.ZodObject<{
1844
- name: z.ZodString;
1845
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
- createdAt: z.ZodOptional<z.ZodString>;
1847
- updatedAt: z.ZodOptional<z.ZodString>;
1848
- defaultAgentId: z.ZodString;
1849
- contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1850
- models: z.ZodOptional<z.ZodNullable<z.ZodType<{
2064
+ contextConfigId: z$1.ZodNullable<z$1.ZodString>;
2065
+ }, z$1.core.$strip>;
2066
+ declare const AgentGraphApiInsertSchema: z$1.ZodObject<{
2067
+ name: z$1.ZodString;
2068
+ description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2069
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
2070
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
2071
+ defaultAgentId: z$1.ZodString;
2072
+ models: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1851
2073
  base?: {
1852
2074
  model?: string | undefined;
1853
2075
  providerOptions?: Record<string, unknown> | undefined;
@@ -1873,7 +2095,7 @@ declare const AgentGraphApiInsertSchema: z.ZodObject<{
1873
2095
  model?: string | undefined;
1874
2096
  providerOptions?: Record<string, unknown> | undefined;
1875
2097
  } | undefined;
1876
- }, z.core.$ZodTypeInternals<{
2098
+ }, z$1.core.$ZodTypeInternals<{
1877
2099
  base?: {
1878
2100
  model?: string | undefined;
1879
2101
  providerOptions?: Record<string, unknown> | undefined;
@@ -1900,7 +2122,17 @@ declare const AgentGraphApiInsertSchema: z.ZodObject<{
1900
2122
  providerOptions?: Record<string, unknown> | undefined;
1901
2123
  } | undefined;
1902
2124
  }>>>>;
1903
- statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
2125
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
2126
+ transferCountIs?: number;
2127
+ }, {
2128
+ transferCountIs?: number;
2129
+ }, z$1.core.$ZodTypeInternals<{
2130
+ transferCountIs?: number;
2131
+ }, {
2132
+ transferCountIs?: number;
2133
+ }>>>>;
2134
+ graphPrompt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2135
+ statusUpdates: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1904
2136
  enabled?: boolean | undefined;
1905
2137
  numEvents?: number | undefined;
1906
2138
  timeInSeconds?: number | undefined;
@@ -1928,7 +2160,7 @@ declare const AgentGraphApiInsertSchema: z.ZodObject<{
1928
2160
  required?: string[] | undefined;
1929
2161
  } | undefined;
1930
2162
  }[] | undefined;
1931
- }, z.core.$ZodTypeInternals<{
2163
+ }, z$1.core.$ZodTypeInternals<{
1932
2164
  enabled?: boolean | undefined;
1933
2165
  numEvents?: number | undefined;
1934
2166
  timeInSeconds?: number | undefined;
@@ -1957,27 +2189,17 @@ declare const AgentGraphApiInsertSchema: z.ZodObject<{
1957
2189
  } | undefined;
1958
2190
  }[] | undefined;
1959
2191
  }>>>>;
1960
- graphPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1961
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
1962
- transferCountIs?: number;
1963
- }, {
1964
- transferCountIs?: number;
1965
- }, z.core.$ZodTypeInternals<{
1966
- transferCountIs?: number;
1967
- }, {
1968
- transferCountIs?: number;
1969
- }>>>>;
1970
- id: z.ZodOptional<z.ZodString>;
1971
- }, z.core.$strip>;
1972
- declare const AgentGraphApiUpdateSchema: z.ZodObject<{
1973
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1974
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1975
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1976
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1977
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1978
- defaultAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1979
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1980
- models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2192
+ contextConfigId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2193
+ id: z$1.ZodOptional<z$1.ZodString>;
2194
+ }, z$1.core.$strip>;
2195
+ declare const AgentGraphApiUpdateSchema: z$1.ZodObject<{
2196
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2197
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2198
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
2199
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2200
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2201
+ defaultAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2202
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
1981
2203
  base?: {
1982
2204
  model?: string | undefined;
1983
2205
  providerOptions?: Record<string, unknown> | undefined;
@@ -2003,7 +2225,7 @@ declare const AgentGraphApiUpdateSchema: z.ZodObject<{
2003
2225
  model?: string | undefined;
2004
2226
  providerOptions?: Record<string, unknown> | undefined;
2005
2227
  } | undefined;
2006
- }, z.core.$ZodTypeInternals<{
2228
+ }, z$1.core.$ZodTypeInternals<{
2007
2229
  base?: {
2008
2230
  model?: string | undefined;
2009
2231
  providerOptions?: Record<string, unknown> | undefined;
@@ -2030,7 +2252,17 @@ declare const AgentGraphApiUpdateSchema: z.ZodObject<{
2030
2252
  providerOptions?: Record<string, unknown> | undefined;
2031
2253
  } | undefined;
2032
2254
  }>>>>>>;
2033
- statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2255
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
2256
+ transferCountIs?: number;
2257
+ }, {
2258
+ transferCountIs?: number;
2259
+ }, z$1.core.$ZodTypeInternals<{
2260
+ transferCountIs?: number;
2261
+ }, {
2262
+ transferCountIs?: number;
2263
+ }>>>>>>;
2264
+ graphPrompt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
2265
+ statusUpdates: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
2034
2266
  enabled?: boolean | undefined;
2035
2267
  numEvents?: number | undefined;
2036
2268
  timeInSeconds?: number | undefined;
@@ -2058,7 +2290,7 @@ declare const AgentGraphApiUpdateSchema: z.ZodObject<{
2058
2290
  required?: string[] | undefined;
2059
2291
  } | undefined;
2060
2292
  }[] | undefined;
2061
- }, z.core.$ZodTypeInternals<{
2293
+ }, z$1.core.$ZodTypeInternals<{
2062
2294
  enabled?: boolean | undefined;
2063
2295
  numEvents?: number | undefined;
2064
2296
  timeInSeconds?: number | undefined;
@@ -2087,17 +2319,8 @@ declare const AgentGraphApiUpdateSchema: z.ZodObject<{
2087
2319
  } | undefined;
2088
2320
  }[] | undefined;
2089
2321
  }>>>>>>;
2090
- graphPrompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2091
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2092
- transferCountIs?: number;
2093
- }, {
2094
- transferCountIs?: number;
2095
- }, z.core.$ZodTypeInternals<{
2096
- transferCountIs?: number;
2097
- }, {
2098
- transferCountIs?: number;
2099
- }>>>>>>;
2100
- }, z.core.$strip>;
2322
+ contextConfigId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
2323
+ }, z$1.core.$strip>;
2101
2324
  declare const TaskSelectSchema: drizzle_zod.BuildSchema<"select", {
2102
2325
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
2103
2326
  name: "tenant_id";
@@ -2271,65 +2494,65 @@ declare const TaskSelectSchema: drizzle_zod.BuildSchema<"select", {
2271
2494
  length: number | undefined;
2272
2495
  }>;
2273
2496
  }, undefined, undefined>;
2274
- declare const TaskInsertSchema: z.ZodObject<{
2275
- tenantId: z.ZodString;
2276
- projectId: z.ZodString;
2277
- contextId: z.ZodString;
2278
- status: z.ZodString;
2279
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2280
- agentId: z.ZodString;
2281
- createdAt: z.ZodOptional<z.ZodString>;
2282
- updatedAt: z.ZodOptional<z.ZodString>;
2283
- id: z.ZodString;
2284
- conversationId: z.ZodOptional<z.ZodString>;
2497
+ declare const TaskInsertSchema: z$1.ZodObject<{
2498
+ tenantId: z$1.ZodString;
2499
+ projectId: z$1.ZodString;
2500
+ contextId: z$1.ZodString;
2501
+ status: z$1.ZodString;
2502
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<TaskMetadataConfig, TaskMetadataConfig, z$1.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2503
+ agentId: z$1.ZodString;
2504
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
2505
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
2506
+ id: z$1.ZodString;
2507
+ conversationId: z$1.ZodOptional<z$1.ZodString>;
2285
2508
  }, {
2286
2509
  out: {};
2287
2510
  in: {};
2288
2511
  }>;
2289
- declare const TaskUpdateSchema: z.ZodObject<{
2290
- tenantId: z.ZodOptional<z.ZodString>;
2291
- projectId: z.ZodOptional<z.ZodString>;
2292
- contextId: z.ZodOptional<z.ZodString>;
2293
- status: z.ZodOptional<z.ZodString>;
2294
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>;
2295
- agentId: z.ZodOptional<z.ZodString>;
2296
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2297
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2298
- id: z.ZodOptional<z.ZodString>;
2299
- conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2512
+ declare const TaskUpdateSchema: z$1.ZodObject<{
2513
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
2514
+ projectId: z$1.ZodOptional<z$1.ZodString>;
2515
+ contextId: z$1.ZodOptional<z$1.ZodString>;
2516
+ status: z$1.ZodOptional<z$1.ZodString>;
2517
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<TaskMetadataConfig, TaskMetadataConfig, z$1.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>;
2518
+ agentId: z$1.ZodOptional<z$1.ZodString>;
2519
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2520
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2521
+ id: z$1.ZodOptional<z$1.ZodString>;
2522
+ conversationId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2300
2523
  }, {
2301
2524
  out: {};
2302
2525
  in: {};
2303
2526
  }>;
2304
- declare const TaskApiSelectSchema: z.ZodObject<{
2305
- id: z.ZodString;
2306
- createdAt: z.ZodString;
2307
- updatedAt: z.ZodString;
2308
- contextId: z.ZodString;
2309
- status: z.ZodString;
2310
- metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
2311
- agentId: z.ZodString;
2312
- }, z.core.$strip>;
2313
- declare const TaskApiInsertSchema: z.ZodObject<{
2314
- id: z.ZodString;
2315
- createdAt: z.ZodOptional<z.ZodString>;
2316
- updatedAt: z.ZodOptional<z.ZodString>;
2317
- conversationId: z.ZodOptional<z.ZodString>;
2318
- contextId: z.ZodString;
2319
- status: z.ZodString;
2320
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2321
- agentId: z.ZodString;
2322
- }, z.core.$strip>;
2323
- declare const TaskApiUpdateSchema: z.ZodObject<{
2324
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2325
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2326
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2327
- conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2328
- contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2329
- status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2330
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
2331
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2332
- }, z.core.$strip>;
2527
+ declare const TaskApiSelectSchema: z$1.ZodObject<{
2528
+ id: z$1.ZodString;
2529
+ createdAt: z$1.ZodString;
2530
+ updatedAt: z$1.ZodString;
2531
+ metadata: z$1.ZodNullable<z$1.ZodType<TaskMetadataConfig, TaskMetadataConfig, z$1.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
2532
+ status: z$1.ZodString;
2533
+ contextId: z$1.ZodString;
2534
+ agentId: z$1.ZodString;
2535
+ }, z$1.core.$strip>;
2536
+ declare const TaskApiInsertSchema: z$1.ZodObject<{
2537
+ id: z$1.ZodString;
2538
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
2539
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
2540
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<TaskMetadataConfig, TaskMetadataConfig, z$1.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2541
+ status: z$1.ZodString;
2542
+ conversationId: z$1.ZodOptional<z$1.ZodString>;
2543
+ contextId: z$1.ZodString;
2544
+ agentId: z$1.ZodString;
2545
+ }, z$1.core.$strip>;
2546
+ declare const TaskApiUpdateSchema: z$1.ZodObject<{
2547
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2548
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2549
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2550
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<TaskMetadataConfig, TaskMetadataConfig, z$1.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
2551
+ status: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2552
+ conversationId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2553
+ contextId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2554
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2555
+ }, z$1.core.$strip>;
2333
2556
  declare const TaskRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
2334
2557
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
2335
2558
  name: "tenant_id";
@@ -2484,78 +2707,78 @@ declare const TaskRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
2484
2707
  length: number | undefined;
2485
2708
  }>;
2486
2709
  }, undefined, undefined>;
2487
- declare const TaskRelationInsertSchema: z.ZodObject<{
2488
- tenantId: z.ZodString;
2489
- projectId: z.ZodString;
2490
- relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2491
- createdAt: z.ZodOptional<z.ZodString>;
2492
- updatedAt: z.ZodOptional<z.ZodString>;
2493
- id: z.ZodString;
2494
- parentTaskId: z.ZodString;
2495
- childTaskId: z.ZodString;
2710
+ declare const TaskRelationInsertSchema: z$1.ZodObject<{
2711
+ tenantId: z$1.ZodString;
2712
+ projectId: z$1.ZodString;
2713
+ relationType: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2714
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
2715
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
2716
+ id: z$1.ZodString;
2717
+ parentTaskId: z$1.ZodString;
2718
+ childTaskId: z$1.ZodString;
2496
2719
  }, {
2497
2720
  out: {};
2498
2721
  in: {};
2499
2722
  }>;
2500
- declare const TaskRelationUpdateSchema: z.ZodObject<{
2501
- tenantId: z.ZodOptional<z.ZodString>;
2502
- projectId: z.ZodOptional<z.ZodString>;
2503
- relationType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2504
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2505
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2506
- id: z.ZodOptional<z.ZodString>;
2507
- parentTaskId: z.ZodOptional<z.ZodString>;
2508
- childTaskId: z.ZodOptional<z.ZodString>;
2723
+ declare const TaskRelationUpdateSchema: z$1.ZodObject<{
2724
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
2725
+ projectId: z$1.ZodOptional<z$1.ZodString>;
2726
+ relationType: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
2727
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2728
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2729
+ id: z$1.ZodOptional<z$1.ZodString>;
2730
+ parentTaskId: z$1.ZodOptional<z$1.ZodString>;
2731
+ childTaskId: z$1.ZodOptional<z$1.ZodString>;
2509
2732
  }, {
2510
2733
  out: {};
2511
2734
  in: {};
2512
2735
  }>;
2513
- declare const TaskRelationApiSelectSchema: z.ZodObject<{
2514
- id: z.ZodString;
2515
- createdAt: z.ZodString;
2516
- updatedAt: z.ZodString;
2517
- relationType: z.ZodNullable<z.ZodString>;
2518
- parentTaskId: z.ZodString;
2519
- childTaskId: z.ZodString;
2520
- }, z.core.$strip>;
2521
- declare const TaskRelationApiInsertSchema: z.ZodObject<{
2522
- id: z.ZodString;
2523
- createdAt: z.ZodOptional<z.ZodString>;
2524
- updatedAt: z.ZodOptional<z.ZodString>;
2525
- relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2526
- parentTaskId: z.ZodString;
2527
- childTaskId: z.ZodString;
2528
- }, z.core.$strip>;
2529
- declare const TaskRelationApiUpdateSchema: z.ZodObject<{
2530
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2531
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2532
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2533
- relationType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2534
- parentTaskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2535
- childTaskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2536
- }, z.core.$strip>;
2537
- declare const McpTransportConfigSchema: z.ZodObject<{
2538
- type: z.ZodEnum<{
2539
- streamable_http: "streamable_http";
2540
- sse: "sse";
2541
- }>;
2542
- requestInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2543
- eventSourceInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2544
- reconnectionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2545
- sessionId: z.ZodOptional<z.ZodString>;
2546
- }, z.core.$strip>;
2547
- declare const ToolStatusSchema: z.ZodEnum<{
2736
+ declare const TaskRelationApiSelectSchema: z$1.ZodObject<{
2737
+ id: z$1.ZodString;
2738
+ createdAt: z$1.ZodString;
2739
+ updatedAt: z$1.ZodString;
2740
+ relationType: z$1.ZodNullable<z$1.ZodString>;
2741
+ parentTaskId: z$1.ZodString;
2742
+ childTaskId: z$1.ZodString;
2743
+ }, z$1.core.$strip>;
2744
+ declare const TaskRelationApiInsertSchema: z$1.ZodObject<{
2745
+ id: z$1.ZodString;
2746
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
2747
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
2748
+ relationType: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2749
+ parentTaskId: z$1.ZodString;
2750
+ childTaskId: z$1.ZodString;
2751
+ }, z$1.core.$strip>;
2752
+ declare const TaskRelationApiUpdateSchema: z$1.ZodObject<{
2753
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2754
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2755
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
2756
+ relationType: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
2757
+ parentTaskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2758
+ childTaskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
2759
+ }, z$1.core.$strip>;
2760
+ declare const McpTransportConfigSchema: z$1.ZodObject<{
2761
+ type: z$1.ZodEnum<{
2762
+ readonly streamableHttp: "streamable_http";
2763
+ readonly sse: "sse";
2764
+ }>;
2765
+ requestInit: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2766
+ eventSourceInit: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2767
+ reconnectionOptions: z$1.ZodOptional<z$1.ZodCustom<StreamableHTTPReconnectionOptions, StreamableHTTPReconnectionOptions>>;
2768
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
2769
+ }, z$1.core.$strip>;
2770
+ declare const ToolStatusSchema: z$1.ZodEnum<{
2548
2771
  unknown: "unknown";
2549
2772
  healthy: "healthy";
2550
2773
  unhealthy: "unhealthy";
2551
2774
  disabled: "disabled";
2552
2775
  needs_auth: "needs_auth";
2553
2776
  }>;
2554
- declare const McpToolDefinitionSchema: z.ZodObject<{
2555
- name: z.ZodString;
2556
- description: z.ZodOptional<z.ZodString>;
2557
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2558
- }, z.core.$strip>;
2777
+ declare const McpToolDefinitionSchema: z$1.ZodObject<{
2778
+ name: z$1.ZodString;
2779
+ description: z$1.ZodOptional<z$1.ZodString>;
2780
+ inputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2781
+ }, z$1.core.$strip>;
2559
2782
  declare const ToolSelectSchema: drizzle_zod.BuildSchema<"select", {
2560
2783
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
2561
2784
  name: "tenant_id";
@@ -2868,35 +3091,35 @@ declare const ToolSelectSchema: drizzle_zod.BuildSchema<"select", {
2868
3091
  length: number | undefined;
2869
3092
  }>;
2870
3093
  }, undefined, undefined>;
2871
- declare const ToolInsertSchema: z.ZodObject<{
2872
- tenantId: z.ZodString;
2873
- projectId: z.ZodString;
2874
- name: z.ZodString;
2875
- config: z.ZodType<{
3094
+ declare const ToolInsertSchema: z$1.ZodObject<{
3095
+ tenantId: z$1.ZodString;
3096
+ projectId: z$1.ZodString;
3097
+ name: z$1.ZodString;
3098
+ config: z$1.ZodType<{
2876
3099
  type: "mcp";
2877
3100
  mcp: ToolMcpConfig;
2878
3101
  }, {
2879
3102
  type: "mcp";
2880
3103
  mcp: ToolMcpConfig;
2881
- }, z.core.$ZodTypeInternals<{
3104
+ }, z$1.core.$ZodTypeInternals<{
2882
3105
  type: "mcp";
2883
3106
  mcp: ToolMcpConfig;
2884
3107
  }, {
2885
3108
  type: "mcp";
2886
3109
  mcp: ToolMcpConfig;
2887
3110
  }>>;
2888
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2889
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
2890
- capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
2891
- status: z.ZodOptional<z.ZodString>;
2892
- lastHealthCheck: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2893
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2894
- availableTools: z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
2895
- lastToolsSync: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2896
- createdAt: z.ZodOptional<z.ZodString>;
2897
- updatedAt: z.ZodOptional<z.ZodString>;
2898
- id: z.ZodString;
2899
- imageUrl: z.ZodOptional<z.ZodString>;
3111
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3112
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
3113
+ capabilities: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
3114
+ status: z$1.ZodOptional<z$1.ZodString>;
3115
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3116
+ lastError: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3117
+ availableTools: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
3118
+ lastToolsSync: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3119
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
3120
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
3121
+ id: z$1.ZodString;
3122
+ imageUrl: z$1.ZodOptional<z$1.ZodString>;
2900
3123
  }, {
2901
3124
  out: {};
2902
3125
  in: {};
@@ -3093,70 +3316,70 @@ declare const ConversationSelectSchema: drizzle_zod.BuildSchema<"select", {
3093
3316
  length: number | undefined;
3094
3317
  }>;
3095
3318
  }, undefined, undefined>;
3096
- declare const ConversationInsertSchema: z.ZodObject<{
3097
- tenantId: z.ZodString;
3098
- projectId: z.ZodString;
3099
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3100
- activeAgentId: z.ZodString;
3101
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3102
- lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3103
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
3104
- createdAt: z.ZodOptional<z.ZodString>;
3105
- updatedAt: z.ZodOptional<z.ZodString>;
3106
- id: z.ZodString;
3107
- contextConfigId: z.ZodOptional<z.ZodString>;
3319
+ declare const ConversationInsertSchema: z$1.ZodObject<{
3320
+ tenantId: z$1.ZodString;
3321
+ projectId: z$1.ZodString;
3322
+ userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3323
+ activeAgentId: z$1.ZodString;
3324
+ title: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3325
+ lastContextResolution: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3326
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationMetadata, ConversationMetadata, z$1.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
3327
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
3328
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
3329
+ id: z$1.ZodString;
3330
+ contextConfigId: z$1.ZodOptional<z$1.ZodString>;
3108
3331
  }, {
3109
3332
  out: {};
3110
3333
  in: {};
3111
3334
  }>;
3112
- declare const ConversationUpdateSchema: z.ZodObject<{
3113
- tenantId: z.ZodOptional<z.ZodString>;
3114
- projectId: z.ZodOptional<z.ZodString>;
3115
- userId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3116
- activeAgentId: z.ZodOptional<z.ZodString>;
3117
- title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3118
- lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3119
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>;
3120
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3121
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3122
- id: z.ZodOptional<z.ZodString>;
3123
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3335
+ declare const ConversationUpdateSchema: z$1.ZodObject<{
3336
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
3337
+ projectId: z$1.ZodOptional<z$1.ZodString>;
3338
+ userId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3339
+ activeAgentId: z$1.ZodOptional<z$1.ZodString>;
3340
+ title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3341
+ lastContextResolution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3342
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationMetadata, ConversationMetadata, z$1.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>;
3343
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3344
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3345
+ id: z$1.ZodOptional<z$1.ZodString>;
3346
+ contextConfigId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3124
3347
  }, {
3125
3348
  out: {};
3126
3349
  in: {};
3127
3350
  }>;
3128
- declare const ConversationApiSelectSchema: z.ZodObject<{
3129
- id: z.ZodString;
3130
- createdAt: z.ZodString;
3131
- updatedAt: z.ZodString;
3132
- metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
3133
- userId: z.ZodNullable<z.ZodString>;
3134
- activeAgentId: z.ZodString;
3135
- title: z.ZodNullable<z.ZodString>;
3136
- lastContextResolution: z.ZodNullable<z.ZodString>;
3137
- }, z.core.$strip>;
3138
- declare const ConversationApiInsertSchema: z.ZodObject<{
3139
- id: z.ZodString;
3140
- createdAt: z.ZodOptional<z.ZodString>;
3141
- updatedAt: z.ZodOptional<z.ZodString>;
3142
- contextConfigId: z.ZodOptional<z.ZodString>;
3143
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
3144
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3145
- activeAgentId: z.ZodString;
3146
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3147
- lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3148
- }, z.core.$strip>;
3149
- declare const ConversationApiUpdateSchema: z.ZodObject<{
3150
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3151
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3152
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3153
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3154
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
3155
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3156
- activeAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3157
- title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3158
- lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3159
- }, z.core.$strip>;
3351
+ declare const ConversationApiSelectSchema: z$1.ZodObject<{
3352
+ id: z$1.ZodString;
3353
+ createdAt: z$1.ZodString;
3354
+ updatedAt: z$1.ZodString;
3355
+ metadata: z$1.ZodNullable<z$1.ZodType<ConversationMetadata, ConversationMetadata, z$1.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
3356
+ title: z$1.ZodNullable<z$1.ZodString>;
3357
+ userId: z$1.ZodNullable<z$1.ZodString>;
3358
+ activeAgentId: z$1.ZodString;
3359
+ lastContextResolution: z$1.ZodNullable<z$1.ZodString>;
3360
+ }, z$1.core.$strip>;
3361
+ declare const ConversationApiInsertSchema: z$1.ZodObject<{
3362
+ id: z$1.ZodString;
3363
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
3364
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
3365
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationMetadata, ConversationMetadata, z$1.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
3366
+ title: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3367
+ contextConfigId: z$1.ZodOptional<z$1.ZodString>;
3368
+ userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3369
+ activeAgentId: z$1.ZodString;
3370
+ lastContextResolution: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3371
+ }, z$1.core.$strip>;
3372
+ declare const ConversationApiUpdateSchema: z$1.ZodObject<{
3373
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3374
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3375
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3376
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationMetadata, ConversationMetadata, z$1.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
3377
+ title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3378
+ contextConfigId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3379
+ userId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3380
+ activeAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3381
+ lastContextResolution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3382
+ }, z$1.core.$strip>;
3160
3383
  declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3161
3384
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
3162
3385
  name: "tenant_id";
@@ -3539,116 +3762,116 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3539
3762
  length: number | undefined;
3540
3763
  }>;
3541
3764
  }, undefined, undefined>;
3542
- declare const MessageInsertSchema: z.ZodObject<{
3543
- tenantId: z.ZodString;
3544
- projectId: z.ZodString;
3545
- role: z.ZodString;
3546
- fromAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3547
- toAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3548
- fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3549
- toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3550
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3551
- visibility: z.ZodOptional<z.ZodString>;
3552
- messageType: z.ZodOptional<z.ZodString>;
3553
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3554
- parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3555
- a2aTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3556
- a2aSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3557
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
3558
- createdAt: z.ZodOptional<z.ZodString>;
3559
- updatedAt: z.ZodOptional<z.ZodString>;
3560
- id: z.ZodString;
3561
- conversationId: z.ZodString;
3562
- taskId: z.ZodOptional<z.ZodString>;
3765
+ declare const MessageInsertSchema: z$1.ZodObject<{
3766
+ tenantId: z$1.ZodString;
3767
+ projectId: z$1.ZodString;
3768
+ role: z$1.ZodString;
3769
+ fromAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3770
+ toAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3771
+ fromExternalAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3772
+ toExternalAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3773
+ content: z$1.ZodType<MessageContent, MessageContent, z$1.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3774
+ visibility: z$1.ZodOptional<z$1.ZodString>;
3775
+ messageType: z$1.ZodOptional<z$1.ZodString>;
3776
+ agentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3777
+ parentMessageId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3778
+ a2aTaskId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3779
+ a2aSessionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3780
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<MessageMetadata, MessageMetadata, z$1.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
3781
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
3782
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
3783
+ id: z$1.ZodString;
3784
+ conversationId: z$1.ZodString;
3785
+ taskId: z$1.ZodOptional<z$1.ZodString>;
3563
3786
  }, {
3564
3787
  out: {};
3565
3788
  in: {};
3566
3789
  }>;
3567
- declare const MessageUpdateSchema: z.ZodObject<{
3568
- tenantId: z.ZodOptional<z.ZodString>;
3569
- projectId: z.ZodOptional<z.ZodString>;
3570
- role: z.ZodOptional<z.ZodString>;
3571
- fromAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3572
- toAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3573
- fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3574
- toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3575
- content: z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>;
3576
- visibility: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3577
- messageType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3578
- agentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3579
- parentMessageId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3580
- a2aTaskId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3581
- a2aSessionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3582
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>;
3583
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3584
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3585
- id: z.ZodOptional<z.ZodString>;
3586
- conversationId: z.ZodOptional<z.ZodString>;
3587
- taskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3790
+ declare const MessageUpdateSchema: z$1.ZodObject<{
3791
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
3792
+ projectId: z$1.ZodOptional<z$1.ZodString>;
3793
+ role: z$1.ZodOptional<z$1.ZodString>;
3794
+ fromAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3795
+ toAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3796
+ fromExternalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3797
+ toExternalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3798
+ content: z$1.ZodOptional<z$1.ZodType<MessageContent, MessageContent, z$1.core.$ZodTypeInternals<MessageContent, MessageContent>>>;
3799
+ visibility: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3800
+ messageType: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3801
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3802
+ parentMessageId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3803
+ a2aTaskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3804
+ a2aSessionId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
3805
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<MessageMetadata, MessageMetadata, z$1.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>;
3806
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3807
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3808
+ id: z$1.ZodOptional<z$1.ZodString>;
3809
+ conversationId: z$1.ZodOptional<z$1.ZodString>;
3810
+ taskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3588
3811
  }, {
3589
3812
  out: {};
3590
3813
  in: {};
3591
3814
  }>;
3592
- declare const MessageApiSelectSchema: z.ZodObject<{
3593
- id: z.ZodString;
3594
- createdAt: z.ZodString;
3595
- updatedAt: z.ZodString;
3596
- conversationId: z.ZodString;
3597
- metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
3598
- agentId: z.ZodNullable<z.ZodString>;
3599
- role: z.ZodString;
3600
- fromAgentId: z.ZodNullable<z.ZodString>;
3601
- toAgentId: z.ZodNullable<z.ZodString>;
3602
- fromExternalAgentId: z.ZodNullable<z.ZodString>;
3603
- toExternalAgentId: z.ZodNullable<z.ZodString>;
3604
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3605
- visibility: z.ZodString;
3606
- messageType: z.ZodString;
3607
- taskId: z.ZodNullable<z.ZodString>;
3608
- parentMessageId: z.ZodNullable<z.ZodString>;
3609
- a2aTaskId: z.ZodNullable<z.ZodString>;
3610
- a2aSessionId: z.ZodNullable<z.ZodString>;
3611
- }, z.core.$strip>;
3612
- declare const MessageApiInsertSchema: z.ZodObject<{
3613
- id: z.ZodString;
3614
- createdAt: z.ZodOptional<z.ZodString>;
3615
- updatedAt: z.ZodOptional<z.ZodString>;
3616
- conversationId: z.ZodString;
3617
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
3618
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3619
- role: z.ZodString;
3620
- fromAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3621
- toAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3622
- fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3623
- toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3624
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3625
- visibility: z.ZodOptional<z.ZodString>;
3626
- messageType: z.ZodOptional<z.ZodString>;
3627
- taskId: z.ZodOptional<z.ZodString>;
3628
- parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3629
- a2aTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3630
- a2aSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3631
- }, z.core.$strip>;
3632
- declare const MessageApiUpdateSchema: z.ZodObject<{
3633
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3634
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3635
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3636
- conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3637
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
3638
- agentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3639
- role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3640
- fromAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3641
- toAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3642
- fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3643
- toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3644
- content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
3645
- visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3646
- messageType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3647
- taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3648
- parentMessageId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3649
- a2aTaskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3650
- a2aSessionId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3651
- }, z.core.$strip>;
3815
+ declare const MessageApiSelectSchema: z$1.ZodObject<{
3816
+ id: z$1.ZodString;
3817
+ createdAt: z$1.ZodString;
3818
+ updatedAt: z$1.ZodString;
3819
+ metadata: z$1.ZodNullable<z$1.ZodType<MessageMetadata, MessageMetadata, z$1.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
3820
+ role: z$1.ZodString;
3821
+ content: z$1.ZodType<MessageContent, MessageContent, z$1.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3822
+ conversationId: z$1.ZodString;
3823
+ agentId: z$1.ZodNullable<z$1.ZodString>;
3824
+ fromAgentId: z$1.ZodNullable<z$1.ZodString>;
3825
+ toAgentId: z$1.ZodNullable<z$1.ZodString>;
3826
+ fromExternalAgentId: z$1.ZodNullable<z$1.ZodString>;
3827
+ toExternalAgentId: z$1.ZodNullable<z$1.ZodString>;
3828
+ visibility: z$1.ZodString;
3829
+ messageType: z$1.ZodString;
3830
+ taskId: z$1.ZodNullable<z$1.ZodString>;
3831
+ parentMessageId: z$1.ZodNullable<z$1.ZodString>;
3832
+ a2aTaskId: z$1.ZodNullable<z$1.ZodString>;
3833
+ a2aSessionId: z$1.ZodNullable<z$1.ZodString>;
3834
+ }, z$1.core.$strip>;
3835
+ declare const MessageApiInsertSchema: z$1.ZodObject<{
3836
+ id: z$1.ZodString;
3837
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
3838
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
3839
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<MessageMetadata, MessageMetadata, z$1.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
3840
+ role: z$1.ZodString;
3841
+ content: z$1.ZodType<MessageContent, MessageContent, z$1.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3842
+ conversationId: z$1.ZodString;
3843
+ agentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3844
+ fromAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3845
+ toAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3846
+ fromExternalAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3847
+ toExternalAgentId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3848
+ visibility: z$1.ZodOptional<z$1.ZodString>;
3849
+ messageType: z$1.ZodOptional<z$1.ZodString>;
3850
+ taskId: z$1.ZodOptional<z$1.ZodString>;
3851
+ parentMessageId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3852
+ a2aTaskId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3853
+ a2aSessionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3854
+ }, z$1.core.$strip>;
3855
+ declare const MessageApiUpdateSchema: z$1.ZodObject<{
3856
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3857
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3858
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3859
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<MessageMetadata, MessageMetadata, z$1.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
3860
+ role: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3861
+ content: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodType<MessageContent, MessageContent, z$1.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
3862
+ conversationId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
3863
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3864
+ fromAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3865
+ toAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3866
+ fromExternalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3867
+ toExternalAgentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3868
+ visibility: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3869
+ messageType: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3870
+ taskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
3871
+ parentMessageId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3872
+ a2aTaskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3873
+ a2aSessionId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
3874
+ }, z$1.core.$strip>;
3652
3875
  declare const ContextCacheSelectSchema: drizzle_zod.BuildSchema<"select", {
3653
3876
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
3654
3877
  name: "tenant_id";
@@ -4143,63 +4366,63 @@ declare const ContextCacheInsertSchema: drizzle_zod.BuildSchema<"insert", {
4143
4366
  length: number | undefined;
4144
4367
  }>;
4145
4368
  }, undefined, undefined>;
4146
- declare const ContextCacheUpdateSchema: z.ZodObject<{
4147
- tenantId: z.ZodOptional<z.ZodString>;
4148
- projectId: z.ZodOptional<z.ZodString>;
4149
- id: z.ZodOptional<z.ZodString>;
4150
- conversationId: z.ZodOptional<z.ZodString>;
4151
- contextConfigId: z.ZodOptional<z.ZodString>;
4152
- contextVariableKey: z.ZodOptional<z.ZodString>;
4153
- value: z.ZodOptional<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
4154
- requestHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4155
- fetchedAt: z.ZodOptional<z.ZodString>;
4156
- fetchSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4157
- fetchDurationMs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>;
4158
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4159
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4369
+ declare const ContextCacheUpdateSchema: z$1.ZodObject<{
4370
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
4371
+ projectId: z$1.ZodOptional<z$1.ZodString>;
4372
+ id: z$1.ZodOptional<z$1.ZodString>;
4373
+ conversationId: z$1.ZodOptional<z$1.ZodString>;
4374
+ contextConfigId: z$1.ZodOptional<z$1.ZodString>;
4375
+ contextVariableKey: z$1.ZodOptional<z$1.ZodString>;
4376
+ value: z$1.ZodOptional<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
4377
+ requestHash: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
4378
+ fetchedAt: z$1.ZodOptional<z$1.ZodString>;
4379
+ fetchSource: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
4380
+ fetchDurationMs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodInt>>>;
4381
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4382
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4160
4383
  }, {
4161
4384
  out: {};
4162
4385
  in: {};
4163
4386
  }>;
4164
- declare const ContextCacheApiSelectSchema: z.ZodObject<{
4165
- value: z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>;
4166
- id: z.ZodString;
4167
- createdAt: z.ZodString;
4168
- updatedAt: z.ZodString;
4169
- contextConfigId: z.ZodString;
4170
- conversationId: z.ZodString;
4171
- contextVariableKey: z.ZodString;
4172
- requestHash: z.ZodNullable<z.ZodString>;
4173
- fetchedAt: z.ZodString;
4174
- fetchSource: z.ZodNullable<z.ZodString>;
4175
- fetchDurationMs: z.ZodNullable<z.ZodInt>;
4176
- }, z.core.$strip>;
4177
- declare const ContextCacheApiInsertSchema: z.ZodObject<{
4178
- value: z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>;
4179
- id: z.ZodString;
4180
- createdAt: z.ZodOptional<z.ZodString>;
4181
- updatedAt: z.ZodOptional<z.ZodString>;
4182
- contextConfigId: z.ZodString;
4183
- conversationId: z.ZodString;
4184
- contextVariableKey: z.ZodString;
4185
- requestHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4186
- fetchedAt: z.ZodString;
4187
- fetchSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4188
- fetchDurationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4189
- }, z.core.$strip>;
4190
- declare const ContextCacheApiUpdateSchema: z.ZodObject<{
4191
- value: z.ZodOptional<z.ZodOptional<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
4192
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4193
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4194
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4195
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4196
- conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4197
- contextVariableKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4198
- requestHash: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4199
- fetchedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4200
- fetchSource: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4201
- fetchDurationMs: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>>;
4202
- }, z.core.$strip>;
4387
+ declare const ContextCacheApiSelectSchema: z$1.ZodObject<{
4388
+ id: z$1.ZodString;
4389
+ value: z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>;
4390
+ createdAt: z$1.ZodString;
4391
+ updatedAt: z$1.ZodString;
4392
+ conversationId: z$1.ZodString;
4393
+ contextConfigId: z$1.ZodString;
4394
+ contextVariableKey: z$1.ZodString;
4395
+ requestHash: z$1.ZodNullable<z$1.ZodString>;
4396
+ fetchedAt: z$1.ZodString;
4397
+ fetchSource: z$1.ZodNullable<z$1.ZodString>;
4398
+ fetchDurationMs: z$1.ZodNullable<z$1.ZodInt>;
4399
+ }, z$1.core.$strip>;
4400
+ declare const ContextCacheApiInsertSchema: z$1.ZodObject<{
4401
+ id: z$1.ZodString;
4402
+ value: z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>;
4403
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
4404
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
4405
+ conversationId: z$1.ZodString;
4406
+ contextConfigId: z$1.ZodString;
4407
+ contextVariableKey: z$1.ZodString;
4408
+ requestHash: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
4409
+ fetchedAt: z$1.ZodString;
4410
+ fetchSource: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
4411
+ fetchDurationMs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodInt>>;
4412
+ }, z$1.core.$strip>;
4413
+ declare const ContextCacheApiUpdateSchema: z$1.ZodObject<{
4414
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4415
+ value: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
4416
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
4417
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
4418
+ conversationId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4419
+ contextConfigId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4420
+ contextVariableKey: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4421
+ requestHash: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
4422
+ fetchedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4423
+ fetchSource: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
4424
+ fetchDurationMs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodInt>>>>;
4425
+ }, z$1.core.$strip>;
4203
4426
  declare const DataComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4204
4427
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4205
4428
  name: "tenant_id";
@@ -4354,67 +4577,67 @@ declare const DataComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4354
4577
  length: number | undefined;
4355
4578
  }>;
4356
4579
  }, undefined, undefined>;
4357
- declare const DataComponentInsertSchema: z.ZodObject<{
4358
- tenantId: z.ZodString;
4359
- projectId: z.ZodString;
4360
- name: z.ZodString;
4361
- description: z.ZodString;
4362
- props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4363
- createdAt: z.ZodOptional<z.ZodString>;
4364
- updatedAt: z.ZodOptional<z.ZodString>;
4365
- id: z.ZodString;
4580
+ declare const DataComponentInsertSchema: z$1.ZodObject<{
4581
+ tenantId: z$1.ZodString;
4582
+ projectId: z$1.ZodString;
4583
+ name: z$1.ZodString;
4584
+ description: z$1.ZodString;
4585
+ props: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4586
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
4587
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
4588
+ id: z$1.ZodString;
4366
4589
  }, {
4367
4590
  out: {};
4368
4591
  in: {};
4369
4592
  }>;
4370
- declare const DataComponentBaseSchema: z.ZodObject<{
4371
- name: z.ZodString;
4372
- description: z.ZodString;
4373
- id: z.ZodString;
4374
- tenantId: z.ZodString;
4375
- projectId: z.ZodString;
4376
- props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4593
+ declare const DataComponentBaseSchema: z$1.ZodObject<{
4594
+ tenantId: z$1.ZodString;
4595
+ projectId: z$1.ZodString;
4596
+ id: z$1.ZodString;
4597
+ name: z$1.ZodString;
4598
+ description: z$1.ZodString;
4599
+ props: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4377
4600
  }, {
4378
4601
  out: {};
4379
4602
  in: {};
4380
4603
  }>;
4381
- declare const DataComponentUpdateSchema: z.ZodObject<{
4382
- tenantId: z.ZodOptional<z.ZodString>;
4383
- projectId: z.ZodOptional<z.ZodString>;
4384
- name: z.ZodOptional<z.ZodString>;
4385
- description: z.ZodOptional<z.ZodString>;
4386
- props: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
4387
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4388
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4389
- id: z.ZodOptional<z.ZodString>;
4604
+ declare const DataComponentUpdateSchema: z$1.ZodObject<{
4605
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
4606
+ projectId: z$1.ZodOptional<z$1.ZodString>;
4607
+ name: z$1.ZodOptional<z$1.ZodString>;
4608
+ description: z$1.ZodOptional<z$1.ZodString>;
4609
+ props: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
4610
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4611
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4612
+ id: z$1.ZodOptional<z$1.ZodString>;
4390
4613
  }, {
4391
4614
  out: {};
4392
4615
  in: {};
4393
4616
  }>;
4394
- declare const DataComponentApiSelectSchema: z.ZodObject<{
4395
- name: z.ZodString;
4396
- description: z.ZodString;
4397
- id: z.ZodString;
4398
- createdAt: z.ZodString;
4399
- updatedAt: z.ZodString;
4400
- props: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4401
- }, z.core.$strip>;
4402
- declare const DataComponentApiInsertSchema: z.ZodObject<{
4403
- name: z.ZodString;
4404
- description: z.ZodString;
4405
- id: z.ZodString;
4406
- createdAt: z.ZodOptional<z.ZodString>;
4407
- updatedAt: z.ZodOptional<z.ZodString>;
4408
- props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4409
- }, z.core.$strip>;
4410
- declare const DataComponentApiUpdateSchema: z.ZodObject<{
4411
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4412
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4413
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4414
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4415
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4416
- props: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
4417
- }, z.core.$strip>;
4617
+ declare const DataComponentApiSelectSchema: z$1.ZodObject<{
4618
+ id: z$1.ZodString;
4619
+ name: z$1.ZodString;
4620
+ description: z$1.ZodString;
4621
+ createdAt: z$1.ZodString;
4622
+ updatedAt: z$1.ZodString;
4623
+ props: z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4624
+ }, z$1.core.$strip>;
4625
+ declare const DataComponentApiInsertSchema: z$1.ZodObject<{
4626
+ id: z$1.ZodString;
4627
+ name: z$1.ZodString;
4628
+ description: z$1.ZodString;
4629
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
4630
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
4631
+ props: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4632
+ }, z$1.core.$strip>;
4633
+ declare const DataComponentApiUpdateSchema: z$1.ZodObject<{
4634
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4635
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4636
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4637
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
4638
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
4639
+ props: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
4640
+ }, z$1.core.$strip>;
4418
4641
  declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4419
4642
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4420
4643
  name: "tenant_id";
@@ -4647,35 +4870,35 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4647
4870
  length: number | undefined;
4648
4871
  }>;
4649
4872
  }, undefined, undefined>;
4650
- declare const AgentDataComponentUpdateSchema: z.ZodObject<{
4651
- tenantId: z.ZodOptional<z.ZodString>;
4652
- projectId: z.ZodOptional<z.ZodString>;
4653
- id: z.ZodOptional<z.ZodString>;
4654
- agentId: z.ZodOptional<z.ZodString>;
4655
- dataComponentId: z.ZodOptional<z.ZodString>;
4656
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4873
+ declare const AgentDataComponentUpdateSchema: z$1.ZodObject<{
4874
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
4875
+ projectId: z$1.ZodOptional<z$1.ZodString>;
4876
+ id: z$1.ZodOptional<z$1.ZodString>;
4877
+ agentId: z$1.ZodOptional<z$1.ZodString>;
4878
+ dataComponentId: z$1.ZodOptional<z$1.ZodString>;
4879
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4657
4880
  }, {
4658
4881
  out: {};
4659
4882
  in: {};
4660
4883
  }>;
4661
- declare const AgentDataComponentApiSelectSchema: z.ZodObject<{
4662
- id: z.ZodString;
4663
- createdAt: z.ZodString;
4664
- agentId: z.ZodString;
4665
- dataComponentId: z.ZodString;
4666
- }, z.core.$strip>;
4667
- declare const AgentDataComponentApiInsertSchema: z.ZodObject<{
4668
- id: z.ZodString;
4669
- createdAt: z.ZodOptional<z.ZodString>;
4670
- agentId: z.ZodString;
4671
- dataComponentId: z.ZodString;
4672
- }, z.core.$strip>;
4673
- declare const AgentDataComponentApiUpdateSchema: z.ZodObject<{
4674
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4675
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4676
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4677
- dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4678
- }, z.core.$strip>;
4884
+ declare const AgentDataComponentApiSelectSchema: z$1.ZodObject<{
4885
+ id: z$1.ZodString;
4886
+ createdAt: z$1.ZodString;
4887
+ agentId: z$1.ZodString;
4888
+ dataComponentId: z$1.ZodString;
4889
+ }, z$1.core.$strip>;
4890
+ declare const AgentDataComponentApiInsertSchema: z$1.ZodObject<{
4891
+ id: z$1.ZodString;
4892
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
4893
+ agentId: z$1.ZodString;
4894
+ dataComponentId: z$1.ZodString;
4895
+ }, z$1.core.$strip>;
4896
+ declare const AgentDataComponentApiUpdateSchema: z$1.ZodObject<{
4897
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4898
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
4899
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4900
+ dataComponentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
4901
+ }, z$1.core.$strip>;
4679
4902
  declare const ArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4680
4903
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4681
4904
  name: "tenant_id";
@@ -4849,62 +5072,62 @@ declare const ArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4849
5072
  length: number | undefined;
4850
5073
  }>;
4851
5074
  }, undefined, undefined>;
4852
- declare const ArtifactComponentInsertSchema: z.ZodObject<{
4853
- tenantId: z.ZodString;
4854
- projectId: z.ZodString;
4855
- name: z.ZodString;
4856
- description: z.ZodString;
4857
- summaryProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4858
- fullProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4859
- createdAt: z.ZodOptional<z.ZodString>;
4860
- updatedAt: z.ZodOptional<z.ZodString>;
4861
- id: z.ZodString;
5075
+ declare const ArtifactComponentInsertSchema: z$1.ZodObject<{
5076
+ tenantId: z$1.ZodString;
5077
+ projectId: z$1.ZodString;
5078
+ name: z$1.ZodString;
5079
+ description: z$1.ZodString;
5080
+ summaryProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
5081
+ fullProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
5082
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5083
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5084
+ id: z$1.ZodString;
4862
5085
  }, {
4863
5086
  out: {};
4864
5087
  in: {};
4865
5088
  }>;
4866
- declare const ArtifactComponentUpdateSchema: z.ZodObject<{
4867
- tenantId: z.ZodOptional<z.ZodString>;
4868
- projectId: z.ZodOptional<z.ZodString>;
4869
- name: z.ZodOptional<z.ZodString>;
4870
- description: z.ZodOptional<z.ZodString>;
4871
- summaryProps: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
4872
- fullProps: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
4873
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4874
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4875
- id: z.ZodOptional<z.ZodString>;
5089
+ declare const ArtifactComponentUpdateSchema: z$1.ZodObject<{
5090
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5091
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5092
+ name: z$1.ZodOptional<z$1.ZodString>;
5093
+ description: z$1.ZodOptional<z$1.ZodString>;
5094
+ summaryProps: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
5095
+ fullProps: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>;
5096
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5097
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5098
+ id: z$1.ZodOptional<z$1.ZodString>;
4876
5099
  }, {
4877
5100
  out: {};
4878
5101
  in: {};
4879
5102
  }>;
4880
- declare const ArtifactComponentApiSelectSchema: z.ZodObject<{
4881
- name: z.ZodString;
4882
- description: z.ZodString;
4883
- id: z.ZodString;
4884
- createdAt: z.ZodString;
4885
- updatedAt: z.ZodString;
4886
- summaryProps: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4887
- fullProps: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4888
- }, z.core.$strip>;
4889
- declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
4890
- name: z.ZodString;
4891
- description: z.ZodString;
4892
- summaryProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4893
- fullProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
4894
- id: z.ZodOptional<z.ZodString>;
5103
+ declare const ArtifactComponentApiSelectSchema: z$1.ZodObject<{
5104
+ id: z$1.ZodString;
5105
+ name: z$1.ZodString;
5106
+ description: z$1.ZodString;
5107
+ createdAt: z$1.ZodString;
5108
+ updatedAt: z$1.ZodString;
5109
+ summaryProps: z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5110
+ fullProps: z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
5111
+ }, z$1.core.$strip>;
5112
+ declare const ArtifactComponentApiInsertSchema: z$1.ZodObject<{
5113
+ name: z$1.ZodString;
5114
+ description: z$1.ZodString;
5115
+ summaryProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
5116
+ fullProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
5117
+ id: z$1.ZodOptional<z$1.ZodString>;
4895
5118
  }, {
4896
5119
  out: {};
4897
5120
  in: {};
4898
5121
  }>;
4899
- declare const ArtifactComponentApiUpdateSchema: z.ZodObject<{
4900
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4901
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4902
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4903
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4904
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4905
- summaryProps: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
4906
- fullProps: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
4907
- }, z.core.$strip>;
5122
+ declare const ArtifactComponentApiUpdateSchema: z$1.ZodObject<{
5123
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5124
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5125
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5126
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5127
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5128
+ summaryProps: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
5129
+ fullProps: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
5130
+ }, z$1.core.$strip>;
4908
5131
  declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4909
5132
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4910
5133
  name: "tenant_id";
@@ -5021,130 +5244,130 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5021
5244
  length: number | undefined;
5022
5245
  }>;
5023
5246
  }, undefined, undefined>;
5024
- declare const AgentArtifactComponentInsertSchema: z.ZodObject<{
5025
- tenantId: z.ZodString;
5026
- projectId: z.ZodString;
5027
- createdAt: z.ZodOptional<z.ZodString>;
5028
- id: z.ZodString;
5029
- agentId: z.ZodString;
5030
- artifactComponentId: z.ZodString;
5247
+ declare const AgentArtifactComponentInsertSchema: z$1.ZodObject<{
5248
+ tenantId: z$1.ZodString;
5249
+ projectId: z$1.ZodString;
5250
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5251
+ id: z$1.ZodString;
5252
+ agentId: z$1.ZodString;
5253
+ artifactComponentId: z$1.ZodString;
5031
5254
  }, {
5032
5255
  out: {};
5033
5256
  in: {};
5034
5257
  }>;
5035
- declare const AgentArtifactComponentUpdateSchema: z.ZodObject<{
5036
- tenantId: z.ZodOptional<z.ZodString>;
5037
- projectId: z.ZodOptional<z.ZodString>;
5038
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5039
- id: z.ZodOptional<z.ZodString>;
5040
- agentId: z.ZodOptional<z.ZodString>;
5041
- artifactComponentId: z.ZodOptional<z.ZodString>;
5258
+ declare const AgentArtifactComponentUpdateSchema: z$1.ZodObject<{
5259
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5260
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5261
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5262
+ id: z$1.ZodOptional<z$1.ZodString>;
5263
+ agentId: z$1.ZodOptional<z$1.ZodString>;
5264
+ artifactComponentId: z$1.ZodOptional<z$1.ZodString>;
5042
5265
  }, {
5043
5266
  out: {};
5044
5267
  in: {};
5045
5268
  }>;
5046
- declare const AgentArtifactComponentApiSelectSchema: z.ZodObject<{
5047
- id: z.ZodString;
5048
- createdAt: z.ZodString;
5049
- agentId: z.ZodString;
5050
- artifactComponentId: z.ZodString;
5051
- }, z.core.$strip>;
5052
- declare const AgentArtifactComponentApiInsertSchema: z.ZodObject<{
5053
- agentId: z.ZodString;
5054
- artifactComponentId: z.ZodString;
5269
+ declare const AgentArtifactComponentApiSelectSchema: z$1.ZodObject<{
5270
+ id: z$1.ZodString;
5271
+ createdAt: z$1.ZodString;
5272
+ agentId: z$1.ZodString;
5273
+ artifactComponentId: z$1.ZodString;
5274
+ }, z$1.core.$strip>;
5275
+ declare const AgentArtifactComponentApiInsertSchema: z$1.ZodObject<{
5276
+ agentId: z$1.ZodString;
5277
+ artifactComponentId: z$1.ZodString;
5055
5278
  }, {
5056
5279
  out: {};
5057
5280
  in: {};
5058
5281
  }>;
5059
- declare const AgentArtifactComponentApiUpdateSchema: z.ZodObject<{
5060
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5061
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5062
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5063
- artifactComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5064
- }, z.core.$strip>;
5065
- declare const ExternalAgentSelectSchema: z.ZodObject<{
5066
- tenantId: z.ZodString;
5067
- projectId: z.ZodString;
5068
- id: z.ZodString;
5069
- name: z.ZodString;
5070
- description: z.ZodString;
5071
- baseUrl: z.ZodString;
5072
- createdAt: z.ZodString;
5073
- updatedAt: z.ZodString;
5074
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5075
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
5282
+ declare const AgentArtifactComponentApiUpdateSchema: z$1.ZodObject<{
5283
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5284
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5285
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5286
+ artifactComponentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5287
+ }, z$1.core.$strip>;
5288
+ declare const ExternalAgentSelectSchema: z$1.ZodObject<{
5289
+ tenantId: z$1.ZodString;
5290
+ projectId: z$1.ZodString;
5291
+ id: z$1.ZodString;
5292
+ name: z$1.ZodString;
5293
+ description: z$1.ZodString;
5294
+ baseUrl: z$1.ZodString;
5295
+ createdAt: z$1.ZodString;
5296
+ updatedAt: z$1.ZodString;
5297
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5298
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
5076
5299
  }, {
5077
5300
  out: {};
5078
5301
  in: {};
5079
5302
  }>;
5080
- declare const ExternalAgentInsertSchema: z.ZodObject<{
5081
- tenantId: z.ZodString;
5082
- projectId: z.ZodString;
5083
- name: z.ZodString;
5084
- description: z.ZodString;
5085
- baseUrl: z.ZodString;
5086
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5088
- createdAt: z.ZodOptional<z.ZodString>;
5089
- updatedAt: z.ZodOptional<z.ZodString>;
5090
- id: z.ZodString;
5303
+ declare const ExternalAgentInsertSchema: z$1.ZodObject<{
5304
+ tenantId: z$1.ZodString;
5305
+ projectId: z$1.ZodString;
5306
+ name: z$1.ZodString;
5307
+ description: z$1.ZodString;
5308
+ baseUrl: z$1.ZodString;
5309
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5310
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5311
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5312
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5313
+ id: z$1.ZodString;
5091
5314
  }, {
5092
5315
  out: {};
5093
5316
  in: {};
5094
5317
  }>;
5095
- declare const ExternalAgentUpdateSchema: z.ZodObject<{
5096
- tenantId: z.ZodOptional<z.ZodString>;
5097
- projectId: z.ZodOptional<z.ZodString>;
5098
- name: z.ZodOptional<z.ZodString>;
5099
- description: z.ZodOptional<z.ZodString>;
5100
- baseUrl: z.ZodOptional<z.ZodString>;
5101
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5102
- headers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>;
5103
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5104
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5105
- id: z.ZodOptional<z.ZodString>;
5318
+ declare const ExternalAgentUpdateSchema: z$1.ZodObject<{
5319
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5320
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5321
+ name: z$1.ZodOptional<z$1.ZodString>;
5322
+ description: z$1.ZodOptional<z$1.ZodString>;
5323
+ baseUrl: z$1.ZodOptional<z$1.ZodString>;
5324
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5325
+ headers: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>;
5326
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5327
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5328
+ id: z$1.ZodOptional<z$1.ZodString>;
5106
5329
  }, {
5107
5330
  out: {};
5108
5331
  in: {};
5109
5332
  }>;
5110
- declare const ExternalAgentApiSelectSchema: z.ZodObject<{
5111
- name: z.ZodString;
5112
- description: z.ZodString;
5113
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
5114
- id: z.ZodString;
5115
- createdAt: z.ZodString;
5116
- updatedAt: z.ZodString;
5117
- baseUrl: z.ZodString;
5118
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5119
- }, z.core.$strip>;
5120
- declare const ExternalAgentApiInsertSchema: z.ZodObject<{
5121
- name: z.ZodString;
5122
- description: z.ZodString;
5123
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5124
- id: z.ZodString;
5125
- createdAt: z.ZodOptional<z.ZodString>;
5126
- updatedAt: z.ZodOptional<z.ZodString>;
5127
- baseUrl: z.ZodString;
5128
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5129
- }, z.core.$strip>;
5130
- declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
5131
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5132
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5133
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
5134
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5135
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5136
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5137
- baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5138
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5139
- }, z.core.$strip>;
5140
- declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5141
- name: z.ZodString;
5142
- prompt: z.ZodString;
5143
- description: z.ZodString;
5144
- id: z.ZodString;
5145
- createdAt: z.ZodString;
5146
- updatedAt: z.ZodString;
5147
- models: z.ZodNullable<z.ZodType<{
5333
+ declare const ExternalAgentApiSelectSchema: z$1.ZodObject<{
5334
+ id: z$1.ZodString;
5335
+ name: z$1.ZodString;
5336
+ description: z$1.ZodString;
5337
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5338
+ createdAt: z$1.ZodString;
5339
+ updatedAt: z$1.ZodString;
5340
+ baseUrl: z$1.ZodString;
5341
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
5342
+ }, z$1.core.$strip>;
5343
+ declare const ExternalAgentApiInsertSchema: z$1.ZodObject<{
5344
+ id: z$1.ZodString;
5345
+ name: z$1.ZodString;
5346
+ description: z$1.ZodString;
5347
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5348
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5349
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5350
+ baseUrl: z$1.ZodString;
5351
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5352
+ }, z$1.core.$strip>;
5353
+ declare const ExternalAgentApiUpdateSchema: z$1.ZodObject<{
5354
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5355
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5356
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5357
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
5358
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5359
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5360
+ baseUrl: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5361
+ headers: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
5362
+ }, z$1.core.$strip>;
5363
+ declare const AllAgentSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5364
+ id: z$1.ZodString;
5365
+ name: z$1.ZodString;
5366
+ description: z$1.ZodString;
5367
+ prompt: z$1.ZodString;
5368
+ createdAt: z$1.ZodString;
5369
+ updatedAt: z$1.ZodString;
5370
+ models: z$1.ZodNullable<z$1.ZodType<{
5148
5371
  base?: {
5149
5372
  model?: string | undefined;
5150
5373
  providerOptions?: Record<string, unknown> | undefined;
@@ -5170,7 +5393,7 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5170
5393
  model?: string | undefined;
5171
5394
  providerOptions?: Record<string, unknown> | undefined;
5172
5395
  } | undefined;
5173
- }, z.core.$ZodTypeInternals<{
5396
+ }, z$1.core.$ZodTypeInternals<{
5174
5397
  base?: {
5175
5398
  model?: string | undefined;
5176
5399
  providerOptions?: Record<string, unknown> | undefined;
@@ -5197,28 +5420,28 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5197
5420
  providerOptions?: Record<string, unknown> | undefined;
5198
5421
  } | undefined;
5199
5422
  }>>>;
5200
- stopWhen: z.ZodNullable<z.ZodType<{
5423
+ stopWhen: z$1.ZodNullable<z$1.ZodType<{
5201
5424
  stepCountIs?: number;
5202
5425
  }, {
5203
5426
  stepCountIs?: number;
5204
- }, z.core.$ZodTypeInternals<{
5427
+ }, z$1.core.$ZodTypeInternals<{
5205
5428
  stepCountIs?: number;
5206
5429
  }, {
5207
5430
  stepCountIs?: number;
5208
5431
  }>>>;
5209
- conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
5210
- type: z.ZodLiteral<"internal">;
5211
- }, z.core.$strip>, z.ZodObject<{
5212
- name: z.ZodString;
5213
- description: z.ZodString;
5214
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
5215
- id: z.ZodString;
5216
- createdAt: z.ZodString;
5217
- updatedAt: z.ZodString;
5218
- baseUrl: z.ZodString;
5219
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5220
- type: z.ZodLiteral<"external">;
5221
- }, z.core.$strip>], "type">;
5432
+ conversationHistoryConfig: z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
5433
+ type: z$1.ZodLiteral<"internal">;
5434
+ }, z$1.core.$strip>, z$1.ZodObject<{
5435
+ id: z$1.ZodString;
5436
+ name: z$1.ZodString;
5437
+ description: z$1.ZodString;
5438
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5439
+ createdAt: z$1.ZodString;
5440
+ updatedAt: z$1.ZodString;
5441
+ baseUrl: z$1.ZodString;
5442
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
5443
+ type: z$1.ZodLiteral<"external">;
5444
+ }, z$1.core.$strip>], "type">;
5222
5445
  declare const ApiKeySelectSchema: drizzle_zod.BuildSchema<"select", {
5223
5446
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
5224
5447
  name: "id";
@@ -5430,434 +5653,445 @@ declare const ApiKeySelectSchema: drizzle_zod.BuildSchema<"select", {
5430
5653
  length: number | undefined;
5431
5654
  }>;
5432
5655
  }, undefined, undefined>;
5433
- declare const ApiKeyInsertSchema: z.ZodObject<{
5434
- tenantId: z.ZodString;
5435
- projectId: z.ZodString;
5436
- publicId: z.ZodString;
5437
- keyHash: z.ZodString;
5438
- keyPrefix: z.ZodString;
5439
- lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5440
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5441
- createdAt: z.ZodOptional<z.ZodString>;
5442
- updatedAt: z.ZodOptional<z.ZodString>;
5443
- id: z.ZodString;
5444
- graphId: z.ZodString;
5656
+ declare const ApiKeyInsertSchema: z$1.ZodObject<{
5657
+ tenantId: z$1.ZodString;
5658
+ projectId: z$1.ZodString;
5659
+ publicId: z$1.ZodString;
5660
+ keyHash: z$1.ZodString;
5661
+ keyPrefix: z$1.ZodString;
5662
+ lastUsedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5663
+ expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5664
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5665
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5666
+ id: z$1.ZodString;
5667
+ graphId: z$1.ZodString;
5445
5668
  }, {
5446
5669
  out: {};
5447
5670
  in: {};
5448
5671
  }>;
5449
- declare const ApiKeyUpdateSchema: z.ZodObject<{
5450
- graphId: z.ZodOptional<z.ZodString>;
5451
- lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5452
- expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5453
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5672
+ declare const ApiKeyUpdateSchema: z$1.ZodObject<{
5673
+ graphId: z$1.ZodOptional<z$1.ZodString>;
5674
+ lastUsedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5675
+ expiresAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5676
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5454
5677
  }, {
5455
5678
  out: {};
5456
5679
  in: {};
5457
5680
  }>;
5458
- declare const ApiKeyApiSelectSchema: z.ZodObject<{
5459
- id: z.ZodString;
5460
- graphId: z.ZodString;
5461
- publicId: z.ZodString;
5462
- keyPrefix: z.ZodString;
5463
- lastUsedAt: z.ZodNullable<z.ZodString>;
5464
- expiresAt: z.ZodNullable<z.ZodString>;
5465
- createdAt: z.ZodString;
5466
- updatedAt: z.ZodString;
5681
+ declare const ApiKeyApiSelectSchema: z$1.ZodObject<{
5682
+ id: z$1.ZodString;
5683
+ graphId: z$1.ZodString;
5684
+ publicId: z$1.ZodString;
5685
+ keyPrefix: z$1.ZodString;
5686
+ lastUsedAt: z$1.ZodNullable<z$1.ZodString>;
5687
+ expiresAt: z$1.ZodNullable<z$1.ZodString>;
5688
+ createdAt: z$1.ZodString;
5689
+ updatedAt: z$1.ZodString;
5467
5690
  }, {
5468
5691
  out: {};
5469
5692
  in: {};
5470
5693
  }>;
5471
- declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
5472
- data: z.ZodObject<{
5473
- apiKey: z.ZodObject<{
5474
- id: z.ZodString;
5475
- graphId: z.ZodString;
5476
- publicId: z.ZodString;
5477
- keyPrefix: z.ZodString;
5478
- lastUsedAt: z.ZodNullable<z.ZodString>;
5479
- expiresAt: z.ZodNullable<z.ZodString>;
5480
- createdAt: z.ZodString;
5481
- updatedAt: z.ZodString;
5694
+ declare const ApiKeyApiCreationResponseSchema: z$1.ZodObject<{
5695
+ data: z$1.ZodObject<{
5696
+ apiKey: z$1.ZodObject<{
5697
+ id: z$1.ZodString;
5698
+ graphId: z$1.ZodString;
5699
+ publicId: z$1.ZodString;
5700
+ keyPrefix: z$1.ZodString;
5701
+ lastUsedAt: z$1.ZodNullable<z$1.ZodString>;
5702
+ expiresAt: z$1.ZodNullable<z$1.ZodString>;
5703
+ createdAt: z$1.ZodString;
5704
+ updatedAt: z$1.ZodString;
5482
5705
  }, {
5483
5706
  out: {};
5484
5707
  in: {};
5485
5708
  }>;
5486
- key: z.ZodString;
5487
- }, z.core.$strip>;
5488
- }, z.core.$strip>;
5489
- declare const ApiKeyApiInsertSchema: z.ZodObject<{
5490
- graphId: z.ZodString;
5491
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5492
- createdAt: z.ZodOptional<z.ZodString>;
5493
- updatedAt: z.ZodOptional<z.ZodString>;
5709
+ key: z$1.ZodString;
5710
+ }, z$1.core.$strip>;
5711
+ }, z$1.core.$strip>;
5712
+ declare const ApiKeyApiInsertSchema: z$1.ZodObject<{
5713
+ graphId: z$1.ZodString;
5714
+ expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5715
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5716
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5494
5717
  }, {
5495
5718
  out: {};
5496
5719
  in: {};
5497
5720
  }>;
5498
- declare const ApiKeyApiUpdateSchema: z.ZodObject<{
5499
- graphId: z.ZodOptional<z.ZodString>;
5500
- lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5501
- expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5502
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5721
+ declare const ApiKeyApiUpdateSchema: z$1.ZodObject<{
5722
+ graphId: z$1.ZodOptional<z$1.ZodString>;
5723
+ lastUsedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5724
+ expiresAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5725
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5503
5726
  }, {
5504
5727
  out: {};
5505
5728
  in: {};
5506
5729
  }>;
5507
- declare const CredentialReferenceSelectSchema: z.ZodObject<{
5508
- id: z.ZodString;
5509
- tenantId: z.ZodString;
5510
- projectId: z.ZodString;
5511
- type: z.ZodString;
5512
- credentialStoreId: z.ZodString;
5513
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5514
- createdAt: z.ZodString;
5515
- updatedAt: z.ZodString;
5516
- }, z.core.$strip>;
5517
- declare const CredentialReferenceInsertSchema: z.ZodObject<{
5518
- id: z.ZodString;
5519
- tenantId: z.ZodString;
5520
- projectId: z.ZodString;
5521
- type: z.ZodString;
5522
- credentialStoreId: z.ZodString;
5523
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5524
- }, z.core.$strip>;
5525
- declare const CredentialReferenceUpdateSchema: z.ZodObject<{
5526
- id: z.ZodOptional<z.ZodString>;
5527
- tenantId: z.ZodOptional<z.ZodString>;
5528
- projectId: z.ZodOptional<z.ZodString>;
5529
- type: z.ZodOptional<z.ZodString>;
5530
- credentialStoreId: z.ZodOptional<z.ZodString>;
5531
- retrievalParams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
5532
- }, z.core.$strip>;
5533
- declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
5534
- type: z.ZodString;
5535
- id: z.ZodString;
5536
- createdAt: z.ZodString;
5537
- updatedAt: z.ZodString;
5538
- credentialStoreId: z.ZodString;
5539
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5540
- }, z.core.$strip>;
5541
- declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
5542
- type: z.ZodString;
5543
- id: z.ZodString;
5544
- credentialStoreId: z.ZodString;
5545
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5546
- }, z.core.$strip>;
5547
- declare const CredentialReferenceApiUpdateSchema: z.ZodObject<{
5548
- type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5549
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5550
- credentialStoreId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5551
- retrievalParams: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
5552
- }, z.core.$strip>;
5553
- declare const McpToolSchema: z.ZodObject<{
5554
- tenantId: z.ZodString;
5555
- projectId: z.ZodString;
5556
- name: z.ZodString;
5557
- config: z.ZodType<{
5730
+ declare const CredentialReferenceSelectSchema: z$1.ZodObject<{
5731
+ id: z$1.ZodString;
5732
+ tenantId: z$1.ZodString;
5733
+ projectId: z$1.ZodString;
5734
+ type: z$1.ZodString;
5735
+ credentialStoreId: z$1.ZodString;
5736
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
5737
+ createdAt: z$1.ZodString;
5738
+ updatedAt: z$1.ZodString;
5739
+ }, z$1.core.$strip>;
5740
+ declare const CredentialReferenceInsertSchema: z$1.ZodObject<{
5741
+ id: z$1.ZodString;
5742
+ tenantId: z$1.ZodString;
5743
+ projectId: z$1.ZodString;
5744
+ type: z$1.ZodString;
5745
+ credentialStoreId: z$1.ZodString;
5746
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
5747
+ }, z$1.core.$strip>;
5748
+ declare const CredentialReferenceUpdateSchema: z$1.ZodObject<{
5749
+ id: z$1.ZodOptional<z$1.ZodString>;
5750
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5751
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5752
+ type: z$1.ZodOptional<z$1.ZodString>;
5753
+ credentialStoreId: z$1.ZodOptional<z$1.ZodString>;
5754
+ retrievalParams: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>>;
5755
+ }, z$1.core.$strip>;
5756
+ declare const CredentialReferenceApiSelectSchema: z$1.ZodObject<{
5757
+ id: z$1.ZodString;
5758
+ createdAt: z$1.ZodString;
5759
+ updatedAt: z$1.ZodString;
5760
+ credentialStoreId: z$1.ZodString;
5761
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
5762
+ type: z$1.ZodEnum<{
5763
+ readonly memory: "memory";
5764
+ readonly keychain: "keychain";
5765
+ readonly nango: "nango";
5766
+ }>;
5767
+ }, z$1.core.$strip>;
5768
+ declare const CredentialReferenceApiInsertSchema: z$1.ZodObject<{
5769
+ id: z$1.ZodString;
5770
+ credentialStoreId: z$1.ZodString;
5771
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
5772
+ type: z$1.ZodEnum<{
5773
+ readonly memory: "memory";
5774
+ readonly keychain: "keychain";
5775
+ readonly nango: "nango";
5776
+ }>;
5777
+ }, z$1.core.$strip>;
5778
+ declare const CredentialReferenceApiUpdateSchema: z$1.ZodObject<{
5779
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5780
+ credentialStoreId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5781
+ retrievalParams: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>>>;
5782
+ type: z$1.ZodOptional<z$1.ZodEnum<{
5783
+ readonly memory: "memory";
5784
+ readonly keychain: "keychain";
5785
+ readonly nango: "nango";
5786
+ }>>;
5787
+ }, z$1.core.$strip>;
5788
+ declare const McpToolSchema: z$1.ZodObject<{
5789
+ tenantId: z$1.ZodString;
5790
+ projectId: z$1.ZodString;
5791
+ name: z$1.ZodString;
5792
+ config: z$1.ZodType<{
5558
5793
  type: "mcp";
5559
5794
  mcp: ToolMcpConfig;
5560
5795
  }, {
5561
5796
  type: "mcp";
5562
5797
  mcp: ToolMcpConfig;
5563
- }, z.core.$ZodTypeInternals<{
5798
+ }, z$1.core.$ZodTypeInternals<{
5564
5799
  type: "mcp";
5565
5800
  mcp: ToolMcpConfig;
5566
5801
  }, {
5567
5802
  type: "mcp";
5568
5803
  mcp: ToolMcpConfig;
5569
5804
  }>>;
5570
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5571
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5572
- capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5573
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5574
- availableTools: z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5575
- id: z.ZodString;
5576
- imageUrl: z.ZodOptional<z.ZodString>;
5577
- status: z.ZodDefault<z.ZodEnum<{
5805
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5806
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5807
+ capabilities: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5808
+ lastError: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5809
+ availableTools: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5810
+ id: z$1.ZodString;
5811
+ imageUrl: z$1.ZodOptional<z$1.ZodString>;
5812
+ status: z$1.ZodDefault<z$1.ZodEnum<{
5578
5813
  unknown: "unknown";
5579
5814
  healthy: "healthy";
5580
5815
  unhealthy: "unhealthy";
5581
5816
  disabled: "disabled";
5582
5817
  needs_auth: "needs_auth";
5583
5818
  }>>;
5584
- lastHealthCheck: z.ZodOptional<z.ZodDate>;
5585
- lastToolsSync: z.ZodOptional<z.ZodDate>;
5586
- version: z.ZodOptional<z.ZodString>;
5587
- createdAt: z.ZodDate;
5588
- updatedAt: z.ZodDate;
5819
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodDate>;
5820
+ lastToolsSync: z$1.ZodOptional<z$1.ZodDate>;
5821
+ version: z$1.ZodOptional<z$1.ZodString>;
5822
+ createdAt: z$1.ZodDate;
5823
+ updatedAt: z$1.ZodDate;
5589
5824
  }, {
5590
5825
  out: {};
5591
5826
  in: {};
5592
5827
  }>;
5593
- declare const McpToolServerConfigSchema: z.ZodObject<{
5594
- type: z.ZodString;
5595
- version: z.ZodOptional<z.ZodString>;
5596
- }, z.core.$strip>;
5597
- declare const MCPToolConfigSchema: z.ZodObject<{
5598
- name: z.ZodString;
5599
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5600
- id: z.ZodString;
5601
- imageUrl: z.ZodOptional<z.ZodString>;
5602
- capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5603
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5604
- availableTools: z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5605
- tenantId: z.ZodOptional<z.ZodString>;
5606
- projectId: z.ZodOptional<z.ZodString>;
5607
- description: z.ZodOptional<z.ZodString>;
5608
- server: z.ZodOptional<z.ZodObject<{
5609
- type: z.ZodString;
5610
- version: z.ZodOptional<z.ZodString>;
5611
- }, z.core.$strip>>;
5612
- serverUrl: z.ZodURL;
5613
- toolName: z.ZodOptional<z.ZodString>;
5614
- activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
5615
- mcpType: z.ZodOptional<z.ZodEnum<{
5616
- nango: "nango";
5617
- generic: "generic";
5828
+ declare const MCPToolConfigSchema: z$1.ZodObject<{
5829
+ id: z$1.ZodString;
5830
+ name: z$1.ZodString;
5831
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5832
+ capabilities: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5833
+ imageUrl: z$1.ZodOptional<z$1.ZodString>;
5834
+ lastError: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5835
+ availableTools: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5836
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5837
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5838
+ description: z$1.ZodOptional<z$1.ZodString>;
5839
+ serverUrl: z$1.ZodURL;
5840
+ activeTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
5841
+ mcpType: z$1.ZodOptional<z$1.ZodEnum<{
5842
+ readonly nango: "nango";
5843
+ readonly generic: "generic";
5618
5844
  }>>;
5619
- transport: z.ZodOptional<z.ZodObject<{
5620
- type: z.ZodEnum<{
5621
- streamable_http: "streamable_http";
5622
- sse: "sse";
5845
+ transport: z$1.ZodOptional<z$1.ZodObject<{
5846
+ type: z$1.ZodEnum<{
5847
+ readonly streamableHttp: "streamable_http";
5848
+ readonly sse: "sse";
5623
5849
  }>;
5624
- requestInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5625
- eventSourceInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5626
- reconnectionOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5627
- sessionId: z.ZodOptional<z.ZodString>;
5628
- }, z.core.$strip>>;
5629
- credential: z.ZodOptional<z.ZodObject<{
5630
- type: z.ZodString;
5631
- id: z.ZodString;
5632
- credentialStoreId: z.ZodString;
5633
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5634
- }, z.core.$strip>>;
5850
+ requestInit: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
5851
+ eventSourceInit: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
5852
+ reconnectionOptions: z$1.ZodOptional<z$1.ZodCustom<StreamableHTTPReconnectionOptions, StreamableHTTPReconnectionOptions>>;
5853
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
5854
+ }, z$1.core.$strip>>;
5855
+ credential: z$1.ZodOptional<z$1.ZodObject<{
5856
+ id: z$1.ZodString;
5857
+ credentialStoreId: z$1.ZodString;
5858
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
5859
+ type: z$1.ZodEnum<{
5860
+ readonly memory: "memory";
5861
+ readonly keychain: "keychain";
5862
+ readonly nango: "nango";
5863
+ }>;
5864
+ }, z$1.core.$strip>>;
5635
5865
  }, {
5636
5866
  out: {};
5637
5867
  in: {};
5638
5868
  }>;
5639
- declare const ToolUpdateSchema: z.ZodObject<{
5640
- tenantId: z.ZodOptional<z.ZodString>;
5641
- projectId: z.ZodOptional<z.ZodString>;
5642
- name: z.ZodOptional<z.ZodString>;
5643
- config: z.ZodOptional<z.ZodType<{
5869
+ declare const ToolUpdateSchema: z$1.ZodObject<{
5870
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
5871
+ projectId: z$1.ZodOptional<z$1.ZodString>;
5872
+ name: z$1.ZodOptional<z$1.ZodString>;
5873
+ config: z$1.ZodOptional<z$1.ZodType<{
5644
5874
  type: "mcp";
5645
5875
  mcp: ToolMcpConfig;
5646
5876
  }, {
5647
5877
  type: "mcp";
5648
5878
  mcp: ToolMcpConfig;
5649
- }, z.core.$ZodTypeInternals<{
5879
+ }, z$1.core.$ZodTypeInternals<{
5650
5880
  type: "mcp";
5651
5881
  mcp: ToolMcpConfig;
5652
5882
  }, {
5653
5883
  type: "mcp";
5654
5884
  mcp: ToolMcpConfig;
5655
5885
  }>>>;
5656
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5657
- headers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>;
5658
- capabilities: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>;
5659
- status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5660
- lastHealthCheck: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5661
- lastError: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5662
- availableTools: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>>;
5663
- lastToolsSync: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5664
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5665
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5666
- id: z.ZodOptional<z.ZodString>;
5667
- imageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5886
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5887
+ headers: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>;
5888
+ capabilities: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>;
5889
+ status: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5890
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5891
+ lastError: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5892
+ availableTools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>>;
5893
+ lastToolsSync: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
5894
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5895
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5896
+ id: z$1.ZodOptional<z$1.ZodString>;
5897
+ imageUrl: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5668
5898
  }, {
5669
5899
  out: {};
5670
5900
  in: {};
5671
5901
  }>;
5672
- declare const ToolApiSelectSchema: z.ZodObject<{
5673
- name: z.ZodString;
5674
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
5675
- id: z.ZodString;
5676
- createdAt: z.ZodString;
5677
- updatedAt: z.ZodString;
5678
- credentialReferenceId: z.ZodNullable<z.ZodString>;
5679
- status: z.ZodString;
5680
- config: z.ZodType<{
5902
+ declare const ToolApiSelectSchema: z$1.ZodObject<{
5903
+ id: z$1.ZodString;
5904
+ name: z$1.ZodString;
5905
+ config: z$1.ZodType<{
5681
5906
  type: "mcp";
5682
5907
  mcp: ToolMcpConfig;
5683
5908
  }, {
5684
5909
  type: "mcp";
5685
5910
  mcp: ToolMcpConfig;
5686
- }, z.core.$ZodTypeInternals<{
5911
+ }, z$1.core.$ZodTypeInternals<{
5687
5912
  type: "mcp";
5688
5913
  mcp: ToolMcpConfig;
5689
5914
  }, {
5690
5915
  type: "mcp";
5691
5916
  mcp: ToolMcpConfig;
5692
5917
  }>>;
5693
- imageUrl: z.ZodNullable<z.ZodString>;
5694
- capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
5695
- lastHealthCheck: z.ZodNullable<z.ZodString>;
5696
- lastError: z.ZodNullable<z.ZodString>;
5697
- availableTools: z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>;
5698
- lastToolsSync: z.ZodNullable<z.ZodString>;
5699
- }, z.core.$strip>;
5700
- declare const ToolApiInsertSchema: z.ZodObject<{
5701
- name: z.ZodString;
5702
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5703
- id: z.ZodString;
5704
- createdAt: z.ZodOptional<z.ZodString>;
5705
- updatedAt: z.ZodOptional<z.ZodString>;
5706
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5707
- status: z.ZodOptional<z.ZodString>;
5708
- config: z.ZodType<{
5918
+ credentialReferenceId: z$1.ZodNullable<z$1.ZodString>;
5919
+ createdAt: z$1.ZodString;
5920
+ updatedAt: z$1.ZodString;
5921
+ headers: z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
5922
+ status: z$1.ZodString;
5923
+ capabilities: z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
5924
+ imageUrl: z$1.ZodNullable<z$1.ZodString>;
5925
+ lastHealthCheck: z$1.ZodNullable<z$1.ZodString>;
5926
+ lastError: z$1.ZodNullable<z$1.ZodString>;
5927
+ availableTools: z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>;
5928
+ lastToolsSync: z$1.ZodNullable<z$1.ZodString>;
5929
+ }, z$1.core.$strip>;
5930
+ declare const ToolApiInsertSchema: z$1.ZodObject<{
5931
+ id: z$1.ZodString;
5932
+ name: z$1.ZodString;
5933
+ config: z$1.ZodType<{
5709
5934
  type: "mcp";
5710
5935
  mcp: ToolMcpConfig;
5711
5936
  }, {
5712
5937
  type: "mcp";
5713
5938
  mcp: ToolMcpConfig;
5714
- }, z.core.$ZodTypeInternals<{
5939
+ }, z$1.core.$ZodTypeInternals<{
5715
5940
  type: "mcp";
5716
5941
  mcp: ToolMcpConfig;
5717
5942
  }, {
5718
5943
  type: "mcp";
5719
5944
  mcp: ToolMcpConfig;
5720
5945
  }>>;
5721
- imageUrl: z.ZodOptional<z.ZodString>;
5722
- capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5723
- lastHealthCheck: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5724
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5725
- availableTools: z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5726
- lastToolsSync: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5727
- }, z.core.$strip>;
5728
- declare const ToolApiUpdateSchema: z.ZodObject<{
5729
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5730
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
5731
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5732
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5733
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5734
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5735
- status: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5736
- config: z.ZodOptional<z.ZodOptional<z.ZodType<{
5946
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5947
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
5948
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
5949
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
5950
+ status: z$1.ZodOptional<z$1.ZodString>;
5951
+ capabilities: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
5952
+ imageUrl: z$1.ZodOptional<z$1.ZodString>;
5953
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5954
+ lastError: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5955
+ availableTools: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
5956
+ lastToolsSync: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
5957
+ }, z$1.core.$strip>;
5958
+ declare const ToolApiUpdateSchema: z$1.ZodObject<{
5959
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5960
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
5961
+ config: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodType<{
5737
5962
  type: "mcp";
5738
5963
  mcp: ToolMcpConfig;
5739
5964
  }, {
5740
5965
  type: "mcp";
5741
5966
  mcp: ToolMcpConfig;
5742
- }, z.core.$ZodTypeInternals<{
5967
+ }, z$1.core.$ZodTypeInternals<{
5743
5968
  type: "mcp";
5744
5969
  mcp: ToolMcpConfig;
5745
5970
  }, {
5746
5971
  type: "mcp";
5747
5972
  mcp: ToolMcpConfig;
5748
5973
  }>>>>;
5749
- imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5750
- capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
5751
- lastHealthCheck: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5752
- lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5753
- availableTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>>>;
5754
- lastToolsSync: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5755
- }, z.core.$strip>;
5756
- declare const FetchConfigSchema: z.ZodObject<{
5757
- url: z.ZodString;
5758
- method: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5759
- GET: "GET";
5760
- POST: "POST";
5974
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
5975
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5976
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5977
+ headers: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
5978
+ status: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5979
+ capabilities: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
5980
+ imageUrl: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
5981
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
5982
+ lastError: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
5983
+ availableTools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>>>;
5984
+ lastToolsSync: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
5985
+ }, z$1.core.$strip>;
5986
+ declare const FetchConfigSchema: z$1.ZodObject<{
5987
+ url: z$1.ZodString;
5988
+ method: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
5761
5989
  PUT: "PUT";
5990
+ POST: "POST";
5991
+ GET: "GET";
5762
5992
  DELETE: "DELETE";
5763
5993
  PATCH: "PATCH";
5764
5994
  }>>>;
5765
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5766
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5767
- transform: z.ZodOptional<z.ZodString>;
5768
- timeout: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
5769
- }, z.core.$strip>;
5770
- declare const FetchDefinitionSchema: z.ZodObject<{
5771
- id: z.ZodString;
5772
- name: z.ZodOptional<z.ZodString>;
5773
- trigger: z.ZodEnum<{
5995
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
5996
+ body: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
5997
+ transform: z$1.ZodOptional<z$1.ZodString>;
5998
+ timeout: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>>;
5999
+ }, z$1.core.$strip>;
6000
+ declare const FetchDefinitionSchema: z$1.ZodObject<{
6001
+ id: z$1.ZodString;
6002
+ name: z$1.ZodOptional<z$1.ZodString>;
6003
+ trigger: z$1.ZodEnum<{
5774
6004
  initialization: "initialization";
5775
6005
  invocation: "invocation";
5776
6006
  }>;
5777
- fetchConfig: z.ZodObject<{
5778
- url: z.ZodString;
5779
- method: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5780
- GET: "GET";
5781
- POST: "POST";
6007
+ fetchConfig: z$1.ZodObject<{
6008
+ url: z$1.ZodString;
6009
+ method: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
5782
6010
  PUT: "PUT";
6011
+ POST: "POST";
6012
+ GET: "GET";
5783
6013
  DELETE: "DELETE";
5784
6014
  PATCH: "PATCH";
5785
6015
  }>>>;
5786
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5787
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5788
- transform: z.ZodOptional<z.ZodString>;
5789
- timeout: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
5790
- }, z.core.$strip>;
5791
- responseSchema: z.ZodOptional<z.ZodAny>;
5792
- defaultValue: z.ZodOptional<z.ZodUnknown>;
5793
- credential: z.ZodOptional<z.ZodObject<{
5794
- type: z.ZodString;
5795
- id: z.ZodString;
5796
- credentialStoreId: z.ZodString;
5797
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5798
- }, z.core.$strip>>;
5799
- }, z.core.$strip>;
5800
- declare const ContextConfigSelectSchema: z.ZodObject<{
5801
- tenantId: z.ZodString;
5802
- projectId: z.ZodString;
5803
- id: z.ZodString;
5804
- name: z.ZodString;
5805
- description: z.ZodString;
5806
- contextVariables: z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>;
5807
- createdAt: z.ZodString;
5808
- updatedAt: z.ZodString;
5809
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
6016
+ headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
6017
+ body: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
6018
+ transform: z$1.ZodOptional<z$1.ZodString>;
6019
+ timeout: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>>;
6020
+ }, z$1.core.$strip>;
6021
+ responseSchema: z$1.ZodOptional<z$1.ZodAny>;
6022
+ defaultValue: z$1.ZodOptional<z$1.ZodUnknown>;
6023
+ credential: z$1.ZodOptional<z$1.ZodObject<{
6024
+ id: z$1.ZodString;
6025
+ credentialStoreId: z$1.ZodString;
6026
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
6027
+ type: z$1.ZodEnum<{
6028
+ readonly memory: "memory";
6029
+ readonly keychain: "keychain";
6030
+ readonly nango: "nango";
6031
+ }>;
6032
+ }, z$1.core.$strip>>;
6033
+ }, z$1.core.$strip>;
6034
+ declare const ContextConfigSelectSchema: z$1.ZodObject<{
6035
+ tenantId: z$1.ZodString;
6036
+ projectId: z$1.ZodString;
6037
+ id: z$1.ZodString;
6038
+ name: z$1.ZodString;
6039
+ description: z$1.ZodString;
6040
+ contextVariables: z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>;
6041
+ createdAt: z$1.ZodString;
6042
+ updatedAt: z$1.ZodString;
6043
+ requestContextSchema: z$1.ZodOptional<z$1.ZodUnknown>;
5810
6044
  }, {
5811
6045
  out: {};
5812
6046
  in: {};
5813
6047
  }>;
5814
- declare const ContextConfigInsertSchema: z.ZodObject<{
5815
- name: z.ZodString;
5816
- description: z.ZodString;
5817
- id: z.ZodString;
5818
- tenantId: z.ZodString;
5819
- projectId: z.ZodString;
5820
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
5821
- contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
6048
+ declare const ContextConfigInsertSchema: z$1.ZodObject<{
6049
+ tenantId: z$1.ZodString;
6050
+ projectId: z$1.ZodString;
6051
+ id: z$1.ZodString;
6052
+ name: z$1.ZodString;
6053
+ description: z$1.ZodString;
6054
+ requestContextSchema: z$1.ZodOptional<z$1.ZodUnknown>;
6055
+ contextVariables: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
5822
6056
  }, {
5823
6057
  out: {};
5824
6058
  in: {};
5825
6059
  }>;
5826
- declare const ContextConfigUpdateSchema: z.ZodObject<{
5827
- name: z.ZodOptional<z.ZodString>;
5828
- description: z.ZodOptional<z.ZodString>;
5829
- id: z.ZodOptional<z.ZodString>;
5830
- tenantId: z.ZodOptional<z.ZodString>;
5831
- projectId: z.ZodOptional<z.ZodString>;
5832
- requestContextSchema: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
5833
- contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>>;
6060
+ declare const ContextConfigUpdateSchema: z$1.ZodObject<{
6061
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
6062
+ projectId: z$1.ZodOptional<z$1.ZodString>;
6063
+ id: z$1.ZodOptional<z$1.ZodString>;
6064
+ name: z$1.ZodOptional<z$1.ZodString>;
6065
+ description: z$1.ZodOptional<z$1.ZodString>;
6066
+ requestContextSchema: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnknown>>;
6067
+ contextVariables: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>>;
5834
6068
  }, {
5835
6069
  out: {};
5836
6070
  in: {};
5837
6071
  }>;
5838
- declare const ContextConfigApiSelectSchema: z.ZodObject<{
5839
- name: z.ZodString;
5840
- description: z.ZodString;
5841
- id: z.ZodString;
5842
- createdAt: z.ZodString;
5843
- updatedAt: z.ZodString;
5844
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
5845
- contextVariables: z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>;
5846
- }, z.core.$strip>;
5847
- declare const ContextConfigApiInsertSchema: z.ZodObject<{
5848
- name: z.ZodString;
5849
- description: z.ZodString;
5850
- id: z.ZodString;
5851
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
5852
- contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
5853
- }, z.core.$strip>;
5854
- declare const ContextConfigApiUpdateSchema: z.ZodObject<{
5855
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5856
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5857
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5858
- requestContextSchema: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodUnknown>>>;
5859
- contextVariables: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>>>;
5860
- }, z.core.$strip>;
6072
+ declare const ContextConfigApiSelectSchema: z$1.ZodObject<{
6073
+ id: z$1.ZodString;
6074
+ name: z$1.ZodString;
6075
+ description: z$1.ZodString;
6076
+ createdAt: z$1.ZodString;
6077
+ updatedAt: z$1.ZodString;
6078
+ requestContextSchema: z$1.ZodOptional<z$1.ZodUnknown>;
6079
+ contextVariables: z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>;
6080
+ }, z$1.core.$strip>;
6081
+ declare const ContextConfigApiInsertSchema: z$1.ZodObject<{
6082
+ id: z$1.ZodString;
6083
+ name: z$1.ZodString;
6084
+ description: z$1.ZodString;
6085
+ requestContextSchema: z$1.ZodOptional<z$1.ZodUnknown>;
6086
+ contextVariables: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
6087
+ }, z$1.core.$strip>;
6088
+ declare const ContextConfigApiUpdateSchema: z$1.ZodObject<{
6089
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6090
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6091
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6092
+ requestContextSchema: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnknown>>>;
6093
+ contextVariables: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>>>;
6094
+ }, z$1.core.$strip>;
5861
6095
  declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
5862
6096
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
5863
6097
  name: "tenant_id";
@@ -5993,51 +6227,51 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
5993
6227
  length: number | undefined;
5994
6228
  }>;
5995
6229
  }, undefined, undefined>;
5996
- declare const AgentToolRelationInsertSchema: z.ZodObject<{
5997
- tenantId: z.ZodString;
5998
- projectId: z.ZodString;
5999
- createdAt: z.ZodOptional<z.ZodString>;
6000
- updatedAt: z.ZodOptional<z.ZodString>;
6001
- id: z.ZodString;
6002
- agentId: z.ZodString;
6003
- toolId: z.ZodString;
6230
+ declare const AgentToolRelationInsertSchema: z$1.ZodObject<{
6231
+ tenantId: z$1.ZodString;
6232
+ projectId: z$1.ZodString;
6233
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
6234
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
6235
+ id: z$1.ZodString;
6236
+ agentId: z$1.ZodString;
6237
+ toolId: z$1.ZodString;
6004
6238
  }, {
6005
6239
  out: {};
6006
6240
  in: {};
6007
6241
  }>;
6008
- declare const AgentToolRelationUpdateSchema: z.ZodObject<{
6009
- tenantId: z.ZodOptional<z.ZodString>;
6010
- projectId: z.ZodOptional<z.ZodString>;
6011
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6012
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6013
- id: z.ZodOptional<z.ZodString>;
6014
- agentId: z.ZodOptional<z.ZodString>;
6015
- toolId: z.ZodOptional<z.ZodString>;
6242
+ declare const AgentToolRelationUpdateSchema: z$1.ZodObject<{
6243
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
6244
+ projectId: z$1.ZodOptional<z$1.ZodString>;
6245
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6246
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6247
+ id: z$1.ZodOptional<z$1.ZodString>;
6248
+ agentId: z$1.ZodOptional<z$1.ZodString>;
6249
+ toolId: z$1.ZodOptional<z$1.ZodString>;
6016
6250
  }, {
6017
6251
  out: {};
6018
6252
  in: {};
6019
6253
  }>;
6020
- declare const AgentToolRelationApiSelectSchema: z.ZodObject<{
6021
- id: z.ZodString;
6022
- createdAt: z.ZodString;
6023
- updatedAt: z.ZodString;
6024
- agentId: z.ZodString;
6025
- toolId: z.ZodString;
6026
- }, z.core.$strip>;
6027
- declare const AgentToolRelationApiInsertSchema: z.ZodObject<{
6028
- id: z.ZodString;
6029
- createdAt: z.ZodOptional<z.ZodString>;
6030
- updatedAt: z.ZodOptional<z.ZodString>;
6031
- agentId: z.ZodString;
6032
- toolId: z.ZodString;
6033
- }, z.core.$strip>;
6034
- declare const AgentToolRelationApiUpdateSchema: z.ZodObject<{
6035
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6036
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6037
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6038
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6039
- toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6040
- }, z.core.$strip>;
6254
+ declare const AgentToolRelationApiSelectSchema: z$1.ZodObject<{
6255
+ id: z$1.ZodString;
6256
+ createdAt: z$1.ZodString;
6257
+ updatedAt: z$1.ZodString;
6258
+ agentId: z$1.ZodString;
6259
+ toolId: z$1.ZodString;
6260
+ }, z$1.core.$strip>;
6261
+ declare const AgentToolRelationApiInsertSchema: z$1.ZodObject<{
6262
+ id: z$1.ZodString;
6263
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
6264
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
6265
+ agentId: z$1.ZodString;
6266
+ toolId: z$1.ZodString;
6267
+ }, z$1.core.$strip>;
6268
+ declare const AgentToolRelationApiUpdateSchema: z$1.ZodObject<{
6269
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6270
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
6271
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
6272
+ agentId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6273
+ toolId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6274
+ }, z$1.core.$strip>;
6041
6275
  declare const LedgerArtifactSelectSchema: drizzle_zod.BuildSchema<"select", {
6042
6276
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
6043
6277
  name: "tenant_id";
@@ -6688,317 +6922,321 @@ declare const LedgerArtifactInsertSchema: drizzle_zod.BuildSchema<"insert", {
6688
6922
  length: number | undefined;
6689
6923
  }>;
6690
6924
  }, undefined, undefined>;
6691
- declare const LedgerArtifactUpdateSchema: z.ZodObject<{
6692
- tenantId: z.ZodOptional<z.ZodString>;
6693
- projectId: z.ZodOptional<z.ZodString>;
6694
- id: z.ZodOptional<z.ZodString>;
6695
- taskId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6696
- contextId: z.ZodOptional<z.ZodString>;
6697
- type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6698
- name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6699
- description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6700
- parts: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6701
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6702
- summary: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6703
- mime: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6704
- visibility: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6705
- allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6706
- derivedFrom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6707
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6708
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6925
+ declare const LedgerArtifactUpdateSchema: z$1.ZodObject<{
6926
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
6927
+ projectId: z$1.ZodOptional<z$1.ZodString>;
6928
+ id: z$1.ZodOptional<z$1.ZodString>;
6929
+ taskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6930
+ contextId: z$1.ZodOptional<z$1.ZodString>;
6931
+ type: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6932
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6933
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6934
+ parts: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6935
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6936
+ summary: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6937
+ mime: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6938
+ visibility: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6939
+ allowedAgents: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>;
6940
+ derivedFrom: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
6941
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6942
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6709
6943
  }, {
6710
6944
  out: {};
6711
6945
  in: {};
6712
6946
  }>;
6713
- declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
6714
- type: z.ZodString;
6715
- name: z.ZodNullable<z.ZodString>;
6716
- description: z.ZodNullable<z.ZodString>;
6717
- id: z.ZodString;
6718
- createdAt: z.ZodString;
6719
- updatedAt: z.ZodString;
6720
- contextId: z.ZodString;
6721
- metadata: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6722
- visibility: z.ZodNullable<z.ZodString>;
6723
- taskId: z.ZodNullable<z.ZodString>;
6724
- parts: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6725
- summary: z.ZodNullable<z.ZodString>;
6726
- mime: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6727
- allowedAgents: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6728
- derivedFrom: z.ZodNullable<z.ZodString>;
6729
- }, z.core.$strip>;
6730
- declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
6731
- type: z.ZodOptional<z.ZodString>;
6732
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6733
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6734
- id: z.ZodString;
6735
- createdAt: z.ZodOptional<z.ZodString>;
6736
- updatedAt: z.ZodOptional<z.ZodString>;
6737
- contextId: z.ZodString;
6738
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6739
- visibility: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6740
- taskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6741
- parts: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6742
- summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6743
- mime: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6744
- allowedAgents: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6745
- derivedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6746
- }, z.core.$strip>;
6747
- declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
6748
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6749
- name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6750
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6751
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6752
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6753
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6754
- contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6755
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6756
- visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6757
- taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6758
- parts: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6759
- summary: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6760
- mime: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6761
- allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6762
- derivedFrom: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6763
- }, z.core.$strip>;
6764
- declare const StatusComponentSchema: z.ZodObject<{
6765
- type: z.ZodString;
6766
- description: z.ZodOptional<z.ZodString>;
6767
- detailsSchema: z.ZodOptional<z.ZodObject<{
6768
- type: z.ZodLiteral<"object">;
6769
- properties: z.ZodRecord<z.ZodString, z.ZodAny>;
6770
- required: z.ZodOptional<z.ZodArray<z.ZodString>>;
6771
- }, z.core.$strip>>;
6772
- }, z.core.$strip>;
6773
- declare const StatusUpdateSchema: z.ZodObject<{
6774
- enabled: z.ZodOptional<z.ZodBoolean>;
6775
- numEvents: z.ZodOptional<z.ZodNumber>;
6776
- timeInSeconds: z.ZodOptional<z.ZodNumber>;
6777
- prompt: z.ZodOptional<z.ZodString>;
6778
- statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
6779
- type: z.ZodString;
6780
- description: z.ZodOptional<z.ZodString>;
6781
- detailsSchema: z.ZodOptional<z.ZodObject<{
6782
- type: z.ZodLiteral<"object">;
6783
- properties: z.ZodRecord<z.ZodString, z.ZodAny>;
6784
- required: z.ZodOptional<z.ZodArray<z.ZodString>>;
6785
- }, z.core.$strip>>;
6786
- }, z.core.$strip>>>;
6787
- }, z.core.$strip>;
6788
- declare const FullGraphAgentInsertSchema: z.ZodObject<{
6789
- name: z.ZodString;
6790
- prompt: z.ZodString;
6791
- description: z.ZodString;
6792
- id: z.ZodString;
6793
- createdAt: z.ZodOptional<z.ZodString>;
6794
- updatedAt: z.ZodOptional<z.ZodString>;
6795
- models: z.ZodOptional<z.ZodObject<{
6796
- base: z.ZodOptional<z.ZodObject<{
6797
- model: z.ZodOptional<z.ZodString>;
6798
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6799
- }, z.core.$strip>>;
6800
- structuredOutput: z.ZodOptional<z.ZodObject<{
6801
- model: z.ZodOptional<z.ZodString>;
6802
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6803
- }, z.core.$strip>>;
6804
- summarizer: z.ZodOptional<z.ZodObject<{
6805
- model: z.ZodOptional<z.ZodString>;
6806
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6807
- }, z.core.$strip>>;
6808
- }, z.core.$strip>>;
6809
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
6947
+ declare const LedgerArtifactApiSelectSchema: z$1.ZodObject<{
6948
+ id: z$1.ZodString;
6949
+ type: z$1.ZodString;
6950
+ name: z$1.ZodNullable<z$1.ZodString>;
6951
+ description: z$1.ZodNullable<z$1.ZodString>;
6952
+ createdAt: z$1.ZodString;
6953
+ updatedAt: z$1.ZodString;
6954
+ metadata: z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6955
+ contextId: z$1.ZodString;
6956
+ visibility: z$1.ZodNullable<z$1.ZodString>;
6957
+ taskId: z$1.ZodNullable<z$1.ZodString>;
6958
+ parts: z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6959
+ summary: z$1.ZodNullable<z$1.ZodString>;
6960
+ mime: z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6961
+ allowedAgents: z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6962
+ derivedFrom: z$1.ZodNullable<z$1.ZodString>;
6963
+ }, z$1.core.$strip>;
6964
+ declare const LedgerArtifactApiInsertSchema: z$1.ZodObject<{
6965
+ id: z$1.ZodString;
6966
+ type: z$1.ZodOptional<z$1.ZodString>;
6967
+ name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6968
+ description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6969
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
6970
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
6971
+ metadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6972
+ contextId: z$1.ZodString;
6973
+ visibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6974
+ taskId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6975
+ parts: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6976
+ summary: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6977
+ mime: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6978
+ allowedAgents: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>;
6979
+ derivedFrom: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
6980
+ }, z$1.core.$strip>;
6981
+ declare const LedgerArtifactApiUpdateSchema: z$1.ZodObject<{
6982
+ id: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6983
+ type: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
6984
+ name: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6985
+ description: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6986
+ createdAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
6987
+ updatedAt: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>>;
6988
+ metadata: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6989
+ contextId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
6990
+ visibility: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6991
+ taskId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6992
+ parts: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6993
+ summary: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6994
+ mime: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6995
+ allowedAgents: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<drizzle_zod.Json, unknown, z$1.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>>>>;
6996
+ derivedFrom: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>>;
6997
+ }, z$1.core.$strip>;
6998
+ declare const StatusComponentSchema: z$1.ZodObject<{
6999
+ type: z$1.ZodString;
7000
+ description: z$1.ZodOptional<z$1.ZodString>;
7001
+ detailsSchema: z$1.ZodOptional<z$1.ZodObject<{
7002
+ type: z$1.ZodLiteral<"object">;
7003
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
7004
+ required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7005
+ }, z$1.core.$strip>>;
7006
+ }, z$1.core.$strip>;
7007
+ declare const StatusUpdateSchema: z$1.ZodObject<{
7008
+ enabled: z$1.ZodOptional<z$1.ZodBoolean>;
7009
+ numEvents: z$1.ZodOptional<z$1.ZodNumber>;
7010
+ timeInSeconds: z$1.ZodOptional<z$1.ZodNumber>;
7011
+ prompt: z$1.ZodOptional<z$1.ZodString>;
7012
+ statusComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
7013
+ type: z$1.ZodString;
7014
+ description: z$1.ZodOptional<z$1.ZodString>;
7015
+ detailsSchema: z$1.ZodOptional<z$1.ZodObject<{
7016
+ type: z$1.ZodLiteral<"object">;
7017
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
7018
+ required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7019
+ }, z$1.core.$strip>>;
7020
+ }, z$1.core.$strip>>>;
7021
+ }, z$1.core.$strip>;
7022
+ declare const FullGraphAgentInsertSchema: z$1.ZodObject<{
7023
+ id: z$1.ZodString;
7024
+ name: z$1.ZodString;
7025
+ description: z$1.ZodString;
7026
+ prompt: z$1.ZodString;
7027
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7028
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7029
+ models: z$1.ZodOptional<z$1.ZodObject<{
7030
+ base: z$1.ZodOptional<z$1.ZodObject<{
7031
+ model: z$1.ZodOptional<z$1.ZodString>;
7032
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7033
+ }, z$1.core.$strip>>;
7034
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
7035
+ model: z$1.ZodOptional<z$1.ZodString>;
7036
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7037
+ }, z$1.core.$strip>>;
7038
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
7039
+ model: z$1.ZodOptional<z$1.ZodString>;
7040
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7041
+ }, z$1.core.$strip>>;
7042
+ }, z$1.core.$strip>>;
7043
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
6810
7044
  stepCountIs?: number;
6811
7045
  }, {
6812
7046
  stepCountIs?: number;
6813
- }, z.core.$ZodTypeInternals<{
7047
+ }, z$1.core.$ZodTypeInternals<{
6814
7048
  stepCountIs?: number;
6815
7049
  }, {
6816
7050
  stepCountIs?: number;
6817
7051
  }>>>>;
6818
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
6819
- tools: z.ZodArray<z.ZodString>;
6820
- dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
6821
- artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
6822
- canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
6823
- canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
6824
- }, z.core.$strip>;
6825
- declare const FullGraphDefinitionSchema: z.ZodObject<{
6826
- name: z.ZodString;
6827
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6828
- createdAt: z.ZodOptional<z.ZodString>;
6829
- updatedAt: z.ZodOptional<z.ZodString>;
6830
- defaultAgentId: z.ZodString;
6831
- contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6832
- id: z.ZodOptional<z.ZodString>;
6833
- agents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
6834
- name: z.ZodString;
6835
- prompt: z.ZodString;
6836
- description: z.ZodString;
6837
- id: z.ZodString;
6838
- createdAt: z.ZodOptional<z.ZodString>;
6839
- updatedAt: z.ZodOptional<z.ZodString>;
6840
- models: z.ZodOptional<z.ZodObject<{
6841
- base: z.ZodOptional<z.ZodObject<{
6842
- model: z.ZodOptional<z.ZodString>;
6843
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6844
- }, z.core.$strip>>;
6845
- structuredOutput: z.ZodOptional<z.ZodObject<{
6846
- model: z.ZodOptional<z.ZodString>;
6847
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6848
- }, z.core.$strip>>;
6849
- summarizer: z.ZodOptional<z.ZodObject<{
6850
- model: z.ZodOptional<z.ZodString>;
6851
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6852
- }, z.core.$strip>>;
6853
- }, z.core.$strip>>;
6854
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
7052
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
7053
+ tools: z$1.ZodArray<z$1.ZodString>;
7054
+ dataComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7055
+ artifactComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7056
+ canTransferTo: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7057
+ canDelegateTo: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7058
+ }, z$1.core.$strip>;
7059
+ declare const FullGraphDefinitionSchema: z$1.ZodObject<{
7060
+ name: z$1.ZodString;
7061
+ description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7062
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7063
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7064
+ defaultAgentId: z$1.ZodString;
7065
+ contextConfigId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7066
+ id: z$1.ZodOptional<z$1.ZodString>;
7067
+ agents: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodObject<{
7068
+ id: z$1.ZodString;
7069
+ name: z$1.ZodString;
7070
+ description: z$1.ZodString;
7071
+ prompt: z$1.ZodString;
7072
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7073
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7074
+ models: z$1.ZodOptional<z$1.ZodObject<{
7075
+ base: z$1.ZodOptional<z$1.ZodObject<{
7076
+ model: z$1.ZodOptional<z$1.ZodString>;
7077
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7078
+ }, z$1.core.$strip>>;
7079
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
7080
+ model: z$1.ZodOptional<z$1.ZodString>;
7081
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7082
+ }, z$1.core.$strip>>;
7083
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
7084
+ model: z$1.ZodOptional<z$1.ZodString>;
7085
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7086
+ }, z$1.core.$strip>>;
7087
+ }, z$1.core.$strip>>;
7088
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
6855
7089
  stepCountIs?: number;
6856
7090
  }, {
6857
7091
  stepCountIs?: number;
6858
- }, z.core.$ZodTypeInternals<{
7092
+ }, z$1.core.$ZodTypeInternals<{
6859
7093
  stepCountIs?: number;
6860
7094
  }, {
6861
7095
  stepCountIs?: number;
6862
7096
  }>>>>;
6863
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
6864
- tools: z.ZodArray<z.ZodString>;
6865
- dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
6866
- artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
6867
- canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
6868
- canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
6869
- }, z.core.$strip>, z.ZodObject<{
6870
- name: z.ZodString;
6871
- description: z.ZodString;
6872
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
6873
- id: z.ZodString;
6874
- createdAt: z.ZodOptional<z.ZodString>;
6875
- updatedAt: z.ZodOptional<z.ZodString>;
6876
- baseUrl: z.ZodString;
6877
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6878
- }, z.core.$strip>]>>;
6879
- tools: z.ZodRecord<z.ZodString, z.ZodObject<{
6880
- name: z.ZodString;
6881
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
6882
- id: z.ZodString;
6883
- createdAt: z.ZodOptional<z.ZodString>;
6884
- updatedAt: z.ZodOptional<z.ZodString>;
6885
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6886
- status: z.ZodOptional<z.ZodString>;
6887
- config: z.ZodType<{
7097
+ conversationHistoryConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z$1.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
7098
+ tools: z$1.ZodArray<z$1.ZodString>;
7099
+ dataComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7100
+ artifactComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7101
+ canTransferTo: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7102
+ canDelegateTo: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7103
+ }, z$1.core.$strip>, z$1.ZodObject<{
7104
+ id: z$1.ZodString;
7105
+ name: z$1.ZodString;
7106
+ description: z$1.ZodString;
7107
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7108
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7109
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7110
+ baseUrl: z$1.ZodString;
7111
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7112
+ }, z$1.core.$strip>]>>;
7113
+ tools: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
7114
+ id: z$1.ZodString;
7115
+ name: z$1.ZodString;
7116
+ config: z$1.ZodType<{
6888
7117
  type: "mcp";
6889
7118
  mcp: ToolMcpConfig;
6890
7119
  }, {
6891
7120
  type: "mcp";
6892
7121
  mcp: ToolMcpConfig;
6893
- }, z.core.$ZodTypeInternals<{
7122
+ }, z$1.core.$ZodTypeInternals<{
6894
7123
  type: "mcp";
6895
7124
  mcp: ToolMcpConfig;
6896
7125
  }, {
6897
7126
  type: "mcp";
6898
7127
  mcp: ToolMcpConfig;
6899
7128
  }>>;
6900
- imageUrl: z.ZodOptional<z.ZodString>;
6901
- capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
6902
- lastHealthCheck: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6903
- lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6904
- availableTools: z.ZodOptional<z.ZodNullable<z.ZodType<McpToolDefinition[], McpToolDefinition[], z.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
6905
- lastToolsSync: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6906
- }, z.core.$strip>>;
6907
- credentialReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
6908
- type: z.ZodString;
6909
- id: z.ZodString;
6910
- credentialStoreId: z.ZodString;
6911
- retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6912
- }, z.core.$strip>>>;
6913
- dataComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6914
- name: z.ZodString;
6915
- description: z.ZodString;
6916
- id: z.ZodString;
6917
- createdAt: z.ZodOptional<z.ZodString>;
6918
- updatedAt: z.ZodOptional<z.ZodString>;
6919
- props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
6920
- }, z.core.$strip>>>;
6921
- artifactComponents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6922
- name: z.ZodString;
6923
- description: z.ZodString;
6924
- summaryProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
6925
- fullProps: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
6926
- id: z.ZodOptional<z.ZodString>;
7129
+ credentialReferenceId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7130
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7131
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7132
+ headers: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, string>, Record<string, string>, z$1.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7133
+ status: z$1.ZodOptional<z$1.ZodString>;
7134
+ capabilities: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<ToolServerCapabilities, ToolServerCapabilities, z$1.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
7135
+ imageUrl: z$1.ZodOptional<z$1.ZodString>;
7136
+ lastHealthCheck: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7137
+ lastError: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7138
+ availableTools: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<McpToolDefinition[], McpToolDefinition[], z$1.core.$ZodTypeInternals<McpToolDefinition[], McpToolDefinition[]>>>>;
7139
+ lastToolsSync: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7140
+ }, z$1.core.$strip>>;
7141
+ credentialReferences: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
7142
+ id: z$1.ZodString;
7143
+ credentialStoreId: z$1.ZodString;
7144
+ retrievalParams: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
7145
+ type: z$1.ZodEnum<{
7146
+ readonly memory: "memory";
7147
+ readonly keychain: "keychain";
7148
+ readonly nango: "nango";
7149
+ }>;
7150
+ }, z$1.core.$strip>>>;
7151
+ dataComponents: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
7152
+ id: z$1.ZodString;
7153
+ name: z$1.ZodString;
7154
+ description: z$1.ZodString;
7155
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
7156
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
7157
+ props: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7158
+ }, z$1.core.$strip>>>;
7159
+ artifactComponents: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
7160
+ name: z$1.ZodString;
7161
+ description: z$1.ZodString;
7162
+ summaryProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7163
+ fullProps: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, unknown>, Record<string, unknown>, z$1.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7164
+ id: z$1.ZodOptional<z$1.ZodString>;
6927
7165
  }, {
6928
7166
  out: {};
6929
7167
  in: {};
6930
7168
  }>>>;
6931
- contextConfig: z.ZodOptional<z.ZodObject<{
6932
- name: z.ZodString;
6933
- description: z.ZodString;
6934
- id: z.ZodString;
6935
- requestContextSchema: z.ZodOptional<z.ZodUnknown>;
6936
- contextVariables: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
6937
- }, z.core.$strip>>;
6938
- statusUpdates: z.ZodOptional<z.ZodObject<{
6939
- enabled: z.ZodOptional<z.ZodBoolean>;
6940
- numEvents: z.ZodOptional<z.ZodNumber>;
6941
- timeInSeconds: z.ZodOptional<z.ZodNumber>;
6942
- prompt: z.ZodOptional<z.ZodString>;
6943
- statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
6944
- type: z.ZodString;
6945
- description: z.ZodOptional<z.ZodString>;
6946
- detailsSchema: z.ZodOptional<z.ZodObject<{
6947
- type: z.ZodLiteral<"object">;
6948
- properties: z.ZodRecord<z.ZodString, z.ZodAny>;
6949
- required: z.ZodOptional<z.ZodArray<z.ZodString>>;
6950
- }, z.core.$strip>>;
6951
- }, z.core.$strip>>>;
6952
- }, z.core.$strip>>;
6953
- models: z.ZodOptional<z.ZodObject<{
6954
- base: z.ZodOptional<z.ZodObject<{
6955
- model: z.ZodOptional<z.ZodString>;
6956
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6957
- }, z.core.$strip>>;
6958
- structuredOutput: z.ZodOptional<z.ZodObject<{
6959
- model: z.ZodOptional<z.ZodString>;
6960
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6961
- }, z.core.$strip>>;
6962
- summarizer: z.ZodOptional<z.ZodObject<{
6963
- model: z.ZodOptional<z.ZodString>;
6964
- providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6965
- }, z.core.$strip>>;
6966
- }, z.core.$strip>>;
6967
- stopWhen: z.ZodOptional<z.ZodObject<{
6968
- transferCountIs: z.ZodOptional<z.ZodNumber>;
6969
- }, z.core.$strip>>;
6970
- graphPrompt: z.ZodOptional<z.ZodString>;
6971
- }, z.core.$strip>;
6972
- declare const PaginationSchema: z.ZodObject<{
6973
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6974
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6975
- total: z.ZodNumber;
6976
- pages: z.ZodNumber;
6977
- }, z.core.$strip>;
6978
- declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
6979
- data: z.ZodArray<T>;
6980
- pagination: z.ZodObject<{
6981
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6982
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6983
- total: z.ZodNumber;
6984
- pages: z.ZodNumber;
6985
- }, z.core.$strip>;
6986
- }, z.core.$strip>;
6987
- declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
7169
+ contextConfig: z$1.ZodOptional<z$1.ZodObject<{
7170
+ id: z$1.ZodString;
7171
+ name: z$1.ZodString;
7172
+ description: z$1.ZodString;
7173
+ requestContextSchema: z$1.ZodOptional<z$1.ZodUnknown>;
7174
+ contextVariables: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z$1.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>;
7175
+ }, z$1.core.$strip>>;
7176
+ statusUpdates: z$1.ZodOptional<z$1.ZodObject<{
7177
+ enabled: z$1.ZodOptional<z$1.ZodBoolean>;
7178
+ numEvents: z$1.ZodOptional<z$1.ZodNumber>;
7179
+ timeInSeconds: z$1.ZodOptional<z$1.ZodNumber>;
7180
+ prompt: z$1.ZodOptional<z$1.ZodString>;
7181
+ statusComponents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
7182
+ type: z$1.ZodString;
7183
+ description: z$1.ZodOptional<z$1.ZodString>;
7184
+ detailsSchema: z$1.ZodOptional<z$1.ZodObject<{
7185
+ type: z$1.ZodLiteral<"object">;
7186
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
7187
+ required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7188
+ }, z$1.core.$strip>>;
7189
+ }, z$1.core.$strip>>>;
7190
+ }, z$1.core.$strip>>;
7191
+ models: z$1.ZodOptional<z$1.ZodObject<{
7192
+ base: z$1.ZodOptional<z$1.ZodObject<{
7193
+ model: z$1.ZodOptional<z$1.ZodString>;
7194
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7195
+ }, z$1.core.$strip>>;
7196
+ structuredOutput: z$1.ZodOptional<z$1.ZodObject<{
7197
+ model: z$1.ZodOptional<z$1.ZodString>;
7198
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7199
+ }, z$1.core.$strip>>;
7200
+ summarizer: z$1.ZodOptional<z$1.ZodObject<{
7201
+ model: z$1.ZodOptional<z$1.ZodString>;
7202
+ providerOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
7203
+ }, z$1.core.$strip>>;
7204
+ }, z$1.core.$strip>>;
7205
+ stopWhen: z$1.ZodOptional<z$1.ZodObject<{
7206
+ transferCountIs: z$1.ZodOptional<z$1.ZodNumber>;
7207
+ }, z$1.core.$strip>>;
7208
+ graphPrompt: z$1.ZodOptional<z$1.ZodString>;
7209
+ }, z$1.core.$strip>;
7210
+ declare const PaginationSchema: z$1.ZodObject<{
7211
+ page: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7212
+ limit: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7213
+ total: z$1.ZodNumber;
7214
+ pages: z$1.ZodNumber;
7215
+ }, z$1.core.$strip>;
7216
+ declare const ListResponseSchema: <T extends z$1.ZodTypeAny>(itemSchema: T) => z$1.ZodObject<{
7217
+ data: z$1.ZodArray<T>;
7218
+ pagination: z$1.ZodObject<{
7219
+ page: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7220
+ limit: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7221
+ total: z$1.ZodNumber;
7222
+ pages: z$1.ZodNumber;
7223
+ }, z$1.core.$strip>;
7224
+ }, z$1.core.$strip>;
7225
+ declare const SingleResponseSchema: <T extends z$1.ZodTypeAny>(itemSchema: T) => z$1.ZodObject<{
6988
7226
  data: T;
6989
- }, z.core.$strip>;
6990
- declare const ErrorResponseSchema: z.ZodObject<{
6991
- error: z.ZodString;
6992
- message: z.ZodOptional<z.ZodString>;
6993
- details: z.ZodOptional<z.ZodUnknown>;
6994
- }, z.core.$strip>;
6995
- declare const ExistsResponseSchema: z.ZodObject<{
6996
- exists: z.ZodBoolean;
6997
- }, z.core.$strip>;
6998
- declare const RemovedResponseSchema: z.ZodObject<{
6999
- message: z.ZodString;
7000
- removed: z.ZodBoolean;
7001
- }, z.core.$strip>;
7227
+ }, z$1.core.$strip>;
7228
+ declare const ErrorResponseSchema: z$1.ZodObject<{
7229
+ error: z$1.ZodString;
7230
+ message: z$1.ZodOptional<z$1.ZodString>;
7231
+ details: z$1.ZodOptional<z$1.ZodUnknown>;
7232
+ }, z$1.core.$strip>;
7233
+ declare const ExistsResponseSchema: z$1.ZodObject<{
7234
+ exists: z$1.ZodBoolean;
7235
+ }, z$1.core.$strip>;
7236
+ declare const RemovedResponseSchema: z$1.ZodObject<{
7237
+ message: z$1.ZodString;
7238
+ removed: z$1.ZodBoolean;
7239
+ }, z$1.core.$strip>;
7002
7240
  declare const ProjectSelectSchema: drizzle_zod.BuildSchema<"select", {
7003
7241
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
7004
7242
  name: "tenant_id";
@@ -7185,12 +7423,12 @@ declare const ProjectSelectSchema: drizzle_zod.BuildSchema<"select", {
7185
7423
  length: number | undefined;
7186
7424
  }>;
7187
7425
  }, undefined, undefined>;
7188
- declare const ProjectInsertSchema: z.ZodObject<{
7189
- name: z.ZodString;
7190
- description: z.ZodString;
7191
- id: z.ZodString;
7192
- tenantId: z.ZodString;
7193
- models: z.ZodOptional<z.ZodNullable<z.ZodType<{
7426
+ declare const ProjectInsertSchema: z$1.ZodObject<{
7427
+ tenantId: z$1.ZodString;
7428
+ id: z$1.ZodString;
7429
+ name: z$1.ZodString;
7430
+ description: z$1.ZodString;
7431
+ models: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7194
7432
  base?: {
7195
7433
  model?: string | undefined;
7196
7434
  providerOptions?: Record<string, unknown> | undefined;
@@ -7216,7 +7454,7 @@ declare const ProjectInsertSchema: z.ZodObject<{
7216
7454
  model?: string | undefined;
7217
7455
  providerOptions?: Record<string, unknown> | undefined;
7218
7456
  } | undefined;
7219
- }, z.core.$ZodTypeInternals<{
7457
+ }, z$1.core.$ZodTypeInternals<{
7220
7458
  base?: {
7221
7459
  model?: string | undefined;
7222
7460
  providerOptions?: Record<string, unknown> | undefined;
@@ -7243,13 +7481,13 @@ declare const ProjectInsertSchema: z.ZodObject<{
7243
7481
  providerOptions?: Record<string, unknown> | undefined;
7244
7482
  } | undefined;
7245
7483
  }>>>>;
7246
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
7484
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7247
7485
  transferCountIs?: number;
7248
7486
  stepCountIs?: number;
7249
7487
  }, {
7250
7488
  transferCountIs?: number;
7251
7489
  stepCountIs?: number;
7252
- }, z.core.$ZodTypeInternals<{
7490
+ }, z$1.core.$ZodTypeInternals<{
7253
7491
  transferCountIs?: number;
7254
7492
  stepCountIs?: number;
7255
7493
  }, {
@@ -7260,12 +7498,12 @@ declare const ProjectInsertSchema: z.ZodObject<{
7260
7498
  out: {};
7261
7499
  in: {};
7262
7500
  }>;
7263
- declare const ProjectUpdateSchema: z.ZodObject<{
7264
- name: z.ZodOptional<z.ZodString>;
7265
- description: z.ZodOptional<z.ZodString>;
7266
- id: z.ZodOptional<z.ZodString>;
7267
- tenantId: z.ZodOptional<z.ZodString>;
7268
- models: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
7501
+ declare const ProjectUpdateSchema: z$1.ZodObject<{
7502
+ tenantId: z$1.ZodOptional<z$1.ZodString>;
7503
+ id: z$1.ZodOptional<z$1.ZodString>;
7504
+ name: z$1.ZodOptional<z$1.ZodString>;
7505
+ description: z$1.ZodOptional<z$1.ZodString>;
7506
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7269
7507
  base?: {
7270
7508
  model?: string | undefined;
7271
7509
  providerOptions?: Record<string, unknown> | undefined;
@@ -7291,7 +7529,7 @@ declare const ProjectUpdateSchema: z.ZodObject<{
7291
7529
  model?: string | undefined;
7292
7530
  providerOptions?: Record<string, unknown> | undefined;
7293
7531
  } | undefined;
7294
- }, z.core.$ZodTypeInternals<{
7532
+ }, z$1.core.$ZodTypeInternals<{
7295
7533
  base?: {
7296
7534
  model?: string | undefined;
7297
7535
  providerOptions?: Record<string, unknown> | undefined;
@@ -7318,13 +7556,13 @@ declare const ProjectUpdateSchema: z.ZodObject<{
7318
7556
  providerOptions?: Record<string, unknown> | undefined;
7319
7557
  } | undefined;
7320
7558
  }>>>>>;
7321
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
7559
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7322
7560
  transferCountIs?: number;
7323
7561
  stepCountIs?: number;
7324
7562
  }, {
7325
7563
  transferCountIs?: number;
7326
7564
  stepCountIs?: number;
7327
- }, z.core.$ZodTypeInternals<{
7565
+ }, z$1.core.$ZodTypeInternals<{
7328
7566
  transferCountIs?: number;
7329
7567
  stepCountIs?: number;
7330
7568
  }, {
@@ -7335,13 +7573,13 @@ declare const ProjectUpdateSchema: z.ZodObject<{
7335
7573
  out: {};
7336
7574
  in: {};
7337
7575
  }>;
7338
- declare const ProjectApiSelectSchema: z.ZodObject<{
7339
- name: z.ZodString;
7340
- description: z.ZodString;
7341
- id: z.ZodString;
7342
- createdAt: z.ZodString;
7343
- updatedAt: z.ZodString;
7344
- models: z.ZodNullable<z.ZodType<{
7576
+ declare const ProjectApiSelectSchema: z$1.ZodObject<{
7577
+ id: z$1.ZodString;
7578
+ name: z$1.ZodString;
7579
+ description: z$1.ZodString;
7580
+ createdAt: z$1.ZodString;
7581
+ updatedAt: z$1.ZodString;
7582
+ models: z$1.ZodNullable<z$1.ZodType<{
7345
7583
  base?: {
7346
7584
  model?: string | undefined;
7347
7585
  providerOptions?: Record<string, unknown> | undefined;
@@ -7367,7 +7605,7 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
7367
7605
  model?: string | undefined;
7368
7606
  providerOptions?: Record<string, unknown> | undefined;
7369
7607
  } | undefined;
7370
- }, z.core.$ZodTypeInternals<{
7608
+ }, z$1.core.$ZodTypeInternals<{
7371
7609
  base?: {
7372
7610
  model?: string | undefined;
7373
7611
  providerOptions?: Record<string, unknown> | undefined;
@@ -7394,13 +7632,13 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
7394
7632
  providerOptions?: Record<string, unknown> | undefined;
7395
7633
  } | undefined;
7396
7634
  }>>>;
7397
- stopWhen: z.ZodNullable<z.ZodType<{
7635
+ stopWhen: z$1.ZodNullable<z$1.ZodType<{
7398
7636
  transferCountIs?: number;
7399
7637
  stepCountIs?: number;
7400
7638
  }, {
7401
7639
  transferCountIs?: number;
7402
7640
  stepCountIs?: number;
7403
- }, z.core.$ZodTypeInternals<{
7641
+ }, z$1.core.$ZodTypeInternals<{
7404
7642
  transferCountIs?: number;
7405
7643
  stepCountIs?: number;
7406
7644
  }, {
@@ -7411,11 +7649,11 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
7411
7649
  out: {};
7412
7650
  in: {};
7413
7651
  }>;
7414
- declare const ProjectApiInsertSchema: z.ZodObject<{
7415
- name: z.ZodString;
7416
- description: z.ZodString;
7417
- id: z.ZodString;
7418
- models: z.ZodOptional<z.ZodNullable<z.ZodType<{
7652
+ declare const ProjectApiInsertSchema: z$1.ZodObject<{
7653
+ id: z$1.ZodString;
7654
+ name: z$1.ZodString;
7655
+ description: z$1.ZodString;
7656
+ models: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7419
7657
  base?: {
7420
7658
  model?: string | undefined;
7421
7659
  providerOptions?: Record<string, unknown> | undefined;
@@ -7441,7 +7679,7 @@ declare const ProjectApiInsertSchema: z.ZodObject<{
7441
7679
  model?: string | undefined;
7442
7680
  providerOptions?: Record<string, unknown> | undefined;
7443
7681
  } | undefined;
7444
- }, z.core.$ZodTypeInternals<{
7682
+ }, z$1.core.$ZodTypeInternals<{
7445
7683
  base?: {
7446
7684
  model?: string | undefined;
7447
7685
  providerOptions?: Record<string, unknown> | undefined;
@@ -7468,13 +7706,13 @@ declare const ProjectApiInsertSchema: z.ZodObject<{
7468
7706
  providerOptions?: Record<string, unknown> | undefined;
7469
7707
  } | undefined;
7470
7708
  }>>>>;
7471
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
7709
+ stopWhen: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7472
7710
  transferCountIs?: number;
7473
7711
  stepCountIs?: number;
7474
7712
  }, {
7475
7713
  transferCountIs?: number;
7476
7714
  stepCountIs?: number;
7477
- }, z.core.$ZodTypeInternals<{
7715
+ }, z$1.core.$ZodTypeInternals<{
7478
7716
  transferCountIs?: number;
7479
7717
  stepCountIs?: number;
7480
7718
  }, {
@@ -7485,11 +7723,11 @@ declare const ProjectApiInsertSchema: z.ZodObject<{
7485
7723
  out: {};
7486
7724
  in: {};
7487
7725
  }>;
7488
- declare const ProjectApiUpdateSchema: z.ZodObject<{
7489
- name: z.ZodOptional<z.ZodString>;
7490
- description: z.ZodOptional<z.ZodString>;
7491
- id: z.ZodOptional<z.ZodString>;
7492
- models: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
7726
+ declare const ProjectApiUpdateSchema: z$1.ZodObject<{
7727
+ id: z$1.ZodOptional<z$1.ZodString>;
7728
+ name: z$1.ZodOptional<z$1.ZodString>;
7729
+ description: z$1.ZodOptional<z$1.ZodString>;
7730
+ models: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7493
7731
  base?: {
7494
7732
  model?: string | undefined;
7495
7733
  providerOptions?: Record<string, unknown> | undefined;
@@ -7515,7 +7753,7 @@ declare const ProjectApiUpdateSchema: z.ZodObject<{
7515
7753
  model?: string | undefined;
7516
7754
  providerOptions?: Record<string, unknown> | undefined;
7517
7755
  } | undefined;
7518
- }, z.core.$ZodTypeInternals<{
7756
+ }, z$1.core.$ZodTypeInternals<{
7519
7757
  base?: {
7520
7758
  model?: string | undefined;
7521
7759
  providerOptions?: Record<string, unknown> | undefined;
@@ -7542,13 +7780,13 @@ declare const ProjectApiUpdateSchema: z.ZodObject<{
7542
7780
  providerOptions?: Record<string, unknown> | undefined;
7543
7781
  } | undefined;
7544
7782
  }>>>>>;
7545
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
7783
+ stopWhen: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<{
7546
7784
  transferCountIs?: number;
7547
7785
  stepCountIs?: number;
7548
7786
  }, {
7549
7787
  transferCountIs?: number;
7550
7788
  stepCountIs?: number;
7551
- }, z.core.$ZodTypeInternals<{
7789
+ }, z$1.core.$ZodTypeInternals<{
7552
7790
  transferCountIs?: number;
7553
7791
  stepCountIs?: number;
7554
7792
  }, {
@@ -7559,162 +7797,161 @@ declare const ProjectApiUpdateSchema: z.ZodObject<{
7559
7797
  out: {};
7560
7798
  in: {};
7561
7799
  }>;
7562
- declare const HeadersScopeSchema: z.ZodObject<{
7563
- 'x-inkeep-tenant-id': z.ZodOptional<z.ZodString>;
7564
- 'x-inkeep-project-id': z.ZodOptional<z.ZodString>;
7565
- 'x-inkeep-graph-id': z.ZodOptional<z.ZodString>;
7566
- }, z.core.$strip>;
7567
- declare const TenantParamsSchema: z.ZodObject<{
7568
- tenantId: z.ZodString;
7569
- }, z.core.$strip>;
7570
- declare const TenantProjectParamsSchema: z.ZodObject<{
7571
- tenantId: z.ZodString;
7572
- projectId: z.ZodString;
7573
- }, z.core.$strip>;
7574
- declare const TenantProjectIdParamsSchema: z.ZodObject<{
7575
- tenantId: z.ZodString;
7576
- projectId: z.ZodString;
7577
- id: z.ZodString;
7578
- }, z.core.$strip>;
7579
- declare const TenantIdParamsSchema: z.ZodObject<{
7580
- tenantId: z.ZodString;
7581
- id: z.ZodString;
7582
- }, z.core.$strip>;
7583
- declare const IdParamsSchema: z.ZodObject<{
7584
- id: z.ZodString;
7585
- }, z.core.$strip>;
7586
- declare const PaginationQueryParamsSchema: z.ZodObject<{
7587
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7588
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7589
- }, z.core.$strip>;
7800
+ declare const HeadersScopeSchema: z$1.ZodObject<{
7801
+ 'x-inkeep-tenant-id': z$1.ZodOptional<z$1.ZodString>;
7802
+ 'x-inkeep-project-id': z$1.ZodOptional<z$1.ZodString>;
7803
+ 'x-inkeep-graph-id': z$1.ZodOptional<z$1.ZodString>;
7804
+ }, z$1.core.$strip>;
7805
+ declare const TenantParamsSchema: z$1.ZodObject<{
7806
+ tenantId: z$1.ZodString;
7807
+ }, z$1.core.$strip>;
7808
+ declare const TenantProjectParamsSchema: z$1.ZodObject<{
7809
+ tenantId: z$1.ZodString;
7810
+ projectId: z$1.ZodString;
7811
+ }, z$1.core.$strip>;
7812
+ declare const TenantProjectIdParamsSchema: z$1.ZodObject<{
7813
+ tenantId: z$1.ZodString;
7814
+ projectId: z$1.ZodString;
7815
+ id: z$1.ZodString;
7816
+ }, z$1.core.$strip>;
7817
+ declare const TenantIdParamsSchema: z$1.ZodObject<{
7818
+ tenantId: z$1.ZodString;
7819
+ id: z$1.ZodString;
7820
+ }, z$1.core.$strip>;
7821
+ declare const IdParamsSchema: z$1.ZodObject<{
7822
+ id: z$1.ZodString;
7823
+ }, z$1.core.$strip>;
7824
+ declare const PaginationQueryParamsSchema: z$1.ZodObject<{
7825
+ page: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7826
+ limit: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
7827
+ }, z$1.core.$strip>;
7590
7828
 
7591
- type AgentSelect = z$1.infer<typeof AgentSelectSchema>;
7592
- type AgentInsert = z$1.infer<typeof AgentInsertSchema>;
7593
- type AgentUpdate = z$1.infer<typeof AgentUpdateSchema>;
7594
- type AgentApiSelect = z$1.infer<typeof AgentApiSelectSchema>;
7595
- type AgentApiInsert = z$1.infer<typeof AgentApiInsertSchema>;
7596
- type AgentApiUpdate = z$1.infer<typeof AgentApiUpdateSchema>;
7597
- type AgentRelationSelect = z$1.infer<typeof AgentRelationSelectSchema>;
7598
- type AgentRelationInsert = z$1.infer<typeof AgentRelationInsertSchema>;
7599
- type AgentRelationUpdate = z$1.infer<typeof AgentRelationUpdateSchema>;
7600
- type AgentRelationApiSelect = z$1.infer<typeof AgentRelationApiSelectSchema>;
7601
- type AgentRelationApiInsert = z$1.infer<typeof AgentRelationApiInsertSchema>;
7602
- type AgentRelationApiUpdate = z$1.infer<typeof AgentRelationApiUpdateSchema>;
7603
- type AgentRelationQuery = z$1.infer<typeof AgentRelationQuerySchema>;
7604
- type ExternalAgentRelationInsert = z$1.infer<typeof ExternalAgentRelationInsertSchema>;
7605
- type ExternalAgentRelationApiInsert = z$1.infer<typeof ExternalAgentRelationApiInsertSchema>;
7606
- type AgentGraphSelect = z$1.infer<typeof AgentGraphSelectSchema>;
7607
- type AgentGraphInsert = z$1.infer<typeof AgentGraphInsertSchema>;
7608
- type AgentGraphUpdate = z$1.infer<typeof AgentGraphUpdateSchema>;
7609
- type AgentGraphApiSelect = z$1.infer<typeof AgentGraphApiSelectSchema>;
7610
- type AgentGraphApiInsert = z$1.infer<typeof AgentGraphApiInsertSchema>;
7611
- type AgentGraphApiUpdate = z$1.infer<typeof AgentGraphApiUpdateSchema>;
7612
- type TaskSelect = z$1.infer<typeof TaskSelectSchema>;
7613
- type TaskInsert = z$1.infer<typeof TaskInsertSchema>;
7614
- type TaskUpdate = z$1.infer<typeof TaskUpdateSchema>;
7615
- type TaskApiSelect = z$1.infer<typeof TaskApiSelectSchema>;
7616
- type TaskApiInsert = z$1.infer<typeof TaskApiInsertSchema>;
7617
- type TaskApiUpdate = z$1.infer<typeof TaskApiUpdateSchema>;
7618
- type TaskRelationSelect = z$1.infer<typeof TaskRelationSelectSchema>;
7619
- type TaskRelationInsert = z$1.infer<typeof TaskRelationInsertSchema>;
7620
- type TaskRelationUpdate = z$1.infer<typeof TaskRelationUpdateSchema>;
7621
- type TaskRelationApiSelect = z$1.infer<typeof TaskRelationApiSelectSchema>;
7622
- type TaskRelationApiInsert = z$1.infer<typeof TaskRelationApiInsertSchema>;
7623
- type TaskRelationApiUpdate = z$1.infer<typeof TaskRelationApiUpdateSchema>;
7624
- type ToolSelect = z$1.infer<typeof ToolSelectSchema>;
7625
- type ToolInsert = z$1.infer<typeof ToolInsertSchema>;
7626
- type ToolUpdate = z$1.infer<typeof ToolUpdateSchema>;
7627
- type ToolApiSelect = z$1.infer<typeof ToolApiSelectSchema>;
7628
- type ToolApiInsert = z$1.infer<typeof ToolApiInsertSchema>;
7629
- type ToolApiUpdate = z$1.infer<typeof ToolApiUpdateSchema>;
7630
- type McpTool = z$1.infer<typeof McpToolSchema>;
7631
- type MCPToolConfig = z$1.infer<typeof MCPToolConfigSchema>;
7632
- type McpToolServerConfig = z$1.infer<typeof McpToolServerConfigSchema>;
7633
- type ConversationSelect = z$1.infer<typeof ConversationSelectSchema>;
7634
- type ConversationInsert = z$1.infer<typeof ConversationInsertSchema>;
7635
- type ConversationUpdate = z$1.infer<typeof ConversationUpdateSchema>;
7636
- type ConversationApiSelect = z$1.infer<typeof ConversationApiSelectSchema>;
7637
- type ConversationApiInsert = z$1.infer<typeof ConversationApiInsertSchema>;
7638
- type ConversationApiUpdate = z$1.infer<typeof ConversationApiUpdateSchema>;
7639
- type MessageSelect = z$1.infer<typeof MessageSelectSchema>;
7640
- type MessageInsert = z$1.infer<typeof MessageInsertSchema>;
7641
- type MessageUpdate = z$1.infer<typeof MessageUpdateSchema>;
7642
- type MessageApiSelect = z$1.infer<typeof MessageApiSelectSchema>;
7643
- type MessageApiInsert = z$1.infer<typeof MessageApiInsertSchema>;
7644
- type MessageApiUpdate = z$1.infer<typeof MessageApiUpdateSchema>;
7645
- type ContextConfigSelect = z$1.infer<typeof ContextConfigSelectSchema>;
7646
- type ContextConfigInsert = z$1.infer<typeof ContextConfigInsertSchema>;
7647
- type ContextConfigUpdate = z$1.infer<typeof ContextConfigUpdateSchema>;
7648
- type ContextConfigApiSelect = z$1.infer<typeof ContextConfigApiSelectSchema>;
7649
- type ContextConfigApiInsert = z$1.infer<typeof ContextConfigApiInsertSchema>;
7650
- type ContextConfigApiUpdate = z$1.infer<typeof ContextConfigApiUpdateSchema>;
7651
- type FetchDefinition = z$1.infer<typeof FetchDefinitionSchema>;
7652
- type FetchConfig = z$1.infer<typeof FetchConfigSchema>;
7653
- type ContextCacheSelect = z$1.infer<typeof ContextCacheSelectSchema>;
7654
- type ContextCacheInsert = z$1.infer<typeof ContextCacheInsertSchema>;
7655
- type ContextCacheUpdate = z$1.infer<typeof ContextCacheUpdateSchema>;
7656
- type ContextCacheApiSelect = z$1.infer<typeof ContextCacheApiSelectSchema>;
7657
- type ContextCacheApiInsert = z$1.infer<typeof ContextCacheApiInsertSchema>;
7658
- type ContextCacheApiUpdate = z$1.infer<typeof ContextCacheApiUpdateSchema>;
7659
- type DataComponentSelect = z$1.infer<typeof DataComponentSelectSchema>;
7660
- type DataComponentInsert = z$1.infer<typeof DataComponentInsertSchema>;
7661
- type DataComponentUpdate = z$1.infer<typeof DataComponentUpdateSchema>;
7662
- type DataComponentApiSelect = z$1.infer<typeof DataComponentApiSelectSchema>;
7663
- type DataComponentApiInsert = z$1.infer<typeof DataComponentApiInsertSchema>;
7664
- type DataComponentApiUpdate = z$1.infer<typeof DataComponentApiUpdateSchema>;
7665
- type AgentDataComponentSelect = z$1.infer<typeof AgentDataComponentSelectSchema>;
7666
- type AgentDataComponentInsert = z$1.infer<typeof AgentDataComponentInsertSchema>;
7667
- type AgentDataComponentUpdate = z$1.infer<typeof AgentDataComponentUpdateSchema>;
7668
- type AgentDataComponentApiSelect = z$1.infer<typeof AgentDataComponentApiSelectSchema>;
7669
- type AgentDataComponentApiInsert = z$1.infer<typeof AgentDataComponentApiInsertSchema>;
7670
- type AgentDataComponentApiUpdate = z$1.infer<typeof AgentDataComponentApiUpdateSchema>;
7671
- type ArtifactComponentSelect = z$1.infer<typeof ArtifactComponentSelectSchema>;
7672
- type ArtifactComponentInsert = z$1.infer<typeof ArtifactComponentInsertSchema>;
7673
- type ArtifactComponentUpdate = z$1.infer<typeof ArtifactComponentUpdateSchema>;
7674
- type ArtifactComponentApiSelect = z$1.infer<typeof ArtifactComponentApiSelectSchema>;
7675
- type ArtifactComponentApiInsert = z$1.infer<typeof ArtifactComponentApiInsertSchema>;
7676
- type ArtifactComponentApiUpdate = z$1.infer<typeof ArtifactComponentApiUpdateSchema>;
7677
- type AgentArtifactComponentSelect = z$1.infer<typeof AgentArtifactComponentSelectSchema>;
7678
- type AgentArtifactComponentInsert = z$1.infer<typeof AgentArtifactComponentInsertSchema>;
7679
- type AgentArtifactComponentUpdate = z$1.infer<typeof AgentArtifactComponentUpdateSchema>;
7680
- type AgentArtifactComponentApiSelect = z$1.infer<typeof AgentArtifactComponentApiSelectSchema>;
7681
- type AgentArtifactComponentApiInsert = z$1.infer<typeof AgentArtifactComponentApiInsertSchema>;
7682
- type AgentArtifactComponentApiUpdate = z$1.infer<typeof AgentArtifactComponentApiUpdateSchema>;
7683
- type ExternalAgentSelect = z$1.infer<typeof ExternalAgentSelectSchema>;
7684
- type ExternalAgentInsert = z$1.infer<typeof ExternalAgentInsertSchema>;
7685
- type ExternalAgentUpdate = z$1.infer<typeof ExternalAgentUpdateSchema>;
7686
- type ExternalAgentApiSelect = z$1.infer<typeof ExternalAgentApiSelectSchema>;
7687
- type ExternalAgentApiInsert = z$1.infer<typeof ExternalAgentApiInsertSchema>;
7688
- type ExternalAgentApiUpdate = z$1.infer<typeof ExternalAgentApiUpdateSchema>;
7689
- type AllAgentSelect = z$1.infer<typeof AllAgentSchema>;
7690
- type ApiKeySelect = z$1.infer<typeof ApiKeySelectSchema>;
7691
- type ApiKeyInsert = z$1.infer<typeof ApiKeyInsertSchema>;
7692
- type ApiKeyUpdate = z$1.infer<typeof ApiKeyUpdateSchema>;
7693
- type ApiKeyApiSelect = z$1.infer<typeof ApiKeyApiSelectSchema>;
7694
- type ApiKeyApiInsert = z$1.infer<typeof ApiKeyApiInsertSchema>;
7695
- type ApiKeyApiUpdate = z$1.infer<typeof ApiKeyApiUpdateSchema>;
7696
- type ApiKeyApiCreationResponse = z$1.infer<typeof ApiKeyApiCreationResponseSchema>;
7697
- type CredentialReferenceSelect = z$1.infer<typeof CredentialReferenceSelectSchema>;
7698
- type CredentialReferenceInsert = z$1.infer<typeof CredentialReferenceInsertSchema>;
7699
- type CredentialReferenceUpdate = z$1.infer<typeof CredentialReferenceUpdateSchema>;
7700
- type CredentialReferenceApiSelect = z$1.infer<typeof CredentialReferenceApiSelectSchema>;
7701
- type CredentialReferenceApiInsert = z$1.infer<typeof CredentialReferenceApiInsertSchema>;
7702
- type CredentialReferenceApiUpdate = z$1.infer<typeof CredentialReferenceApiUpdateSchema>;
7703
- type AgentToolRelationSelect = z$1.infer<typeof AgentToolRelationSelectSchema>;
7704
- type AgentToolRelationInsert = z$1.infer<typeof AgentToolRelationInsertSchema>;
7705
- type AgentToolRelationUpdate = z$1.infer<typeof AgentToolRelationUpdateSchema>;
7706
- type AgentToolRelationApiSelect = z$1.infer<typeof AgentToolRelationApiSelectSchema>;
7707
- type AgentToolRelationApiInsert = z$1.infer<typeof AgentToolRelationApiInsertSchema>;
7708
- type AgentToolRelationApiUpdate = z$1.infer<typeof AgentToolRelationApiUpdateSchema>;
7709
- type LedgerArtifactSelect = z$1.infer<typeof LedgerArtifactSelectSchema>;
7710
- type LedgerArtifactInsert = z$1.infer<typeof LedgerArtifactInsertSchema>;
7711
- type LedgerArtifactUpdate = z$1.infer<typeof LedgerArtifactUpdateSchema>;
7712
- type LedgerArtifactApiSelect = z$1.infer<typeof LedgerArtifactApiSelectSchema>;
7713
- type LedgerArtifactApiInsert = z$1.infer<typeof LedgerArtifactApiInsertSchema>;
7714
- type LedgerArtifactApiUpdate = z$1.infer<typeof LedgerArtifactApiUpdateSchema>;
7715
- type FullGraphDefinition = z$1.infer<typeof FullGraphDefinitionSchema>;
7716
- type FullGraphAgentInsert = z$1.infer<typeof FullGraphAgentInsertSchema>;
7717
- type InternalAgentDefinition = z$1.infer<typeof AgentApiInsertSchema> & {
7829
+ type AgentSelect = z.infer<typeof AgentSelectSchema>;
7830
+ type AgentInsert = z.infer<typeof AgentInsertSchema>;
7831
+ type AgentUpdate = z.infer<typeof AgentUpdateSchema>;
7832
+ type AgentApiSelect = z.infer<typeof AgentApiSelectSchema>;
7833
+ type AgentApiInsert = z.infer<typeof AgentApiInsertSchema>;
7834
+ type AgentApiUpdate = z.infer<typeof AgentApiUpdateSchema>;
7835
+ type AgentRelationSelect = z.infer<typeof AgentRelationSelectSchema>;
7836
+ type AgentRelationInsert = z.infer<typeof AgentRelationInsertSchema>;
7837
+ type AgentRelationUpdate = z.infer<typeof AgentRelationUpdateSchema>;
7838
+ type AgentRelationApiSelect = z.infer<typeof AgentRelationApiSelectSchema>;
7839
+ type AgentRelationApiInsert = z.infer<typeof AgentRelationApiInsertSchema>;
7840
+ type AgentRelationApiUpdate = z.infer<typeof AgentRelationApiUpdateSchema>;
7841
+ type AgentRelationQuery = z.infer<typeof AgentRelationQuerySchema>;
7842
+ type ExternalAgentRelationInsert = z.infer<typeof ExternalAgentRelationInsertSchema>;
7843
+ type ExternalAgentRelationApiInsert = z.infer<typeof ExternalAgentRelationApiInsertSchema>;
7844
+ type AgentGraphSelect = z.infer<typeof AgentGraphSelectSchema>;
7845
+ type AgentGraphInsert = z.infer<typeof AgentGraphInsertSchema>;
7846
+ type AgentGraphUpdate = z.infer<typeof AgentGraphUpdateSchema>;
7847
+ type AgentGraphApiSelect = z.infer<typeof AgentGraphApiSelectSchema>;
7848
+ type AgentGraphApiInsert = z.infer<typeof AgentGraphApiInsertSchema>;
7849
+ type AgentGraphApiUpdate = z.infer<typeof AgentGraphApiUpdateSchema>;
7850
+ type TaskSelect = z.infer<typeof TaskSelectSchema>;
7851
+ type TaskInsert = z.infer<typeof TaskInsertSchema>;
7852
+ type TaskUpdate = z.infer<typeof TaskUpdateSchema>;
7853
+ type TaskApiSelect = z.infer<typeof TaskApiSelectSchema>;
7854
+ type TaskApiInsert = z.infer<typeof TaskApiInsertSchema>;
7855
+ type TaskApiUpdate = z.infer<typeof TaskApiUpdateSchema>;
7856
+ type TaskRelationSelect = z.infer<typeof TaskRelationSelectSchema>;
7857
+ type TaskRelationInsert = z.infer<typeof TaskRelationInsertSchema>;
7858
+ type TaskRelationUpdate = z.infer<typeof TaskRelationUpdateSchema>;
7859
+ type TaskRelationApiSelect = z.infer<typeof TaskRelationApiSelectSchema>;
7860
+ type TaskRelationApiInsert = z.infer<typeof TaskRelationApiInsertSchema>;
7861
+ type TaskRelationApiUpdate = z.infer<typeof TaskRelationApiUpdateSchema>;
7862
+ type ToolSelect = z.infer<typeof ToolSelectSchema>;
7863
+ type ToolInsert = z.infer<typeof ToolInsertSchema>;
7864
+ type ToolUpdate = z.infer<typeof ToolUpdateSchema>;
7865
+ type ToolApiSelect = z.infer<typeof ToolApiSelectSchema>;
7866
+ type ToolApiInsert = z.infer<typeof ToolApiInsertSchema>;
7867
+ type ToolApiUpdate = z.infer<typeof ToolApiUpdateSchema>;
7868
+ type McpTool = z.infer<typeof McpToolSchema>;
7869
+ type MCPToolConfig = z.infer<typeof MCPToolConfigSchema>;
7870
+ type ConversationSelect = z.infer<typeof ConversationSelectSchema>;
7871
+ type ConversationInsert = z.infer<typeof ConversationInsertSchema>;
7872
+ type ConversationUpdate = z.infer<typeof ConversationUpdateSchema>;
7873
+ type ConversationApiSelect = z.infer<typeof ConversationApiSelectSchema>;
7874
+ type ConversationApiInsert = z.infer<typeof ConversationApiInsertSchema>;
7875
+ type ConversationApiUpdate = z.infer<typeof ConversationApiUpdateSchema>;
7876
+ type MessageSelect = z.infer<typeof MessageSelectSchema>;
7877
+ type MessageInsert = z.infer<typeof MessageInsertSchema>;
7878
+ type MessageUpdate = z.infer<typeof MessageUpdateSchema>;
7879
+ type MessageApiSelect = z.infer<typeof MessageApiSelectSchema>;
7880
+ type MessageApiInsert = z.infer<typeof MessageApiInsertSchema>;
7881
+ type MessageApiUpdate = z.infer<typeof MessageApiUpdateSchema>;
7882
+ type ContextConfigSelect = z.infer<typeof ContextConfigSelectSchema>;
7883
+ type ContextConfigInsert = z.infer<typeof ContextConfigInsertSchema>;
7884
+ type ContextConfigUpdate = z.infer<typeof ContextConfigUpdateSchema>;
7885
+ type ContextConfigApiSelect = z.infer<typeof ContextConfigApiSelectSchema>;
7886
+ type ContextConfigApiInsert = z.infer<typeof ContextConfigApiInsertSchema>;
7887
+ type ContextConfigApiUpdate = z.infer<typeof ContextConfigApiUpdateSchema>;
7888
+ type FetchDefinition = z.infer<typeof FetchDefinitionSchema>;
7889
+ type FetchConfig = z.infer<typeof FetchConfigSchema>;
7890
+ type ContextCacheSelect = z.infer<typeof ContextCacheSelectSchema>;
7891
+ type ContextCacheInsert = z.infer<typeof ContextCacheInsertSchema>;
7892
+ type ContextCacheUpdate = z.infer<typeof ContextCacheUpdateSchema>;
7893
+ type ContextCacheApiSelect = z.infer<typeof ContextCacheApiSelectSchema>;
7894
+ type ContextCacheApiInsert = z.infer<typeof ContextCacheApiInsertSchema>;
7895
+ type ContextCacheApiUpdate = z.infer<typeof ContextCacheApiUpdateSchema>;
7896
+ type DataComponentSelect = z.infer<typeof DataComponentSelectSchema>;
7897
+ type DataComponentInsert = z.infer<typeof DataComponentInsertSchema>;
7898
+ type DataComponentUpdate = z.infer<typeof DataComponentUpdateSchema>;
7899
+ type DataComponentApiSelect = z.infer<typeof DataComponentApiSelectSchema>;
7900
+ type DataComponentApiInsert = z.infer<typeof DataComponentApiInsertSchema>;
7901
+ type DataComponentApiUpdate = z.infer<typeof DataComponentApiUpdateSchema>;
7902
+ type AgentDataComponentSelect = z.infer<typeof AgentDataComponentSelectSchema>;
7903
+ type AgentDataComponentInsert = z.infer<typeof AgentDataComponentInsertSchema>;
7904
+ type AgentDataComponentUpdate = z.infer<typeof AgentDataComponentUpdateSchema>;
7905
+ type AgentDataComponentApiSelect = z.infer<typeof AgentDataComponentApiSelectSchema>;
7906
+ type AgentDataComponentApiInsert = z.infer<typeof AgentDataComponentApiInsertSchema>;
7907
+ type AgentDataComponentApiUpdate = z.infer<typeof AgentDataComponentApiUpdateSchema>;
7908
+ type ArtifactComponentSelect = z.infer<typeof ArtifactComponentSelectSchema>;
7909
+ type ArtifactComponentInsert = z.infer<typeof ArtifactComponentInsertSchema>;
7910
+ type ArtifactComponentUpdate = z.infer<typeof ArtifactComponentUpdateSchema>;
7911
+ type ArtifactComponentApiSelect = z.infer<typeof ArtifactComponentApiSelectSchema>;
7912
+ type ArtifactComponentApiInsert = z.infer<typeof ArtifactComponentApiInsertSchema>;
7913
+ type ArtifactComponentApiUpdate = z.infer<typeof ArtifactComponentApiUpdateSchema>;
7914
+ type AgentArtifactComponentSelect = z.infer<typeof AgentArtifactComponentSelectSchema>;
7915
+ type AgentArtifactComponentInsert = z.infer<typeof AgentArtifactComponentInsertSchema>;
7916
+ type AgentArtifactComponentUpdate = z.infer<typeof AgentArtifactComponentUpdateSchema>;
7917
+ type AgentArtifactComponentApiSelect = z.infer<typeof AgentArtifactComponentApiSelectSchema>;
7918
+ type AgentArtifactComponentApiInsert = z.infer<typeof AgentArtifactComponentApiInsertSchema>;
7919
+ type AgentArtifactComponentApiUpdate = z.infer<typeof AgentArtifactComponentApiUpdateSchema>;
7920
+ type ExternalAgentSelect = z.infer<typeof ExternalAgentSelectSchema>;
7921
+ type ExternalAgentInsert = z.infer<typeof ExternalAgentInsertSchema>;
7922
+ type ExternalAgentUpdate = z.infer<typeof ExternalAgentUpdateSchema>;
7923
+ type ExternalAgentApiSelect = z.infer<typeof ExternalAgentApiSelectSchema>;
7924
+ type ExternalAgentApiInsert = z.infer<typeof ExternalAgentApiInsertSchema>;
7925
+ type ExternalAgentApiUpdate = z.infer<typeof ExternalAgentApiUpdateSchema>;
7926
+ type AllAgentSelect = z.infer<typeof AllAgentSchema>;
7927
+ type ApiKeySelect = z.infer<typeof ApiKeySelectSchema>;
7928
+ type ApiKeyInsert = z.infer<typeof ApiKeyInsertSchema>;
7929
+ type ApiKeyUpdate = z.infer<typeof ApiKeyUpdateSchema>;
7930
+ type ApiKeyApiSelect = z.infer<typeof ApiKeyApiSelectSchema>;
7931
+ type ApiKeyApiInsert = z.infer<typeof ApiKeyApiInsertSchema>;
7932
+ type ApiKeyApiUpdate = z.infer<typeof ApiKeyApiUpdateSchema>;
7933
+ type ApiKeyApiCreationResponse = z.infer<typeof ApiKeyApiCreationResponseSchema>;
7934
+ type CredentialReferenceSelect = z.infer<typeof CredentialReferenceSelectSchema>;
7935
+ type CredentialReferenceInsert = z.infer<typeof CredentialReferenceInsertSchema>;
7936
+ type CredentialReferenceUpdate = z.infer<typeof CredentialReferenceUpdateSchema>;
7937
+ type CredentialReferenceApiSelect = z.infer<typeof CredentialReferenceApiSelectSchema>;
7938
+ type CredentialReferenceApiInsert = z.infer<typeof CredentialReferenceApiInsertSchema>;
7939
+ type CredentialReferenceApiUpdate = z.infer<typeof CredentialReferenceApiUpdateSchema>;
7940
+ type AgentToolRelationSelect = z.infer<typeof AgentToolRelationSelectSchema>;
7941
+ type AgentToolRelationInsert = z.infer<typeof AgentToolRelationInsertSchema>;
7942
+ type AgentToolRelationUpdate = z.infer<typeof AgentToolRelationUpdateSchema>;
7943
+ type AgentToolRelationApiSelect = z.infer<typeof AgentToolRelationApiSelectSchema>;
7944
+ type AgentToolRelationApiInsert = z.infer<typeof AgentToolRelationApiInsertSchema>;
7945
+ type AgentToolRelationApiUpdate = z.infer<typeof AgentToolRelationApiUpdateSchema>;
7946
+ type LedgerArtifactSelect = z.infer<typeof LedgerArtifactSelectSchema>;
7947
+ type LedgerArtifactInsert = z.infer<typeof LedgerArtifactInsertSchema>;
7948
+ type LedgerArtifactUpdate = z.infer<typeof LedgerArtifactUpdateSchema>;
7949
+ type LedgerArtifactApiSelect = z.infer<typeof LedgerArtifactApiSelectSchema>;
7950
+ type LedgerArtifactApiInsert = z.infer<typeof LedgerArtifactApiInsertSchema>;
7951
+ type LedgerArtifactApiUpdate = z.infer<typeof LedgerArtifactApiUpdateSchema>;
7952
+ type FullGraphDefinition = z.infer<typeof FullGraphDefinitionSchema>;
7953
+ type FullGraphAgentInsert = z.infer<typeof FullGraphAgentInsertSchema>;
7954
+ type InternalAgentDefinition = z.infer<typeof AgentApiInsertSchema> & {
7718
7955
  tools: string[];
7719
7956
  dataComponents?: string[];
7720
7957
  artifactComponents?: string[];
@@ -7725,222 +7962,12 @@ type AgentDefinition = InternalAgentDefinition | ExternalAgentApiInsert;
7725
7962
  type ToolDefinition = ToolApiInsert & {
7726
7963
  credentialReferenceId?: string | null;
7727
7964
  };
7728
- type ProjectSelect = z$1.infer<typeof ProjectSelectSchema>;
7729
- type ProjectInsert = z$1.infer<typeof ProjectInsertSchema>;
7730
- type ProjectUpdate = z$1.infer<typeof ProjectUpdateSchema>;
7731
- type ProjectApiSelect = z$1.infer<typeof ProjectApiSelectSchema>;
7732
- type ProjectApiInsert = z$1.infer<typeof ProjectApiInsertSchema>;
7733
- type ProjectApiUpdate = z$1.infer<typeof ProjectApiUpdateSchema>;
7734
- type Pagination = z$1.infer<typeof PaginationSchema>;
7735
-
7736
- type MessageVisibility = 'user-facing' | 'internal' | 'system' | 'external';
7737
- type MessageType = 'chat' | 'a2a-request' | 'a2a-response' | 'task-update' | 'tool-call';
7738
- type MessageRole = 'user' | 'agent' | 'system';
7739
- type MessageMode = 'full' | 'scoped' | 'none';
7740
- type Models = z$1.infer<typeof ModelSchema>;
7741
- type ModelSettings = {
7742
- model?: string;
7743
- providerOptions?: Record<string, unknown>;
7744
- };
7745
- type StatusUpdateSettings = z$1.infer<typeof StatusUpdateSchema>;
7746
- type StatusComponent = z$1.infer<typeof StatusComponentSchema>;
7747
- type PaginationConfig = {
7748
- page?: number;
7749
- limit?: number;
7750
- };
7751
- type PaginationResult = {
7752
- page: number;
7753
- limit: number;
7754
- total: number;
7755
- pages: number;
7756
- };
7757
- type ScopeConfig = {
7758
- tenantId: string;
7759
- projectId: string;
7760
- };
7761
- interface ConversationScopeOptions {
7762
- taskId?: string;
7763
- agentId?: string;
7764
- }
7765
- type ConversationHistoryConfig = {
7766
- mode?: 'full' | 'scoped' | 'none';
7767
- limit?: number;
7768
- maxOutputTokens?: number;
7769
- includeInternal?: boolean;
7770
- messageTypes?: MessageType[];
7771
- };
7772
- interface AgentConversationHistoryConfig extends ConversationHistoryConfig {
7773
- mode: 'full' | 'scoped' | 'none';
7774
- }
7775
- type ConversationMetadata = {
7776
- userContext?: Record<string, unknown>;
7777
- preferences?: Record<string, unknown>;
7778
- sessionData?: Record<string, unknown>;
7779
- };
7780
- type MessageContent = {
7781
- text?: string;
7782
- parts?: Array<{
7783
- kind: string;
7784
- text?: string;
7785
- data?: string | Record<string, unknown>;
7786
- metadata?: Record<string, unknown>;
7787
- }>;
7788
- tool_calls?: Array<{
7789
- id: string;
7790
- type: string;
7791
- function: {
7792
- name: string;
7793
- arguments: string;
7794
- };
7795
- }>;
7796
- tool_call_id?: string;
7797
- name?: string;
7798
- };
7799
- type MessageMetadata = {
7800
- openai_model?: string;
7801
- finish_reason?: string;
7802
- usage?: {
7803
- prompt_tokens?: number;
7804
- completion_tokens?: number;
7805
- total_tokens?: number;
7806
- };
7807
- a2a_metadata?: Record<string, unknown>;
7808
- processing_time_ms?: number;
7809
- error_details?: Record<string, unknown>;
7810
- };
7811
- type ContextFetchDefinition = {
7812
- id: string;
7813
- name?: string;
7814
- trigger: 'initialization' | 'invocation';
7815
- fetchConfig: {
7816
- url: string;
7817
- method?: string;
7818
- headers?: Record<string, string>;
7819
- body?: Record<string, unknown>;
7820
- transform?: string;
7821
- timeout?: number;
7822
- };
7823
- responseSchema?: Record<string, unknown>;
7824
- defaultValue?: unknown;
7825
- credentialReferenceId?: string;
7826
- };
7827
- type ContextCacheEntry = {
7828
- id: string;
7829
- tenantId: string;
7830
- projectId: string;
7831
- conversationId: string;
7832
- contextConfigId: string;
7833
- contextVariableKey: string;
7834
- value: unknown;
7835
- requestHash?: string;
7836
- fetchedAt: Date;
7837
- fetchSource?: string;
7838
- fetchDurationMs?: number;
7839
- createdAt: Date;
7840
- updatedAt: Date;
7841
- };
7842
- type McpTranportType = 'streamable_http' | 'sse';
7843
- type McpAuthType = 'bearer' | 'basic' | 'api_key' | 'none';
7844
- type McpServerAuth = {
7845
- type: McpAuthType;
7846
- token?: string;
7847
- username?: string;
7848
- password?: string;
7849
- apiKey?: string;
7850
- headerName?: string;
7851
- };
7852
- type McpTransportConfig = z$1.infer<typeof McpTransportConfigSchema>;
7853
- type McpServerCapabilities = {
7854
- tools?: boolean;
7855
- resources?: boolean;
7856
- prompts?: boolean;
7857
- logging?: boolean;
7858
- };
7859
- type McpToolDefinition = {
7860
- name: string;
7861
- description?: string;
7862
- inputSchema?: Record<string, unknown>;
7863
- };
7864
- type ToolMcpConfig = {
7865
- server: {
7866
- url: string;
7867
- timeout?: number;
7868
- headers?: Record<string, string>;
7869
- };
7870
- transport?: McpTransportConfig;
7871
- activeTools?: string[];
7872
- };
7873
- type ToolServerCapabilities = {
7874
- tools?: boolean;
7875
- resources?: boolean;
7876
- prompts?: boolean;
7877
- logging?: boolean;
7878
- streaming?: boolean;
7879
- };
7880
- type TaskMetadataConfig = {
7881
- conversation_id: string;
7882
- message_id: string;
7883
- created_at: string;
7884
- updated_at: string;
7885
- root_agent_id?: string;
7886
- agent_id?: string;
7887
- tool_id?: string;
7888
- graph_id?: string;
7889
- stream_request_id?: string;
7890
- };
7891
- interface ProjectInfo {
7892
- projectId: string;
7893
- }
7894
- interface ProjectResourceCounts {
7895
- agents: number;
7896
- agentGraphs: number;
7897
- tools: number;
7898
- contextConfigs: number;
7899
- externalAgents: number;
7900
- }
7901
- interface RequestSchemaDefinition {
7902
- body?: z$1.ZodSchema<any>;
7903
- headers?: z$1.ZodSchema<any>;
7904
- query?: z$1.ZodSchema<any>;
7905
- params?: z$1.ZodSchema<any>;
7906
- }
7907
- interface RequestSchemaConfig {
7908
- schemas: RequestSchemaDefinition;
7909
- optional?: ('body' | 'headers' | 'query' | 'params')[];
7910
- }
7911
- type toolStatus = 'healthy' | 'unhealthy' | 'unknown';
7912
- declare const TOOL_STATUS_VALUES: readonly ["healthy", "unhealthy", "unknown", "disabled", "needs_auth"];
7913
- declare const VALID_RELATION_TYPES: readonly ["transfer", "delegate"];
7914
- type McpToolStatus = (typeof TOOL_STATUS_VALUES)[number];
7915
- interface CreateApiKeyParams {
7916
- tenantId: string;
7917
- projectId: string;
7918
- graphId: string;
7919
- expiresAt?: string;
7920
- }
7921
- interface ApiKeyCreateResult {
7922
- apiKey: ApiKeySelect;
7923
- key: string;
7924
- }
7925
- /**
7926
- * Execution context that gets propagated through agent calls
7927
- * Contains authentication and routing information for internal API calls
7928
- */
7929
- interface ExecutionContext {
7930
- /** The original API key from the client request */
7931
- apiKey: string;
7932
- /** Tenant ID extracted from API key */
7933
- tenantId: string;
7934
- /** Project ID extracted from API key */
7935
- projectId: string;
7936
- /** Graph ID extracted from API key */
7937
- graphId: string;
7938
- /** Base URL for internal API calls */
7939
- baseUrl: string;
7940
- /** API key ID for tracking */
7941
- apiKeyId: string;
7942
- /** Agent ID extracted from request headers (only for internal A2A calls) */
7943
- agentId?: string;
7944
- }
7965
+ type ProjectSelect = z.infer<typeof ProjectSelectSchema>;
7966
+ type ProjectInsert = z.infer<typeof ProjectInsertSchema>;
7967
+ type ProjectUpdate = z.infer<typeof ProjectUpdateSchema>;
7968
+ type ProjectApiSelect = z.infer<typeof ProjectApiSelectSchema>;
7969
+ type ProjectApiInsert = z.infer<typeof ProjectApiInsertSchema>;
7970
+ type ProjectApiUpdate = z.infer<typeof ProjectApiUpdateSchema>;
7971
+ type Pagination = z.infer<typeof PaginationSchema>;
7945
7972
 
7946
- export { type LedgerArtifactSelect as $, type AgentGraphInsert as A, type ContextCacheSelect as B, type ContextFetchDefinition as C, type ContextCacheInsert as D, type ExternalAgentRelationInsert as E, type FetchDefinition as F, type ContextConfigInsert as G, type ContextConfigUpdate as H, type ConversationSelect as I, type ConversationInsert as J, type ConversationUpdate as K, type CredentialReferenceSelect as L, type McpToolDefinition as M, type ToolSelect as N, type CredentialReferenceInsert as O, type Part as P, type CredentialReferenceUpdate as Q, type RequestSchemaDefinition as R, type ScopeConfig as S, type TaskMetadataConfig as T, type DataComponentSelect as U, type DataComponentInsert as V, type DataComponentUpdate as W, type ExternalAgentInsert as X, type ExternalAgentSelect as Y, type ExternalAgentUpdate as Z, type Artifact as _, type ConversationHistoryConfig as a, type JSONRPCMessage as a$, type MessageVisibility as a0, type MessageInsert as a1, type MessageUpdate as a2, type ProjectInfo as a3, type ProjectSelect as a4, type PaginationResult as a5, type ProjectResourceCounts as a6, type ProjectInsert as a7, type ProjectUpdate as a8, type TaskInsert as a9, type OpenIdConnectSecurityScheme as aA, type SecurityScheme as aB, type AgentCard as aC, type Message as aD, type TaskStatus as aE, type Task as aF, type TaskStatusUpdateEvent as aG, type TaskArtifactUpdateEvent as aH, type JSONParseError as aI, type InvalidRequestError as aJ, type MethodNotFoundError as aK, type InvalidParamsError as aL, type InternalError as aM, type TaskNotFoundError as aN, type TaskNotCancelableError as aO, type PushNotificationNotSupportedError as aP, type UnsupportedOperationError as aQ, type ContentTypeNotSupportedError as aR, type InvalidAgentResponseError as aS, type A2AError as aT, type PushNotificationAuthenticationInfo as aU, type PushNotificationConfig as aV, type TaskPushNotificationConfig as aW, type TaskIdParams as aX, type TaskQueryParams as aY, type MessageSendConfiguration as aZ, type MessageSendParams as a_, type TaskSelect as aa, type McpTool as ab, type McpToolStatus as ac, type ToolInsert as ad, type ToolUpdate as ae, type ExecutionContext as af, type PartBase as ag, type TextPart as ah, type FileBase as ai, type FileWithBytes as aj, type FileWithUri as ak, type FilePart as al, type DataPart as am, TaskState as an, type AgentCapabilities as ao, type AgentProvider as ap, type AgentSkill as aq, type SecuritySchemeBase as ar, type APIKeySecurityScheme as as, type HTTPAuthSecurityScheme as at, type OAuthFlows as au, type AuthorizationCodeOAuthFlow as av, type ClientCredentialsOAuthFlow as aw, type ImplicitOAuthFlow as ax, type PasswordOAuthFlow as ay, type OAuth2SecurityScheme as az, type ToolMcpConfig as b, type ContextConfigApiUpdate as b$, type JSONRPCRequest as b0, type JSONRPCError as b1, type JSONRPCResult as b2, type JSONRPCErrorResponse as b3, type SendMessageRequest as b4, type SendStreamingMessageRequest as b5, type GetTaskRequest as b6, type CancelTaskRequest as b7, type SetTaskPushNotificationConfigRequest as b8, type GetTaskPushNotificationConfigRequest as b9, type AgentGraphSelect as bA, type AgentGraphApiSelect as bB, type AgentGraphApiInsert as bC, type AgentGraphApiUpdate as bD, type TaskUpdate as bE, type TaskApiSelect as bF, type TaskApiInsert as bG, type TaskApiUpdate as bH, type TaskRelationSelect as bI, type TaskRelationInsert as bJ, type TaskRelationUpdate as bK, type TaskRelationApiSelect as bL, type TaskRelationApiInsert as bM, type TaskRelationApiUpdate as bN, type ToolApiSelect as bO, type ToolApiInsert as bP, type ToolApiUpdate as bQ, type McpToolServerConfig as bR, type ConversationApiSelect as bS, type ConversationApiInsert as bT, type ConversationApiUpdate as bU, type MessageSelect as bV, type MessageApiSelect as bW, type MessageApiInsert as bX, type MessageApiUpdate as bY, type ContextConfigApiSelect as bZ, type ContextConfigApiInsert as b_, type TaskResubscriptionRequest as ba, type SendMessageSuccessResponse as bb, type SendMessageResponse as bc, type SendStreamingMessageSuccessResponse as bd, type SendStreamingMessageResponse as be, type GetTaskSuccessResponse as bf, type GetTaskResponse as bg, type CancelTaskSuccessResponse as bh, type CancelTaskResponse as bi, type SetTaskPushNotificationConfigSuccessResponse as bj, type SetTaskPushNotificationConfigResponse as bk, type GetTaskPushNotificationConfigSuccessResponse as bl, type GetTaskPushNotificationConfigResponse as bm, type A2ARequest as bn, type A2AResponse as bo, type MessagePart as bp, type TaskArtifact as bq, type AgentApiSelect as br, type AgentApiInsert as bs, type AgentApiUpdate as bt, type AgentRelationSelect as bu, type AgentRelationApiSelect as bv, type AgentRelationApiInsert as bw, type AgentRelationApiUpdate as bx, type AgentRelationQuery as by, type ExternalAgentRelationApiInsert as bz, type ToolServerCapabilities as c, type McpAuthType as c$, type FetchConfig as c0, type ContextCacheUpdate as c1, type ContextCacheApiSelect as c2, type ContextCacheApiInsert as c3, type ContextCacheApiUpdate as c4, type DataComponentApiSelect as c5, type DataComponentApiInsert as c6, type DataComponentApiUpdate as c7, type AgentDataComponentSelect as c8, type AgentDataComponentInsert as c9, type AgentToolRelationApiSelect as cA, type AgentToolRelationApiInsert as cB, type AgentToolRelationApiUpdate as cC, type LedgerArtifactInsert as cD, type LedgerArtifactUpdate as cE, type LedgerArtifactApiSelect as cF, type LedgerArtifactApiInsert as cG, type LedgerArtifactApiUpdate as cH, type FullGraphAgentInsert as cI, type InternalAgentDefinition as cJ, type AgentDefinition as cK, type ToolDefinition as cL, type ProjectApiSelect as cM, type ProjectApiInsert as cN, type ProjectApiUpdate as cO, type Pagination as cP, type MessageType as cQ, type MessageRole as cR, type MessageMode as cS, type Models as cT, type ModelSettings as cU, type StatusUpdateSettings as cV, type StatusComponent as cW, type ConversationScopeOptions as cX, type AgentConversationHistoryConfig as cY, type ContextCacheEntry as cZ, type McpTranportType as c_, type AgentDataComponentUpdate as ca, type AgentDataComponentApiSelect as cb, type AgentDataComponentApiInsert as cc, type AgentDataComponentApiUpdate as cd, type ArtifactComponentApiSelect as ce, type ArtifactComponentApiInsert as cf, type ArtifactComponentApiUpdate as cg, type AgentArtifactComponentSelect as ch, type AgentArtifactComponentInsert as ci, type AgentArtifactComponentUpdate as cj, type AgentArtifactComponentApiSelect as ck, type AgentArtifactComponentApiInsert as cl, type AgentArtifactComponentApiUpdate as cm, type ExternalAgentApiSelect as cn, type ExternalAgentApiInsert as co, type ExternalAgentApiUpdate as cp, type AllAgentSelect as cq, type ApiKeyApiSelect as cr, type ApiKeyApiInsert as cs, type ApiKeyApiUpdate as ct, type ApiKeyApiCreationResponse as cu, type CredentialReferenceApiSelect as cv, type CredentialReferenceApiInsert as cw, type CredentialReferenceApiUpdate as cx, type AgentToolRelationSelect as cy, type AgentToolRelationInsert as cz, type ConversationMetadata as d, ContextCacheSelectSchema as d$, type McpServerAuth as d0, type McpTransportConfig as d1, type McpServerCapabilities as d2, type toolStatus as d3, TOOL_STATUS_VALUES as d4, VALID_RELATION_TYPES as d5, MIN_ID_LENGTH as d6, MAX_ID_LENGTH as d7, URL_SAFE_ID_PATTERN as d8, resourceIdSchema as d9, TaskUpdateSchema as dA, TaskApiSelectSchema as dB, TaskApiInsertSchema as dC, TaskApiUpdateSchema as dD, TaskRelationSelectSchema as dE, TaskRelationInsertSchema as dF, TaskRelationUpdateSchema as dG, TaskRelationApiSelectSchema as dH, TaskRelationApiInsertSchema as dI, TaskRelationApiUpdateSchema as dJ, McpTransportConfigSchema as dK, ToolStatusSchema as dL, McpToolDefinitionSchema as dM, ToolSelectSchema as dN, ToolInsertSchema as dO, ConversationSelectSchema as dP, ConversationInsertSchema as dQ, ConversationUpdateSchema as dR, ConversationApiSelectSchema as dS, ConversationApiInsertSchema as dT, ConversationApiUpdateSchema as dU, MessageSelectSchema as dV, MessageInsertSchema as dW, MessageUpdateSchema as dX, MessageApiSelectSchema as dY, MessageApiInsertSchema as dZ, MessageApiUpdateSchema as d_, ModelSettingsSchema as da, ModelSchema as db, AgentSelectSchema as dc, AgentInsertSchema as dd, AgentUpdateSchema as de, AgentApiSelectSchema as df, AgentApiInsertSchema as dg, AgentApiUpdateSchema as dh, AgentRelationSelectSchema as di, AgentRelationInsertSchema as dj, AgentRelationUpdateSchema as dk, AgentRelationApiSelectSchema as dl, AgentRelationApiInsertSchema as dm, AgentRelationApiUpdateSchema as dn, AgentRelationQuerySchema as dp, ExternalAgentRelationInsertSchema as dq, ExternalAgentRelationApiInsertSchema as dr, AgentGraphSelectSchema as ds, AgentGraphInsertSchema as dt, AgentGraphUpdateSchema as du, AgentGraphApiSelectSchema as dv, AgentGraphApiInsertSchema as dw, AgentGraphApiUpdateSchema as dx, TaskSelectSchema as dy, TaskInsertSchema as dz, type MessageContent as e, ContextConfigApiInsertSchema as e$, ContextCacheInsertSchema as e0, ContextCacheUpdateSchema as e1, ContextCacheApiSelectSchema as e2, ContextCacheApiInsertSchema as e3, ContextCacheApiUpdateSchema as e4, DataComponentSelectSchema as e5, DataComponentInsertSchema as e6, DataComponentBaseSchema as e7, DataComponentUpdateSchema as e8, DataComponentApiSelectSchema as e9, AllAgentSchema as eA, ApiKeySelectSchema as eB, ApiKeyInsertSchema as eC, ApiKeyUpdateSchema as eD, ApiKeyApiSelectSchema as eE, ApiKeyApiCreationResponseSchema as eF, ApiKeyApiInsertSchema as eG, ApiKeyApiUpdateSchema as eH, CredentialReferenceSelectSchema as eI, CredentialReferenceInsertSchema as eJ, CredentialReferenceUpdateSchema as eK, CredentialReferenceApiSelectSchema as eL, CredentialReferenceApiInsertSchema as eM, CredentialReferenceApiUpdateSchema as eN, McpToolSchema as eO, McpToolServerConfigSchema as eP, MCPToolConfigSchema as eQ, ToolUpdateSchema as eR, ToolApiSelectSchema as eS, ToolApiInsertSchema as eT, ToolApiUpdateSchema as eU, FetchConfigSchema as eV, FetchDefinitionSchema as eW, ContextConfigSelectSchema as eX, ContextConfigInsertSchema as eY, ContextConfigUpdateSchema as eZ, ContextConfigApiSelectSchema as e_, DataComponentApiInsertSchema as ea, DataComponentApiUpdateSchema as eb, AgentDataComponentSelectSchema as ec, AgentDataComponentInsertSchema as ed, AgentDataComponentUpdateSchema as ee, AgentDataComponentApiSelectSchema as ef, AgentDataComponentApiInsertSchema as eg, AgentDataComponentApiUpdateSchema as eh, ArtifactComponentSelectSchema as ei, ArtifactComponentInsertSchema as ej, ArtifactComponentUpdateSchema as ek, ArtifactComponentApiSelectSchema as el, ArtifactComponentApiInsertSchema as em, ArtifactComponentApiUpdateSchema as en, AgentArtifactComponentSelectSchema as eo, AgentArtifactComponentInsertSchema as ep, AgentArtifactComponentUpdateSchema as eq, AgentArtifactComponentApiSelectSchema as er, AgentArtifactComponentApiInsertSchema as es, AgentArtifactComponentApiUpdateSchema as et, ExternalAgentSelectSchema as eu, ExternalAgentInsertSchema as ev, ExternalAgentUpdateSchema as ew, ExternalAgentApiSelectSchema as ex, ExternalAgentApiInsertSchema as ey, ExternalAgentApiUpdateSchema as ez, type MessageMetadata as f, ContextConfigApiUpdateSchema as f0, AgentToolRelationSelectSchema as f1, AgentToolRelationInsertSchema as f2, AgentToolRelationUpdateSchema as f3, AgentToolRelationApiSelectSchema as f4, AgentToolRelationApiInsertSchema as f5, AgentToolRelationApiUpdateSchema as f6, LedgerArtifactSelectSchema as f7, LedgerArtifactInsertSchema as f8, LedgerArtifactUpdateSchema as f9, LedgerArtifactApiSelectSchema as fa, LedgerArtifactApiInsertSchema as fb, LedgerArtifactApiUpdateSchema as fc, StatusComponentSchema as fd, StatusUpdateSchema as fe, FullGraphAgentInsertSchema as ff, FullGraphDefinitionSchema as fg, PaginationSchema as fh, ListResponseSchema as fi, SingleResponseSchema as fj, ErrorResponseSchema as fk, ExistsResponseSchema as fl, RemovedResponseSchema as fm, ProjectSelectSchema as fn, ProjectInsertSchema as fo, ProjectUpdateSchema as fp, ProjectApiSelectSchema as fq, ProjectApiInsertSchema as fr, ProjectApiUpdateSchema as fs, HeadersScopeSchema as ft, TenantParamsSchema as fu, TenantProjectParamsSchema as fv, TenantProjectIdParamsSchema as fw, TenantIdParamsSchema as fx, IdParamsSchema as fy, PaginationQueryParamsSchema as fz, type RequestSchemaConfig as g, type ContextConfigSelect as h, type MCPToolConfig as i, type PaginationConfig as j, type AgentGraphUpdate as k, type FullGraphDefinition as l, type AgentRelationInsert as m, type AgentRelationUpdate as n, type AgentToolRelationUpdate as o, type AgentInsert as p, type AgentUpdate as q, type AgentSelect as r, type ApiKeySelect as s, type ApiKeyInsert as t, type ApiKeyUpdate as u, type CreateApiKeyParams as v, type ApiKeyCreateResult as w, type ArtifactComponentSelect as x, type ArtifactComponentInsert as y, type ArtifactComponentUpdate as z };
7973
+ export { type ExternalAgentUpdate as $, type AgentGraphInsert as A, type ArtifactComponentInsert as B, CredentialStoreType as C, type ArtifactComponentUpdate as D, type ExternalAgentRelationInsert as E, type FetchDefinition as F, type ContextCacheSelect as G, type ContextCacheInsert as H, type ContextConfigInsert as I, type ContextConfigUpdate as J, type ConversationSelect as K, type ConversationInsert as L, MCPTransportType as M, type ConversationUpdate as N, type CredentialReferenceSelect as O, type Part as P, type ToolSelect as Q, type RequestSchemaDefinition as R, type ScopeConfig as S, type TaskMetadataConfig as T, type CredentialReferenceInsert as U, type CredentialReferenceUpdate as V, type DataComponentSelect as W, type DataComponentInsert as X, type DataComponentUpdate as Y, type ExternalAgentInsert as Z, type ExternalAgentSelect as _, type ContextFetchDefinition as a, type MessageSendConfiguration as a$, type Artifact as a0, type LedgerArtifactSelect as a1, type MessageVisibility as a2, type MessageInsert as a3, type MessageUpdate as a4, type ProjectInfo as a5, type ProjectSelect as a6, type PaginationResult as a7, type ProjectResourceCounts as a8, type ProjectInsert as a9, type PasswordOAuthFlow as aA, type OAuth2SecurityScheme as aB, type OpenIdConnectSecurityScheme as aC, type SecurityScheme as aD, type AgentCard as aE, type Message as aF, type TaskStatus as aG, type Task as aH, type TaskStatusUpdateEvent as aI, type TaskArtifactUpdateEvent as aJ, type JSONParseError as aK, type InvalidRequestError as aL, type MethodNotFoundError as aM, type InvalidParamsError as aN, type InternalError as aO, type TaskNotFoundError as aP, type TaskNotCancelableError as aQ, type PushNotificationNotSupportedError as aR, type UnsupportedOperationError as aS, type ContentTypeNotSupportedError as aT, type InvalidAgentResponseError as aU, type A2AError as aV, type PushNotificationAuthenticationInfo as aW, type PushNotificationConfig as aX, type TaskPushNotificationConfig as aY, type TaskIdParams as aZ, type TaskQueryParams as a_, type ProjectUpdate as aa, type TaskInsert as ab, type TaskSelect as ac, type McpTool as ad, type McpToolStatus as ae, type ToolInsert as af, type ToolUpdate as ag, type ExecutionContext as ah, type PartBase as ai, type TextPart as aj, type FileBase as ak, type FileWithBytes as al, type FileWithUri as am, type FilePart as an, type DataPart as ao, TaskState as ap, type AgentCapabilities as aq, type AgentProvider as ar, type AgentSkill as as, type SecuritySchemeBase as at, type APIKeySecurityScheme as au, type HTTPAuthSecurityScheme as av, type OAuthFlows as aw, type AuthorizationCodeOAuthFlow as ax, type ClientCredentialsOAuthFlow as ay, type ImplicitOAuthFlow as az, type ConversationHistoryConfig as b, type ContextConfigApiInsert as b$, type MessageSendParams as b0, type JSONRPCMessage as b1, type JSONRPCRequest as b2, type JSONRPCError as b3, type JSONRPCResult as b4, type JSONRPCErrorResponse as b5, type SendMessageRequest as b6, type SendStreamingMessageRequest as b7, type GetTaskRequest as b8, type CancelTaskRequest as b9, type AgentRelationQuery as bA, type ExternalAgentRelationApiInsert as bB, type AgentGraphSelect as bC, type AgentGraphApiSelect as bD, type AgentGraphApiInsert as bE, type AgentGraphApiUpdate as bF, type TaskUpdate as bG, type TaskApiSelect as bH, type TaskApiInsert as bI, type TaskApiUpdate as bJ, type TaskRelationSelect as bK, type TaskRelationInsert as bL, type TaskRelationUpdate as bM, type TaskRelationApiSelect as bN, type TaskRelationApiInsert as bO, type TaskRelationApiUpdate as bP, type ToolApiSelect as bQ, type ToolApiInsert as bR, type ToolApiUpdate as bS, type ConversationApiSelect as bT, type ConversationApiInsert as bU, type ConversationApiUpdate as bV, type MessageSelect as bW, type MessageApiSelect as bX, type MessageApiInsert as bY, type MessageApiUpdate as bZ, type ContextConfigApiSelect as b_, type SetTaskPushNotificationConfigRequest as ba, type GetTaskPushNotificationConfigRequest as bb, type TaskResubscriptionRequest as bc, type SendMessageSuccessResponse as bd, type SendMessageResponse as be, type SendStreamingMessageSuccessResponse as bf, type SendStreamingMessageResponse as bg, type GetTaskSuccessResponse as bh, type GetTaskResponse as bi, type CancelTaskSuccessResponse as bj, type CancelTaskResponse as bk, type SetTaskPushNotificationConfigSuccessResponse as bl, type SetTaskPushNotificationConfigResponse as bm, type GetTaskPushNotificationConfigSuccessResponse as bn, type GetTaskPushNotificationConfigResponse as bo, type A2ARequest as bp, type A2AResponse as bq, type MessagePart as br, type TaskArtifact as bs, type AgentApiSelect as bt, type AgentApiInsert as bu, type AgentApiUpdate as bv, type AgentRelationSelect as bw, type AgentRelationApiSelect as bx, type AgentRelationApiInsert as by, type AgentRelationApiUpdate as bz, type ToolMcpConfig as c, type McpAuthType as c$, type ContextConfigApiUpdate as c0, type FetchConfig as c1, type ContextCacheUpdate as c2, type ContextCacheApiSelect as c3, type ContextCacheApiInsert as c4, type ContextCacheApiUpdate as c5, type DataComponentApiSelect as c6, type DataComponentApiInsert as c7, type DataComponentApiUpdate as c8, type AgentDataComponentSelect as c9, type AgentToolRelationInsert as cA, type AgentToolRelationApiSelect as cB, type AgentToolRelationApiInsert as cC, type AgentToolRelationApiUpdate as cD, type LedgerArtifactInsert as cE, type LedgerArtifactUpdate as cF, type LedgerArtifactApiSelect as cG, type LedgerArtifactApiInsert as cH, type LedgerArtifactApiUpdate as cI, type FullGraphAgentInsert as cJ, type InternalAgentDefinition as cK, type AgentDefinition as cL, type ToolDefinition as cM, type ProjectApiSelect as cN, type ProjectApiInsert as cO, type ProjectApiUpdate as cP, type Pagination as cQ, type MessageType as cR, type MessageRole as cS, type MessageMode as cT, type Models as cU, type ModelSettings as cV, type StatusUpdateSettings as cW, type StatusComponent as cX, type ConversationScopeOptions as cY, type AgentConversationHistoryConfig as cZ, type ContextCacheEntry as c_, type AgentDataComponentInsert as ca, type AgentDataComponentUpdate as cb, type AgentDataComponentApiSelect as cc, type AgentDataComponentApiInsert as cd, type AgentDataComponentApiUpdate as ce, type ArtifactComponentApiSelect as cf, type ArtifactComponentApiInsert as cg, type ArtifactComponentApiUpdate as ch, type AgentArtifactComponentSelect as ci, type AgentArtifactComponentInsert as cj, type AgentArtifactComponentUpdate as ck, type AgentArtifactComponentApiSelect as cl, type AgentArtifactComponentApiInsert as cm, type AgentArtifactComponentApiUpdate as cn, type ExternalAgentApiSelect as co, type ExternalAgentApiInsert as cp, type ExternalAgentApiUpdate as cq, type AllAgentSelect as cr, type ApiKeyApiSelect as cs, type ApiKeyApiInsert as ct, type ApiKeyApiUpdate as cu, type ApiKeyApiCreationResponse as cv, type CredentialReferenceApiSelect as cw, type CredentialReferenceApiInsert as cx, type CredentialReferenceApiUpdate as cy, type AgentToolRelationSelect as cz, type ToolServerCapabilities as d, MessageApiUpdateSchema as d$, type McpServerAuth as d0, type McpTransportConfig as d1, type McpServerCapabilities as d2, type toolStatus as d3, TOOL_STATUS_VALUES as d4, VALID_RELATION_TYPES as d5, MCPServerType as d6, MIN_ID_LENGTH as d7, MAX_ID_LENGTH as d8, URL_SAFE_ID_PATTERN as d9, TaskInsertSchema as dA, TaskUpdateSchema as dB, TaskApiSelectSchema as dC, TaskApiInsertSchema as dD, TaskApiUpdateSchema as dE, TaskRelationSelectSchema as dF, TaskRelationInsertSchema as dG, TaskRelationUpdateSchema as dH, TaskRelationApiSelectSchema as dI, TaskRelationApiInsertSchema as dJ, TaskRelationApiUpdateSchema as dK, McpTransportConfigSchema as dL, ToolStatusSchema as dM, McpToolDefinitionSchema as dN, ToolSelectSchema as dO, ToolInsertSchema as dP, ConversationSelectSchema as dQ, ConversationInsertSchema as dR, ConversationUpdateSchema as dS, ConversationApiSelectSchema as dT, ConversationApiInsertSchema as dU, ConversationApiUpdateSchema as dV, MessageSelectSchema as dW, MessageInsertSchema as dX, MessageUpdateSchema as dY, MessageApiSelectSchema as dZ, MessageApiInsertSchema as d_, resourceIdSchema as da, ModelSettingsSchema as db, ModelSchema as dc, AgentSelectSchema as dd, AgentInsertSchema as de, AgentUpdateSchema as df, AgentApiSelectSchema as dg, AgentApiInsertSchema as dh, AgentApiUpdateSchema as di, AgentRelationSelectSchema as dj, AgentRelationInsertSchema as dk, AgentRelationUpdateSchema as dl, AgentRelationApiSelectSchema as dm, AgentRelationApiInsertSchema as dn, AgentRelationApiUpdateSchema as dp, AgentRelationQuerySchema as dq, ExternalAgentRelationInsertSchema as dr, ExternalAgentRelationApiInsertSchema as ds, AgentGraphSelectSchema as dt, AgentGraphInsertSchema as du, AgentGraphUpdateSchema as dv, AgentGraphApiSelectSchema as dw, AgentGraphApiInsertSchema as dx, AgentGraphApiUpdateSchema as dy, TaskSelectSchema as dz, type McpToolDefinition as e, ContextConfigApiInsertSchema as e$, ContextCacheSelectSchema as e0, ContextCacheInsertSchema as e1, ContextCacheUpdateSchema as e2, ContextCacheApiSelectSchema as e3, ContextCacheApiInsertSchema as e4, ContextCacheApiUpdateSchema as e5, DataComponentSelectSchema as e6, DataComponentInsertSchema as e7, DataComponentBaseSchema as e8, DataComponentUpdateSchema as e9, ExternalAgentApiUpdateSchema as eA, AllAgentSchema as eB, ApiKeySelectSchema as eC, ApiKeyInsertSchema as eD, ApiKeyUpdateSchema as eE, ApiKeyApiSelectSchema as eF, ApiKeyApiCreationResponseSchema as eG, ApiKeyApiInsertSchema as eH, ApiKeyApiUpdateSchema as eI, CredentialReferenceSelectSchema as eJ, CredentialReferenceInsertSchema as eK, CredentialReferenceUpdateSchema as eL, CredentialReferenceApiSelectSchema as eM, CredentialReferenceApiInsertSchema as eN, CredentialReferenceApiUpdateSchema as eO, McpToolSchema as eP, MCPToolConfigSchema as eQ, ToolUpdateSchema as eR, ToolApiSelectSchema as eS, ToolApiInsertSchema as eT, ToolApiUpdateSchema as eU, FetchConfigSchema as eV, FetchDefinitionSchema as eW, ContextConfigSelectSchema as eX, ContextConfigInsertSchema as eY, ContextConfigUpdateSchema as eZ, ContextConfigApiSelectSchema as e_, DataComponentApiSelectSchema as ea, DataComponentApiInsertSchema as eb, DataComponentApiUpdateSchema as ec, AgentDataComponentSelectSchema as ed, AgentDataComponentInsertSchema as ee, AgentDataComponentUpdateSchema as ef, AgentDataComponentApiSelectSchema as eg, AgentDataComponentApiInsertSchema as eh, AgentDataComponentApiUpdateSchema as ei, ArtifactComponentSelectSchema as ej, ArtifactComponentInsertSchema as ek, ArtifactComponentUpdateSchema as el, ArtifactComponentApiSelectSchema as em, ArtifactComponentApiInsertSchema as en, ArtifactComponentApiUpdateSchema as eo, AgentArtifactComponentSelectSchema as ep, AgentArtifactComponentInsertSchema as eq, AgentArtifactComponentUpdateSchema as er, AgentArtifactComponentApiSelectSchema as es, AgentArtifactComponentApiInsertSchema as et, AgentArtifactComponentApiUpdateSchema as eu, ExternalAgentSelectSchema as ev, ExternalAgentInsertSchema as ew, ExternalAgentUpdateSchema as ex, ExternalAgentApiSelectSchema as ey, ExternalAgentApiInsertSchema as ez, type ConversationMetadata as f, ContextConfigApiUpdateSchema as f0, AgentToolRelationSelectSchema as f1, AgentToolRelationInsertSchema as f2, AgentToolRelationUpdateSchema as f3, AgentToolRelationApiSelectSchema as f4, AgentToolRelationApiInsertSchema as f5, AgentToolRelationApiUpdateSchema as f6, LedgerArtifactSelectSchema as f7, LedgerArtifactInsertSchema as f8, LedgerArtifactUpdateSchema as f9, LedgerArtifactApiSelectSchema as fa, LedgerArtifactApiInsertSchema as fb, LedgerArtifactApiUpdateSchema as fc, StatusComponentSchema as fd, StatusUpdateSchema as fe, FullGraphAgentInsertSchema as ff, FullGraphDefinitionSchema as fg, PaginationSchema as fh, ListResponseSchema as fi, SingleResponseSchema as fj, ErrorResponseSchema as fk, ExistsResponseSchema as fl, RemovedResponseSchema as fm, ProjectSelectSchema as fn, ProjectInsertSchema as fo, ProjectUpdateSchema as fp, ProjectApiSelectSchema as fq, ProjectApiInsertSchema as fr, ProjectApiUpdateSchema as fs, HeadersScopeSchema as ft, TenantParamsSchema as fu, TenantProjectParamsSchema as fv, TenantProjectIdParamsSchema as fw, TenantIdParamsSchema as fx, IdParamsSchema as fy, PaginationQueryParamsSchema as fz, type MessageContent as g, type MessageMetadata as h, type RequestSchemaConfig as i, type ContextConfigSelect as j, type MCPToolConfig as k, type PaginationConfig as l, type AgentGraphUpdate as m, type FullGraphDefinition as n, type AgentRelationInsert as o, type AgentRelationUpdate as p, type AgentToolRelationUpdate as q, type AgentInsert as r, type AgentUpdate as s, type AgentSelect as t, type ApiKeySelect as u, type ApiKeyInsert as v, type ApiKeyUpdate as w, type CreateApiKeyParams as x, type ApiKeyCreateResult as y, type ArtifactComponentSelect as z };