@snaptrude/plugin-core 0.9.16-networks-20261012.1 → 0.9.17
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/CHANGELOG.md +6 -0
- package/api-manifest.json +9711 -0
- package/dist/api/analysis/daylight.d.ts +5 -5
- package/dist/api/analysis/solar.d.ts +2 -2
- package/dist/api/core/camera/index.d.ts +0 -29
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +0 -13
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/create/bulk-items.d.ts +21 -40
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +97 -120
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +12 -13
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +24 -18
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +27 -797
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +0 -16
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +30 -30
- package/dist/api/design/selection/index.d.ts +10 -10
- package/dist/api/design/types/index.d.ts +24 -40
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +3 -40
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +8 -8
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/presentation/aiInspiration.d.ts +10 -10
- package/dist/api/presentation/annotate.d.ts +22 -38
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/export.d.ts +5 -23
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +21 -32
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +6 -106
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sections.d.ts +461 -0
- package/dist/api/presentation/sections.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +19 -175
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/views.d.ts +5 -103
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +6 -6
- package/dist/index.cjs +2434 -3619
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2421 -3501
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.mjs +0 -5
- package/src/api/core/camera/index.ts +0 -29
- package/src/api/core/zoom/index.ts +0 -13
- package/src/api/design/create/bulk-items.ts +16 -23
- package/src/api/design/create/index.ts +119 -129
- package/src/api/design/create/opening-fields.ts +12 -15
- package/src/api/design/doors/index.ts +42 -58
- package/src/api/design/family.ts +32 -662
- package/src/api/design/index.ts +4 -34
- package/src/api/design/types/index.ts +24 -31
- package/src/api/design/update/index.ts +3 -41
- package/src/api/design/windows/index.ts +22 -40
- package/src/api/presentation/annotate.ts +58 -90
- package/src/api/presentation/export.ts +6 -32
- package/src/api/presentation/index.ts +23 -39
- package/src/api/presentation/placedViews.ts +28 -119
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +20 -181
- package/src/api/presentation/views.ts +6 -46
- package/dist/api/design/bim.d.ts +0 -209
- package/dist/api/design/bim.d.ts.map +0 -1
- package/dist/api/design/catalog.d.ts +0 -320
- package/dist/api/design/catalog.d.ts.map +0 -1
- package/dist/api/design/networks.d.ts +0 -1703
- package/dist/api/design/networks.d.ts.map +0 -1
- package/dist/api/presentation/drawingContract.d.ts +0 -32
- package/dist/api/presentation/drawingContract.d.ts.map +0 -1
- package/dist/api/presentation/drawings.d.ts +0 -3523
- package/dist/api/presentation/drawings.d.ts.map +0 -1
- package/dist/api/presentation/viewPresets.d.ts +0 -222
- package/dist/api/presentation/viewPresets.d.ts.map +0 -1
- package/src/api/design/bim.ts +0 -121
- package/src/api/design/catalog.ts +0 -203
- package/src/api/design/networks.ts +0 -607
- package/src/api/presentation/drawingContract.ts +0 -70
- package/src/api/presentation/drawings.ts +0 -1179
- package/src/api/presentation/viewPresets.ts +0 -241
- package/test/drawingContract.test.mjs +0 -288
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import type { PluginApiReturn } from "../../types";
|
|
3
|
-
/** Exact saved family identity. A label or a selected Draw type is not an identity. */
|
|
4
|
-
export declare const PluginSavedFamilyReference: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
version: z.ZodNumber;
|
|
7
|
-
}, z.core.$strict>;
|
|
8
|
-
export type PluginSavedFamilyReference = z.infer<typeof PluginSavedFamilyReference>;
|
|
9
|
-
/** Public overrides: physical lengths use mm, angles use degrees. Omitted values retain defaults. */
|
|
10
|
-
export declare const PluginFamilyValues: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>;
|
|
11
|
-
export type PluginFamilyValues = z.infer<typeof PluginFamilyValues>;
|
|
12
|
-
/** Native construction uses a saved family or a project assembly token from the catalogue. */
|
|
13
|
-
export declare const PluginConstructionType: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
version: z.ZodNumber;
|
|
16
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
17
|
-
export type PluginConstructionType = z.infer<typeof PluginConstructionType>;
|
|
18
|
-
/** Family owns its layers/section. Geometry owns the footprint/axis; it is never a values override. */
|
|
19
|
-
export declare const PluginFamilyPlacement: z.ZodObject<{
|
|
20
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
-
id: z.ZodString;
|
|
22
|
-
version: z.ZodNumber;
|
|
23
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
24
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
25
|
-
}, z.core.$strict>;
|
|
26
|
-
export type PluginFamilyPlacement = z.infer<typeof PluginFamilyPlacement>;
|
|
27
|
-
/** Sparse native family edit. Omitted type keeps the component's exact saved reference. */
|
|
28
|
-
export declare const PluginFamilyUpdates: z.ZodObject<{
|
|
29
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
version: z.ZodNumber;
|
|
32
|
-
}, z.core.$strict>, z.ZodString]>>;
|
|
33
|
-
values: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>>;
|
|
34
|
-
}, z.core.$strict>;
|
|
35
|
-
export type PluginFamilyUpdates = z.infer<typeof PluginFamilyUpdates>;
|
|
36
|
-
export declare const PluginFamilyFloorOptions: z.ZodObject<{
|
|
37
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
38
|
-
id: z.ZodString;
|
|
39
|
-
version: z.ZodNumber;
|
|
40
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
41
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
42
|
-
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"vec3">, string>>>;
|
|
43
|
-
}, z.core.$strict>;
|
|
44
|
-
export type PluginFamilyFloorOptions = z.infer<typeof PluginFamilyFloorOptions>;
|
|
45
|
-
export declare const PluginFamilySlabOptions: z.ZodObject<{
|
|
46
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
version: z.ZodNumber;
|
|
49
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
50
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
51
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
up: "up";
|
|
53
|
-
down: "down";
|
|
54
|
-
}>>;
|
|
55
|
-
}, z.core.$strict>;
|
|
56
|
-
export type PluginFamilySlabOptions = z.infer<typeof PluginFamilySlabOptions>;
|
|
57
|
-
export declare const PluginFamilyCeilingOptions: z.ZodObject<{
|
|
58
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
|
-
id: z.ZodString;
|
|
60
|
-
version: z.ZodNumber;
|
|
61
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
62
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
63
|
-
heightFromFloor: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
}, z.core.$strict>;
|
|
65
|
-
export type PluginFamilyCeilingOptions = z.infer<typeof PluginFamilyCeilingOptions>;
|
|
66
|
-
export declare const PluginFamilyContourArgs: z.ZodObject<{
|
|
67
|
-
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"contour">, string>>;
|
|
68
|
-
options: z.ZodObject<{
|
|
69
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
70
|
-
id: z.ZodString;
|
|
71
|
-
version: z.ZodNumber;
|
|
72
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
73
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
74
|
-
}, z.core.$strict>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
export declare const PluginFamilyAxisArgs: z.ZodObject<{
|
|
77
|
-
axis: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"line">, string>>;
|
|
78
|
-
options: z.ZodObject<{
|
|
79
|
-
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
80
|
-
id: z.ZodString;
|
|
81
|
-
version: z.ZodNumber;
|
|
82
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
83
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
/** Inventory includes architectural recipes, ordinary PCs, and the existing placement libraries. */
|
|
87
|
-
export declare const PluginCatalogKind: z.ZodEnum<{
|
|
88
|
-
component: "component";
|
|
89
|
-
floor: "floor";
|
|
90
|
-
wall: "wall";
|
|
91
|
-
ceiling: "ceiling";
|
|
92
|
-
slab: "slab";
|
|
93
|
-
roof: "roof";
|
|
94
|
-
furniture: "furniture";
|
|
95
|
-
door: "door";
|
|
96
|
-
window: "window";
|
|
97
|
-
beam: "beam";
|
|
98
|
-
column: "column";
|
|
99
|
-
}>;
|
|
100
|
-
export type PluginCatalogKind = z.infer<typeof PluginCatalogKind>;
|
|
101
|
-
export declare const PluginCatalogReference: z.ZodUnion<readonly [z.ZodObject<{
|
|
102
|
-
id: z.ZodString;
|
|
103
|
-
version: z.ZodNumber;
|
|
104
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
105
|
-
export type PluginCatalogReference = z.infer<typeof PluginCatalogReference>;
|
|
106
|
-
/** Read-only capability record. Availability is checked again on every mutation. */
|
|
107
|
-
export declare const PluginCatalogEntry: z.ZodObject<{
|
|
108
|
-
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
109
|
-
id: z.ZodString;
|
|
110
|
-
version: z.ZodNumber;
|
|
111
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
112
|
-
label: z.ZodString;
|
|
113
|
-
kind: z.ZodEnum<{
|
|
114
|
-
component: "component";
|
|
115
|
-
floor: "floor";
|
|
116
|
-
wall: "wall";
|
|
117
|
-
ceiling: "ceiling";
|
|
118
|
-
slab: "slab";
|
|
119
|
-
roof: "roof";
|
|
120
|
-
furniture: "furniture";
|
|
121
|
-
door: "door";
|
|
122
|
-
window: "window";
|
|
123
|
-
beam: "beam";
|
|
124
|
-
column: "column";
|
|
125
|
-
}>;
|
|
126
|
-
source: z.ZodEnum<{
|
|
127
|
-
native: "native";
|
|
128
|
-
revit: "revit";
|
|
129
|
-
project: "project";
|
|
130
|
-
asset: "asset";
|
|
131
|
-
}>;
|
|
132
|
-
createMethods: z.ZodArray<z.ZodString>;
|
|
133
|
-
updateMethods: z.ZodArray<z.ZodString>;
|
|
134
|
-
requirements: z.ZodArray<z.ZodString>;
|
|
135
|
-
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
136
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
-
key: z.ZodString;
|
|
138
|
-
label: z.ZodString;
|
|
139
|
-
type: z.ZodEnum<{
|
|
140
|
-
boolean: "boolean";
|
|
141
|
-
enum: "enum";
|
|
142
|
-
length: "length";
|
|
143
|
-
text: "text";
|
|
144
|
-
integer: "integer";
|
|
145
|
-
}>;
|
|
146
|
-
unit: z.ZodOptional<z.ZodEnum<{
|
|
147
|
-
mm: "mm";
|
|
148
|
-
degrees: "degrees";
|
|
149
|
-
}>>;
|
|
150
|
-
default: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
151
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
-
drivesGeometry: z.ZodBoolean;
|
|
155
|
-
readOnly: z.ZodBoolean;
|
|
156
|
-
formulaDriven: z.ZodBoolean;
|
|
157
|
-
isInstance: z.ZodBoolean;
|
|
158
|
-
}, z.core.$strip>>>;
|
|
159
|
-
geometryParameters: z.ZodArray<z.ZodString>;
|
|
160
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
161
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
162
|
-
role: z.ZodEnum<{
|
|
163
|
-
pipe: "pipe";
|
|
164
|
-
duct: "duct";
|
|
165
|
-
wire: "wire";
|
|
166
|
-
cable: "cable";
|
|
167
|
-
conduit: "conduit";
|
|
168
|
-
cableDuct: "cableDuct";
|
|
169
|
-
cableTray: "cableTray";
|
|
170
|
-
connector: "connector";
|
|
171
|
-
equipment: "equipment";
|
|
172
|
-
}>;
|
|
173
|
-
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
174
|
-
ports: z.ZodArray<z.ZodObject<{
|
|
175
|
-
id: z.ZodString;
|
|
176
|
-
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
177
|
-
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
178
|
-
size: z.ZodString;
|
|
179
|
-
height: z.ZodOptional<z.ZodString>;
|
|
180
|
-
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
181
|
-
systems: z.ZodArray<z.ZodString>;
|
|
182
|
-
}, z.core.$strict>>;
|
|
183
|
-
}, z.core.$strict>>;
|
|
184
|
-
construction: z.ZodOptional<z.ZodObject<{
|
|
185
|
-
root: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
186
|
-
deps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
187
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
188
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
189
|
-
role: z.ZodEnum<{
|
|
190
|
-
pipe: "pipe";
|
|
191
|
-
duct: "duct";
|
|
192
|
-
wire: "wire";
|
|
193
|
-
cable: "cable";
|
|
194
|
-
conduit: "conduit";
|
|
195
|
-
cableDuct: "cableDuct";
|
|
196
|
-
cableTray: "cableTray";
|
|
197
|
-
connector: "connector";
|
|
198
|
-
equipment: "equipment";
|
|
199
|
-
}>;
|
|
200
|
-
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
201
|
-
ports: z.ZodArray<z.ZodObject<{
|
|
202
|
-
id: z.ZodString;
|
|
203
|
-
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
204
|
-
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
205
|
-
size: z.ZodString;
|
|
206
|
-
height: z.ZodOptional<z.ZodString>;
|
|
207
|
-
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
208
|
-
systems: z.ZodArray<z.ZodString>;
|
|
209
|
-
}, z.core.$strict>>;
|
|
210
|
-
}, z.core.$strict>>;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
export type PluginCatalogEntry = z.infer<typeof PluginCatalogEntry>;
|
|
214
|
-
export declare const PluginCatalogListArgs: z.ZodObject<{
|
|
215
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
216
|
-
component: "component";
|
|
217
|
-
floor: "floor";
|
|
218
|
-
wall: "wall";
|
|
219
|
-
ceiling: "ceiling";
|
|
220
|
-
slab: "slab";
|
|
221
|
-
roof: "roof";
|
|
222
|
-
furniture: "furniture";
|
|
223
|
-
door: "door";
|
|
224
|
-
window: "window";
|
|
225
|
-
beam: "beam";
|
|
226
|
-
column: "column";
|
|
227
|
-
}>>;
|
|
228
|
-
}, z.core.$strip>;
|
|
229
|
-
export declare const PluginCatalogGetArgs: z.ZodObject<{
|
|
230
|
-
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
231
|
-
id: z.ZodString;
|
|
232
|
-
version: z.ZodNumber;
|
|
233
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
234
|
-
}, z.core.$strip>;
|
|
235
|
-
/** Search metadata is extensible. A slash separates category path segments. */
|
|
236
|
-
export declare const PluginCatalogSearchArgs: z.ZodObject<{
|
|
237
|
-
query: z.ZodOptional<z.ZodString>;
|
|
238
|
-
category: z.ZodOptional<z.ZodString>;
|
|
239
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
240
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
241
|
-
}, z.core.$strict>;
|
|
242
|
-
export type PluginCatalogSearchArgs = z.infer<typeof PluginCatalogSearchArgs>;
|
|
243
|
-
/** Browse one hierarchy level without enumerating families or fetching recipe bodies. */
|
|
244
|
-
export declare const PluginCatalogListCategoriesArgs: z.ZodObject<{
|
|
245
|
-
parent: z.ZodOptional<z.ZodString>;
|
|
246
|
-
after: z.ZodOptional<z.ZodString>;
|
|
247
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
}, z.core.$strict>;
|
|
249
|
-
export type PluginCatalogListCategoriesArgs = z.infer<typeof PluginCatalogListCategoriesArgs>;
|
|
250
|
-
/** Metadata only: the category does not establish placement capabilities or recipe validity. */
|
|
251
|
-
export declare const PluginCatalogCategory: z.ZodObject<{
|
|
252
|
-
categoryPath: z.ZodArray<z.ZodString>;
|
|
253
|
-
hasChildren: z.ZodBoolean;
|
|
254
|
-
}, z.core.$strip>;
|
|
255
|
-
export type PluginCatalogCategory = z.infer<typeof PluginCatalogCategory>;
|
|
256
|
-
/** Metadata only. Read get(reference) to validate a selected family and inspect placement methods. */
|
|
257
|
-
export declare const PluginCatalogSummary: z.ZodObject<{
|
|
258
|
-
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
259
|
-
id: z.ZodString;
|
|
260
|
-
version: z.ZodNumber;
|
|
261
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
262
|
-
label: z.ZodString;
|
|
263
|
-
categoryPath: z.ZodArray<z.ZodString>;
|
|
264
|
-
description: z.ZodString;
|
|
265
|
-
source: z.ZodEnum<{
|
|
266
|
-
native: "native";
|
|
267
|
-
revit: "revit";
|
|
268
|
-
project: "project";
|
|
269
|
-
asset: "asset";
|
|
270
|
-
}>;
|
|
271
|
-
}, z.core.$strip>;
|
|
272
|
-
export type PluginCatalogSummary = z.infer<typeof PluginCatalogSummary>;
|
|
273
|
-
export declare const PluginCatalogSearchResult: z.ZodObject<{
|
|
274
|
-
items: z.ZodArray<z.ZodObject<{
|
|
275
|
-
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
276
|
-
id: z.ZodString;
|
|
277
|
-
version: z.ZodNumber;
|
|
278
|
-
}, z.core.$strict>, z.ZodString]>;
|
|
279
|
-
label: z.ZodString;
|
|
280
|
-
categoryPath: z.ZodArray<z.ZodString>;
|
|
281
|
-
description: z.ZodString;
|
|
282
|
-
source: z.ZodEnum<{
|
|
283
|
-
native: "native";
|
|
284
|
-
revit: "revit";
|
|
285
|
-
project: "project";
|
|
286
|
-
asset: "asset";
|
|
287
|
-
}>;
|
|
288
|
-
}, z.core.$strip>>;
|
|
289
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
290
|
-
}, z.core.$strip>;
|
|
291
|
-
export type PluginCatalogSearchResult = z.infer<typeof PluginCatalogSearchResult>;
|
|
292
|
-
/** Shared read surface over existing libraries. Does not publish, register, or place definitions. */
|
|
293
|
-
export declare abstract class PluginDesignCatalogApi {
|
|
294
|
-
/**
|
|
295
|
-
* Discover categories from accessible saved families and current project constructions.
|
|
296
|
-
* Omit parent for roots; pass a slash-separated returned path for its direct children.
|
|
297
|
-
* This metadata read does not fetch recipes, include unsaved drafts or legacy mesh inventories,
|
|
298
|
-
* or establish capabilities. Use search then get before placement. Names retain their case.
|
|
299
|
-
* @param args Parent path, exclusive after-name, and page limit (default 50, maximum 100).
|
|
300
|
-
* For another page at the same parent, pass the last item's final categoryPath segment as after.
|
|
301
|
-
* @returns Categories in Unicode code-point order, with descendant flags. Stop when a page has
|
|
302
|
-
* fewer than limit items. Live pagination is not a snapshot. Metadata-service failures reject.
|
|
303
|
-
*/
|
|
304
|
-
abstract listCategories(args?: PluginCatalogListCategoriesArgs): PluginApiReturn<PluginCatalogCategory[]>;
|
|
305
|
-
/**
|
|
306
|
-
* Search accessible saved-family and project-construction metadata without downloading recipes.
|
|
307
|
-
* Categories are data, not an SDK enum. Legacy mesh inventories and unsaved drafts are excluded.
|
|
308
|
-
* Inspect selected references with get before placement; a search match does not prove validity
|
|
309
|
-
* or supported behavior. Pagination reads live data, not a snapshot. Failures reject.
|
|
310
|
-
* @param args Text/category filters, page limit (default 20, maximum 50), and opaque cursor.
|
|
311
|
-
* @returns Compact metadata and continuation. Continue until nextCursor is null or a suitable
|
|
312
|
-
* family is found. Concurrent changes can leave an empty page with continuation.
|
|
313
|
-
*/
|
|
314
|
-
abstract search(args?: PluginCatalogSearchArgs): PluginApiReturn<PluginCatalogSearchResult>;
|
|
315
|
-
/** @param kind Optional element filter. @returns Accessible entries and their supported API paths. */
|
|
316
|
-
abstract list(kind?: PluginCatalogKind): PluginApiReturn<PluginCatalogEntry[]>;
|
|
317
|
-
/** @param reference Exact reference from search or list. @returns The current entry, or null when unavailable. */
|
|
318
|
-
abstract get(reference: PluginCatalogReference): PluginApiReturn<PluginCatalogEntry | null>;
|
|
319
|
-
}
|
|
320
|
-
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/api/design/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAOlD,uFAAuF;AACvF,eAAO,MAAM,0BAA0B;;;kBAK5B,CAAA;AACX,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,qGAAqG;AACrG,eAAO,MAAM,kBAAkB,yFAG9B,CAAA;AACD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;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