@mdxui/do 4.0.0 → 4.0.8
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/app/index.d.ts +32 -186
- package/dist/app/index.js +19 -11
- package/dist/auth/index.d.ts +48 -0
- package/dist/auth/index.js +4 -0
- package/dist/{breadcrumbs-C9Qn3S7d.d.ts → breadcrumbs-DltlCiHt.d.ts} +3 -3
- package/dist/chunk-2FWXT4HH.js +576 -0
- package/dist/chunk-2FWXT4HH.js.map +1 -0
- package/dist/chunk-5PC6U46L.js +604 -0
- package/dist/chunk-5PC6U46L.js.map +1 -0
- package/dist/chunk-63VCRTDQ.js +2505 -0
- package/dist/chunk-63VCRTDQ.js.map +1 -0
- package/dist/chunk-7J3RSIG4.js +178 -0
- package/dist/chunk-7J3RSIG4.js.map +1 -0
- package/dist/chunk-7QCTRNEJ.js +173 -0
- package/dist/chunk-7QCTRNEJ.js.map +1 -0
- package/dist/chunk-7TFHUKS7.js +66 -0
- package/dist/chunk-7TFHUKS7.js.map +1 -0
- package/dist/{chunk-LJIWB7KE.js → chunk-BU5HMHGQ.js} +3 -3
- package/dist/chunk-BU5HMHGQ.js.map +1 -0
- package/dist/{chunk-GGO5GW72.js → chunk-BZURBNFD.js} +305 -51
- package/dist/chunk-BZURBNFD.js.map +1 -0
- package/dist/{chunk-NA652ART.js → chunk-FM2RTAHV.js} +5 -65
- package/dist/chunk-FM2RTAHV.js.map +1 -0
- package/dist/{chunk-WMNT4OIE.js → chunk-HC4PBXV4.js} +131 -58
- package/dist/chunk-HC4PBXV4.js.map +1 -0
- package/dist/{chunk-Y52IEYVM.js → chunk-JPZ6RZJE.js} +78 -45
- package/dist/chunk-JPZ6RZJE.js.map +1 -0
- package/dist/{chunk-OVLO7UOH.js → chunk-KLN5OTQH.js} +168 -361
- package/dist/chunk-KLN5OTQH.js.map +1 -0
- package/dist/chunk-LCYBQR35.js +79 -0
- package/dist/chunk-LCYBQR35.js.map +1 -0
- package/dist/chunk-PJYGRD7N.js +216 -0
- package/dist/chunk-PJYGRD7N.js.map +1 -0
- package/dist/chunk-QEXY4FZV.js +292 -0
- package/dist/chunk-QEXY4FZV.js.map +1 -0
- package/dist/chunk-SX4IIE2R.js +53 -0
- package/dist/chunk-SX4IIE2R.js.map +1 -0
- package/dist/chunk-UCWMSKCW.js +901 -0
- package/dist/chunk-UCWMSKCW.js.map +1 -0
- package/dist/{chunk-5SHZZC7L.js → chunk-WC6SFBAF.js} +59 -6
- package/dist/chunk-WC6SFBAF.js.map +1 -0
- package/dist/chunk-WIKU77ZY.js +18 -0
- package/dist/chunk-WIKU77ZY.js.map +1 -0
- package/dist/chunk-X3AWNFBF.js +47 -0
- package/dist/chunk-X3AWNFBF.js.map +1 -0
- package/dist/chunk-ZZTQGMLX.js +23 -0
- package/dist/chunk-ZZTQGMLX.js.map +1 -0
- package/dist/{lib → client}/index.d.ts +97 -345
- package/dist/client/index.js +3 -0
- package/dist/common-DW_JM2dW.d.ts +454 -0
- package/dist/components/index.d.ts +11 -2
- package/dist/components/index.js +8 -3
- package/dist/{config-CxvpD8Y6.d.ts → config-DB14_LhF.d.ts} +1 -1
- package/dist/{do-D27i5bU0.d.ts → do-D37hbmL9.d.ts} +6 -14
- package/dist/dotdo-client-2DkwXHM2.d.ts +344 -0
- package/dist/errors-BOY11CJs.d.ts +373 -0
- package/dist/features/data-browser/index.d.ts +51 -0
- package/dist/features/data-browser/index.js +12 -0
- package/dist/features/data-browser/index.js.map +1 -0
- package/dist/features/data-grid/index.d.ts +22 -0
- package/dist/features/data-grid/index.js +12 -0
- package/dist/features/data-grid/index.js.map +1 -0
- package/dist/features/document-editor/index.d.ts +26 -0
- package/dist/features/document-editor/index.js +12 -0
- package/dist/features/document-editor/index.js.map +1 -0
- package/dist/features/function-editor/index.d.ts +215 -0
- package/dist/features/function-editor/index.js +7 -0
- package/dist/features/function-editor/index.js.map +1 -0
- package/dist/hooks/index.d.ts +64 -7
- package/dist/hooks/index.js +8 -7
- package/dist/hooks/things/index.d.ts +5 -297
- package/dist/hooks/things/index.js +6 -6
- package/dist/index-C0m9UI6W.d.ts +444 -0
- package/dist/index.d.ts +42 -32
- package/dist/index.js +21 -13
- package/dist/providers/index.d.ts +16 -28
- package/dist/providers/index.js +3 -3
- package/dist/schemas/index.d.ts +4551 -109
- package/dist/schemas/index.js +2 -260
- package/dist/schemas/index.js.map +1 -1
- package/dist/shell/index.d.ts +92 -0
- package/dist/shell/index.js +6 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/{thing-BF25aUtJ.d.ts → thing-Dc3AE2XI.d.ts} +22 -22
- package/dist/thing-adapters-aMjF0h9u.d.ts +1214 -0
- package/dist/types/index.d.ts +954 -7521
- package/dist/types/index.js +2 -2
- package/dist/ui-filters-BvrjMP_U.d.ts +108 -0
- package/dist/{errors-DratdVIz.d.ts → utils/index.d.ts} +38 -77
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist-app/assets/index-DWX3479M.js +7 -0
- package/dist-app/assets/index-DWX3479M.js.map +1 -0
- package/dist-app/assets/main-BptePr_C.js +318 -0
- package/dist-app/assets/main-BptePr_C.js.map +1 -0
- package/dist-app/assets/main-CS9jgKzj.css +1 -0
- package/dist-app/index.html +38 -0
- package/package.json +32 -19
- package/dist/agents-2_r9e9i7.d.ts +0 -1043
- package/dist/capnweb-client-Bq78FtEA.d.ts +0 -229
- package/dist/chunk-3XKYQRXY.js +0 -192
- package/dist/chunk-3XKYQRXY.js.map +0 -1
- package/dist/chunk-4KXVN3EQ.js +0 -56
- package/dist/chunk-4KXVN3EQ.js.map +0 -1
- package/dist/chunk-5SHZZC7L.js.map +0 -1
- package/dist/chunk-7UFINK3Q.js +0 -1994
- package/dist/chunk-7UFINK3Q.js.map +0 -1
- package/dist/chunk-GGO5GW72.js.map +0 -1
- package/dist/chunk-JJLAES6W.js +0 -76
- package/dist/chunk-JJLAES6W.js.map +0 -1
- package/dist/chunk-KT52UU3U.js +0 -985
- package/dist/chunk-KT52UU3U.js.map +0 -1
- package/dist/chunk-LJIWB7KE.js.map +0 -1
- package/dist/chunk-NA652ART.js.map +0 -1
- package/dist/chunk-OVLO7UOH.js.map +0 -1
- package/dist/chunk-VRLUXCLD.js +0 -31
- package/dist/chunk-VRLUXCLD.js.map +0 -1
- package/dist/chunk-WMNT4OIE.js.map +0 -1
- package/dist/chunk-Y52IEYVM.js.map +0 -1
- package/dist/lib/index.js +0 -6
- package/dist/query-keys-CZNFikIi.d.ts +0 -153
- package/dist/views/index.d.ts +0 -131
- package/dist/views/index.js +0 -11
- /package/dist/{lib → auth}/index.js.map +0 -0
- /package/dist/{views → client}/index.js.map +0 -0
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Common Zod Schemas - Shared Schema Definitions
|
|
5
|
+
*
|
|
6
|
+
* This file contains Zod schemas that are used across multiple domains.
|
|
7
|
+
* Types are derived from these schemas to ensure a single source of truth.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Import schemas from here for validation.
|
|
11
|
+
* Import types from here or from domain files for TypeScript types.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Schema for Date fields that can be either Date objects or ISO strings.
|
|
16
|
+
* API responses typically return ISO strings, not Date objects.
|
|
17
|
+
*/
|
|
18
|
+
declare const DateSchema: z.ZodDate;
|
|
19
|
+
/**
|
|
20
|
+
* Optional nullable date for responses
|
|
21
|
+
*/
|
|
22
|
+
declare const OptionalDateSchema: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNull]>>;
|
|
23
|
+
/**
|
|
24
|
+
* Schema for EntityReference - reference to a Thing in the semantic graph.
|
|
25
|
+
*
|
|
26
|
+
* Used by:
|
|
27
|
+
* - Relationships (subject/object in semantic triples)
|
|
28
|
+
* - Events (subject/object in semantic events)
|
|
29
|
+
* - Graph traversal results
|
|
30
|
+
*/
|
|
31
|
+
declare const EntityReferenceSchema: z.ZodObject<{
|
|
32
|
+
/** Namespace */
|
|
33
|
+
ns: z.ZodString;
|
|
34
|
+
/** Entity type */
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
/** Entity ID */
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
/** Semantic ID (ns/type/id) */
|
|
39
|
+
semanticId: z.ZodString;
|
|
40
|
+
/** Display name (if loaded) */
|
|
41
|
+
name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
id: string;
|
|
44
|
+
type: string;
|
|
45
|
+
ns: string;
|
|
46
|
+
semanticId: string;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
id: string;
|
|
50
|
+
type: string;
|
|
51
|
+
ns: string;
|
|
52
|
+
semanticId: string;
|
|
53
|
+
name?: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Reference to an entity (Thing) in the semantic graph.
|
|
57
|
+
*/
|
|
58
|
+
type EntityReference = z.infer<typeof EntityReferenceSchema>;
|
|
59
|
+
/**
|
|
60
|
+
* Schema for TokenUsage - token usage metrics for AI operations.
|
|
61
|
+
*
|
|
62
|
+
* Used by:
|
|
63
|
+
* - Agent executions
|
|
64
|
+
* - Function executions (generative/agentic)
|
|
65
|
+
* - Agent trace entries
|
|
66
|
+
*/
|
|
67
|
+
declare const TokenUsageSchema: z.ZodObject<{
|
|
68
|
+
/** Input/prompt tokens */
|
|
69
|
+
inputTokens: z.ZodNumber;
|
|
70
|
+
/** Output/completion tokens */
|
|
71
|
+
outputTokens: z.ZodNumber;
|
|
72
|
+
/** Total tokens (input + output) */
|
|
73
|
+
totalTokens: z.ZodNumber;
|
|
74
|
+
/** Thinking tokens (for reasoning models like o1, Claude with thinking) */
|
|
75
|
+
thinkingTokens: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
/** Estimated cost in USD */
|
|
77
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
inputTokens: number;
|
|
80
|
+
outputTokens: number;
|
|
81
|
+
totalTokens: number;
|
|
82
|
+
thinkingTokens?: number | undefined;
|
|
83
|
+
costUsd?: number | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
inputTokens: number;
|
|
86
|
+
outputTokens: number;
|
|
87
|
+
totalTokens: number;
|
|
88
|
+
thinkingTokens?: number | undefined;
|
|
89
|
+
costUsd?: number | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Token usage metrics for AI operations.
|
|
93
|
+
*/
|
|
94
|
+
type TokenUsage = z.infer<typeof TokenUsageSchema>;
|
|
95
|
+
/**
|
|
96
|
+
* Schema for ExecutionError - error information for execution failures.
|
|
97
|
+
*
|
|
98
|
+
* Used by:
|
|
99
|
+
* - Workflow executions
|
|
100
|
+
* - Function executions
|
|
101
|
+
* - Step executions
|
|
102
|
+
*/
|
|
103
|
+
declare const ExecutionErrorSchema: z.ZodObject<{
|
|
104
|
+
/** Error code (e.g., 'TIMEOUT', 'VALIDATION_ERROR', 'RATE_LIMITED') */
|
|
105
|
+
code: z.ZodString;
|
|
106
|
+
/** Human-readable error message */
|
|
107
|
+
message: z.ZodString;
|
|
108
|
+
/** Stack trace (for debugging) */
|
|
109
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
110
|
+
/** ID of the step that failed (for workflow executions) */
|
|
111
|
+
failedStep: z.ZodOptional<z.ZodString>;
|
|
112
|
+
/** Number of retry attempts made (for function executions) */
|
|
113
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
/** Whether this error is retryable (for function executions) */
|
|
115
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
code: string;
|
|
118
|
+
message: string;
|
|
119
|
+
stack?: string | undefined;
|
|
120
|
+
failedStep?: string | undefined;
|
|
121
|
+
retryCount?: number | undefined;
|
|
122
|
+
retryable?: boolean | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
code: string;
|
|
125
|
+
message: string;
|
|
126
|
+
stack?: string | undefined;
|
|
127
|
+
failedStep?: string | undefined;
|
|
128
|
+
retryCount?: number | undefined;
|
|
129
|
+
retryable?: boolean | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* Error information for execution failures.
|
|
133
|
+
*/
|
|
134
|
+
type ExecutionError = z.infer<typeof ExecutionErrorSchema>;
|
|
135
|
+
/**
|
|
136
|
+
* Schema for SortDirection - sort direction for list queries.
|
|
137
|
+
*/
|
|
138
|
+
declare const SortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
|
|
139
|
+
/**
|
|
140
|
+
* Sort direction for list queries.
|
|
141
|
+
*/
|
|
142
|
+
type SortDirection = z.infer<typeof SortDirectionSchema>;
|
|
143
|
+
/**
|
|
144
|
+
* Schema factory for sort parameters.
|
|
145
|
+
*/
|
|
146
|
+
declare const SortParamsSchema: <T extends z.ZodTypeAny>(fieldSchema: T) => z.ZodObject<{
|
|
147
|
+
/** Field to sort by */
|
|
148
|
+
field: T;
|
|
149
|
+
/** Sort direction */
|
|
150
|
+
order: z.ZodEnum<["asc", "desc"]>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
152
|
+
/** Field to sort by */
|
|
153
|
+
field: T;
|
|
154
|
+
/** Sort direction */
|
|
155
|
+
order: z.ZodEnum<["asc", "desc"]>;
|
|
156
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
157
|
+
/** Field to sort by */
|
|
158
|
+
field: T;
|
|
159
|
+
/** Sort direction */
|
|
160
|
+
order: z.ZodEnum<["asc", "desc"]>;
|
|
161
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
162
|
+
/**
|
|
163
|
+
* Sort parameters for list queries.
|
|
164
|
+
*/
|
|
165
|
+
interface SortParams<T = string> {
|
|
166
|
+
field: T;
|
|
167
|
+
order: SortDirection;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Schema for date range filters.
|
|
171
|
+
*/
|
|
172
|
+
declare const DateRangeFilterSchema: z.ZodObject<{
|
|
173
|
+
/** Start of the date range */
|
|
174
|
+
after: z.ZodOptional<z.ZodDate>;
|
|
175
|
+
/** End of the date range */
|
|
176
|
+
before: z.ZodOptional<z.ZodDate>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
after?: Date | undefined;
|
|
179
|
+
before?: Date | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
after?: Date | undefined;
|
|
182
|
+
before?: Date | undefined;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Date range filter for queries.
|
|
186
|
+
*/
|
|
187
|
+
type DateRangeFilter = z.infer<typeof DateRangeFilterSchema>;
|
|
188
|
+
/**
|
|
189
|
+
* Schema for common record metadata.
|
|
190
|
+
*/
|
|
191
|
+
declare const RecordMetadataSchema: z.ZodObject<{
|
|
192
|
+
/** Creation timestamp */
|
|
193
|
+
createdAt: z.ZodDate;
|
|
194
|
+
/** Last update timestamp */
|
|
195
|
+
updatedAt: z.ZodDate;
|
|
196
|
+
/** Creator user ID */
|
|
197
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
198
|
+
/** Last updater user ID */
|
|
199
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
createdAt: Date;
|
|
202
|
+
updatedAt: Date;
|
|
203
|
+
createdBy?: string | undefined;
|
|
204
|
+
updatedBy?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
createdAt: Date;
|
|
207
|
+
updatedAt: Date;
|
|
208
|
+
createdBy?: string | undefined;
|
|
209
|
+
updatedBy?: string | undefined;
|
|
210
|
+
}>;
|
|
211
|
+
/**
|
|
212
|
+
* Common record metadata (timestamps and user tracking).
|
|
213
|
+
*/
|
|
214
|
+
type RecordMetadata = z.infer<typeof RecordMetadataSchema>;
|
|
215
|
+
/**
|
|
216
|
+
* Schema for soft-deletable records.
|
|
217
|
+
*/
|
|
218
|
+
declare const SoftDeletableSchema: z.ZodObject<{
|
|
219
|
+
/** Soft delete timestamp */
|
|
220
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNull]>>;
|
|
221
|
+
/** User who deleted the record */
|
|
222
|
+
deletedBy: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
deletedAt?: Date | null | undefined;
|
|
225
|
+
deletedBy?: string | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
deletedAt?: Date | null | undefined;
|
|
228
|
+
deletedBy?: string | undefined;
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* Soft-deletable record fields.
|
|
232
|
+
*/
|
|
233
|
+
type SoftDeletable = z.infer<typeof SoftDeletableSchema>;
|
|
234
|
+
/**
|
|
235
|
+
* Schema for audit trail entries.
|
|
236
|
+
*/
|
|
237
|
+
declare const AuditEntrySchema: z.ZodObject<{
|
|
238
|
+
/** Action performed */
|
|
239
|
+
action: z.ZodEnum<["create", "update", "delete", "read"]>;
|
|
240
|
+
/** User who performed the action */
|
|
241
|
+
userId: z.ZodString;
|
|
242
|
+
/** Timestamp of the action */
|
|
243
|
+
timestamp: z.ZodDate;
|
|
244
|
+
/** Type of resource affected */
|
|
245
|
+
resourceType: z.ZodString;
|
|
246
|
+
/** ID of resource affected */
|
|
247
|
+
resourceId: z.ZodString;
|
|
248
|
+
/** Field changes (for updates) */
|
|
249
|
+
changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
250
|
+
old: z.ZodUnknown;
|
|
251
|
+
new: z.ZodUnknown;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
old?: unknown;
|
|
254
|
+
new?: unknown;
|
|
255
|
+
}, {
|
|
256
|
+
old?: unknown;
|
|
257
|
+
new?: unknown;
|
|
258
|
+
}>>>;
|
|
259
|
+
/** Additional metadata */
|
|
260
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
action: "delete" | "create" | "update" | "read";
|
|
263
|
+
userId: string;
|
|
264
|
+
timestamp: Date;
|
|
265
|
+
resourceType: string;
|
|
266
|
+
resourceId: string;
|
|
267
|
+
metadata?: Record<string, unknown> | undefined;
|
|
268
|
+
changes?: Record<string, {
|
|
269
|
+
old?: unknown;
|
|
270
|
+
new?: unknown;
|
|
271
|
+
}> | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
action: "delete" | "create" | "update" | "read";
|
|
274
|
+
userId: string;
|
|
275
|
+
timestamp: Date;
|
|
276
|
+
resourceType: string;
|
|
277
|
+
resourceId: string;
|
|
278
|
+
metadata?: Record<string, unknown> | undefined;
|
|
279
|
+
changes?: Record<string, {
|
|
280
|
+
old?: unknown;
|
|
281
|
+
new?: unknown;
|
|
282
|
+
}> | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
/**
|
|
285
|
+
* Audit trail entry for tracking changes.
|
|
286
|
+
*/
|
|
287
|
+
type AuditEntry = z.infer<typeof AuditEntrySchema>;
|
|
288
|
+
/**
|
|
289
|
+
* Schema for semantic ID components.
|
|
290
|
+
*/
|
|
291
|
+
declare const SemanticIdComponentsSchema: z.ZodObject<{
|
|
292
|
+
/** Namespace */
|
|
293
|
+
ns: z.ZodString;
|
|
294
|
+
/** Entity type */
|
|
295
|
+
type: z.ZodString;
|
|
296
|
+
/** Entity ID */
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
id: string;
|
|
300
|
+
type: string;
|
|
301
|
+
ns: string;
|
|
302
|
+
}, {
|
|
303
|
+
id: string;
|
|
304
|
+
type: string;
|
|
305
|
+
ns: string;
|
|
306
|
+
}>;
|
|
307
|
+
/**
|
|
308
|
+
* Parsed semantic ID components (ns/type/id).
|
|
309
|
+
*/
|
|
310
|
+
type SemanticIdComponents = z.infer<typeof SemanticIdComponentsSchema>;
|
|
311
|
+
/**
|
|
312
|
+
* Semantic ID string type (ns/type/id format).
|
|
313
|
+
*/
|
|
314
|
+
type SemanticId = `${string}/${string}/${string}`;
|
|
315
|
+
/**
|
|
316
|
+
* Schema for Pagination - pagination input parameters for list queries.
|
|
317
|
+
*/
|
|
318
|
+
declare const PaginationSchema: z.ZodObject<{
|
|
319
|
+
/** Page number (1-indexed) */
|
|
320
|
+
page: z.ZodNumber;
|
|
321
|
+
/** Items per page */
|
|
322
|
+
perPage: z.ZodNumber;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
page: number;
|
|
325
|
+
perPage: number;
|
|
326
|
+
}, {
|
|
327
|
+
page: number;
|
|
328
|
+
perPage: number;
|
|
329
|
+
}>;
|
|
330
|
+
/**
|
|
331
|
+
* Pagination input parameters for list queries.
|
|
332
|
+
*/
|
|
333
|
+
type Pagination = z.infer<typeof PaginationSchema>;
|
|
334
|
+
/**
|
|
335
|
+
* Schema for pagination parameters with cursor support.
|
|
336
|
+
*/
|
|
337
|
+
declare const PaginationParamsSchema: z.ZodObject<{
|
|
338
|
+
/** Page number (1-indexed) */
|
|
339
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
/** Items per page */
|
|
341
|
+
perPage: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
/** Cursor for keyset pagination */
|
|
343
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
cursor?: string | undefined;
|
|
346
|
+
page?: number | undefined;
|
|
347
|
+
perPage?: number | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
cursor?: string | undefined;
|
|
350
|
+
page?: number | undefined;
|
|
351
|
+
perPage?: number | undefined;
|
|
352
|
+
}>;
|
|
353
|
+
/**
|
|
354
|
+
* Pagination parameters (page-based or cursor-based).
|
|
355
|
+
*/
|
|
356
|
+
type PaginationParams = z.infer<typeof PaginationParamsSchema>;
|
|
357
|
+
/**
|
|
358
|
+
* Schema factory for paginated responses.
|
|
359
|
+
*/
|
|
360
|
+
declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
361
|
+
/** Array of items for the current page */
|
|
362
|
+
data: z.ZodArray<T, "many">;
|
|
363
|
+
/** Total number of items across all pages */
|
|
364
|
+
total: z.ZodNumber;
|
|
365
|
+
/** Current page number (1-indexed) */
|
|
366
|
+
page: z.ZodNumber;
|
|
367
|
+
/** Items per page */
|
|
368
|
+
perPage: z.ZodNumber;
|
|
369
|
+
/** Total number of pages */
|
|
370
|
+
totalPages: z.ZodNumber;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
data: T["_output"][];
|
|
373
|
+
page: number;
|
|
374
|
+
total: number;
|
|
375
|
+
perPage: number;
|
|
376
|
+
totalPages: number;
|
|
377
|
+
}, {
|
|
378
|
+
data: T["_input"][];
|
|
379
|
+
page: number;
|
|
380
|
+
total: number;
|
|
381
|
+
perPage: number;
|
|
382
|
+
totalPages: number;
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* Paginated response wrapper for list queries.
|
|
386
|
+
*/
|
|
387
|
+
interface PaginatedResponse<T> {
|
|
388
|
+
/** Array of items for the current page */
|
|
389
|
+
data: T[];
|
|
390
|
+
/** Total number of items across all pages */
|
|
391
|
+
total: number;
|
|
392
|
+
/** Current page number (1-indexed) */
|
|
393
|
+
page: number;
|
|
394
|
+
/** Items per page */
|
|
395
|
+
perPage: number;
|
|
396
|
+
/** Total number of pages */
|
|
397
|
+
totalPages: number;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Schema factory for paginated results with hasMore and cursor support.
|
|
401
|
+
*/
|
|
402
|
+
declare const PaginatedResultSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
403
|
+
/** Array of items for the current page */
|
|
404
|
+
data: z.ZodArray<T, "many">;
|
|
405
|
+
/** Total number of items across all pages */
|
|
406
|
+
total: z.ZodNumber;
|
|
407
|
+
/** Current page number (1-indexed) */
|
|
408
|
+
page: z.ZodNumber;
|
|
409
|
+
/** Items per page */
|
|
410
|
+
perPage: z.ZodNumber;
|
|
411
|
+
/** Total number of pages */
|
|
412
|
+
totalPages: z.ZodNumber;
|
|
413
|
+
/** Whether there are more pages */
|
|
414
|
+
hasMore: z.ZodBoolean;
|
|
415
|
+
/** Cursor for next page (if using cursor-based pagination) */
|
|
416
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
417
|
+
}, "strip", z.ZodTypeAny, {
|
|
418
|
+
data: T["_output"][];
|
|
419
|
+
page: number;
|
|
420
|
+
total: number;
|
|
421
|
+
perPage: number;
|
|
422
|
+
totalPages: number;
|
|
423
|
+
hasMore: boolean;
|
|
424
|
+
cursor?: string | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
data: T["_input"][];
|
|
427
|
+
page: number;
|
|
428
|
+
total: number;
|
|
429
|
+
perPage: number;
|
|
430
|
+
totalPages: number;
|
|
431
|
+
hasMore: boolean;
|
|
432
|
+
cursor?: string | undefined;
|
|
433
|
+
}>;
|
|
434
|
+
/**
|
|
435
|
+
* Paginated result with hasMore indicator and optional cursor.
|
|
436
|
+
*/
|
|
437
|
+
interface PaginatedResult<T> {
|
|
438
|
+
/** Array of items for the current page */
|
|
439
|
+
data: T[];
|
|
440
|
+
/** Total number of items across all pages */
|
|
441
|
+
total: number;
|
|
442
|
+
/** Current page number (1-indexed) */
|
|
443
|
+
page: number;
|
|
444
|
+
/** Items per page */
|
|
445
|
+
perPage: number;
|
|
446
|
+
/** Total number of pages */
|
|
447
|
+
totalPages: number;
|
|
448
|
+
/** Whether there are more pages */
|
|
449
|
+
hasMore: boolean;
|
|
450
|
+
/** Cursor for next page (if using cursor-based pagination) */
|
|
451
|
+
cursor?: string;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export { type AuditEntry as A, type DateRangeFilter as D, type EntityReference as E, OptionalDateSchema as O, type PaginatedResult as P, type RecordMetadata as R, type SemanticId as S, type TokenUsage as T, type PaginationParams as a, type SemanticIdComponents as b, type SoftDeletable as c, type SortParams as d, type SortDirection as e, type ExecutionError as f, type Pagination as g, type PaginatedResponse as h, DateSchema as i, EntityReferenceSchema as j, TokenUsageSchema as k, ExecutionErrorSchema as l, SortDirectionSchema as m, SortParamsSchema as n, DateRangeFilterSchema as o, RecordMetadataSchema as p, SoftDeletableSchema as q, AuditEntrySchema as r, SemanticIdComponentsSchema as s, PaginationSchema as t, PaginationParamsSchema as u, PaginatedResponseSchema as v, PaginatedResultSchema as w };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export { a as BreadcrumbItemConfig, B as BreadcrumbLinkProps, c as Breadcrumbs, b as BreadcrumbsProps } from '../breadcrumbs-
|
|
1
|
+
export { a as BreadcrumbItemConfig, B as BreadcrumbLinkProps, c as Breadcrumbs, b as BreadcrumbsProps } from '../breadcrumbs-DltlCiHt.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { aq as UseSaveQueryDialogReturn } from '../thing-adapters-aMjF0h9u.js';
|
|
5
|
+
export { a as FunctionEditor, q as FunctionEditorProps, t as FunctionResult, b as FunctionResultsPanel, s as FunctionResultsPanelProps, F as FunctionWorkspace, r as FunctionWorkspaceProps, c as ResultsActions, R as ResultsStateWrapper, T as THING_TEMPLATES, x as UIRelationship, w as UIThing, U as UseFunctionWorkspaceOptions, v as UseFunctionWorkspaceReturn, k as createThingAdapters, n as createThingCardAdapter, o as createThingFilterFields, m as createThingGraphAdapter, l as createThingTableAdapter, p as normalizeResult, i as useCodeExecutor, d as useFunctionExecution, e as useFunctionHistory, u as useFunctionWorkspace, g as useMobileCollapse, j as useResultsFilter, h as useSaveQueryDialog, f as useSavedQueries } from '../thing-adapters-aMjF0h9u.js';
|
|
6
|
+
import '@mdxui/admin';
|
|
4
7
|
|
|
5
8
|
interface EndpointSelectorProps {
|
|
6
9
|
/** Current endpoint URL */
|
|
@@ -92,4 +95,10 @@ declare function useErrorBoundary(): {
|
|
|
92
95
|
showBoundary: React.Dispatch<React.SetStateAction<Error | null>>;
|
|
93
96
|
};
|
|
94
97
|
|
|
95
|
-
|
|
98
|
+
interface SaveQueryDialogProps {
|
|
99
|
+
dialog: UseSaveQueryDialogReturn;
|
|
100
|
+
code: string;
|
|
101
|
+
}
|
|
102
|
+
declare function SaveQueryDialog({ dialog, code }: SaveQueryDialogProps): react_jsx_runtime.JSX.Element;
|
|
103
|
+
|
|
104
|
+
export { DOErrorBoundary, type DOErrorBoundaryProps, EndpointSelector, type EndpointSelectorProps, SaveQueryDialog, type SaveQueryDialogProps, useErrorBoundary };
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
export { DOErrorBoundary, useErrorBoundary } from '../chunk-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
export { DOErrorBoundary, useErrorBoundary } from '../chunk-BU5HMHGQ.js';
|
|
2
|
+
export { EndpointSelector } from '../chunk-7QCTRNEJ.js';
|
|
3
|
+
export { Breadcrumbs } from '../chunk-SX4IIE2R.js';
|
|
4
|
+
export { FunctionEditor, FunctionResultsPanel, FunctionWorkspace, ResultsActions, ResultsStateWrapper, SaveQueryDialog, THING_TEMPLATES, createThingAdapters, createThingCardAdapter, createThingFilterFields, createThingGraphAdapter, createThingTableAdapter, normalizeResult, useCodeExecutor, useFunctionExecution, useFunctionHistory, useFunctionWorkspace, useMobileCollapse, useResultsFilter, useSaveQueryDialog, useSavedQueries } from '../chunk-63VCRTDQ.js';
|
|
5
|
+
import '../chunk-HC4PBXV4.js';
|
|
6
|
+
import '../chunk-KLN5OTQH.js';
|
|
7
|
+
import '../chunk-JPZ6RZJE.js';
|
|
8
|
+
import '../chunk-X3AWNFBF.js';
|
|
4
9
|
//# sourceMappingURL=index.js.map
|
|
5
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,7 +11,7 @@ import { z } from 'zod';
|
|
|
11
11
|
* - ctx.storage.put/get/delete for persistence
|
|
12
12
|
* - blockConcurrencyWhile() for atomic operations
|
|
13
13
|
* - alarms for scheduled events
|
|
14
|
-
* - RPC via
|
|
14
|
+
* - RPC via @dotdo/do SDK for communication
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -137,15 +137,10 @@ interface DOMetrics {
|
|
|
137
137
|
/** Alarms triggered */
|
|
138
138
|
alarmsTriggered: number;
|
|
139
139
|
}
|
|
140
|
-
/**
|
|
141
|
-
* @deprecated Sync status is no longer available in the simplified RPC-only architecture.
|
|
142
|
-
* Kept for backward compatibility.
|
|
143
|
-
*/
|
|
144
|
-
type SyncStatus = 'disconnected' | 'connecting' | 'syncing' | 'synced' | 'error';
|
|
145
140
|
/**
|
|
146
141
|
* Configuration for DO admin interface
|
|
147
142
|
*
|
|
148
|
-
* Simplified single-mode RPC architecture using
|
|
143
|
+
* Simplified single-mode RPC architecture using @dotdo/do SDK.
|
|
149
144
|
*/
|
|
150
145
|
interface DOAdminConfig {
|
|
151
146
|
/** API endpoint for DO management and health checks */
|
|
@@ -181,14 +176,11 @@ interface DOAdminConfig {
|
|
|
181
176
|
skipHealthCheck?: boolean;
|
|
182
177
|
/**
|
|
183
178
|
* Client type for RPC communication.
|
|
184
|
-
* - '
|
|
185
|
-
* - 'capnweb-http': Cap'n Proto over HTTP batch - stateless requests
|
|
186
|
-
* - 'capnweb': Legacy @dotdo/client wrapper
|
|
187
|
-
* - 'json-rpc': JSON-RPC over HTTP - simple JSON format
|
|
179
|
+
* - 'dotdo': @dotdo/do SDK client (recommended) - official SDK with typed RPC
|
|
188
180
|
* - 'mock': Mock client with in-memory data - for demos and development
|
|
189
|
-
* @default '
|
|
181
|
+
* @default 'dotdo'
|
|
190
182
|
*/
|
|
191
|
-
clientType?: '
|
|
183
|
+
clientType?: 'dotdo' | 'mock';
|
|
192
184
|
}
|
|
193
185
|
|
|
194
|
-
export type { DOStatus as D,
|
|
186
|
+
export type { DOStatus as D, DOClassType as a, DOInstance as b, DOAlarm as c, DOStorageEntry as d, DOBinding as e, DORPCMethod as f, DOHealthCheck as g, DOMetrics as h, DOAdminConfig as i };
|