@datatechsolutions/ui 2.11.82 → 2.11.84
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.d.mts +2 -2
- package/dist/astrlabe/index.d.ts +2 -2
- package/dist/astrlabe/index.js +110 -106
- 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-3T2WGL47.js +44 -0
- package/dist/chunk-3T2WGL47.js.map +1 -0
- package/dist/{chunk-HAZP5J67.mjs → chunk-63AL2RN5.mjs} +187 -17
- package/dist/chunk-63AL2RN5.mjs.map +1 -0
- package/dist/chunk-64G2HBRQ.mjs +481 -0
- package/dist/chunk-64G2HBRQ.mjs.map +1 -0
- package/dist/{chunk-J3OYJ44D.mjs → chunk-BH2AU3LG.mjs} +3 -3
- package/dist/{chunk-J3OYJ44D.mjs.map → chunk-BH2AU3LG.mjs.map} +1 -1
- package/dist/chunk-CCRBT7TA.mjs +941 -0
- package/dist/chunk-CCRBT7TA.mjs.map +1 -0
- package/dist/chunk-CHLJUSXX.mjs +128 -0
- package/dist/chunk-CHLJUSXX.mjs.map +1 -0
- package/dist/chunk-CXIQWPBH.js +214 -0
- package/dist/chunk-CXIQWPBH.js.map +1 -0
- package/dist/chunk-EDE36MKE.mjs +412 -0
- package/dist/chunk-EDE36MKE.mjs.map +1 -0
- package/dist/{chunk-M7P2TQ6X.js → chunk-EFREXNZB.js} +64 -64
- package/dist/{chunk-M7P2TQ6X.js.map → chunk-EFREXNZB.js.map} +1 -1
- package/dist/chunk-FAGDZEKM.js +23 -0
- package/dist/chunk-FAGDZEKM.js.map +1 -0
- package/dist/{chunk-TUEYBNWL.js → chunk-GV6WJCEB.js} +3 -3
- package/dist/{chunk-TUEYBNWL.js.map → chunk-GV6WJCEB.js.map} +1 -1
- package/dist/chunk-HU3EAHFO.mjs +20 -0
- package/dist/chunk-HU3EAHFO.mjs.map +1 -0
- package/dist/{chunk-LLFU42KC.mjs → chunk-I6WYV2AN.mjs} +3 -3
- package/dist/{chunk-LLFU42KC.mjs.map → chunk-I6WYV2AN.mjs.map} +1 -1
- package/dist/chunk-JJWFMKZY.js +132 -0
- package/dist/chunk-JJWFMKZY.js.map +1 -0
- package/dist/{chunk-K4QJV3GC.js → chunk-L6FVIWAJ.js} +308 -137
- package/dist/chunk-L6FVIWAJ.js.map +1 -0
- package/dist/chunk-MNQEZL7B.mjs +210 -0
- package/dist/chunk-MNQEZL7B.mjs.map +1 -0
- package/dist/chunk-SGJ24J2Q.js +943 -0
- package/dist/chunk-SGJ24J2Q.js.map +1 -0
- package/dist/chunk-SW6TVAIJ.js +418 -0
- package/dist/chunk-SW6TVAIJ.js.map +1 -0
- package/dist/chunk-SYNVNTLJ.mjs +20 -0
- package/dist/chunk-SYNVNTLJ.mjs.map +1 -0
- package/dist/chunk-UQXVCVAN.mjs +41 -0
- package/dist/chunk-UQXVCVAN.mjs.map +1 -0
- package/dist/chunk-WGELLCOZ.js +22 -0
- package/dist/chunk-WGELLCOZ.js.map +1 -0
- package/dist/chunk-YXPHJ2BQ.js +541 -0
- package/dist/chunk-YXPHJ2BQ.js.map +1 -0
- package/dist/index.d.mts +3 -47
- package/dist/index.d.ts +3 -47
- package/dist/index.js +765 -765
- package/dist/index.mjs +2 -2
- package/dist/navigation-BiWVffAN.d.mts +49 -0
- package/dist/navigation-BiWVffAN.d.ts +49 -0
- package/dist/platform/agents-workspace.d.mts +19 -0
- package/dist/platform/agents-workspace.d.ts +19 -0
- package/dist/platform/agents-workspace.js +26 -0
- package/dist/platform/agents-workspace.js.map +1 -0
- package/dist/platform/agents-workspace.mjs +17 -0
- package/dist/platform/agents-workspace.mjs.map +1 -0
- package/dist/platform/app-shell.d.mts +58 -0
- package/dist/platform/app-shell.d.ts +58 -0
- package/dist/platform/app-shell.js +17 -0
- package/dist/platform/app-shell.js.map +1 -0
- package/dist/platform/app-shell.mjs +8 -0
- package/dist/platform/app-shell.mjs.map +1 -0
- package/dist/platform/index.d.mts +100 -3
- package/dist/platform/index.d.ts +100 -3
- package/dist/platform/index.js +499 -28
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +472 -27
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.d.mts +243 -82
- package/dist/platform/pages/index.d.ts +243 -82
- package/dist/platform/pages/index.js +886 -614
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +756 -511
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/utils/index.js +18 -56
- package/dist/platform/utils/index.js.map +1 -1
- package/dist/platform/utils/index.mjs +3 -53
- package/dist/platform/utils/index.mjs.map +1 -1
- package/dist/platform/workflow-api-client.d.mts +6 -0
- package/dist/platform/workflow-api-client.d.ts +6 -0
- package/dist/platform/workflow-api-client.js +246 -0
- package/dist/platform/workflow-api-client.js.map +1 -0
- package/dist/platform/workflow-api-client.mjs +5 -0
- package/dist/platform/workflow-api-client.mjs.map +1 -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 +20 -0
- package/dist/platform/workflow-canvas-shell.js.map +1 -0
- package/dist/platform/workflow-canvas-shell.mjs +11 -0
- package/dist/platform/workflow-canvas-shell.mjs.map +1 -0
- package/dist/{rule-form-F5jBOeqk.d.mts → rule-form-BYJzyork.d.mts} +50 -1
- package/dist/{rule-form-F5jBOeqk.d.ts → rule-form-BYJzyork.d.ts} +50 -1
- package/dist/workflow-api-client-C8gPn_D1.d.mts +386 -0
- package/dist/workflow-api-client-Dy1Ph8W-.d.ts +386 -0
- package/package.json +21 -1
- package/dist/chunk-HAZP5J67.mjs.map +0 -1
- package/dist/chunk-K4QJV3GC.js.map +0 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { UsersPageViewProps, DataSource } from '@datatechsolutions/shared-domain/common';
|
|
3
|
-
import { AgentModel, AgentTool, AgentRule } from '../../astrlabe/contracts.js';
|
|
2
|
+
import { UsersPageViewProps, DataSource, RolesPageViewProps, WorkflowsPageViewProps } from '@datatechsolutions/shared-domain/common';
|
|
3
|
+
import { AgentModel, AgentTool, AgentRule, WorkflowRun, ModelProviderType } from '../../astrlabe/contracts.js';
|
|
4
4
|
import { A as AgentWithPrompts } from '../../index-D5ai0cGZ.js';
|
|
5
5
|
import { AgentPrompt } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
6
|
-
import { R as RuleFormValue } from '../../rule-form-
|
|
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-Dy1Ph8W-.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-Dy1Ph8W-.js';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
import { PlatformRoleDefinition } from '../rbac.js';
|
|
11
|
+
import { SecretSummary } from '../windsock-admin-client.js';
|
|
12
|
+
import '@datatechsolutions/windsock/client';
|
|
13
|
+
import '@datatechsolutions/shared-domain';
|
|
7
14
|
|
|
8
15
|
declare function UsersPageView({ labels, users, onCreateUser, onUpdateRole }: UsersPageViewProps): react_jsx_runtime.JSX.Element;
|
|
9
16
|
|
|
@@ -15,12 +22,12 @@ type AgentsModelsLabels = {
|
|
|
15
22
|
disabled: string;
|
|
16
23
|
empty: string;
|
|
17
24
|
};
|
|
18
|
-
type Props$
|
|
25
|
+
type Props$9 = {
|
|
19
26
|
labels: AgentsModelsLabels;
|
|
20
27
|
models: AgentModel[];
|
|
21
28
|
loading: boolean;
|
|
22
29
|
};
|
|
23
|
-
declare function AgentsModelsPageView({ labels, models, loading }: Props$
|
|
30
|
+
declare function AgentsModelsPageView({ labels, models, loading }: Props$9): react_jsx_runtime.JSX.Element;
|
|
24
31
|
|
|
25
32
|
type AgentConfigFormInput = {
|
|
26
33
|
agentId?: string;
|
|
@@ -51,7 +58,7 @@ type AgentsConfigLabels = {
|
|
|
51
58
|
activeVersion: string;
|
|
52
59
|
empty: string;
|
|
53
60
|
};
|
|
54
|
-
type Props$
|
|
61
|
+
type Props$8 = {
|
|
55
62
|
labels: AgentsConfigLabels;
|
|
56
63
|
agents: AgentWithPrompts[];
|
|
57
64
|
models: AgentModel[];
|
|
@@ -60,7 +67,7 @@ type Props$3 = {
|
|
|
60
67
|
onUpdate: (agentId: string, input: AgentConfigFormInput) => void;
|
|
61
68
|
onDelete: (agent: AgentWithPrompts) => void;
|
|
62
69
|
};
|
|
63
|
-
declare function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpdate, onDelete }: Props$
|
|
70
|
+
declare function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpdate, onDelete }: Props$8): react_jsx_runtime.JSX.Element;
|
|
64
71
|
|
|
65
72
|
type PromptFormInput = {
|
|
66
73
|
agentId: string;
|
|
@@ -91,7 +98,7 @@ type AgentsPromptsLabels = {
|
|
|
91
98
|
deleteConfirm: string;
|
|
92
99
|
empty: string;
|
|
93
100
|
};
|
|
94
|
-
type Props$
|
|
101
|
+
type Props$7 = {
|
|
95
102
|
labels: AgentsPromptsLabels;
|
|
96
103
|
agents: AgentWithPrompts[];
|
|
97
104
|
prompts: AgentPrompt[];
|
|
@@ -100,7 +107,7 @@ type Props$2 = {
|
|
|
100
107
|
onActivate: (prompt: AgentPrompt) => void;
|
|
101
108
|
onDelete: (prompt: AgentPrompt) => void;
|
|
102
109
|
};
|
|
103
|
-
declare function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onActivate, onDelete }: Props$
|
|
110
|
+
declare function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onActivate, onDelete }: Props$7): react_jsx_runtime.JSX.Element;
|
|
104
111
|
|
|
105
112
|
declare const TOOL_TYPES: readonly ["http", "function", "database_query", "code_execution", "api_call"];
|
|
106
113
|
type ToolType = (typeof TOOL_TYPES)[number];
|
|
@@ -144,7 +151,7 @@ type AgentsToolDefinitionsLabels = {
|
|
|
144
151
|
deleteConfirm: string;
|
|
145
152
|
empty: string;
|
|
146
153
|
};
|
|
147
|
-
type Props$
|
|
154
|
+
type Props$6 = {
|
|
148
155
|
labels: AgentsToolDefinitionsLabels;
|
|
149
156
|
tools: AgentTool[];
|
|
150
157
|
loading: boolean;
|
|
@@ -152,7 +159,7 @@ type Props$1 = {
|
|
|
152
159
|
onUpdate: (toolId: string, input: ToolDefinitionFormInput) => void;
|
|
153
160
|
onDelete: (tool: AgentTool) => void;
|
|
154
161
|
};
|
|
155
|
-
declare function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpdate, onDelete }: Props$
|
|
162
|
+
declare function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpdate, onDelete }: Props$6): react_jsx_runtime.JSX.Element;
|
|
156
163
|
/**
|
|
157
164
|
* Build a JSON Schema object from the parameter list. Mirrors the
|
|
158
165
|
* format the backend validator (`validate_input_schema`) expects —
|
|
@@ -180,7 +187,7 @@ type RulesLabels = {
|
|
|
180
187
|
disabled: string;
|
|
181
188
|
order: string;
|
|
182
189
|
};
|
|
183
|
-
type Props = {
|
|
190
|
+
type Props$5 = {
|
|
184
191
|
labels: RulesLabels;
|
|
185
192
|
rules: AgentRule[];
|
|
186
193
|
loading: boolean;
|
|
@@ -188,85 +195,239 @@ type Props = {
|
|
|
188
195
|
onUpdate: (ruleId: string, input: RuleFormValue) => void;
|
|
189
196
|
onDelete: (rule: AgentRule) => void;
|
|
190
197
|
};
|
|
191
|
-
declare function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete }: Props): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete }: Props$5): react_jsx_runtime.JSX.Element;
|
|
192
199
|
|
|
193
|
-
type
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
type Labels = Record<string, string>;
|
|
201
|
+
type DatasourcesPageViewProps = {
|
|
202
|
+
labels: Labels;
|
|
203
|
+
datasources?: DataSource[];
|
|
204
|
+
useSampleData?: boolean;
|
|
205
|
+
onCreate?: (data: DatasourceFormData) => void;
|
|
206
|
+
};
|
|
207
|
+
declare function DatasourcesPageView({ labels, datasources: externalDatasources, useSampleData, onCreate, }: DatasourcesPageViewProps): react_jsx_runtime.JSX.Element;
|
|
208
|
+
|
|
209
|
+
type DashboardLabels = {
|
|
210
|
+
title: string;
|
|
211
|
+
subtitle: string;
|
|
212
|
+
totalRuns: string;
|
|
213
|
+
successRate: string;
|
|
214
|
+
avgDuration: string;
|
|
215
|
+
runsByStatus: string;
|
|
216
|
+
perWorkflow: string;
|
|
217
|
+
noData: string;
|
|
218
|
+
runs: string;
|
|
219
|
+
};
|
|
220
|
+
type Props$4 = {
|
|
221
|
+
labels: DashboardLabels;
|
|
222
|
+
summary: AnalyticsSummary | null;
|
|
223
|
+
loading: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* App-branded logo node rendered in the dashboard hero. Each app passes
|
|
226
|
+
* its own logo (typically a pair of light/dark <img> tags toggled via
|
|
227
|
+
* Tailwind `dark:` classes) so this view stays brand-agnostic.
|
|
228
|
+
*/
|
|
229
|
+
appLogo: ReactNode;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Platform dashboard — a centered hero with the app's logo + subtitle.
|
|
233
|
+
* Metrics and workflow tables live on dedicated pages (Analytics /
|
|
234
|
+
* Workflow Runs); this view intentionally renders only the landing chrome.
|
|
235
|
+
*
|
|
236
|
+
* `summary` and `loading` are kept on the prop type so the page that
|
|
237
|
+
* mounts this view doesn't have to change, but we intentionally don't
|
|
238
|
+
* render them here.
|
|
239
|
+
*/
|
|
240
|
+
declare function DashboardPageView({ labels, appLogo }: Props$4): react_jsx_runtime.JSX.Element;
|
|
241
|
+
|
|
242
|
+
type AgentsIndexLabels = {
|
|
243
|
+
title: string;
|
|
244
|
+
subtitle: string;
|
|
245
|
+
configTitle: string;
|
|
246
|
+
configSubtitle: string;
|
|
247
|
+
toolDefinitionsTitle: string;
|
|
248
|
+
toolDefinitionsSubtitle: string;
|
|
249
|
+
modelsTitle: string;
|
|
250
|
+
modelsSubtitle: string;
|
|
251
|
+
promptsTitle: string;
|
|
252
|
+
promptsSubtitle: string;
|
|
253
|
+
};
|
|
254
|
+
declare function AgentsIndexPageView({ labels }: {
|
|
255
|
+
labels: AgentsIndexLabels;
|
|
256
|
+
}): react_jsx_runtime.JSX.Element;
|
|
257
|
+
|
|
258
|
+
type RolesPageViewExtraProps = {
|
|
259
|
+
/**
|
|
260
|
+
* App-defined role definitions, e.g. `{ admin: { id, label, description }, ... }`.
|
|
261
|
+
* Each app passes the output of its own `createPlatformRbac()` call.
|
|
262
|
+
*/
|
|
263
|
+
roleDefinitions: Record<string, PlatformRoleDefinition<string>>;
|
|
264
|
+
/**
|
|
265
|
+
* Display options surfaced in the role-assignment modal select. Each
|
|
266
|
+
* entry is `{ value: roleId, label: localizedLabel }`.
|
|
267
|
+
*/
|
|
268
|
+
roleOptions: Array<{
|
|
269
|
+
value: string;
|
|
270
|
+
label: string;
|
|
198
271
|
}>;
|
|
199
|
-
gradient: string;
|
|
200
|
-
dialects: DialectOption[];
|
|
201
272
|
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
273
|
+
declare function RolesPageView({ labels, users, onAssignRole, roleDefinitions, roleOptions, }: RolesPageViewProps & RolesPageViewExtraProps): react_jsx_runtime.JSX.Element;
|
|
274
|
+
|
|
275
|
+
declare function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublish }: WorkflowsPageViewProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
|
|
277
|
+
type WorkflowRunsLabels = {
|
|
278
|
+
title: string;
|
|
279
|
+
subtitle: string;
|
|
280
|
+
status: string;
|
|
281
|
+
duration: string;
|
|
282
|
+
triggeredBy: string;
|
|
283
|
+
startedAt: string;
|
|
284
|
+
cancel: string;
|
|
285
|
+
replay: string;
|
|
286
|
+
view: string;
|
|
287
|
+
statusPending: string;
|
|
288
|
+
statusRunning: string;
|
|
289
|
+
statusCompleted: string;
|
|
290
|
+
statusFailed: string;
|
|
291
|
+
statusCancelled: string;
|
|
292
|
+
filterAll: string;
|
|
293
|
+
filterStatus: string;
|
|
294
|
+
empty: string;
|
|
295
|
+
timeline?: string;
|
|
296
|
+
};
|
|
297
|
+
type Props$3 = {
|
|
298
|
+
labels: WorkflowRunsLabels;
|
|
299
|
+
runs: WorkflowRun[];
|
|
300
|
+
loading: boolean;
|
|
301
|
+
onCancel: (run: WorkflowRun) => void;
|
|
302
|
+
onReplay: (run: WorkflowRun) => void;
|
|
303
|
+
onView?: (run: WorkflowRun) => void;
|
|
304
|
+
onViewTimeline?: (run: WorkflowRun) => void;
|
|
305
|
+
};
|
|
306
|
+
declare function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onView, onViewTimeline }: Props$3): react_jsx_runtime.JSX.Element;
|
|
307
|
+
|
|
308
|
+
type RunTimelineLabels = ExecutionTimelineLabels & {
|
|
309
|
+
title: string;
|
|
310
|
+
subtitle: string;
|
|
311
|
+
};
|
|
312
|
+
type Props$2 = {
|
|
313
|
+
labels: RunTimelineLabels;
|
|
314
|
+
entries: RunTimelineEntry[];
|
|
315
|
+
loading: boolean;
|
|
316
|
+
runId: string;
|
|
208
317
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
318
|
+
/**
|
|
319
|
+
* Astrlabe-shaped wrapper around the shared `ExecutionTimelinePanel`
|
|
320
|
+
* (#68). Adds the page chrome (HeroSection + ManagementPageLayout) so
|
|
321
|
+
* the runs page renders consistently with the rest of the platform.
|
|
322
|
+
* Other apps (fuel-price-ai, kori-erp) can drop `ExecutionTimelinePanel`
|
|
323
|
+
* directly inside their own card layouts without taking on this page
|
|
324
|
+
* wrapper.
|
|
325
|
+
*/
|
|
326
|
+
declare function RunTimelinePageView({ labels, entries, loading, runId }: Props$2): react_jsx_runtime.JSX.Element;
|
|
327
|
+
|
|
328
|
+
type CreateConnectionInput = {
|
|
329
|
+
providerSlug: string;
|
|
213
330
|
name: string;
|
|
214
|
-
dialect: string;
|
|
215
|
-
host?: string;
|
|
216
|
-
port?: number;
|
|
217
|
-
database?: string;
|
|
218
|
-
username?: string;
|
|
219
|
-
password?: string;
|
|
220
|
-
schema?: string;
|
|
221
|
-
ssl?: boolean;
|
|
222
|
-
readOnly?: boolean;
|
|
223
|
-
connectionString?: string;
|
|
224
|
-
projectId?: string;
|
|
225
|
-
dataset?: string;
|
|
226
|
-
keyFile?: string;
|
|
227
|
-
account?: string;
|
|
228
|
-
warehouse?: string;
|
|
229
331
|
region?: string;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
url?: string;
|
|
236
|
-
/** Whitelist of tables the engine is allowed to query. Empty/undef =
|
|
237
|
-
* allow every table the credential can see. */
|
|
238
|
-
allowedTables?: string[];
|
|
239
|
-
/** Columns the engine MUST NOT surface to workflows. Applied at the
|
|
240
|
-
* driver layer — trying to SELECT a blocked column still fails. */
|
|
241
|
-
blockedColumns?: string[];
|
|
242
|
-
/** Max concurrent connections in the org's cached pool (default 5). */
|
|
243
|
-
maxPoolSize?: number;
|
|
244
|
-
/** Query/connect timeout in ms (default 5000). */
|
|
245
|
-
timeoutMs?: number;
|
|
332
|
+
endpoint?: string;
|
|
333
|
+
credentialRef?: string;
|
|
334
|
+
apiKeyRef?: string;
|
|
335
|
+
modelFilter?: string[];
|
|
336
|
+
config?: Record<string, unknown>;
|
|
246
337
|
};
|
|
247
|
-
type
|
|
248
|
-
|
|
249
|
-
open: boolean;
|
|
250
|
-
onClose: () => void;
|
|
251
|
-
labels: Labels$1;
|
|
252
|
-
onSave: (data: DatasourceFormData) => void;
|
|
338
|
+
type UpdateConnectionInput = Partial<Omit<CreateConnectionInput, 'providerSlug'>> & {
|
|
339
|
+
enabled?: boolean;
|
|
253
340
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
341
|
+
type ConnectionFormValue = {
|
|
342
|
+
providerSlug: ModelProviderType;
|
|
343
|
+
name: string;
|
|
344
|
+
region: string;
|
|
345
|
+
endpoint: string;
|
|
346
|
+
/** Plaintext — only present when the user is entering a NEW key. On
|
|
347
|
+
* save we push this to `/organizations/{id}/secrets` and replace
|
|
348
|
+
* with the returned UUID before calling the connections API. */
|
|
349
|
+
apiKey: string;
|
|
350
|
+
/** Vault secret UUID — displayed as "••• (set)" in the UI. */
|
|
351
|
+
credentialRef: string;
|
|
352
|
+
modelFilter: string;
|
|
353
|
+
configJson: string;
|
|
260
354
|
};
|
|
261
|
-
|
|
355
|
+
type ConnectionsLabels = {
|
|
356
|
+
title: string;
|
|
357
|
+
subtitle: string;
|
|
358
|
+
add: string;
|
|
359
|
+
createTitle: string;
|
|
360
|
+
editTitle: string;
|
|
361
|
+
save: string;
|
|
362
|
+
delete: string;
|
|
363
|
+
edit: string;
|
|
364
|
+
enable: string;
|
|
365
|
+
disable: string;
|
|
366
|
+
deleteConfirm: string;
|
|
367
|
+
empty: string;
|
|
368
|
+
};
|
|
369
|
+
type CreateSecret = (name: string, value: string) => Promise<{
|
|
370
|
+
id: string;
|
|
371
|
+
}>;
|
|
372
|
+
type Props$1 = {
|
|
373
|
+
labels: ConnectionsLabels;
|
|
374
|
+
connections: ModelProviderConnection[];
|
|
375
|
+
loading: boolean;
|
|
376
|
+
onCreate: (input: CreateConnectionInput) => Promise<void>;
|
|
377
|
+
onUpdate: (id: string, input: UpdateConnectionInput) => Promise<void>;
|
|
378
|
+
onDelete: (connection: ModelProviderConnection) => Promise<void>;
|
|
379
|
+
/** Takes a secret name + plaintext value, stores it in the vault and
|
|
380
|
+
* returns the UUID the connections API should reference. */
|
|
381
|
+
onCreateSecret: CreateSecret;
|
|
382
|
+
/**
|
|
383
|
+
* Prefix for auto-generated secret names when the user enters a new
|
|
384
|
+
* API key. Final shape is `${prefix}-${providerSlug}-${timestamp}`.
|
|
385
|
+
* Defaults to `'platform'` so consumers that don't override land on a
|
|
386
|
+
* sensible namespace.
|
|
387
|
+
*/
|
|
388
|
+
secretNamePrefix?: string;
|
|
389
|
+
};
|
|
390
|
+
declare function ConnectionsPageView({ labels, connections, loading, onCreate, onUpdate, onDelete, onCreateSecret, secretNamePrefix, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
262
391
|
|
|
263
|
-
type
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
onCreate?: (data: DatasourceFormData) => void;
|
|
392
|
+
type CredentialFormInput = {
|
|
393
|
+
name: string;
|
|
394
|
+
value: string;
|
|
395
|
+
secretType: string;
|
|
396
|
+
description?: string;
|
|
269
397
|
};
|
|
270
|
-
|
|
398
|
+
type CredentialsPageViewLabels = {
|
|
399
|
+
title: string;
|
|
400
|
+
subtitle: string;
|
|
401
|
+
addCredential: string;
|
|
402
|
+
createTitle: string;
|
|
403
|
+
name: string;
|
|
404
|
+
namePlaceholder: string;
|
|
405
|
+
value: string;
|
|
406
|
+
valuePlaceholder: string;
|
|
407
|
+
type: string;
|
|
408
|
+
typeGeneric: string;
|
|
409
|
+
typeApiKey: string;
|
|
410
|
+
typeOAuth: string;
|
|
411
|
+
typePassword: string;
|
|
412
|
+
description: string;
|
|
413
|
+
descriptionPlaceholder: string;
|
|
414
|
+
save: string;
|
|
415
|
+
rotate: string;
|
|
416
|
+
disable: string;
|
|
417
|
+
disableConfirm: string;
|
|
418
|
+
expiresAt: string;
|
|
419
|
+
createdAt: string;
|
|
420
|
+
neverExpires: string;
|
|
421
|
+
empty: string;
|
|
422
|
+
};
|
|
423
|
+
type Props = {
|
|
424
|
+
labels: CredentialsPageViewLabels;
|
|
425
|
+
credentials: SecretSummary[];
|
|
426
|
+
loading: boolean;
|
|
427
|
+
onCreate: (input: CredentialFormInput) => void;
|
|
428
|
+
onRotate: (secret: SecretSummary, newValue: string) => void;
|
|
429
|
+
onDisable: (secret: SecretSummary) => void;
|
|
430
|
+
};
|
|
431
|
+
declare function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate, onDisable }: Props): react_jsx_runtime.JSX.Element;
|
|
271
432
|
|
|
272
|
-
export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView,
|
|
433
|
+
export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsIndexLabels, AgentsIndexPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, 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 };
|