@datatechsolutions/ui 3.5.0 → 3.6.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.
- package/dist/astrlabe/contracts.d.mts +517 -0
- package/dist/astrlabe/contracts.d.ts +517 -0
- package/dist/astrlabe/graph-node.d.mts +28 -0
- package/dist/astrlabe/graph-node.d.ts +28 -0
- package/dist/astrlabe/index.d.mts +743 -0
- package/dist/astrlabe/index.d.ts +743 -0
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/utils.d.mts +60 -0
- package/dist/astrlabe/utils.d.ts +60 -0
- package/dist/astrlabe/workflow-canvas.d.mts +6 -0
- package/dist/astrlabe/workflow-canvas.d.ts +6 -0
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
- package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
- package/dist/billing-panel-DsHhhJqG.d.mts +18 -0
- package/dist/billing-panel-DsHhhJqG.d.ts +18 -0
- package/dist/brand/index.d.mts +71 -0
- package/dist/brand/index.d.ts +71 -0
- package/dist/{chunk-AVM53A3Y.js → chunk-3WXMBAGN.js} +46 -44
- package/dist/chunk-3WXMBAGN.js.map +1 -0
- package/dist/{chunk-NOHHZ6FM.mjs → chunk-4OFG6POC.mjs} +10 -6
- package/dist/chunk-4OFG6POC.mjs.map +1 -0
- package/dist/{chunk-QLFSJ6HK.mjs → chunk-7LILNZMR.mjs} +3 -3
- package/dist/{chunk-QLFSJ6HK.mjs.map → chunk-7LILNZMR.mjs.map} +1 -1
- package/dist/{chunk-NKXQYFS7.js → chunk-AMYQSPQC.js} +16 -16
- package/dist/{chunk-NKXQYFS7.js.map → chunk-AMYQSPQC.js.map} +1 -1
- package/dist/{chunk-2MJAHST4.mjs → chunk-DYWSG42B.mjs} +4 -4
- package/dist/{chunk-2MJAHST4.mjs.map → chunk-DYWSG42B.mjs.map} +1 -1
- package/dist/{chunk-NJ5RVWLA.mjs → chunk-ESLKQJQS.mjs} +4 -4
- package/dist/{chunk-NJ5RVWLA.mjs.map → chunk-ESLKQJQS.mjs.map} +1 -1
- package/dist/{chunk-AWDH6WNA.js → chunk-GCYYGSHU.js} +10 -6
- package/dist/chunk-GCYYGSHU.js.map +1 -0
- package/dist/{chunk-UHMAKUON.mjs → chunk-HGWVJ3VB.mjs} +21 -21
- package/dist/{chunk-UHMAKUON.mjs.map → chunk-HGWVJ3VB.mjs.map} +1 -1
- package/dist/{chunk-4PFU6A2B.mjs → chunk-I63NFWIA.mjs} +3 -3
- package/dist/{chunk-4PFU6A2B.mjs.map → chunk-I63NFWIA.mjs.map} +1 -1
- package/dist/{chunk-QPSHM2JQ.mjs → chunk-IHHGT3LP.mjs} +19 -19
- package/dist/{chunk-QPSHM2JQ.mjs.map → chunk-IHHGT3LP.mjs.map} +1 -1
- package/dist/{chunk-6W7VTZG6.mjs → chunk-JQYDJ75Q.mjs} +3 -3
- package/dist/{chunk-6W7VTZG6.mjs.map → chunk-JQYDJ75Q.mjs.map} +1 -1
- package/dist/{chunk-V5VBYOF5.js → chunk-LVK7VXW7.js} +54 -54
- package/dist/{chunk-V5VBYOF5.js.map → chunk-LVK7VXW7.js.map} +1 -1
- package/dist/{chunk-7CEZB3ZD.mjs → chunk-MRRFDIUQ.mjs} +3 -3
- package/dist/{chunk-7CEZB3ZD.mjs.map → chunk-MRRFDIUQ.mjs.map} +1 -1
- package/dist/{chunk-A7FI4K7Z.js → chunk-NJZIE4EH.js} +5 -5
- package/dist/{chunk-A7FI4K7Z.js.map → chunk-NJZIE4EH.js.map} +1 -1
- package/dist/{chunk-P43PX75J.js → chunk-P5F257N3.js} +33 -33
- package/dist/{chunk-P43PX75J.js.map → chunk-P5F257N3.js.map} +1 -1
- package/dist/{chunk-BVXATTTA.js → chunk-QHP2MR2F.js} +4 -4
- package/dist/{chunk-BVXATTTA.js.map → chunk-QHP2MR2F.js.map} +1 -1
- package/dist/{chunk-CY2MBKVG.js → chunk-QRNFTG6A.js} +4 -4
- package/dist/{chunk-CY2MBKVG.js.map → chunk-QRNFTG6A.js.map} +1 -1
- package/dist/{chunk-OASC7NYV.mjs → chunk-QTA5I6FC.mjs} +3 -3
- package/dist/{chunk-OASC7NYV.mjs.map → chunk-QTA5I6FC.mjs.map} +1 -1
- package/dist/{chunk-QSMPKL27.js → chunk-S7AV6XEY.js} +74 -74
- package/dist/{chunk-QSMPKL27.js.map → chunk-S7AV6XEY.js.map} +1 -1
- package/dist/{chunk-VMGNQFRO.js → chunk-UGJZ3M4Q.js} +53 -53
- package/dist/{chunk-VMGNQFRO.js.map → chunk-UGJZ3M4Q.js.map} +1 -1
- package/dist/{chunk-5BEVTOZV.mjs → chunk-UOABOFKO.mjs} +4 -4
- package/dist/{chunk-5BEVTOZV.mjs.map → chunk-UOABOFKO.mjs.map} +1 -1
- package/dist/{chunk-74MHWEDC.js → chunk-UWSMHKOF.js} +161 -161
- package/dist/{chunk-74MHWEDC.js.map → chunk-UWSMHKOF.js.map} +1 -1
- package/dist/{chunk-ZM2Q2SMC.mjs → chunk-VDLAZR7S.mjs} +3 -3
- package/dist/{chunk-ZM2Q2SMC.mjs.map → chunk-VDLAZR7S.mjs.map} +1 -1
- package/dist/{chunk-FK3WDELF.js → chunk-VPOIX2DY.js} +40 -40
- package/dist/{chunk-FK3WDELF.js.map → chunk-VPOIX2DY.js.map} +1 -1
- package/dist/{chunk-IOEQ2GET.mjs → chunk-VUAGVZJM.mjs} +4 -4
- package/dist/{chunk-IOEQ2GET.mjs.map → chunk-VUAGVZJM.mjs.map} +1 -1
- package/dist/{chunk-Z7VY5M4T.js → chunk-W5YCZOXO.js} +77 -77
- package/dist/{chunk-Z7VY5M4T.js.map → chunk-W5YCZOXO.js.map} +1 -1
- package/dist/{chunk-C4NRF2G2.js → chunk-WBEZATIB.js} +13 -13
- package/dist/{chunk-C4NRF2G2.js.map → chunk-WBEZATIB.js.map} +1 -1
- package/dist/{chunk-6V3DUBOZ.mjs → chunk-WEZ722BS.mjs} +7 -7
- package/dist/{chunk-6V3DUBOZ.mjs.map → chunk-WEZ722BS.mjs.map} +1 -1
- package/dist/{chunk-3OLYSMI5.mjs → chunk-XTXLRQ3H.mjs} +24 -22
- package/dist/chunk-XTXLRQ3H.mjs.map +1 -0
- package/dist/{chunk-5I7F7KZ6.js → chunk-YOJIPZ72.js} +10 -10
- package/dist/{chunk-5I7F7KZ6.js.map → chunk-YOJIPZ72.js.map} +1 -1
- package/dist/{chunk-NCDBNGIB.js → chunk-YTE6WCBX.js} +76 -76
- package/dist/{chunk-NCDBNGIB.js.map → chunk-YTE6WCBX.js.map} +1 -1
- package/dist/{chunk-7UHV6A4C.mjs → chunk-ZYVDDSAC.mjs} +6 -6
- package/dist/{chunk-7UHV6A4C.mjs.map → chunk-ZYVDDSAC.mjs.map} +1 -1
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +17 -0
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +17 -0
- package/dist/index-BNRGVAS5.d.mts +222 -0
- package/dist/index-BoebbJ44.d.mts +49 -0
- package/dist/index-BoebbJ44.d.ts +49 -0
- package/dist/index-CnCY-b5V.d.ts +222 -0
- package/dist/index.d.mts +5310 -0
- package/dist/index.d.ts +5310 -0
- package/dist/index.js +721 -721
- package/dist/index.mjs +2 -2
- package/dist/layout-engine-YZcVr20M.d.mts +19 -0
- package/dist/layout-engine-YZcVr20M.d.ts +19 -0
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/navigation-BiWVffAN.d.mts +49 -0
- package/dist/navigation-BiWVffAN.d.ts +49 -0
- package/dist/platform/admin/index.d.mts +17 -0
- package/dist/platform/admin/index.d.ts +17 -0
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.d.mts +19 -0
- package/dist/platform/agents-workspace.d.ts +19 -0
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.d.mts +58 -0
- package/dist/platform/app-shell.d.ts +58 -0
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.d.mts +73 -0
- package/dist/platform/auth/index.d.ts +73 -0
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.d.mts +29 -0
- package/dist/platform/billing/index.d.ts +29 -0
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.d.mts +19 -0
- package/dist/platform/impersonation/index.d.ts +19 -0
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.d.mts +188 -0
- package/dist/platform/index.d.ts +188 -0
- package/dist/platform/index.js +89 -89
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.d.mts +441 -0
- package/dist/platform/pages/index.d.ts +441 -0
- package/dist/platform/pages/index.js +326 -302
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +148 -124
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/rbac.d.mts +42 -0
- package/dist/platform/rbac.d.ts +42 -0
- package/dist/platform/settings/index.d.mts +31 -0
- package/dist/platform/settings/index.d.ts +31 -0
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/telemetry/index.d.mts +51 -0
- package/dist/platform/telemetry/index.d.ts +51 -0
- package/dist/platform/utils/index.d.mts +32 -0
- package/dist/platform/utils/index.d.ts +32 -0
- package/dist/platform/windsock-admin-client.d.mts +57 -0
- package/dist/platform/windsock-admin-client.d.ts +57 -0
- package/dist/platform/workflow-api-client.d.mts +6 -0
- package/dist/platform/workflow-api-client.d.ts +6 -0
- package/dist/platform/workflow-canvas-shell.d.mts +18 -0
- package/dist/platform/workflow-canvas-shell.d.ts +18 -0
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/rule-form-BYJzyork.d.mts +128 -0
- package/dist/rule-form-BYJzyork.d.ts +128 -0
- package/dist/workflow-api-client-CpFl3WcG.d.mts +468 -0
- package/dist/workflow-api-client-uLICOanv.d.ts +468 -0
- package/dist/workflow-canvas--qaYKuMm.d.ts +113 -0
- package/dist/workflow-canvas-B80fmD_n.d.mts +113 -0
- package/dist/workflow-store-o17I6L6A.d.ts +79 -0
- package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
- package/package.json +1 -1
- package/dist/chunk-3OLYSMI5.mjs.map +0 -1
- package/dist/chunk-AVM53A3Y.js.map +0 -1
- package/dist/chunk-AWDH6WNA.js.map +0 -1
- package/dist/chunk-NOHHZ6FM.mjs.map +0 -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 };
|