@mdxui/do 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +253 -266
- package/dist/{agents-xcIn2dUB.d.ts → agents-2_r9e9i7.d.ts} +213 -2
- package/dist/app/index.d.ts +347 -0
- package/dist/app/index.js +13 -0
- package/dist/app/index.js.map +1 -0
- package/dist/chunk-4KXVN3EQ.js +56 -0
- package/dist/chunk-4KXVN3EQ.js.map +1 -0
- package/dist/chunk-5AWTQDRF.js +76 -0
- package/dist/chunk-5AWTQDRF.js.map +1 -0
- package/dist/chunk-EQVOEEQO.js +95 -0
- package/dist/chunk-EQVOEEQO.js.map +1 -0
- package/dist/chunk-FO3N7SXV.js +469 -0
- package/dist/chunk-FO3N7SXV.js.map +1 -0
- package/dist/chunk-IESVTECE.js +536 -0
- package/dist/chunk-IESVTECE.js.map +1 -0
- package/dist/chunk-JWKIONEO.js +234 -0
- package/dist/chunk-JWKIONEO.js.map +1 -0
- package/dist/chunk-NTSEARBC.js +715 -0
- package/dist/chunk-NTSEARBC.js.map +1 -0
- package/dist/chunk-OWEAW4U6.js +116 -0
- package/dist/chunk-OWEAW4U6.js.map +1 -0
- package/dist/chunk-VRLUXCLD.js +31 -0
- package/dist/chunk-VRLUXCLD.js.map +1 -0
- package/dist/chunk-Y52IEYVM.js +131 -0
- package/dist/chunk-Y52IEYVM.js.map +1 -0
- package/dist/chunk-YGIBMNRH.js +1991 -0
- package/dist/chunk-YGIBMNRH.js.map +1 -0
- package/dist/components/index.d.ts +1 -738
- package/dist/components/index.js +2 -6
- package/dist/config-CmZBQQaT.d.ts +122 -0
- package/dist/{do-CaQVueZw.d.ts → do-C-t9UgjT.d.ts} +31 -33
- package/dist/errors-B4Oyyj4Z.d.ts +346 -0
- package/dist/hooks/index.d.ts +428 -696
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/things/index.d.ts +298 -0
- package/dist/hooks/things/index.js +8 -0
- package/dist/hooks/things/index.js.map +1 -0
- package/dist/index.d.ts +21 -1010
- package/dist/index.js +11 -839
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +100 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/providers/index.d.ts +244 -32
- package/dist/providers/index.js +3 -2
- package/dist/query-keys-BC901wog.d.ts +153 -0
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +2 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/{thing-DtI25yZh.d.ts → thing-BVhCTzOi.d.ts} +4 -4
- package/dist/types/index.d.ts +251 -216
- package/dist/types/index.js +1 -2
- package/dist/views/index.d.ts +131 -0
- package/dist/views/index.js +11 -0
- package/dist/views/index.js.map +1 -0
- package/package.json +39 -17
- package/dist/__test-utils__/index.d.ts +0 -399
- package/dist/__test-utils__/index.js +0 -34641
- package/dist/__test-utils__/index.js.map +0 -1
- package/dist/chunk-EEDMN7UF.js +0 -1351
- package/dist/chunk-EEDMN7UF.js.map +0 -1
- package/dist/chunk-G3PMV62Z.js +0 -33
- package/dist/chunk-G3PMV62Z.js.map +0 -1
- package/dist/chunk-NXPXL5NA.js +0 -3789
- package/dist/chunk-NXPXL5NA.js.map +0 -1
- package/dist/chunk-PC5FJY6M.js +0 -20
- package/dist/chunk-PC5FJY6M.js.map +0 -1
- package/dist/chunk-XF6LKY2M.js +0 -445
- package/dist/chunk-XF6LKY2M.js.map +0 -1
- package/dist/magic-string.es-J7BYFTTJ.js +0 -1307
- package/dist/magic-string.es-J7BYFTTJ.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,221 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExecutionError, TokenUsage, EntityReference, SortDirection } from '../schemas/index.js';
|
|
2
2
|
export { PaginatedResponse, Pagination } from '../schemas/index.js';
|
|
3
|
-
export {
|
|
4
|
-
export { N as Namespace,
|
|
3
|
+
export { i as DOAdminConfig, c as DOAlarm, e as DOBinding, a as DOClassType, g as DOHealthCheck, b as DOInstance, h as DOMetrics, f as DORPCMethod, D as DOStatus, d as DOStorageEntry, S as SyncStatus } from '../do-C-t9UgjT.js';
|
|
4
|
+
export { N as Namespace, b as SemanticProperty, S as SemanticType, T as Thing, g as ThingCreateInput, a as ThingData, i as ThingDeleteOptions, c as ThingFilter, e as ThingPagination, f as ThingQueryResult, d as ThingSort, h as ThingUpdateInput, j as ThingVersion, k as TypeStats } from '../thing-BVhCTzOi.js';
|
|
5
|
+
export { A as AIStepConfig, I as Agent, a0 as AgentArtifact, L as AgentClassification, Y as AgentExecution, a6 as AgentExecutionFilter, Z as AgentExecutionStatus, a4 as AgentFeedback, a5 as AgentFilter, Q as AgentGuardrail, a2 as AgentHandoff, _ as AgentInput, X as AgentMetrics, $ as AgentOutput, V as AgentStatus, a1 as AgentTrace, J as AgentType, O as CharacterBible, C as ChoiceCondition, t as CompensationConfig, D as DatabaseStepConfig, s as ErrorHandlingConfig, q as EventStepConfig, E as EventTrigger, y as ExecutionContext, F as ExecutionFilter, v as ExecutionStatus, g as GraphPath, G as GraphPattern, h as GraphStats, f as GraphTraversalResult, a3 as GuardrailViolation, U as HandoffRule, H as HttpStepConfig, M as ManualTrigger, N as NotificationConfig, P as PredicateDefinition, R as Relationship, d as RelationshipCreateInput, e as RelationshipFilter, b as RelationshipMetadata, r as RetryConfig, K as RoleCategory, k as ScheduleTrigger, a as SemanticPredicate, S as SemanticPredicateCategory, c as SemanticTriple, p as StepConfig, z as StepExecution, n as StepType, j as TriggerBase, x as TriggerData, T as TriggerType, l as WebhookTrigger, i as Workflow, u as WorkflowConfig, w as WorkflowExecution, B as WorkflowFilter, W as WorkflowStatus, o as WorkflowStep, m as WorkflowTrigger } from '../agents-2_r9e9i7.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
|
-
export { A as AIStepConfig, s as Agent, K as AgentArtifact, v as AgentClassification, F as AgentExecution, V as AgentExecutionFilter, G as AgentExecutionStatus, Q as AgentFeedback, U as AgentFilter, x as AgentGuardrail, O as AgentHandoff, I as AgentInput, B as AgentMetrics, J as AgentOutput, z as AgentStatus, L as AgentTrace, t as AgentType, w as CharacterBible, C as ChoiceCondition, j as CompensationConfig, D as DatabaseStepConfig, i as ErrorHandlingConfig, h as EventStepConfig, E as EventTrigger, o as ExecutionContext, r as ExecutionFilter, l as ExecutionStatus, P as GuardrailViolation, y as HandoffRule, H as HttpStepConfig, M as ManualTrigger, N as NotificationConfig, R as RetryConfig, u as RoleCategory, S as ScheduleTrigger, g as StepConfig, p as StepExecution, e as StepType, b as TriggerBase, n as TriggerData, T as TriggerType, c as WebhookTrigger, a as Workflow, k as WorkflowConfig, m as WorkflowExecution, q as WorkflowFilter, W as WorkflowStatus, f as WorkflowStep, d as WorkflowTrigger } from '../agents-xcIn2dUB.js';
|
|
7
7
|
import { ComponentType, ReactNode } from 'react';
|
|
8
|
+
export { a as DOBranding, c as DOCustomRoute, D as DOIdentity, d as DOShellConfig, e as DOShellContextValue, b as DOTheme } from '../config-CmZBQQaT.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* Filter Types for @mdxui/do
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/** Creation timestamp */
|
|
48
|
-
createdAt: Date;
|
|
49
|
-
/** Creator user ID */
|
|
50
|
-
createdBy: string;
|
|
51
|
-
/** Soft delete timestamp */
|
|
52
|
-
deletedAt?: Date | null;
|
|
53
|
-
/** Deleter user ID */
|
|
54
|
-
deletedBy?: string;
|
|
55
|
-
/** Additional relationship metadata */
|
|
56
|
-
metadata: RelationshipMetadata;
|
|
13
|
+
* Types for multi-condition filtering in data views.
|
|
14
|
+
*/
|
|
15
|
+
/** Text filter operators */
|
|
16
|
+
type TextFilterOperator = 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'isEmpty' | 'isNotEmpty';
|
|
17
|
+
/** Number filter operators */
|
|
18
|
+
type NumberFilterOperator = 'equals' | 'notEquals' | 'gt' | 'lt' | 'gte' | 'lte' | 'between' | 'isEmpty' | 'isNotEmpty';
|
|
19
|
+
/** Boolean filter operators */
|
|
20
|
+
type BooleanFilterOperator = 'isTrue' | 'isFalse' | 'isEmpty';
|
|
21
|
+
/** Date filter operators */
|
|
22
|
+
type DateFilterOperator = 'equals' | 'before' | 'after' | 'between' | 'isEmpty' | 'isNotEmpty';
|
|
23
|
+
/** Union of all filter operators */
|
|
24
|
+
type FilterOperator = TextFilterOperator | NumberFilterOperator | BooleanFilterOperator | DateFilterOperator;
|
|
25
|
+
/** Single filter condition */
|
|
26
|
+
interface FilterCondition {
|
|
27
|
+
/** Unique identifier for this filter */
|
|
28
|
+
id: string;
|
|
29
|
+
/** Column to filter on */
|
|
30
|
+
column: string;
|
|
31
|
+
/** Filter operator */
|
|
32
|
+
operator: FilterOperator;
|
|
33
|
+
/** Primary filter value */
|
|
34
|
+
value: string;
|
|
35
|
+
/** Secondary value for 'between' operator */
|
|
36
|
+
value2?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Supported column data types for filtering */
|
|
39
|
+
type FilterColumnDataType = 'text' | 'number' | 'boolean' | 'date' | 'email' | 'json' | 'enum';
|
|
40
|
+
/** Column definition for filtering */
|
|
41
|
+
interface FilterColumn {
|
|
42
|
+
/** Key to access the column value in data objects */
|
|
43
|
+
accessorKey: string;
|
|
44
|
+
/** Display name for the column */
|
|
45
|
+
header: string;
|
|
46
|
+
/** Data type of the column */
|
|
47
|
+
dataType: FilterColumnDataType;
|
|
57
48
|
}
|
|
49
|
+
|
|
58
50
|
/**
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
* Export Types
|
|
52
|
+
*
|
|
53
|
+
* Type definitions for data export functionality.
|
|
54
|
+
*/
|
|
55
|
+
/** Supported export formats */
|
|
56
|
+
type ExportFormat = 'json' | 'yaml' | 'csv' | 'jsonl';
|
|
57
|
+
/** Scope of data to export */
|
|
58
|
+
type ExportScope = 'visible' | 'filtered' | 'all';
|
|
59
|
+
/** Export configuration */
|
|
60
|
+
interface ExportConfig {
|
|
61
|
+
/** Output format */
|
|
62
|
+
format: ExportFormat;
|
|
63
|
+
/** Data scope to export */
|
|
64
|
+
scope: ExportScope;
|
|
65
|
+
}
|
|
66
|
+
/** Format metadata for display and file operations */
|
|
67
|
+
interface ExportFormatMeta {
|
|
68
|
+
/** Format identifier */
|
|
69
|
+
value: ExportFormat;
|
|
70
|
+
/** Display label */
|
|
75
71
|
label: string;
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
validFromTypes: string[];
|
|
86
|
-
/** Valid target types (empty = any) */
|
|
87
|
-
validToTypes: string[];
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Additional metadata for relationships
|
|
91
|
-
*/
|
|
92
|
-
interface RelationshipMetadata {
|
|
93
|
-
/** Relationship strength/weight (0-1) */
|
|
94
|
-
weight?: number;
|
|
95
|
-
/** Confidence score (0-1) */
|
|
96
|
-
confidence?: number;
|
|
97
|
-
/** Source of the relationship (manual, inferred, imported) */
|
|
98
|
-
source?: 'manual' | 'inferred' | 'imported' | 'system';
|
|
99
|
-
/** Start date (for temporal relationships) */
|
|
100
|
-
startDate?: Date;
|
|
101
|
-
/** End date (for temporal relationships) */
|
|
102
|
-
endDate?: Date;
|
|
103
|
-
/** Additional properties */
|
|
104
|
-
[key: string]: unknown;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Semantic triple representation ($.Subject.predicate.Object)
|
|
108
|
-
*/
|
|
109
|
-
interface SemanticTriple {
|
|
110
|
-
/** Subject (from) entity reference */
|
|
111
|
-
subject: EntityReference;
|
|
112
|
-
/** Predicate (relationship type) */
|
|
113
|
-
predicate: SemanticPredicate;
|
|
114
|
-
/** Object (to) entity reference */
|
|
115
|
-
object: EntityReference;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Graph query pattern for finding relationships
|
|
119
|
-
*/
|
|
120
|
-
interface GraphPattern {
|
|
121
|
-
/** Subject pattern (supports wildcards) */
|
|
122
|
-
subject?: Partial<EntityReference> & {
|
|
123
|
-
pattern?: string;
|
|
124
|
-
};
|
|
125
|
-
/** Predicate filter */
|
|
126
|
-
predicate?: SemanticPredicate | SemanticPredicate[];
|
|
127
|
-
/** Object pattern (supports wildcards) */
|
|
128
|
-
object?: Partial<EntityReference> & {
|
|
129
|
-
pattern?: string;
|
|
130
|
-
};
|
|
131
|
-
/** Maximum depth for traversal */
|
|
132
|
-
depth?: number;
|
|
133
|
-
/** Direction of traversal */
|
|
134
|
-
direction?: 'outgoing' | 'incoming' | 'both';
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Relationship creation payload
|
|
138
|
-
*/
|
|
139
|
-
interface RelationshipCreateInput {
|
|
140
|
-
/** Predicate type */
|
|
141
|
-
relationshipType: SemanticPredicate;
|
|
142
|
-
/** Source entity */
|
|
143
|
-
from: EntityReference;
|
|
144
|
-
/** Target entity */
|
|
145
|
-
to: EntityReference;
|
|
146
|
-
/** Metadata */
|
|
147
|
-
metadata?: RelationshipMetadata;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Query filters for relationships
|
|
151
|
-
*/
|
|
152
|
-
interface RelationshipFilter {
|
|
153
|
-
/** Filter by predicate type */
|
|
154
|
-
predicates?: SemanticPredicate[];
|
|
155
|
-
/** Filter by source entity */
|
|
156
|
-
from?: Partial<EntityReference>;
|
|
157
|
-
/** Filter by target entity */
|
|
158
|
-
to?: Partial<EntityReference>;
|
|
159
|
-
/** Filter by category */
|
|
160
|
-
categories?: SemanticPredicateCategory[];
|
|
161
|
-
/** Include deleted */
|
|
162
|
-
includeDeleted?: boolean;
|
|
163
|
-
/** Filter by metadata */
|
|
164
|
-
metadata?: Partial<RelationshipMetadata>;
|
|
165
|
-
/** Date range */
|
|
166
|
-
createdAfter?: Date;
|
|
167
|
-
createdBefore?: Date;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Graph traversal result
|
|
171
|
-
*/
|
|
172
|
-
interface GraphTraversalResult {
|
|
173
|
-
/** Root entity */
|
|
174
|
-
root: EntityReference;
|
|
175
|
-
/** All nodes found */
|
|
176
|
-
nodes: EntityReference[];
|
|
177
|
-
/** All edges (relationships) found */
|
|
178
|
-
edges: Relationship[];
|
|
179
|
-
/** Traversal depth reached */
|
|
180
|
-
depth: number;
|
|
181
|
-
/** Paths from root to each node */
|
|
182
|
-
paths: GraphPath[];
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* A path in the graph
|
|
186
|
-
*/
|
|
187
|
-
interface GraphPath {
|
|
188
|
-
/** Starting node */
|
|
189
|
-
start: EntityReference;
|
|
190
|
-
/** Ending node */
|
|
191
|
-
end: EntityReference;
|
|
192
|
-
/** Edges traversed */
|
|
193
|
-
edges: Relationship[];
|
|
194
|
-
/** Total weight (sum of edge weights) */
|
|
195
|
-
totalWeight: number;
|
|
196
|
-
/** Path length (number of edges) */
|
|
197
|
-
length: number;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Statistics for the relationship graph
|
|
201
|
-
*/
|
|
202
|
-
interface GraphStats {
|
|
203
|
-
/** Total relationships */
|
|
204
|
-
totalRelationships: number;
|
|
205
|
-
/** Active relationships (not deleted) */
|
|
206
|
-
activeRelationships: number;
|
|
207
|
-
/** Count by predicate type */
|
|
208
|
-
byPredicate: Record<string, number>;
|
|
209
|
-
/** Count by category */
|
|
210
|
-
byCategory: Record<SemanticPredicateCategory, number>;
|
|
211
|
-
/** Average degree (connections per node) */
|
|
212
|
-
averageDegree: number;
|
|
213
|
-
/** Most connected nodes */
|
|
214
|
-
topConnectedNodes: Array<{
|
|
215
|
-
entity: EntityReference;
|
|
216
|
-
degree: number;
|
|
217
|
-
}>;
|
|
218
|
-
}
|
|
72
|
+
/** File extension (without dot) */
|
|
73
|
+
extension: string;
|
|
74
|
+
/** MIME type */
|
|
75
|
+
mime: string;
|
|
76
|
+
}
|
|
77
|
+
/** Available export formats with metadata */
|
|
78
|
+
declare const EXPORT_FORMATS: ExportFormatMeta[];
|
|
79
|
+
/** Get format metadata by format value */
|
|
80
|
+
declare function getFormatMeta(format: ExportFormat): ExportFormatMeta | undefined;
|
|
219
81
|
|
|
220
82
|
/**
|
|
221
83
|
* Functions Types - Four Categories of Executable Operations
|
|
@@ -1697,6 +1559,179 @@ interface APIKeyFilter {
|
|
|
1697
1559
|
expired?: boolean;
|
|
1698
1560
|
}
|
|
1699
1561
|
|
|
1562
|
+
/**
|
|
1563
|
+
* Data Grid Types
|
|
1564
|
+
*
|
|
1565
|
+
* Types for the DatabaseGrid component and related utilities.
|
|
1566
|
+
* Defines column definitions, data types, and cell values for
|
|
1567
|
+
* spreadsheet-style data editing.
|
|
1568
|
+
*/
|
|
1569
|
+
/**
|
|
1570
|
+
* Supported data types for grid columns
|
|
1571
|
+
*
|
|
1572
|
+
* These map to editor components and formatting behavior:
|
|
1573
|
+
* - text: TextEditor, string display
|
|
1574
|
+
* - number: NumberEditor, numeric display with tabular-nums
|
|
1575
|
+
* - boolean: BooleanEditor, toggle switch display
|
|
1576
|
+
* - date: DateEditor (date only), date display
|
|
1577
|
+
* - datetime: DateEditor (with time), datetime display
|
|
1578
|
+
* - email: TextEditor, email validation
|
|
1579
|
+
* - enum: SelectEditor, dropdown display
|
|
1580
|
+
* - json: JsonEditor, JSON display with expand/collapse
|
|
1581
|
+
*/
|
|
1582
|
+
type DataType = 'text' | 'number' | 'boolean' | 'date' | 'datetime' | 'email' | 'enum' | 'json';
|
|
1583
|
+
/**
|
|
1584
|
+
* Cell value type for data grid - can be any primitive, object, or array
|
|
1585
|
+
*
|
|
1586
|
+
* This is intentionally loose to support:
|
|
1587
|
+
* - Primitive values: string, number, boolean
|
|
1588
|
+
* - Null/undefined for empty cells
|
|
1589
|
+
* - Objects/arrays for JSON columns
|
|
1590
|
+
*
|
|
1591
|
+
* Note: Named GridCellValue to avoid conflict with CellValue from database-editor
|
|
1592
|
+
*/
|
|
1593
|
+
type GridCellValue = unknown;
|
|
1594
|
+
/**
|
|
1595
|
+
* Column definition for database grid
|
|
1596
|
+
*
|
|
1597
|
+
* Extends TanStack Table's column concept with database-specific
|
|
1598
|
+
* metadata like data type, constraints, and PostgreSQL type info.
|
|
1599
|
+
*
|
|
1600
|
+
* @example
|
|
1601
|
+
* ```ts
|
|
1602
|
+
* const columns: DatabaseColumnDef[] = [
|
|
1603
|
+
* {
|
|
1604
|
+
* accessorKey: 'id',
|
|
1605
|
+
* header: 'ID',
|
|
1606
|
+
* dataType: 'number',
|
|
1607
|
+
* isPrimaryKey: true,
|
|
1608
|
+
* editable: false,
|
|
1609
|
+
* },
|
|
1610
|
+
* {
|
|
1611
|
+
* accessorKey: 'name',
|
|
1612
|
+
* header: 'Name',
|
|
1613
|
+
* dataType: 'text',
|
|
1614
|
+
* editable: true,
|
|
1615
|
+
* },
|
|
1616
|
+
* {
|
|
1617
|
+
* accessorKey: 'status',
|
|
1618
|
+
* header: 'Status',
|
|
1619
|
+
* dataType: 'enum',
|
|
1620
|
+
* enumValues: ['pending', 'active', 'completed'],
|
|
1621
|
+
* editable: true,
|
|
1622
|
+
* },
|
|
1623
|
+
* ]
|
|
1624
|
+
* ```
|
|
1625
|
+
*/
|
|
1626
|
+
interface DatabaseColumnDef {
|
|
1627
|
+
/** Key to access the value in the row data object */
|
|
1628
|
+
accessorKey: string;
|
|
1629
|
+
/** Display header for the column */
|
|
1630
|
+
header: string;
|
|
1631
|
+
/** Data type for editor selection and formatting */
|
|
1632
|
+
dataType: DataType;
|
|
1633
|
+
/** Whether this column is a primary key */
|
|
1634
|
+
isPrimaryKey?: boolean;
|
|
1635
|
+
/** Whether this column has a unique constraint */
|
|
1636
|
+
isUnique?: boolean;
|
|
1637
|
+
/** Whether the column is nullable (affects editor behavior) */
|
|
1638
|
+
nullable?: boolean;
|
|
1639
|
+
/** Whether the cell can be edited (default: true) */
|
|
1640
|
+
editable?: boolean;
|
|
1641
|
+
/** For enum columns, the list of allowed values */
|
|
1642
|
+
enumValues?: string[];
|
|
1643
|
+
/** Original PostgreSQL column type (for advanced use cases) */
|
|
1644
|
+
postgresType?: string;
|
|
1645
|
+
/** Width of the column in pixels (optional) */
|
|
1646
|
+
width?: number;
|
|
1647
|
+
/** Minimum width of the column in pixels */
|
|
1648
|
+
minWidth?: number;
|
|
1649
|
+
/** Maximum width of the column in pixels */
|
|
1650
|
+
maxWidth?: number;
|
|
1651
|
+
/** Whether the column is hidden */
|
|
1652
|
+
hidden?: boolean;
|
|
1653
|
+
/** Custom cell renderer function */
|
|
1654
|
+
cell?: (value: GridCellValue, row: Record<string, GridCellValue>) => React.ReactNode;
|
|
1655
|
+
/** Custom header renderer function */
|
|
1656
|
+
headerCell?: () => React.ReactNode;
|
|
1657
|
+
/** For numeric columns, number of decimal places */
|
|
1658
|
+
numericPrecision?: number;
|
|
1659
|
+
/** For numeric columns, number of decimal scale */
|
|
1660
|
+
numericScale?: number;
|
|
1661
|
+
/** Default value for new rows */
|
|
1662
|
+
defaultValue?: GridCellValue;
|
|
1663
|
+
/** Description/tooltip for the column */
|
|
1664
|
+
description?: string;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Row data type - a record with string keys and cell values
|
|
1668
|
+
*/
|
|
1669
|
+
type GridRowData = Record<string, GridCellValue>;
|
|
1670
|
+
/**
|
|
1671
|
+
* Selection state for grid rows
|
|
1672
|
+
*/
|
|
1673
|
+
interface GridSelection {
|
|
1674
|
+
/** Selected row indices */
|
|
1675
|
+
rows: Set<number>;
|
|
1676
|
+
/** Selected column keys */
|
|
1677
|
+
columns: Set<string>;
|
|
1678
|
+
/** Currently focused cell */
|
|
1679
|
+
focusedCell?: {
|
|
1680
|
+
rowIndex: number;
|
|
1681
|
+
columnKey: string;
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Sort state for a column
|
|
1686
|
+
*/
|
|
1687
|
+
interface GridSortState {
|
|
1688
|
+
/** Column key to sort by */
|
|
1689
|
+
columnKey: string;
|
|
1690
|
+
/** Sort direction */
|
|
1691
|
+
direction: 'asc' | 'desc';
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Filter state for a column
|
|
1695
|
+
*/
|
|
1696
|
+
interface GridFilterState {
|
|
1697
|
+
/** Column key to filter */
|
|
1698
|
+
columnKey: string;
|
|
1699
|
+
/** Filter operator */
|
|
1700
|
+
operator: 'equals' | 'notEquals' | 'contains' | 'startsWith' | 'endsWith' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'isNull' | 'isNotNull';
|
|
1701
|
+
/** Filter value */
|
|
1702
|
+
value?: GridCellValue;
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Edit state for tracking pending changes
|
|
1706
|
+
*/
|
|
1707
|
+
interface GridEditState {
|
|
1708
|
+
/** Row index being edited */
|
|
1709
|
+
rowIndex: number;
|
|
1710
|
+
/** Column key being edited */
|
|
1711
|
+
columnKey: string;
|
|
1712
|
+
/** Original value before edit */
|
|
1713
|
+
originalValue: GridCellValue;
|
|
1714
|
+
/** Current edited value */
|
|
1715
|
+
currentValue: GridCellValue;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Pending change for batch save operations in data grid
|
|
1719
|
+
*
|
|
1720
|
+
* Note: Named GridPendingChange to avoid conflict with PendingChange from database-editor
|
|
1721
|
+
*/
|
|
1722
|
+
interface GridPendingChange {
|
|
1723
|
+
/** Row identifier (usually primary key value) */
|
|
1724
|
+
rowId: GridCellValue;
|
|
1725
|
+
/** Column key that changed */
|
|
1726
|
+
columnKey: string;
|
|
1727
|
+
/** Previous value */
|
|
1728
|
+
oldValue: GridCellValue;
|
|
1729
|
+
/** New value */
|
|
1730
|
+
newValue: GridCellValue;
|
|
1731
|
+
/** Timestamp of change */
|
|
1732
|
+
timestamp: number;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1700
1735
|
/**
|
|
1701
1736
|
* Database Editor Types
|
|
1702
1737
|
*
|
|
@@ -5311,7 +5346,7 @@ declare const WorkflowTriggerResponseSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5311
5346
|
name: string;
|
|
5312
5347
|
enabled: boolean;
|
|
5313
5348
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5314
|
-
authentication?: "
|
|
5349
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5315
5350
|
hmacSecret?: string | undefined;
|
|
5316
5351
|
}, {
|
|
5317
5352
|
path: string;
|
|
@@ -5319,7 +5354,7 @@ declare const WorkflowTriggerResponseSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5319
5354
|
name: string;
|
|
5320
5355
|
enabled: boolean;
|
|
5321
5356
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5322
|
-
authentication?: "
|
|
5357
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5323
5358
|
hmacSecret?: string | undefined;
|
|
5324
5359
|
}>]>;
|
|
5325
5360
|
/**
|
|
@@ -5598,7 +5633,7 @@ declare const WorkflowResponseSchema: z.ZodObject<{
|
|
|
5598
5633
|
name: string;
|
|
5599
5634
|
enabled: boolean;
|
|
5600
5635
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5601
|
-
authentication?: "
|
|
5636
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5602
5637
|
hmacSecret?: string | undefined;
|
|
5603
5638
|
}, {
|
|
5604
5639
|
path: string;
|
|
@@ -5606,7 +5641,7 @@ declare const WorkflowResponseSchema: z.ZodObject<{
|
|
|
5606
5641
|
name: string;
|
|
5607
5642
|
enabled: boolean;
|
|
5608
5643
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5609
|
-
authentication?: "
|
|
5644
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5610
5645
|
hmacSecret?: string | undefined;
|
|
5611
5646
|
}>]>;
|
|
5612
5647
|
steps: z.ZodArray<z.ZodType<{
|
|
@@ -5834,7 +5869,7 @@ declare const WorkflowResponseSchema: z.ZodObject<{
|
|
|
5834
5869
|
name: string;
|
|
5835
5870
|
enabled: boolean;
|
|
5836
5871
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5837
|
-
authentication?: "
|
|
5872
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5838
5873
|
hmacSecret?: string | undefined;
|
|
5839
5874
|
};
|
|
5840
5875
|
owner: string;
|
|
@@ -5934,7 +5969,7 @@ declare const WorkflowResponseSchema: z.ZodObject<{
|
|
|
5934
5969
|
name: string;
|
|
5935
5970
|
enabled: boolean;
|
|
5936
5971
|
methods: ("GET" | "POST" | "PUT" | "DELETE")[];
|
|
5937
|
-
authentication?: "
|
|
5972
|
+
authentication?: "none" | "jwt" | "api-key" | "hmac" | undefined;
|
|
5938
5973
|
hmacSecret?: string | undefined;
|
|
5939
5974
|
};
|
|
5940
5975
|
owner: string;
|
|
@@ -7678,4 +7713,4 @@ declare function isRateLimitError(error: AppError): error is RateLimitError;
|
|
|
7678
7713
|
*/
|
|
7679
7714
|
declare function isAppError(error: unknown): error is AppError;
|
|
7680
7715
|
|
|
7681
|
-
export { type AIModel, type APIKey, type APIKeyFilter, type APIKeyPermissions, type Address, AgentArtifactResponseSchema, AgentClassificationResponseSchema, AgentExecuteInputSchema, AgentExecutionFilterSchema, type AgentExecutionResponse, AgentExecutionResponseSchema, AgentFeedbackInputSchema, AgentFeedbackResponseSchema, AgentFilterSchema, AgentGuardrailResponseSchema, AgentHandoffResponseSchema, AgentInputResponseSchema, type AgentMetricsResponse, AgentMetricsResponseSchema, AgentOutputResponseSchema, type AgentResponse, AgentResponseSchema, AgentTraceResponseSchema, AgentTypeResponseSchema, type AgenticFunction, type ApiKeyConfig, type AppError, type AuditEntry, type AuthField, type AuthenticationConfig, type AuthenticationType, type BaseError, type BasicAuthConfig, type BillingInfo, type
|
|
7716
|
+
export { type AIModel, type APIKey, type APIKeyFilter, type APIKeyPermissions, type Address, AgentArtifactResponseSchema, AgentClassificationResponseSchema, AgentExecuteInputSchema, AgentExecutionFilterSchema, type AgentExecutionResponse, AgentExecutionResponseSchema, AgentFeedbackInputSchema, AgentFeedbackResponseSchema, AgentFilterSchema, AgentGuardrailResponseSchema, AgentHandoffResponseSchema, AgentInputResponseSchema, type AgentMetricsResponse, AgentMetricsResponseSchema, AgentOutputResponseSchema, type AgentResponse, AgentResponseSchema, AgentTraceResponseSchema, AgentTypeResponseSchema, type AgenticFunction, type ApiKeyConfig, type AppError, type AuditEntry, type AuthField, type AuthenticationConfig, type AuthenticationType, type BaseError, type BasicAuthConfig, type BillingInfo, type BooleanFilterOperator, type CellEditorProps, type CellEditorType, type CellRendererProps, CharacterBibleResponseSchema, type CodeFunction, type ColumnEditorPanelProps, CompensationConfigResponseSchema, type ConnectionFilter, type ConnectionStatus, type CustomAuthConfig, type CellValue as DBCellValue, type DatabaseEditorProps as DBEditorProps, type DBRecord, type DOSQLResult, type DOStorageInfo, type DOStorageSchema, type DataType, type DataTypeCategory, type DatabaseColumnDef, type DatabaseGridProps, type DatabaseSidebarProps, type DatabaseToolbarProps, type DateFilterOperator, type DateRangeFilter, DateResponseSchema, type DeviceInfo, EXPORT_FORMATS, type EditHistoryState, type EditOperation, EntityReference, EntityReferenceResponseSchema, EntityReferenceSchema, type EntityRelationshipsResultResponse, EntityRelationshipsResultResponseSchema, ErrorHandlingConfigResponseSchema, type EscalationRule, type EventDefinition, type EventFilter, type EventMetadata, type EventQueryResult, type EventReplayRequest, type EventSource, type EventStats, type EventStream, type EventSubscription, type EventTimelineEntry, ExecutionContextResponseSchema, ExecutionError, ExecutionErrorResponseSchema, ExecutionFilterSchema, type ExportConfig, type ExportFormat, type ExportFormatMeta, type ExportScope, type FieldValidation, type FilterColumn, type FilterColumnDataType, type FilterCondition, type FilterOperator, type FilterSpec, type ForeignKeyReference, type Function, type AgentClassification as FunctionAgentClassification, type AgentGuardrail as FunctionAgentGuardrail, type FunctionBase, type FunctionCategory, type FunctionExecution, type FunctionExecutionStatus, type FunctionFilter, type HandoffRule as FunctionHandoffRule, type GenerativeFunction, GraphPathResponseSchema, GraphPatternSchema, type GraphStatsResponse, GraphStatsResponseSchema, type GraphTraversalResultResponse, GraphTraversalResultResponseSchema, type GridCellValue, type GridEditState, type GridFilterState, type GridPendingChange, type GridRowData, type GridSelection, type GridSortState, GuardrailViolationResponseSchema, HandoffRuleResponseSchema, type HttpRequest, type HttpResponse, type HumanFunction, type Integration, type IntegrationAction, type IntegrationCategory, type IntegrationConnection, type IntegrationError, type IntegrationExecution, type IntegrationField, type IntegrationFilter, type IntegrationSearch, type IntegrationSource, type IntegrationTrigger, type InvitationStatus, type MongoArrayOperators, type MongoComparisonOperators, type MongoElementOperators, type MongoFieldOperators, type MongoLogicalOperators, type MongoProjection, type MongoQuery, type MongoSort, type MongoStringOperators, type MongoUpdateOperators, type NotFoundError, type NotificationPreferences, type NumberFilterOperator, type OAuth2Config, type OperationEvent, type OperationEventType, OptionalDateResponseSchema, type Organization, type OrganizationFilter, type OrganizationInvitation, type OrganizationMember, type OrganizationMembership, type OrganizationPlan, type OrganizationRole, type OrganizationSettings, type OrganizationType, type PaginatedResult, PaginatedResultResponseSchema, type PaginationParams, PartialEntityReferenceSchema, type PermissionError, type PlanTier, type QueryStyle, type RateLimitError, type RecordMetadata, RelationshipCreateInputSchema, type RelationshipEdge, RelationshipFilterSchema, RelationshipMetadataResponseSchema, RelationshipMetadataSchema, type RelationshipResponse, RelationshipResponseSchema, type RelationshipsPanelProps, type ReminderRule, type ReplayTarget, type ResourcePermission, RetryConfigResponseSchema, type RowEditorPanelProps, type SQLCondition, type SQLEditorPanelProps, type SQLOperator, type SQLOrderBy, type SQLWhereClause, type SQLiteDataType, type SQLiteStorageClass, type SQLiteTypeAffinity, type SSOConfig, type SchemaOperation, type SchemaVisualizerProps, type SemanticEvent, type SemanticId, type SemanticIdComponents, type Session, type SoftDeletable, SortDirection, type SortParams, type SortSpec, StepConfigResponseSchema, StepExecutionResponseSchema, type SubscriptionStatus, type TableAlterChanges, type TableColumn, type TableConstraint, type TableDefinition, type TableIndex, type TableNode, type TableTrigger, type TextFilterOperator, ThingCreateInputSchema, ThingDataSchema, ThingDeleteOptionsSchema, ThingFilterSchema, ThingPaginationSchema, type ThingQueryResultResponse, ThingQueryResultResponseSchema, type ThingResponse, ThingResponseSchema, ThingSortSchema, ThingUpdateInputSchema, type ThingVersionResponse, ThingVersionResponseSchema, TokenUsage, TokenUsageResponseSchema, type ToolDefinition, TriggerDataResponseSchema, type TypeStatsResponse, TypeStatsResponseSchema, type UnifiedQuery, type UsageLimits, type UsageMetrics, type UseEditHistoryReturn, type User, type UserFilter, type UserPreferences, type UserRole, type ValidatedAgentExecutionFilter, type ValidatedAgentFilter, type ValidatedExecutionFilter, type ValidatedRelationshipCreateInput, type ValidatedRelationshipFilter, type ValidatedThingCreateInput, type ValidatedThingFilter, type ValidatedThingUpdateInput, type ValidatedWorkflowFilter, type ValidationErrorData, WorkflowConfigResponseSchema, type WorkflowExecutionResponse, WorkflowExecutionResponseSchema, WorkflowFilterSchema, type WorkflowResponse, WorkflowResponseSchema, WorkflowStepResponseSchema, WorkflowTriggerInputSchema, WorkflowTriggerResponseSchema, getFormatMeta, isAppError, isNotFoundError, isPermissionError, isRateLimitError, isValidationErrorData };
|
package/dist/types/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { isAppError, isNotFoundError, isPermissionError, isRateLimitError, isValidationErrorData } from '../chunk-
|
|
1
|
+
export { EXPORT_FORMATS, getFormatMeta, isAppError, isNotFoundError, isPermissionError, isRateLimitError, isValidationErrorData } from '../chunk-VRLUXCLD.js';
|
|
2
2
|
export { AgentArtifactResponseSchema, AgentClassificationResponseSchema, AgentExecuteInputSchema, AgentExecutionFilterSchema, AgentExecutionResponseSchema, AgentFeedbackInputSchema, AgentFeedbackResponseSchema, AgentFilterSchema, AgentGuardrailResponseSchema, AgentHandoffResponseSchema, AgentInputResponseSchema, AgentMetricsResponseSchema, AgentOutputResponseSchema, AgentResponseSchema, AgentTraceResponseSchema, AgentTypeResponseSchema, CharacterBibleResponseSchema, CompensationConfigResponseSchema, DateResponseSchema, EntityReferenceResponseSchema, EntityReferenceSchema, EntityRelationshipsResultResponseSchema, ErrorHandlingConfigResponseSchema, ExecutionContextResponseSchema, ExecutionErrorResponseSchema, ExecutionFilterSchema, GraphPathResponseSchema, GraphPatternSchema, GraphStatsResponseSchema, GraphTraversalResultResponseSchema, GuardrailViolationResponseSchema, HandoffRuleResponseSchema, OptionalDateResponseSchema, PaginatedResultResponseSchema, PartialEntityReferenceSchema, RelationshipCreateInputSchema, RelationshipFilterSchema, RelationshipMetadataResponseSchema, RelationshipMetadataSchema, RelationshipResponseSchema, RetryConfigResponseSchema, StepConfigResponseSchema, StepExecutionResponseSchema, ThingCreateInputSchema, ThingDataSchema, ThingDeleteOptionsSchema, ThingFilterSchema, ThingPaginationSchema, ThingQueryResultResponseSchema, ThingResponseSchema, ThingSortSchema, ThingUpdateInputSchema, ThingVersionResponseSchema, TokenUsageResponseSchema, TriggerDataResponseSchema, TypeStatsResponseSchema, WorkflowConfigResponseSchema, WorkflowExecutionResponseSchema, WorkflowFilterSchema, WorkflowResponseSchema, WorkflowStepResponseSchema, WorkflowTriggerInputSchema, WorkflowTriggerResponseSchema } from '../chunk-GGO5GW72.js';
|
|
3
|
-
import '../chunk-G3PMV62Z.js';
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
5
4
|
//# sourceMappingURL=index.js.map
|