@datatechsolutions/ui 3.7.4 → 3.8.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 (159) hide show
  1. package/dist/astrlabe/contracts.d.mts +517 -0
  2. package/dist/astrlabe/contracts.d.ts +517 -0
  3. package/dist/astrlabe/graph-node.d.mts +28 -0
  4. package/dist/astrlabe/graph-node.d.ts +28 -0
  5. package/dist/astrlabe/index.d.mts +743 -0
  6. package/dist/astrlabe/index.d.ts +743 -0
  7. package/dist/astrlabe/index.js +108 -108
  8. package/dist/astrlabe/index.mjs +4 -4
  9. package/dist/astrlabe/utils.d.mts +60 -0
  10. package/dist/astrlabe/utils.d.ts +60 -0
  11. package/dist/astrlabe/workflow-canvas.d.mts +6 -0
  12. package/dist/astrlabe/workflow-canvas.d.ts +6 -0
  13. package/dist/astrlabe/workflow-canvas.js +4 -4
  14. package/dist/astrlabe/workflow-canvas.mjs +3 -3
  15. package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
  16. package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
  17. package/dist/billing-panel-DsHhhJqG.d.mts +18 -0
  18. package/dist/billing-panel-DsHhhJqG.d.ts +18 -0
  19. package/dist/brand/index.d.mts +71 -0
  20. package/dist/brand/index.d.ts +71 -0
  21. package/dist/{chunk-GAN7AKZ2.mjs → chunk-32DHEVOH.mjs} +3 -3
  22. package/dist/{chunk-GAN7AKZ2.mjs.map → chunk-32DHEVOH.mjs.map} +1 -1
  23. package/dist/{chunk-IYDGO7RW.js → chunk-3H5CFLVK.js} +135 -135
  24. package/dist/{chunk-IYDGO7RW.js.map → chunk-3H5CFLVK.js.map} +1 -1
  25. package/dist/{chunk-QL2JYRBN.js → chunk-3X3IYDG6.js} +68 -68
  26. package/dist/{chunk-QL2JYRBN.js.map → chunk-3X3IYDG6.js.map} +1 -1
  27. package/dist/{chunk-N5365CGD.mjs → chunk-57E4TCB2.mjs} +3 -3
  28. package/dist/{chunk-N5365CGD.mjs.map → chunk-57E4TCB2.mjs.map} +1 -1
  29. package/dist/{chunk-4HP7XS5I.mjs → chunk-5W6LMDXV.mjs} +4 -4
  30. package/dist/{chunk-4HP7XS5I.mjs.map → chunk-5W6LMDXV.mjs.map} +1 -1
  31. package/dist/{chunk-EIZM2EQA.mjs → chunk-5YVOLHSW.mjs} +4 -4
  32. package/dist/{chunk-EIZM2EQA.mjs.map → chunk-5YVOLHSW.mjs.map} +1 -1
  33. package/dist/{chunk-ZWLMKOHZ.mjs → chunk-74BU2EBZ.mjs} +6 -6
  34. package/dist/{chunk-ZWLMKOHZ.mjs.map → chunk-74BU2EBZ.mjs.map} +1 -1
  35. package/dist/{chunk-7WIWDSF6.js → chunk-7JZFNKJD.js} +36 -36
  36. package/dist/{chunk-7WIWDSF6.js.map → chunk-7JZFNKJD.js.map} +1 -1
  37. package/dist/{chunk-DCBRGVD3.mjs → chunk-A4A3SQTV.mjs} +3 -3
  38. package/dist/{chunk-DCBRGVD3.mjs.map → chunk-A4A3SQTV.mjs.map} +1 -1
  39. package/dist/{chunk-JUDQX6MP.mjs → chunk-CZZOCKEA.mjs} +3 -3
  40. package/dist/{chunk-JUDQX6MP.mjs.map → chunk-CZZOCKEA.mjs.map} +1 -1
  41. package/dist/{chunk-DWIBK7GV.js → chunk-E57RZXOR.js} +25 -25
  42. package/dist/{chunk-DWIBK7GV.js.map → chunk-E57RZXOR.js.map} +1 -1
  43. package/dist/{chunk-Z3BMHKKH.mjs → chunk-E6C7MFHJ.mjs} +3 -3
  44. package/dist/{chunk-Z3BMHKKH.mjs.map → chunk-E6C7MFHJ.mjs.map} +1 -1
  45. package/dist/{chunk-P7GVXI7Y.mjs → chunk-EWYAM4WJ.mjs} +3 -3
  46. package/dist/{chunk-P7GVXI7Y.mjs.map → chunk-EWYAM4WJ.mjs.map} +1 -1
  47. package/dist/{chunk-VDO6MDQW.js → chunk-F35GFICG.js} +13 -13
  48. package/dist/{chunk-VDO6MDQW.js.map → chunk-F35GFICG.js.map} +1 -1
  49. package/dist/{chunk-BEUPW5WS.js → chunk-FKUIVS6I.js} +28 -28
  50. package/dist/{chunk-BEUPW5WS.js.map → chunk-FKUIVS6I.js.map} +1 -1
  51. package/dist/{chunk-GD6FHRHV.js → chunk-FNA66TT4.js} +3 -3
  52. package/dist/{chunk-GD6FHRHV.js.map → chunk-FNA66TT4.js.map} +1 -1
  53. package/dist/{chunk-RBB5YGWH.js → chunk-H37VDL7Y.js} +4 -4
  54. package/dist/{chunk-RBB5YGWH.js.map → chunk-H37VDL7Y.js.map} +1 -1
  55. package/dist/{chunk-KI4UPW4Z.js → chunk-HBOORO52.js} +4 -4
  56. package/dist/{chunk-KI4UPW4Z.js.map → chunk-HBOORO52.js.map} +1 -1
  57. package/dist/{chunk-MGZTZELL.mjs → chunk-KKXI7CPF.mjs} +3 -3
  58. package/dist/{chunk-MGZTZELL.mjs.map → chunk-KKXI7CPF.mjs.map} +1 -1
  59. package/dist/{chunk-IKH5IRDK.mjs → chunk-PCUINUIC.mjs} +3 -3
  60. package/dist/{chunk-IKH5IRDK.mjs.map → chunk-PCUINUIC.mjs.map} +1 -1
  61. package/dist/{chunk-CTCO2YI5.mjs → chunk-PYNXIDG3.mjs} +3 -3
  62. package/dist/{chunk-CTCO2YI5.mjs.map → chunk-PYNXIDG3.mjs.map} +1 -1
  63. package/dist/{chunk-MFAVWJWE.js → chunk-Q4QORAMH.js} +10 -10
  64. package/dist/{chunk-MFAVWJWE.js.map → chunk-Q4QORAMH.js.map} +1 -1
  65. package/dist/{chunk-ZF7RJNPD.js → chunk-Q7HRCCFT.js} +45 -45
  66. package/dist/{chunk-ZF7RJNPD.js.map → chunk-Q7HRCCFT.js.map} +1 -1
  67. package/dist/{chunk-R2RPRRB4.js → chunk-RCHTRG7R.js} +55 -55
  68. package/dist/{chunk-R2RPRRB4.js.map → chunk-RCHTRG7R.js.map} +1 -1
  69. package/dist/{chunk-FIB2CFJK.js → chunk-TCP45Q4B.js} +9 -9
  70. package/dist/{chunk-FIB2CFJK.js.map → chunk-TCP45Q4B.js.map} +1 -1
  71. package/dist/{chunk-SUU7XPRX.js → chunk-TJPPZU77.js} +34 -34
  72. package/dist/{chunk-SUU7XPRX.js.map → chunk-TJPPZU77.js.map} +1 -1
  73. package/dist/{chunk-XT76DMP5.js → chunk-VPFVW7ZF.js} +35 -35
  74. package/dist/{chunk-XT76DMP5.js.map → chunk-VPFVW7ZF.js.map} +1 -1
  75. package/dist/{chunk-IKHWYYZC.mjs → chunk-VS6PTRQ7.mjs} +3 -3
  76. package/dist/{chunk-IKHWYYZC.mjs.map → chunk-VS6PTRQ7.mjs.map} +1 -1
  77. package/dist/{chunk-YNHQ36UU.mjs → chunk-WDBVIU7W.mjs} +3 -3
  78. package/dist/{chunk-YNHQ36UU.mjs.map → chunk-WDBVIU7W.mjs.map} +1 -1
  79. package/dist/{chunk-MRLEINJN.mjs → chunk-ZP37M2QK.mjs} +7 -7
  80. package/dist/{chunk-MRLEINJN.mjs.map → chunk-ZP37M2QK.mjs.map} +1 -1
  81. package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +17 -0
  82. package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +17 -0
  83. package/dist/index-BNRGVAS5.d.mts +222 -0
  84. package/dist/index-BoebbJ44.d.mts +49 -0
  85. package/dist/index-BoebbJ44.d.ts +49 -0
  86. package/dist/index-CnCY-b5V.d.ts +222 -0
  87. package/dist/index.d.mts +5316 -0
  88. package/dist/index.d.ts +5316 -0
  89. package/dist/index.js +665 -665
  90. package/dist/index.mjs +2 -2
  91. package/dist/layout-engine-YZcVr20M.d.mts +19 -0
  92. package/dist/layout-engine-YZcVr20M.d.ts +19 -0
  93. package/dist/lib/i18n-context.d.mts +36 -0
  94. package/dist/lib/i18n-context.d.ts +36 -0
  95. package/dist/lib/router-context.d.mts +35 -0
  96. package/dist/lib/router-context.d.ts +35 -0
  97. package/dist/navigation-BiWVffAN.d.mts +49 -0
  98. package/dist/navigation-BiWVffAN.d.ts +49 -0
  99. package/dist/platform/admin/index.d.mts +17 -0
  100. package/dist/platform/admin/index.d.ts +17 -0
  101. package/dist/platform/admin/index.js +10 -10
  102. package/dist/platform/admin/index.mjs +4 -4
  103. package/dist/platform/agents-workspace.d.mts +19 -0
  104. package/dist/platform/agents-workspace.d.ts +19 -0
  105. package/dist/platform/agents-workspace.js +7 -7
  106. package/dist/platform/agents-workspace.mjs +6 -6
  107. package/dist/platform/app-shell.d.mts +64 -0
  108. package/dist/platform/app-shell.d.ts +64 -0
  109. package/dist/platform/app-shell.js +4 -4
  110. package/dist/platform/app-shell.mjs +3 -3
  111. package/dist/platform/auth/index.d.mts +73 -0
  112. package/dist/platform/auth/index.d.ts +73 -0
  113. package/dist/platform/auth/index.js +22 -22
  114. package/dist/platform/auth/index.mjs +4 -4
  115. package/dist/platform/billing/index.d.mts +29 -0
  116. package/dist/platform/billing/index.d.ts +29 -0
  117. package/dist/platform/billing/index.js +4 -4
  118. package/dist/platform/billing/index.mjs +3 -3
  119. package/dist/platform/impersonation/index.d.mts +19 -0
  120. package/dist/platform/impersonation/index.d.ts +19 -0
  121. package/dist/platform/impersonation/index.js +4 -4
  122. package/dist/platform/impersonation/index.mjs +3 -3
  123. package/dist/platform/index.d.mts +188 -0
  124. package/dist/platform/index.d.ts +188 -0
  125. package/dist/platform/index.js +86 -86
  126. package/dist/platform/index.mjs +18 -18
  127. package/dist/platform/pages/index.d.mts +574 -0
  128. package/dist/platform/pages/index.d.ts +574 -0
  129. package/dist/platform/pages/index.js +461 -264
  130. package/dist/platform/pages/index.js.map +1 -1
  131. package/dist/platform/pages/index.mjs +228 -31
  132. package/dist/platform/pages/index.mjs.map +1 -1
  133. package/dist/platform/rbac.d.mts +42 -0
  134. package/dist/platform/rbac.d.ts +42 -0
  135. package/dist/platform/settings/index.d.mts +31 -0
  136. package/dist/platform/settings/index.d.ts +31 -0
  137. package/dist/platform/settings/index.js +7 -7
  138. package/dist/platform/settings/index.mjs +6 -6
  139. package/dist/platform/telemetry/index.d.mts +51 -0
  140. package/dist/platform/telemetry/index.d.ts +51 -0
  141. package/dist/platform/utils/index.d.mts +32 -0
  142. package/dist/platform/utils/index.d.ts +32 -0
  143. package/dist/platform/windsock-admin-client.d.mts +57 -0
  144. package/dist/platform/windsock-admin-client.d.ts +57 -0
  145. package/dist/platform/workflow-api-client.d.mts +6 -0
  146. package/dist/platform/workflow-api-client.d.ts +6 -0
  147. package/dist/platform/workflow-canvas-shell.d.mts +18 -0
  148. package/dist/platform/workflow-canvas-shell.d.ts +18 -0
  149. package/dist/platform/workflow-canvas-shell.js +5 -5
  150. package/dist/platform/workflow-canvas-shell.mjs +4 -4
  151. package/dist/rule-form-BYJzyork.d.mts +128 -0
  152. package/dist/rule-form-BYJzyork.d.ts +128 -0
  153. package/dist/workflow-api-client-CpFl3WcG.d.mts +468 -0
  154. package/dist/workflow-api-client-uLICOanv.d.ts +468 -0
  155. package/dist/workflow-canvas--qaYKuMm.d.ts +113 -0
  156. package/dist/workflow-canvas-B80fmD_n.d.mts +113 -0
  157. package/dist/workflow-store-o17I6L6A.d.ts +79 -0
  158. package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
  159. package/package.json +1 -1
@@ -0,0 +1,188 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SessionSwitcherProps, LocaleCode, WorkflowExecutionEvent, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
3
+ import { ReactNode } from 'react';
4
+ import { A as AuthUser } from '../index-BoebbJ44.mjs';
5
+ export { PlatformAppShell, PlatformAppShellProps } from './app-shell.mjs';
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';
9
+ import { PlatformRoleDefinition } from './rbac.mjs';
10
+ export { CreatePlatformRbacOptions, PlatformRbac, createPlatformRbac } from './rbac.mjs';
11
+ export { WorkflowCanvasShell } from './workflow-canvas-shell.mjs';
12
+ export { AgentsWorkspace, AgentsWorkspaceProps } from './agents-workspace.mjs';
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';
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';
25
+
26
+ declare function SessionSwitcher({ organizations, users, organizationId, userEmail, onOrganizationChange, onUserChange, }: SessionSwitcherProps): react_jsx_runtime.JSX.Element;
27
+
28
+ type PlatformState = {
29
+ currentOrganizationId: string;
30
+ actor: AuthUser | null;
31
+ };
32
+ type PlatformStateProviderProps = {
33
+ children: ReactNode;
34
+ /**
35
+ * Function that converts a JWT role claim to the app's canonical role
36
+ * union (the same `normalizePlatformRole` produced by
37
+ * `createPlatformRbac()` in this app). Lifted out as a prop because
38
+ * each consuming app uses its own role enum.
39
+ */
40
+ normalizeRole: (input: unknown) => string;
41
+ };
42
+ declare function PlatformStateProvider({ children, normalizeRole }: PlatformStateProviderProps): react_jsx_runtime.JSX.Element;
43
+ declare function usePlatformState(): PlatformState;
44
+
45
+ type PlatformDockContainerProps = {
46
+ /** JWT-derived actor used for permission filtering. */
47
+ actor: AuthUser | null;
48
+ /** App-specific navigation items (already translated). */
49
+ navigationItems: NavigationItem[];
50
+ /**
51
+ * Pathname where the dock should be hidden (defaults to `/dashboard`).
52
+ * The dashboard typically owns its own navigation chrome.
53
+ */
54
+ dashboardPath?: string;
55
+ /** Path to redirect to on sign-out (defaults to `/login`). */
56
+ signOutPath?: string;
57
+ };
58
+ /**
59
+ * Floating dock + profile-modal trigger shared by every platform app.
60
+ * Reads the active route from ui's router context and uses windsock for
61
+ * preferences + sign-out, so the consumer only has to wire up navigation
62
+ * items + an optional dashboard/sign-out path.
63
+ */
64
+ declare function PlatformDockContainer({ actor, navigationItems, dashboardPath, signOutPath, }: PlatformDockContainerProps): react_jsx_runtime.JSX.Element | null;
65
+
66
+ /**
67
+ * Locale + theme controls used inside the platform preferences drawer.
68
+ * Reads the active locale from the i18n context and the theme/dock
69
+ * preferences from windsock — both shared providers consuming apps must
70
+ * mount above this component.
71
+ */
72
+ declare function PreferencesControls(): react_jsx_runtime.JSX.Element;
73
+
74
+ /**
75
+ * Locale switcher hook — reads the current locale from the i18n context and
76
+ * pushes the user's choice through windsock so the next session inherits it.
77
+ *
78
+ * Lifted from astrlabe; consumers (astrlabe, kori-erp) wrap their tree in
79
+ * `<I18nProvider>` + windsock's `<AuthProvider>` and import this directly.
80
+ */
81
+ declare function useLocaleSwitcher(): {
82
+ locale: LocaleCode;
83
+ shortCode: string;
84
+ setLocale: (newLocale: LocaleCode | string) => void;
85
+ locales: readonly LocaleCode[];
86
+ };
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" | "streaming" | "completed" | "failed";
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
+
127
+ type UsersSettingsSectionProps = {
128
+ /**
129
+ * Role normalizer produced by each app's `createPlatformRbac()` call.
130
+ * Used to coerce JWT role strings into the app's canonical role enum.
131
+ */
132
+ normalizeRole: (input: unknown) => string;
133
+ };
134
+ type RolesSettingsSectionProps = UsersSettingsSectionProps & {
135
+ /** App-defined role definitions (from `createPlatformRbac`). */
136
+ roleDefinitions: Record<string, PlatformRoleDefinition<string>>;
137
+ /** Display options for the role-assignment select. */
138
+ roleOptions: Array<{
139
+ value: string;
140
+ label: string;
141
+ }>;
142
+ };
143
+ declare function UsersSettingsSection({ normalizeRole }: UsersSettingsSectionProps): react_jsx_runtime.JSX.Element;
144
+ declare function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }: RolesSettingsSectionProps): react_jsx_runtime.JSX.Element;
145
+
146
+ interface Props {
147
+ open: boolean;
148
+ onClose: () => void;
149
+ onGenerated: (workflow: Workflow) => void;
150
+ }
151
+ /**
152
+ * Minimal NL → graph generator surface. Lets the user pick one of the
153
+ * org's model provider connections, enter a prompt, and produces a
154
+ * Workflow row whose `graph` is the LLM's output. The caller navigates
155
+ * the editor to the new workflow once generation succeeds — validation
156
+ * issues are surfaced as notifications so the user can iterate.
157
+ */
158
+ declare function AiWorkflowGenerateModal({ open, onClose, onGenerated }: Props): react_jsx_runtime.JSX.Element;
159
+
160
+ interface WorkflowTemplateModalProps {
161
+ open: boolean;
162
+ onClose: () => void;
163
+ onCreated: (workflow: Workflow) => void;
164
+ }
165
+ declare function WorkflowTemplateModal({ open, onClose, onCreated }: WorkflowTemplateModalProps): react_jsx_runtime.JSX.Element;
166
+
167
+ /**
168
+ * Thin wrapper that forwards a workflow graph into the visual canvas while
169
+ * threading the active locale from the i18n context. The graph type from
170
+ * `shared-domain` is structurally identical to ui's contract type — the
171
+ * cast keeps callers from having to import both.
172
+ */
173
+ declare function WorkflowWorkspace({ graph }: WorkflowWorkspaceProps): react_jsx_runtime.JSX.Element;
174
+
175
+ /** Maps a windsock AuthOrganization to the app-level Organization shape used by UI pages. */
176
+ declare function mapAuthOrg(raw: AuthOrganization): Organization;
177
+ /**
178
+ * Maps a windsock AdminUserSummary to the app-level ManagedUser shape.
179
+ * Takes `normalizeRole` as a parameter so each consuming app can plug in
180
+ * the role normalizer produced by its own `createPlatformRbac()` call —
181
+ * we deliberately don't hardcode an app-specific role enum here.
182
+ */
183
+ declare function mapAdminUser(row: AdminUserSummary, normalizeRole: (input: unknown) => string): ManagedUser;
184
+ /** Maps an app-level UserRole to a windsock AuthOrganizationRole. */
185
+ declare const ORG_ROLE_MAP: Record<string, 'owner' | 'admin' | 'member' | 'viewer'>;
186
+ declare function mapRoleToOrgRole(role: string): 'owner' | 'admin' | 'member' | 'viewer';
187
+
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 };
@@ -0,0 +1,188 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SessionSwitcherProps, LocaleCode, WorkflowExecutionEvent, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
3
+ import { ReactNode } from 'react';
4
+ import { A as AuthUser } from '../index-BoebbJ44.js';
5
+ export { PlatformAppShell, PlatformAppShellProps } from './app-shell.js';
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';
9
+ import { PlatformRoleDefinition } from './rbac.js';
10
+ export { CreatePlatformRbacOptions, PlatformRbac, createPlatformRbac } from './rbac.js';
11
+ export { WorkflowCanvasShell } from './workflow-canvas-shell.js';
12
+ export { AgentsWorkspace, AgentsWorkspaceProps } from './agents-workspace.js';
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';
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';
25
+
26
+ declare function SessionSwitcher({ organizations, users, organizationId, userEmail, onOrganizationChange, onUserChange, }: SessionSwitcherProps): react_jsx_runtime.JSX.Element;
27
+
28
+ type PlatformState = {
29
+ currentOrganizationId: string;
30
+ actor: AuthUser | null;
31
+ };
32
+ type PlatformStateProviderProps = {
33
+ children: ReactNode;
34
+ /**
35
+ * Function that converts a JWT role claim to the app's canonical role
36
+ * union (the same `normalizePlatformRole` produced by
37
+ * `createPlatformRbac()` in this app). Lifted out as a prop because
38
+ * each consuming app uses its own role enum.
39
+ */
40
+ normalizeRole: (input: unknown) => string;
41
+ };
42
+ declare function PlatformStateProvider({ children, normalizeRole }: PlatformStateProviderProps): react_jsx_runtime.JSX.Element;
43
+ declare function usePlatformState(): PlatformState;
44
+
45
+ type PlatformDockContainerProps = {
46
+ /** JWT-derived actor used for permission filtering. */
47
+ actor: AuthUser | null;
48
+ /** App-specific navigation items (already translated). */
49
+ navigationItems: NavigationItem[];
50
+ /**
51
+ * Pathname where the dock should be hidden (defaults to `/dashboard`).
52
+ * The dashboard typically owns its own navigation chrome.
53
+ */
54
+ dashboardPath?: string;
55
+ /** Path to redirect to on sign-out (defaults to `/login`). */
56
+ signOutPath?: string;
57
+ };
58
+ /**
59
+ * Floating dock + profile-modal trigger shared by every platform app.
60
+ * Reads the active route from ui's router context and uses windsock for
61
+ * preferences + sign-out, so the consumer only has to wire up navigation
62
+ * items + an optional dashboard/sign-out path.
63
+ */
64
+ declare function PlatformDockContainer({ actor, navigationItems, dashboardPath, signOutPath, }: PlatformDockContainerProps): react_jsx_runtime.JSX.Element | null;
65
+
66
+ /**
67
+ * Locale + theme controls used inside the platform preferences drawer.
68
+ * Reads the active locale from the i18n context and the theme/dock
69
+ * preferences from windsock — both shared providers consuming apps must
70
+ * mount above this component.
71
+ */
72
+ declare function PreferencesControls(): react_jsx_runtime.JSX.Element;
73
+
74
+ /**
75
+ * Locale switcher hook — reads the current locale from the i18n context and
76
+ * pushes the user's choice through windsock so the next session inherits it.
77
+ *
78
+ * Lifted from astrlabe; consumers (astrlabe, kori-erp) wrap their tree in
79
+ * `<I18nProvider>` + windsock's `<AuthProvider>` and import this directly.
80
+ */
81
+ declare function useLocaleSwitcher(): {
82
+ locale: LocaleCode;
83
+ shortCode: string;
84
+ setLocale: (newLocale: LocaleCode | string) => void;
85
+ locales: readonly LocaleCode[];
86
+ };
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" | "streaming" | "completed" | "failed";
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
+
127
+ type UsersSettingsSectionProps = {
128
+ /**
129
+ * Role normalizer produced by each app's `createPlatformRbac()` call.
130
+ * Used to coerce JWT role strings into the app's canonical role enum.
131
+ */
132
+ normalizeRole: (input: unknown) => string;
133
+ };
134
+ type RolesSettingsSectionProps = UsersSettingsSectionProps & {
135
+ /** App-defined role definitions (from `createPlatformRbac`). */
136
+ roleDefinitions: Record<string, PlatformRoleDefinition<string>>;
137
+ /** Display options for the role-assignment select. */
138
+ roleOptions: Array<{
139
+ value: string;
140
+ label: string;
141
+ }>;
142
+ };
143
+ declare function UsersSettingsSection({ normalizeRole }: UsersSettingsSectionProps): react_jsx_runtime.JSX.Element;
144
+ declare function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }: RolesSettingsSectionProps): react_jsx_runtime.JSX.Element;
145
+
146
+ interface Props {
147
+ open: boolean;
148
+ onClose: () => void;
149
+ onGenerated: (workflow: Workflow) => void;
150
+ }
151
+ /**
152
+ * Minimal NL → graph generator surface. Lets the user pick one of the
153
+ * org's model provider connections, enter a prompt, and produces a
154
+ * Workflow row whose `graph` is the LLM's output. The caller navigates
155
+ * the editor to the new workflow once generation succeeds — validation
156
+ * issues are surfaced as notifications so the user can iterate.
157
+ */
158
+ declare function AiWorkflowGenerateModal({ open, onClose, onGenerated }: Props): react_jsx_runtime.JSX.Element;
159
+
160
+ interface WorkflowTemplateModalProps {
161
+ open: boolean;
162
+ onClose: () => void;
163
+ onCreated: (workflow: Workflow) => void;
164
+ }
165
+ declare function WorkflowTemplateModal({ open, onClose, onCreated }: WorkflowTemplateModalProps): react_jsx_runtime.JSX.Element;
166
+
167
+ /**
168
+ * Thin wrapper that forwards a workflow graph into the visual canvas while
169
+ * threading the active locale from the i18n context. The graph type from
170
+ * `shared-domain` is structurally identical to ui's contract type — the
171
+ * cast keeps callers from having to import both.
172
+ */
173
+ declare function WorkflowWorkspace({ graph }: WorkflowWorkspaceProps): react_jsx_runtime.JSX.Element;
174
+
175
+ /** Maps a windsock AuthOrganization to the app-level Organization shape used by UI pages. */
176
+ declare function mapAuthOrg(raw: AuthOrganization): Organization;
177
+ /**
178
+ * Maps a windsock AdminUserSummary to the app-level ManagedUser shape.
179
+ * Takes `normalizeRole` as a parameter so each consuming app can plug in
180
+ * the role normalizer produced by its own `createPlatformRbac()` call —
181
+ * we deliberately don't hardcode an app-specific role enum here.
182
+ */
183
+ declare function mapAdminUser(row: AdminUserSummary, normalizeRole: (input: unknown) => string): ManagedUser;
184
+ /** Maps an app-level UserRole to a windsock AuthOrganizationRole. */
185
+ declare const ORG_ROLE_MAP: Record<string, 'owner' | 'admin' | 'member' | 'viewer'>;
186
+ declare function mapRoleToOrgRole(role: string): 'owner' | 'admin' | 'member' | 'viewer';
187
+
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 };