@mdxui/do 3.0.0 → 4.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 +80 -275
- package/dist/app/index.d.ts +125 -125
- package/dist/app/index.js +8 -7
- package/dist/breadcrumbs-C9Qn3S7d.d.ts +81 -0
- package/dist/capnweb-client-Bq78FtEA.d.ts +229 -0
- package/dist/chunk-3XKYQRXY.js +192 -0
- package/dist/chunk-3XKYQRXY.js.map +1 -0
- package/dist/{chunk-JWKIONEO.js → chunk-5SHZZC7L.js} +3 -3
- package/dist/{chunk-JWKIONEO.js.map → chunk-5SHZZC7L.js.map} +1 -1
- package/dist/{chunk-YGIBMNRH.js → chunk-7UFINK3Q.js} +30 -27
- package/dist/chunk-7UFINK3Q.js.map +1 -0
- package/dist/{chunk-5AWTQDRF.js → chunk-JJLAES6W.js} +2 -2
- package/dist/{chunk-5AWTQDRF.js.map → chunk-JJLAES6W.js.map} +1 -1
- package/dist/{chunk-NTSEARBC.js → chunk-KT52UU3U.js} +473 -203
- package/dist/chunk-KT52UU3U.js.map +1 -0
- package/dist/{chunk-EQVOEEQO.js → chunk-LJIWB7KE.js} +2 -2
- package/dist/{chunk-EQVOEEQO.js.map → chunk-LJIWB7KE.js.map} +1 -1
- package/dist/{chunk-IESVTECE.js → chunk-NA652ART.js} +64 -4
- package/dist/chunk-NA652ART.js.map +1 -0
- package/dist/chunk-OVLO7UOH.js +1071 -0
- package/dist/chunk-OVLO7UOH.js.map +1 -0
- package/dist/chunk-WMNT4OIE.js +249 -0
- package/dist/chunk-WMNT4OIE.js.map +1 -0
- package/dist/components/index.d.ts +20 -1
- package/dist/components/index.js +2 -1
- package/dist/{config-CmZBQQaT.d.ts → config-CxvpD8Y6.d.ts} +2 -13
- package/dist/{do-C-t9UgjT.d.ts → do-D27i5bU0.d.ts} +2 -1
- package/dist/{errors-B4Oyyj4Z.d.ts → errors-DratdVIz.d.ts} +1 -1
- package/dist/hooks/index.d.ts +30 -3
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/things/index.d.ts +2 -2
- package/dist/hooks/things/index.js +3 -3
- package/dist/index.d.ts +76 -14
- package/dist/index.js +9 -8
- package/dist/lib/index.d.ts +703 -5
- package/dist/lib/index.js +2 -2
- package/dist/providers/index.d.ts +7 -123
- package/dist/providers/index.js +2 -2
- package/dist/{query-keys-BC901wog.d.ts → query-keys-CZNFikIi.d.ts} +3 -3
- package/dist/schemas/index.d.ts +5 -5
- package/dist/{thing-BVhCTzOi.d.ts → thing-BF25aUtJ.d.ts} +68 -68
- package/dist/types/index.d.ts +445 -445
- package/dist/views/index.d.ts +1 -1
- package/dist/views/index.js +6 -6
- package/package.json +2 -2
- package/dist/chunk-FO3N7SXV.js +0 -469
- package/dist/chunk-FO3N7SXV.js.map +0 -1
- package/dist/chunk-IESVTECE.js.map +0 -1
- package/dist/chunk-NTSEARBC.js.map +0 -1
- package/dist/chunk-OWEAW4U6.js +0 -116
- package/dist/chunk-OWEAW4U6.js.map +0 -1
- package/dist/chunk-YGIBMNRH.js.map +0 -1
package/dist/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { APIError, NetworkError, SyncError, ValidationError, isAPIError, isNetworkError, isSyncError, isValidationError } from '../chunk-
|
|
1
|
+
export { APIError, NetworkError, SyncError, ValidationError, isAPIError, isNetworkError, isSyncError, isValidationError } from '../chunk-JJLAES6W.js';
|
|
2
2
|
export { agentsKeys, createQueryKeys, relationshipsKeys, thingsKeys, workflowsKeys } from '../chunk-4KXVN3EQ.js';
|
|
3
|
-
export { DEFAULT_REQUEST_TIMEOUT, createFetchWithTimeout, deriveRpcUrl, fetchWithTimeout, useHealthCheck } from '../chunk-
|
|
3
|
+
export { $CapnwebContext, $JsonRpcContext, $MockContext, DEFAULT_REQUEST_TIMEOUT, MOCK_TYPES, createCapnwebClient, createFetchWithTimeout, createJsonRpcClient, createMockClient, deriveRpcUrl, fetchWithTimeout, generateInitialMockData, generateMockSchema, generateMockThing, generateMockThings, useHealthCheck } from '../chunk-OVLO7UOH.js';
|
|
4
4
|
export { camelToTitle, capitalize, cn, debounce, formatBytes, formatDate, formatDateTime, formatDuration, formatNumber, formatRelativeTime, formatSemanticId, generateId, groupBy, parseSemanticId, retryWithBackoff, truncate } from '../chunk-Y52IEYVM.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,131 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { DataProvider } from '@mdxui/app';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
4
|
export { useQueryClient } from '@tanstack/react-query';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { $ as $CapnwebContext } from '../capnweb-client-Bq78FtEA.js';
|
|
7
|
+
import { i as DOAdminConfig } from '../do-D27i5bU0.js';
|
|
7
8
|
import 'zod';
|
|
8
9
|
|
|
9
|
-
/**
|
|
10
|
-
* Cap'n Web Client Wrapper for DO Admin API
|
|
11
|
-
*
|
|
12
|
-
* This wraps the raw capnweb HTTP batch client to provide a structured interface
|
|
13
|
-
* matching the DOClient interface (client.Thing.list, client.Schema.discover, etc.)
|
|
14
|
-
*
|
|
15
|
-
* @module
|
|
16
|
-
*/
|
|
17
|
-
/** SQL execution result */
|
|
18
|
-
interface SQLResult {
|
|
19
|
-
rows: Record<string, unknown>[];
|
|
20
|
-
columns: {
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}[];
|
|
24
|
-
rowsAffected?: number;
|
|
25
|
-
executionTimeMs?: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Create a capnweb client context - factory function matching DOClient interface
|
|
29
|
-
*/
|
|
30
|
-
declare function $CapnwebContext(url: string): {
|
|
31
|
-
/**
|
|
32
|
-
* Namespace operations
|
|
33
|
-
*/
|
|
34
|
-
Namespace: {
|
|
35
|
-
list(_params?: {
|
|
36
|
-
includeSystem?: boolean;
|
|
37
|
-
}): Promise<{
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
}[]>;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Schema operations
|
|
44
|
-
*/
|
|
45
|
-
Schema: {
|
|
46
|
-
discover(_params?: {
|
|
47
|
-
ns?: string;
|
|
48
|
-
}): Promise<{
|
|
49
|
-
namespaces: string[];
|
|
50
|
-
types: string[];
|
|
51
|
-
schemas: string[];
|
|
52
|
-
}>;
|
|
53
|
-
get(params: {
|
|
54
|
-
ns?: string;
|
|
55
|
-
type: string;
|
|
56
|
-
}): Promise<unknown>;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Thing operations
|
|
60
|
-
*/
|
|
61
|
-
Thing: {
|
|
62
|
-
types(params: {
|
|
63
|
-
ns?: string;
|
|
64
|
-
includeSystem?: boolean;
|
|
65
|
-
}): Promise<{
|
|
66
|
-
name: string;
|
|
67
|
-
ns: string;
|
|
68
|
-
}[]>;
|
|
69
|
-
list(params: {
|
|
70
|
-
ns?: string;
|
|
71
|
-
type?: string;
|
|
72
|
-
limit?: number;
|
|
73
|
-
offset?: number;
|
|
74
|
-
}): Promise<{
|
|
75
|
-
data: unknown[];
|
|
76
|
-
total: number;
|
|
77
|
-
}>;
|
|
78
|
-
get(params: {
|
|
79
|
-
ns?: string;
|
|
80
|
-
type: string;
|
|
81
|
-
id: string;
|
|
82
|
-
}): Promise<unknown>;
|
|
83
|
-
create(params: {
|
|
84
|
-
ns?: string;
|
|
85
|
-
type: string;
|
|
86
|
-
data: unknown;
|
|
87
|
-
}): Promise<unknown>;
|
|
88
|
-
update(params: {
|
|
89
|
-
ns?: string;
|
|
90
|
-
type: string;
|
|
91
|
-
id: string;
|
|
92
|
-
data: unknown;
|
|
93
|
-
}): Promise<unknown>;
|
|
94
|
-
delete(params: {
|
|
95
|
-
ns?: string;
|
|
96
|
-
type: string;
|
|
97
|
-
id: string;
|
|
98
|
-
hard?: boolean;
|
|
99
|
-
}): Promise<{
|
|
100
|
-
success: boolean;
|
|
101
|
-
}>;
|
|
102
|
-
versions(_params: {
|
|
103
|
-
ns?: string;
|
|
104
|
-
type: string;
|
|
105
|
-
id: string;
|
|
106
|
-
}): Promise<never[]>;
|
|
107
|
-
stats(_params: {
|
|
108
|
-
ns?: string;
|
|
109
|
-
type?: string;
|
|
110
|
-
}): Promise<{
|
|
111
|
-
total: number;
|
|
112
|
-
byType: Record<string, number>;
|
|
113
|
-
}>;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* SQL operations (not supported by capnweb servers)
|
|
117
|
-
*/
|
|
118
|
-
SQL: {
|
|
119
|
-
execute(_params: {
|
|
120
|
-
query: string;
|
|
121
|
-
params?: unknown[];
|
|
122
|
-
}): Promise<SQLResult>;
|
|
123
|
-
};
|
|
124
|
-
dup: () => /*elided*/ any;
|
|
125
|
-
onRpcBroken: (callback: (error: unknown) => void) => void;
|
|
126
|
-
[Symbol.dispose]: () => void;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
10
|
/**
|
|
130
11
|
* Type for the DO client instance
|
|
131
12
|
*
|
|
@@ -255,6 +136,9 @@ interface DOProviderProps {
|
|
|
255
136
|
* Provides a single-mode RPC-first architecture using @dotdo/client for typed RPC calls.
|
|
256
137
|
* All data operations go through the RPC endpoint using promise pipelining.
|
|
257
138
|
*
|
|
139
|
+
* Namespace state is managed via TanStack Query with localStorage persistence,
|
|
140
|
+
* allowing it to be shared across components and persist across sessions.
|
|
141
|
+
*
|
|
258
142
|
* @example
|
|
259
143
|
* ```tsx
|
|
260
144
|
* <DOProvider
|
package/dist/providers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-GKSP5RIA.js';
|
|
2
|
-
export { DOProvider, useDO, useDOClient, useDOUrls, useDataProviderSafe, useQueryClient, useSyncStatus } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { DOProvider, useDO, useDOClient, useDOUrls, useDataProviderSafe, useQueryClient, useSyncStatus } from '../chunk-WMNT4OIE.js';
|
|
3
|
+
import '../chunk-OVLO7UOH.js';
|
|
4
4
|
import '../chunk-Y52IEYVM.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { EntityReference } from './schemas/index.js';
|
|
3
|
-
import { c as ThingFilter, d as ThingSort, e as ThingPagination } from './thing-
|
|
3
|
+
import { c as ThingFilter, d as ThingSort, e as ThingPagination } from './thing-BF25aUtJ.js';
|
|
4
4
|
import { a5 as AgentFilter, a6 as AgentExecutionFilter, B as WorkflowFilter, F as ExecutionFilter, e as RelationshipFilter, G as GraphPattern } from './agents-2_r9e9i7.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -37,8 +37,8 @@ declare const thingsKeys: {
|
|
|
37
37
|
variant: zod.ZodOptional<zod.ZodString>;
|
|
38
38
|
}, zod.ZodTypeAny, "passthrough">;
|
|
39
39
|
readonly sort: {
|
|
40
|
+
order: "desc" | "asc";
|
|
40
41
|
field: "type" | "name" | "ts" | "createdAt" | "updatedAt";
|
|
41
|
-
order: "asc" | "desc";
|
|
42
42
|
} | undefined;
|
|
43
43
|
readonly pagination: {
|
|
44
44
|
page: number;
|
|
@@ -103,9 +103,9 @@ declare const relationshipsKeys: {
|
|
|
103
103
|
detail: (id: string) => readonly ["relationships", "detail", string];
|
|
104
104
|
graph: () => readonly ["relationships", "graph"];
|
|
105
105
|
traverse: (entity: EntityReference, pattern: GraphPattern) => readonly ["relationships", "graph", {
|
|
106
|
+
id: string;
|
|
106
107
|
type: string;
|
|
107
108
|
ns: string;
|
|
108
|
-
id: string;
|
|
109
109
|
semanticId: string;
|
|
110
110
|
name?: string | undefined;
|
|
111
111
|
}, GraphPattern];
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { N as Namespace, x as NamespaceSchema, b as SemanticProperty, v as SemanticPropertySchema, S as SemanticType, w as SemanticTypeSchema, T as Thing, g as ThingCreateInput, r as ThingCreateInputSchema, a as ThingData, l as ThingDataSchema, i as ThingDeleteOptions, t as ThingDeleteOptionsSchema, c as ThingFilter, n as ThingFilterSchema, e as ThingPagination, p as ThingPaginationSchema, f as ThingQueryResult, q as ThingQueryResultSchema, m as ThingSchema, d as ThingSort, o as ThingSortSchema, h as ThingUpdateInput, s as ThingUpdateInputSchema, j as ThingVersion, u as ThingVersionSchema, k as TypeStats, y as TypeStatsSchema } from '../thing-
|
|
2
|
+
export { N as Namespace, x as NamespaceSchema, b as SemanticProperty, v as SemanticPropertySchema, S as SemanticType, w as SemanticTypeSchema, T as Thing, g as ThingCreateInput, r as ThingCreateInputSchema, a as ThingData, l as ThingDataSchema, i as ThingDeleteOptions, t as ThingDeleteOptionsSchema, c as ThingFilter, n as ThingFilterSchema, e as ThingPagination, p as ThingPaginationSchema, f as ThingQueryResult, q as ThingQueryResultSchema, m as ThingSchema, d as ThingSort, o as ThingSortSchema, h as ThingUpdateInput, s as ThingUpdateInputSchema, j as ThingVersion, u as ThingVersionSchema, k as TypeStats, y as TypeStatsSchema } from '../thing-BF25aUtJ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Common Zod Schemas - Shared Schema Definitions
|
|
@@ -41,15 +41,15 @@ declare const EntityReferenceSchema: z.ZodObject<{
|
|
|
41
41
|
/** Display name (if loaded) */
|
|
42
42
|
name: z.ZodOptional<z.ZodString>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: string;
|
|
44
45
|
type: string;
|
|
45
46
|
ns: string;
|
|
46
|
-
id: string;
|
|
47
47
|
semanticId: string;
|
|
48
48
|
name?: string | undefined;
|
|
49
49
|
}, {
|
|
50
|
+
id: string;
|
|
50
51
|
type: string;
|
|
51
52
|
ns: string;
|
|
52
|
-
id: string;
|
|
53
53
|
semanticId: string;
|
|
54
54
|
name?: string | undefined;
|
|
55
55
|
}>;
|
|
@@ -175,15 +175,15 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) =
|
|
|
175
175
|
/** Total number of pages */
|
|
176
176
|
totalPages: z.ZodNumber;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
data: T["_output"][];
|
|
178
179
|
page: number;
|
|
179
180
|
perPage: number;
|
|
180
|
-
data: T["_output"][];
|
|
181
181
|
total: number;
|
|
182
182
|
totalPages: number;
|
|
183
183
|
}, {
|
|
184
|
+
data: T["_input"][];
|
|
184
185
|
page: number;
|
|
185
186
|
perPage: number;
|
|
186
|
-
data: T["_input"][];
|
|
187
187
|
total: number;
|
|
188
188
|
totalPages: number;
|
|
189
189
|
}>;
|
|
@@ -95,10 +95,6 @@ declare const ThingSchema: z.ZodObject<{
|
|
|
95
95
|
'@id': z.ZodOptional<z.ZodString>;
|
|
96
96
|
}, z.ZodTypeAny, "passthrough">>;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: string;
|
|
99
|
-
ns: string;
|
|
100
|
-
id: string;
|
|
101
|
-
name: string;
|
|
102
98
|
data: {
|
|
103
99
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
104
100
|
'@type'?: string | undefined;
|
|
@@ -106,18 +102,18 @@ declare const ThingSchema: z.ZodObject<{
|
|
|
106
102
|
} & {
|
|
107
103
|
[k: string]: unknown;
|
|
108
104
|
};
|
|
105
|
+
id: string;
|
|
106
|
+
type: string;
|
|
107
|
+
name: string;
|
|
108
|
+
ns: string;
|
|
109
109
|
ts: Date;
|
|
110
110
|
createdAt: Date;
|
|
111
111
|
updatedAt: Date;
|
|
112
|
+
variant?: string | undefined;
|
|
112
113
|
createdBy?: string | undefined;
|
|
113
114
|
updatedBy?: string | undefined;
|
|
114
115
|
deletedAt?: Date | null | undefined;
|
|
115
|
-
variant?: string | undefined;
|
|
116
116
|
}, {
|
|
117
|
-
type: string;
|
|
118
|
-
ns: string;
|
|
119
|
-
id: string;
|
|
120
|
-
name: string;
|
|
121
117
|
data: {
|
|
122
118
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
123
119
|
'@type'?: string | undefined;
|
|
@@ -125,13 +121,17 @@ declare const ThingSchema: z.ZodObject<{
|
|
|
125
121
|
} & {
|
|
126
122
|
[k: string]: unknown;
|
|
127
123
|
};
|
|
124
|
+
id: string;
|
|
125
|
+
type: string;
|
|
126
|
+
name: string;
|
|
127
|
+
ns: string;
|
|
128
128
|
ts: Date;
|
|
129
129
|
createdAt: Date;
|
|
130
130
|
updatedAt: Date;
|
|
131
|
+
variant?: string | undefined;
|
|
131
132
|
createdBy?: string | undefined;
|
|
132
133
|
updatedBy?: string | undefined;
|
|
133
134
|
deletedAt?: Date | null | undefined;
|
|
134
|
-
variant?: string | undefined;
|
|
135
135
|
}>;
|
|
136
136
|
/**
|
|
137
137
|
* Base Thing record from database.
|
|
@@ -223,11 +223,11 @@ declare const ThingSortSchema: z.ZodObject<{
|
|
|
223
223
|
/** Sort direction */
|
|
224
224
|
order: z.ZodEnum<["asc", "desc"]>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
order: "desc" | "asc";
|
|
226
227
|
field: "type" | "name" | "ts" | "createdAt" | "updatedAt";
|
|
227
|
-
order: "asc" | "desc";
|
|
228
228
|
}, {
|
|
229
|
+
order: "desc" | "asc";
|
|
229
230
|
field: "type" | "name" | "ts" | "createdAt" | "updatedAt";
|
|
230
|
-
order: "asc" | "desc";
|
|
231
231
|
}>;
|
|
232
232
|
/**
|
|
233
233
|
* Sort options for Things.
|
|
@@ -304,10 +304,6 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
304
304
|
'@id': z.ZodOptional<z.ZodString>;
|
|
305
305
|
}, z.ZodTypeAny, "passthrough">>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
type: string;
|
|
308
|
-
ns: string;
|
|
309
|
-
id: string;
|
|
310
|
-
name: string;
|
|
311
307
|
data: {
|
|
312
308
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
313
309
|
'@type'?: string | undefined;
|
|
@@ -315,18 +311,18 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
315
311
|
} & {
|
|
316
312
|
[k: string]: unknown;
|
|
317
313
|
};
|
|
314
|
+
id: string;
|
|
315
|
+
type: string;
|
|
316
|
+
name: string;
|
|
317
|
+
ns: string;
|
|
318
318
|
ts: Date;
|
|
319
319
|
createdAt: Date;
|
|
320
320
|
updatedAt: Date;
|
|
321
|
+
variant?: string | undefined;
|
|
321
322
|
createdBy?: string | undefined;
|
|
322
323
|
updatedBy?: string | undefined;
|
|
323
324
|
deletedAt?: Date | null | undefined;
|
|
324
|
-
variant?: string | undefined;
|
|
325
325
|
}, {
|
|
326
|
-
type: string;
|
|
327
|
-
ns: string;
|
|
328
|
-
id: string;
|
|
329
|
-
name: string;
|
|
330
326
|
data: {
|
|
331
327
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
332
328
|
'@type'?: string | undefined;
|
|
@@ -334,13 +330,17 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
334
330
|
} & {
|
|
335
331
|
[k: string]: unknown;
|
|
336
332
|
};
|
|
333
|
+
id: string;
|
|
334
|
+
type: string;
|
|
335
|
+
name: string;
|
|
336
|
+
ns: string;
|
|
337
337
|
ts: Date;
|
|
338
338
|
createdAt: Date;
|
|
339
339
|
updatedAt: Date;
|
|
340
|
+
variant?: string | undefined;
|
|
340
341
|
createdBy?: string | undefined;
|
|
341
342
|
updatedBy?: string | undefined;
|
|
342
343
|
deletedAt?: Date | null | undefined;
|
|
343
|
-
variant?: string | undefined;
|
|
344
344
|
}>, "many">;
|
|
345
345
|
/** Total count (without pagination) */
|
|
346
346
|
total: z.ZodNumber;
|
|
@@ -351,13 +351,7 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
351
351
|
/** Total pages */
|
|
352
352
|
totalPages: z.ZodNumber;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
page: number;
|
|
355
|
-
perPage: number;
|
|
356
354
|
data: {
|
|
357
|
-
type: string;
|
|
358
|
-
ns: string;
|
|
359
|
-
id: string;
|
|
360
|
-
name: string;
|
|
361
355
|
data: {
|
|
362
356
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
363
357
|
'@type'?: string | undefined;
|
|
@@ -365,24 +359,24 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
365
359
|
} & {
|
|
366
360
|
[k: string]: unknown;
|
|
367
361
|
};
|
|
362
|
+
id: string;
|
|
363
|
+
type: string;
|
|
364
|
+
name: string;
|
|
365
|
+
ns: string;
|
|
368
366
|
ts: Date;
|
|
369
367
|
createdAt: Date;
|
|
370
368
|
updatedAt: Date;
|
|
369
|
+
variant?: string | undefined;
|
|
371
370
|
createdBy?: string | undefined;
|
|
372
371
|
updatedBy?: string | undefined;
|
|
373
372
|
deletedAt?: Date | null | undefined;
|
|
374
|
-
variant?: string | undefined;
|
|
375
373
|
}[];
|
|
374
|
+
page: number;
|
|
375
|
+
perPage: number;
|
|
376
376
|
total: number;
|
|
377
377
|
totalPages: number;
|
|
378
378
|
}, {
|
|
379
|
-
page: number;
|
|
380
|
-
perPage: number;
|
|
381
379
|
data: {
|
|
382
|
-
type: string;
|
|
383
|
-
ns: string;
|
|
384
|
-
id: string;
|
|
385
|
-
name: string;
|
|
386
380
|
data: {
|
|
387
381
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
388
382
|
'@type'?: string | undefined;
|
|
@@ -390,14 +384,20 @@ declare const ThingQueryResultSchema: z.ZodObject<{
|
|
|
390
384
|
} & {
|
|
391
385
|
[k: string]: unknown;
|
|
392
386
|
};
|
|
387
|
+
id: string;
|
|
388
|
+
type: string;
|
|
389
|
+
name: string;
|
|
390
|
+
ns: string;
|
|
393
391
|
ts: Date;
|
|
394
392
|
createdAt: Date;
|
|
395
393
|
updatedAt: Date;
|
|
394
|
+
variant?: string | undefined;
|
|
396
395
|
createdBy?: string | undefined;
|
|
397
396
|
updatedBy?: string | undefined;
|
|
398
397
|
deletedAt?: Date | null | undefined;
|
|
399
|
-
variant?: string | undefined;
|
|
400
398
|
}[];
|
|
399
|
+
page: number;
|
|
400
|
+
perPage: number;
|
|
401
401
|
total: number;
|
|
402
402
|
totalPages: number;
|
|
403
403
|
}>;
|
|
@@ -443,9 +443,6 @@ declare const ThingCreateInputSchema: z.ZodObject<{
|
|
|
443
443
|
/** Variant for A/B testing */
|
|
444
444
|
variant: z.ZodOptional<z.ZodString>;
|
|
445
445
|
}, "strip", z.ZodTypeAny, {
|
|
446
|
-
type: string;
|
|
447
|
-
ns: string;
|
|
448
|
-
name: string;
|
|
449
446
|
data: {
|
|
450
447
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
451
448
|
'@type'?: string | undefined;
|
|
@@ -453,12 +450,12 @@ declare const ThingCreateInputSchema: z.ZodObject<{
|
|
|
453
450
|
} & {
|
|
454
451
|
[k: string]: unknown;
|
|
455
452
|
};
|
|
453
|
+
type: string;
|
|
454
|
+
name: string;
|
|
455
|
+
ns: string;
|
|
456
456
|
id?: string | undefined;
|
|
457
457
|
variant?: string | undefined;
|
|
458
458
|
}, {
|
|
459
|
-
type: string;
|
|
460
|
-
ns: string;
|
|
461
|
-
name: string;
|
|
462
459
|
data: {
|
|
463
460
|
'@context'?: string | Record<string, unknown> | undefined;
|
|
464
461
|
'@type'?: string | undefined;
|
|
@@ -466,6 +463,9 @@ declare const ThingCreateInputSchema: z.ZodObject<{
|
|
|
466
463
|
} & {
|
|
467
464
|
[k: string]: unknown;
|
|
468
465
|
};
|
|
466
|
+
type: string;
|
|
467
|
+
name: string;
|
|
468
|
+
ns: string;
|
|
469
469
|
id?: string | undefined;
|
|
470
470
|
variant?: string | undefined;
|
|
471
471
|
}>;
|
|
@@ -496,20 +496,20 @@ declare const ThingUpdateInputSchema: z.ZodObject<{
|
|
|
496
496
|
/** Updated variant */
|
|
497
497
|
variant: z.ZodOptional<z.ZodString>;
|
|
498
498
|
}, "strip", z.ZodTypeAny, {
|
|
499
|
-
name?: string | undefined;
|
|
500
499
|
data?: z.objectOutputType<{
|
|
501
500
|
'@context': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
502
501
|
'@type': z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
503
502
|
'@id': z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
504
503
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
504
|
+
name?: string | undefined;
|
|
505
505
|
variant?: string | undefined;
|
|
506
506
|
}, {
|
|
507
|
-
name?: string | undefined;
|
|
508
507
|
data?: z.objectInputType<{
|
|
509
508
|
'@context': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
510
509
|
'@type': z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
511
510
|
'@id': z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
512
511
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
512
|
+
name?: string | undefined;
|
|
513
513
|
variant?: string | undefined;
|
|
514
514
|
}>;
|
|
515
515
|
/**
|
|
@@ -599,11 +599,11 @@ declare const ThingVersionSchema: z.ZodObject<{
|
|
|
599
599
|
} & {
|
|
600
600
|
[k: string]: unknown;
|
|
601
601
|
};
|
|
602
|
+
metadata: Record<string, unknown>;
|
|
602
603
|
ts: Date;
|
|
603
604
|
eventId: string;
|
|
604
|
-
eventType: "
|
|
605
|
+
eventType: "delete" | "create" | "update" | "create_version" | "update_version";
|
|
605
606
|
userId: string;
|
|
606
|
-
metadata: Record<string, unknown>;
|
|
607
607
|
delta?: z.objectOutputType<{
|
|
608
608
|
/** JSON-LD context */
|
|
609
609
|
'@context': z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
@@ -620,11 +620,11 @@ declare const ThingVersionSchema: z.ZodObject<{
|
|
|
620
620
|
} & {
|
|
621
621
|
[k: string]: unknown;
|
|
622
622
|
};
|
|
623
|
+
metadata: Record<string, unknown>;
|
|
623
624
|
ts: Date;
|
|
624
625
|
eventId: string;
|
|
625
|
-
eventType: "
|
|
626
|
+
eventType: "delete" | "create" | "update" | "create_version" | "update_version";
|
|
626
627
|
userId: string;
|
|
627
|
-
metadata: Record<string, unknown>;
|
|
628
628
|
delta?: z.objectInputType<{
|
|
629
629
|
/** JSON-LD context */
|
|
630
630
|
'@context': z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
@@ -659,21 +659,21 @@ declare const SemanticPropertySchema: z.ZodObject<{
|
|
|
659
659
|
/** Default value */
|
|
660
660
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
661
661
|
}, "strip", z.ZodTypeAny, {
|
|
662
|
-
name: string;
|
|
663
662
|
label: string;
|
|
663
|
+
name: string;
|
|
664
664
|
description: string;
|
|
665
|
+
required: boolean;
|
|
665
666
|
rangeIncludes: string[];
|
|
666
667
|
domainIncludes: string[];
|
|
667
|
-
required: boolean;
|
|
668
668
|
isArray: boolean;
|
|
669
669
|
defaultValue?: unknown;
|
|
670
670
|
}, {
|
|
671
|
-
name: string;
|
|
672
671
|
label: string;
|
|
672
|
+
name: string;
|
|
673
673
|
description: string;
|
|
674
|
+
required: boolean;
|
|
674
675
|
rangeIncludes: string[];
|
|
675
676
|
domainIncludes: string[];
|
|
676
|
-
required: boolean;
|
|
677
677
|
isArray: boolean;
|
|
678
678
|
defaultValue?: unknown;
|
|
679
679
|
}>;
|
|
@@ -716,21 +716,21 @@ declare const SemanticTypeSchema: z.ZodObject<{
|
|
|
716
716
|
/** Default value */
|
|
717
717
|
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
718
718
|
}, "strip", z.ZodTypeAny, {
|
|
719
|
-
name: string;
|
|
720
719
|
label: string;
|
|
720
|
+
name: string;
|
|
721
721
|
description: string;
|
|
722
|
+
required: boolean;
|
|
722
723
|
rangeIncludes: string[];
|
|
723
724
|
domainIncludes: string[];
|
|
724
|
-
required: boolean;
|
|
725
725
|
isArray: boolean;
|
|
726
726
|
defaultValue?: unknown;
|
|
727
727
|
}, {
|
|
728
|
-
name: string;
|
|
729
728
|
label: string;
|
|
729
|
+
name: string;
|
|
730
730
|
description: string;
|
|
731
|
+
required: boolean;
|
|
731
732
|
rangeIncludes: string[];
|
|
732
733
|
domainIncludes: string[];
|
|
733
|
-
required: boolean;
|
|
734
734
|
isArray: boolean;
|
|
735
735
|
defaultValue?: unknown;
|
|
736
736
|
}>, "many">;
|
|
@@ -760,20 +760,20 @@ declare const SemanticTypeSchema: z.ZodObject<{
|
|
|
760
760
|
'@id': z.ZodOptional<z.ZodString>;
|
|
761
761
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
762
762
|
}, "strip", z.ZodTypeAny, {
|
|
763
|
+
label: string;
|
|
763
764
|
id: string;
|
|
764
765
|
name: string;
|
|
766
|
+
namespace: string;
|
|
765
767
|
properties: {
|
|
766
|
-
name: string;
|
|
767
768
|
label: string;
|
|
769
|
+
name: string;
|
|
768
770
|
description: string;
|
|
771
|
+
required: boolean;
|
|
769
772
|
rangeIncludes: string[];
|
|
770
773
|
domainIncludes: string[];
|
|
771
|
-
required: boolean;
|
|
772
774
|
isArray: boolean;
|
|
773
775
|
defaultValue?: unknown;
|
|
774
776
|
}[];
|
|
775
|
-
label: string;
|
|
776
|
-
namespace: string;
|
|
777
777
|
parentTypes: string[];
|
|
778
778
|
subtypes: string[];
|
|
779
779
|
description?: string | undefined;
|
|
@@ -786,20 +786,20 @@ declare const SemanticTypeSchema: z.ZodObject<{
|
|
|
786
786
|
'@id': z.ZodOptional<z.ZodString>;
|
|
787
787
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
788
788
|
}, {
|
|
789
|
+
label: string;
|
|
789
790
|
id: string;
|
|
790
791
|
name: string;
|
|
792
|
+
namespace: string;
|
|
791
793
|
properties: {
|
|
792
|
-
name: string;
|
|
793
794
|
label: string;
|
|
795
|
+
name: string;
|
|
794
796
|
description: string;
|
|
797
|
+
required: boolean;
|
|
795
798
|
rangeIncludes: string[];
|
|
796
799
|
domainIncludes: string[];
|
|
797
|
-
required: boolean;
|
|
798
800
|
isArray: boolean;
|
|
799
801
|
defaultValue?: unknown;
|
|
800
802
|
}[];
|
|
801
|
-
label: string;
|
|
802
|
-
namespace: string;
|
|
803
803
|
parentTypes: string[];
|
|
804
804
|
subtypes: string[];
|
|
805
805
|
description?: string | undefined;
|
|
@@ -837,16 +837,16 @@ declare const NamespaceSchema: z.ZodObject<{
|
|
|
837
837
|
}, "strip", z.ZodTypeAny, {
|
|
838
838
|
id: string;
|
|
839
839
|
name: string;
|
|
840
|
-
createdAt: Date;
|
|
841
840
|
types: string[];
|
|
841
|
+
createdAt: Date;
|
|
842
842
|
thingCount: number;
|
|
843
843
|
description?: string | undefined;
|
|
844
844
|
baseUrl?: string | undefined;
|
|
845
845
|
}, {
|
|
846
846
|
id: string;
|
|
847
847
|
name: string;
|
|
848
|
-
createdAt: Date;
|
|
849
848
|
types: string[];
|
|
849
|
+
createdAt: Date;
|
|
850
850
|
thingCount: number;
|
|
851
851
|
description?: string | undefined;
|
|
852
852
|
baseUrl?: string | undefined;
|
|
@@ -877,8 +877,8 @@ declare const TypeStatsSchema: z.ZodObject<{
|
|
|
877
877
|
lastUpdatedAt: z.ZodOptional<z.ZodDate>;
|
|
878
878
|
}, "strip", z.ZodTypeAny, {
|
|
879
879
|
type: string;
|
|
880
|
-
ns: string;
|
|
881
880
|
count: number;
|
|
881
|
+
ns: string;
|
|
882
882
|
activeCount: number;
|
|
883
883
|
createdToday: number;
|
|
884
884
|
updatedToday: number;
|
|
@@ -886,8 +886,8 @@ declare const TypeStatsSchema: z.ZodObject<{
|
|
|
886
886
|
lastUpdatedAt?: Date | undefined;
|
|
887
887
|
}, {
|
|
888
888
|
type: string;
|
|
889
|
-
ns: string;
|
|
890
889
|
count: number;
|
|
890
|
+
ns: string;
|
|
891
891
|
activeCount: number;
|
|
892
892
|
createdToday: number;
|
|
893
893
|
updatedToday: number;
|