@datatechsolutions/ui 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) 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-UHMAKUON.mjs → chunk-2TBNOQ7M.mjs} +3 -3
  22. package/dist/{chunk-UHMAKUON.mjs.map → chunk-2TBNOQ7M.mjs.map} +1 -1
  23. package/dist/{chunk-CY2MBKVG.js → chunk-2UMDWOUY.js} +4 -4
  24. package/dist/{chunk-CY2MBKVG.js.map → chunk-2UMDWOUY.js.map} +1 -1
  25. package/dist/{chunk-6V3DUBOZ.mjs → chunk-37ZLBCJF.mjs} +7 -7
  26. package/dist/{chunk-6V3DUBOZ.mjs.map → chunk-37ZLBCJF.mjs.map} +1 -1
  27. package/dist/{chunk-NCDBNGIB.js → chunk-5AVO5DJO.js} +62 -62
  28. package/dist/{chunk-NCDBNGIB.js.map → chunk-5AVO5DJO.js.map} +1 -1
  29. package/dist/{chunk-QPSHM2JQ.mjs → chunk-7OZ4MVEF.mjs} +4 -4
  30. package/dist/{chunk-QPSHM2JQ.mjs.map → chunk-7OZ4MVEF.mjs.map} +1 -1
  31. package/dist/{chunk-3OLYSMI5.mjs → chunk-CDYNTHUE.mjs} +4 -4
  32. package/dist/{chunk-3OLYSMI5.mjs.map → chunk-CDYNTHUE.mjs.map} +1 -1
  33. package/dist/{chunk-IOEQ2GET.mjs → chunk-CJGNEALB.mjs} +4 -4
  34. package/dist/{chunk-IOEQ2GET.mjs.map → chunk-CJGNEALB.mjs.map} +1 -1
  35. package/dist/{chunk-NJ5RVWLA.mjs → chunk-CP5QXRXA.mjs} +4 -4
  36. package/dist/{chunk-NJ5RVWLA.mjs.map → chunk-CP5QXRXA.mjs.map} +1 -1
  37. package/dist/{chunk-2MJAHST4.mjs → chunk-EGXB3WXT.mjs} +4 -4
  38. package/dist/{chunk-2MJAHST4.mjs.map → chunk-EGXB3WXT.mjs.map} +1 -1
  39. package/dist/{chunk-NKXQYFS7.js → chunk-EI6FIA45.js} +16 -16
  40. package/dist/{chunk-NKXQYFS7.js.map → chunk-EI6FIA45.js.map} +1 -1
  41. package/dist/{chunk-NOHHZ6FM.mjs → chunk-EUXHJMGC.mjs} +3 -3
  42. package/dist/{chunk-NOHHZ6FM.mjs.map → chunk-EUXHJMGC.mjs.map} +1 -1
  43. package/dist/{chunk-QSMPKL27.js → chunk-F5UDX6JA.js} +74 -74
  44. package/dist/{chunk-QSMPKL27.js.map → chunk-F5UDX6JA.js.map} +1 -1
  45. package/dist/{chunk-P43PX75J.js → chunk-HVDDCBQ2.js} +33 -33
  46. package/dist/{chunk-P43PX75J.js.map → chunk-HVDDCBQ2.js.map} +1 -1
  47. package/dist/{chunk-AWDH6WNA.js → chunk-K4M4B6ME.js} +3 -3
  48. package/dist/{chunk-AWDH6WNA.js.map → chunk-K4M4B6ME.js.map} +1 -1
  49. package/dist/{chunk-VMGNQFRO.js → chunk-KIBOX3UQ.js} +53 -53
  50. package/dist/{chunk-VMGNQFRO.js.map → chunk-KIBOX3UQ.js.map} +1 -1
  51. package/dist/{chunk-5I7F7KZ6.js → chunk-KRPSTXN5.js} +10 -10
  52. package/dist/{chunk-5I7F7KZ6.js.map → chunk-KRPSTXN5.js.map} +1 -1
  53. package/dist/{chunk-ZM2Q2SMC.mjs → chunk-L5O4NWQO.mjs} +3 -3
  54. package/dist/{chunk-ZM2Q2SMC.mjs.map → chunk-L5O4NWQO.mjs.map} +1 -1
  55. package/dist/{chunk-BVXATTTA.js → chunk-MT4FJRMD.js} +4 -4
  56. package/dist/{chunk-BVXATTTA.js.map → chunk-MT4FJRMD.js.map} +1 -1
  57. package/dist/{chunk-C4NRF2G2.js → chunk-OWJIKCR2.js} +13 -13
  58. package/dist/{chunk-C4NRF2G2.js.map → chunk-OWJIKCR2.js.map} +1 -1
  59. package/dist/{chunk-5BEVTOZV.mjs → chunk-PFHXKWFT.mjs} +4 -4
  60. package/dist/{chunk-5BEVTOZV.mjs.map → chunk-PFHXKWFT.mjs.map} +1 -1
  61. package/dist/{chunk-QLFSJ6HK.mjs → chunk-PI2C3S6A.mjs} +3 -3
  62. package/dist/{chunk-QLFSJ6HK.mjs.map → chunk-PI2C3S6A.mjs.map} +1 -1
  63. package/dist/{chunk-74MHWEDC.js → chunk-PYQLY2RH.js} +161 -161
  64. package/dist/{chunk-74MHWEDC.js.map → chunk-PYQLY2RH.js.map} +1 -1
  65. package/dist/{chunk-Z7VY5M4T.js → chunk-QIUVK4BI.js} +77 -77
  66. package/dist/{chunk-Z7VY5M4T.js.map → chunk-QIUVK4BI.js.map} +1 -1
  67. package/dist/{chunk-4PFU6A2B.mjs → chunk-R3Q5RXXO.mjs} +3 -3
  68. package/dist/{chunk-4PFU6A2B.mjs.map → chunk-R3Q5RXXO.mjs.map} +1 -1
  69. package/dist/{chunk-7UHV6A4C.mjs → chunk-R6O57NTJ.mjs} +6 -6
  70. package/dist/{chunk-7UHV6A4C.mjs.map → chunk-R6O57NTJ.mjs.map} +1 -1
  71. package/dist/{chunk-A7FI4K7Z.js → chunk-RQBTLFYH.js} +5 -5
  72. package/dist/{chunk-A7FI4K7Z.js.map → chunk-RQBTLFYH.js.map} +1 -1
  73. package/dist/{chunk-V5VBYOF5.js → chunk-SFFSXC5E.js} +36 -36
  74. package/dist/{chunk-V5VBYOF5.js.map → chunk-SFFSXC5E.js.map} +1 -1
  75. package/dist/{chunk-AVM53A3Y.js → chunk-U6XA2OYE.js} +28 -28
  76. package/dist/{chunk-AVM53A3Y.js.map → chunk-U6XA2OYE.js.map} +1 -1
  77. package/dist/{chunk-7CEZB3ZD.mjs → chunk-ULEPJXTN.mjs} +3 -3
  78. package/dist/{chunk-7CEZB3ZD.mjs.map → chunk-ULEPJXTN.mjs.map} +1 -1
  79. package/dist/{chunk-FK3WDELF.js → chunk-VMIAMBCP.js} +40 -40
  80. package/dist/{chunk-FK3WDELF.js.map → chunk-VMIAMBCP.js.map} +1 -1
  81. package/dist/{chunk-OASC7NYV.mjs → chunk-WKCR4KVQ.mjs} +3 -3
  82. package/dist/{chunk-OASC7NYV.mjs.map → chunk-WKCR4KVQ.mjs.map} +1 -1
  83. package/dist/{chunk-6W7VTZG6.mjs → chunk-YV2SE5LS.mjs} +3 -3
  84. package/dist/{chunk-6W7VTZG6.mjs.map → chunk-YV2SE5LS.mjs.map} +1 -1
  85. package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +17 -0
  86. package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +17 -0
  87. package/dist/index-BNRGVAS5.d.mts +222 -0
  88. package/dist/index-BoebbJ44.d.mts +49 -0
  89. package/dist/index-BoebbJ44.d.ts +49 -0
  90. package/dist/index-CnCY-b5V.d.ts +222 -0
  91. package/dist/index.d.mts +5310 -0
  92. package/dist/index.d.ts +5310 -0
  93. package/dist/index.js +721 -721
  94. package/dist/index.mjs +2 -2
  95. package/dist/layout-engine-YZcVr20M.d.mts +19 -0
  96. package/dist/layout-engine-YZcVr20M.d.ts +19 -0
  97. package/dist/lib/i18n-context.d.mts +36 -0
  98. package/dist/lib/i18n-context.d.ts +36 -0
  99. package/dist/lib/router-context.d.mts +35 -0
  100. package/dist/lib/router-context.d.ts +35 -0
  101. package/dist/navigation-BiWVffAN.d.mts +49 -0
  102. package/dist/navigation-BiWVffAN.d.ts +49 -0
  103. package/dist/platform/admin/index.d.mts +17 -0
  104. package/dist/platform/admin/index.d.ts +17 -0
  105. package/dist/platform/admin/index.js +11 -11
  106. package/dist/platform/admin/index.mjs +5 -5
  107. package/dist/platform/agents-workspace.d.mts +19 -0
  108. package/dist/platform/agents-workspace.d.ts +19 -0
  109. package/dist/platform/agents-workspace.js +7 -7
  110. package/dist/platform/agents-workspace.mjs +6 -6
  111. package/dist/platform/app-shell.d.mts +58 -0
  112. package/dist/platform/app-shell.d.ts +58 -0
  113. package/dist/platform/app-shell.js +4 -4
  114. package/dist/platform/app-shell.mjs +3 -3
  115. package/dist/platform/auth/index.d.mts +73 -0
  116. package/dist/platform/auth/index.d.ts +73 -0
  117. package/dist/platform/auth/index.js +28 -28
  118. package/dist/platform/auth/index.mjs +5 -5
  119. package/dist/platform/billing/index.d.mts +29 -0
  120. package/dist/platform/billing/index.d.ts +29 -0
  121. package/dist/platform/billing/index.js +4 -4
  122. package/dist/platform/billing/index.mjs +3 -3
  123. package/dist/platform/impersonation/index.d.mts +19 -0
  124. package/dist/platform/impersonation/index.d.ts +19 -0
  125. package/dist/platform/impersonation/index.js +4 -4
  126. package/dist/platform/impersonation/index.mjs +3 -3
  127. package/dist/platform/index.d.mts +188 -0
  128. package/dist/platform/index.d.ts +188 -0
  129. package/dist/platform/index.js +89 -89
  130. package/dist/platform/index.mjs +19 -19
  131. package/dist/platform/pages/index.d.mts +440 -0
  132. package/dist/platform/pages/index.d.ts +440 -0
  133. package/dist/platform/pages/index.js +206 -206
  134. package/dist/platform/pages/index.js.map +1 -1
  135. package/dist/platform/pages/index.mjs +9 -9
  136. package/dist/platform/pages/index.mjs.map +1 -1
  137. package/dist/platform/rbac.d.mts +42 -0
  138. package/dist/platform/rbac.d.ts +42 -0
  139. package/dist/platform/settings/index.d.mts +31 -0
  140. package/dist/platform/settings/index.d.ts +31 -0
  141. package/dist/platform/settings/index.js +8 -8
  142. package/dist/platform/settings/index.mjs +7 -7
  143. package/dist/platform/telemetry/index.d.mts +51 -0
  144. package/dist/platform/telemetry/index.d.ts +51 -0
  145. package/dist/platform/utils/index.d.mts +32 -0
  146. package/dist/platform/utils/index.d.ts +32 -0
  147. package/dist/platform/windsock-admin-client.d.mts +57 -0
  148. package/dist/platform/windsock-admin-client.d.ts +57 -0
  149. package/dist/platform/workflow-api-client.d.mts +6 -0
  150. package/dist/platform/workflow-api-client.d.ts +6 -0
  151. package/dist/platform/workflow-canvas-shell.d.mts +18 -0
  152. package/dist/platform/workflow-canvas-shell.d.ts +18 -0
  153. package/dist/platform/workflow-canvas-shell.js +5 -5
  154. package/dist/platform/workflow-canvas-shell.mjs +4 -4
  155. package/dist/rule-form-BYJzyork.d.mts +128 -0
  156. package/dist/rule-form-BYJzyork.d.ts +128 -0
  157. package/dist/workflow-api-client-CpFl3WcG.d.mts +468 -0
  158. package/dist/workflow-api-client-uLICOanv.d.ts +468 -0
  159. package/dist/workflow-canvas--qaYKuMm.d.ts +113 -0
  160. package/dist/workflow-canvas-B80fmD_n.d.mts +113 -0
  161. package/dist/workflow-store-o17I6L6A.d.ts +79 -0
  162. package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
  163. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ import { A as AuthUser } from '../index-BoebbJ44.mjs';
2
+ import 'react';
3
+
4
+ /**
5
+ * Generic role-based access factory shared across platform apps (astrlabe,
6
+ * kori-erp, etc). Each app instantiates this with its own role + permission
7
+ * unions and seed-claim mapping. The factory closes over the config and
8
+ * exports `ROLE_DEFINITIONS`, `MODULE_PERMISSIONS`, `normalizePlatformRole`,
9
+ * and `can()` — the same surface the per-app file used to expose.
10
+ *
11
+ * The factory deliberately does not hardcode any specific role enum here —
12
+ * astrlabe, kori-erp, and future apps each pick their own union (admin,
13
+ * manager, analyst, viewer, …) and pass the role definitions in.
14
+ */
15
+ type PlatformRoleDefinition<TRole extends string> = {
16
+ id: TRole;
17
+ label: string;
18
+ description: string;
19
+ };
20
+ type CreatePlatformRbacOptions<TRole extends string, TPermission extends string> = {
21
+ /** Definitions for every role the app supports (id/label/description). */
22
+ roles: Record<TRole, PlatformRoleDefinition<TRole>>;
23
+ /**
24
+ * Maps each app-level permission to one or more JWT permission claim
25
+ * strings. `can()` returns true when ANY of the listed claims (using
26
+ * wildcard matching) is present in the user's JWT permissions.
27
+ */
28
+ permissionClaimsMap: Record<TPermission, readonly string[]>;
29
+ /** Optional map from navigation/module IDs to required permissions. */
30
+ modulePermissions?: Record<string, TPermission>;
31
+ /** Role to fall back to when an unknown role string comes in. */
32
+ defaultRole?: TRole;
33
+ };
34
+ type PlatformRbac<TRole extends string, TPermission extends string> = {
35
+ ROLE_DEFINITIONS: Record<TRole, PlatformRoleDefinition<TRole>>;
36
+ MODULE_PERMISSIONS: Record<string, TPermission>;
37
+ normalizePlatformRole: (input: unknown) => TRole;
38
+ can: (user: AuthUser | null, permission: TPermission) => boolean;
39
+ };
40
+ declare function createPlatformRbac<TRole extends string, TPermission extends string>(opts: CreatePlatformRbacOptions<TRole, TPermission>): PlatformRbac<TRole, TPermission>;
41
+
42
+ export { type CreatePlatformRbacOptions, type PlatformRbac, type PlatformRoleDefinition, createPlatformRbac };
@@ -0,0 +1,42 @@
1
+ import { A as AuthUser } from '../index-BoebbJ44.js';
2
+ import 'react';
3
+
4
+ /**
5
+ * Generic role-based access factory shared across platform apps (astrlabe,
6
+ * kori-erp, etc). Each app instantiates this with its own role + permission
7
+ * unions and seed-claim mapping. The factory closes over the config and
8
+ * exports `ROLE_DEFINITIONS`, `MODULE_PERMISSIONS`, `normalizePlatformRole`,
9
+ * and `can()` — the same surface the per-app file used to expose.
10
+ *
11
+ * The factory deliberately does not hardcode any specific role enum here —
12
+ * astrlabe, kori-erp, and future apps each pick their own union (admin,
13
+ * manager, analyst, viewer, …) and pass the role definitions in.
14
+ */
15
+ type PlatformRoleDefinition<TRole extends string> = {
16
+ id: TRole;
17
+ label: string;
18
+ description: string;
19
+ };
20
+ type CreatePlatformRbacOptions<TRole extends string, TPermission extends string> = {
21
+ /** Definitions for every role the app supports (id/label/description). */
22
+ roles: Record<TRole, PlatformRoleDefinition<TRole>>;
23
+ /**
24
+ * Maps each app-level permission to one or more JWT permission claim
25
+ * strings. `can()` returns true when ANY of the listed claims (using
26
+ * wildcard matching) is present in the user's JWT permissions.
27
+ */
28
+ permissionClaimsMap: Record<TPermission, readonly string[]>;
29
+ /** Optional map from navigation/module IDs to required permissions. */
30
+ modulePermissions?: Record<string, TPermission>;
31
+ /** Role to fall back to when an unknown role string comes in. */
32
+ defaultRole?: TRole;
33
+ };
34
+ type PlatformRbac<TRole extends string, TPermission extends string> = {
35
+ ROLE_DEFINITIONS: Record<TRole, PlatformRoleDefinition<TRole>>;
36
+ MODULE_PERMISSIONS: Record<string, TPermission>;
37
+ normalizePlatformRole: (input: unknown) => TRole;
38
+ can: (user: AuthUser | null, permission: TPermission) => boolean;
39
+ };
40
+ declare function createPlatformRbac<TRole extends string, TPermission extends string>(opts: CreatePlatformRbacOptions<TRole, TPermission>): PlatformRbac<TRole, TPermission>;
41
+
42
+ export { type CreatePlatformRbacOptions, type PlatformRbac, type PlatformRoleDefinition, createPlatformRbac };
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AdminClient } from '@datatechsolutions/shared-domain';
3
+ import { a as BillingPanelProps } from '../../billing-panel-DsHhhJqG.mjs';
4
+
5
+ type PlatformSettingsSection = 'account' | 'organization' | 'billing';
6
+ interface PlatformSettingsProps {
7
+ /**
8
+ * Sections to surface to the current user. The host app is responsible for
9
+ * picking the right set based on RBAC — e.g. hide `organization` for users
10
+ * without `org:manage` and hide `billing` for users without `billing:read`.
11
+ * Defaults to all three.
12
+ */
13
+ sections?: PlatformSettingsSection[];
14
+ /** Starting section. Defaults to the first item in `sections`. */
15
+ defaultSection?: PlatformSettingsSection;
16
+ /**
17
+ * Windsock admin API client. Required when `organization` is in `sections`.
18
+ * Create it once with `createAdminClient({ issuer, authClient })` and reuse.
19
+ */
20
+ adminClient?: AdminClient;
21
+ /**
22
+ * Current organization id (usually `ctx.organizationId` from the JWT).
23
+ * Required when `organization` is in `sections`.
24
+ */
25
+ organizationId?: string;
26
+ /** Forwarded to `<BillingPanel>` — e.g. redirect handler, billing interval. */
27
+ billing?: BillingPanelProps;
28
+ }
29
+ declare function PlatformSettings({ sections, defaultSection, adminClient, organizationId, billing, }: PlatformSettingsProps): react_jsx_runtime.JSX.Element | null;
30
+
31
+ export { PlatformSettings, type PlatformSettingsProps, type PlatformSettingsSection };
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AdminClient } from '@datatechsolutions/shared-domain';
3
+ import { a as BillingPanelProps } from '../../billing-panel-DsHhhJqG.js';
4
+
5
+ type PlatformSettingsSection = 'account' | 'organization' | 'billing';
6
+ interface PlatformSettingsProps {
7
+ /**
8
+ * Sections to surface to the current user. The host app is responsible for
9
+ * picking the right set based on RBAC — e.g. hide `organization` for users
10
+ * without `org:manage` and hide `billing` for users without `billing:read`.
11
+ * Defaults to all three.
12
+ */
13
+ sections?: PlatformSettingsSection[];
14
+ /** Starting section. Defaults to the first item in `sections`. */
15
+ defaultSection?: PlatformSettingsSection;
16
+ /**
17
+ * Windsock admin API client. Required when `organization` is in `sections`.
18
+ * Create it once with `createAdminClient({ issuer, authClient })` and reuse.
19
+ */
20
+ adminClient?: AdminClient;
21
+ /**
22
+ * Current organization id (usually `ctx.organizationId` from the JWT).
23
+ * Required when `organization` is in `sections`.
24
+ */
25
+ organizationId?: string;
26
+ /** Forwarded to `<BillingPanel>` — e.g. redirect handler, billing interval. */
27
+ billing?: BillingPanelProps;
28
+ }
29
+ declare function PlatformSettings({ sections, defaultSection, adminClient, organizationId, billing, }: PlatformSettingsProps): react_jsx_runtime.JSX.Element | null;
30
+
31
+ export { PlatformSettings, type PlatformSettingsProps, type PlatformSettingsSection };
@@ -1,23 +1,23 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkC4NRF2G2_js = require('../../chunk-C4NRF2G2.js');
5
- require('../../chunk-P43PX75J.js');
6
- require('../../chunk-NCDBNGIB.js');
7
- require('../../chunk-CY2MBKVG.js');
8
- require('../../chunk-NKXQYFS7.js');
9
- require('../../chunk-AWDH6WNA.js');
4
+ var chunkOWJIKCR2_js = require('../../chunk-OWJIKCR2.js');
5
+ require('../../chunk-HVDDCBQ2.js');
6
+ require('../../chunk-5AVO5DJO.js');
7
+ require('../../chunk-2UMDWOUY.js');
8
+ require('../../chunk-EI6FIA45.js');
9
+ require('../../chunk-K4M4B6ME.js');
10
10
  require('../../chunk-UZ3CMNUJ.js');
11
+ require('../../chunk-YXN2K77G.js');
11
12
  require('../../chunk-S7KHTUHA.js');
12
13
  require('../../chunk-SY4MUT5V.js');
13
14
  require('../../chunk-2OZZH2IO.js');
14
- require('../../chunk-YXN2K77G.js');
15
15
 
16
16
 
17
17
 
18
18
  Object.defineProperty(exports, "PlatformSettings", {
19
19
  enumerable: true,
20
- get: function () { return chunkC4NRF2G2_js.PlatformSettings; }
20
+ get: function () { return chunkOWJIKCR2_js.PlatformSettings; }
21
21
  });
22
22
  //# sourceMappingURL=index.js.map
23
23
  //# sourceMappingURL=index.js.map
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- export { PlatformSettings } from '../../chunk-7UHV6A4C.mjs';
3
- import '../../chunk-7CEZB3ZD.mjs';
4
- import '../../chunk-QPSHM2JQ.mjs';
5
- import '../../chunk-6W7VTZG6.mjs';
6
- import '../../chunk-ZM2Q2SMC.mjs';
7
- import '../../chunk-NOHHZ6FM.mjs';
2
+ export { PlatformSettings } from '../../chunk-R6O57NTJ.mjs';
3
+ import '../../chunk-ULEPJXTN.mjs';
4
+ import '../../chunk-7OZ4MVEF.mjs';
5
+ import '../../chunk-YV2SE5LS.mjs';
6
+ import '../../chunk-L5O4NWQO.mjs';
7
+ import '../../chunk-EUXHJMGC.mjs';
8
8
  import '../../chunk-D2JF6C3E.mjs';
9
+ import '../../chunk-7VJ7CMMT.mjs';
9
10
  import '../../chunk-QWG2FMUN.mjs';
10
11
  import '../../chunk-RHRJXK5R.mjs';
11
12
  import '../../chunk-3AY5HIQ6.mjs';
12
- import '../../chunk-7VJ7CMMT.mjs';
13
13
  //# sourceMappingURL=index.mjs.map
14
14
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,51 @@
1
+ import * as posthog_js from 'posthog-js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ReactNode } from 'react';
4
+
5
+ type TelemetryUser = {
6
+ /** Stable user id — typically the windsock JWT `sub`. */
7
+ id: string;
8
+ email?: string;
9
+ name?: string;
10
+ role?: string;
11
+ /** Tenant id — from `https://datatechsolutions.com.br/organization_id` claim. */
12
+ organizationId?: string;
13
+ };
14
+ type TelemetryProviderProps = {
15
+ /** App slug — e.g. `astrlabe`, `sextant`, `data-br`. Tags every event. */
16
+ app: string;
17
+ /**
18
+ * PostHog project token (write-only key, safe in browser bundles).
19
+ * If unset, the provider falls back to `window.__APP_CONFIG__.posthog.key`
20
+ * (set by the CDK-managed `runtime-config.js`) and then to
21
+ * `import.meta.env.VITE_POSTHOG_KEY`. Pass explicitly only for tests
22
+ * or sub-app embeds.
23
+ */
24
+ projectKey?: string;
25
+ /**
26
+ * PostHog ingestion host. Falls back through the same chain as
27
+ * `projectKey`; defaults to US Cloud if nothing else resolves.
28
+ */
29
+ apiHost?: string;
30
+ /** Whether to record session replays. Defaults to true. */
31
+ recordSessions?: boolean;
32
+ /** Current authenticated user, if any. The provider re-identifies on change. */
33
+ user?: TelemetryUser | null;
34
+ children: ReactNode;
35
+ };
36
+ /**
37
+ * Wrap every SPA in this provider. Pass the windsock-resolved user so
38
+ * PostHog associates events with the right tenant; pass `null` after
39
+ * sign-out so the next session is anonymous.
40
+ */
41
+ declare function TelemetryProvider({ app, projectKey: propProjectKey, apiHost: propApiHost, recordSessions, user, children, }: TelemetryProviderProps): react_jsx_runtime.JSX.Element;
42
+ /**
43
+ * Re-export the posthog-js/react hook so consumer SPAs can capture
44
+ * custom events without importing posthog-js directly:
45
+ *
46
+ * const ph = useTelemetry()
47
+ * ph?.capture('workflow_run_started', { workflowId })
48
+ */
49
+ declare const useTelemetry: () => posthog_js.PostHog;
50
+
51
+ export { TelemetryProvider, type TelemetryProviderProps, type TelemetryUser, useTelemetry };
@@ -0,0 +1,51 @@
1
+ import * as posthog_js from 'posthog-js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { ReactNode } from 'react';
4
+
5
+ type TelemetryUser = {
6
+ /** Stable user id — typically the windsock JWT `sub`. */
7
+ id: string;
8
+ email?: string;
9
+ name?: string;
10
+ role?: string;
11
+ /** Tenant id — from `https://datatechsolutions.com.br/organization_id` claim. */
12
+ organizationId?: string;
13
+ };
14
+ type TelemetryProviderProps = {
15
+ /** App slug — e.g. `astrlabe`, `sextant`, `data-br`. Tags every event. */
16
+ app: string;
17
+ /**
18
+ * PostHog project token (write-only key, safe in browser bundles).
19
+ * If unset, the provider falls back to `window.__APP_CONFIG__.posthog.key`
20
+ * (set by the CDK-managed `runtime-config.js`) and then to
21
+ * `import.meta.env.VITE_POSTHOG_KEY`. Pass explicitly only for tests
22
+ * or sub-app embeds.
23
+ */
24
+ projectKey?: string;
25
+ /**
26
+ * PostHog ingestion host. Falls back through the same chain as
27
+ * `projectKey`; defaults to US Cloud if nothing else resolves.
28
+ */
29
+ apiHost?: string;
30
+ /** Whether to record session replays. Defaults to true. */
31
+ recordSessions?: boolean;
32
+ /** Current authenticated user, if any. The provider re-identifies on change. */
33
+ user?: TelemetryUser | null;
34
+ children: ReactNode;
35
+ };
36
+ /**
37
+ * Wrap every SPA in this provider. Pass the windsock-resolved user so
38
+ * PostHog associates events with the right tenant; pass `null` after
39
+ * sign-out so the next session is anonymous.
40
+ */
41
+ declare function TelemetryProvider({ app, projectKey: propProjectKey, apiHost: propApiHost, recordSessions, user, children, }: TelemetryProviderProps): react_jsx_runtime.JSX.Element;
42
+ /**
43
+ * Re-export the posthog-js/react hook so consumer SPAs can capture
44
+ * custom events without importing posthog-js directly:
45
+ *
46
+ * const ph = useTelemetry()
47
+ * ph?.capture('workflow_run_started', { workflowId })
48
+ */
49
+ declare const useTelemetry: () => posthog_js.PostHog;
50
+
51
+ export { TelemetryProvider, type TelemetryProviderProps, type TelemetryUser, useTelemetry };
@@ -0,0 +1,32 @@
1
+ import { WorkflowGraph } from '@datatechsolutions/shared-domain/ports/workflow';
2
+ import { WorkflowGraph as WorkflowGraph$1 } from '../../astrlabe/contracts.mjs';
3
+
4
+ /** Formats a millisecond count as a short, human-readable duration string. */
5
+ declare function formatDurationMs(ms: number | null | undefined): string;
6
+
7
+ /**
8
+ * Parses a JSON string into a typed value, returning undefined (not throwing)
9
+ * on empty input or malformed JSON. Used by form builders where the user types
10
+ * JSON into a textarea and we want to surface a friendly "couldn't parse" state
11
+ * rather than crashing the submit handler.
12
+ */
13
+ declare function tryParseJson<T = unknown>(value: FormDataEntryValue | string | null | undefined): T | undefined;
14
+ /** Parses JSON into an object record. Returns undefined if the result is not a plain object. */
15
+ declare function tryParseJsonObject(value: FormDataEntryValue | string | null | undefined): Record<string, unknown> | undefined;
16
+ /** Parses JSON into an array of records. Returns undefined if not a plain array. */
17
+ declare function tryParseJsonArray(value: FormDataEntryValue | string | null | undefined): Array<Record<string, unknown>> | undefined;
18
+
19
+ type ToolCategory = 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
20
+ declare const TOOL_CATEGORY_VALUES: readonly ToolCategory[];
21
+ /** Narrows a form value to a ToolCategory, returning undefined if not one of the known values. */
22
+ declare function parseToolCategory(value: FormDataEntryValue | null | undefined): ToolCategory | undefined;
23
+
24
+ declare function adaptWorkflowGraphToUi(graph: WorkflowGraph): WorkflowGraph$1;
25
+
26
+ declare function getLambdaApiBase(): string;
27
+ declare function buildLambdaApiUrl(path: string): string;
28
+
29
+ declare function getAuthAppUrl(): string;
30
+ declare function buildHostedAuthUrl(path: string, search?: string): string;
31
+
32
+ export { TOOL_CATEGORY_VALUES, type ToolCategory, adaptWorkflowGraphToUi, buildHostedAuthUrl, buildLambdaApiUrl, formatDurationMs, getAuthAppUrl, getLambdaApiBase, parseToolCategory, tryParseJson, tryParseJsonArray, tryParseJsonObject };
@@ -0,0 +1,32 @@
1
+ import { WorkflowGraph } from '@datatechsolutions/shared-domain/ports/workflow';
2
+ import { WorkflowGraph as WorkflowGraph$1 } from '../../astrlabe/contracts.js';
3
+
4
+ /** Formats a millisecond count as a short, human-readable duration string. */
5
+ declare function formatDurationMs(ms: number | null | undefined): string;
6
+
7
+ /**
8
+ * Parses a JSON string into a typed value, returning undefined (not throwing)
9
+ * on empty input or malformed JSON. Used by form builders where the user types
10
+ * JSON into a textarea and we want to surface a friendly "couldn't parse" state
11
+ * rather than crashing the submit handler.
12
+ */
13
+ declare function tryParseJson<T = unknown>(value: FormDataEntryValue | string | null | undefined): T | undefined;
14
+ /** Parses JSON into an object record. Returns undefined if the result is not a plain object. */
15
+ declare function tryParseJsonObject(value: FormDataEntryValue | string | null | undefined): Record<string, unknown> | undefined;
16
+ /** Parses JSON into an array of records. Returns undefined if not a plain array. */
17
+ declare function tryParseJsonArray(value: FormDataEntryValue | string | null | undefined): Array<Record<string, unknown>> | undefined;
18
+
19
+ type ToolCategory = 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
20
+ declare const TOOL_CATEGORY_VALUES: readonly ToolCategory[];
21
+ /** Narrows a form value to a ToolCategory, returning undefined if not one of the known values. */
22
+ declare function parseToolCategory(value: FormDataEntryValue | null | undefined): ToolCategory | undefined;
23
+
24
+ declare function adaptWorkflowGraphToUi(graph: WorkflowGraph): WorkflowGraph$1;
25
+
26
+ declare function getLambdaApiBase(): string;
27
+ declare function buildLambdaApiUrl(path: string): string;
28
+
29
+ declare function getAuthAppUrl(): string;
30
+ declare function buildHostedAuthUrl(path: string, search?: string): string;
31
+
32
+ export { TOOL_CATEGORY_VALUES, type ToolCategory, adaptWorkflowGraphToUi, buildHostedAuthUrl, buildLambdaApiUrl, formatDurationMs, getAuthAppUrl, getLambdaApiBase, parseToolCategory, tryParseJson, tryParseJsonArray, tryParseJsonObject };
@@ -0,0 +1,57 @@
1
+ import { AuthOrganizationDomain, AuthOrganizationRole, AdminCreateOrganizationInput, AuthOrganization, AdminCreateInvitationInput, AdminCreatePermissionInput, AdminPermission, AdminCreateUserInput, AdminUserSummary, AuthOrganizationInvitation, AdminOrganizationMember, AdminListParams, AdminListResult, AdminClient, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput } from '@datatechsolutions/shared-domain';
2
+
3
+ declare function setWindsockAdminClient(client: AdminClient, issuer: string, authFetch: typeof fetch): void;
4
+ declare function listUsers(params?: AdminListParams): Promise<AdminListResult<AdminUserSummary>>;
5
+ declare function createUser(data: AdminCreateUserInput): Promise<AdminUserSummary>;
6
+ declare function updateUser(userId: string, data: AdminUpdateUserInput): Promise<void>;
7
+ declare function deleteUser(userId: string): Promise<void>;
8
+ declare function resetUserPassword(userId: string, password: string): Promise<void>;
9
+ declare function listOrganizations(): Promise<AuthOrganization[]>;
10
+ declare function createOrganization(data: AdminCreateOrganizationInput): Promise<AuthOrganization>;
11
+ declare function updateOrganization(organizationId: string, data: AdminUpdateOrganizationInput): Promise<AuthOrganization>;
12
+ declare function deleteOrganization(organizationId: string): Promise<void>;
13
+ declare function listOrganizationMembers(organizationId: string): Promise<AdminOrganizationMember[]>;
14
+ declare function addOrganizationMember(organizationId: string, userId: string, role?: AuthOrganizationRole): Promise<void>;
15
+ declare function removeOrganizationMember(organizationId: string, userId: string): Promise<void>;
16
+ declare function listOrganizationInvitations(organizationId: string): Promise<AuthOrganizationInvitation[]>;
17
+ declare function createOrganizationInvitation(organizationId: string, data: AdminCreateInvitationInput): Promise<void>;
18
+ declare function listOrganizationDomains(organizationId: string): Promise<AuthOrganizationDomain[]>;
19
+ declare function addOrganizationDomain(organizationId: string, domain: string): Promise<AuthOrganizationDomain>;
20
+ declare function verifyOrganizationDomain(organizationId: string, domain: string): Promise<void>;
21
+ declare function listPermissions(): Promise<AdminPermission[]>;
22
+ declare function createPermission(data: AdminCreatePermissionInput): Promise<AdminPermission>;
23
+ declare function updatePermission(permissionId: string, data: AdminUpdatePermissionInput): Promise<void>;
24
+ declare function deletePermission(permissionId: string): Promise<void>;
25
+ declare function getUserPermissions(userId: string): Promise<AdminPermission[]>;
26
+ declare function setUserPermissions(userId: string, permissionIds: string[]): Promise<void>;
27
+ type SecretSummary = {
28
+ secretId: string;
29
+ name: string;
30
+ secretType: string;
31
+ description: string | null;
32
+ expiresAt: string | null;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ disabled: boolean;
36
+ };
37
+ type SecretDetail = SecretSummary & {
38
+ value?: string;
39
+ };
40
+ type CreateSecretInput = {
41
+ name: string;
42
+ value: string;
43
+ secretType?: string;
44
+ description?: string;
45
+ leaseTtlSeconds?: number;
46
+ };
47
+ type UpdateSecretInput = {
48
+ value: string;
49
+ leaseTtlSeconds?: number;
50
+ };
51
+ declare function listSecrets(organizationId: string): Promise<SecretSummary[]>;
52
+ declare function getSecret(organizationId: string, secretId: string): Promise<SecretDetail>;
53
+ declare function createSecret(organizationId: string, input: CreateSecretInput): Promise<SecretSummary>;
54
+ declare function rotateSecret(organizationId: string, secretId: string, input: UpdateSecretInput): Promise<SecretSummary>;
55
+ declare function disableSecret(organizationId: string, secretId: string): Promise<void>;
56
+
57
+ export { type CreateSecretInput, type SecretDetail, type SecretSummary, type 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 };
@@ -0,0 +1,57 @@
1
+ import { AuthOrganizationDomain, AuthOrganizationRole, AdminCreateOrganizationInput, AuthOrganization, AdminCreateInvitationInput, AdminCreatePermissionInput, AdminPermission, AdminCreateUserInput, AdminUserSummary, AuthOrganizationInvitation, AdminOrganizationMember, AdminListParams, AdminListResult, AdminClient, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput } from '@datatechsolutions/shared-domain';
2
+
3
+ declare function setWindsockAdminClient(client: AdminClient, issuer: string, authFetch: typeof fetch): void;
4
+ declare function listUsers(params?: AdminListParams): Promise<AdminListResult<AdminUserSummary>>;
5
+ declare function createUser(data: AdminCreateUserInput): Promise<AdminUserSummary>;
6
+ declare function updateUser(userId: string, data: AdminUpdateUserInput): Promise<void>;
7
+ declare function deleteUser(userId: string): Promise<void>;
8
+ declare function resetUserPassword(userId: string, password: string): Promise<void>;
9
+ declare function listOrganizations(): Promise<AuthOrganization[]>;
10
+ declare function createOrganization(data: AdminCreateOrganizationInput): Promise<AuthOrganization>;
11
+ declare function updateOrganization(organizationId: string, data: AdminUpdateOrganizationInput): Promise<AuthOrganization>;
12
+ declare function deleteOrganization(organizationId: string): Promise<void>;
13
+ declare function listOrganizationMembers(organizationId: string): Promise<AdminOrganizationMember[]>;
14
+ declare function addOrganizationMember(organizationId: string, userId: string, role?: AuthOrganizationRole): Promise<void>;
15
+ declare function removeOrganizationMember(organizationId: string, userId: string): Promise<void>;
16
+ declare function listOrganizationInvitations(organizationId: string): Promise<AuthOrganizationInvitation[]>;
17
+ declare function createOrganizationInvitation(organizationId: string, data: AdminCreateInvitationInput): Promise<void>;
18
+ declare function listOrganizationDomains(organizationId: string): Promise<AuthOrganizationDomain[]>;
19
+ declare function addOrganizationDomain(organizationId: string, domain: string): Promise<AuthOrganizationDomain>;
20
+ declare function verifyOrganizationDomain(organizationId: string, domain: string): Promise<void>;
21
+ declare function listPermissions(): Promise<AdminPermission[]>;
22
+ declare function createPermission(data: AdminCreatePermissionInput): Promise<AdminPermission>;
23
+ declare function updatePermission(permissionId: string, data: AdminUpdatePermissionInput): Promise<void>;
24
+ declare function deletePermission(permissionId: string): Promise<void>;
25
+ declare function getUserPermissions(userId: string): Promise<AdminPermission[]>;
26
+ declare function setUserPermissions(userId: string, permissionIds: string[]): Promise<void>;
27
+ type SecretSummary = {
28
+ secretId: string;
29
+ name: string;
30
+ secretType: string;
31
+ description: string | null;
32
+ expiresAt: string | null;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ disabled: boolean;
36
+ };
37
+ type SecretDetail = SecretSummary & {
38
+ value?: string;
39
+ };
40
+ type CreateSecretInput = {
41
+ name: string;
42
+ value: string;
43
+ secretType?: string;
44
+ description?: string;
45
+ leaseTtlSeconds?: number;
46
+ };
47
+ type UpdateSecretInput = {
48
+ value: string;
49
+ leaseTtlSeconds?: number;
50
+ };
51
+ declare function listSecrets(organizationId: string): Promise<SecretSummary[]>;
52
+ declare function getSecret(organizationId: string, secretId: string): Promise<SecretDetail>;
53
+ declare function createSecret(organizationId: string, input: CreateSecretInput): Promise<SecretSummary>;
54
+ declare function rotateSecret(organizationId: string, secretId: string, input: UpdateSecretInput): Promise<SecretSummary>;
55
+ declare function disableSecret(organizationId: string, secretId: string): Promise<void>;
56
+
57
+ export { type CreateSecretInput, type SecretDetail, type SecretSummary, type 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 };
@@ -0,0 +1,6 @@
1
+ import '../astrlabe/contracts.mjs';
2
+ import '../index-BNRGVAS5.mjs';
3
+ import '@datatechsolutions/shared-domain/ports/workflow';
4
+ import '@datatechsolutions/shared-domain/common';
5
+ export { h as AiGenerateResponse, i as AiValidateResponse, A as AnalyticsSummary, j as ApprovalDecision, k as ApprovalResponse, l as ModelFamilyCatalogEntry, m as ModelProviderCatalogEntry, M as ModelProviderConnection, N as NodeMetrics, n as NodeValidationIssue, P as PresignUploadInput, o as PresignedUpload, p as PublicSampleWorkflow, q as RunEvent, r as RunSubscriptionState, R as RunTimelineEntry, W as WorkflowRunListParams, s as WorkflowTemplateSummary, t as aiGenerateWorkflow, u as aiValidateWorkflow, v as buildAuthenticatedApiUrl, w as cancelWorkflowRun, x as createAgentConfig, y as createAgentPrompt, z as createAgentRule, B as createAgentTool, C as createAgentToolDefinition, E as createDatasource, F as createModelProviderConnection, G as createWorkflow, H as createWorkflowFromTemplate, I as deleteAgentConfig, J as deleteAgentPrompt, K as deleteAgentRule, L as deleteAgentTool, O as deleteAgentToolDefinition, Q as deleteModelProviderConnection, S as deleteUpload, T as deleteWorkflow, U as executeAgentRule, V as executeWorkflow, X as getAgentConfigsWithPrompts, Y as getAgentModels, Z as getAgentPrompts, _ as getAgentRules, $ as getAgentToolDefinitions, a0 as getAgentTools, a1 as getAnalyticsSummary, a2 as getCurrentAccessToken, a3 as getDatasourceSchema, a4 as getDatasourceTables, a5 as getDatasources, a6 as getPublicSampleWorkflow, a7 as getRunTimeline, a8 as getUploadDownloadUrl, a9 as getWorkflowById, aa as getWorkflowRunById, ab as getWorkflowRuns, ac as getWorkflows, ad as listModelProviderCatalog, ae as listModelProviderConnections, af as listWorkflowRuns, ag as listWorkflowTemplates, ah as presignUpload, ai as publishWorkflow, aj as replayWorkflowRun, ak as saveWorkflowDraft, al as setAccessTokenProvider, am as setAuthenticatedFetch, an as submitApproval, ao as subscribeToRunEvents, ap as updateAgentConfig, aq as updateAgentPrompt, ar as updateAgentRule, as as updateAgentTool, at as updateAgentToolDefinition, au as updateModelProviderConnection, av as updateWorkflowSettings } from '../workflow-api-client-CpFl3WcG.mjs';
6
+ import 'react/jsx-runtime';
@@ -0,0 +1,6 @@
1
+ import '../astrlabe/contracts.js';
2
+ import '../index-CnCY-b5V.js';
3
+ import '@datatechsolutions/shared-domain/ports/workflow';
4
+ import '@datatechsolutions/shared-domain/common';
5
+ export { h as AiGenerateResponse, i as AiValidateResponse, A as AnalyticsSummary, j as ApprovalDecision, k as ApprovalResponse, l as ModelFamilyCatalogEntry, m as ModelProviderCatalogEntry, M as ModelProviderConnection, N as NodeMetrics, n as NodeValidationIssue, P as PresignUploadInput, o as PresignedUpload, p as PublicSampleWorkflow, q as RunEvent, r as RunSubscriptionState, R as RunTimelineEntry, W as WorkflowRunListParams, s as WorkflowTemplateSummary, t as aiGenerateWorkflow, u as aiValidateWorkflow, v as buildAuthenticatedApiUrl, w as cancelWorkflowRun, x as createAgentConfig, y as createAgentPrompt, z as createAgentRule, B as createAgentTool, C as createAgentToolDefinition, E as createDatasource, F as createModelProviderConnection, G as createWorkflow, H as createWorkflowFromTemplate, I as deleteAgentConfig, J as deleteAgentPrompt, K as deleteAgentRule, L as deleteAgentTool, O as deleteAgentToolDefinition, Q as deleteModelProviderConnection, S as deleteUpload, T as deleteWorkflow, U as executeAgentRule, V as executeWorkflow, X as getAgentConfigsWithPrompts, Y as getAgentModels, Z as getAgentPrompts, _ as getAgentRules, $ as getAgentToolDefinitions, a0 as getAgentTools, a1 as getAnalyticsSummary, a2 as getCurrentAccessToken, a3 as getDatasourceSchema, a4 as getDatasourceTables, a5 as getDatasources, a6 as getPublicSampleWorkflow, a7 as getRunTimeline, a8 as getUploadDownloadUrl, a9 as getWorkflowById, aa as getWorkflowRunById, ab as getWorkflowRuns, ac as getWorkflows, ad as listModelProviderCatalog, ae as listModelProviderConnections, af as listWorkflowRuns, ag as listWorkflowTemplates, ah as presignUpload, ai as publishWorkflow, aj as replayWorkflowRun, ak as saveWorkflowDraft, al as setAccessTokenProvider, am as setAuthenticatedFetch, an as submitApproval, ao as subscribeToRunEvents, ap as updateAgentConfig, aq as updateAgentPrompt, ar as updateAgentRule, as as updateAgentTool, at as updateAgentToolDefinition, au as updateModelProviderConnection, av as updateWorkflowSettings } from '../workflow-api-client-uLICOanv.js';
6
+ import 'react/jsx-runtime';
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common';
3
+
4
+ /**
5
+ * Workflow canvas shell with optional message bundle override.
6
+ *
7
+ * Most apps wrap their tree in `<I18nProvider>` and let the canvas read
8
+ * messages from context — in that case `messages` can be omitted. Apps
9
+ * that need to inject a precomputed bundle (e.g. for tests or app-specific
10
+ * overrides not shipped with shared-domain) can pass it explicitly.
11
+ */
12
+ type Props = WorkflowCanvasShellProps & {
13
+ /** Optional override for the messages catalog passed into the canvas. */
14
+ messages?: Record<string, unknown>;
15
+ };
16
+ declare function WorkflowCanvasShell({ graph, messages }: Props): react_jsx_runtime.JSX.Element;
17
+
18
+ export { WorkflowCanvasShell };
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common';
3
+
4
+ /**
5
+ * Workflow canvas shell with optional message bundle override.
6
+ *
7
+ * Most apps wrap their tree in `<I18nProvider>` and let the canvas read
8
+ * messages from context — in that case `messages` can be omitted. Apps
9
+ * that need to inject a precomputed bundle (e.g. for tests or app-specific
10
+ * overrides not shipped with shared-domain) can pass it explicitly.
11
+ */
12
+ type Props = WorkflowCanvasShellProps & {
13
+ /** Optional override for the messages catalog passed into the canvas. */
14
+ messages?: Record<string, unknown>;
15
+ };
16
+ declare function WorkflowCanvasShell({ graph, messages }: Props): react_jsx_runtime.JSX.Element;
17
+
18
+ export { WorkflowCanvasShell };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkBVXATTTA_js = require('../chunk-BVXATTTA.js');
5
- require('../chunk-QSMPKL27.js');
6
- require('../chunk-AWDH6WNA.js');
4
+ var chunkMT4FJRMD_js = require('../chunk-MT4FJRMD.js');
5
+ require('../chunk-F5UDX6JA.js');
6
+ require('../chunk-K4M4B6ME.js');
7
7
  require('../chunk-UZ3CMNUJ.js');
8
+ require('../chunk-YXN2K77G.js');
8
9
  require('../chunk-S7KHTUHA.js');
9
10
  require('../chunk-SY4MUT5V.js');
10
11
  require('../chunk-2OZZH2IO.js');
11
- require('../chunk-YXN2K77G.js');
12
12
  require('../chunk-P4YYEM4B.js');
13
13
  require('../chunk-72SWXOD5.js');
14
14
 
@@ -16,7 +16,7 @@ require('../chunk-72SWXOD5.js');
16
16
 
17
17
  Object.defineProperty(exports, "WorkflowCanvasShell", {
18
18
  enumerable: true,
19
- get: function () { return chunkBVXATTTA_js.WorkflowCanvasShell; }
19
+ get: function () { return chunkMT4FJRMD_js.WorkflowCanvasShell; }
20
20
  });
21
21
  //# sourceMappingURL=workflow-canvas-shell.js.map
22
22
  //# sourceMappingURL=workflow-canvas-shell.js.map
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- export { WorkflowCanvasShell } from '../chunk-4PFU6A2B.mjs';
3
- import '../chunk-OASC7NYV.mjs';
4
- import '../chunk-NOHHZ6FM.mjs';
2
+ export { WorkflowCanvasShell } from '../chunk-R3Q5RXXO.mjs';
3
+ import '../chunk-WKCR4KVQ.mjs';
4
+ import '../chunk-EUXHJMGC.mjs';
5
5
  import '../chunk-D2JF6C3E.mjs';
6
+ import '../chunk-7VJ7CMMT.mjs';
6
7
  import '../chunk-QWG2FMUN.mjs';
7
8
  import '../chunk-RHRJXK5R.mjs';
8
9
  import '../chunk-3AY5HIQ6.mjs';
9
- import '../chunk-7VJ7CMMT.mjs';
10
10
  import '../chunk-OZNTQROP.mjs';
11
11
  import '../chunk-G7JQ4OCE.mjs';
12
12
  //# sourceMappingURL=workflow-canvas-shell.mjs.map