@elevasis/ui 2.9.1 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/app/index.css +137 -0
  2. package/dist/app/index.d.ts +223 -0
  3. package/dist/app/index.js +95 -0
  4. package/dist/charts/index.js +3 -2
  5. package/dist/{chunk-NYMKWGKN.js → chunk-4BF74JVD.js} +110 -7
  6. package/dist/{chunk-47YILFON.js → chunk-6PNHW4X2.js} +159 -144
  7. package/dist/chunk-ADSSLKKP.js +10 -0
  8. package/dist/chunk-AEBKE4IX.js +13 -0
  9. package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
  10. package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
  11. package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
  12. package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
  13. package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
  14. package/dist/chunk-G2TDX3W6.js +5 -0
  15. package/dist/{chunk-CTWYIRKW.js → chunk-GJVGV7QZ.js} +24 -34
  16. package/dist/chunk-IIMU5YAJ.js +53 -0
  17. package/dist/{chunk-VNUOQQNY.js → chunk-KYOF6NYW.js} +2 -2
  18. package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
  19. package/dist/{chunk-YCHZ4U5V.js → chunk-LPSBID5V.js} +5 -13
  20. package/dist/{chunk-F5QSLYUB.js → chunk-LW5NKRI7.js} +1189 -1300
  21. package/dist/{chunk-KGEYEUR5.js → chunk-M6ZZ2FW5.js} +7 -6
  22. package/dist/{chunk-OPT74SGF.js → chunk-N5CLIRBS.js} +31 -176
  23. package/dist/chunk-R7WLWGPO.js +126 -0
  24. package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
  25. package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
  26. package/dist/chunk-SZHARWKU.js +15 -0
  27. package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
  28. package/dist/chunk-V7XHGJQZ.js +145 -0
  29. package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
  30. package/dist/{chunk-4JPW5U5I.js → chunk-XB4NWSI3.js} +53 -54
  31. package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
  32. package/dist/components/index.d.ts +6 -253
  33. package/dist/components/index.js +31 -25
  34. package/dist/features/auth/index.d.ts +0 -107
  35. package/dist/features/auth/index.js +0 -1
  36. package/dist/features/crm/index.d.ts +3 -136
  37. package/dist/features/crm/index.js +14 -9
  38. package/dist/features/dashboard/index.js +13 -9
  39. package/dist/features/delivery/index.d.ts +3 -137
  40. package/dist/features/delivery/index.js +15 -9
  41. package/dist/features/lead-gen/index.d.ts +3 -29
  42. package/dist/features/lead-gen/index.js +20 -14
  43. package/dist/features/monitoring/index.d.ts +3 -30
  44. package/dist/features/monitoring/index.js +14 -10
  45. package/dist/features/operations/index.d.ts +18 -1324
  46. package/dist/features/operations/index.js +18 -13
  47. package/dist/features/seo/index.d.ts +3 -30
  48. package/dist/features/seo/index.js +3 -2
  49. package/dist/features/settings/index.d.ts +6 -146
  50. package/dist/features/settings/index.js +13 -9
  51. package/dist/hooks/index.d.ts +10 -1403
  52. package/dist/hooks/index.js +11 -7
  53. package/dist/hooks/published.d.ts +10 -1403
  54. package/dist/hooks/published.js +11 -7
  55. package/dist/index.d.ts +97 -1510
  56. package/dist/index.js +12 -8
  57. package/dist/initialization/index.d.ts +3 -117
  58. package/dist/layout/index.d.ts +12 -2
  59. package/dist/layout/index.js +5 -4
  60. package/dist/organization/index.d.ts +3 -10
  61. package/dist/organization/index.js +2 -1
  62. package/dist/profile/index.d.ts +0 -107
  63. package/dist/provider/index.d.ts +45 -65
  64. package/dist/provider/index.js +10 -6
  65. package/dist/provider/published.d.ts +45 -65
  66. package/dist/provider/published.js +6 -3
  67. package/dist/supabase/index.d.ts +0 -209
  68. package/dist/theme/index.d.ts +1 -1
  69. package/dist/theme/index.js +3 -3
  70. package/dist/typeform/index.js +10 -10
  71. package/dist/types/index.d.ts +68 -1738
  72. package/package.json +20 -4
  73. package/src/app/README.md +24 -0
  74. package/dist/chunk-IDACMRGQ.js +0 -115
@@ -1399,113 +1399,6 @@ type Database$1 = {
1399
1399
  },
1400
1400
  ]
1401
1401
  }
1402
- calibration_projects: {
1403
- Row: {
1404
- created_at: string | null
1405
- description: string | null
1406
- id: string
1407
- name: string
1408
- organization_id: string
1409
- resource_id: string
1410
- resource_type: string
1411
- updated_at: string | null
1412
- }
1413
- Insert: {
1414
- created_at?: string | null
1415
- description?: string | null
1416
- id?: string
1417
- name: string
1418
- organization_id: string
1419
- resource_id: string
1420
- resource_type: string
1421
- updated_at?: string | null
1422
- }
1423
- Update: {
1424
- created_at?: string | null
1425
- description?: string | null
1426
- id?: string
1427
- name?: string
1428
- organization_id?: string
1429
- resource_id?: string
1430
- resource_type?: string
1431
- updated_at?: string | null
1432
- }
1433
- Relationships: [
1434
- {
1435
- foreignKeyName: "calibration_projects_organization_id_fkey"
1436
- columns: ["organization_id"]
1437
- isOneToOne: false
1438
- referencedRelation: "organizations"
1439
- referencedColumns: ["id"]
1440
- },
1441
- ]
1442
- }
1443
- calibration_runs: {
1444
- Row: {
1445
- completed_at: string | null
1446
- config_variants: Json$1
1447
- created_at: string | null
1448
- description: string | null
1449
- execution_mode: string
1450
- grader_model: string | null
1451
- grading_rubric: Json$1 | null
1452
- id: string
1453
- name: string
1454
- organization_id: string
1455
- project_id: string
1456
- results: Json$1
1457
- status: string
1458
- test_inputs: Json$1
1459
- }
1460
- Insert: {
1461
- completed_at?: string | null
1462
- config_variants: Json$1
1463
- created_at?: string | null
1464
- description?: string | null
1465
- execution_mode?: string
1466
- grader_model?: string | null
1467
- grading_rubric?: Json$1 | null
1468
- id?: string
1469
- name: string
1470
- organization_id: string
1471
- project_id: string
1472
- results?: Json$1
1473
- status?: string
1474
- test_inputs: Json$1
1475
- }
1476
- Update: {
1477
- completed_at?: string | null
1478
- config_variants?: Json$1
1479
- created_at?: string | null
1480
- description?: string | null
1481
- execution_mode?: string
1482
- grader_model?: string | null
1483
- grading_rubric?: Json$1 | null
1484
- id?: string
1485
- name?: string
1486
- organization_id?: string
1487
- project_id?: string
1488
- results?: Json$1
1489
- status?: string
1490
- test_inputs?: Json$1
1491
- }
1492
- Relationships: [
1493
- {
1494
- foreignKeyName: "calibration_runs_organization_id_fkey"
1495
- columns: ["organization_id"]
1496
- isOneToOne: false
1497
- referencedRelation: "organizations"
1498
- referencedColumns: ["id"]
1499
- },
1500
- {
1501
- foreignKeyName: "calibration_runs_project_id_fkey"
1502
- columns: ["project_id"]
1503
- isOneToOne: false
1504
- referencedRelation: "calibration_projects"
1505
- referencedColumns: ["id"]
1506
- },
1507
- ]
1508
- }
1509
1402
  command_queue: {
1510
1403
  Row: {
1511
1404
  action_payload: Json$1 | null
@@ -2863,7 +2756,7 @@ type TaskRow = Database$1['public']['Tables']['prj_tasks']['Row']
2863
2756
  // Status enums
2864
2757
  type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
2865
2758
 
2866
- type ProjectKind = 'client_engagement' | 'internal'
2759
+ type ProjectKind = 'client_engagement' | 'internal' | 'research' | 'other'
2867
2760
 
2868
2761
  type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
2869
2762
 
@@ -3267,51 +3160,6 @@ interface AgentToolCallEvent {
3267
3160
  * 3 event types total (lifecycle, iteration, tool-call)
3268
3161
  */
3269
3162
  type AgentLogContext = AgentLifecycleEvent | AgentIterationEvent | AgentToolCallEvent;
3270
- /**
3271
- * Data for lifecycle 'started' events
3272
- */
3273
- interface AgentLifecycleStartedData {
3274
- startTime: number;
3275
- iteration?: number;
3276
- }
3277
- /**
3278
- * Data for lifecycle 'completed' events
3279
- */
3280
- interface AgentLifecycleCompletedData {
3281
- startTime: number;
3282
- endTime: number;
3283
- duration: number;
3284
- iteration?: number;
3285
- attempts?: number;
3286
- memorySize?: {
3287
- sessionMemoryKeys: number;
3288
- historyEntries: number;
3289
- };
3290
- }
3291
- /**
3292
- * Data for lifecycle 'failed' events
3293
- */
3294
- interface AgentLifecycleFailedData {
3295
- startTime: number;
3296
- endTime: number;
3297
- duration: number;
3298
- error: string;
3299
- iteration?: number;
3300
- }
3301
- /**
3302
- * Scoped logger for agent execution
3303
- * Captures logger and agentId to eliminate repetitive parameter passing
3304
- *
3305
- * Type-safe lifecycle logging with stage-specific required fields
3306
- */
3307
- interface AgentScopedLogger {
3308
- lifecycle(lifecycle: AgentLifecycle, stage: 'started', data: AgentLifecycleStartedData): void;
3309
- lifecycle(lifecycle: AgentLifecycle, stage: 'completed', data: AgentLifecycleCompletedData): void;
3310
- lifecycle(lifecycle: AgentLifecycle, stage: 'failed', data: AgentLifecycleFailedData): void;
3311
- reasoning(output: string, iteration: number, startTime: number, endTime: number, duration: number): void;
3312
- action(actionType: string, message: string, iteration: number, startTime: number, endTime: number, duration: number): void;
3313
- toolCall(toolName: string, iteration: number, startTime: number, endTime: number, duration: number, success: boolean, error?: string, input?: unknown, output?: unknown): void;
3314
- }
3315
3163
 
3316
3164
  /**
3317
3165
  * Base execution logger for Execution Engine
@@ -3325,12 +3173,6 @@ interface ExecutionLogMessage {
3325
3173
  timestamp: number;
3326
3174
  context?: LogContext;
3327
3175
  }
3328
- interface IExecutionLogger {
3329
- debug(message: string, context?: LogContext): void;
3330
- info(message: string, context?: LogContext): void;
3331
- warn(message: string, context?: LogContext): void;
3332
- error(message: string, context?: LogContext): void;
3333
- }
3334
3176
 
3335
3177
  /**
3336
3178
  * Shared form field types for dynamic form generation
@@ -3612,262 +3454,6 @@ interface SerializedWorkflowDefinition {
3612
3454
  interface?: SerializedExecutionInterface;
3613
3455
  }
3614
3456
 
3615
- /**
3616
- * Model Configuration
3617
- * Centralized model information, configuration, options, constraints, and validation
3618
- * Single source of truth for all model-related definitions
3619
- * Update manually when pricing changes or new models are added
3620
- */
3621
-
3622
- /**
3623
- * Supported Open AI models (direct SDK access)
3624
- */
3625
- type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano';
3626
- /**
3627
- * Supported OpenRouter models (explicit union for type safety)
3628
- */
3629
- type OpenRouterModel = 'openrouter/z-ai/glm-5';
3630
- /**
3631
- * Supported Google models (direct SDK access)
3632
- */
3633
- type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
3634
- /**
3635
- * Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
3636
- */
3637
- type AnthropicModel = 'claude-sonnet-4-5';
3638
- /** Supported LLM models */
3639
- type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
3640
- /**
3641
- * GPT-5 model options schema
3642
- */
3643
- declare const GPT5OptionsSchema: z.ZodObject<{
3644
- reasoning_effort: z.ZodOptional<z.ZodEnum<{
3645
- minimal: "minimal";
3646
- low: "low";
3647
- medium: "medium";
3648
- high: "high";
3649
- }>>;
3650
- verbosity: z.ZodOptional<z.ZodEnum<{
3651
- low: "low";
3652
- medium: "medium";
3653
- high: "high";
3654
- }>>;
3655
- }, z.core.$strip>;
3656
- /**
3657
- * OpenRouter model options schema
3658
- * OpenRouter-specific options for routing and transforms
3659
- */
3660
- declare const OpenRouterOptionsSchema: z.ZodObject<{
3661
- transforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
3662
- route: z.ZodOptional<z.ZodEnum<{
3663
- fallback: "fallback";
3664
- }>>;
3665
- }, z.core.$strip>;
3666
- /**
3667
- * Google model options schema
3668
- * Gemini 3 specific options for thinking depth control
3669
- */
3670
- declare const GoogleOptionsSchema: z.ZodObject<{
3671
- thinkingLevel: z.ZodOptional<z.ZodEnum<{
3672
- minimal: "minimal";
3673
- low: "low";
3674
- medium: "medium";
3675
- high: "high";
3676
- }>>;
3677
- }, z.core.$strip>;
3678
- /**
3679
- * Anthropic model options schema
3680
- * Currently empty - future options: budget_tokens for extended thinking
3681
- */
3682
- declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strip>;
3683
- /**
3684
- * Infer TypeScript types from schemas
3685
- */
3686
- type GPT5Options = z.infer<typeof GPT5OptionsSchema>;
3687
- type MockOptions = Record<string, never>;
3688
- type OpenRouterOptions = z.infer<typeof OpenRouterOptionsSchema>;
3689
- type GoogleOptions = z.infer<typeof GoogleOptionsSchema>;
3690
- type AnthropicOptions = z.infer<typeof AnthropicOptionsSchema>;
3691
- type ModelSpecificOptions = GPT5Options | MockOptions | OpenRouterOptions | GoogleOptions | AnthropicOptions;
3692
- /**
3693
- * Model configuration for LLM execution
3694
- * Belongs in resource definition (AgentDefinition, WorkflowDefinition, etc.)
3695
- */
3696
- interface ModelConfig {
3697
- model: LLMModel;
3698
- provider: 'openai' | 'anthropic' | 'openrouter' | 'google' | 'mock';
3699
- apiKey: string;
3700
- temperature?: number;
3701
- /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
3702
- maxOutputTokens?: number;
3703
- topP?: number;
3704
- /**
3705
- * Model-specific options (flat structure)
3706
- * Options are model-specific, not vendor-specific
3707
- * Available options defined in MODEL_INFO per model
3708
- * Validated at build time via validateModelOptions()
3709
- */
3710
- modelOptions?: ModelSpecificOptions;
3711
- }
3712
-
3713
- /**
3714
- * Execution interface configuration
3715
- * Defines how a resource is executed via the UI (forms, scheduling, webhooks)
3716
- * Applies to both agents and workflows
3717
- */
3718
- interface ExecutionInterface {
3719
- /** Form configuration for execution inputs */
3720
- form: ExecutionFormSchema;
3721
- /** Optional: Schedule configuration */
3722
- schedule?: ScheduleConfig;
3723
- /** Optional: Webhook trigger configuration */
3724
- webhook?: WebhookConfig;
3725
- }
3726
- /**
3727
- * Execution form schema
3728
- * Extends FormSchema with execution-specific fields
3729
- */
3730
- interface ExecutionFormSchema extends FormSchema {
3731
- /**
3732
- * Field mappings to resource input schema
3733
- * Maps form field names to contract input paths
3734
- * If omitted, field names must match contract input keys exactly
3735
- */
3736
- fieldMappings?: Record<string, string>;
3737
- /**
3738
- * Submit button configuration
3739
- * Default: { label: 'Run', loadingLabel: 'Running...' }
3740
- */
3741
- submitButton?: {
3742
- label?: string;
3743
- loadingLabel?: string;
3744
- confirmMessage?: string;
3745
- };
3746
- }
3747
- /**
3748
- * Schedule configuration for automated execution
3749
- */
3750
- interface ScheduleConfig {
3751
- /** Whether scheduling is enabled for this resource */
3752
- enabled: boolean;
3753
- /** Default schedule (cron expression) */
3754
- defaultSchedule?: string;
3755
- /** Allowed schedule patterns (if restricted) */
3756
- allowedPatterns?: string[];
3757
- }
3758
- /**
3759
- * Webhook configuration for external triggers
3760
- */
3761
- interface WebhookConfig {
3762
- /** Whether webhook trigger is enabled */
3763
- enabled: boolean;
3764
- /** Expected payload schema (for documentation) */
3765
- payloadSchema?: unknown;
3766
- }
3767
-
3768
- interface WorkflowConfig extends ResourceDefinition {
3769
- type: 'workflow';
3770
- }
3771
- interface WorkflowStepDefinition {
3772
- id: string;
3773
- name: string;
3774
- description: string;
3775
- }
3776
- type StepHandler = (input: unknown, context: ExecutionContext) => Promise<unknown>;
3777
- interface LinearNext {
3778
- type: 'linear';
3779
- target: string;
3780
- }
3781
- interface ConditionalNext {
3782
- type: 'conditional';
3783
- routes: Array<{
3784
- condition: (data: unknown) => boolean;
3785
- target: string;
3786
- }>;
3787
- default: string;
3788
- }
3789
- type NextConfig = LinearNext | ConditionalNext | null;
3790
- interface WorkflowStep extends WorkflowStepDefinition {
3791
- handler: StepHandler;
3792
- inputSchema: z.ZodSchema;
3793
- outputSchema: z.ZodSchema;
3794
- next: NextConfig;
3795
- }
3796
- interface WorkflowDefinition {
3797
- config: WorkflowConfig;
3798
- contract: Contract;
3799
- steps: Record<string, WorkflowStep>;
3800
- entryPoint: string;
3801
- /**
3802
- * Metrics configuration for ROI calculations
3803
- * Optional: Only needed if tracking automation savings
3804
- */
3805
- metricsConfig?: ResourceMetricsConfig;
3806
- /**
3807
- * Execution interface configuration (optional)
3808
- * If provided, workflow appears in Execution Runner UI
3809
- */
3810
- interface?: ExecutionInterface;
3811
- }
3812
-
3813
- /**
3814
- * Generic LLM Types
3815
- * Universal interfaces for LLM interaction across all resource types
3816
- */
3817
- /**
3818
- * Standard chat message format
3819
- * Compatible with OpenAI, Anthropic, and other providers
3820
- */
3821
- interface LLMMessage {
3822
- role: 'system' | 'user' | 'assistant';
3823
- content: string;
3824
- }
3825
- /**
3826
- * Generic LLM generation request
3827
- * Usable by agents, workflows, tools, etc.
3828
- */
3829
- interface LLMGenerateRequest {
3830
- messages: LLMMessage[];
3831
- responseSchema: unknown;
3832
- /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
3833
- maxOutputTokens?: number;
3834
- temperature?: number;
3835
- topP?: number;
3836
- signal?: AbortSignal;
3837
- }
3838
- /**
3839
- * Generic LLM generation response
3840
- * Usage field is internal-only (stripped by UniversalLLMAdapter wrapper)
3841
- */
3842
- interface LLMGenerateResponse<T = unknown> {
3843
- output: T;
3844
- usage?: {
3845
- inputTokens: number;
3846
- outputTokens: number;
3847
- totalTokens: number;
3848
- };
3849
- cost?: number;
3850
- }
3851
- /**
3852
- * LLM Adapter interface
3853
- * Generic primitive for all resource types (agents, workflows, tools)
3854
- *
3855
- * Design principles:
3856
- * - Single method: generate() - the core LLM primitive
3857
- * - Generic return type for type safety
3858
- * - Universal format (not agent-specific)
3859
- * - Standard message-based input (OpenAI-compatible)
3860
- */
3861
- interface LLMAdapter {
3862
- /**
3863
- * Generate structured output from prompt using LLM
3864
- *
3865
- * @param request - Generation request with messages and response schema
3866
- * @returns Generated output (typed) with optional usage metadata
3867
- */
3868
- generate<T = unknown>(request: LLMGenerateRequest): Promise<LLMGenerateResponse<T>>;
3869
- }
3870
-
3871
3457
  /**
3872
3458
  * Memory type definitions
3873
3459
  * Types for agent memory management with semantic entry types
@@ -3908,302 +3494,6 @@ interface AgentMemory {
3908
3494
  */
3909
3495
  history: MemoryEntry[];
3910
3496
  }
3911
- /**
3912
- * Memory status for agent awareness
3913
- */
3914
- interface MemoryStatus {
3915
- sessionMemoryKeys: number;
3916
- sessionMemoryLimit: number;
3917
- currentKeys: string[];
3918
- historyPercent: number;
3919
- historyTokens: number;
3920
- tokenBudget: number;
3921
- }
3922
- /**
3923
- * Memory constraints (optional limits)
3924
- */
3925
- interface MemoryConstraints {
3926
- maxSessionMemoryKeys?: number;
3927
- maxMemoryTokens?: number;
3928
- }
3929
-
3930
- /**
3931
- * Memory Manager
3932
- * Encapsulates all memory operations with ultra-simple agent API
3933
- * Agent provides strings, framework handles wrapping and auto-compaction
3934
- */
3935
-
3936
- /**
3937
- * Memory Manager - Agent memory orchestration
3938
- * Provides ultra-simple API for agents (strings only)
3939
- * Handles automatic compaction and token management
3940
- */
3941
- declare class MemoryManager {
3942
- private memory;
3943
- private constraints;
3944
- private logger?;
3945
- private cachedSnapshot?;
3946
- constructor(memory: AgentMemory, constraints?: MemoryConstraints, logger?: AgentScopedLogger | undefined);
3947
- /**
3948
- * Set session memory entry (agent provides string, framework wraps it)
3949
- * @param key - Session memory key
3950
- * @param content - String content from agent
3951
- */
3952
- set(key: string, content: string): void;
3953
- /**
3954
- * Get session memory entry content
3955
- * @param key - Session memory key
3956
- * @returns String content if exists, undefined otherwise
3957
- */
3958
- get(key: string): string | undefined;
3959
- /**
3960
- * Delete session memory entry
3961
- * @param key - Key to delete
3962
- * @returns True if key existed and was deleted
3963
- */
3964
- delete(key: string): boolean;
3965
- /**
3966
- * Add entry to history (called by framework after tool results, reasoning, etc.)
3967
- * Automatically sets timestamp to current time
3968
- * @param entry - Memory entry to add (without timestamp - auto-generated)
3969
- */
3970
- addToHistory(entry: Omit<MemoryEntry, 'timestamp'>): void;
3971
- /**
3972
- * Auto-compact history if approaching token budget
3973
- * Uses preserve-anchors strategy: keep first + recent entries
3974
- */
3975
- autoCompact(): void;
3976
- /**
3977
- * Enforce hard limits (called before LLM request)
3978
- * Emergency fallback if agent exceeds limits
3979
- */
3980
- enforceHardLimits(): void;
3981
- /**
3982
- * Get history length (for logging and introspection)
3983
- * @returns Number of entries in history
3984
- */
3985
- getHistoryLength(): number;
3986
- /**
3987
- * Get memory status for agent awareness
3988
- * @returns Memory status with token usage and key counts
3989
- */
3990
- getStatus(): MemoryStatus;
3991
- /**
3992
- * Create memory snapshot for persistence
3993
- * Caches snapshot internally for later retrieval
3994
- * @returns Deep copy of current memory state
3995
- */
3996
- toSnapshot(): AgentMemory;
3997
- /**
3998
- * Get cached memory snapshot
3999
- * Returns snapshot created by toSnapshot()
4000
- * @returns Cached snapshot (undefined if toSnapshot() not called yet)
4001
- */
4002
- getSnapshot(): AgentMemory | undefined;
4003
- /**
4004
- * Build context string for LLM
4005
- * Serializes sessionmemory + history memory with clear sections
4006
- * Shows current iteration entries FIRST (reverse chronological) for LLM attention
4007
- * @param currentIteration - Current iteration number (0 = pre-iteration)
4008
- * @param currentTurn - Current turn number (optional, for session context filtering)
4009
- * @returns Formatted memory context for LLM prompt
4010
- */
4011
- toContext(currentIteration: number, currentTurn?: number): string;
4012
- }
4013
-
4014
- /**
4015
- * Knowledge Map Types
4016
- *
4017
- * Enables agents to navigate organizational knowledge through a lightweight
4018
- * graph that lazy-loads capabilities on-demand.
4019
- *
4020
- * @module agent/knowledge-map
4021
- */
4022
-
4023
- /**
4024
- * Lightweight knowledge map (passed as agent property)
4025
- *
4026
- * Contains metadata about available knowledge nodes without loading
4027
- * the full content upfront. Total size: ~300-500 tokens.
4028
- *
4029
- * Multi-tenancy is enforced via:
4030
- * - File-scoped maps (organizations/{org-name}/knowledge/)
4031
- * - ExecutionContext.organizationId passed to node.load()
4032
- */
4033
- interface KnowledgeMap {
4034
- /** Available knowledge nodes indexed by ID */
4035
- nodes: Record<string, KnowledgeNode>;
4036
- }
4037
- /**
4038
- * Single knowledge source
4039
- *
4040
- * Represents a domain knowledge area (CRM, brand guidelines, Excel tools)
4041
- * that can be lazy-loaded to provide instructions and tools to agents.
4042
- */
4043
- interface KnowledgeNode {
4044
- /** Unique identifier for this node (e.g., "crm", "brand-guidelines") */
4045
- id: string;
4046
- /**
4047
- * Description of when to use this knowledge
4048
- * Used for semantic matching against user intent
4049
- */
4050
- description: string;
4051
- /**
4052
- * Load knowledge content on-demand
4053
- *
4054
- * @param context - Execution context with organizationId for multi-tenancy
4055
- * @returns Promise resolving to knowledge content (prompt + optional tools)
4056
- */
4057
- load(context: ExecutionContext): Promise<KnowledgeContent>;
4058
- /**
4059
- * Loaded state flag
4060
- * Set to true after load() is called
4061
- */
4062
- loaded?: boolean;
4063
- /**
4064
- * Cached prompt (for system prompt serialization)
4065
- * Only the prompt is cached - tools go to toolRegistry, children flattened to nodes
4066
- */
4067
- prompt?: string;
4068
- }
4069
- /**
4070
- * Content returned by knowledge node
4071
- *
4072
- * Separates instructions (prompt) from capabilities (tools).
4073
- * Tools are optional - some nodes only provide context.
4074
- *
4075
- * Supports recursive navigation - nodes can contain child nodes
4076
- * that are discovered when the parent node is loaded.
4077
- */
4078
- interface KnowledgeContent {
4079
- /** Instructions and context (markdown format) */
4080
- prompt: string;
4081
- /** Tool implementations (optional) */
4082
- tools?: Tool[];
4083
- /**
4084
- * Child knowledge nodes (optional, recursive)
4085
- *
4086
- * Enables hierarchical navigation: base → specialized → deep expertise.
4087
- * Child nodes are flattened into the main knowledge map when parent loads,
4088
- * making them available for subsequent navigate-knowledge actions.
4089
- *
4090
- * Example: CRM base node returns crm-customers and crm-deals as children
4091
- */
4092
- nodes?: Record<string, KnowledgeNode>;
4093
- }
4094
-
4095
- /**
4096
- * Agent-specific type definitions
4097
- * Types for autonomous agents with tools, memory, and constraints
4098
- */
4099
-
4100
- /**
4101
- * Factory function for creating LLM adapters.
4102
- * Injected into the Agent class to decouple the engine from server-only provider SDKs.
4103
- * - API process: provides createLLMAdapter (real SDKs + process.env API keys)
4104
- * - SDK worker: provides PostMessageLLMAdapter (proxies via platform.call)
4105
- *
4106
- * Uses `any` for optional params so both the real createLLMAdapter (with typed
4107
- * AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
4108
- */
4109
- type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
4110
- interface AgentConfig extends ResourceDefinition {
4111
- type: 'agent';
4112
- systemPrompt: string;
4113
- constraints?: AgentConstraints;
4114
- /**
4115
- * Session capability declaration (opt-in)
4116
- * If true, agent is designed for multi-turn session interactions
4117
- * Controls whether agent can use message action and appears in Sessions UI
4118
- *
4119
- * Use for:
4120
- * - Conversational agents with multi-turn interactions
4121
- * - Agents requiring persistent context across turns
4122
- * - Agents that need human-in-the-loop communication
4123
- */
4124
- sessionCapable?: boolean;
4125
- /**
4126
- * Security level for system prompt hardening (auto-derived if omitted)
4127
- *
4128
- * - 'standard': Lightweight defense (3 rules) - default for non-session agents
4129
- * - 'hardened': Comprehensive defense (6 rules) - default for session-capable agents
4130
- * - 'none': No security prompt - for pure internal agents with no external input
4131
- *
4132
- * If omitted, derived from sessionCapable:
4133
- * sessionCapable: true -> 'hardened'
4134
- * sessionCapable: false -> 'standard'
4135
- */
4136
- securityLevel?: 'standard' | 'hardened' | 'none';
4137
- /**
4138
- * Memory management preferences (opt-in)
4139
- * If provided, agent can use memoryOps to manage session memory
4140
- * If omitted, agent has no memory management capabilities
4141
- *
4142
- * Agent-specific guidance on what to preserve, when to persist, and what to clean up.
4143
- * This guidance is injected into the system prompt when memory management is enabled.
4144
- *
4145
- * Use for:
4146
- * - Conversational agents needing cross-turn context
4147
- * - Agents managing complex user preferences
4148
- * - Agents tracking decisions over multiple iterations
4149
- */
4150
- memoryPreferences?: string;
4151
- }
4152
- interface AgentConstraints {
4153
- maxIterations?: number;
4154
- timeout?: number;
4155
- maxSessionMemoryKeys?: number;
4156
- maxMemoryTokens?: number;
4157
- }
4158
- interface AgentDefinition {
4159
- config: AgentConfig;
4160
- contract: Contract;
4161
- tools: Tool[];
4162
- /**
4163
- * Model configuration for LLM execution
4164
- * Specifies provider, API key, and model-specific options
4165
- */
4166
- modelConfig: ModelConfig;
4167
- /**
4168
- * Optional knowledge map for lazy-loading capabilities
4169
- * Enables agents to navigate organizational knowledge on-demand
4170
- */
4171
- knowledgeMap?: KnowledgeMap;
4172
- /**
4173
- * Preload memory before execution starts
4174
- * Handles BOTH context loading AND session restoration
4175
- *
4176
- * @param context - Execution context (includes sessionId if session turn)
4177
- * @returns Initial AgentMemory state (sessionMemory entries + optionally history)
4178
- */
4179
- preloadMemory?: (context: ExecutionContext) => Promise<AgentMemory> | AgentMemory;
4180
- /**
4181
- * Metrics configuration for ROI calculations
4182
- * Optional: Only needed if tracking automation savings
4183
- */
4184
- metricsConfig?: ResourceMetricsConfig;
4185
- /**
4186
- * Execution interface configuration (optional)
4187
- * If provided, agent appears in Execution Runner UI
4188
- */
4189
- interface?: ExecutionInterface;
4190
- }
4191
- /**
4192
- * Agent execution context
4193
- * Groups all state needed for agent execution phases
4194
- */
4195
- interface IterationContext {
4196
- config: AgentConfig;
4197
- contract: Contract;
4198
- toolRegistry: Map<string, Tool>;
4199
- memoryManager: MemoryManager;
4200
- executionContext: ExecutionContext;
4201
- iteration: number;
4202
- logger: AgentScopedLogger;
4203
- modelConfig: ModelConfig;
4204
- adapterFactory: LLMAdapterFactory;
4205
- knowledgeMap?: KnowledgeMap;
4206
- }
4207
3497
 
4208
3498
  type Json = string | number | boolean | null | {
4209
3499
  [key: string]: Json | undefined;
@@ -5302,125 +4592,18 @@ type Database = {
5302
4592
  Update: {
5303
4593
  created_at?: string | null;
5304
4594
  id?: string;
5305
- key_hash?: string;
5306
- last_used_at?: string | null;
5307
- name?: string;
5308
- organization_id?: string;
5309
- };
5310
- Relationships: [
5311
- {
5312
- foreignKeyName: "api_keys_organization_id_fkey";
5313
- columns: ["organization_id"];
5314
- isOneToOne: false;
5315
- referencedRelation: "organizations";
5316
- referencedColumns: ["id"];
5317
- }
5318
- ];
5319
- };
5320
- calibration_projects: {
5321
- Row: {
5322
- created_at: string | null;
5323
- description: string | null;
5324
- id: string;
5325
- name: string;
5326
- organization_id: string;
5327
- resource_id: string;
5328
- resource_type: string;
5329
- updated_at: string | null;
5330
- };
5331
- Insert: {
5332
- created_at?: string | null;
5333
- description?: string | null;
5334
- id?: string;
5335
- name: string;
5336
- organization_id: string;
5337
- resource_id: string;
5338
- resource_type: string;
5339
- updated_at?: string | null;
5340
- };
5341
- Update: {
5342
- created_at?: string | null;
5343
- description?: string | null;
5344
- id?: string;
5345
- name?: string;
5346
- organization_id?: string;
5347
- resource_id?: string;
5348
- resource_type?: string;
5349
- updated_at?: string | null;
5350
- };
5351
- Relationships: [
5352
- {
5353
- foreignKeyName: "calibration_projects_organization_id_fkey";
5354
- columns: ["organization_id"];
5355
- isOneToOne: false;
5356
- referencedRelation: "organizations";
5357
- referencedColumns: ["id"];
5358
- }
5359
- ];
5360
- };
5361
- calibration_runs: {
5362
- Row: {
5363
- completed_at: string | null;
5364
- config_variants: Json;
5365
- created_at: string | null;
5366
- description: string | null;
5367
- execution_mode: string;
5368
- grader_model: string | null;
5369
- grading_rubric: Json | null;
5370
- id: string;
5371
- name: string;
5372
- organization_id: string;
5373
- project_id: string;
5374
- results: Json;
5375
- status: string;
5376
- test_inputs: Json;
5377
- };
5378
- Insert: {
5379
- completed_at?: string | null;
5380
- config_variants: Json;
5381
- created_at?: string | null;
5382
- description?: string | null;
5383
- execution_mode?: string;
5384
- grader_model?: string | null;
5385
- grading_rubric?: Json | null;
5386
- id?: string;
5387
- name: string;
5388
- organization_id: string;
5389
- project_id: string;
5390
- results?: Json;
5391
- status?: string;
5392
- test_inputs: Json;
5393
- };
5394
- Update: {
5395
- completed_at?: string | null;
5396
- config_variants?: Json;
5397
- created_at?: string | null;
5398
- description?: string | null;
5399
- execution_mode?: string;
5400
- grader_model?: string | null;
5401
- grading_rubric?: Json | null;
5402
- id?: string;
4595
+ key_hash?: string;
4596
+ last_used_at?: string | null;
5403
4597
  name?: string;
5404
4598
  organization_id?: string;
5405
- project_id?: string;
5406
- results?: Json;
5407
- status?: string;
5408
- test_inputs?: Json;
5409
4599
  };
5410
4600
  Relationships: [
5411
4601
  {
5412
- foreignKeyName: "calibration_runs_organization_id_fkey";
4602
+ foreignKeyName: "api_keys_organization_id_fkey";
5413
4603
  columns: ["organization_id"];
5414
4604
  isOneToOne: false;
5415
4605
  referencedRelation: "organizations";
5416
4606
  referencedColumns: ["id"];
5417
- },
5418
- {
5419
- foreignKeyName: "calibration_runs_project_id_fkey";
5420
- columns: ["project_id"];
5421
- isOneToOne: false;
5422
- referencedRelation: "calibration_projects";
5423
- referencedColumns: ["id"];
5424
4607
  }
5425
4608
  ];
5426
4609
  };
@@ -7286,18 +6469,11 @@ interface SessionTokenUsage {
7286
6469
  */
7287
6470
  /**
7288
6471
  * Per-user-per-org config (stored in org_memberships.config)
7289
- * Controls which features a specific member can access within their org
7290
- * Valid feature keys: operations, monitoring, acquisition, delivery, calibration, seo
6472
+ * Controls which features a specific member can access within their org.
6473
+ * Keys are feature IDs from the organization model (e.g. crm, lead-gen, projects, seo).
7291
6474
  */
7292
6475
  interface MembershipFeatureConfig {
7293
- features?: {
7294
- operations?: boolean;
7295
- monitoring?: boolean;
7296
- acquisition?: boolean;
7297
- delivery?: boolean;
7298
- calibration?: boolean;
7299
- seo?: boolean;
7300
- };
6476
+ features?: Record<string, boolean>;
7301
6477
  }
7302
6478
  /**
7303
6479
  * User-global config (stored in users.config)
@@ -7305,7 +6481,7 @@ interface MembershipFeatureConfig {
7305
6481
  */
7306
6482
  interface UserConfig {
7307
6483
  theme?: {
7308
- preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
6484
+ preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
7309
6485
  colorScheme?: 'light' | 'dark' | 'auto';
7310
6486
  };
7311
6487
  onboarding?: {
@@ -7415,102 +6591,6 @@ interface MembershipWithDetails extends OrganizationMembership {
7415
6591
  config?: MembershipFeatureConfig;
7416
6592
  }
7417
6593
 
7418
- /**
7419
- * MetricsCollector
7420
- * Tracks execution timing and ROI metrics
7421
- */
7422
- declare class MetricsCollector {
7423
- private timings;
7424
- private durationMs?;
7425
- /**
7426
- * Start a timer with a label
7427
- */
7428
- startTimer(label: string): void;
7429
- /**
7430
- * End a timer and calculate duration
7431
- * If label is 'execution', stores duration for metrics summary
7432
- */
7433
- endTimer(label: string): number | null;
7434
- /**
7435
- * Build execution metrics summary with optional ROI calculation
7436
- */
7437
- buildExecutionMetrics(metricsConfig?: ResourceMetricsConfig): ExecutionMetricsSummary;
7438
- }
7439
-
7440
- interface BaseAICall {
7441
- callSequence: number;
7442
- callType: 'agent-reasoning' | 'agent-completion' | 'workflow-step' | 'tool' | 'other';
7443
- model: LLMModel;
7444
- inputTokens: number;
7445
- outputTokens: number;
7446
- costUsd: number;
7447
- latencyMs: number;
7448
- context?: AICallContext;
7449
- }
7450
- type AICallContext = AgentReasoningContext | AgentCompletionContext | WorkflowStepContext | ToolCallContext | OtherCallContext;
7451
- interface AgentReasoningContext {
7452
- type: 'agent-reasoning';
7453
- iteration: number;
7454
- actionsPlanned?: string[];
7455
- sessionId?: string;
7456
- turnNumber?: number;
7457
- }
7458
- interface AgentCompletionContext {
7459
- type: 'agent-completion';
7460
- attempt: 1 | 2;
7461
- validationFailed?: boolean;
7462
- sessionId?: string;
7463
- turnNumber?: number;
7464
- }
7465
- interface WorkflowStepContext {
7466
- type: 'workflow-step';
7467
- stepId: string;
7468
- stepName?: string;
7469
- stepSequence?: number;
7470
- }
7471
- interface ToolCallContext {
7472
- type: 'tool';
7473
- toolName: string;
7474
- parentIteration?: number;
7475
- parentStepId?: string;
7476
- }
7477
- interface OtherCallContext {
7478
- type: 'other';
7479
- description?: string;
7480
- metadata?: Record<string, unknown>;
7481
- }
7482
- type AICallRecord = BaseAICall;
7483
- /**
7484
- * Raw LLM usage data returned by adapters
7485
- * Used as input to AIUsageCollector.record()
7486
- */
7487
- interface LLMUsageData {
7488
- model: LLMModel;
7489
- inputTokens: number;
7490
- outputTokens: number;
7491
- latencyMs: number;
7492
- /** Actual cost from provider in USD (when available, e.g., OpenRouter) */
7493
- cost?: number;
7494
- }
7495
- interface AIUsageSummary {
7496
- model: LLMModel;
7497
- totalInputTokens: number;
7498
- totalOutputTokens: number;
7499
- totalTokens: number;
7500
- totalCostUsd: number;
7501
- callCount: number;
7502
- calls: AICallRecord[];
7503
- }
7504
- interface ExecutionMetricsSummary {
7505
- durationMs?: number;
7506
- automationSavingsUsd?: number;
7507
- }
7508
- interface ResourceMetricsConfig {
7509
- estimatedManualMinutes: number;
7510
- hourlyLaborRateUsd: number;
7511
- confidenceLevel?: 'low' | 'medium' | 'high';
7512
- notes?: string;
7513
- }
7514
6594
  /**
7515
6595
  * Time range selector for dashboard metrics
7516
6596
  */
@@ -7581,23 +6661,6 @@ interface CostBreakdownMetrics {
7581
6661
  avgCostUsd: number;
7582
6662
  }>;
7583
6663
  }
7584
- /**
7585
- * Detailed execution metrics response
7586
- * Full execution metrics with AI call breakdown
7587
- */
7588
- interface ExecutionMetricsDetail {
7589
- executionId: string;
7590
- organizationId: string;
7591
- resourceId: string;
7592
- totalInputTokens: number;
7593
- totalOutputTokens: number;
7594
- totalCostUsd: number;
7595
- aiCallCount: number;
7596
- aiCalls: AICallRecord[];
7597
- durationMs?: number;
7598
- automationSavingsUsd?: number;
7599
- createdAt: string;
7600
- }
7601
6664
  /**
7602
6665
  * Dashboard metrics response
7603
6666
  * Aggregates core observability metrics in a single response
@@ -7772,51 +6835,11 @@ interface CostByModelResponse {
7772
6835
  totalCallCount: number;
7773
6836
  }
7774
6837
 
7775
- /**
7776
- * AIUsageCollector
7777
- * Centralized token tracking that aggregates usage across all LLM calls in an execution
7778
- */
7779
- declare class AIUsageCollector {
7780
- private model;
7781
- private calls;
7782
- private callSequence;
7783
- /**
7784
- * Record a single AI call with usage metrics
7785
- *
7786
- * @param usage - Token usage and latency data from LLM adapter
7787
- * @param callType - Type discriminator (agent-reasoning, tool, etc.)
7788
- * @param context - Optional typed context specific to callType
7789
- */
7790
- record(usage: LLMUsageData, callType?: BaseAICall['callType'], context?: AICallContext): void;
7791
- /**
7792
- * Get aggregated summary of all AI calls
7793
- */
7794
- getSummary(): AIUsageSummary;
7795
- /**
7796
- * Check if any usage has been recorded
7797
- */
7798
- hasUsage(): boolean;
7799
- }
7800
-
7801
6838
  /**
7802
6839
  * Base Execution Engine type definitions
7803
6840
  * Core types shared across all Execution Engine resources
7804
6841
  */
7805
6842
 
7806
- /**
7807
- * Immutable execution metadata
7808
- * Represents complete execution identity (who, what, when, where)
7809
- * Shared across ExecutionContext and ExecutionLoggerContext to eliminate field duplication
7810
- */
7811
- interface ExecutionMetadata {
7812
- executionId: string;
7813
- organizationId: string;
7814
- organizationName: string;
7815
- resourceId: string;
7816
- userId?: string;
7817
- sessionId?: string;
7818
- sessionTurnNumber?: number;
7819
- }
7820
6843
  /**
7821
6844
  * Unified message event type - covers all message types in sessions
7822
6845
  * Replaces separate SessionTurnMessages and AgentActivityEvent mechanisms
@@ -7864,27 +6887,6 @@ type MessageEvent = {
7864
6887
  result?: unknown;
7865
6888
  error?: string;
7866
6889
  };
7867
- /**
7868
- * Execution context for all resources
7869
- * Unified callback replaces SessionTurnMessages (removed)
7870
- */
7871
- interface ExecutionContext extends ExecutionMetadata {
7872
- logger: IExecutionLogger;
7873
- signal?: AbortSignal;
7874
- onMessageEvent?: (event: MessageEvent) => Promise<void>;
7875
- /** Called per iteration to write heartbeat + check stall status. Non-fatal if it throws. */
7876
- onHeartbeat?: () => Promise<void>;
7877
- aiUsageCollector?: AIUsageCollector;
7878
- metricsCollector?: MetricsCollector;
7879
- parentExecutionId?: string;
7880
- executionDepth: number;
7881
- credentialName?: string;
7882
- store: Map<string, unknown>;
7883
- }
7884
- interface Contract {
7885
- inputSchema: z.ZodSchema;
7886
- outputSchema?: z.ZodSchema;
7887
- }
7888
6890
  /**
7889
6891
  * NOTE: AIResource interface has been removed and replaced with ResourceDefinition
7890
6892
  * from registry/types.ts. All resources (executable and non-executable) now extend
@@ -7895,45 +6897,6 @@ interface Contract {
7895
6897
  */
7896
6898
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
7897
6899
 
7898
- /**
7899
- * Tool definitions
7900
- *
7901
- * Tool interface used by agents and workflows.
7902
- * Provides a universal interface for AI systems to interact with tools.
7903
- */
7904
-
7905
- /**
7906
- * Options for tool execution
7907
- * Provides named parameters for better API clarity and extensibility
7908
- */
7909
- interface ToolExecutionOptions {
7910
- /** Tool input (validated against inputSchema before execution) */
7911
- input: unknown;
7912
- /** Execution context with multi-tenant isolation and observability (optional for simple tools, required for platform/integration tools) */
7913
- executionContext?: ExecutionContext;
7914
- /** Full iteration context for advanced tools (provides access to memoryManager, toolRegistry, logger, etc.) */
7915
- iterationContext?: IterationContext;
7916
- /** Abort signal for timeout/cancellation -- forward to fetch() calls for clean cancellation */
7917
- signal?: AbortSignal;
7918
- }
7919
- /**
7920
- * Tool interface for AI systems
7921
- *
7922
- * Used by:
7923
- * - Agents: For agentic tool use (reasoning loop selects and executes tools)
7924
- * - Workflows: For workflow step tool invocation (future)
7925
- * - Platform tools: createApprovalTool(), createSchedulerTool()
7926
- * - Integration tools: External API calls (Gmail, Slack, etc.)
7927
- */
7928
- interface Tool {
7929
- name: string;
7930
- description: string;
7931
- inputSchema: z.ZodSchema;
7932
- outputSchema: z.ZodSchema;
7933
- execute: (options: ToolExecutionOptions) => Promise<unknown>;
7934
- timeout?: number;
7935
- }
7936
-
7937
6900
  /**
7938
6901
  * Supported integration types
7939
6902
  *
@@ -8342,99 +7305,6 @@ interface Activity {
8342
7305
  createdAt: Date;
8343
7306
  }
8344
7307
 
8345
- /**
8346
- * Calibration SSE Event Types
8347
- *
8348
- * Shared event type definitions for calibration real-time streaming.
8349
- * Used by both the API broadcaster and the command-center UI.
8350
- */
8351
- interface CalibrationExecutionStartedEvent {
8352
- type: 'execution-started';
8353
- variantName: string;
8354
- inputIndex: number;
8355
- timestamp: number;
8356
- }
8357
- interface CalibrationExecutionCompletedEvent {
8358
- type: 'execution-completed';
8359
- variantName: string;
8360
- inputIndex: number;
8361
- executionId: string;
8362
- timestamp: number;
8363
- }
8364
- interface CalibrationExecutionFailedEvent {
8365
- type: 'execution-failed';
8366
- variantName: string;
8367
- inputIndex?: number;
8368
- error: string;
8369
- timestamp: number;
8370
- }
8371
- interface CalibrationSessionStartedEvent {
8372
- type: 'session-started';
8373
- variantName: string;
8374
- sessionId: string;
8375
- timestamp: number;
8376
- }
8377
- interface CalibrationTurnStartedEvent {
8378
- type: 'turn-started';
8379
- variantName: string;
8380
- turnNumber: number;
8381
- timestamp: number;
8382
- }
8383
- interface CalibrationTurnCompletedEvent {
8384
- type: 'turn-completed';
8385
- variantName: string;
8386
- turnNumber: number;
8387
- executionId: string;
8388
- timestamp: number;
8389
- }
8390
- interface CalibrationSessionCompletedEvent {
8391
- type: 'session-completed';
8392
- variantName: string;
8393
- sessionId: string;
8394
- turnCount: number;
8395
- timestamp: number;
8396
- }
8397
- interface CalibrationGradingStartedEvent {
8398
- type: 'grading-started';
8399
- variantName: string;
8400
- timestamp: number;
8401
- }
8402
- interface CalibrationGradingCompletedEvent {
8403
- type: 'grading-completed';
8404
- variantName: string;
8405
- score: number;
8406
- timestamp: number;
8407
- }
8408
- interface CalibrationGradingFailedEvent {
8409
- type: 'grading-failed';
8410
- variantName: string;
8411
- error: string;
8412
- timestamp: number;
8413
- }
8414
- interface CalibrationCompletedEvent {
8415
- type: 'calibration-completed';
8416
- summary: {
8417
- total: number;
8418
- completed: number;
8419
- failed: number;
8420
- };
8421
- timestamp: number;
8422
- }
8423
- interface CalibrationFailedEvent {
8424
- type: 'calibration-failed';
8425
- error: string;
8426
- timestamp: number;
8427
- }
8428
- interface CalibrationConnectedEvent {
8429
- type: 'connected';
8430
- timestamp: number;
8431
- data?: undefined;
8432
- }
8433
- /**
8434
- * Union of all calibration SSE events
8435
- */
8436
- type CalibrationSSEEvent = CalibrationExecutionStartedEvent | CalibrationExecutionCompletedEvent | CalibrationExecutionFailedEvent | CalibrationSessionStartedEvent | CalibrationTurnStartedEvent | CalibrationTurnCompletedEvent | CalibrationSessionCompletedEvent | CalibrationGradingStartedEvent | CalibrationGradingCompletedEvent | CalibrationGradingFailedEvent | CalibrationCompletedEvent | CalibrationFailedEvent | CalibrationConnectedEvent;
8437
-
8438
7308
  /**
8439
7309
  * Execution history item.
8440
7310
  * Represents a single execution triggered by a schedule.
@@ -8479,154 +7349,6 @@ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
8479
7349
  type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
8480
7350
  type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
8481
7351
 
8482
- /**
8483
- * Calibration Lab Type Definitions
8484
- * Core types for AI model configuration optimization with cost/performance comparison
8485
- */
8486
-
8487
- /**
8488
- * Calibration project - groups related optimization runs
8489
- * Provides organizational structure for iterative testing
8490
- */
8491
- interface CalibrationProject {
8492
- id: string;
8493
- organizationId: string;
8494
- resourceId: string;
8495
- resourceType: 'agent' | 'workflow';
8496
- name: string;
8497
- description?: string | null;
8498
- createdAt: Date;
8499
- updatedAt: Date;
8500
- }
8501
- /**
8502
- * Configuration variant for testing
8503
- * Defines what to override in the base agent/workflow definition
8504
- */
8505
- interface ConfigVariant {
8506
- variantName: string;
8507
- definitionOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
8508
- }
8509
- /**
8510
- * Agent definition overrides for calibration
8511
- * Excludes identity/metadata fields that should not be modified
8512
- */
8513
- type AgentCalibrationOverrides = Omit<Partial<AgentDefinition>, 'config' | 'contract' | 'tools' | 'metricsConfig' | 'interface'>;
8514
- /**
8515
- * Workflow definition overrides for calibration
8516
- * Excludes identity/metadata fields that should not be modified
8517
- */
8518
- type WorkflowCalibrationOverrides = Omit<Partial<WorkflowDefinition>, 'config' | 'contract' | 'steps' | 'entryPoint' | 'metricsConfig' | 'interface'>;
8519
- /**
8520
- * Grading rubric for LLM-as-judge evaluation
8521
- * Defines criteria and passing threshold
8522
- */
8523
- interface GradingRubric {
8524
- passingThreshold: number;
8525
- criteria: GradingCriterion[];
8526
- }
8527
- /**
8528
- * Individual grading criterion
8529
- * Weight should be 0-1, and all weights should sum to 1
8530
- */
8531
- interface GradingCriterion {
8532
- name: string;
8533
- weight: number;
8534
- description: string;
8535
- scoringGuide: string;
8536
- }
8537
- /**
8538
- * Grading result for a single execution or session
8539
- * Contains overall score and per-criterion breakdown
8540
- */
8541
- interface GradeResult {
8542
- score: number;
8543
- passed: boolean;
8544
- details: Record<string, {
8545
- score: number;
8546
- justification: string;
8547
- }>;
8548
- }
8549
- /**
8550
- * Single-turn calibration result
8551
- * One result per (variant × input) combination
8552
- */
8553
- interface SingleCalibrationResult {
8554
- executionId: string;
8555
- variantName: string;
8556
- inputIndex: number;
8557
- appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
8558
- status: 'pending' | 'running' | 'completed' | 'failed';
8559
- errorMessage?: string;
8560
- grade?: GradeResult;
8561
- gradeError?: string;
8562
- }
8563
- /**
8564
- * Multi-turn session calibration result
8565
- * Leverages existing sessions infrastructure
8566
- */
8567
- interface SessionCalibrationResult {
8568
- sessionId: string;
8569
- variantName: string;
8570
- appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
8571
- status: 'pending' | 'running' | 'completed' | 'failed';
8572
- errorMessage?: string;
8573
- turnCount: number;
8574
- grade?: GradeResult;
8575
- gradeError?: string;
8576
- }
8577
- /**
8578
- * Calibration run - individual test execution within a project
8579
- * Contains configuration, results, and grading information
8580
- */
8581
- interface CalibrationRun {
8582
- id: string;
8583
- organizationId: string;
8584
- projectId: string;
8585
- name: string;
8586
- description?: string | null;
8587
- executionMode: 'single' | 'session';
8588
- testInputs: unknown[];
8589
- configVariants: ConfigVariant[];
8590
- gradingRubric?: GradingRubric | null;
8591
- graderModel?: string | null;
8592
- results: (SingleCalibrationResult | SessionCalibrationResult)[];
8593
- status: 'pending' | 'running' | 'completed' | 'partial' | 'failed';
8594
- createdAt: Date;
8595
- completedAt?: Date | null;
8596
- }
8597
- /**
8598
- * Execution log subset for comparison view
8599
- * Contains essential data without full execution context
8600
- */
8601
- interface ExecutionLog {
8602
- executionId: string;
8603
- status: 'running' | 'completed' | 'failed';
8604
- input: unknown;
8605
- output: unknown | null;
8606
- error: CalibrationExecutionError | null;
8607
- startedAt: string;
8608
- completedAt: string | null;
8609
- }
8610
- /**
8611
- * Execution error information for calibration display
8612
- * Subset of full execution error for UI display purposes
8613
- * Named differently from ExecutionError class to avoid type conflicts
8614
- */
8615
- interface CalibrationExecutionError {
8616
- message: string;
8617
- category?: string;
8618
- type?: string;
8619
- }
8620
- /**
8621
- * Combined calibration run data for comparison view
8622
- * Single API call returns run + execution logs + metrics
8623
- */
8624
- interface CalibrationRunWithFullData {
8625
- run: CalibrationRun;
8626
- logs: Record<string, ExecutionLog>;
8627
- metrics: Record<string, ExecutionMetricsDetail>;
8628
- }
8629
-
8630
7352
  /**
8631
7353
  * Deployment types — browser-safe
8632
7354
  *
@@ -9516,17 +8238,6 @@ declare function createFeatureAccessHook({ useInitialization, useOrganization }:
9516
8238
  */
9517
8239
  declare const createUseFeatureAccess: typeof createFeatureAccessHook;
9518
8240
 
9519
- /**
9520
- * Authoritative source for feature-key aliases used in feature access resolution.
9521
- *
9522
- * These aliases map the legacy/UI-facing feature keys (e.g. "crm", "lead-gen",
9523
- * "projects") to their canonical organization-model keys ("acquisition", "delivery").
9524
- *
9525
- * Both `createFeatureAccessHook` and `ElevasisFeaturesProvider` import from here
9526
- * to ensure a single source of truth.
9527
- */
9528
- declare const FEATURE_KEY_ALIASES: Record<string, string>;
9529
-
9530
8241
  interface EventSourceMessage {
9531
8242
  id: string;
9532
8243
  event: string;
@@ -10197,110 +8908,6 @@ interface UseResourceExecutionsOptions {
10197
8908
  */
10198
8909
  declare function useResourceExecutions({ resourceId, timeRange, enabled }: UseResourceExecutionsOptions): _tanstack_react_query.UseQueryResult<ResourceExecutionsResponse, Error>;
10199
8910
 
10200
- /**
10201
- * Query key factory for calibration hooks.
10202
- * Ensures consistent, organization-scoped cache isolation.
10203
- */
10204
- declare const calibrationKeys: {
10205
- all: readonly ["calibration"];
10206
- projects: (org: string) => readonly ["calibration", "projects", string];
10207
- projectsByResource: (org: string, resourceId: string, resourceType: string) => readonly ["calibration", "projects", string, string, string];
10208
- project: (org: string, projectId: string) => readonly ["calibration", "project", string, string];
10209
- runs: (org: string, projectId: string) => readonly ["calibration", "runs", string, string];
10210
- run: (org: string, runId: string) => readonly ["calibration", "run", string, string];
10211
- runFull: (org: string, runId: string) => readonly ["calibration", "run-full", string, string];
10212
- };
10213
-
10214
- /**
10215
- * Fetch all calibration projects for the organization (unified view)
10216
- */
10217
- declare function useAllCalibrationProjects(): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
10218
- /**
10219
- * Fetch calibration projects for a specific resource
10220
- */
10221
- declare function useCalibrationProjects(resourceId: string, resourceType: 'agent' | 'workflow'): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
10222
- declare function useCalibrationProject(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationProject, Error>;
10223
- declare function useCreateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
10224
- resourceId: string;
10225
- resourceType: "agent" | "workflow";
10226
- name: string;
10227
- description?: string | undefined;
10228
- }, unknown>;
10229
- declare function useUpdateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
10230
- name?: string | undefined;
10231
- description?: string | undefined;
10232
- } & {
10233
- id: string;
10234
- }, unknown>;
10235
- declare function useDeleteProject$1(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
10236
-
10237
- declare function useCalibrationRuns(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationRun[], Error>;
10238
- declare function useCalibrationRun(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRun, Error>;
10239
- declare function useCreateRun(): _tanstack_react_query.UseMutationResult<CalibrationRun, Error, {
10240
- projectId: string;
10241
- name: string;
10242
- executionMode: "single" | "session";
10243
- testInputs: unknown[];
10244
- configVariants: {
10245
- variantName: string;
10246
- definitionOverrides?: Record<string, unknown> | undefined;
10247
- }[];
10248
- description?: string | undefined;
10249
- gradingRubric?: {
10250
- passingThreshold: number;
10251
- criteria: {
10252
- name: string;
10253
- weight: number;
10254
- description: string;
10255
- scoringGuide: string;
10256
- }[];
10257
- } | undefined;
10258
- graderModel?: "gpt-5" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "openrouter/z-ai/glm-5" | "mock" | undefined;
10259
- }, unknown>;
10260
- declare function useExecuteRun(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
10261
- declare function useDeleteRun(): _tanstack_react_query.UseMutationResult<void, Error, {
10262
- runId: string;
10263
- projectId: string;
10264
- }, unknown>;
10265
- declare function useGradeRun(): _tanstack_react_query.UseMutationResult<void, Error, {
10266
- runId: string;
10267
- rubric?: unknown;
10268
- graderModel?: string;
10269
- }, unknown>;
10270
-
10271
- declare function useCalibrationRunFull(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRunWithFullData, Error>;
10272
-
10273
- interface CalibrationProgress {
10274
- connected: boolean;
10275
- events: CalibrationSSEEvent[];
10276
- summary?: {
10277
- total: number;
10278
- completed: number;
10279
- failed: number;
10280
- };
10281
- isComplete: boolean;
10282
- error?: string;
10283
- }
10284
- interface UseCalibrationSSEOptions {
10285
- runId: string;
10286
- manager: SSEConnectionManagerLike;
10287
- apiUrl: string;
10288
- enabled?: boolean;
10289
- }
10290
- declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalibrationSSEOptions): {
10291
- disconnect: () => void;
10292
- reset: () => void;
10293
- connected: boolean;
10294
- events: CalibrationSSEEvent[];
10295
- summary?: {
10296
- total: number;
10297
- completed: number;
10298
- failed: number;
10299
- };
10300
- isComplete: boolean;
10301
- error?: string;
10302
- };
10303
-
10304
8911
  /**
10305
8912
  * Query keys for acquisition deals
10306
8913
  */
@@ -11719,5 +10326,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
11719
10326
  type?: string;
11720
10327
  }, "organization_id">, unknown>;
11721
10328
 
11722
- export { ApiKeyService, CredentialService, DeploymentService, FEATURE_KEY_ALIASES, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calibrationKeys, companyKeys, contactKeys, createFeatureAccessHook, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, isSessionCapable, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, useProject, useProjectNotes, useProjects, useReactivateMembership, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
11723
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
10329
+ export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, companyKeys, contactKeys, createFeatureAccessHook, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, isSessionCapable, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, useProject, useProjectNotes, useProjects, useReactivateMembership, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
10330
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };