@datatechsolutions/ui 3.7.3 → 3.7.4
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/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-5W6LMDXV.mjs → chunk-4HP7XS5I.mjs} +4 -4
- package/dist/{chunk-5W6LMDXV.mjs.map → chunk-4HP7XS5I.mjs.map} +1 -1
- package/dist/{chunk-7JZFNKJD.js → chunk-7WIWDSF6.js} +36 -36
- package/dist/{chunk-7JZFNKJD.js.map → chunk-7WIWDSF6.js.map} +1 -1
- package/dist/{chunk-FKUIVS6I.js → chunk-BEUPW5WS.js} +28 -28
- package/dist/{chunk-FKUIVS6I.js.map → chunk-BEUPW5WS.js.map} +1 -1
- package/dist/{chunk-PYNXIDG3.mjs → chunk-CTCO2YI5.mjs} +3 -3
- package/dist/{chunk-PYNXIDG3.mjs.map → chunk-CTCO2YI5.mjs.map} +1 -1
- package/dist/{chunk-A4A3SQTV.mjs → chunk-DCBRGVD3.mjs} +3 -3
- package/dist/{chunk-A4A3SQTV.mjs.map → chunk-DCBRGVD3.mjs.map} +1 -1
- package/dist/{chunk-E57RZXOR.js → chunk-DWIBK7GV.js} +25 -25
- package/dist/{chunk-E57RZXOR.js.map → chunk-DWIBK7GV.js.map} +1 -1
- package/dist/{chunk-5YVOLHSW.mjs → chunk-EIZM2EQA.mjs} +4 -4
- package/dist/{chunk-5YVOLHSW.mjs.map → chunk-EIZM2EQA.mjs.map} +1 -1
- package/dist/{chunk-TCP45Q4B.js → chunk-FIB2CFJK.js} +9 -9
- package/dist/{chunk-TCP45Q4B.js.map → chunk-FIB2CFJK.js.map} +1 -1
- package/dist/{chunk-32DHEVOH.mjs → chunk-GAN7AKZ2.mjs} +3 -3
- package/dist/{chunk-32DHEVOH.mjs.map → chunk-GAN7AKZ2.mjs.map} +1 -1
- package/dist/{chunk-FNA66TT4.js → chunk-GD6FHRHV.js} +3 -3
- package/dist/{chunk-FNA66TT4.js.map → chunk-GD6FHRHV.js.map} +1 -1
- package/dist/{chunk-PCUINUIC.mjs → chunk-IKH5IRDK.mjs} +3 -3
- package/dist/{chunk-PCUINUIC.mjs.map → chunk-IKH5IRDK.mjs.map} +1 -1
- package/dist/{chunk-VS6PTRQ7.mjs → chunk-IKHWYYZC.mjs} +3 -3
- package/dist/{chunk-VS6PTRQ7.mjs.map → chunk-IKHWYYZC.mjs.map} +1 -1
- package/dist/{chunk-3H5CFLVK.js → chunk-IYDGO7RW.js} +135 -135
- package/dist/{chunk-3H5CFLVK.js.map → chunk-IYDGO7RW.js.map} +1 -1
- package/dist/{chunk-CZZOCKEA.mjs → chunk-JUDQX6MP.mjs} +3 -3
- package/dist/{chunk-CZZOCKEA.mjs.map → chunk-JUDQX6MP.mjs.map} +1 -1
- package/dist/{chunk-HBOORO52.js → chunk-KI4UPW4Z.js} +4 -4
- package/dist/{chunk-HBOORO52.js.map → chunk-KI4UPW4Z.js.map} +1 -1
- package/dist/{chunk-Q4QORAMH.js → chunk-MFAVWJWE.js} +10 -10
- package/dist/{chunk-Q4QORAMH.js.map → chunk-MFAVWJWE.js.map} +1 -1
- package/dist/{chunk-KKXI7CPF.mjs → chunk-MGZTZELL.mjs} +3 -3
- package/dist/{chunk-KKXI7CPF.mjs.map → chunk-MGZTZELL.mjs.map} +1 -1
- package/dist/{chunk-ZP37M2QK.mjs → chunk-MRLEINJN.mjs} +7 -7
- package/dist/{chunk-ZP37M2QK.mjs.map → chunk-MRLEINJN.mjs.map} +1 -1
- package/dist/{chunk-57E4TCB2.mjs → chunk-N5365CGD.mjs} +3 -3
- package/dist/{chunk-57E4TCB2.mjs.map → chunk-N5365CGD.mjs.map} +1 -1
- package/dist/{chunk-EWYAM4WJ.mjs → chunk-P7GVXI7Y.mjs} +3 -3
- package/dist/{chunk-EWYAM4WJ.mjs.map → chunk-P7GVXI7Y.mjs.map} +1 -1
- package/dist/{chunk-3X3IYDG6.js → chunk-QL2JYRBN.js} +68 -68
- package/dist/{chunk-3X3IYDG6.js.map → chunk-QL2JYRBN.js.map} +1 -1
- package/dist/{chunk-RCHTRG7R.js → chunk-R2RPRRB4.js} +55 -55
- package/dist/{chunk-RCHTRG7R.js.map → chunk-R2RPRRB4.js.map} +1 -1
- package/dist/{chunk-H37VDL7Y.js → chunk-RBB5YGWH.js} +4 -4
- package/dist/{chunk-H37VDL7Y.js.map → chunk-RBB5YGWH.js.map} +1 -1
- package/dist/{chunk-TJPPZU77.js → chunk-SUU7XPRX.js} +34 -34
- package/dist/{chunk-TJPPZU77.js.map → chunk-SUU7XPRX.js.map} +1 -1
- package/dist/{chunk-F35GFICG.js → chunk-VDO6MDQW.js} +13 -13
- package/dist/{chunk-F35GFICG.js.map → chunk-VDO6MDQW.js.map} +1 -1
- package/dist/{chunk-VPFVW7ZF.js → chunk-XT76DMP5.js} +35 -35
- package/dist/{chunk-VPFVW7ZF.js.map → chunk-XT76DMP5.js.map} +1 -1
- package/dist/{chunk-WDBVIU7W.mjs → chunk-YNHQ36UU.mjs} +3 -3
- package/dist/{chunk-WDBVIU7W.mjs.map → chunk-YNHQ36UU.mjs.map} +1 -1
- package/dist/{chunk-E6C7MFHJ.mjs → chunk-Z3BMHKKH.mjs} +3 -3
- package/dist/{chunk-E6C7MFHJ.mjs.map → chunk-Z3BMHKKH.mjs.map} +1 -1
- package/dist/{chunk-Q7HRCCFT.js → chunk-ZF7RJNPD.js} +45 -45
- package/dist/{chunk-Q7HRCCFT.js.map → chunk-ZF7RJNPD.js.map} +1 -1
- package/dist/{chunk-74BU2EBZ.mjs → chunk-ZWLMKOHZ.mjs} +6 -6
- package/dist/{chunk-74BU2EBZ.mjs.map → chunk-ZWLMKOHZ.mjs.map} +1 -1
- package/dist/index.js +665 -665
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +10 -10
- package/dist/platform/admin/index.mjs +4 -4
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +22 -22
- package/dist/platform/auth/index.mjs +4 -4
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +86 -86
- package/dist/platform/index.mjs +18 -18
- package/dist/platform/pages/index.js +416 -254
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +193 -31
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +7 -7
- package/dist/platform/settings/index.mjs +6 -6
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/package.json +1 -1
- package/dist/astrlabe/contracts.d.mts +0 -517
- package/dist/astrlabe/contracts.d.ts +0 -517
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/index.d.mts +0 -743
- package/dist/astrlabe/index.d.ts +0 -743
- package/dist/astrlabe/utils.d.mts +0 -60
- package/dist/astrlabe/utils.d.ts +0 -60
- package/dist/astrlabe/workflow-canvas.d.mts +0 -6
- package/dist/astrlabe/workflow-canvas.d.ts +0 -6
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/billing-panel-DsHhhJqG.d.mts +0 -18
- package/dist/billing-panel-DsHhhJqG.d.ts +0 -18
- package/dist/brand/index.d.mts +0 -71
- package/dist/brand/index.d.ts +0 -71
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +0 -17
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +0 -17
- package/dist/index-BNRGVAS5.d.mts +0 -222
- package/dist/index-BoebbJ44.d.mts +0 -49
- package/dist/index-BoebbJ44.d.ts +0 -49
- package/dist/index-CnCY-b5V.d.ts +0 -222
- package/dist/index.d.mts +0 -5316
- package/dist/index.d.ts +0 -5316
- package/dist/layout-engine-YZcVr20M.d.mts +0 -19
- package/dist/layout-engine-YZcVr20M.d.ts +0 -19
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/navigation-BiWVffAN.d.mts +0 -49
- package/dist/navigation-BiWVffAN.d.ts +0 -49
- package/dist/platform/admin/index.d.mts +0 -17
- package/dist/platform/admin/index.d.ts +0 -17
- package/dist/platform/agents-workspace.d.mts +0 -19
- package/dist/platform/agents-workspace.d.ts +0 -19
- package/dist/platform/app-shell.d.mts +0 -64
- package/dist/platform/app-shell.d.ts +0 -64
- package/dist/platform/auth/index.d.mts +0 -73
- package/dist/platform/auth/index.d.ts +0 -73
- package/dist/platform/billing/index.d.mts +0 -29
- package/dist/platform/billing/index.d.ts +0 -29
- package/dist/platform/impersonation/index.d.mts +0 -19
- package/dist/platform/impersonation/index.d.ts +0 -19
- package/dist/platform/index.d.mts +0 -188
- package/dist/platform/index.d.ts +0 -188
- package/dist/platform/pages/index.d.mts +0 -526
- package/dist/platform/pages/index.d.ts +0 -526
- package/dist/platform/rbac.d.mts +0 -42
- package/dist/platform/rbac.d.ts +0 -42
- package/dist/platform/settings/index.d.mts +0 -31
- package/dist/platform/settings/index.d.ts +0 -31
- package/dist/platform/telemetry/index.d.mts +0 -51
- package/dist/platform/telemetry/index.d.ts +0 -51
- package/dist/platform/utils/index.d.mts +0 -32
- package/dist/platform/utils/index.d.ts +0 -32
- package/dist/platform/windsock-admin-client.d.mts +0 -57
- package/dist/platform/windsock-admin-client.d.ts +0 -57
- package/dist/platform/workflow-api-client.d.mts +0 -6
- package/dist/platform/workflow-api-client.d.ts +0 -6
- package/dist/platform/workflow-canvas-shell.d.mts +0 -18
- package/dist/platform/workflow-canvas-shell.d.ts +0 -18
- package/dist/rule-form-BYJzyork.d.mts +0 -128
- package/dist/rule-form-BYJzyork.d.ts +0 -128
- package/dist/workflow-api-client-CpFl3WcG.d.mts +0 -468
- package/dist/workflow-api-client-uLICOanv.d.ts +0 -468
- package/dist/workflow-canvas--qaYKuMm.d.ts +0 -113
- package/dist/workflow-canvas-B80fmD_n.d.mts +0 -113
- package/dist/workflow-store-o17I6L6A.d.ts +0 -79
- package/dist/workflow-store-ppVHdMZi.d.mts +0 -79
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { UsersPageViewProps, DataSource, RolesPageViewProps, WorkflowsPageViewProps } from '@datatechsolutions/shared-domain/common';
|
|
3
|
-
import { AgentModel, AgentTool, AgentRule, WorkflowRun, ModelProviderType } from '../../astrlabe/contracts.js';
|
|
4
|
-
import { A as AgentWithPrompts } from '../../index-CnCY-b5V.js';
|
|
5
|
-
import { AgentPrompt } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
6
|
-
import { R as RuleFormValue, E as ExecutionTimelineLabels } from '../../rule-form-BYJzyork.js';
|
|
7
|
-
import { D as DatasourceFormData, A as AnalyticsSummary, R as RunTimelineEntry, M as ModelProviderConnection } from '../../workflow-api-client-uLICOanv.js';
|
|
8
|
-
export { a as DIALECT_CATEGORIES, b as DatasourceFormModal, c as DatasourceFormModalProps, d as DatasourceModal, e as DatasourceModalProps, f as findCategory, g as findDialect } from '../../workflow-api-client-uLICOanv.js';
|
|
9
|
-
import { ReactNode } from 'react';
|
|
10
|
-
import { PlatformRoleDefinition } from '../rbac.js';
|
|
11
|
-
import { SecretSummary } from '../windsock-admin-client.js';
|
|
12
|
-
import '../../index-BoebbJ44.js';
|
|
13
|
-
import '@datatechsolutions/shared-domain';
|
|
14
|
-
|
|
15
|
-
declare function UsersPageView({ labels, users, onCreateUser, onUpdateRole }: UsersPageViewProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
type AgentsModelsLabels = {
|
|
18
|
-
title: string;
|
|
19
|
-
subtitle: string;
|
|
20
|
-
provider: string;
|
|
21
|
-
enabled: string;
|
|
22
|
-
disabled: string;
|
|
23
|
-
empty: string;
|
|
24
|
-
searchPlaceholder?: string;
|
|
25
|
-
};
|
|
26
|
-
type Props$9 = {
|
|
27
|
-
labels: AgentsModelsLabels;
|
|
28
|
-
models: AgentModel[];
|
|
29
|
-
loading: boolean;
|
|
30
|
-
};
|
|
31
|
-
declare function AgentsModelsPageView({ labels, models, loading }: Props$9): react_jsx_runtime.JSX.Element;
|
|
32
|
-
|
|
33
|
-
type AgentConfigFormInput = {
|
|
34
|
-
agentId?: string;
|
|
35
|
-
name: string;
|
|
36
|
-
modelId: string;
|
|
37
|
-
systemPrompt: string;
|
|
38
|
-
maxTokens: number;
|
|
39
|
-
temperature: number;
|
|
40
|
-
outputSchema?: string;
|
|
41
|
-
};
|
|
42
|
-
type AgentsConfigLabels = {
|
|
43
|
-
title: string;
|
|
44
|
-
subtitle: string;
|
|
45
|
-
addAgent: string;
|
|
46
|
-
createTitle: string;
|
|
47
|
-
editTitle: string;
|
|
48
|
-
name: string;
|
|
49
|
-
model: string;
|
|
50
|
-
systemPrompt: string;
|
|
51
|
-
maxTokens: number | string;
|
|
52
|
-
temperature: string;
|
|
53
|
-
outputSchema: string;
|
|
54
|
-
outputSchemaPlaceholder: string;
|
|
55
|
-
save: string;
|
|
56
|
-
delete: string;
|
|
57
|
-
edit: string;
|
|
58
|
-
deleteConfirm: string;
|
|
59
|
-
activeVersion: string;
|
|
60
|
-
empty: string;
|
|
61
|
-
searchPlaceholder?: string;
|
|
62
|
-
};
|
|
63
|
-
type Props$8 = {
|
|
64
|
-
labels: AgentsConfigLabels;
|
|
65
|
-
agents: AgentWithPrompts[];
|
|
66
|
-
models: AgentModel[];
|
|
67
|
-
loading: boolean;
|
|
68
|
-
onCreate: (input: AgentConfigFormInput) => void;
|
|
69
|
-
onUpdate: (agentId: string, input: AgentConfigFormInput) => void;
|
|
70
|
-
onDelete: (agent: AgentWithPrompts) => void;
|
|
71
|
-
};
|
|
72
|
-
declare function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpdate, onDelete }: Props$8): react_jsx_runtime.JSX.Element;
|
|
73
|
-
|
|
74
|
-
type PromptFormInput = {
|
|
75
|
-
agentId: string;
|
|
76
|
-
locale: string;
|
|
77
|
-
prompt: string;
|
|
78
|
-
systemPrompt?: string;
|
|
79
|
-
userTemplate?: string;
|
|
80
|
-
isActive: boolean;
|
|
81
|
-
reason?: string;
|
|
82
|
-
};
|
|
83
|
-
type AgentsPromptsLabels = {
|
|
84
|
-
title: string;
|
|
85
|
-
subtitle: string;
|
|
86
|
-
addPrompt: string;
|
|
87
|
-
createTitle: string;
|
|
88
|
-
editTitle: string;
|
|
89
|
-
agent: string;
|
|
90
|
-
locale: string;
|
|
91
|
-
version: string;
|
|
92
|
-
isActive: string;
|
|
93
|
-
prompt: string;
|
|
94
|
-
systemPrompt: string;
|
|
95
|
-
userTemplate: string;
|
|
96
|
-
reason: string;
|
|
97
|
-
save: string;
|
|
98
|
-
delete: string;
|
|
99
|
-
activate: string;
|
|
100
|
-
deleteConfirm: string;
|
|
101
|
-
empty: string;
|
|
102
|
-
searchPlaceholder?: string;
|
|
103
|
-
};
|
|
104
|
-
type Props$7 = {
|
|
105
|
-
labels: AgentsPromptsLabels;
|
|
106
|
-
agents: AgentWithPrompts[];
|
|
107
|
-
prompts: AgentPrompt[];
|
|
108
|
-
loading: boolean;
|
|
109
|
-
onCreate: (input: PromptFormInput) => void;
|
|
110
|
-
onActivate: (prompt: AgentPrompt) => void;
|
|
111
|
-
onDelete: (prompt: AgentPrompt) => void;
|
|
112
|
-
};
|
|
113
|
-
declare function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onActivate, onDelete }: Props$7): react_jsx_runtime.JSX.Element;
|
|
114
|
-
|
|
115
|
-
declare const TOOL_TYPES: readonly ["http", "function", "database_query", "code_execution", "api_call"];
|
|
116
|
-
type ToolType = (typeof TOOL_TYPES)[number];
|
|
117
|
-
type ToolParameter = {
|
|
118
|
-
name: string;
|
|
119
|
-
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
120
|
-
description: string;
|
|
121
|
-
required: boolean;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Canonical form payload the page emits. The page wrapper turns this
|
|
125
|
-
* into the backend POST/PATCH bodies — parameters go through
|
|
126
|
-
* `parametersToJsonSchema` to produce `inputSchema`, and `handlerConfig`
|
|
127
|
-
* stays as-is.
|
|
128
|
-
*/
|
|
129
|
-
type ToolDefinitionFormInput = {
|
|
130
|
-
agentToolId?: string;
|
|
131
|
-
name: string;
|
|
132
|
-
description?: string;
|
|
133
|
-
toolType: ToolType;
|
|
134
|
-
parameters: ToolParameter[];
|
|
135
|
-
handlerConfig: Record<string, unknown>;
|
|
136
|
-
enabled: boolean;
|
|
137
|
-
icon?: string;
|
|
138
|
-
};
|
|
139
|
-
type AgentsToolDefinitionsLabels = {
|
|
140
|
-
title: string;
|
|
141
|
-
subtitle: string;
|
|
142
|
-
addTool: string;
|
|
143
|
-
createTitle: string;
|
|
144
|
-
editTitle: string;
|
|
145
|
-
name: string;
|
|
146
|
-
description: string;
|
|
147
|
-
category: string;
|
|
148
|
-
enabled: string;
|
|
149
|
-
disabled: string;
|
|
150
|
-
icon: string;
|
|
151
|
-
save: string;
|
|
152
|
-
delete: string;
|
|
153
|
-
edit: string;
|
|
154
|
-
deleteConfirm: string;
|
|
155
|
-
empty: string;
|
|
156
|
-
searchPlaceholder?: string;
|
|
157
|
-
};
|
|
158
|
-
type Props$6 = {
|
|
159
|
-
labels: AgentsToolDefinitionsLabels;
|
|
160
|
-
tools: AgentTool[];
|
|
161
|
-
loading: boolean;
|
|
162
|
-
onCreate: (input: ToolDefinitionFormInput) => void;
|
|
163
|
-
onUpdate: (toolId: string, input: ToolDefinitionFormInput) => void;
|
|
164
|
-
onDelete: (tool: AgentTool) => void;
|
|
165
|
-
};
|
|
166
|
-
declare function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpdate, onDelete }: Props$6): react_jsx_runtime.JSX.Element;
|
|
167
|
-
/**
|
|
168
|
-
* Build a JSON Schema object from the parameter list. Mirrors the
|
|
169
|
-
* format the backend validator (`validate_input_schema`) expects —
|
|
170
|
-
* `{ type: 'object', properties, required }`.
|
|
171
|
-
*/
|
|
172
|
-
declare function parametersToJsonSchema(params: ToolParameter[]): Record<string, unknown>;
|
|
173
|
-
/**
|
|
174
|
-
* Inverse of `parametersToJsonSchema` — hydrate the editor UI from an
|
|
175
|
-
* existing schema so the Edit flow shows what was stored.
|
|
176
|
-
*/
|
|
177
|
-
declare function jsonSchemaToParameters(schema: unknown): ToolParameter[];
|
|
178
|
-
|
|
179
|
-
type RulesLabels = {
|
|
180
|
-
title: string;
|
|
181
|
-
subtitle: string;
|
|
182
|
-
addRule: string;
|
|
183
|
-
createTitle: string;
|
|
184
|
-
editTitle: string;
|
|
185
|
-
save: string;
|
|
186
|
-
delete: string;
|
|
187
|
-
edit: string;
|
|
188
|
-
deleteConfirm: string;
|
|
189
|
-
empty: string;
|
|
190
|
-
enabled: string;
|
|
191
|
-
disabled: string;
|
|
192
|
-
order: string;
|
|
193
|
-
searchPlaceholder?: string;
|
|
194
|
-
};
|
|
195
|
-
type Props$5 = {
|
|
196
|
-
labels: RulesLabels;
|
|
197
|
-
rules: AgentRule[];
|
|
198
|
-
loading: boolean;
|
|
199
|
-
onCreate: (input: RuleFormValue) => void;
|
|
200
|
-
onUpdate: (ruleId: string, input: RuleFormValue) => void;
|
|
201
|
-
onDelete: (rule: AgentRule) => void;
|
|
202
|
-
};
|
|
203
|
-
declare function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete }: Props$5): react_jsx_runtime.JSX.Element;
|
|
204
|
-
|
|
205
|
-
type Labels = Record<string, string>;
|
|
206
|
-
type DatasourcesPageViewProps = {
|
|
207
|
-
labels: Labels;
|
|
208
|
-
datasources?: DataSource[];
|
|
209
|
-
useSampleData?: boolean;
|
|
210
|
-
onCreate?: (data: DatasourceFormData) => void;
|
|
211
|
-
};
|
|
212
|
-
declare function DatasourcesPageView({ labels, datasources: externalDatasources, useSampleData, onCreate, }: DatasourcesPageViewProps): react_jsx_runtime.JSX.Element;
|
|
213
|
-
|
|
214
|
-
type DashboardLabels = {
|
|
215
|
-
title: string;
|
|
216
|
-
subtitle: string;
|
|
217
|
-
totalRuns: string;
|
|
218
|
-
successRate: string;
|
|
219
|
-
avgDuration: string;
|
|
220
|
-
runsByStatus: string;
|
|
221
|
-
perWorkflow: string;
|
|
222
|
-
noData: string;
|
|
223
|
-
runs: string;
|
|
224
|
-
};
|
|
225
|
-
type Props$4 = {
|
|
226
|
-
labels: DashboardLabels;
|
|
227
|
-
summary: AnalyticsSummary | null;
|
|
228
|
-
loading: boolean;
|
|
229
|
-
/**
|
|
230
|
-
* App-branded logo node rendered in the dashboard hero. Each app passes
|
|
231
|
-
* its own logo (typically a pair of light/dark <img> tags toggled via
|
|
232
|
-
* Tailwind `dark:` classes) so this view stays brand-agnostic.
|
|
233
|
-
*/
|
|
234
|
-
appLogo: ReactNode;
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Platform dashboard — a centered hero with the app's logo + subtitle.
|
|
238
|
-
* Metrics and workflow tables live on dedicated pages (Analytics /
|
|
239
|
-
* Workflow Runs); this view intentionally renders only the landing chrome.
|
|
240
|
-
*
|
|
241
|
-
* `summary` and `loading` are kept on the prop type so the page that
|
|
242
|
-
* mounts this view doesn't have to change, but we intentionally don't
|
|
243
|
-
* render them here.
|
|
244
|
-
*/
|
|
245
|
-
declare function DashboardPageView({ labels, appLogo }: Props$4): react_jsx_runtime.JSX.Element;
|
|
246
|
-
|
|
247
|
-
type AgentsIndexLabels = {
|
|
248
|
-
title: string;
|
|
249
|
-
subtitle: string;
|
|
250
|
-
configTitle: string;
|
|
251
|
-
configSubtitle: string;
|
|
252
|
-
toolDefinitionsTitle: string;
|
|
253
|
-
toolDefinitionsSubtitle: string;
|
|
254
|
-
modelsTitle: string;
|
|
255
|
-
modelsSubtitle: string;
|
|
256
|
-
promptsTitle: string;
|
|
257
|
-
promptsSubtitle: string;
|
|
258
|
-
searchPlaceholder?: string;
|
|
259
|
-
};
|
|
260
|
-
declare function AgentsIndexPageView({ labels }: {
|
|
261
|
-
labels: AgentsIndexLabels;
|
|
262
|
-
}): react_jsx_runtime.JSX.Element;
|
|
263
|
-
|
|
264
|
-
type RolesPageViewExtraProps = {
|
|
265
|
-
/**
|
|
266
|
-
* App-defined role definitions, e.g. `{ admin: { id, label, description }, ... }`.
|
|
267
|
-
* Each app passes the output of its own `createPlatformRbac()` call.
|
|
268
|
-
*/
|
|
269
|
-
roleDefinitions: Record<string, PlatformRoleDefinition<string>>;
|
|
270
|
-
/**
|
|
271
|
-
* Display options surfaced in the role-assignment modal select. Each
|
|
272
|
-
* entry is `{ value: roleId, label: localizedLabel }`.
|
|
273
|
-
*/
|
|
274
|
-
roleOptions: Array<{
|
|
275
|
-
value: string;
|
|
276
|
-
label: string;
|
|
277
|
-
}>;
|
|
278
|
-
};
|
|
279
|
-
declare function RolesPageView({ labels, users, onAssignRole, roleDefinitions, roleOptions, }: RolesPageViewProps & RolesPageViewExtraProps): react_jsx_runtime.JSX.Element;
|
|
280
|
-
|
|
281
|
-
declare function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublish }: WorkflowsPageViewProps): react_jsx_runtime.JSX.Element;
|
|
282
|
-
|
|
283
|
-
type WorkflowRunsLabels = {
|
|
284
|
-
title: string;
|
|
285
|
-
subtitle: string;
|
|
286
|
-
status: string;
|
|
287
|
-
duration: string;
|
|
288
|
-
triggeredBy: string;
|
|
289
|
-
startedAt: string;
|
|
290
|
-
cancel: string;
|
|
291
|
-
replay: string;
|
|
292
|
-
view: string;
|
|
293
|
-
statusPending: string;
|
|
294
|
-
statusRunning: string;
|
|
295
|
-
statusCompleted: string;
|
|
296
|
-
statusFailed: string;
|
|
297
|
-
statusCancelled: string;
|
|
298
|
-
filterAll: string;
|
|
299
|
-
filterStatus: string;
|
|
300
|
-
empty: string;
|
|
301
|
-
timeline?: string;
|
|
302
|
-
searchPlaceholder?: string;
|
|
303
|
-
};
|
|
304
|
-
type Props$3 = {
|
|
305
|
-
labels: WorkflowRunsLabels;
|
|
306
|
-
runs: WorkflowRun[];
|
|
307
|
-
loading: boolean;
|
|
308
|
-
onCancel: (run: WorkflowRun) => void;
|
|
309
|
-
onReplay: (run: WorkflowRun) => void;
|
|
310
|
-
onView?: (run: WorkflowRun) => void;
|
|
311
|
-
onViewTimeline?: (run: WorkflowRun) => void;
|
|
312
|
-
};
|
|
313
|
-
declare function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onView, onViewTimeline }: Props$3): react_jsx_runtime.JSX.Element;
|
|
314
|
-
|
|
315
|
-
type RunTimelineLabels = ExecutionTimelineLabels & {
|
|
316
|
-
title: string;
|
|
317
|
-
subtitle: string;
|
|
318
|
-
};
|
|
319
|
-
type Props$2 = {
|
|
320
|
-
labels: RunTimelineLabels;
|
|
321
|
-
entries: RunTimelineEntry[];
|
|
322
|
-
loading: boolean;
|
|
323
|
-
runId: string;
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* Astrlabe-shaped wrapper around the shared `ExecutionTimelinePanel`
|
|
327
|
-
* (#68). Adds the page chrome (HeroSection + ManagementPageLayout) so
|
|
328
|
-
* the runs page renders consistently with the rest of the platform.
|
|
329
|
-
* Other apps (kori-erp) can drop `ExecutionTimelinePanel` directly
|
|
330
|
-
* inside their own card layouts without taking on this page wrapper.
|
|
331
|
-
*/
|
|
332
|
-
declare function RunTimelinePageView({ labels, entries, loading, runId }: Props$2): react_jsx_runtime.JSX.Element;
|
|
333
|
-
|
|
334
|
-
type CreateConnectionInput = {
|
|
335
|
-
providerSlug: string;
|
|
336
|
-
name: string;
|
|
337
|
-
region?: string;
|
|
338
|
-
endpoint?: string;
|
|
339
|
-
credentialRef?: string;
|
|
340
|
-
apiKeyRef?: string;
|
|
341
|
-
modelFilter?: string[];
|
|
342
|
-
config?: Record<string, unknown>;
|
|
343
|
-
};
|
|
344
|
-
type UpdateConnectionInput = Partial<Omit<CreateConnectionInput, 'providerSlug'>> & {
|
|
345
|
-
enabled?: boolean;
|
|
346
|
-
};
|
|
347
|
-
type ConnectionFormValue = {
|
|
348
|
-
providerSlug: ModelProviderType;
|
|
349
|
-
name: string;
|
|
350
|
-
region: string;
|
|
351
|
-
endpoint: string;
|
|
352
|
-
/** Plaintext — only present when the user is entering a NEW key. On
|
|
353
|
-
* save we push this to `/organizations/{id}/secrets` and replace
|
|
354
|
-
* with the returned UUID before calling the connections API. */
|
|
355
|
-
apiKey: string;
|
|
356
|
-
/** Vault secret UUID — displayed as "••• (set)" in the UI. */
|
|
357
|
-
credentialRef: string;
|
|
358
|
-
modelFilter: string;
|
|
359
|
-
configJson: string;
|
|
360
|
-
};
|
|
361
|
-
type ConnectionsLabels = {
|
|
362
|
-
title: string;
|
|
363
|
-
subtitle: string;
|
|
364
|
-
add: string;
|
|
365
|
-
createTitle: string;
|
|
366
|
-
editTitle: string;
|
|
367
|
-
save: string;
|
|
368
|
-
delete: string;
|
|
369
|
-
edit: string;
|
|
370
|
-
enable: string;
|
|
371
|
-
disable: string;
|
|
372
|
-
deleteConfirm: string;
|
|
373
|
-
empty: string;
|
|
374
|
-
searchPlaceholder?: string;
|
|
375
|
-
};
|
|
376
|
-
type CreateSecret = (name: string, value: string) => Promise<{
|
|
377
|
-
id: string;
|
|
378
|
-
}>;
|
|
379
|
-
type Props$1 = {
|
|
380
|
-
labels: ConnectionsLabels;
|
|
381
|
-
connections: ModelProviderConnection[];
|
|
382
|
-
loading: boolean;
|
|
383
|
-
onCreate: (input: CreateConnectionInput) => Promise<void>;
|
|
384
|
-
onUpdate: (id: string, input: UpdateConnectionInput) => Promise<void>;
|
|
385
|
-
onDelete: (connection: ModelProviderConnection) => Promise<void>;
|
|
386
|
-
/** Takes a secret name + plaintext value, stores it in the vault and
|
|
387
|
-
* returns the UUID the connections API should reference. */
|
|
388
|
-
onCreateSecret: CreateSecret;
|
|
389
|
-
/**
|
|
390
|
-
* Prefix for auto-generated secret names when the user enters a new
|
|
391
|
-
* API key. Final shape is `${prefix}-${providerSlug}-${timestamp}`.
|
|
392
|
-
* Defaults to `'platform'` so consumers that don't override land on a
|
|
393
|
-
* sensible namespace.
|
|
394
|
-
*/
|
|
395
|
-
secretNamePrefix?: string;
|
|
396
|
-
};
|
|
397
|
-
declare function ConnectionsPageView({ labels, connections, loading, onCreate, onUpdate, onDelete, onCreateSecret, secretNamePrefix, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
398
|
-
|
|
399
|
-
type CredentialFormInput = {
|
|
400
|
-
name: string;
|
|
401
|
-
value: string;
|
|
402
|
-
secretType: string;
|
|
403
|
-
description?: string;
|
|
404
|
-
};
|
|
405
|
-
type CredentialsPageViewLabels = {
|
|
406
|
-
title: string;
|
|
407
|
-
subtitle: string;
|
|
408
|
-
addCredential: string;
|
|
409
|
-
createTitle: string;
|
|
410
|
-
name: string;
|
|
411
|
-
namePlaceholder: string;
|
|
412
|
-
value: string;
|
|
413
|
-
valuePlaceholder: string;
|
|
414
|
-
type: string;
|
|
415
|
-
typeGeneric: string;
|
|
416
|
-
typeApiKey: string;
|
|
417
|
-
typeOAuth: string;
|
|
418
|
-
typePassword: string;
|
|
419
|
-
description: string;
|
|
420
|
-
descriptionPlaceholder: string;
|
|
421
|
-
save: string;
|
|
422
|
-
rotate: string;
|
|
423
|
-
disable: string;
|
|
424
|
-
disableConfirm: string;
|
|
425
|
-
expiresAt: string;
|
|
426
|
-
createdAt: string;
|
|
427
|
-
neverExpires: string;
|
|
428
|
-
empty: string;
|
|
429
|
-
searchPlaceholder?: string;
|
|
430
|
-
};
|
|
431
|
-
type Props = {
|
|
432
|
-
labels: CredentialsPageViewLabels;
|
|
433
|
-
credentials: SecretSummary[];
|
|
434
|
-
loading: boolean;
|
|
435
|
-
onCreate: (input: CredentialFormInput) => void;
|
|
436
|
-
onRotate: (secret: SecretSummary, newValue: string) => void;
|
|
437
|
-
onDisable: (secret: SecretSummary) => void;
|
|
438
|
-
};
|
|
439
|
-
declare function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate, onDisable }: Props): react_jsx_runtime.JSX.Element;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* All copy the workspace renders. Caller-supplied so the consuming app
|
|
443
|
-
* stays in control of its i18n catalog. Every key must be supplied — no
|
|
444
|
-
* silent fallbacks — so we catch missing translations at type-check time.
|
|
445
|
-
*/
|
|
446
|
-
type AgentsWorkspaceLabels = {
|
|
447
|
-
title: string;
|
|
448
|
-
subtitle: string;
|
|
449
|
-
addAgent: string;
|
|
450
|
-
searchPlaceholder: string;
|
|
451
|
-
empty: string;
|
|
452
|
-
emptyMessage: string;
|
|
453
|
-
noSelection: string;
|
|
454
|
-
noSelectionMessage: string;
|
|
455
|
-
generalTab: string;
|
|
456
|
-
promptTab: string;
|
|
457
|
-
toolsTab: string;
|
|
458
|
-
modelTab: string;
|
|
459
|
-
generalSection: string;
|
|
460
|
-
name: string;
|
|
461
|
-
description: string;
|
|
462
|
-
role: string;
|
|
463
|
-
rolePlaceholder: string;
|
|
464
|
-
status: string;
|
|
465
|
-
statusDraft: string;
|
|
466
|
-
statusActive: string;
|
|
467
|
-
statusArchived: string;
|
|
468
|
-
maxTokens: string;
|
|
469
|
-
temperature: string;
|
|
470
|
-
save: string;
|
|
471
|
-
saving: string;
|
|
472
|
-
deleteAgent: string;
|
|
473
|
-
deleteConfirm: string;
|
|
474
|
-
promptSection: string;
|
|
475
|
-
promptCurrent: string;
|
|
476
|
-
promptVersions: string;
|
|
477
|
-
promptVersionsEmpty: string;
|
|
478
|
-
addPrompt: string;
|
|
479
|
-
activate: string;
|
|
480
|
-
activated: string;
|
|
481
|
-
promptLocale: string;
|
|
482
|
-
promptIsActive: string;
|
|
483
|
-
promptText: string;
|
|
484
|
-
promptReason: string;
|
|
485
|
-
promptSystemPrompt: string;
|
|
486
|
-
promptUserTemplate: string;
|
|
487
|
-
toolsSection: string;
|
|
488
|
-
toolsAttached: string;
|
|
489
|
-
toolsAvailable: string;
|
|
490
|
-
toolsEmpty: string;
|
|
491
|
-
attachTool: string;
|
|
492
|
-
detachTool: string;
|
|
493
|
-
modelSection: string;
|
|
494
|
-
model: string;
|
|
495
|
-
connection: string;
|
|
496
|
-
connectionEmpty: string;
|
|
497
|
-
modelEmpty: string;
|
|
498
|
-
createAgentTitle: string;
|
|
499
|
-
};
|
|
500
|
-
type AgentsWorkspacePageViewProps = {
|
|
501
|
-
labels: AgentsWorkspaceLabels;
|
|
502
|
-
agents: AgentWithPrompts[];
|
|
503
|
-
models: AgentModel[];
|
|
504
|
-
tools: AgentTool[];
|
|
505
|
-
connections: ModelProviderConnection[];
|
|
506
|
-
loading?: boolean;
|
|
507
|
-
/**
|
|
508
|
-
* Per-agent prompt rows (system-prompt history). The page itself does
|
|
509
|
-
* not own loading them — the caller resolves them per agent and feeds
|
|
510
|
-
* the slice corresponding to the currently selected agent via this
|
|
511
|
-
* map keyed by agentId. The view falls back to `[]` for unknown ids.
|
|
512
|
-
*/
|
|
513
|
-
promptsByAgent?: Record<string, AgentPrompt[]>;
|
|
514
|
-
onSelectAgent?: (agentId: string | null) => void;
|
|
515
|
-
onCreateAgent: (input: AgentConfigFormInput) => Promise<void>;
|
|
516
|
-
onUpdateAgent: (id: string, input: AgentConfigFormInput) => Promise<void>;
|
|
517
|
-
onDeleteAgent: (id: string) => Promise<void>;
|
|
518
|
-
onCreatePrompt: (agentId: string, input: PromptFormInput) => Promise<void>;
|
|
519
|
-
onActivatePrompt: (agentId: string, promptId: string) => Promise<void>;
|
|
520
|
-
onAttachTool: (agentId: string, toolId: string) => Promise<void>;
|
|
521
|
-
onDetachTool: (agentId: string, toolId: string) => Promise<void>;
|
|
522
|
-
onUpdateModel: (agentId: string, modelId: string, connectionId: string) => Promise<void>;
|
|
523
|
-
};
|
|
524
|
-
declare function AgentsWorkspacePageView({ labels, agents, models, tools, connections, loading, promptsByAgent, onSelectAgent, onCreateAgent, onUpdateAgent, onDeleteAgent, onCreatePrompt, onActivatePrompt, onAttachTool, onDetachTool, onUpdateModel, }: AgentsWorkspacePageViewProps): react_jsx_runtime.JSX.Element;
|
|
525
|
-
|
|
526
|
-
export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, type AgentsWorkspaceLabels, AgentsWorkspacePageView, type AgentsWorkspacePageViewProps, type ConnectionFormValue, type ConnectionsLabels, ConnectionsPageView, type CreateConnectionInput, type CredentialFormInput, CredentialsPageView, type CredentialsPageViewLabels, type DashboardLabels, DashboardPageView, DatasourceFormData, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RolesPageView, type RolesPageViewExtraProps, RuleFormValue, type RulesLabels, RulesPageView, type RunTimelineLabels, RunTimelinePageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, type UpdateConnectionInput, UsersPageView, type WorkflowRunsLabels, WorkflowRunsPageView, WorkflowsPageView, jsonSchemaToParameters, parametersToJsonSchema };
|
package/dist/platform/rbac.d.mts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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 };
|
package/dist/platform/rbac.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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 };
|
|
@@ -1,31 +0,0 @@
|
|
|
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 };
|
|
@@ -1,31 +0,0 @@
|
|
|
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 };
|