@elevasis/ui 2.23.0 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/app/index.d.ts +2915 -0
  2. package/dist/app/index.js +5 -4
  3. package/dist/{chunk-7PGEGSUM.js → chunk-7D2HSSIW.js} +2 -2
  4. package/dist/{chunk-YU6MBDVO.js → chunk-ABV5LDDC.js} +4 -68
  5. package/dist/chunk-AZXSFDG2.js +474 -0
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-PXGSJNBH.js → chunk-HVC2BTFO.js} +783 -374
  8. package/dist/{chunk-3HEUGBOT.js → chunk-LK4MPIMK.js} +2 -2
  9. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  10. package/dist/{chunk-GUJUK6EH.js → chunk-QJLRDTYS.js} +198 -2
  11. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  12. package/dist/{chunk-FXWETLEB.js → chunk-V3UOW2HG.js} +1 -1
  13. package/dist/{chunk-N6WLOWOD.js → chunk-WSC5LU3U.js} +3 -12
  14. package/dist/{chunk-EPV7NU2E.js → chunk-WWVSPOJY.js} +385 -188
  15. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  16. package/dist/{chunk-PTUOINQ2.js → chunk-ZGZZIR6K.js} +3 -3
  17. package/dist/{chunk-D3KQAABP.js → chunk-ZMXZ476Y.js} +1 -1
  18. package/dist/components/index.d.ts +488 -452
  19. package/dist/components/index.js +127 -22
  20. package/dist/components/navigation/index.js +2 -2
  21. package/dist/features/auth/index.d.ts +463 -377
  22. package/dist/features/crm/index.d.ts +459 -379
  23. package/dist/features/crm/index.js +8 -8
  24. package/dist/features/dashboard/index.js +8 -8
  25. package/dist/features/delivery/index.d.ts +457 -371
  26. package/dist/features/delivery/index.js +8 -8
  27. package/dist/features/lead-gen/index.d.ts +225 -65
  28. package/dist/features/lead-gen/index.js +8 -8
  29. package/dist/features/monitoring/index.js +9 -9
  30. package/dist/features/monitoring/requests/index.js +7 -7
  31. package/dist/features/operations/index.js +10 -10
  32. package/dist/features/settings/index.d.ts +463 -377
  33. package/dist/features/settings/index.js +9 -9
  34. package/dist/hooks/delivery/index.d.ts +457 -371
  35. package/dist/hooks/index.d.ts +957 -718
  36. package/dist/hooks/index.js +7 -7
  37. package/dist/hooks/published.d.ts +957 -718
  38. package/dist/hooks/published.js +7 -7
  39. package/dist/index.d.ts +1327 -1020
  40. package/dist/index.js +8 -8
  41. package/dist/initialization/index.d.ts +463 -377
  42. package/dist/organization/index.d.ts +11 -1
  43. package/dist/organization/index.js +2 -2
  44. package/dist/profile/index.d.ts +463 -377
  45. package/dist/provider/index.d.ts +3132 -169
  46. package/dist/provider/index.js +6 -6
  47. package/dist/provider/published.d.ts +3098 -168
  48. package/dist/provider/published.js +3 -3
  49. package/dist/supabase/index.d.ts +559 -389
  50. package/dist/test-utils/index.d.ts +21 -1
  51. package/dist/test-utils/index.js +13 -4
  52. package/dist/theme/index.js +2 -2
  53. package/dist/types/index.d.ts +463 -377
  54. package/package.json +2 -2
  55. package/src/test-utils/README.md +2 -0
  56. package/dist/chunk-LVUCBY7X.js +0 -127
  57. /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import { ReactNode, MouseEvent, AnchorHTMLAttributes, ElementType, ComponentType
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
7
6
  import { z } from 'zod';
7
+ import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
8
8
  import { Node, Edge, NodeMouseHandler } from '@xyflow/react';
9
9
  import { IconBrain } from '@tabler/icons-react';
10
10
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
@@ -96,243 +96,6 @@ declare function NotificationProvider({ adapter, children }: {
96
96
  */
97
97
  declare function useNotificationAdapter(): NotificationAdapter;
98
98
 
99
- /** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
100
- type WithSchemes<T> = T & {
101
- light?: T;
102
- dark?: T;
103
- };
104
- /**
105
- * Theme token overrides. Each key maps 1:1 to a CSS variable.
106
- * All optional — defaults come from Elevasis design system.
107
- */
108
- interface ElevasisTokenOverrides {
109
- primary?: string;
110
- /** Text color that contrasts with `primary`. Defaults to '#fff'. */
111
- primaryContrast?: string;
112
- background?: string;
113
- surface?: string;
114
- surfaceHover?: string;
115
- /** Opaque surface for floating overlays (modals, menus, popovers) — guarantees readable contrast against decorative backgrounds. */
116
- elevatedSurface?: string;
117
- text?: string;
118
- textDimmed?: string;
119
- textSubtle?: string;
120
- border?: string;
121
- error?: string;
122
- warning?: string;
123
- success?: string;
124
- glassBackground?: string;
125
- glassBlur?: string;
126
- shadow?: string;
127
- cardShadow?: string;
128
- durationFast?: string;
129
- durationNormal?: string;
130
- easing?: string;
131
- /** Foreground text color for destructive/error buttons. Defaults to '#fff'. */
132
- destructiveFg?: string;
133
- /** Heading font family — used for titles, section headers. */
134
- fontHeading?: string;
135
- /** Body font family — used for general text. */
136
- fontSans?: string;
137
- }
138
- /**
139
- * Core theme config — Mantine-free.
140
- * Used by ElevasisCoreProvider and as the base for ElevasisThemeConfig.
141
- */
142
- interface ElevasisCoreThemeConfig {
143
- /** Color scheme: 'light', 'dark', or 'auto'. Defaults to 'dark'. */
144
- colorScheme?: 'light' | 'dark' | 'auto';
145
- /** Named preset — bundles light/dark token defaults. Defaults to 'default'. Accepts built-in PresetName or custom preset key. */
146
- preset?: PresetName | (string & {});
147
- /**
148
- * Semantic token overrides fed into CSS variables.
149
- * Flat values apply to both schemes. `light`/`dark` nested values win over flat.
150
- */
151
- tokens?: WithSchemes<ElevasisTokenOverrides>;
152
- /** Custom presets map — when provided, used instead of built-in presets. Typically `{ ...presets, ...customPresets }`. */
153
- presets?: Record<string, ThemePreset>;
154
- }
155
- /**
156
- * Auth configuration union.
157
- * 'authkit' (WorkOS AuthKit) is the supported mode.
158
- * 'apiKey' is defined for forward type compatibility but will throw at runtime.
159
- */
160
- type AuthConfig = AuthKitConfig | ApiKeyConfig;
161
- interface AuthKitConfig {
162
- mode: 'authkit';
163
- clientId: string;
164
- /** AuthKit API hostname. Defaults to 'api.workos.com'. */
165
- apiHostname?: string;
166
- /** Redirect URI after auth. */
167
- redirectUri?: string;
168
- /** Keep refresh tokens in localStorage. Defaults to false. */
169
- devMode?: boolean;
170
- }
171
- /** Deferred -- will throw at runtime. */
172
- interface ApiKeyConfig {
173
- mode: 'apiKey';
174
- key: string;
175
- }
176
- interface ElevasisCoreProviderProps {
177
- /** Auth configuration. Supports 'authkit' mode. */
178
- auth: AuthConfig;
179
- /**
180
- * Elevasis core theme configuration (Mantine-free).
181
- * Set `colorScheme` ('light', 'dark', 'auto') and override `tokens` (design tokens).
182
- * Defaults: colorScheme='dark', Elevasis design system tokens.
183
- */
184
- theme?: ElevasisCoreThemeConfig;
185
- /**
186
- * @deprecated Organization ID is now resolved automatically via OrganizationProvider.
187
- * This prop is accepted for backwards compatibility during migration but is no longer
188
- * used when the full provider stack is active (apiUrl provided).
189
- */
190
- organizationId?: string | null;
191
- /** Custom QueryClient. If omitted, a default is created internally. */
192
- queryClient?: QueryClient;
193
- /**
194
- * API base URL (e.g., 'https://api.elevasis.com' or 'http://localhost:5170').
195
- * When provided, ElevasisCoreProvider composes the full provider stack:
196
- * ApiClientProvider + ElevasisServiceProvider + ProfileProvider +
197
- * OrganizationProvider + NotificationProvider + InitializationProvider.
198
- * When omitted, no service context is provided (theme-only mode).
199
- */
200
- apiUrl?: string;
201
- /**
202
- * Error callback for API responses with status >= 500.
203
- * Only used when apiUrl is provided.
204
- */
205
- onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
206
- /**
207
- * @deprecated Organization readiness is now managed internally by OrganizationProvider.
208
- * Accepted for backwards compatibility but ignored when apiUrl is provided.
209
- */
210
- isOrganizationReady?: boolean;
211
- /**
212
- * Notification adapter for displaying success/error/info messages.
213
- * When provided, wraps the subtree in a NotificationProvider with this adapter.
214
- * When omitted, the console fallback adapter is used automatically.
215
- *
216
- * ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
217
- * Headless/SDK consumers can pass a custom adapter or omit for console output.
218
- */
219
- notifications?: NotificationAdapter;
220
- /**
221
- * Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
222
- * Set to `false` when the consumer has its own complete design system and only
223
- * needs auth + API from this provider. Defaults to `true`.
224
- */
225
- injectStyles?: boolean;
226
- children: ReactNode;
227
- }
228
- /**
229
- * Service context value exposed by ElevasisServiceProvider.
230
- * Provides a ready-to-use apiRequest function and organization state.
231
- *
232
- * For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
233
- * For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
234
- */
235
- interface ElevasisServiceContextValue {
236
- apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
237
- organizationId: string | null;
238
- isReady: boolean;
239
- }
240
- interface ElevasisServiceProviderProps {
241
- apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
242
- organizationId: string | null;
243
- isReady: boolean;
244
- children: ReactNode;
245
- }
246
-
247
- /** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
248
- interface FrameworkThemeOverrides {
249
- fontFamily?: string;
250
- defaultRadius?: string;
251
- headings?: {
252
- fontFamily?: string;
253
- fontWeight?: string;
254
- };
255
- components?: Record<string, unknown>;
256
- }
257
- /** Tokens every preset must define. `elevatedSurface` is progressively adopted and stays optional. */
258
- type PresetTokens = Required<Omit<ElevasisTokenOverrides, 'elevatedSurface'>> & Pick<ElevasisTokenOverrides, 'elevatedSurface'>;
259
- interface ThemePreset {
260
- light: PresetTokens;
261
- dark: PresetTokens;
262
- /** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
263
- framework?: FrameworkThemeOverrides;
264
- /**
265
- * Subtitle font family — used for card names, section labels, and nav items.
266
- * Sits between heading and body in the typographic hierarchy.
267
- */
268
- subtitleFontFamily?: string;
269
- /** Google Fonts URLs to load when this preset is active. */
270
- fontImports?: string[];
271
- /** Display label for settings UI (e.g. "Tactical"). Built-in presets define this; custom presets must provide it. */
272
- label?: string;
273
- /** Short description for settings UI (e.g. "Tactical command center aesthetic"). */
274
- description?: string;
275
- /** Three representative hex colors for swatch display: [primary, dark-bg, light-bg]. */
276
- colors?: [string, string, string];
277
- /**
278
- * Background layers rendered behind app content when this preset is active.
279
- * Overridden by `theme.background` on the provider if both are set.
280
- */
281
- background?: ReactNode;
282
- /**
283
- * Loader element used in loading states when this preset is active.
284
- * Overridden by `theme.loader` on the provider if both are set.
285
- */
286
- loader?: ReactNode;
287
- }
288
- type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
289
-
290
- /** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
291
- type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
292
- /**
293
- * Generate a 10-shade Mantine color tuple from a single hex color.
294
- * Input color maps to shade 6 (Mantine's default primary shade).
295
- * Shades 0-5 are progressively lighter, 7-9 are progressively darker.
296
- */
297
- declare function generateShades(hex: string): ColorShadesTuple;
298
-
299
- declare const PRESETS: Record<PresetName, ThemePreset>;
300
-
301
- /** Look up a preset by name. Falls back to default preset for unknown names. */
302
- declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
303
-
304
- /** Token key → CSS variable name. Single source of truth for the mapping. */
305
- declare const TOKEN_VAR_MAP: Record<keyof ElevasisTokenOverrides, string>;
306
- /**
307
- * Creates a CSS variables resolver from theme config.
308
- *
309
- * Merge order per scheme: PRESET_DEFAULTS → flat overrides → scheme-specific overrides
310
- */
311
- declare function createCssVariablesResolver(tokens?: ElevasisCoreThemeConfig['tokens'], preset?: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): CSSVariablesResolver;
312
-
313
- declare const mantineThemeOverride: MantineThemeOverride;
314
-
315
- declare const componentThemes: MantineThemeOverride['components'];
316
-
317
- declare const PresetsProvider: react.Provider<Record<string, ThemePreset>>;
318
- declare function usePresetsContext(): Record<string, ThemePreset>;
319
-
320
- /** Preset entry with display metadata for settings UI. */
321
- interface PresetEntry {
322
- /** Preset key (e.g. 'tactical', 'my-custom-brand'). */
323
- value: string;
324
- /** Display label (e.g. 'Tactical'). Falls back to titlecased key. */
325
- label: string;
326
- /** Short description. Falls back to empty string. */
327
- description: string;
328
- /** Three representative hex colors for swatch: [primary, dark-bg, light-bg]. Falls back to preset's dark/light primary + backgrounds. */
329
- colors: [string, string, string];
330
- /** True for presets not in the built-in PresetName union. */
331
- isCustom: boolean;
332
- }
333
- /** Returns all available presets as UI-ready entries. */
334
- declare function useAvailablePresets(): PresetEntry[];
335
-
336
99
  /**
337
100
  * Debounce utility for delaying function execution
338
101
  *
@@ -907,10 +670,57 @@ type Json = string | number | boolean | null | {
907
670
  } | Json[];
908
671
  type Database = {
909
672
  __InternalSupabase: {
910
- PostgrestVersion: "12.2.3 (519615d)";
673
+ PostgrestVersion: '12.2.3 (519615d)';
911
674
  };
912
675
  public: {
913
676
  Tables: {
677
+ acq_artifacts: {
678
+ Row: {
679
+ content: Json;
680
+ created_at: string;
681
+ created_by: string | null;
682
+ id: string;
683
+ kind: string;
684
+ organization_id: string;
685
+ owner_id: string;
686
+ owner_kind: string;
687
+ source_execution_id: string | null;
688
+ version: number;
689
+ };
690
+ Insert: {
691
+ content: Json;
692
+ created_at?: string;
693
+ created_by?: string | null;
694
+ id?: string;
695
+ kind: string;
696
+ organization_id: string;
697
+ owner_id: string;
698
+ owner_kind: string;
699
+ source_execution_id?: string | null;
700
+ version?: number;
701
+ };
702
+ Update: {
703
+ content?: Json;
704
+ created_at?: string;
705
+ created_by?: string | null;
706
+ id?: string;
707
+ kind?: string;
708
+ organization_id?: string;
709
+ owner_id?: string;
710
+ owner_kind?: string;
711
+ source_execution_id?: string | null;
712
+ version?: number;
713
+ };
714
+ Relationships: [
715
+ {
716
+ foreignKeyName: 'acq_artifacts_organization_id_fkey';
717
+ columns: ['organization_id'];
718
+ isOneToOne: false;
719
+ referencedRelation: 'organizations';
720
+ referencedColumns: ['id'];
721
+ }
722
+ ];
723
+ };
914
724
  acq_companies: {
915
725
  Row: {
916
726
  batch_id: string | null;
@@ -929,6 +739,9 @@ type Database = {
929
739
  num_employees: number | null;
930
740
  organization_id: string;
931
741
  pipeline_status: Json;
742
+ qualification_rubric_key: string | null;
743
+ qualification_score: number | null;
744
+ qualification_signals: Json | null;
932
745
  segment: string | null;
933
746
  source: string | null;
934
747
  status: string;
@@ -952,6 +765,9 @@ type Database = {
952
765
  num_employees?: number | null;
953
766
  organization_id: string;
954
767
  pipeline_status?: Json;
768
+ qualification_rubric_key?: string | null;
769
+ qualification_score?: number | null;
770
+ qualification_signals?: Json | null;
955
771
  segment?: string | null;
956
772
  source?: string | null;
957
773
  status?: string;
@@ -975,6 +791,9 @@ type Database = {
975
791
  num_employees?: number | null;
976
792
  organization_id?: string;
977
793
  pipeline_status?: Json;
794
+ qualification_rubric_key?: string | null;
795
+ qualification_score?: number | null;
796
+ qualification_signals?: Json | null;
978
797
  segment?: string | null;
979
798
  source?: string | null;
980
799
  status?: string;
@@ -983,11 +802,11 @@ type Database = {
983
802
  };
984
803
  Relationships: [
985
804
  {
986
- foreignKeyName: "acq_companies_organization_id_fkey";
987
- columns: ["organization_id"];
805
+ foreignKeyName: 'acq_companies_organization_id_fkey';
806
+ columns: ['organization_id'];
988
807
  isOneToOne: false;
989
- referencedRelation: "organizations";
990
- referencedColumns: ["id"];
808
+ referencedRelation: 'organizations';
809
+ referencedColumns: ['id'];
991
810
  }
992
811
  ];
993
812
  };
@@ -1011,6 +830,9 @@ type Database = {
1011
830
  opening_line: string | null;
1012
831
  organization_id: string;
1013
832
  pipeline_status: Json;
833
+ qualification_rubric_key: string | null;
834
+ qualification_score: number | null;
835
+ qualification_signals: Json | null;
1014
836
  source: string | null;
1015
837
  source_id: string | null;
1016
838
  status: string;
@@ -1036,6 +858,9 @@ type Database = {
1036
858
  opening_line?: string | null;
1037
859
  organization_id: string;
1038
860
  pipeline_status?: Json;
861
+ qualification_rubric_key?: string | null;
862
+ qualification_score?: number | null;
863
+ qualification_signals?: Json | null;
1039
864
  source?: string | null;
1040
865
  source_id?: string | null;
1041
866
  status?: string;
@@ -1061,6 +886,9 @@ type Database = {
1061
886
  opening_line?: string | null;
1062
887
  organization_id?: string;
1063
888
  pipeline_status?: Json;
889
+ qualification_rubric_key?: string | null;
890
+ qualification_score?: number | null;
891
+ qualification_signals?: Json | null;
1064
892
  source?: string | null;
1065
893
  source_id?: string | null;
1066
894
  status?: string;
@@ -1069,18 +897,18 @@ type Database = {
1069
897
  };
1070
898
  Relationships: [
1071
899
  {
1072
- foreignKeyName: "acq_contacts_company_id_fkey";
1073
- columns: ["company_id"];
900
+ foreignKeyName: 'acq_contacts_company_id_fkey';
901
+ columns: ['company_id'];
1074
902
  isOneToOne: false;
1075
- referencedRelation: "acq_companies";
1076
- referencedColumns: ["id"];
903
+ referencedRelation: 'acq_companies';
904
+ referencedColumns: ['id'];
1077
905
  },
1078
906
  {
1079
- foreignKeyName: "acq_contacts_organization_id_fkey";
1080
- columns: ["organization_id"];
907
+ foreignKeyName: 'acq_contacts_organization_id_fkey';
908
+ columns: ['organization_id'];
1081
909
  isOneToOne: false;
1082
- referencedRelation: "organizations";
1083
- referencedColumns: ["id"];
910
+ referencedRelation: 'organizations';
911
+ referencedColumns: ['id'];
1084
912
  }
1085
913
  ];
1086
914
  };
@@ -1117,11 +945,11 @@ type Database = {
1117
945
  };
1118
946
  Relationships: [
1119
947
  {
1120
- foreignKeyName: "acq_content_organization_id_fkey";
1121
- columns: ["organization_id"];
948
+ foreignKeyName: 'acq_content_organization_id_fkey';
949
+ columns: ['organization_id'];
1122
950
  isOneToOne: false;
1123
- referencedRelation: "organizations";
1124
- referencedColumns: ["id"];
951
+ referencedRelation: 'organizations';
952
+ referencedColumns: ['id'];
1125
953
  }
1126
954
  ];
1127
955
  };
@@ -1185,18 +1013,18 @@ type Database = {
1185
1013
  };
1186
1014
  Relationships: [
1187
1015
  {
1188
- foreignKeyName: "acq_content_distributions_content_id_fkey";
1189
- columns: ["content_id"];
1016
+ foreignKeyName: 'acq_content_distributions_content_id_fkey';
1017
+ columns: ['content_id'];
1190
1018
  isOneToOne: false;
1191
- referencedRelation: "acq_content";
1192
- referencedColumns: ["id"];
1019
+ referencedRelation: 'acq_content';
1020
+ referencedColumns: ['id'];
1193
1021
  },
1194
1022
  {
1195
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
1196
- columns: ["organization_id"];
1023
+ foreignKeyName: 'acq_content_distributions_organization_id_fkey';
1024
+ columns: ['organization_id'];
1197
1025
  isOneToOne: false;
1198
- referencedRelation: "organizations";
1199
- referencedColumns: ["id"];
1026
+ referencedRelation: 'organizations';
1027
+ referencedColumns: ['id'];
1200
1028
  }
1201
1029
  ];
1202
1030
  };
@@ -1230,18 +1058,18 @@ type Database = {
1230
1058
  };
1231
1059
  Relationships: [
1232
1060
  {
1233
- foreignKeyName: "acq_deal_notes_deal_id_fkey";
1234
- columns: ["deal_id"];
1061
+ foreignKeyName: 'acq_deal_notes_deal_id_fkey';
1062
+ columns: ['deal_id'];
1235
1063
  isOneToOne: false;
1236
- referencedRelation: "acq_deals";
1237
- referencedColumns: ["id"];
1064
+ referencedRelation: 'acq_deals';
1065
+ referencedColumns: ['id'];
1238
1066
  },
1239
1067
  {
1240
- foreignKeyName: "acq_deal_notes_organization_id_fkey";
1241
- columns: ["organization_id"];
1068
+ foreignKeyName: 'acq_deal_notes_organization_id_fkey';
1069
+ columns: ['organization_id'];
1242
1070
  isOneToOne: false;
1243
- referencedRelation: "organizations";
1244
- referencedColumns: ["id"];
1071
+ referencedRelation: 'organizations';
1072
+ referencedColumns: ['id'];
1245
1073
  }
1246
1074
  ];
1247
1075
  };
@@ -1293,18 +1121,18 @@ type Database = {
1293
1121
  };
1294
1122
  Relationships: [
1295
1123
  {
1296
- foreignKeyName: "acq_deal_tasks_deal_id_fkey";
1297
- columns: ["deal_id"];
1124
+ foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
1125
+ columns: ['deal_id'];
1298
1126
  isOneToOne: false;
1299
- referencedRelation: "acq_deals";
1300
- referencedColumns: ["id"];
1127
+ referencedRelation: 'acq_deals';
1128
+ referencedColumns: ['id'];
1301
1129
  },
1302
1130
  {
1303
- foreignKeyName: "acq_deal_tasks_organization_id_fkey";
1304
- columns: ["organization_id"];
1131
+ foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
1132
+ columns: ['organization_id'];
1305
1133
  isOneToOne: false;
1306
- referencedRelation: "organizations";
1307
- referencedColumns: ["id"];
1134
+ referencedRelation: 'organizations';
1135
+ referencedColumns: ['id'];
1308
1136
  }
1309
1137
  ];
1310
1138
  };
@@ -1416,86 +1244,95 @@ type Database = {
1416
1244
  };
1417
1245
  Relationships: [
1418
1246
  {
1419
- foreignKeyName: "acq_deals_contact_id_fkey";
1420
- columns: ["contact_id"];
1247
+ foreignKeyName: 'acq_deals_contact_id_fkey';
1248
+ columns: ['contact_id'];
1421
1249
  isOneToOne: false;
1422
- referencedRelation: "acq_contacts";
1423
- referencedColumns: ["id"];
1250
+ referencedRelation: 'acq_contacts';
1251
+ referencedColumns: ['id'];
1424
1252
  },
1425
1253
  {
1426
- foreignKeyName: "acq_deals_organization_id_fkey";
1427
- columns: ["organization_id"];
1254
+ foreignKeyName: 'acq_deals_organization_id_fkey';
1255
+ columns: ['organization_id'];
1428
1256
  isOneToOne: false;
1429
- referencedRelation: "organizations";
1430
- referencedColumns: ["id"];
1257
+ referencedRelation: 'organizations';
1258
+ referencedColumns: ['id'];
1431
1259
  },
1432
1260
  {
1433
- foreignKeyName: "acq_deals_source_list_id_fkey";
1434
- columns: ["source_list_id"];
1261
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
1262
+ columns: ['source_list_id'];
1435
1263
  isOneToOne: false;
1436
- referencedRelation: "acq_lists";
1437
- referencedColumns: ["id"];
1264
+ referencedRelation: 'acq_lists';
1265
+ referencedColumns: ['id'];
1438
1266
  }
1439
1267
  ];
1440
1268
  };
1441
1269
  acq_list_companies: {
1442
1270
  Row: {
1271
+ activity_log: Json;
1443
1272
  added_at: string;
1444
1273
  added_by: string | null;
1445
1274
  company_id: string;
1446
1275
  id: string;
1447
1276
  list_id: string;
1277
+ pipeline_key: string;
1278
+ processing_state: Json;
1448
1279
  source_execution_id: string | null;
1449
1280
  source_input_hash: string | null;
1450
1281
  source_resource_id: string | null;
1451
- stage: string | null;
1452
- stage_updated_at: string | null;
1282
+ stage_key: string;
1283
+ state_key: string;
1453
1284
  };
1454
1285
  Insert: {
1286
+ activity_log?: Json;
1455
1287
  added_at?: string;
1456
1288
  added_by?: string | null;
1457
1289
  company_id: string;
1458
1290
  id?: string;
1459
1291
  list_id: string;
1292
+ pipeline_key?: string;
1293
+ processing_state?: Json;
1460
1294
  source_execution_id?: string | null;
1461
1295
  source_input_hash?: string | null;
1462
1296
  source_resource_id?: string | null;
1463
- stage?: string | null;
1464
- stage_updated_at?: string | null;
1297
+ stage_key: string;
1298
+ state_key: string;
1465
1299
  };
1466
1300
  Update: {
1301
+ activity_log?: Json;
1467
1302
  added_at?: string;
1468
1303
  added_by?: string | null;
1469
1304
  company_id?: string;
1470
1305
  id?: string;
1471
1306
  list_id?: string;
1307
+ pipeline_key?: string;
1308
+ processing_state?: Json;
1472
1309
  source_execution_id?: string | null;
1473
1310
  source_input_hash?: string | null;
1474
1311
  source_resource_id?: string | null;
1475
- stage?: string | null;
1476
- stage_updated_at?: string | null;
1312
+ stage_key?: string;
1313
+ state_key?: string;
1477
1314
  };
1478
1315
  Relationships: [
1479
1316
  {
1480
- foreignKeyName: "acq_list_companies_company_id_fkey";
1481
- columns: ["company_id"];
1317
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
1318
+ columns: ['company_id'];
1482
1319
  isOneToOne: false;
1483
- referencedRelation: "acq_companies";
1484
- referencedColumns: ["id"];
1320
+ referencedRelation: 'acq_companies';
1321
+ referencedColumns: ['id'];
1485
1322
  },
1486
1323
  {
1487
- foreignKeyName: "acq_list_companies_list_id_fkey";
1488
- columns: ["list_id"];
1324
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
1325
+ columns: ['list_id'];
1489
1326
  isOneToOne: false;
1490
- referencedRelation: "acq_lists";
1491
- referencedColumns: ["id"];
1327
+ referencedRelation: 'acq_lists';
1328
+ referencedColumns: ['id'];
1492
1329
  },
1493
1330
  {
1494
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
1495
- columns: ["source_execution_id"];
1331
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
1332
+ columns: ['source_execution_id'];
1496
1333
  isOneToOne: false;
1497
- referencedRelation: "execution_logs";
1498
- referencedColumns: ["execution_id"];
1334
+ referencedRelation: 'execution_logs';
1335
+ referencedColumns: ['execution_id'];
1499
1336
  }
1500
1337
  ];
1501
1338
  };
@@ -1523,79 +1360,88 @@ type Database = {
1523
1360
  };
1524
1361
  Relationships: [
1525
1362
  {
1526
- foreignKeyName: "acq_list_executions_execution_id_fkey";
1527
- columns: ["execution_id"];
1363
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
1364
+ columns: ['execution_id'];
1528
1365
  isOneToOne: false;
1529
- referencedRelation: "execution_logs";
1530
- referencedColumns: ["execution_id"];
1366
+ referencedRelation: 'execution_logs';
1367
+ referencedColumns: ['execution_id'];
1531
1368
  },
1532
1369
  {
1533
- foreignKeyName: "acq_list_executions_list_id_fkey";
1534
- columns: ["list_id"];
1370
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
1371
+ columns: ['list_id'];
1535
1372
  isOneToOne: false;
1536
- referencedRelation: "acq_lists";
1537
- referencedColumns: ["id"];
1373
+ referencedRelation: 'acq_lists';
1374
+ referencedColumns: ['id'];
1538
1375
  }
1539
1376
  ];
1540
1377
  };
1541
1378
  acq_list_members: {
1542
1379
  Row: {
1380
+ activity_log: Json;
1543
1381
  added_at: string;
1544
1382
  added_by: string | null;
1545
1383
  contact_id: string;
1546
1384
  id: string;
1547
1385
  list_id: string;
1386
+ pipeline_key: string;
1387
+ processing_state: Json;
1548
1388
  source_execution_id: string | null;
1549
1389
  source_input_hash: string | null;
1550
1390
  source_resource_id: string | null;
1551
- stage: string | null;
1552
- stage_updated_at: string | null;
1391
+ stage_key: string;
1392
+ state_key: string;
1553
1393
  };
1554
1394
  Insert: {
1395
+ activity_log?: Json;
1555
1396
  added_at?: string;
1556
1397
  added_by?: string | null;
1557
1398
  contact_id: string;
1558
1399
  id?: string;
1559
1400
  list_id: string;
1401
+ pipeline_key?: string;
1402
+ processing_state?: Json;
1560
1403
  source_execution_id?: string | null;
1561
1404
  source_input_hash?: string | null;
1562
1405
  source_resource_id?: string | null;
1563
- stage?: string | null;
1564
- stage_updated_at?: string | null;
1406
+ stage_key: string;
1407
+ state_key: string;
1565
1408
  };
1566
1409
  Update: {
1410
+ activity_log?: Json;
1567
1411
  added_at?: string;
1568
1412
  added_by?: string | null;
1569
1413
  contact_id?: string;
1570
1414
  id?: string;
1571
1415
  list_id?: string;
1416
+ pipeline_key?: string;
1417
+ processing_state?: Json;
1572
1418
  source_execution_id?: string | null;
1573
1419
  source_input_hash?: string | null;
1574
1420
  source_resource_id?: string | null;
1575
- stage?: string | null;
1576
- stage_updated_at?: string | null;
1421
+ stage_key?: string;
1422
+ state_key?: string;
1577
1423
  };
1578
1424
  Relationships: [
1579
1425
  {
1580
- foreignKeyName: "acq_list_members_contact_id_fkey";
1581
- columns: ["contact_id"];
1426
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
1427
+ columns: ['contact_id'];
1582
1428
  isOneToOne: false;
1583
- referencedRelation: "acq_contacts";
1584
- referencedColumns: ["id"];
1429
+ referencedRelation: 'acq_contacts';
1430
+ referencedColumns: ['id'];
1585
1431
  },
1586
1432
  {
1587
- foreignKeyName: "acq_list_members_list_id_fkey";
1588
- columns: ["list_id"];
1433
+ foreignKeyName: 'acq_list_members_list_id_fkey';
1434
+ columns: ['list_id'];
1589
1435
  isOneToOne: false;
1590
- referencedRelation: "acq_lists";
1591
- referencedColumns: ["id"];
1436
+ referencedRelation: 'acq_lists';
1437
+ referencedColumns: ['id'];
1592
1438
  },
1593
1439
  {
1594
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
1595
- columns: ["source_execution_id"];
1440
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
1441
+ columns: ['source_execution_id'];
1596
1442
  isOneToOne: false;
1597
- referencedRelation: "execution_logs";
1598
- referencedColumns: ["execution_id"];
1443
+ referencedRelation: 'execution_logs';
1444
+ referencedColumns: ['execution_id'];
1599
1445
  }
1600
1446
  ];
1601
1447
  };
@@ -1603,55 +1449,58 @@ type Database = {
1603
1449
  Row: {
1604
1450
  batch_ids: string[];
1605
1451
  completed_at: string | null;
1606
- config: Json;
1607
1452
  created_at: string;
1608
1453
  description: string | null;
1454
+ icp: Json;
1609
1455
  id: string;
1610
1456
  instantly_campaign_id: string | null;
1611
1457
  launched_at: string | null;
1612
1458
  metadata: Json;
1613
1459
  name: string;
1614
1460
  organization_id: string;
1461
+ pipeline_config: Json;
1462
+ scraping_config: Json;
1615
1463
  status: string;
1616
- type: string;
1617
1464
  };
1618
1465
  Insert: {
1619
1466
  batch_ids?: string[];
1620
1467
  completed_at?: string | null;
1621
- config?: Json;
1622
1468
  created_at?: string;
1623
1469
  description?: string | null;
1470
+ icp?: Json;
1624
1471
  id?: string;
1625
1472
  instantly_campaign_id?: string | null;
1626
1473
  launched_at?: string | null;
1627
1474
  metadata?: Json;
1628
1475
  name: string;
1629
1476
  organization_id: string;
1477
+ pipeline_config?: Json;
1478
+ scraping_config?: Json;
1630
1479
  status?: string;
1631
- type?: string;
1632
1480
  };
1633
1481
  Update: {
1634
1482
  batch_ids?: string[];
1635
1483
  completed_at?: string | null;
1636
- config?: Json;
1637
1484
  created_at?: string;
1638
1485
  description?: string | null;
1486
+ icp?: Json;
1639
1487
  id?: string;
1640
1488
  instantly_campaign_id?: string | null;
1641
1489
  launched_at?: string | null;
1642
1490
  metadata?: Json;
1643
1491
  name?: string;
1644
1492
  organization_id?: string;
1493
+ pipeline_config?: Json;
1494
+ scraping_config?: Json;
1645
1495
  status?: string;
1646
- type?: string;
1647
1496
  };
1648
1497
  Relationships: [
1649
1498
  {
1650
- foreignKeyName: "acq_lists_organization_id_fkey";
1651
- columns: ["organization_id"];
1499
+ foreignKeyName: 'acq_lists_organization_id_fkey';
1500
+ columns: ['organization_id'];
1652
1501
  isOneToOne: false;
1653
- referencedRelation: "organizations";
1654
- referencedColumns: ["id"];
1502
+ referencedRelation: 'organizations';
1503
+ referencedColumns: ['id'];
1655
1504
  }
1656
1505
  ];
1657
1506
  };
@@ -1727,18 +1576,18 @@ type Database = {
1727
1576
  };
1728
1577
  Relationships: [
1729
1578
  {
1730
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
1731
- columns: ["organization_id"];
1579
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
1580
+ columns: ['organization_id'];
1732
1581
  isOneToOne: false;
1733
- referencedRelation: "organizations";
1734
- referencedColumns: ["id"];
1582
+ referencedRelation: 'organizations';
1583
+ referencedColumns: ['id'];
1735
1584
  },
1736
1585
  {
1737
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
1738
- columns: ["seo_page_id"];
1586
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
1587
+ columns: ['seo_page_id'];
1739
1588
  isOneToOne: false;
1740
- referencedRelation: "acq_seo_pages";
1741
- referencedColumns: ["id"];
1589
+ referencedRelation: 'acq_seo_pages';
1590
+ referencedColumns: ['id'];
1742
1591
  }
1743
1592
  ];
1744
1593
  };
@@ -1814,11 +1663,11 @@ type Database = {
1814
1663
  };
1815
1664
  Relationships: [
1816
1665
  {
1817
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
1818
- columns: ["organization_id"];
1666
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1667
+ columns: ['organization_id'];
1819
1668
  isOneToOne: false;
1820
- referencedRelation: "organizations";
1821
- referencedColumns: ["id"];
1669
+ referencedRelation: 'organizations';
1670
+ referencedColumns: ['id'];
1822
1671
  }
1823
1672
  ];
1824
1673
  };
@@ -1915,11 +1764,11 @@ type Database = {
1915
1764
  };
1916
1765
  Relationships: [
1917
1766
  {
1918
- foreignKeyName: "acq_social_posts_organization_id_fkey";
1919
- columns: ["organization_id"];
1767
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1768
+ columns: ['organization_id'];
1920
1769
  isOneToOne: false;
1921
- referencedRelation: "organizations";
1922
- referencedColumns: ["id"];
1770
+ referencedRelation: 'organizations';
1771
+ referencedColumns: ['id'];
1923
1772
  }
1924
1773
  ];
1925
1774
  };
@@ -1974,11 +1823,11 @@ type Database = {
1974
1823
  };
1975
1824
  Relationships: [
1976
1825
  {
1977
- foreignKeyName: "activities_organization_id_fkey";
1978
- columns: ["organization_id"];
1826
+ foreignKeyName: 'activities_organization_id_fkey';
1827
+ columns: ['organization_id'];
1979
1828
  isOneToOne: false;
1980
- referencedRelation: "organizations";
1981
- referencedColumns: ["id"];
1829
+ referencedRelation: 'organizations';
1830
+ referencedColumns: ['id'];
1982
1831
  }
1983
1832
  ];
1984
1833
  };
@@ -2009,11 +1858,11 @@ type Database = {
2009
1858
  };
2010
1859
  Relationships: [
2011
1860
  {
2012
- foreignKeyName: "api_keys_organization_id_fkey";
2013
- columns: ["organization_id"];
1861
+ foreignKeyName: 'api_keys_organization_id_fkey';
1862
+ columns: ['organization_id'];
2014
1863
  isOneToOne: false;
2015
- referencedRelation: "organizations";
2016
- referencedColumns: ["id"];
1864
+ referencedRelation: 'organizations';
1865
+ referencedColumns: ['id'];
2017
1866
  }
2018
1867
  ];
2019
1868
  };
@@ -2092,25 +1941,25 @@ type Database = {
2092
1941
  };
2093
1942
  Relationships: [
2094
1943
  {
2095
- foreignKeyName: "command_queue_completed_by_fkey";
2096
- columns: ["completed_by"];
1944
+ foreignKeyName: 'command_queue_completed_by_fkey';
1945
+ columns: ['completed_by'];
2097
1946
  isOneToOne: false;
2098
- referencedRelation: "users";
2099
- referencedColumns: ["id"];
1947
+ referencedRelation: 'users';
1948
+ referencedColumns: ['id'];
2100
1949
  },
2101
1950
  {
2102
- foreignKeyName: "command_queue_organization_id_fkey";
2103
- columns: ["organization_id"];
1951
+ foreignKeyName: 'command_queue_organization_id_fkey';
1952
+ columns: ['organization_id'];
2104
1953
  isOneToOne: false;
2105
- referencedRelation: "organizations";
2106
- referencedColumns: ["id"];
1954
+ referencedRelation: 'organizations';
1955
+ referencedColumns: ['id'];
2107
1956
  },
2108
1957
  {
2109
- foreignKeyName: "command_queue_target_execution_id_fkey";
2110
- columns: ["target_execution_id"];
1958
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1959
+ columns: ['target_execution_id'];
2111
1960
  isOneToOne: false;
2112
- referencedRelation: "execution_logs";
2113
- referencedColumns: ["execution_id"];
1961
+ referencedRelation: 'execution_logs';
1962
+ referencedColumns: ['execution_id'];
2114
1963
  }
2115
1964
  ];
2116
1965
  };
@@ -2150,18 +1999,18 @@ type Database = {
2150
1999
  };
2151
2000
  Relationships: [
2152
2001
  {
2153
- foreignKeyName: "credentials_created_by_fkey";
2154
- columns: ["created_by"];
2002
+ foreignKeyName: 'credentials_created_by_fkey';
2003
+ columns: ['created_by'];
2155
2004
  isOneToOne: false;
2156
- referencedRelation: "users";
2157
- referencedColumns: ["id"];
2005
+ referencedRelation: 'users';
2006
+ referencedColumns: ['id'];
2158
2007
  },
2159
2008
  {
2160
- foreignKeyName: "credentials_organization_id_fkey";
2161
- columns: ["organization_id"];
2009
+ foreignKeyName: 'credentials_organization_id_fkey';
2010
+ columns: ['organization_id'];
2162
2011
  isOneToOne: false;
2163
- referencedRelation: "organizations";
2164
- referencedColumns: ["id"];
2012
+ referencedRelation: 'organizations';
2013
+ referencedColumns: ['id'];
2165
2014
  }
2166
2015
  ];
2167
2016
  };
@@ -2207,11 +2056,11 @@ type Database = {
2207
2056
  };
2208
2057
  Relationships: [
2209
2058
  {
2210
- foreignKeyName: "deployments_organization_id_fkey";
2211
- columns: ["organization_id"];
2059
+ foreignKeyName: 'deployments_organization_id_fkey';
2060
+ columns: ['organization_id'];
2212
2061
  isOneToOne: false;
2213
- referencedRelation: "organizations";
2214
- referencedColumns: ["id"];
2062
+ referencedRelation: 'organizations';
2063
+ referencedColumns: ['id'];
2215
2064
  }
2216
2065
  ];
2217
2066
  };
@@ -2266,25 +2115,25 @@ type Database = {
2266
2115
  };
2267
2116
  Relationships: [
2268
2117
  {
2269
- foreignKeyName: "execution_errors_execution_id_fkey";
2270
- columns: ["execution_id"];
2118
+ foreignKeyName: 'execution_errors_execution_id_fkey';
2119
+ columns: ['execution_id'];
2271
2120
  isOneToOne: false;
2272
- referencedRelation: "execution_logs";
2273
- referencedColumns: ["execution_id"];
2121
+ referencedRelation: 'execution_logs';
2122
+ referencedColumns: ['execution_id'];
2274
2123
  },
2275
2124
  {
2276
- foreignKeyName: "execution_errors_organization_id_fkey";
2277
- columns: ["organization_id"];
2125
+ foreignKeyName: 'execution_errors_organization_id_fkey';
2126
+ columns: ['organization_id'];
2278
2127
  isOneToOne: false;
2279
- referencedRelation: "organizations";
2280
- referencedColumns: ["id"];
2128
+ referencedRelation: 'organizations';
2129
+ referencedColumns: ['id'];
2281
2130
  },
2282
2131
  {
2283
- foreignKeyName: "execution_errors_resolved_by_fkey";
2284
- columns: ["resolved_by"];
2132
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
2133
+ columns: ['resolved_by'];
2285
2134
  isOneToOne: false;
2286
- referencedRelation: "users";
2287
- referencedColumns: ["id"];
2135
+ referencedRelation: 'users';
2136
+ referencedColumns: ['id'];
2288
2137
  }
2289
2138
  ];
2290
2139
  };
@@ -2366,32 +2215,32 @@ type Database = {
2366
2215
  };
2367
2216
  Relationships: [
2368
2217
  {
2369
- foreignKeyName: "execution_history_organization_id_fkey";
2370
- columns: ["organization_id"];
2218
+ foreignKeyName: 'execution_history_organization_id_fkey';
2219
+ columns: ['organization_id'];
2371
2220
  isOneToOne: false;
2372
- referencedRelation: "organizations";
2373
- referencedColumns: ["id"];
2221
+ referencedRelation: 'organizations';
2222
+ referencedColumns: ['id'];
2374
2223
  },
2375
2224
  {
2376
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
2377
- columns: ["origin_execution_id"];
2225
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2226
+ columns: ['origin_execution_id'];
2378
2227
  isOneToOne: false;
2379
- referencedRelation: "execution_logs";
2380
- referencedColumns: ["execution_id"];
2228
+ referencedRelation: 'execution_logs';
2229
+ referencedColumns: ['execution_id'];
2381
2230
  },
2382
2231
  {
2383
- foreignKeyName: "execution_logs_session_id_fkey";
2384
- columns: ["session_id"];
2232
+ foreignKeyName: 'execution_logs_session_id_fkey';
2233
+ columns: ['session_id'];
2385
2234
  isOneToOne: false;
2386
- referencedRelation: "sessions";
2387
- referencedColumns: ["session_id"];
2235
+ referencedRelation: 'sessions';
2236
+ referencedColumns: ['session_id'];
2388
2237
  },
2389
2238
  {
2390
- foreignKeyName: "execution_logs_user_id_fkey";
2391
- columns: ["user_id"];
2239
+ foreignKeyName: 'execution_logs_user_id_fkey';
2240
+ columns: ['user_id'];
2392
2241
  isOneToOne: false;
2393
- referencedRelation: "users";
2394
- referencedColumns: ["id"];
2242
+ referencedRelation: 'users';
2243
+ referencedColumns: ['id'];
2395
2244
  }
2396
2245
  ];
2397
2246
  };
@@ -2437,18 +2286,18 @@ type Database = {
2437
2286
  };
2438
2287
  Relationships: [
2439
2288
  {
2440
- foreignKeyName: "execution_metrics_execution_id_fkey";
2441
- columns: ["execution_id"];
2289
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
2290
+ columns: ['execution_id'];
2442
2291
  isOneToOne: true;
2443
- referencedRelation: "execution_logs";
2444
- referencedColumns: ["execution_id"];
2292
+ referencedRelation: 'execution_logs';
2293
+ referencedColumns: ['execution_id'];
2445
2294
  },
2446
2295
  {
2447
- foreignKeyName: "execution_metrics_organization_id_fkey";
2448
- columns: ["organization_id"];
2296
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
2297
+ columns: ['organization_id'];
2449
2298
  isOneToOne: false;
2450
- referencedRelation: "organizations";
2451
- referencedColumns: ["id"];
2299
+ referencedRelation: 'organizations';
2300
+ referencedColumns: ['id'];
2452
2301
  }
2453
2302
  ];
2454
2303
  };
@@ -2491,18 +2340,18 @@ type Database = {
2491
2340
  };
2492
2341
  Relationships: [
2493
2342
  {
2494
- foreignKeyName: "notifications_organization_id_fkey";
2495
- columns: ["organization_id"];
2343
+ foreignKeyName: 'notifications_organization_id_fkey';
2344
+ columns: ['organization_id'];
2496
2345
  isOneToOne: false;
2497
- referencedRelation: "organizations";
2498
- referencedColumns: ["id"];
2346
+ referencedRelation: 'organizations';
2347
+ referencedColumns: ['id'];
2499
2348
  },
2500
2349
  {
2501
- foreignKeyName: "notifications_user_id_fkey";
2502
- columns: ["user_id"];
2350
+ foreignKeyName: 'notifications_user_id_fkey';
2351
+ columns: ['user_id'];
2503
2352
  isOneToOne: false;
2504
- referencedRelation: "users";
2505
- referencedColumns: ["id"];
2353
+ referencedRelation: 'users';
2354
+ referencedColumns: ['id'];
2506
2355
  }
2507
2356
  ];
2508
2357
  };
@@ -2557,18 +2406,18 @@ type Database = {
2557
2406
  };
2558
2407
  Relationships: [
2559
2408
  {
2560
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
2561
- columns: ["inviter_user_id"];
2409
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2410
+ columns: ['inviter_user_id'];
2562
2411
  isOneToOne: false;
2563
- referencedRelation: "users";
2564
- referencedColumns: ["id"];
2412
+ referencedRelation: 'users';
2413
+ referencedColumns: ['id'];
2565
2414
  },
2566
2415
  {
2567
- foreignKeyName: "org_invitations_organization_id_fkey";
2568
- columns: ["organization_id"];
2416
+ foreignKeyName: 'org_invitations_organization_id_fkey';
2417
+ columns: ['organization_id'];
2569
2418
  isOneToOne: false;
2570
- referencedRelation: "organizations";
2571
- referencedColumns: ["id"];
2419
+ referencedRelation: 'organizations';
2420
+ referencedColumns: ['id'];
2572
2421
  }
2573
2422
  ];
2574
2423
  };
@@ -2611,18 +2460,18 @@ type Database = {
2611
2460
  };
2612
2461
  Relationships: [
2613
2462
  {
2614
- foreignKeyName: "org_memberships_organization_id_fkey";
2615
- columns: ["organization_id"];
2463
+ foreignKeyName: 'org_memberships_organization_id_fkey';
2464
+ columns: ['organization_id'];
2616
2465
  isOneToOne: false;
2617
- referencedRelation: "organizations";
2618
- referencedColumns: ["id"];
2466
+ referencedRelation: 'organizations';
2467
+ referencedColumns: ['id'];
2619
2468
  },
2620
2469
  {
2621
- foreignKeyName: "org_memberships_user_id_fkey";
2622
- columns: ["user_id"];
2470
+ foreignKeyName: 'org_memberships_user_id_fkey';
2471
+ columns: ['user_id'];
2623
2472
  isOneToOne: false;
2624
- referencedRelation: "users";
2625
- referencedColumns: ["id"];
2473
+ referencedRelation: 'users';
2474
+ referencedColumns: ['id'];
2626
2475
  }
2627
2476
  ];
2628
2477
  };
@@ -2647,25 +2496,25 @@ type Database = {
2647
2496
  };
2648
2497
  Relationships: [
2649
2498
  {
2650
- foreignKeyName: "org_rol_assignments_granted_by_fkey";
2651
- columns: ["granted_by"];
2499
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
2500
+ columns: ['granted_by'];
2652
2501
  isOneToOne: false;
2653
- referencedRelation: "users";
2654
- referencedColumns: ["id"];
2502
+ referencedRelation: 'users';
2503
+ referencedColumns: ['id'];
2655
2504
  },
2656
2505
  {
2657
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
2658
- columns: ["membership_id"];
2506
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
2507
+ columns: ['membership_id'];
2659
2508
  isOneToOne: false;
2660
- referencedRelation: "org_memberships";
2661
- referencedColumns: ["id"];
2509
+ referencedRelation: 'org_memberships';
2510
+ referencedColumns: ['id'];
2662
2511
  },
2663
2512
  {
2664
- foreignKeyName: "org_rol_assignments_role_id_fkey";
2665
- columns: ["role_id"];
2513
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
2514
+ columns: ['role_id'];
2666
2515
  isOneToOne: false;
2667
- referencedRelation: "org_rol_definitions";
2668
- referencedColumns: ["id"];
2516
+ referencedRelation: 'org_rol_definitions';
2517
+ referencedColumns: ['id'];
2669
2518
  }
2670
2519
  ];
2671
2520
  };
@@ -2702,11 +2551,11 @@ type Database = {
2702
2551
  };
2703
2552
  Relationships: [
2704
2553
  {
2705
- foreignKeyName: "org_rol_definitions_organization_id_fkey";
2706
- columns: ["organization_id"];
2554
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
2555
+ columns: ['organization_id'];
2707
2556
  isOneToOne: false;
2708
- referencedRelation: "organizations";
2709
- referencedColumns: ["id"];
2557
+ referencedRelation: 'organizations';
2558
+ referencedColumns: ['id'];
2710
2559
  }
2711
2560
  ];
2712
2561
  };
@@ -2728,18 +2577,18 @@ type Database = {
2728
2577
  };
2729
2578
  Relationships: [
2730
2579
  {
2731
- foreignKeyName: "org_rol_grants_permission_key_fkey";
2732
- columns: ["permission_key"];
2580
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
2581
+ columns: ['permission_key'];
2733
2582
  isOneToOne: false;
2734
- referencedRelation: "org_rol_permissions";
2735
- referencedColumns: ["key"];
2583
+ referencedRelation: 'org_rol_permissions';
2584
+ referencedColumns: ['key'];
2736
2585
  },
2737
2586
  {
2738
- foreignKeyName: "org_rol_grants_role_id_fkey";
2739
- columns: ["role_id"];
2587
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
2588
+ columns: ['role_id'];
2740
2589
  isOneToOne: false;
2741
- referencedRelation: "org_rol_definitions";
2742
- referencedColumns: ["id"];
2590
+ referencedRelation: 'org_rol_definitions';
2591
+ referencedColumns: ['id'];
2743
2592
  }
2744
2593
  ];
2745
2594
  };
@@ -2851,25 +2700,25 @@ type Database = {
2851
2700
  };
2852
2701
  Relationships: [
2853
2702
  {
2854
- foreignKeyName: "fk_milestones_project";
2855
- columns: ["project_id"];
2703
+ foreignKeyName: 'fk_milestones_project';
2704
+ columns: ['project_id'];
2856
2705
  isOneToOne: false;
2857
- referencedRelation: "prj_projects";
2858
- referencedColumns: ["id"];
2706
+ referencedRelation: 'prj_projects';
2707
+ referencedColumns: ['id'];
2859
2708
  },
2860
2709
  {
2861
- foreignKeyName: "prj_milestones_organization_id_fkey";
2862
- columns: ["organization_id"];
2710
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2711
+ columns: ['organization_id'];
2863
2712
  isOneToOne: false;
2864
- referencedRelation: "organizations";
2865
- referencedColumns: ["id"];
2713
+ referencedRelation: 'organizations';
2714
+ referencedColumns: ['id'];
2866
2715
  },
2867
2716
  {
2868
- foreignKeyName: "prj_milestones_project_id_fkey";
2869
- columns: ["project_id"];
2717
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2718
+ columns: ['project_id'];
2870
2719
  isOneToOne: false;
2871
- referencedRelation: "prj_projects";
2872
- referencedColumns: ["id"];
2720
+ referencedRelation: 'prj_projects';
2721
+ referencedColumns: ['id'];
2873
2722
  }
2874
2723
  ];
2875
2724
  };
@@ -2918,67 +2767,67 @@ type Database = {
2918
2767
  };
2919
2768
  Relationships: [
2920
2769
  {
2921
- foreignKeyName: "fk_notes_created_by";
2922
- columns: ["created_by"];
2770
+ foreignKeyName: 'fk_notes_created_by';
2771
+ columns: ['created_by'];
2923
2772
  isOneToOne: false;
2924
- referencedRelation: "users";
2925
- referencedColumns: ["id"];
2773
+ referencedRelation: 'users';
2774
+ referencedColumns: ['id'];
2926
2775
  },
2927
2776
  {
2928
- foreignKeyName: "fk_notes_milestone";
2929
- columns: ["milestone_id"];
2777
+ foreignKeyName: 'fk_notes_milestone';
2778
+ columns: ['milestone_id'];
2930
2779
  isOneToOne: false;
2931
- referencedRelation: "prj_milestones";
2932
- referencedColumns: ["id"];
2780
+ referencedRelation: 'prj_milestones';
2781
+ referencedColumns: ['id'];
2933
2782
  },
2934
2783
  {
2935
- foreignKeyName: "fk_notes_project";
2936
- columns: ["project_id"];
2784
+ foreignKeyName: 'fk_notes_project';
2785
+ columns: ['project_id'];
2937
2786
  isOneToOne: false;
2938
- referencedRelation: "prj_projects";
2939
- referencedColumns: ["id"];
2787
+ referencedRelation: 'prj_projects';
2788
+ referencedColumns: ['id'];
2940
2789
  },
2941
2790
  {
2942
- foreignKeyName: "fk_notes_task";
2943
- columns: ["task_id"];
2791
+ foreignKeyName: 'fk_notes_task';
2792
+ columns: ['task_id'];
2944
2793
  isOneToOne: false;
2945
- referencedRelation: "prj_tasks";
2946
- referencedColumns: ["id"];
2794
+ referencedRelation: 'prj_tasks';
2795
+ referencedColumns: ['id'];
2947
2796
  },
2948
2797
  {
2949
- foreignKeyName: "prj_notes_created_by_fkey";
2950
- columns: ["created_by"];
2798
+ foreignKeyName: 'prj_notes_created_by_fkey';
2799
+ columns: ['created_by'];
2951
2800
  isOneToOne: false;
2952
- referencedRelation: "users";
2953
- referencedColumns: ["id"];
2801
+ referencedRelation: 'users';
2802
+ referencedColumns: ['id'];
2954
2803
  },
2955
2804
  {
2956
- foreignKeyName: "prj_notes_milestone_id_fkey";
2957
- columns: ["milestone_id"];
2805
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2806
+ columns: ['milestone_id'];
2958
2807
  isOneToOne: false;
2959
- referencedRelation: "prj_milestones";
2960
- referencedColumns: ["id"];
2808
+ referencedRelation: 'prj_milestones';
2809
+ referencedColumns: ['id'];
2961
2810
  },
2962
2811
  {
2963
- foreignKeyName: "prj_notes_organization_id_fkey";
2964
- columns: ["organization_id"];
2812
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2813
+ columns: ['organization_id'];
2965
2814
  isOneToOne: false;
2966
- referencedRelation: "organizations";
2967
- referencedColumns: ["id"];
2815
+ referencedRelation: 'organizations';
2816
+ referencedColumns: ['id'];
2968
2817
  },
2969
2818
  {
2970
- foreignKeyName: "prj_notes_project_id_fkey";
2971
- columns: ["project_id"];
2819
+ foreignKeyName: 'prj_notes_project_id_fkey';
2820
+ columns: ['project_id'];
2972
2821
  isOneToOne: false;
2973
- referencedRelation: "prj_projects";
2974
- referencedColumns: ["id"];
2822
+ referencedRelation: 'prj_projects';
2823
+ referencedColumns: ['id'];
2975
2824
  },
2976
2825
  {
2977
- foreignKeyName: "prj_notes_task_id_fkey";
2978
- columns: ["task_id"];
2826
+ foreignKeyName: 'prj_notes_task_id_fkey';
2827
+ columns: ['task_id'];
2979
2828
  isOneToOne: false;
2980
- referencedRelation: "prj_tasks";
2981
- referencedColumns: ["id"];
2829
+ referencedRelation: 'prj_tasks';
2830
+ referencedColumns: ['id'];
2982
2831
  }
2983
2832
  ];
2984
2833
  };
@@ -3036,39 +2885,39 @@ type Database = {
3036
2885
  };
3037
2886
  Relationships: [
3038
2887
  {
3039
- foreignKeyName: "fk_projects_company";
3040
- columns: ["client_company_id"];
2888
+ foreignKeyName: 'fk_projects_company';
2889
+ columns: ['client_company_id'];
3041
2890
  isOneToOne: false;
3042
- referencedRelation: "acq_companies";
3043
- referencedColumns: ["id"];
2891
+ referencedRelation: 'acq_companies';
2892
+ referencedColumns: ['id'];
3044
2893
  },
3045
2894
  {
3046
- foreignKeyName: "fk_projects_deal";
3047
- columns: ["deal_id"];
2895
+ foreignKeyName: 'fk_projects_deal';
2896
+ columns: ['deal_id'];
3048
2897
  isOneToOne: false;
3049
- referencedRelation: "acq_deals";
3050
- referencedColumns: ["id"];
2898
+ referencedRelation: 'acq_deals';
2899
+ referencedColumns: ['id'];
3051
2900
  },
3052
2901
  {
3053
- foreignKeyName: "prj_projects_client_company_id_fkey";
3054
- columns: ["client_company_id"];
2902
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2903
+ columns: ['client_company_id'];
3055
2904
  isOneToOne: false;
3056
- referencedRelation: "acq_companies";
3057
- referencedColumns: ["id"];
2905
+ referencedRelation: 'acq_companies';
2906
+ referencedColumns: ['id'];
3058
2907
  },
3059
2908
  {
3060
- foreignKeyName: "prj_projects_deal_id_fkey";
3061
- columns: ["deal_id"];
2909
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2910
+ columns: ['deal_id'];
3062
2911
  isOneToOne: false;
3063
- referencedRelation: "acq_deals";
3064
- referencedColumns: ["id"];
2912
+ referencedRelation: 'acq_deals';
2913
+ referencedColumns: ['id'];
3065
2914
  },
3066
2915
  {
3067
- foreignKeyName: "prj_projects_organization_id_fkey";
3068
- columns: ["organization_id"];
2916
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2917
+ columns: ['organization_id'];
3069
2918
  isOneToOne: false;
3070
- referencedRelation: "organizations";
3071
- referencedColumns: ["id"];
2919
+ referencedRelation: 'organizations';
2920
+ referencedColumns: ['id'];
3072
2921
  }
3073
2922
  ];
3074
2923
  };
@@ -3132,53 +2981,53 @@ type Database = {
3132
2981
  };
3133
2982
  Relationships: [
3134
2983
  {
3135
- foreignKeyName: "fk_tasks_milestone";
3136
- columns: ["milestone_id"];
2984
+ foreignKeyName: 'fk_tasks_milestone';
2985
+ columns: ['milestone_id'];
3137
2986
  isOneToOne: false;
3138
- referencedRelation: "prj_milestones";
3139
- referencedColumns: ["id"];
2987
+ referencedRelation: 'prj_milestones';
2988
+ referencedColumns: ['id'];
3140
2989
  },
3141
2990
  {
3142
- foreignKeyName: "fk_tasks_parent";
3143
- columns: ["parent_task_id"];
2991
+ foreignKeyName: 'fk_tasks_parent';
2992
+ columns: ['parent_task_id'];
3144
2993
  isOneToOne: false;
3145
- referencedRelation: "prj_tasks";
3146
- referencedColumns: ["id"];
2994
+ referencedRelation: 'prj_tasks';
2995
+ referencedColumns: ['id'];
3147
2996
  },
3148
2997
  {
3149
- foreignKeyName: "fk_tasks_project";
3150
- columns: ["project_id"];
2998
+ foreignKeyName: 'fk_tasks_project';
2999
+ columns: ['project_id'];
3151
3000
  isOneToOne: false;
3152
- referencedRelation: "prj_projects";
3153
- referencedColumns: ["id"];
3001
+ referencedRelation: 'prj_projects';
3002
+ referencedColumns: ['id'];
3154
3003
  },
3155
3004
  {
3156
- foreignKeyName: "prj_tasks_milestone_id_fkey";
3157
- columns: ["milestone_id"];
3005
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
3006
+ columns: ['milestone_id'];
3158
3007
  isOneToOne: false;
3159
- referencedRelation: "prj_milestones";
3160
- referencedColumns: ["id"];
3008
+ referencedRelation: 'prj_milestones';
3009
+ referencedColumns: ['id'];
3161
3010
  },
3162
3011
  {
3163
- foreignKeyName: "prj_tasks_organization_id_fkey";
3164
- columns: ["organization_id"];
3012
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
3013
+ columns: ['organization_id'];
3165
3014
  isOneToOne: false;
3166
- referencedRelation: "organizations";
3167
- referencedColumns: ["id"];
3015
+ referencedRelation: 'organizations';
3016
+ referencedColumns: ['id'];
3168
3017
  },
3169
3018
  {
3170
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
3171
- columns: ["parent_task_id"];
3019
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
3020
+ columns: ['parent_task_id'];
3172
3021
  isOneToOne: false;
3173
- referencedRelation: "prj_tasks";
3174
- referencedColumns: ["id"];
3022
+ referencedRelation: 'prj_tasks';
3023
+ referencedColumns: ['id'];
3175
3024
  },
3176
3025
  {
3177
- foreignKeyName: "prj_tasks_project_id_fkey";
3178
- columns: ["project_id"];
3026
+ foreignKeyName: 'prj_tasks_project_id_fkey';
3027
+ columns: ['project_id'];
3179
3028
  isOneToOne: false;
3180
- referencedRelation: "prj_projects";
3181
- referencedColumns: ["id"];
3029
+ referencedRelation: 'prj_projects';
3030
+ referencedColumns: ['id'];
3182
3031
  }
3183
3032
  ];
3184
3033
  };
@@ -3248,25 +3097,25 @@ type Database = {
3248
3097
  };
3249
3098
  Relationships: [
3250
3099
  {
3251
- foreignKeyName: "reported_requests_organization_id_fkey";
3252
- columns: ["organization_id"];
3100
+ foreignKeyName: 'reported_requests_organization_id_fkey';
3101
+ columns: ['organization_id'];
3253
3102
  isOneToOne: false;
3254
- referencedRelation: "organizations";
3255
- referencedColumns: ["id"];
3103
+ referencedRelation: 'organizations';
3104
+ referencedColumns: ['id'];
3256
3105
  },
3257
3106
  {
3258
- foreignKeyName: "reported_requests_project_id_fkey";
3259
- columns: ["project_id"];
3107
+ foreignKeyName: 'reported_requests_project_id_fkey';
3108
+ columns: ['project_id'];
3260
3109
  isOneToOne: false;
3261
- referencedRelation: "prj_projects";
3262
- referencedColumns: ["id"];
3110
+ referencedRelation: 'prj_projects';
3111
+ referencedColumns: ['id'];
3263
3112
  },
3264
3113
  {
3265
- foreignKeyName: "reported_requests_task_id_fkey";
3266
- columns: ["task_id"];
3114
+ foreignKeyName: 'reported_requests_task_id_fkey';
3115
+ columns: ['task_id'];
3267
3116
  isOneToOne: false;
3268
- referencedRelation: "prj_tasks";
3269
- referencedColumns: ["id"];
3117
+ referencedRelation: 'prj_tasks';
3118
+ referencedColumns: ['id'];
3270
3119
  }
3271
3120
  ];
3272
3121
  };
@@ -3306,11 +3155,11 @@ type Database = {
3306
3155
  };
3307
3156
  Relationships: [
3308
3157
  {
3309
- foreignKeyName: "session_messages_session_id_fkey";
3310
- columns: ["session_id"];
3158
+ foreignKeyName: 'session_messages_session_id_fkey';
3159
+ columns: ['session_id'];
3311
3160
  isOneToOne: false;
3312
- referencedRelation: "sessions";
3313
- referencedColumns: ["session_id"];
3161
+ referencedRelation: 'sessions';
3162
+ referencedColumns: ['session_id'];
3314
3163
  }
3315
3164
  ];
3316
3165
  };
@@ -3365,18 +3214,18 @@ type Database = {
3365
3214
  };
3366
3215
  Relationships: [
3367
3216
  {
3368
- foreignKeyName: "fk_organization";
3369
- columns: ["organization_id"];
3217
+ foreignKeyName: 'fk_organization';
3218
+ columns: ['organization_id'];
3370
3219
  isOneToOne: false;
3371
- referencedRelation: "organizations";
3372
- referencedColumns: ["id"];
3220
+ referencedRelation: 'organizations';
3221
+ referencedColumns: ['id'];
3373
3222
  },
3374
3223
  {
3375
- foreignKeyName: "fk_user";
3376
- columns: ["user_id"];
3224
+ foreignKeyName: 'fk_user';
3225
+ columns: ['user_id'];
3377
3226
  isOneToOne: false;
3378
- referencedRelation: "users";
3379
- referencedColumns: ["id"];
3227
+ referencedRelation: 'users';
3228
+ referencedColumns: ['id'];
3380
3229
  }
3381
3230
  ];
3382
3231
  };
@@ -3452,11 +3301,11 @@ type Database = {
3452
3301
  };
3453
3302
  Relationships: [
3454
3303
  {
3455
- foreignKeyName: "task_schedules_organization_id_fkey";
3456
- columns: ["organization_id"];
3304
+ foreignKeyName: 'task_schedules_organization_id_fkey';
3305
+ columns: ['organization_id'];
3457
3306
  isOneToOne: false;
3458
- referencedRelation: "organizations";
3459
- referencedColumns: ["id"];
3307
+ referencedRelation: 'organizations';
3308
+ referencedColumns: ['id'];
3460
3309
  }
3461
3310
  ];
3462
3311
  };
@@ -3511,11 +3360,11 @@ type Database = {
3511
3360
  };
3512
3361
  Relationships: [
3513
3362
  {
3514
- foreignKeyName: "user_profiles_last_visited_org_fkey";
3515
- columns: ["last_visited_org"];
3363
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
3364
+ columns: ['last_visited_org'];
3516
3365
  isOneToOne: false;
3517
- referencedRelation: "organizations";
3518
- referencedColumns: ["id"];
3366
+ referencedRelation: 'organizations';
3367
+ referencedColumns: ['id'];
3519
3368
  }
3520
3369
  ];
3521
3370
  };
@@ -3564,11 +3413,11 @@ type Database = {
3564
3413
  };
3565
3414
  Relationships: [
3566
3415
  {
3567
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
3568
- columns: ["organization_id"];
3416
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
3417
+ columns: ['organization_id'];
3569
3418
  isOneToOne: false;
3570
- referencedRelation: "organizations";
3571
- referencedColumns: ["id"];
3419
+ referencedRelation: 'organizations';
3420
+ referencedColumns: ['id'];
3572
3421
  }
3573
3422
  ];
3574
3423
  };
@@ -3716,17 +3565,17 @@ type Database = {
3716
3565
  };
3717
3566
  };
3718
3567
  };
3719
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
3720
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3721
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
3568
+ type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
3569
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
3570
+ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
3722
3571
  schema: keyof DatabaseWithoutInternals;
3723
3572
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
3724
3573
  schema: keyof DatabaseWithoutInternals;
3725
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
3574
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
3726
3575
  schema: keyof DatabaseWithoutInternals;
3727
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3576
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
3728
3577
  Row: infer R;
3729
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3578
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
3730
3579
  Row: infer R;
3731
3580
  } ? R : never : never;
3732
3581
 
@@ -3850,6 +3699,7 @@ interface AcqDealTask {
3850
3699
  /**
3851
3700
  * Live-scan aggregate telemetry for a single list, computed on demand from
3852
3701
  * the list junction tables and current contact deliverability state.
3702
+ * `stageCounts` are attempted counts from list-row processing_state.
3853
3703
  */
3854
3704
  interface ListTelemetry {
3855
3705
  listId: string;
@@ -3875,6 +3725,138 @@ interface ListTelemetry {
3875
3725
  activeWorkflows?: string[];
3876
3726
  }
3877
3727
 
3728
+ declare const TransitionItemRequestSchema: z.ZodObject<{
3729
+ pipelineKey: z.ZodString;
3730
+ stageKey: z.ZodString;
3731
+ stateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3732
+ reason: z.ZodOptional<z.ZodString>;
3733
+ expectedUpdatedAt: z.ZodOptional<z.ZodString>;
3734
+ }, z.core.$strict>;
3735
+ type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
3736
+ /**
3737
+ * Lifecycle status enum for `acq_lists.status` (mirrors DB CHECK constraint
3738
+ * from migration 20260428000003_lead_gen_acq_lists_status_and_config.sql).
3739
+ */
3740
+ declare const ListStatusSchema: z.ZodEnum<{
3741
+ closing: "closing";
3742
+ draft: "draft";
3743
+ enriching: "enriching";
3744
+ launched: "launched";
3745
+ archived: "archived";
3746
+ }>;
3747
+ declare const ListCompaniesQuerySchema: z.ZodObject<{
3748
+ search: z.ZodOptional<z.ZodString>;
3749
+ listId: z.ZodOptional<z.ZodString>;
3750
+ domain: z.ZodOptional<z.ZodString>;
3751
+ website: z.ZodOptional<z.ZodString>;
3752
+ segment: z.ZodOptional<z.ZodString>;
3753
+ category: z.ZodOptional<z.ZodString>;
3754
+ batchId: z.ZodOptional<z.ZodString>;
3755
+ status: z.ZodOptional<z.ZodEnum<{
3756
+ active: "active";
3757
+ invalid: "invalid";
3758
+ }>>;
3759
+ includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3760
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3761
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3762
+ }, z.core.$strict>;
3763
+ declare const ListContactsQuerySchema: z.ZodObject<{
3764
+ search: z.ZodOptional<z.ZodString>;
3765
+ listId: z.ZodOptional<z.ZodString>;
3766
+ openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3767
+ batchId: z.ZodOptional<z.ZodString>;
3768
+ contactStatus: z.ZodOptional<z.ZodEnum<{
3769
+ active: "active";
3770
+ invalid: "invalid";
3771
+ }>>;
3772
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3773
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3774
+ }, z.core.$strict>;
3775
+ declare const AcqCompanyResponseSchema: z.ZodObject<{
3776
+ id: z.ZodString;
3777
+ organizationId: z.ZodString;
3778
+ name: z.ZodString;
3779
+ domain: z.ZodNullable<z.ZodString>;
3780
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3781
+ website: z.ZodNullable<z.ZodString>;
3782
+ numEmployees: z.ZodNullable<z.ZodNumber>;
3783
+ foundedYear: z.ZodNullable<z.ZodNumber>;
3784
+ locationCity: z.ZodNullable<z.ZodString>;
3785
+ locationState: z.ZodNullable<z.ZodString>;
3786
+ category: z.ZodNullable<z.ZodString>;
3787
+ categoryPain: z.ZodNullable<z.ZodString>;
3788
+ segment: z.ZodNullable<z.ZodString>;
3789
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3790
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3791
+ source: z.ZodNullable<z.ZodString>;
3792
+ batchId: z.ZodNullable<z.ZodString>;
3793
+ status: z.ZodEnum<{
3794
+ active: "active";
3795
+ invalid: "invalid";
3796
+ }>;
3797
+ contactCount: z.ZodNumber;
3798
+ verticalResearch: z.ZodNullable<z.ZodString>;
3799
+ createdAt: z.ZodString;
3800
+ updatedAt: z.ZodString;
3801
+ }, z.core.$strip>;
3802
+ declare const AcqContactResponseSchema: z.ZodObject<{
3803
+ id: z.ZodString;
3804
+ organizationId: z.ZodString;
3805
+ companyId: z.ZodNullable<z.ZodString>;
3806
+ email: z.ZodString;
3807
+ emailValid: z.ZodNullable<z.ZodEnum<{
3808
+ VALID: "VALID";
3809
+ INVALID: "INVALID";
3810
+ RISKY: "RISKY";
3811
+ UNKNOWN: "UNKNOWN";
3812
+ }>>;
3813
+ firstName: z.ZodNullable<z.ZodString>;
3814
+ lastName: z.ZodNullable<z.ZodString>;
3815
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3816
+ title: z.ZodNullable<z.ZodString>;
3817
+ headline: z.ZodNullable<z.ZodString>;
3818
+ filterReason: z.ZodNullable<z.ZodString>;
3819
+ openingLine: z.ZodNullable<z.ZodString>;
3820
+ source: z.ZodNullable<z.ZodString>;
3821
+ sourceId: z.ZodNullable<z.ZodString>;
3822
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3823
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3824
+ attioPersonId: z.ZodNullable<z.ZodString>;
3825
+ batchId: z.ZodNullable<z.ZodString>;
3826
+ status: z.ZodEnum<{
3827
+ active: "active";
3828
+ invalid: "invalid";
3829
+ }>;
3830
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3831
+ id: z.ZodString;
3832
+ name: z.ZodString;
3833
+ domain: z.ZodNullable<z.ZodString>;
3834
+ website: z.ZodNullable<z.ZodString>;
3835
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3836
+ segment: z.ZodNullable<z.ZodString>;
3837
+ category: z.ZodNullable<z.ZodString>;
3838
+ status: z.ZodEnum<{
3839
+ active: "active";
3840
+ invalid: "invalid";
3841
+ }>;
3842
+ }, z.core.$strip>>>;
3843
+ createdAt: z.ZodString;
3844
+ updatedAt: z.ZodString;
3845
+ }, z.core.$strip>;
3846
+ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
3847
+ company: "company";
3848
+ contact: "contact";
3849
+ list: "list";
3850
+ deal: "deal";
3851
+ list_member: "list_member";
3852
+ }>;
3853
+ type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3854
+ type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3855
+ type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3856
+ type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3857
+ type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
3858
+ type ListStatus = z.infer<typeof ListStatusSchema>;
3859
+
3878
3860
  /**
3879
3861
  * Lead Service Types
3880
3862
  * CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
@@ -4152,146 +4134,55 @@ type ProjectKind = 'client_engagement' | 'internal' | 'research' | 'other';
4152
4134
  type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked';
4153
4135
  type TaskStatus = 'planned' | 'in_progress' | 'blocked' | 'completed' | 'cancelled' | 'submitted' | 'approved' | 'rejected' | 'revision_requested';
4154
4136
  type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other';
4155
- type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker' | 'agent_learning';
4156
- interface ProjectFilters {
4157
- status?: ProjectStatus;
4158
- kind?: ProjectKind;
4159
- companyId?: string;
4160
- search?: string;
4161
- }
4162
- interface MilestoneFilters {
4163
- status?: MilestoneStatus;
4164
- projectId?: string;
4165
- }
4166
- interface TaskFilters {
4167
- status?: TaskStatus;
4168
- type?: TaskType;
4169
- milestoneId?: string;
4170
- projectId?: string;
4171
- }
4172
- interface NoteFilters {
4173
- type?: NoteType;
4174
- projectId?: string;
4175
- }
4176
- interface ProjectWithCounts extends ProjectRow {
4177
- milestoneCount: number;
4178
- taskCount: number;
4179
- completedMilestones?: number;
4180
- completedTasks?: number;
4181
- }
4182
- interface ProjectDetail extends ProjectRow {
4183
- milestones: MilestoneRow[];
4184
- tasks: TaskRow[];
4185
- company: {
4186
- id: string;
4187
- name: string;
4188
- domain: string | null;
4189
- } | null;
4190
- }
4191
-
4192
- declare const ListCompaniesQuerySchema: z.ZodObject<{
4193
- search: z.ZodOptional<z.ZodString>;
4194
- listId: z.ZodOptional<z.ZodString>;
4195
- domain: z.ZodOptional<z.ZodString>;
4196
- website: z.ZodOptional<z.ZodString>;
4197
- segment: z.ZodOptional<z.ZodString>;
4198
- category: z.ZodOptional<z.ZodString>;
4199
- batchId: z.ZodOptional<z.ZodString>;
4200
- status: z.ZodOptional<z.ZodEnum<{
4201
- active: "active";
4202
- invalid: "invalid";
4203
- }>>;
4204
- includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4205
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4206
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4207
- }, z.core.$strict>;
4208
- declare const ListContactsQuerySchema: z.ZodObject<{
4209
- search: z.ZodOptional<z.ZodString>;
4210
- listId: z.ZodOptional<z.ZodString>;
4211
- openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4212
- batchId: z.ZodOptional<z.ZodString>;
4213
- contactStatus: z.ZodOptional<z.ZodEnum<{
4214
- active: "active";
4215
- invalid: "invalid";
4216
- }>>;
4217
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4218
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4219
- }, z.core.$strict>;
4220
- declare const AcqCompanyResponseSchema: z.ZodObject<{
4221
- id: z.ZodString;
4222
- organizationId: z.ZodString;
4223
- name: z.ZodString;
4224
- domain: z.ZodNullable<z.ZodString>;
4225
- linkedinUrl: z.ZodNullable<z.ZodString>;
4226
- website: z.ZodNullable<z.ZodString>;
4227
- numEmployees: z.ZodNullable<z.ZodNumber>;
4228
- foundedYear: z.ZodNullable<z.ZodNumber>;
4229
- locationCity: z.ZodNullable<z.ZodString>;
4230
- locationState: z.ZodNullable<z.ZodString>;
4231
- category: z.ZodNullable<z.ZodString>;
4232
- categoryPain: z.ZodNullable<z.ZodString>;
4233
- segment: z.ZodNullable<z.ZodString>;
4234
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4235
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4236
- source: z.ZodNullable<z.ZodString>;
4237
- batchId: z.ZodNullable<z.ZodString>;
4238
- status: z.ZodEnum<{
4239
- active: "active";
4240
- invalid: "invalid";
4241
- }>;
4242
- contactCount: z.ZodNumber;
4243
- verticalResearch: z.ZodNullable<z.ZodString>;
4244
- createdAt: z.ZodString;
4245
- updatedAt: z.ZodString;
4246
- }, z.core.$strip>;
4247
- declare const AcqContactResponseSchema: z.ZodObject<{
4248
- id: z.ZodString;
4249
- organizationId: z.ZodString;
4250
- companyId: z.ZodNullable<z.ZodString>;
4251
- email: z.ZodString;
4252
- emailValid: z.ZodNullable<z.ZodEnum<{
4253
- VALID: "VALID";
4254
- INVALID: "INVALID";
4255
- RISKY: "RISKY";
4256
- UNKNOWN: "UNKNOWN";
4257
- }>>;
4258
- firstName: z.ZodNullable<z.ZodString>;
4259
- lastName: z.ZodNullable<z.ZodString>;
4260
- linkedinUrl: z.ZodNullable<z.ZodString>;
4261
- title: z.ZodNullable<z.ZodString>;
4262
- headline: z.ZodNullable<z.ZodString>;
4263
- filterReason: z.ZodNullable<z.ZodString>;
4264
- openingLine: z.ZodNullable<z.ZodString>;
4265
- source: z.ZodNullable<z.ZodString>;
4266
- sourceId: z.ZodNullable<z.ZodString>;
4267
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4268
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4269
- attioPersonId: z.ZodNullable<z.ZodString>;
4270
- batchId: z.ZodNullable<z.ZodString>;
4271
- status: z.ZodEnum<{
4272
- active: "active";
4273
- invalid: "invalid";
4274
- }>;
4275
- company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4276
- id: z.ZodString;
4277
- name: z.ZodString;
4278
- domain: z.ZodNullable<z.ZodString>;
4279
- website: z.ZodNullable<z.ZodString>;
4280
- linkedinUrl: z.ZodNullable<z.ZodString>;
4281
- segment: z.ZodNullable<z.ZodString>;
4282
- category: z.ZodNullable<z.ZodString>;
4283
- status: z.ZodEnum<{
4284
- active: "active";
4285
- invalid: "invalid";
4286
- }>;
4287
- }, z.core.$strip>>>;
4288
- createdAt: z.ZodString;
4289
- updatedAt: z.ZodString;
4290
- }, z.core.$strip>;
4291
- type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
4292
- type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
4293
- type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
4294
- type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
4137
+ type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker' | 'agent_learning';
4138
+ interface ProjectFilters {
4139
+ status?: ProjectStatus;
4140
+ kind?: ProjectKind;
4141
+ companyId?: string;
4142
+ search?: string;
4143
+ }
4144
+ interface MilestoneFilters {
4145
+ status?: MilestoneStatus;
4146
+ projectId?: string;
4147
+ }
4148
+ interface TaskFilters {
4149
+ status?: TaskStatus;
4150
+ type?: TaskType;
4151
+ milestoneId?: string;
4152
+ projectId?: string;
4153
+ }
4154
+ interface NoteFilters {
4155
+ type?: NoteType;
4156
+ projectId?: string;
4157
+ }
4158
+ interface ProjectWithCounts extends ProjectRow {
4159
+ milestoneCount: number;
4160
+ taskCount: number;
4161
+ completedMilestones?: number;
4162
+ completedTasks?: number;
4163
+ }
4164
+ interface ProjectDetail extends ProjectRow {
4165
+ milestones: MilestoneRow[];
4166
+ tasks: TaskRow[];
4167
+ company: {
4168
+ id: string;
4169
+ name: string;
4170
+ domain: string | null;
4171
+ } | null;
4172
+ }
4173
+
4174
+ interface Action {
4175
+ key: string;
4176
+ label: string;
4177
+ payloadSchema?: z.ZodTypeAny;
4178
+ }
4179
+ interface ActionDef {
4180
+ key: string;
4181
+ label: string;
4182
+ isAvailableFor: (deal: AcqDealRow) => boolean;
4183
+ workflowId: string;
4184
+ payloadSchema?: z.ZodTypeAny;
4185
+ }
4295
4186
 
4296
4187
  type MessageType = MessageEvent['type'];
4297
4188
  /**
@@ -5669,37 +5560,292 @@ interface Deployment {
5669
5560
  }
5670
5561
 
5671
5562
  /**
5672
- * Time range utility functions
5673
- * Converts TimeRange enum to ISO 8601 date strings and labels
5563
+ * Time range utility functions
5564
+ * Converts TimeRange enum to ISO 8601 date strings and labels
5565
+ */
5566
+
5567
+ /**
5568
+ * Convert TimeRange to start and end ISO 8601 date strings
5569
+ * @param range - Time range enum (1h, 24h, 7d, 30d)
5570
+ * @returns Object with startDate and endDate as ISO 8601 strings
5571
+ */
5572
+ declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
5573
+ /**
5574
+ * Get a human-readable label for a time range
5575
+ * @param range - Time range enum
5576
+ * @returns Human-readable label
5577
+ */
5578
+ declare function getTimeRangeLabel(range: TimeRange): string;
5579
+
5580
+ /**
5581
+ * GET /api/credentials - List credentials
5582
+ */
5583
+ declare const ListCredentialsResponseSchema: z.ZodObject<{
5584
+ credentials: z.ZodArray<z.ZodObject<{
5585
+ id: z.ZodString;
5586
+ name: z.ZodString;
5587
+ type: z.ZodString;
5588
+ provider: z.ZodNullable<z.ZodString>;
5589
+ createdAt: z.ZodString;
5590
+ }, z.core.$strip>>;
5591
+ }, z.core.$strip>;
5592
+ /** API response type for a single credential list item */
5593
+ type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number];
5594
+
5595
+ /** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
5596
+ type WithSchemes<T> = T & {
5597
+ light?: T;
5598
+ dark?: T;
5599
+ };
5600
+ /**
5601
+ * Theme token overrides. Each key maps 1:1 to a CSS variable.
5602
+ * All optional — defaults come from Elevasis design system.
5603
+ */
5604
+ interface ElevasisTokenOverrides {
5605
+ primary?: string;
5606
+ /** Text color that contrasts with `primary`. Defaults to '#fff'. */
5607
+ primaryContrast?: string;
5608
+ background?: string;
5609
+ surface?: string;
5610
+ surfaceHover?: string;
5611
+ /** Opaque surface for floating overlays (modals, menus, popovers) — guarantees readable contrast against decorative backgrounds. */
5612
+ elevatedSurface?: string;
5613
+ text?: string;
5614
+ textDimmed?: string;
5615
+ textSubtle?: string;
5616
+ border?: string;
5617
+ error?: string;
5618
+ warning?: string;
5619
+ success?: string;
5620
+ glassBackground?: string;
5621
+ glassBlur?: string;
5622
+ shadow?: string;
5623
+ cardShadow?: string;
5624
+ durationFast?: string;
5625
+ durationNormal?: string;
5626
+ easing?: string;
5627
+ /** Foreground text color for destructive/error buttons. Defaults to '#fff'. */
5628
+ destructiveFg?: string;
5629
+ /** Heading font family — used for titles, section headers. */
5630
+ fontHeading?: string;
5631
+ /** Body font family — used for general text. */
5632
+ fontSans?: string;
5633
+ }
5634
+ /**
5635
+ * Core theme config — Mantine-free.
5636
+ * Used by ElevasisCoreProvider and as the base for ElevasisThemeConfig.
5637
+ */
5638
+ interface ElevasisCoreThemeConfig {
5639
+ /** Color scheme: 'light', 'dark', or 'auto'. Defaults to 'dark'. */
5640
+ colorScheme?: 'light' | 'dark' | 'auto';
5641
+ /** Named preset — bundles light/dark token defaults. Defaults to 'default'. Accepts built-in PresetName or custom preset key. */
5642
+ preset?: PresetName | (string & {});
5643
+ /**
5644
+ * Semantic token overrides fed into CSS variables.
5645
+ * Flat values apply to both schemes. `light`/`dark` nested values win over flat.
5646
+ */
5647
+ tokens?: WithSchemes<ElevasisTokenOverrides>;
5648
+ /** Custom presets map — when provided, used instead of built-in presets. Typically `{ ...presets, ...customPresets }`. */
5649
+ presets?: Record<string, ThemePreset>;
5650
+ }
5651
+ /**
5652
+ * Auth configuration union.
5653
+ * 'authkit' (WorkOS AuthKit) is the supported mode.
5654
+ * 'apiKey' is defined for forward type compatibility but will throw at runtime.
5655
+ */
5656
+ type AuthConfig = AuthKitConfig | ApiKeyConfig;
5657
+ interface AuthKitConfig {
5658
+ mode: 'authkit';
5659
+ clientId: string;
5660
+ /** AuthKit API hostname. Defaults to 'api.workos.com'. */
5661
+ apiHostname?: string;
5662
+ /** Redirect URI after auth. */
5663
+ redirectUri?: string;
5664
+ /** Keep refresh tokens in localStorage. Defaults to false. */
5665
+ devMode?: boolean;
5666
+ }
5667
+ /** Deferred -- will throw at runtime. */
5668
+ interface ApiKeyConfig {
5669
+ mode: 'apiKey';
5670
+ key: string;
5671
+ }
5672
+ interface ElevasisCoreProviderProps {
5673
+ /** Auth configuration. Supports 'authkit' mode. */
5674
+ auth: AuthConfig;
5675
+ /**
5676
+ * Elevasis core theme configuration (Mantine-free).
5677
+ * Set `colorScheme` ('light', 'dark', 'auto') and override `tokens` (design tokens).
5678
+ * Defaults: colorScheme='dark', Elevasis design system tokens.
5679
+ */
5680
+ theme?: ElevasisCoreThemeConfig;
5681
+ /**
5682
+ * @deprecated Organization ID is now resolved automatically via OrganizationProvider.
5683
+ * This prop is accepted for backwards compatibility during migration but is no longer
5684
+ * used when the full provider stack is active (apiUrl provided).
5685
+ */
5686
+ organizationId?: string | null;
5687
+ /** Custom QueryClient. If omitted, a default is created internally. */
5688
+ queryClient?: QueryClient;
5689
+ /**
5690
+ * API base URL (e.g., 'https://api.elevasis.com' or 'http://localhost:5170').
5691
+ * When provided, ElevasisCoreProvider composes the full provider stack:
5692
+ * ApiClientProvider + ElevasisServiceProvider + ProfileProvider +
5693
+ * OrganizationProvider + NotificationProvider + InitializationProvider.
5694
+ * When omitted, no service context is provided (theme-only mode).
5695
+ */
5696
+ apiUrl?: string;
5697
+ /**
5698
+ * Error callback for API responses with status >= 500.
5699
+ * Only used when apiUrl is provided.
5700
+ */
5701
+ onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
5702
+ /**
5703
+ * @deprecated Organization readiness is now managed internally by OrganizationProvider.
5704
+ * Accepted for backwards compatibility but ignored when apiUrl is provided.
5705
+ */
5706
+ isOrganizationReady?: boolean;
5707
+ /**
5708
+ * Notification adapter for displaying success/error/info messages.
5709
+ * When provided, wraps the subtree in a NotificationProvider with this adapter.
5710
+ * When omitted, the console fallback adapter is used automatically.
5711
+ *
5712
+ * ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
5713
+ * Headless/SDK consumers can pass a custom adapter or omit for console output.
5714
+ */
5715
+ notifications?: NotificationAdapter;
5716
+ /**
5717
+ * Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
5718
+ * Set to `false` when the consumer has its own complete design system and only
5719
+ * needs auth + API from this provider. Defaults to `true`.
5720
+ */
5721
+ injectStyles?: boolean;
5722
+ /**
5723
+ * CRM action definitions used by DealDetailPage and DealDrawer.
5724
+ * Defaults to DEFAULT_CRM_ACTIONS. Pass a custom array to override or extend
5725
+ * the default action set for your organization's sales flow.
5726
+ *
5727
+ * @example
5728
+ * ```tsx
5729
+ * import { DEFAULT_CRM_ACTIONS, type ActionDef } from '@elevasis/sdk'
5730
+ * const myActions: ActionDef[] = [
5731
+ * ...DEFAULT_CRM_ACTIONS,
5732
+ * { key: 'send_quote', label: 'Send Quote',
5733
+ * isAvailableFor: d => d.stage_key === 'proposal',
5734
+ * workflowId: 'send-quote-workflow' },
5735
+ * ]
5736
+ * <ElevasisUIProvider crmActions={myActions} ... />
5737
+ * ```
5738
+ */
5739
+ crmActions?: ActionDef[];
5740
+ children: ReactNode;
5741
+ }
5742
+ /**
5743
+ * Service context value exposed by ElevasisServiceProvider.
5744
+ * Provides a ready-to-use apiRequest function and organization state.
5745
+ *
5746
+ * For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
5747
+ * For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
5748
+ */
5749
+ interface ElevasisServiceContextValue {
5750
+ apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
5751
+ organizationId: string | null;
5752
+ isReady: boolean;
5753
+ }
5754
+ interface ElevasisServiceProviderProps {
5755
+ apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
5756
+ organizationId: string | null;
5757
+ isReady: boolean;
5758
+ children: ReactNode;
5759
+ }
5760
+
5761
+ /** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
5762
+ interface FrameworkThemeOverrides {
5763
+ fontFamily?: string;
5764
+ defaultRadius?: string;
5765
+ headings?: {
5766
+ fontFamily?: string;
5767
+ fontWeight?: string;
5768
+ };
5769
+ components?: Record<string, unknown>;
5770
+ }
5771
+ /** Tokens every preset must define. `elevatedSurface` is progressively adopted and stays optional. */
5772
+ type PresetTokens = Required<Omit<ElevasisTokenOverrides, 'elevatedSurface'>> & Pick<ElevasisTokenOverrides, 'elevatedSurface'>;
5773
+ interface ThemePreset {
5774
+ light: PresetTokens;
5775
+ dark: PresetTokens;
5776
+ /** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
5777
+ framework?: FrameworkThemeOverrides;
5778
+ /**
5779
+ * Subtitle font family — used for card names, section labels, and nav items.
5780
+ * Sits between heading and body in the typographic hierarchy.
5781
+ */
5782
+ subtitleFontFamily?: string;
5783
+ /** Google Fonts URLs to load when this preset is active. */
5784
+ fontImports?: string[];
5785
+ /** Display label for settings UI (e.g. "Tactical"). Built-in presets define this; custom presets must provide it. */
5786
+ label?: string;
5787
+ /** Short description for settings UI (e.g. "Tactical command center aesthetic"). */
5788
+ description?: string;
5789
+ /** Three representative hex colors for swatch display: [primary, dark-bg, light-bg]. */
5790
+ colors?: [string, string, string];
5791
+ /**
5792
+ * Background layers rendered behind app content when this preset is active.
5793
+ * Overridden by `theme.background` on the provider if both are set.
5794
+ */
5795
+ background?: ReactNode;
5796
+ /**
5797
+ * Loader element used in loading states when this preset is active.
5798
+ * Overridden by `theme.loader` on the provider if both are set.
5799
+ */
5800
+ loader?: ReactNode;
5801
+ }
5802
+ type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
5803
+
5804
+ /** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
5805
+ type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
5806
+ /**
5807
+ * Generate a 10-shade Mantine color tuple from a single hex color.
5808
+ * Input color maps to shade 6 (Mantine's default primary shade).
5809
+ * Shades 0-5 are progressively lighter, 7-9 are progressively darker.
5674
5810
  */
5811
+ declare function generateShades(hex: string): ColorShadesTuple;
5675
5812
 
5676
- /**
5677
- * Convert TimeRange to start and end ISO 8601 date strings
5678
- * @param range - Time range enum (1h, 24h, 7d, 30d)
5679
- * @returns Object with startDate and endDate as ISO 8601 strings
5680
- */
5681
- declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
5682
- /**
5683
- * Get a human-readable label for a time range
5684
- * @param range - Time range enum
5685
- * @returns Human-readable label
5686
- */
5687
- declare function getTimeRangeLabel(range: TimeRange): string;
5813
+ declare const PRESETS: Record<PresetName, ThemePreset>;
5688
5814
 
5815
+ /** Look up a preset by name. Falls back to default preset for unknown names. */
5816
+ declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
5817
+
5818
+ /** Token key → CSS variable name. Single source of truth for the mapping. */
5819
+ declare const TOKEN_VAR_MAP: Record<keyof ElevasisTokenOverrides, string>;
5689
5820
  /**
5690
- * GET /api/credentials - List credentials
5821
+ * Creates a CSS variables resolver from theme config.
5822
+ *
5823
+ * Merge order per scheme: PRESET_DEFAULTS → flat overrides → scheme-specific overrides
5691
5824
  */
5692
- declare const ListCredentialsResponseSchema: z.ZodObject<{
5693
- credentials: z.ZodArray<z.ZodObject<{
5694
- id: z.ZodString;
5695
- name: z.ZodString;
5696
- type: z.ZodString;
5697
- provider: z.ZodNullable<z.ZodString>;
5698
- createdAt: z.ZodString;
5699
- }, z.core.$strip>>;
5700
- }, z.core.$strip>;
5701
- /** API response type for a single credential list item */
5702
- type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number];
5825
+ declare function createCssVariablesResolver(tokens?: ElevasisCoreThemeConfig['tokens'], preset?: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): CSSVariablesResolver;
5826
+
5827
+ declare const mantineThemeOverride: MantineThemeOverride;
5828
+
5829
+ declare const componentThemes: MantineThemeOverride['components'];
5830
+
5831
+ declare const PresetsProvider: react.Provider<Record<string, ThemePreset>>;
5832
+ declare function usePresetsContext(): Record<string, ThemePreset>;
5833
+
5834
+ /** Preset entry with display metadata for settings UI. */
5835
+ interface PresetEntry {
5836
+ /** Preset key (e.g. 'tactical', 'my-custom-brand'). */
5837
+ value: string;
5838
+ /** Display label (e.g. 'Tactical'). Falls back to titlecased key. */
5839
+ label: string;
5840
+ /** Short description. Falls back to empty string. */
5841
+ description: string;
5842
+ /** Three representative hex colors for swatch: [primary, dark-bg, light-bg]. Falls back to preset's dark/light primary + backgrounds. */
5843
+ colors: [string, string, string];
5844
+ /** True for presets not in the built-in PresetName union. */
5845
+ isCustom: boolean;
5846
+ }
5847
+ /** Returns all available presets as UI-ready entries. */
5848
+ declare function useAvailablePresets(): PresetEntry[];
5703
5849
 
5704
5850
  /**
5705
5851
  * Merges SSE-streamed logs with fetched execution data for instant log display.
@@ -6548,7 +6694,37 @@ declare function ScrollToTop(): react_jsx_runtime.JSX.Element;
6548
6694
  * </ElevasisCoreProvider>
6549
6695
  * ```
6550
6696
  */
6551
- declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
6697
+ declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, crmActions, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
6698
+
6699
+ /**
6700
+ * Provides the active CRM action definitions to deal action surfaces.
6701
+ *
6702
+ * Defaults to DEFAULT_CRM_ACTIONS. External consumers can override via the
6703
+ * `crmActions` prop on ElevasisCoreProvider / ElevasisUIProvider.
6704
+ *
6705
+ * @example External override
6706
+ * ```tsx
6707
+ * import { DEFAULT_CRM_ACTIONS, type ActionDef } from '@elevasis/sdk'
6708
+ *
6709
+ * const myActions: ActionDef[] = [
6710
+ * ...DEFAULT_CRM_ACTIONS,
6711
+ * { key: 'send_quote', label: 'Send Quote',
6712
+ * isAvailableFor: d => d.stage_key === 'proposal',
6713
+ * workflowId: 'send-quote-workflow' },
6714
+ * ]
6715
+ *
6716
+ * <ElevasisUIProvider crmActions={myActions} ... />
6717
+ * ```
6718
+ */
6719
+ declare function CrmActionsProvider({ actions, children }: {
6720
+ actions: ActionDef[];
6721
+ children: ReactNode;
6722
+ }): react_jsx_runtime.JSX.Element;
6723
+ /**
6724
+ * Returns the active CRM ActionDef array for the current provider tree.
6725
+ * Defaults to DEFAULT_CRM_ACTIONS if no CrmActionsProvider is mounted above.
6726
+ */
6727
+ declare function useCrmActions(): ActionDef[];
6552
6728
 
6553
6729
  interface FetchEventSourceWithTokenRefreshOptions {
6554
6730
  url: string;
@@ -6732,6 +6908,9 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
6732
6908
  /**
6733
6909
  * Props for ElevasisUIProvider (Mantine variant).
6734
6910
  * Extends ElevasisCoreProviderProps with Mantine-aware theme config.
6911
+ *
6912
+ * Accepts `crmActions` from ElevasisCoreProviderProps — pass a custom ActionDef[]
6913
+ * to override or extend the default CRM action set for DealDetailPage / DealDrawer.
6735
6914
  */
6736
6915
  interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
6737
6916
  theme?: ElevasisThemeConfig;
@@ -8813,6 +8992,31 @@ interface TransitionItemInput {
8813
8992
  */
8814
8993
  declare function useTransitionItem(): _tanstack_react_query.UseMutationResult<void, Error, TransitionItemInput, unknown>;
8815
8994
 
8995
+ interface TransitionStateInput {
8996
+ dealId: string;
8997
+ stateKey: string;
8998
+ reason?: string;
8999
+ expectedUpdatedAt?: string;
9000
+ }
9001
+ declare function useTransitionState(): _tanstack_react_query.UseMutationResult<void, Error, TransitionStateInput, unknown>;
9002
+
9003
+ interface ExecuteActionInput {
9004
+ key: string;
9005
+ payload?: Record<string, unknown>;
9006
+ }
9007
+ /**
9008
+ * Execute a CRM deal action via POST /deals/:dealId/actions/:key.
9009
+ *
9010
+ * The server validates availability server-authoritatively, dispatches through
9011
+ * the unified workflow path via the action definition's workflowId, and emits an
9012
+ * action_taken activity event.
9013
+ *
9014
+ * On success invalidates the deal detail and deals list queries.
9015
+ */
9016
+ declare function useExecuteAction({ dealId }: {
9017
+ dealId: string;
9018
+ }): _tanstack_react_query.UseMutationResult<void, Error, ExecuteActionInput, unknown>;
9019
+
8816
9020
  /**
8817
9021
  * Query keys for deal notes
8818
9022
  */
@@ -8905,45 +9109,32 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
8905
9109
  type: string;
8906
9110
  batchIds: string[];
8907
9111
  instantlyCampaignId: string | null;
8908
- status: string;
9112
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
8909
9113
  metadata: Record<string, unknown>;
8910
9114
  launchedAt: string | null;
8911
9115
  completedAt: string | null;
8912
9116
  createdAt: string;
8913
- config: {
8914
- qualification: {
8915
- targetDescription: string;
8916
- minReviewCount: number;
8917
- minRating: number;
8918
- excludeFranchises: boolean;
8919
- customRules: string;
8920
- };
8921
- enrichment?: {
8922
- emailDiscovery?: {
8923
- primary: "tomba" | "anymailfinder";
8924
- credentialName?: string | undefined;
8925
- } | undefined;
8926
- emailVerification?: {
8927
- provider: "millionverifier";
8928
- threshold?: "ok" | "ok+catch_all" | undefined;
8929
- } | undefined;
8930
- } | undefined;
8931
- personalization?: {
8932
- industryContext?: string | undefined;
8933
- emailBody?: string | undefined;
8934
- creativeDirection?: string | undefined;
8935
- exclusionRules?: string[] | undefined;
8936
- } | undefined;
8937
- pipeline?: {
8938
- steps: {
8939
- key: string;
8940
- label: string;
8941
- resourceId: string;
8942
- inputTemplate: Record<string, unknown>;
8943
- enabled: boolean;
8944
- order: number;
8945
- }[];
8946
- } | undefined;
9117
+ scrapingConfig: {
9118
+ vertical?: string | undefined;
9119
+ geography?: string | undefined;
9120
+ size?: string | undefined;
9121
+ apifyInput?: Record<string, unknown> | undefined;
9122
+ };
9123
+ icp: {
9124
+ qualificationRubricKey?: string | null | undefined;
9125
+ targetDescription?: string | undefined;
9126
+ minReviewCount?: number | undefined;
9127
+ minRating?: number | undefined;
9128
+ excludeFranchises?: boolean | undefined;
9129
+ customRules?: string | undefined;
9130
+ };
9131
+ pipelineConfig: {
9132
+ stages?: {
9133
+ key: string;
9134
+ label?: string | undefined;
9135
+ enabled?: boolean | undefined;
9136
+ order?: number | undefined;
9137
+ }[] | undefined;
8947
9138
  };
8948
9139
  }[], Error>;
8949
9140
  declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
@@ -8954,49 +9145,59 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
8954
9145
  type: string;
8955
9146
  batchIds: string[];
8956
9147
  instantlyCampaignId: string | null;
8957
- status: string;
9148
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
8958
9149
  metadata: Record<string, unknown>;
8959
9150
  launchedAt: string | null;
8960
9151
  completedAt: string | null;
8961
9152
  createdAt: string;
8962
- config: {
8963
- qualification: {
8964
- targetDescription: string;
8965
- minReviewCount: number;
8966
- minRating: number;
8967
- excludeFranchises: boolean;
8968
- customRules: string;
8969
- };
8970
- enrichment?: {
8971
- emailDiscovery?: {
8972
- primary: "tomba" | "anymailfinder";
8973
- credentialName?: string | undefined;
8974
- } | undefined;
8975
- emailVerification?: {
8976
- provider: "millionverifier";
8977
- threshold?: "ok" | "ok+catch_all" | undefined;
8978
- } | undefined;
8979
- } | undefined;
8980
- personalization?: {
8981
- industryContext?: string | undefined;
8982
- emailBody?: string | undefined;
8983
- creativeDirection?: string | undefined;
8984
- exclusionRules?: string[] | undefined;
8985
- } | undefined;
8986
- pipeline?: {
8987
- steps: {
8988
- key: string;
8989
- label: string;
8990
- resourceId: string;
8991
- inputTemplate: Record<string, unknown>;
8992
- enabled: boolean;
8993
- order: number;
8994
- }[];
8995
- } | undefined;
9153
+ scrapingConfig: {
9154
+ vertical?: string | undefined;
9155
+ geography?: string | undefined;
9156
+ size?: string | undefined;
9157
+ apifyInput?: Record<string, unknown> | undefined;
9158
+ };
9159
+ icp: {
9160
+ qualificationRubricKey?: string | null | undefined;
9161
+ targetDescription?: string | undefined;
9162
+ minReviewCount?: number | undefined;
9163
+ minRating?: number | undefined;
9164
+ excludeFranchises?: boolean | undefined;
9165
+ customRules?: string | undefined;
9166
+ };
9167
+ pipelineConfig: {
9168
+ stages?: {
9169
+ key: string;
9170
+ label?: string | undefined;
9171
+ enabled?: boolean | undefined;
9172
+ order?: number | undefined;
9173
+ }[] | undefined;
8996
9174
  };
8997
9175
  }, Error>;
8998
9176
  declare function useListsTelemetry(): _tanstack_react_query.UseQueryResult<ListTelemetry[], Error>;
8999
- declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<ListTelemetry, Error>;
9177
+ declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<{
9178
+ totalMembers: number;
9179
+ totalCompanies: number;
9180
+ byCompanyStage: Record<string, {
9181
+ total: number;
9182
+ attempted: number;
9183
+ success: number;
9184
+ noResult: number;
9185
+ skipped: number;
9186
+ error: number;
9187
+ other: number;
9188
+ notAttempted: number;
9189
+ }>;
9190
+ byContactStage: Record<string, {
9191
+ total: number;
9192
+ attempted: number;
9193
+ success: number;
9194
+ noResult: number;
9195
+ skipped: number;
9196
+ error: number;
9197
+ other: number;
9198
+ notAttempted: number;
9199
+ }>;
9200
+ }, Error>;
9000
9201
  declare function useListExecutions(listId: string): _tanstack_react_query.UseQueryResult<{
9001
9202
  executionId: string;
9002
9203
  resourceId: string;
@@ -9013,84 +9214,58 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
9013
9214
  type: string;
9014
9215
  batchIds: string[];
9015
9216
  instantlyCampaignId: string | null;
9016
- status: string;
9217
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
9017
9218
  metadata: Record<string, unknown>;
9018
9219
  launchedAt: string | null;
9019
9220
  completedAt: string | null;
9020
9221
  createdAt: string;
9021
- config: {
9022
- qualification: {
9023
- targetDescription: string;
9024
- minReviewCount: number;
9025
- minRating: number;
9026
- excludeFranchises: boolean;
9027
- customRules: string;
9028
- };
9029
- enrichment?: {
9030
- emailDiscovery?: {
9031
- primary: "tomba" | "anymailfinder";
9032
- credentialName?: string | undefined;
9033
- } | undefined;
9034
- emailVerification?: {
9035
- provider: "millionverifier";
9036
- threshold?: "ok" | "ok+catch_all" | undefined;
9037
- } | undefined;
9038
- } | undefined;
9039
- personalization?: {
9040
- industryContext?: string | undefined;
9041
- emailBody?: string | undefined;
9042
- creativeDirection?: string | undefined;
9043
- exclusionRules?: string[] | undefined;
9044
- } | undefined;
9045
- pipeline?: {
9046
- steps: {
9047
- key: string;
9048
- label: string;
9049
- resourceId: string;
9050
- inputTemplate: Record<string, unknown>;
9051
- enabled: boolean;
9052
- order: number;
9053
- }[];
9054
- } | undefined;
9222
+ scrapingConfig: {
9223
+ vertical?: string | undefined;
9224
+ geography?: string | undefined;
9225
+ size?: string | undefined;
9226
+ apifyInput?: Record<string, unknown> | undefined;
9227
+ };
9228
+ icp: {
9229
+ qualificationRubricKey?: string | null | undefined;
9230
+ targetDescription?: string | undefined;
9231
+ minReviewCount?: number | undefined;
9232
+ minRating?: number | undefined;
9233
+ excludeFranchises?: boolean | undefined;
9234
+ customRules?: string | undefined;
9235
+ };
9236
+ pipelineConfig: {
9237
+ stages?: {
9238
+ key: string;
9239
+ label?: string | undefined;
9240
+ enabled?: boolean | undefined;
9241
+ order?: number | undefined;
9242
+ }[] | undefined;
9055
9243
  };
9056
9244
  }, Error, {
9057
9245
  name: string;
9058
- type: string;
9059
9246
  description?: string | null | undefined;
9060
- config?: {
9061
- qualification: {
9062
- targetDescription: string;
9063
- minReviewCount: number;
9064
- minRating: number;
9065
- excludeFranchises: boolean;
9066
- customRules: string;
9067
- };
9068
- enrichment?: {
9069
- emailDiscovery?: {
9070
- primary: "tomba" | "anymailfinder";
9071
- credentialName?: string | undefined;
9072
- } | undefined;
9073
- emailVerification?: {
9074
- provider: "millionverifier";
9075
- threshold?: "ok" | "ok+catch_all" | undefined;
9076
- } | undefined;
9077
- } | undefined;
9078
- personalization?: {
9079
- industryContext?: string | undefined;
9080
- emailBody?: string | undefined;
9081
- creativeDirection?: string | undefined;
9082
- exclusionRules?: string[] | undefined;
9083
- } | undefined;
9084
- pipeline?: {
9085
- steps: {
9086
- key: string;
9087
- label: string;
9088
- resourceId: string;
9089
- inputTemplate: Record<string, unknown>;
9090
- enabled: boolean;
9091
- order: number;
9092
- }[];
9093
- } | undefined;
9247
+ status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
9248
+ scrapingConfig?: {
9249
+ vertical?: string | undefined;
9250
+ geography?: string | undefined;
9251
+ size?: string | undefined;
9252
+ apifyInput?: Record<string, unknown> | undefined;
9253
+ } | undefined;
9254
+ icp?: {
9255
+ qualificationRubricKey?: string | null | undefined;
9256
+ targetDescription?: string | undefined;
9257
+ minReviewCount?: number | undefined;
9258
+ minRating?: number | undefined;
9259
+ excludeFranchises?: boolean | undefined;
9260
+ customRules?: string | undefined;
9261
+ } | undefined;
9262
+ pipelineConfig?: {
9263
+ stages?: {
9264
+ key: string;
9265
+ label?: string | undefined;
9266
+ enabled?: boolean | undefined;
9267
+ order?: number | undefined;
9268
+ }[] | undefined;
9094
9269
  } | undefined;
9095
9270
  }, unknown>;
9096
9271
  declare function useUpdateList(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -9101,50 +9276,36 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
9101
9276
  type: string;
9102
9277
  batchIds: string[];
9103
9278
  instantlyCampaignId: string | null;
9104
- status: string;
9279
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
9105
9280
  metadata: Record<string, unknown>;
9106
9281
  launchedAt: string | null;
9107
9282
  completedAt: string | null;
9108
9283
  createdAt: string;
9109
- config: {
9110
- qualification: {
9111
- targetDescription: string;
9112
- minReviewCount: number;
9113
- minRating: number;
9114
- excludeFranchises: boolean;
9115
- customRules: string;
9116
- };
9117
- enrichment?: {
9118
- emailDiscovery?: {
9119
- primary: "tomba" | "anymailfinder";
9120
- credentialName?: string | undefined;
9121
- } | undefined;
9122
- emailVerification?: {
9123
- provider: "millionverifier";
9124
- threshold?: "ok" | "ok+catch_all" | undefined;
9125
- } | undefined;
9126
- } | undefined;
9127
- personalization?: {
9128
- industryContext?: string | undefined;
9129
- emailBody?: string | undefined;
9130
- creativeDirection?: string | undefined;
9131
- exclusionRules?: string[] | undefined;
9132
- } | undefined;
9133
- pipeline?: {
9134
- steps: {
9135
- key: string;
9136
- label: string;
9137
- resourceId: string;
9138
- inputTemplate: Record<string, unknown>;
9139
- enabled: boolean;
9140
- order: number;
9141
- }[];
9142
- } | undefined;
9284
+ scrapingConfig: {
9285
+ vertical?: string | undefined;
9286
+ geography?: string | undefined;
9287
+ size?: string | undefined;
9288
+ apifyInput?: Record<string, unknown> | undefined;
9289
+ };
9290
+ icp: {
9291
+ qualificationRubricKey?: string | null | undefined;
9292
+ targetDescription?: string | undefined;
9293
+ minReviewCount?: number | undefined;
9294
+ minRating?: number | undefined;
9295
+ excludeFranchises?: boolean | undefined;
9296
+ customRules?: string | undefined;
9297
+ };
9298
+ pipelineConfig: {
9299
+ stages?: {
9300
+ key: string;
9301
+ label?: string | undefined;
9302
+ enabled?: boolean | undefined;
9303
+ order?: number | undefined;
9304
+ }[] | undefined;
9143
9305
  };
9144
9306
  }, Error, {
9145
9307
  name?: string | undefined;
9146
9308
  description?: string | null | undefined;
9147
- status?: string | undefined;
9148
9309
  batchIds?: string[] | undefined;
9149
9310
  }, unknown>;
9150
9311
  declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -9155,78 +9316,54 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
9155
9316
  type: string;
9156
9317
  batchIds: string[];
9157
9318
  instantlyCampaignId: string | null;
9158
- status: string;
9319
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
9159
9320
  metadata: Record<string, unknown>;
9160
9321
  launchedAt: string | null;
9161
9322
  completedAt: string | null;
9162
9323
  createdAt: string;
9163
- config: {
9164
- qualification: {
9165
- targetDescription: string;
9166
- minReviewCount: number;
9167
- minRating: number;
9168
- excludeFranchises: boolean;
9169
- customRules: string;
9170
- };
9171
- enrichment?: {
9172
- emailDiscovery?: {
9173
- primary: "tomba" | "anymailfinder";
9174
- credentialName?: string | undefined;
9175
- } | undefined;
9176
- emailVerification?: {
9177
- provider: "millionverifier";
9178
- threshold?: "ok" | "ok+catch_all" | undefined;
9179
- } | undefined;
9180
- } | undefined;
9181
- personalization?: {
9182
- industryContext?: string | undefined;
9183
- emailBody?: string | undefined;
9184
- creativeDirection?: string | undefined;
9185
- exclusionRules?: string[] | undefined;
9186
- } | undefined;
9187
- pipeline?: {
9188
- steps: {
9189
- key: string;
9190
- label: string;
9191
- resourceId: string;
9192
- inputTemplate: Record<string, unknown>;
9193
- enabled: boolean;
9194
- order: number;
9195
- }[];
9196
- } | undefined;
9324
+ scrapingConfig: {
9325
+ vertical?: string | undefined;
9326
+ geography?: string | undefined;
9327
+ size?: string | undefined;
9328
+ apifyInput?: Record<string, unknown> | undefined;
9197
9329
  };
9198
- }, Error, {
9199
- qualification?: {
9330
+ icp: {
9331
+ qualificationRubricKey?: string | null | undefined;
9200
9332
  targetDescription?: string | undefined;
9201
9333
  minReviewCount?: number | undefined;
9202
9334
  minRating?: number | undefined;
9203
9335
  excludeFranchises?: boolean | undefined;
9204
9336
  customRules?: string | undefined;
9337
+ };
9338
+ pipelineConfig: {
9339
+ stages?: {
9340
+ key: string;
9341
+ label?: string | undefined;
9342
+ enabled?: boolean | undefined;
9343
+ order?: number | undefined;
9344
+ }[] | undefined;
9345
+ };
9346
+ }, Error, {
9347
+ scrapingConfig?: {
9348
+ vertical?: string | undefined;
9349
+ geography?: string | undefined;
9350
+ size?: string | undefined;
9351
+ apifyInput?: Record<string, unknown> | undefined;
9205
9352
  } | undefined;
9206
- enrichment?: {
9207
- emailDiscovery?: {
9208
- primary: "tomba" | "anymailfinder";
9209
- credentialName?: string | undefined;
9210
- } | undefined;
9211
- emailVerification?: {
9212
- provider: "millionverifier";
9213
- threshold?: "ok" | "ok+catch_all" | undefined;
9214
- } | undefined;
9215
- } | undefined;
9216
- personalization?: {
9217
- industryContext?: string | undefined;
9218
- emailBody?: string | undefined;
9219
- creativeDirection?: string | undefined;
9220
- exclusionRules?: string[] | undefined;
9353
+ icp?: {
9354
+ qualificationRubricKey?: string | null | undefined;
9355
+ targetDescription?: string | undefined;
9356
+ minReviewCount?: number | undefined;
9357
+ minRating?: number | undefined;
9358
+ excludeFranchises?: boolean | undefined;
9359
+ customRules?: string | undefined;
9221
9360
  } | undefined;
9222
- pipeline?: {
9223
- steps?: {
9361
+ pipelineConfig?: {
9362
+ stages?: {
9224
9363
  key: string;
9225
- label: string;
9226
- resourceId: string;
9227
- inputTemplate: Record<string, unknown>;
9228
- enabled: boolean;
9229
- order: number;
9364
+ label?: string | undefined;
9365
+ enabled?: boolean | undefined;
9366
+ order?: number | undefined;
9230
9367
  }[] | undefined;
9231
9368
  } | undefined;
9232
9369
  }, unknown>;
@@ -9571,6 +9708,166 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
9571
9708
  }, unknown>;
9572
9709
  declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
9573
9710
 
9711
+ declare const leadGenArtifactKeys: {
9712
+ all: readonly ["lead-gen-artifacts"];
9713
+ list: (organizationId: string | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", string | null, "company" | "contact" | "list" | "deal" | "list_member", string];
9714
+ };
9715
+ interface UseArtifactsParams {
9716
+ ownerKind: AcqArtifactOwnerKind;
9717
+ ownerId: string;
9718
+ }
9719
+ declare function useArtifacts({ ownerKind, ownerId }: UseArtifactsParams): _tanstack_react_query.UseQueryResult<{
9720
+ artifacts: {
9721
+ id: string;
9722
+ organizationId: string;
9723
+ ownerKind: string;
9724
+ ownerId: string;
9725
+ kind: string;
9726
+ content: Record<string, unknown>;
9727
+ sourceExecutionId: string | null;
9728
+ createdBy: string | null;
9729
+ createdAt: string;
9730
+ version: number;
9731
+ }[];
9732
+ }, Error>;
9733
+ declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
9734
+ id: string;
9735
+ organizationId: string;
9736
+ ownerKind: string;
9737
+ ownerId: string;
9738
+ kind: string;
9739
+ content: Record<string, unknown>;
9740
+ sourceExecutionId: string | null;
9741
+ createdBy: string | null;
9742
+ createdAt: string;
9743
+ version: number;
9744
+ }, Error, {
9745
+ ownerKind: "company" | "contact" | "list" | "deal" | "list_member";
9746
+ ownerId: string;
9747
+ kind: string;
9748
+ content: Record<string, unknown>;
9749
+ sourceExecutionId?: string | undefined;
9750
+ }, unknown>;
9751
+
9752
+ declare const leadGenListMemberKeys: {
9753
+ all: readonly ["lead-gen-list-members"];
9754
+ list: (organizationId: string | null, listId: string) => readonly ["lead-gen-list-members", string | null, "list", string];
9755
+ detail: (organizationId: string | null, memberId: string) => readonly ["lead-gen-list-members", string | null, "detail", string];
9756
+ };
9757
+ declare function useListMembers({ listId }: {
9758
+ listId: string;
9759
+ }): _tanstack_react_query.UseQueryResult<{
9760
+ members: {
9761
+ id: string;
9762
+ listId: string;
9763
+ contactId: string;
9764
+ pipelineKey: string;
9765
+ stageKey: string;
9766
+ stateKey: string;
9767
+ activityLog: unknown;
9768
+ addedAt: string;
9769
+ addedBy: string | null;
9770
+ sourceExecutionId: string | null;
9771
+ contact: {
9772
+ id: string;
9773
+ email: string;
9774
+ firstName: string | null;
9775
+ lastName: string | null;
9776
+ title: string | null;
9777
+ linkedinUrl: string | null;
9778
+ companyId: string | null;
9779
+ } | null;
9780
+ }[];
9781
+ }, Error>;
9782
+ declare function useListMember(memberId: string): _tanstack_react_query.UseQueryResult<{
9783
+ id: string;
9784
+ listId: string;
9785
+ contactId: string;
9786
+ pipelineKey: string;
9787
+ stageKey: string;
9788
+ stateKey: string;
9789
+ activityLog: unknown;
9790
+ addedAt: string;
9791
+ addedBy: string | null;
9792
+ sourceExecutionId: string | null;
9793
+ contact: {
9794
+ id: string;
9795
+ email: string;
9796
+ firstName: string | null;
9797
+ lastName: string | null;
9798
+ title: string | null;
9799
+ linkedinUrl: string | null;
9800
+ companyId: string | null;
9801
+ } | null;
9802
+ }, Error>;
9803
+
9804
+ interface TransitionListMemberInput extends TransitionItemRequest {
9805
+ memberId: string;
9806
+ /** Used to invalidate the parent list's member roster after transition. */
9807
+ listId?: string;
9808
+ }
9809
+ /**
9810
+ * Transition a list-member's stage/state via PATCH /acquisition/list-members/:memberId/transition.
9811
+ *
9812
+ * On success invalidates the member detail and, if listId is provided, the member
9813
+ * roster for that list. Mirrors useTransitionItem.ts structure.
9814
+ */
9815
+ declare function useTransitionListMember(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListMemberInput, unknown>;
9816
+
9817
+ declare const leadGenListCompanyKeys: {
9818
+ all: readonly ["lead-gen-list-companies"];
9819
+ detail: (organizationId: string | null, listCompanyId: string) => readonly ["lead-gen-list-companies", string | null, "detail", string];
9820
+ };
9821
+ interface TransitionListCompanyInput extends TransitionItemRequest {
9822
+ listCompanyId: string;
9823
+ /** Used to invalidate the parent list telemetry after transition. */
9824
+ listId?: string;
9825
+ }
9826
+ /**
9827
+ * Transition a list-company's stage/state via PATCH /acquisition/list-companies/:listCompanyId/transition.
9828
+ *
9829
+ * On success invalidates the list-company detail and, if listId is provided, the
9830
+ * parent list telemetry. Mirrors useTransitionItem.ts structure.
9831
+ */
9832
+ declare function useTransitionListCompany(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListCompanyInput, unknown>;
9833
+
9834
+ /**
9835
+ * Stateful item shape accepted by useDeriveActions.
9836
+ *
9837
+ * Currently deriveActions() is typed for AcqDealRow (CRM HITL deals). For lists
9838
+ * and list-members we accept the Stateful quartet + id so callers can pass those
9839
+ * items without a cast. When a third pipeline appears, consolidate into a shared
9840
+ * trait method on deriveActions itself.
9841
+ *
9842
+ * Decision C3: duplicate per-entity logic until a third pipeline warrants abstraction.
9843
+ */
9844
+ interface StatefulItem {
9845
+ id: string;
9846
+ pipeline_key: string;
9847
+ stage_key: string | null;
9848
+ state_key: string | null;
9849
+ activity_log: unknown;
9850
+ organization_id?: string;
9851
+ }
9852
+ /**
9853
+ * Derives contextual action buttons for a Stateful item.
9854
+ *
9855
+ * For deal items the full deriveActions() logic from @repo/core runs.
9856
+ * For non-deal items (lists, list-members, list-companies) the pipeline key
9857
+ * is 'lead-gen' and the action set will be wired in Track C Step 5+6 once
9858
+ * the lead-gen pipeline definition ships action configs. Returns [] until then.
9859
+ *
9860
+ * @param item - Any Stateful item (deal, list, list-member, etc.)
9861
+ * @returns Derived Action[] for rendering in an action toolbar.
9862
+ */
9863
+ declare function useDeriveActions(item: StatefulItem | null | undefined): Action[];
9864
+
9865
+ interface UpdateListStatusInput {
9866
+ listId: string;
9867
+ status: ListStatus;
9868
+ }
9869
+ declare function useUpdateListStatus(): _tanstack_react_query.UseMutationResult<void, Error, UpdateListStatusInput, unknown>;
9870
+
9574
9871
  interface CreateApiKeyRequest {
9575
9872
  name: string;
9576
9873
  }
@@ -10742,6 +11039,16 @@ interface OrganizationSwitcherProps {
10742
11039
  }
10743
11040
  declare function OrganizationSwitcher({ currentOrganization, memberships, isLoading, onSwitch }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
10744
11041
 
11042
+ /**
11043
+ * Self-wired OrganizationSwitcher that internally handles both the WorkOS JWT update
11044
+ * (via AuthKit switchToOrganization) and the provider state update (via switchOrganization).
11045
+ *
11046
+ * Drop-in replacement for a custom onSwitch handler in most apps. If the app needs
11047
+ * post-switch side effects (e.g. navigating away from an org-scoped route), keep that
11048
+ * logic app-local and call useOrganization().switchOrganization directly.
11049
+ */
11050
+ declare function OrganizationSwitcherConnected(): react_jsx_runtime.JSX.Element;
11051
+
10745
11052
  interface OrganizationsState {
10746
11053
  currentWorkOSOrganizationId: string | null;
10747
11054
  currentSupabaseOrganizationId: string | null;
@@ -10929,5 +11236,5 @@ declare function InitializationProvider({ children }: {
10929
11236
  children: ReactNode;
10930
11237
  }): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
10931
11238
 
10932
- export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, collectResourceFilterFacets, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceFilterFacetIds, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, labelResourceFilterFacet, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAssignRole, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDirectedChainHighlighting, useEffectivePermissions, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useHasPermission, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrgRoles, useOrganization, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, usePresetsContext, useProfile, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useTransitionItem, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
10933
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AssignRoleInput, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus, FailingResource, FeatureAccessResult, FeatureIconComponent, FeatureModule, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrgRole, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellFeature, ResolvedShellModel, ResolvedShellRouteMatch, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, TransitionItemInput, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
11239
+ export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, CrmActionsProvider, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, collectResourceFilterFacets, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceFilterFacetIds, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useDirectedChainHighlighting, useEffectivePermissions, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useHasPermission, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrgRoles, useOrganization, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, usePresetsContext, useProfile, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
11240
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AssignRoleInput, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus, FailingResource, FeatureAccessResult, FeatureIconComponent, FeatureModule, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrgRole, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellFeature, ResolvedShellModel, ResolvedShellRouteMatch, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };