@datatechsolutions/ui 2.11.85 → 2.11.87

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 (89) hide show
  1. package/dist/astrlabe/index.d.mts +5 -77
  2. package/dist/astrlabe/index.d.ts +5 -77
  3. package/dist/astrlabe/utils.d.mts +3 -18
  4. package/dist/astrlabe/utils.d.ts +3 -18
  5. package/dist/billing-panel-DsHhhJqG.d.mts +18 -0
  6. package/dist/billing-panel-DsHhhJqG.d.ts +18 -0
  7. package/dist/chunk-4667D2ZT.mjs +61 -0
  8. package/dist/chunk-4667D2ZT.mjs.map +1 -0
  9. package/dist/chunk-5HXDJBVX.mjs +1330 -0
  10. package/dist/chunk-5HXDJBVX.mjs.map +1 -0
  11. package/dist/chunk-DJ33CSGJ.mjs +126 -0
  12. package/dist/chunk-DJ33CSGJ.mjs.map +1 -0
  13. package/dist/chunk-F4TOOARV.mjs +503 -0
  14. package/dist/chunk-F4TOOARV.mjs.map +1 -0
  15. package/dist/chunk-GEUGFYLO.mjs +237 -0
  16. package/dist/chunk-GEUGFYLO.mjs.map +1 -0
  17. package/dist/chunk-LBALE4JX.js +1342 -0
  18. package/dist/chunk-LBALE4JX.js.map +1 -0
  19. package/dist/chunk-MXFEU7A6.js +148 -0
  20. package/dist/chunk-MXFEU7A6.js.map +1 -0
  21. package/dist/{chunk-6OWYGDNW.mjs → chunk-NAQ32ZPG.mjs} +6 -6
  22. package/dist/{chunk-6OWYGDNW.mjs.map → chunk-NAQ32ZPG.mjs.map} +1 -1
  23. package/dist/chunk-NBCOVUQP.mjs +142 -0
  24. package/dist/chunk-NBCOVUQP.mjs.map +1 -0
  25. package/dist/chunk-P4RVGMZL.js +128 -0
  26. package/dist/chunk-P4RVGMZL.js.map +1 -0
  27. package/dist/chunk-Q2MG7S2E.js +239 -0
  28. package/dist/chunk-Q2MG7S2E.js.map +1 -0
  29. package/dist/chunk-RV555OEO.mjs +1009 -0
  30. package/dist/chunk-RV555OEO.mjs.map +1 -0
  31. package/dist/chunk-SAYVWIMJ.js +63 -0
  32. package/dist/chunk-SAYVWIMJ.js.map +1 -0
  33. package/dist/chunk-SUHNSUMH.mjs +1021 -0
  34. package/dist/chunk-SUHNSUMH.mjs.map +1 -0
  35. package/dist/chunk-TOEMSC4P.mjs +99 -0
  36. package/dist/chunk-TOEMSC4P.mjs.map +1 -0
  37. package/dist/{chunk-6F3IMKDZ.js → chunk-URDQSUW6.js} +7 -2
  38. package/dist/{chunk-6F3IMKDZ.js.map → chunk-URDQSUW6.js.map} +1 -1
  39. package/dist/chunk-UUHV5KHF.js +505 -0
  40. package/dist/chunk-UUHV5KHF.js.map +1 -0
  41. package/dist/chunk-UVEPTYZC.js +101 -0
  42. package/dist/chunk-UVEPTYZC.js.map +1 -0
  43. package/dist/chunk-X2KCCQPL.js +1049 -0
  44. package/dist/chunk-X2KCCQPL.js.map +1 -0
  45. package/dist/chunk-ZARCUQA6.js +1015 -0
  46. package/dist/chunk-ZARCUQA6.js.map +1 -0
  47. package/dist/layout-engine-YZcVr20M.d.mts +19 -0
  48. package/dist/layout-engine-YZcVr20M.d.ts +19 -0
  49. package/dist/platform/admin/index.d.mts +17 -0
  50. package/dist/platform/admin/index.d.ts +17 -0
  51. package/dist/platform/admin/index.js +39 -0
  52. package/dist/platform/admin/index.js.map +1 -0
  53. package/dist/platform/admin/index.mjs +10 -0
  54. package/dist/platform/admin/index.mjs.map +1 -0
  55. package/dist/platform/agents-workspace.js +2 -2
  56. package/dist/platform/agents-workspace.mjs +1 -1
  57. package/dist/platform/auth/index.d.mts +73 -0
  58. package/dist/platform/auth/index.d.ts +73 -0
  59. package/dist/platform/auth/index.js +107 -0
  60. package/dist/platform/auth/index.js.map +1 -0
  61. package/dist/platform/auth/index.mjs +10 -0
  62. package/dist/platform/auth/index.mjs.map +1 -0
  63. package/dist/platform/billing/index.d.mts +29 -0
  64. package/dist/platform/billing/index.d.ts +29 -0
  65. package/dist/platform/billing/index.js +22 -0
  66. package/dist/platform/billing/index.js.map +1 -0
  67. package/dist/platform/billing/index.mjs +9 -0
  68. package/dist/platform/billing/index.mjs.map +1 -0
  69. package/dist/platform/impersonation/index.d.mts +19 -0
  70. package/dist/platform/impersonation/index.d.ts +19 -0
  71. package/dist/platform/impersonation/index.js +17 -0
  72. package/dist/platform/impersonation/index.js.map +1 -0
  73. package/dist/platform/impersonation/index.mjs +8 -0
  74. package/dist/platform/impersonation/index.mjs.map +1 -0
  75. package/dist/platform/index.d.mts +53 -3
  76. package/dist/platform/index.d.ts +53 -3
  77. package/dist/platform/index.js +163 -2
  78. package/dist/platform/index.js.map +1 -1
  79. package/dist/platform/index.mjs +10 -1
  80. package/dist/platform/index.mjs.map +1 -1
  81. package/dist/platform/settings/index.d.mts +31 -0
  82. package/dist/platform/settings/index.d.ts +31 -0
  83. package/dist/platform/settings/index.js +21 -0
  84. package/dist/platform/settings/index.js.map +1 -0
  85. package/dist/platform/settings/index.mjs +12 -0
  86. package/dist/platform/settings/index.mjs.map +1 -0
  87. package/dist/workflow-store-o17I6L6A.d.ts +79 -0
  88. package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
  89. package/package.json +26 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ export { ConsentScreen, ForgotPassword, MfaChallenge, PasswordlessSignIn, ResetPassword, SignIn, SignUp, SsoConnectorList, SsoEmailForm, UserButton, VerifyEmail } from '../../chunk-5HXDJBVX.mjs';
3
+ export { LinkedAccountsTabContent, MfaManage, MfaSetup, ProfileTabContent, SecurityTabContent, SessionsTabContent, UserProfile } from '../../chunk-SUHNSUMH.mjs';
4
+ export { AuthLayout, BackupCodeGrid, OtpInput, PasswordStrengthMeter, SocialLoginButtons } from '../../chunk-NBCOVUQP.mjs';
5
+ import '../../chunk-ZJQ5RLGK.mjs';
6
+ import '../../chunk-D2JF6C3E.mjs';
7
+ import '../../chunk-7VJ7CMMT.mjs';
8
+ import '../../chunk-QWG2FMUN.mjs';
9
+ //# sourceMappingURL=index.mjs.map
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,29 @@
1
+ export { B as BillingPanel, a as BillingPanelProps } from '../../billing-panel-DsHhhJqG.mjs';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ReactNode } from 'react';
4
+ import { SubscriptionTier } from '@datatechsolutions/shared-domain';
5
+
6
+ interface UpgradePromptProps {
7
+ /** The user's current subscription tier */
8
+ currentTier: SubscriptionTier;
9
+ /** The minimum tier required for access (shown in the prompt) */
10
+ requiredTier?: SubscriptionTier;
11
+ /** Feature name that triggered the prompt */
12
+ feature?: string;
13
+ /** Called when the user clicks "Upgrade Now" */
14
+ onUpgrade?: () => void;
15
+ /** Called when the user dismisses the prompt */
16
+ onDismiss?: () => void;
17
+ /** Optional custom content to render inside the card */
18
+ children?: ReactNode;
19
+ }
20
+ /**
21
+ * A glassmorphism-styled upgrade prompt shown when users hit subscription
22
+ * limits or try to access features above their current tier.
23
+ *
24
+ * Renders a card with the current tier, the required tier (or feature name),
25
+ * and action buttons for upgrading or dismissing.
26
+ */
27
+ declare function UpgradePrompt({ currentTier, requiredTier, feature, onUpgrade, onDismiss, children, }: UpgradePromptProps): react_jsx_runtime.JSX.Element;
28
+
29
+ export { UpgradePrompt, type UpgradePromptProps };
@@ -0,0 +1,29 @@
1
+ export { B as BillingPanel, a as BillingPanelProps } from '../../billing-panel-DsHhhJqG.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ReactNode } from 'react';
4
+ import { SubscriptionTier } from '@datatechsolutions/shared-domain';
5
+
6
+ interface UpgradePromptProps {
7
+ /** The user's current subscription tier */
8
+ currentTier: SubscriptionTier;
9
+ /** The minimum tier required for access (shown in the prompt) */
10
+ requiredTier?: SubscriptionTier;
11
+ /** Feature name that triggered the prompt */
12
+ feature?: string;
13
+ /** Called when the user clicks "Upgrade Now" */
14
+ onUpgrade?: () => void;
15
+ /** Called when the user dismisses the prompt */
16
+ onDismiss?: () => void;
17
+ /** Optional custom content to render inside the card */
18
+ children?: ReactNode;
19
+ }
20
+ /**
21
+ * A glassmorphism-styled upgrade prompt shown when users hit subscription
22
+ * limits or try to access features above their current tier.
23
+ *
24
+ * Renders a card with the current tier, the required tier (or feature name),
25
+ * and action buttons for upgrading or dismissing.
26
+ */
27
+ declare function UpgradePrompt({ currentTier, requiredTier, feature, onUpgrade, onDismiss, children, }: UpgradePromptProps): react_jsx_runtime.JSX.Element;
28
+
29
+ export { UpgradePrompt, type UpgradePromptProps };
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var chunkP4RVGMZL_js = require('../../chunk-P4RVGMZL.js');
5
+ var chunkQ2MG7S2E_js = require('../../chunk-Q2MG7S2E.js');
6
+ require('../../chunk-KNXAOJAK.js');
7
+ require('../../chunk-UZ3CMNUJ.js');
8
+ require('../../chunk-YXN2K77G.js');
9
+ require('../../chunk-S7KHTUHA.js');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "UpgradePrompt", {
14
+ enumerable: true,
15
+ get: function () { return chunkP4RVGMZL_js.UpgradePrompt; }
16
+ });
17
+ Object.defineProperty(exports, "BillingPanel", {
18
+ enumerable: true,
19
+ get: function () { return chunkQ2MG7S2E_js.BillingPanel; }
20
+ });
21
+ //# sourceMappingURL=index.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ export { UpgradePrompt } from '../../chunk-DJ33CSGJ.mjs';
3
+ export { BillingPanel } from '../../chunk-GEUGFYLO.mjs';
4
+ import '../../chunk-ZJQ5RLGK.mjs';
5
+ import '../../chunk-D2JF6C3E.mjs';
6
+ import '../../chunk-7VJ7CMMT.mjs';
7
+ import '../../chunk-QWG2FMUN.mjs';
8
+ //# sourceMappingURL=index.mjs.map
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ImpersonationBannerProps {
4
+ /**
5
+ * Callback fired after the impersonation session ends (after the admin
6
+ * token is restored). Useful for refreshing the UI or navigating home.
7
+ */
8
+ onExit?: () => void;
9
+ /** Optional extra classes on the outer bar. */
10
+ className?: string;
11
+ }
12
+ /**
13
+ * Persistent banner shown while the current session is an impersonation
14
+ * session. Shows the admin's identity + target, and an Exit button that
15
+ * terminates the session. Invisible when not impersonating.
16
+ */
17
+ declare function ImpersonationBanner({ onExit, className }: ImpersonationBannerProps): react_jsx_runtime.JSX.Element | null;
18
+
19
+ export { ImpersonationBanner, type ImpersonationBannerProps };
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ImpersonationBannerProps {
4
+ /**
5
+ * Callback fired after the impersonation session ends (after the admin
6
+ * token is restored). Useful for refreshing the UI or navigating home.
7
+ */
8
+ onExit?: () => void;
9
+ /** Optional extra classes on the outer bar. */
10
+ className?: string;
11
+ }
12
+ /**
13
+ * Persistent banner shown while the current session is an impersonation
14
+ * session. Shows the admin's identity + target, and an Exit button that
15
+ * terminates the session. Invisible when not impersonating.
16
+ */
17
+ declare function ImpersonationBanner({ onExit, className }: ImpersonationBannerProps): react_jsx_runtime.JSX.Element | null;
18
+
19
+ export { ImpersonationBanner, type ImpersonationBannerProps };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var chunkSAYVWIMJ_js = require('../../chunk-SAYVWIMJ.js');
5
+ require('../../chunk-KNXAOJAK.js');
6
+ require('../../chunk-UZ3CMNUJ.js');
7
+ require('../../chunk-YXN2K77G.js');
8
+ require('../../chunk-S7KHTUHA.js');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, "ImpersonationBanner", {
13
+ enumerable: true,
14
+ get: function () { return chunkSAYVWIMJ_js.ImpersonationBanner; }
15
+ });
16
+ //# sourceMappingURL=index.js.map
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ export { ImpersonationBanner } from '../../chunk-4667D2ZT.mjs';
3
+ import '../../chunk-ZJQ5RLGK.mjs';
4
+ import '../../chunk-D2JF6C3E.mjs';
5
+ import '../../chunk-7VJ7CMMT.mjs';
6
+ import '../../chunk-QWG2FMUN.mjs';
7
+ //# sourceMappingURL=index.mjs.map
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -1,16 +1,27 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SessionSwitcherProps, LocaleCode, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
2
+ import { SessionSwitcherProps, LocaleCode, WorkflowExecutionEvent, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
3
3
  import { ReactNode } from 'react';
4
4
  import { AuthUser } from '@datatechsolutions/windsock/client';
5
5
  export { PlatformAppShell, PlatformAppShellProps } from './app-shell.mjs';
6
6
  import { N as NavigationItem } from '../navigation-BiWVffAN.mjs';
7
+ import { VariableValue, Workflow } from '../astrlabe/contracts.mjs';
8
+ import { N as NodeRunResult } from '../workflow-store-ppVHdMZi.mjs';
7
9
  import { PlatformRoleDefinition } from './rbac.mjs';
8
10
  export { CreatePlatformRbacOptions, PlatformRbac, createPlatformRbac } from './rbac.mjs';
9
- import { Workflow } from '../astrlabe/contracts.mjs';
10
11
  export { WorkflowCanvasShell } from './workflow-canvas-shell.mjs';
11
12
  export { AgentsWorkspace, AgentsWorkspaceProps } from './agents-workspace.mjs';
12
13
  export { CreateSecretInput, SecretDetail, SecretSummary, UpdateSecretInput, addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain } from './windsock-admin-client.mjs';
13
14
  import { AdminUserSummary, AuthOrganization } from '@datatechsolutions/shared-domain';
15
+ export { AdminClient, AdminCreateInvitationInput, AdminCreateOrganizationInput, AdminCreatePermissionInput, AdminCreateUserInput, AdminListParams, AdminListResult, AdminOrganizationDetailProps, AdminOrganizationDetailTab, AdminOrganizationFormProps, AdminOrganizationListProps, AdminOrganizationMember, AdminPermissionListProps, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput, AdminUserFormProps, AdminUserListProps, AdminUserSummary, ConsentScreenProps, ForgotPasswordProps, MfaChallengeProps, MfaManageProps, MfaSetupProps, PasswordlessSignInProps, ResetPasswordProps, SignInProps, SignUpProps, SsoConnector, SsoConnectorListProps, SsoEmailFormProps, UserButtonProps, UserProfileProps, VerifyEmailProps } from '@datatechsolutions/shared-domain';
16
+ export { AuthLayout, AuthLayoutProps, BackupCodeGrid, BackupCodeGridProps, ConsentScreen, ForgotPassword, LinkedAccountsTabContent, MfaChallenge, MfaManage, MfaSetup, OtpInput, OtpInputProps, PasswordStrengthMeter, PasswordStrengthMeterProps, PasswordlessSignIn, ProfileTabContent, ResetPassword, SecurityTabContent, SessionsTabContent, SignIn, SignUp, SocialLoginButtons, SocialLoginButtonsProps, SocialProvider, SsoConnectorList, SsoEmailForm, UserButton, UserProfile, VerifyEmail } from './auth/index.mjs';
17
+ export { B as BillingPanel, a as BillingPanelProps } from '../billing-panel-DsHhhJqG.mjs';
18
+ export { UpgradePrompt, UpgradePromptProps } from './billing/index.mjs';
19
+ export { ImpersonationBanner, ImpersonationBannerProps } from './impersonation/index.mjs';
20
+ export { AdminOrganizationDetail, AdminOrganizationForm, AdminOrganizationList, AdminPermissionList, AdminUserForm, AdminUserList } from './admin/index.mjs';
21
+ export { PlatformSettings, PlatformSettingsProps, PlatformSettingsSection } from './settings/index.mjs';
22
+ import 'zustand';
23
+ import '@xyflow/react';
24
+ import '../layout-engine-YZcVr20M.mjs';
14
25
 
15
26
  declare function SessionSwitcher({ organizations, users, organizationId, userEmail, onOrganizationChange, onUserChange, }: SessionSwitcherProps): react_jsx_runtime.JSX.Element;
16
27
 
@@ -74,6 +85,45 @@ declare function useLocaleSwitcher(): {
74
85
  locales: readonly LocaleCode[];
75
86
  };
76
87
 
88
+ declare function useWorkflowExecution(workflowId: string): {
89
+ isRunning: boolean;
90
+ execute: (inputVariables?: Record<string, VariableValue>) => Promise<void>;
91
+ stop: () => void;
92
+ runId: string | null;
93
+ runStatus: "error" | "idle" | "completed" | "failed" | "streaming";
94
+ };
95
+
96
+ type RunEventStreamState = {
97
+ /** All events received so far, in order */
98
+ events: WorkflowExecutionEvent[];
99
+ /** Whether the stream is currently connected */
100
+ isStreaming: boolean;
101
+ /** Terminal status once the workflow finishes */
102
+ status: 'idle' | 'streaming' | 'completed' | 'failed' | 'error';
103
+ /** Error message if stream errored */
104
+ error: string | null;
105
+ };
106
+ /**
107
+ * React hook that subscribes to real-time workflow execution events.
108
+ *
109
+ * Automatically selects transport:
110
+ * - WebSocket when VITE_WS_ENDPOINT is set (AWS production)
111
+ * - SSE when running locally (Kafka-backed)
112
+ *
113
+ * The stream auto-closes when the workflow completes or fails.
114
+ * Reconnects automatically if the connection drops (up to 3 retries).
115
+ */
116
+ declare function useRunEvents(workflowId: string | null, runId: string | null): RunEventStreamState;
117
+
118
+ type WorkflowRunPresentationActions = {
119
+ clearNodeResults: () => void;
120
+ setIsRunning: (running: boolean) => void;
121
+ setNodeResult: (nodeId: string, result: NodeRunResult) => void;
122
+ };
123
+ declare function resetWorkflowRunPresentation(actions: WorkflowRunPresentationActions): void;
124
+ declare function applyWorkflowExecutionEventToStore(actions: WorkflowRunPresentationActions, event: WorkflowExecutionEvent): void;
125
+ declare function useWorkflowRunPresentation(events: WorkflowExecutionEvent[], status: RunEventStreamState['status']): void;
126
+
77
127
  type UsersSettingsSectionProps = {
78
128
  /**
79
129
  * Role normalizer produced by each app's `createPlatformRbac()` call.
@@ -135,4 +185,4 @@ declare function mapAdminUser(row: AdminUserSummary, normalizeRole: (input: unkn
135
185
  declare const ORG_ROLE_MAP: Record<string, 'owner' | 'admin' | 'member' | 'viewer'>;
136
186
  declare function mapRoleToOrgRole(role: string): 'owner' | 'admin' | 'member' | 'viewer';
137
187
 
138
- export { AiWorkflowGenerateModal, ORG_ROLE_MAP, PlatformDockContainer, type PlatformDockContainerProps, PlatformRoleDefinition, PlatformStateProvider, type PlatformStateProviderProps, PreferencesControls, RolesSettingsSection, type RolesSettingsSectionProps, SessionSwitcher, UsersSettingsSection, type UsersSettingsSectionProps, WorkflowTemplateModal, type WorkflowTemplateModalProps, WorkflowWorkspace, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, useLocaleSwitcher, usePlatformState };
188
+ export { AiWorkflowGenerateModal, ORG_ROLE_MAP, PlatformDockContainer, type PlatformDockContainerProps, PlatformRoleDefinition, PlatformStateProvider, type PlatformStateProviderProps, PreferencesControls, RolesSettingsSection, type RolesSettingsSectionProps, type RunEventStreamState, SessionSwitcher, UsersSettingsSection, type UsersSettingsSectionProps, WorkflowTemplateModal, type WorkflowTemplateModalProps, WorkflowWorkspace, applyWorkflowExecutionEventToStore, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, resetWorkflowRunPresentation, useLocaleSwitcher, usePlatformState, useRunEvents, useWorkflowExecution, useWorkflowRunPresentation };
@@ -1,16 +1,27 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SessionSwitcherProps, LocaleCode, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
2
+ import { SessionSwitcherProps, LocaleCode, WorkflowExecutionEvent, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
3
3
  import { ReactNode } from 'react';
4
4
  import { AuthUser } from '@datatechsolutions/windsock/client';
5
5
  export { PlatformAppShell, PlatformAppShellProps } from './app-shell.js';
6
6
  import { N as NavigationItem } from '../navigation-BiWVffAN.js';
7
+ import { VariableValue, Workflow } from '../astrlabe/contracts.js';
8
+ import { N as NodeRunResult } from '../workflow-store-o17I6L6A.js';
7
9
  import { PlatformRoleDefinition } from './rbac.js';
8
10
  export { CreatePlatformRbacOptions, PlatformRbac, createPlatformRbac } from './rbac.js';
9
- import { Workflow } from '../astrlabe/contracts.js';
10
11
  export { WorkflowCanvasShell } from './workflow-canvas-shell.js';
11
12
  export { AgentsWorkspace, AgentsWorkspaceProps } from './agents-workspace.js';
12
13
  export { CreateSecretInput, SecretDetail, SecretSummary, UpdateSecretInput, addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain } from './windsock-admin-client.js';
13
14
  import { AdminUserSummary, AuthOrganization } from '@datatechsolutions/shared-domain';
15
+ export { AdminClient, AdminCreateInvitationInput, AdminCreateOrganizationInput, AdminCreatePermissionInput, AdminCreateUserInput, AdminListParams, AdminListResult, AdminOrganizationDetailProps, AdminOrganizationDetailTab, AdminOrganizationFormProps, AdminOrganizationListProps, AdminOrganizationMember, AdminPermissionListProps, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput, AdminUserFormProps, AdminUserListProps, AdminUserSummary, ConsentScreenProps, ForgotPasswordProps, MfaChallengeProps, MfaManageProps, MfaSetupProps, PasswordlessSignInProps, ResetPasswordProps, SignInProps, SignUpProps, SsoConnector, SsoConnectorListProps, SsoEmailFormProps, UserButtonProps, UserProfileProps, VerifyEmailProps } from '@datatechsolutions/shared-domain';
16
+ export { AuthLayout, AuthLayoutProps, BackupCodeGrid, BackupCodeGridProps, ConsentScreen, ForgotPassword, LinkedAccountsTabContent, MfaChallenge, MfaManage, MfaSetup, OtpInput, OtpInputProps, PasswordStrengthMeter, PasswordStrengthMeterProps, PasswordlessSignIn, ProfileTabContent, ResetPassword, SecurityTabContent, SessionsTabContent, SignIn, SignUp, SocialLoginButtons, SocialLoginButtonsProps, SocialProvider, SsoConnectorList, SsoEmailForm, UserButton, UserProfile, VerifyEmail } from './auth/index.js';
17
+ export { B as BillingPanel, a as BillingPanelProps } from '../billing-panel-DsHhhJqG.js';
18
+ export { UpgradePrompt, UpgradePromptProps } from './billing/index.js';
19
+ export { ImpersonationBanner, ImpersonationBannerProps } from './impersonation/index.js';
20
+ export { AdminOrganizationDetail, AdminOrganizationForm, AdminOrganizationList, AdminPermissionList, AdminUserForm, AdminUserList } from './admin/index.js';
21
+ export { PlatformSettings, PlatformSettingsProps, PlatformSettingsSection } from './settings/index.js';
22
+ import 'zustand';
23
+ import '@xyflow/react';
24
+ import '../layout-engine-YZcVr20M.js';
14
25
 
15
26
  declare function SessionSwitcher({ organizations, users, organizationId, userEmail, onOrganizationChange, onUserChange, }: SessionSwitcherProps): react_jsx_runtime.JSX.Element;
16
27
 
@@ -74,6 +85,45 @@ declare function useLocaleSwitcher(): {
74
85
  locales: readonly LocaleCode[];
75
86
  };
76
87
 
88
+ declare function useWorkflowExecution(workflowId: string): {
89
+ isRunning: boolean;
90
+ execute: (inputVariables?: Record<string, VariableValue>) => Promise<void>;
91
+ stop: () => void;
92
+ runId: string | null;
93
+ runStatus: "error" | "idle" | "completed" | "failed" | "streaming";
94
+ };
95
+
96
+ type RunEventStreamState = {
97
+ /** All events received so far, in order */
98
+ events: WorkflowExecutionEvent[];
99
+ /** Whether the stream is currently connected */
100
+ isStreaming: boolean;
101
+ /** Terminal status once the workflow finishes */
102
+ status: 'idle' | 'streaming' | 'completed' | 'failed' | 'error';
103
+ /** Error message if stream errored */
104
+ error: string | null;
105
+ };
106
+ /**
107
+ * React hook that subscribes to real-time workflow execution events.
108
+ *
109
+ * Automatically selects transport:
110
+ * - WebSocket when VITE_WS_ENDPOINT is set (AWS production)
111
+ * - SSE when running locally (Kafka-backed)
112
+ *
113
+ * The stream auto-closes when the workflow completes or fails.
114
+ * Reconnects automatically if the connection drops (up to 3 retries).
115
+ */
116
+ declare function useRunEvents(workflowId: string | null, runId: string | null): RunEventStreamState;
117
+
118
+ type WorkflowRunPresentationActions = {
119
+ clearNodeResults: () => void;
120
+ setIsRunning: (running: boolean) => void;
121
+ setNodeResult: (nodeId: string, result: NodeRunResult) => void;
122
+ };
123
+ declare function resetWorkflowRunPresentation(actions: WorkflowRunPresentationActions): void;
124
+ declare function applyWorkflowExecutionEventToStore(actions: WorkflowRunPresentationActions, event: WorkflowExecutionEvent): void;
125
+ declare function useWorkflowRunPresentation(events: WorkflowExecutionEvent[], status: RunEventStreamState['status']): void;
126
+
77
127
  type UsersSettingsSectionProps = {
78
128
  /**
79
129
  * Role normalizer produced by each app's `createPlatformRbac()` call.
@@ -135,4 +185,4 @@ declare function mapAdminUser(row: AdminUserSummary, normalizeRole: (input: unkn
135
185
  declare const ORG_ROLE_MAP: Record<string, 'owner' | 'admin' | 'member' | 'viewer'>;
136
186
  declare function mapRoleToOrgRole(role: string): 'owner' | 'admin' | 'member' | 'viewer';
137
187
 
138
- export { AiWorkflowGenerateModal, ORG_ROLE_MAP, PlatformDockContainer, type PlatformDockContainerProps, PlatformRoleDefinition, PlatformStateProvider, type PlatformStateProviderProps, PreferencesControls, RolesSettingsSection, type RolesSettingsSectionProps, SessionSwitcher, UsersSettingsSection, type UsersSettingsSectionProps, WorkflowTemplateModal, type WorkflowTemplateModalProps, WorkflowWorkspace, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, useLocaleSwitcher, usePlatformState };
188
+ export { AiWorkflowGenerateModal, ORG_ROLE_MAP, PlatformDockContainer, type PlatformDockContainerProps, PlatformRoleDefinition, PlatformStateProvider, type PlatformStateProviderProps, PreferencesControls, RolesSettingsSection, type RolesSettingsSectionProps, type RunEventStreamState, SessionSwitcher, UsersSettingsSection, type UsersSettingsSectionProps, WorkflowTemplateModal, type WorkflowTemplateModalProps, WorkflowWorkspace, applyWorkflowExecutionEventToStore, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, resetWorkflowRunPresentation, useLocaleSwitcher, usePlatformState, useRunEvents, useWorkflowExecution, useWorkflowRunPresentation };
@@ -2,8 +2,17 @@
2
2
  'use strict';
3
3
 
4
4
  var chunk3YVQXDKJ_js = require('../chunk-3YVQXDKJ.js');
5
+ var chunkZARCUQA6_js = require('../chunk-ZARCUQA6.js');
6
+ var chunkLBALE4JX_js = require('../chunk-LBALE4JX.js');
7
+ var chunkSAYVWIMJ_js = require('../chunk-SAYVWIMJ.js');
8
+ var chunkP4RVGMZL_js = require('../chunk-P4RVGMZL.js');
5
9
  var chunkK26RY4EQ_js = require('../chunk-K26RY4EQ.js');
6
- var chunk6F3IMKDZ_js = require('../chunk-6F3IMKDZ.js');
10
+ var chunkUVEPTYZC_js = require('../chunk-UVEPTYZC.js');
11
+ var chunkUUHV5KHF_js = require('../chunk-UUHV5KHF.js');
12
+ var chunkX2KCCQPL_js = require('../chunk-X2KCCQPL.js');
13
+ var chunkMXFEU7A6_js = require('../chunk-MXFEU7A6.js');
14
+ var chunkQ2MG7S2E_js = require('../chunk-Q2MG7S2E.js');
15
+ var chunkURDQSUW6_js = require('../chunk-URDQSUW6.js');
7
16
  require('../chunk-SV4SMITM.js');
8
17
  var chunk2URBM4LA_js = require('../chunk-2URBM4LA.js');
9
18
  var chunkHZ4LOVHM_js = require('../chunk-HZ4LOVHM.js');
@@ -552,13 +561,165 @@ Object.defineProperty(exports, "WorkflowCanvasShell", {
552
561
  enumerable: true,
553
562
  get: function () { return chunk3YVQXDKJ_js.WorkflowCanvasShell; }
554
563
  });
564
+ Object.defineProperty(exports, "AdminOrganizationForm", {
565
+ enumerable: true,
566
+ get: function () { return chunkZARCUQA6_js.AdminOrganizationForm; }
567
+ });
568
+ Object.defineProperty(exports, "AdminOrganizationList", {
569
+ enumerable: true,
570
+ get: function () { return chunkZARCUQA6_js.AdminOrganizationList; }
571
+ });
572
+ Object.defineProperty(exports, "AdminPermissionList", {
573
+ enumerable: true,
574
+ get: function () { return chunkZARCUQA6_js.AdminPermissionList; }
575
+ });
576
+ Object.defineProperty(exports, "AdminUserForm", {
577
+ enumerable: true,
578
+ get: function () { return chunkZARCUQA6_js.AdminUserForm; }
579
+ });
580
+ Object.defineProperty(exports, "AdminUserList", {
581
+ enumerable: true,
582
+ get: function () { return chunkZARCUQA6_js.AdminUserList; }
583
+ });
584
+ Object.defineProperty(exports, "ConsentScreen", {
585
+ enumerable: true,
586
+ get: function () { return chunkLBALE4JX_js.ConsentScreen; }
587
+ });
588
+ Object.defineProperty(exports, "ForgotPassword", {
589
+ enumerable: true,
590
+ get: function () { return chunkLBALE4JX_js.ForgotPassword; }
591
+ });
592
+ Object.defineProperty(exports, "MfaChallenge", {
593
+ enumerable: true,
594
+ get: function () { return chunkLBALE4JX_js.MfaChallenge; }
595
+ });
596
+ Object.defineProperty(exports, "PasswordlessSignIn", {
597
+ enumerable: true,
598
+ get: function () { return chunkLBALE4JX_js.PasswordlessSignIn; }
599
+ });
600
+ Object.defineProperty(exports, "ResetPassword", {
601
+ enumerable: true,
602
+ get: function () { return chunkLBALE4JX_js.ResetPassword; }
603
+ });
604
+ Object.defineProperty(exports, "SignIn", {
605
+ enumerable: true,
606
+ get: function () { return chunkLBALE4JX_js.SignIn; }
607
+ });
608
+ Object.defineProperty(exports, "SignUp", {
609
+ enumerable: true,
610
+ get: function () { return chunkLBALE4JX_js.SignUp; }
611
+ });
612
+ Object.defineProperty(exports, "SsoConnectorList", {
613
+ enumerable: true,
614
+ get: function () { return chunkLBALE4JX_js.SsoConnectorList; }
615
+ });
616
+ Object.defineProperty(exports, "SsoEmailForm", {
617
+ enumerable: true,
618
+ get: function () { return chunkLBALE4JX_js.SsoEmailForm; }
619
+ });
620
+ Object.defineProperty(exports, "UserButton", {
621
+ enumerable: true,
622
+ get: function () { return chunkLBALE4JX_js.UserButton; }
623
+ });
624
+ Object.defineProperty(exports, "VerifyEmail", {
625
+ enumerable: true,
626
+ get: function () { return chunkLBALE4JX_js.VerifyEmail; }
627
+ });
628
+ Object.defineProperty(exports, "ImpersonationBanner", {
629
+ enumerable: true,
630
+ get: function () { return chunkSAYVWIMJ_js.ImpersonationBanner; }
631
+ });
632
+ Object.defineProperty(exports, "UpgradePrompt", {
633
+ enumerable: true,
634
+ get: function () { return chunkP4RVGMZL_js.UpgradePrompt; }
635
+ });
555
636
  Object.defineProperty(exports, "WorkflowWorkspace", {
556
637
  enumerable: true,
557
638
  get: function () { return chunkK26RY4EQ_js.WorkflowWorkspace; }
558
639
  });
640
+ Object.defineProperty(exports, "PlatformSettings", {
641
+ enumerable: true,
642
+ get: function () { return chunkUVEPTYZC_js.PlatformSettings; }
643
+ });
644
+ Object.defineProperty(exports, "AdminOrganizationDetail", {
645
+ enumerable: true,
646
+ get: function () { return chunkUUHV5KHF_js.AdminOrganizationDetail; }
647
+ });
648
+ Object.defineProperty(exports, "LinkedAccountsTabContent", {
649
+ enumerable: true,
650
+ get: function () { return chunkX2KCCQPL_js.LinkedAccountsTabContent; }
651
+ });
652
+ Object.defineProperty(exports, "MfaManage", {
653
+ enumerable: true,
654
+ get: function () { return chunkX2KCCQPL_js.MfaManage; }
655
+ });
656
+ Object.defineProperty(exports, "MfaSetup", {
657
+ enumerable: true,
658
+ get: function () { return chunkX2KCCQPL_js.MfaSetup; }
659
+ });
660
+ Object.defineProperty(exports, "ProfileTabContent", {
661
+ enumerable: true,
662
+ get: function () { return chunkX2KCCQPL_js.ProfileTabContent; }
663
+ });
664
+ Object.defineProperty(exports, "SecurityTabContent", {
665
+ enumerable: true,
666
+ get: function () { return chunkX2KCCQPL_js.SecurityTabContent; }
667
+ });
668
+ Object.defineProperty(exports, "SessionsTabContent", {
669
+ enumerable: true,
670
+ get: function () { return chunkX2KCCQPL_js.SessionsTabContent; }
671
+ });
672
+ Object.defineProperty(exports, "UserProfile", {
673
+ enumerable: true,
674
+ get: function () { return chunkX2KCCQPL_js.UserProfile; }
675
+ });
676
+ Object.defineProperty(exports, "AuthLayout", {
677
+ enumerable: true,
678
+ get: function () { return chunkMXFEU7A6_js.AuthLayout; }
679
+ });
680
+ Object.defineProperty(exports, "BackupCodeGrid", {
681
+ enumerable: true,
682
+ get: function () { return chunkMXFEU7A6_js.BackupCodeGrid; }
683
+ });
684
+ Object.defineProperty(exports, "OtpInput", {
685
+ enumerable: true,
686
+ get: function () { return chunkMXFEU7A6_js.OtpInput; }
687
+ });
688
+ Object.defineProperty(exports, "PasswordStrengthMeter", {
689
+ enumerable: true,
690
+ get: function () { return chunkMXFEU7A6_js.PasswordStrengthMeter; }
691
+ });
692
+ Object.defineProperty(exports, "SocialLoginButtons", {
693
+ enumerable: true,
694
+ get: function () { return chunkMXFEU7A6_js.SocialLoginButtons; }
695
+ });
696
+ Object.defineProperty(exports, "BillingPanel", {
697
+ enumerable: true,
698
+ get: function () { return chunkQ2MG7S2E_js.BillingPanel; }
699
+ });
559
700
  Object.defineProperty(exports, "AgentsWorkspace", {
560
701
  enumerable: true,
561
- get: function () { return chunk6F3IMKDZ_js.AgentsWorkspace; }
702
+ get: function () { return chunkURDQSUW6_js.AgentsWorkspace; }
703
+ });
704
+ Object.defineProperty(exports, "applyWorkflowExecutionEventToStore", {
705
+ enumerable: true,
706
+ get: function () { return chunkURDQSUW6_js.applyWorkflowExecutionEventToStore; }
707
+ });
708
+ Object.defineProperty(exports, "resetWorkflowRunPresentation", {
709
+ enumerable: true,
710
+ get: function () { return chunkURDQSUW6_js.resetWorkflowRunPresentation; }
711
+ });
712
+ Object.defineProperty(exports, "useRunEvents", {
713
+ enumerable: true,
714
+ get: function () { return chunkURDQSUW6_js.useRunEvents; }
715
+ });
716
+ Object.defineProperty(exports, "useWorkflowExecution", {
717
+ enumerable: true,
718
+ get: function () { return chunkURDQSUW6_js.useWorkflowExecution; }
719
+ });
720
+ Object.defineProperty(exports, "useWorkflowRunPresentation", {
721
+ enumerable: true,
722
+ get: function () { return chunkURDQSUW6_js.useWorkflowRunPresentation; }
562
723
  });
563
724
  Object.defineProperty(exports, "PlatformAppShell", {
564
725
  enumerable: true,