@snaptrude/plugin-core 0.9.14 → 0.9.16
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 +28 -0
- package/api-manifest.json +527 -26
- package/dist/api/core/camera/index.d.ts +418 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +4 -4
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/layers.d.ts +377 -255
- package/dist/api/core/layers.d.ts.map +1 -1
- package/dist/api/core/proposals/index.d.ts +4 -3
- package/dist/api/core/proposals/index.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +12 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/core/storeys/layers.d.ts +408 -0
- package/dist/api/core/storeys/layers.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +3 -3
- package/dist/api/design/create/bulk-items.d.ts +44 -0
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +31 -3
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/selection/index.d.ts +2 -2
- package/dist/api/design/update/index.d.ts +73 -0
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/presentation/aiInspiration.d.ts +13 -13
- package/dist/api/presentation/camera.d.ts +265 -0
- package/dist/api/presentation/camera.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +14 -0
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +1 -1
- package/dist/api/presentation/views.d.ts +3 -1
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +1350 -0
- package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
- package/dist/index.cjs +3162 -2553
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3077 -2550
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.test.mjs +14 -3
- package/src/api/core/camera/index.ts +400 -1
- package/src/api/core/index.ts +4 -4
- package/src/api/core/layers.ts +380 -173
- package/src/api/core/proposals/index.ts +4 -3
- package/src/api/core/storeys/index.ts +14 -0
- package/src/api/core/storeys/layers.ts +339 -0
- package/src/api/design/create/bulk-items.ts +68 -0
- package/src/api/design/create/index.ts +30 -4
- package/src/api/design/update/index.ts +80 -1
- package/src/api/presentation/camera.ts +289 -0
- package/src/api/presentation/index.ts +14 -0
- package/src/api/presentation/views.ts +3 -1
- package/src/api/presentation/walkthroughs.ts +1201 -0
|
@@ -5,6 +5,7 @@ import { PluginGridStyleOptions } from "./grids";
|
|
|
5
5
|
import { PluginSpaceType, PluginMassType, PluginDepartmentId } from "../../entity/space";
|
|
6
6
|
import { PluginBuildableEnvelopePolygonVertex, PluginBuildableEnvelopeSetbackTier, PluginBuildableEnvelopeVerticalCap, PluginBuildableEnvelopeCreateResult } from "../../entity/buildableEnvelope";
|
|
7
7
|
import type { PluginCreateDoorItem, PluginCreateFloorItem, PluginCreateFurnitureItem, PluginCreateWallRunItem, PluginCreateWindowItem } from "./bulk-items";
|
|
8
|
+
import { PluginWallTopProfile } from "./bulk-items";
|
|
8
9
|
/**
|
|
9
10
|
* `design.create.*` — author new scene-committed BIM entities.
|
|
10
11
|
*
|
|
@@ -370,9 +371,15 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
370
371
|
* single undo entry. The storey must already exist
|
|
371
372
|
* (`core.storeys.create` first). Default: geometry-derived — a profile
|
|
372
373
|
* drawn at y = 0 lands on storey 1; the ACTIVE storey is NOT consulted.
|
|
374
|
+
* @param topProfiles - Optional top edge per curve of `profile` (same order):
|
|
375
|
+
* a {@linkcode PluginWallTopProfile} makes that wall raked / gabled; `null`
|
|
376
|
+
* or a missing entry keeps it flat at `height`. Straight curves only. Such
|
|
377
|
+
* walls are non-parametric (see {@linkcode PluginWallTopProfile}).
|
|
373
378
|
* @returns a {@linkcode ComponentHandle}`[]` (one per wall), in profile order
|
|
374
379
|
* @throws if the profile is empty, `wallType` names no wall type in the
|
|
375
|
-
* project, `storey` does not exist,
|
|
380
|
+
* project, `storey` does not exist, `topProfiles` has more entries than the
|
|
381
|
+
* profile has curves or names an arc curve, a top profile drops to the wall
|
|
382
|
+
* base at a mitred corner, or wall creation fails
|
|
376
383
|
*
|
|
377
384
|
* @examplePrompt Draw walls along this centerline
|
|
378
385
|
* @examplePrompt Create 3m high, 200mm thick walls from these points
|
|
@@ -381,6 +388,9 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
381
388
|
* @examplePrompt Add walls with mitred corners along the path
|
|
382
389
|
* @examplePrompt Draw brick walls with plaster along this outline
|
|
383
390
|
* @examplePrompt Build the perimeter in exposed concrete walls
|
|
391
|
+
* @examplePrompt Create a raked wall that slopes from 3m to 5m
|
|
392
|
+
* @examplePrompt Build a gable end wall with the ridge in the middle
|
|
393
|
+
* @examplePrompt Draw a wall with a sloped top edge
|
|
384
394
|
*
|
|
385
395
|
* # Example
|
|
386
396
|
* ```ts
|
|
@@ -396,20 +406,29 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
396
406
|
* const brickWalls = await snaptrude.design.create.walls(
|
|
397
407
|
* centerlines, 3, undefined, brick.label,
|
|
398
408
|
* )
|
|
409
|
+
* // …a raked wall (3m at the start, 5m at the end) on a single centerline:
|
|
410
|
+
* const run = await snaptrude.core.geom.create.profileFromCurves([
|
|
411
|
+
* await snaptrude.core.geom.create.line(await v.new(0, 0, 10), await v.new(8, 0, 10)),
|
|
412
|
+
* ])
|
|
413
|
+
* const [raked] = await snaptrude.design.create.walls(run, undefined, 0.2, undefined, undefined, [
|
|
414
|
+
* [{ along: 0, height: 3 }, { along: 1, height: 5 }],
|
|
415
|
+
* ])
|
|
399
416
|
* ```
|
|
400
417
|
*
|
|
401
418
|
* @performance For MORE THAN ONE run, call `design.create.wallRuns(items[])` — one
|
|
402
419
|
* host round-trip and ONE undo entry for every run in the batch. Looping this
|
|
403
420
|
* single-run creator is N round-trips and N undo entries.
|
|
404
421
|
*/
|
|
405
|
-
abstract walls(profile: ProfileHandle, height?: number, thickness?: number, wallType?: string, storey?: number): PluginApiReturn<ComponentHandle[]>;
|
|
422
|
+
abstract walls(profile: ProfileHandle, height?: number, thickness?: number, wallType?: string, storey?: number, topProfiles?: (PluginWallTopProfile | null)[]): PluginApiReturn<ComponentHandle[]>;
|
|
406
423
|
/**
|
|
407
424
|
* Create **many wall runs** in one undoable operation (bulk plural of
|
|
408
425
|
* {@linkcode walls}). Each item is one full run — a wall per curve in that
|
|
409
426
|
* item's profile chain, mitred at shared endpoints. Junctions resolve within a
|
|
410
427
|
* run, not between runs. Each item carries its own
|
|
411
428
|
* dimensions, `wallType` and `storey`, so a single call can build a whole
|
|
412
|
-
* floor plate or several storeys at once.
|
|
429
|
+
* floor plate or several storeys at once. Per-curve `topProfiles` make raked
|
|
430
|
+
* or gabled walls (see {@linkcode PluginWallTopProfile}). Validate-all-or-throw;
|
|
431
|
+
* one command.
|
|
413
432
|
*
|
|
414
433
|
* @param items - One {@linkcode PluginCreateWallRunItem} per run to create
|
|
415
434
|
* (≥1, ≤1000)
|
|
@@ -429,6 +448,7 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
429
448
|
* @examplePrompt Bulk create wall runs from these centerlines
|
|
430
449
|
* @examplePrompt Create the walls for both storeys in a single undo step
|
|
431
450
|
* @examplePrompt Turn these polylines into 200mm brick walls together
|
|
451
|
+
* @examplePrompt Import these raked walls with their top profiles in one go
|
|
432
452
|
*
|
|
433
453
|
* @performance Bulk creator — the whole batch is ONE host round-trip and ONE undo
|
|
434
454
|
* entry. Always prefer this over calling `design.create.walls` in a loop: build the
|
|
@@ -449,6 +469,9 @@ export declare abstract class PluginDesignCreateApi {
|
|
|
449
469
|
* const [groundWalls, upperWalls] = await snaptrude.design.create.wallRuns([
|
|
450
470
|
* { profile: ground, height: 3, thickness: 0.2 },
|
|
451
471
|
* { profile: upper, height: 3, storey: 2 },
|
|
472
|
+
* // one gable wall: 3m at both ends, 5m ridge in the middle
|
|
473
|
+
* { profile: upper, thickness: 0.2, storey: 3,
|
|
474
|
+
* topProfiles: [[{ along: 0, height: 3 }, { along: 0.5, height: 5 }, { along: 1, height: 3 }]] },
|
|
452
475
|
* ])
|
|
453
476
|
* console.log(groundWalls.length, "walls on the ground floor")
|
|
454
477
|
* ```
|
|
@@ -1444,6 +1467,7 @@ export type PluginDesignCreateBeamArgs = z.infer<typeof PluginDesignCreateBeamAr
|
|
|
1444
1467
|
* | `thickness` | `number`? | Wall thickness (default: `wallType`'s total layer thickness when given, else engine default) |
|
|
1445
1468
|
* | `wallType` | `string`? | Wall type name from `design.types.list("wall")` — layers/material/thickness defaults (default generic) |
|
|
1446
1469
|
* | `storey` | `number`? | Target storey (integer, must exist) — walls assigned + lifted to its base in the same undo entry (default: geometry-derived) |
|
|
1470
|
+
* | `topProfiles` | ({@linkcode PluginWallTopProfile} \| `null`)[]? | Top edge per curve (same order); `null`/missing = flat at `height`. Straight curves only |
|
|
1447
1471
|
*/
|
|
1448
1472
|
export declare const PluginDesignCreateWallsArgs: z.ZodObject<{
|
|
1449
1473
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
@@ -1451,6 +1475,10 @@ export declare const PluginDesignCreateWallsArgs: z.ZodObject<{
|
|
|
1451
1475
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
1452
1476
|
wallType: z.ZodOptional<z.ZodString>;
|
|
1453
1477
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
+
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1479
|
+
along: z.ZodNumber;
|
|
1480
|
+
height: z.ZodNumber;
|
|
1481
|
+
}, z.core.$strip>>>>>;
|
|
1454
1482
|
}, z.core.$strip>;
|
|
1455
1483
|
export type PluginDesignCreateWallsArgs = z.infer<typeof PluginDesignCreateWallsArgs>;
|
|
1456
1484
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,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GASG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;iBAKrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
@@ -38,11 +38,11 @@ import { PluginDesignChangeResult } from "../lock";
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const PluginSelectionEntityType: z.ZodEnum<{
|
|
40
40
|
terrain: "terrain";
|
|
41
|
+
cad: "cad";
|
|
41
42
|
floor: "floor";
|
|
42
43
|
wall: "wall";
|
|
43
44
|
ceiling: "ceiling";
|
|
44
45
|
image: "image";
|
|
45
|
-
cad: "cad";
|
|
46
46
|
pdf: "pdf";
|
|
47
47
|
door: "door";
|
|
48
48
|
window: "window";
|
|
@@ -79,11 +79,11 @@ export declare const PluginSelectionFilter: z.ZodObject<{
|
|
|
79
79
|
storeys: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
80
80
|
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
81
81
|
terrain: "terrain";
|
|
82
|
+
cad: "cad";
|
|
82
83
|
floor: "floor";
|
|
83
84
|
wall: "wall";
|
|
84
85
|
ceiling: "ceiling";
|
|
85
86
|
image: "image";
|
|
86
|
-
cad: "cad";
|
|
87
87
|
pdf: "pdf";
|
|
88
88
|
door: "door";
|
|
89
89
|
window: "window";
|
|
@@ -292,6 +292,35 @@ export declare const PluginDesignSetStoreyArgs: z.ZodObject<{
|
|
|
292
292
|
storey: z.ZodNumber;
|
|
293
293
|
}, z.core.$strip>;
|
|
294
294
|
export type PluginDesignSetStoreyArgs = z.infer<typeof PluginDesignSetStoreyArgs>;
|
|
295
|
+
/**
|
|
296
|
+
* Object types {@linkcode PluginDesignUpdateApi.setObjectType} can turn a mass
|
|
297
|
+
* into — the `design.query` `type` vocabulary.
|
|
298
|
+
*/
|
|
299
|
+
export declare const PluginObjectType: z.ZodEnum<{
|
|
300
|
+
floor: "floor";
|
|
301
|
+
wall: "wall";
|
|
302
|
+
slab: "slab";
|
|
303
|
+
roof: "roof";
|
|
304
|
+
}>;
|
|
305
|
+
export type PluginObjectType = z.infer<typeof PluginObjectType>;
|
|
306
|
+
/**
|
|
307
|
+
* Arguments for {@linkcode PluginDesignUpdateApi.setObjectType}.
|
|
308
|
+
*
|
|
309
|
+
* | Property | Type | Description |
|
|
310
|
+
* |---|---|---|
|
|
311
|
+
* | `components` | {@linkcode ComponentHandle}`[]` | The masses to convert (>= 1) |
|
|
312
|
+
* | `objectType` | {@linkcode PluginObjectType} | Target object type (`"wall"`, `"roof"`, `"slab"`, `"floor"`) |
|
|
313
|
+
*/
|
|
314
|
+
export declare const PluginDesignSetObjectTypeArgs: z.ZodObject<{
|
|
315
|
+
components: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
316
|
+
objectType: z.ZodEnum<{
|
|
317
|
+
floor: "floor";
|
|
318
|
+
wall: "wall";
|
|
319
|
+
slab: "slab";
|
|
320
|
+
roof: "roof";
|
|
321
|
+
}>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
export type PluginDesignSetObjectTypeArgs = z.infer<typeof PluginDesignSetObjectTypeArgs>;
|
|
295
324
|
/**
|
|
296
325
|
* The sparse GROUP-LEVEL patch accepted by {@linkcode PluginDesignUpdateApi.grid}.
|
|
297
326
|
* Only provided fields change. Wing- and line-level updates live on the grids
|
|
@@ -855,6 +884,50 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
855
884
|
* ```
|
|
856
885
|
*/
|
|
857
886
|
abstract setStorey(components: ComponentHandle[], storey: number): PluginApiReturn<PluginDesignChangeResult>;
|
|
887
|
+
/**
|
|
888
|
+
* Change the **object type** of one or more masses — turn a mass into a real
|
|
889
|
+
* wall, roof, slab or floor: the properties panel's Object Type dropdown,
|
|
890
|
+
* headless. The geometry is kept exactly as it is (a wedge stays a wedge;
|
|
891
|
+
* nothing is flattened to a default thickness), so a sloped mass built with
|
|
892
|
+
* `design.create.massFromBrep` becomes a sloped roof or a raked wall. The
|
|
893
|
+
* component keeps its handle, label and storey; it gains the target type's
|
|
894
|
+
* construction layers and properties, and the type's default material when
|
|
895
|
+
* the mass still wore the default. One undoable operation for the whole
|
|
896
|
+
* list; undo turns them back into masses.
|
|
897
|
+
*
|
|
898
|
+
* Instances convert as a family: passing one instance (or the source) of an
|
|
899
|
+
* instanced mass converts its source and every sibling; `affected` echoes
|
|
900
|
+
* every visible member (the hidden instancing template converts too but is
|
|
901
|
+
* not listed). A converted component cannot be converted again (same rule
|
|
902
|
+
* as the panel). A converted wall has no parametric centerline: it hosts
|
|
903
|
+
* doors and windows and exports, but neighbours do not re-mitre against it.
|
|
904
|
+
*
|
|
905
|
+
* Throws before anything changes (all-or-nothing) when a component is not a
|
|
906
|
+
* mass, is a plinth, is locked or in a locked bucket, already had its type
|
|
907
|
+
* changed, or when a handle is gone/forged.
|
|
908
|
+
*
|
|
909
|
+
* @param components - The masses to convert
|
|
910
|
+
* @param objectType - Target type: `"wall"`, `"roof"`, `"slab"` or `"floor"`
|
|
911
|
+
* (the `design.query.getEntityType` vocabulary)
|
|
912
|
+
* @returns the visible components converted — the same handles, plus any
|
|
913
|
+
* instance siblings pulled in by family expansion
|
|
914
|
+
*
|
|
915
|
+
* @examplePrompt Convert this mass into a wall
|
|
916
|
+
* @examplePrompt Turn the sloped mass into a roof
|
|
917
|
+
* @examplePrompt Make these masses real slabs
|
|
918
|
+
* @examplePrompt Change the object type of the selection to wall
|
|
919
|
+
* @examplePrompt Convert the wedge I built into a raked wall
|
|
920
|
+
* @examplePrompt Turn this mass into a floor
|
|
921
|
+
*
|
|
922
|
+
* # Example
|
|
923
|
+
* ```ts
|
|
924
|
+
* const brep = await snaptrude.core.geom.create.brepFromFaces(wedgeFaces)
|
|
925
|
+
* const wedge = await snaptrude.design.create.massFromBrep(brep, "Gable end")
|
|
926
|
+
* const { affected } = await snaptrude.design.update.setObjectType([wedge], "wall")
|
|
927
|
+
* console.log(await snaptrude.design.query.getEntityType(affected[0])) // "wall"
|
|
928
|
+
* ```
|
|
929
|
+
*/
|
|
930
|
+
abstract setObjectType(components: ComponentHandle[], objectType: PluginObjectType): PluginApiReturn<PluginDesignChangeResult>;
|
|
858
931
|
/**
|
|
859
932
|
* Update an existing parametric buildable envelope — regenerate the zoning
|
|
860
933
|
* volume from a revised site polygon, setbacks, vertical cap, or FAR and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAKL,uBAAuB,EACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACxF,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eA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,GAChB,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,aAAa,CAC3B,SAAS,EAAE,eAAe,EAC1B,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;aACa,SAAS,CACvB,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,aAAa,CAC3B,UAAU,EAAE,eAAe,EAAE,EAC7B,UAAU,EAAE,gBAAgB,GAC3B,eAAe,CAAC,wBAAwB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;aACa,iBAAiB,CAC/B,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,oCAAoC,EAAE,EACnD,UAAU,EAAE,IAAI,GAAG,GAAG,EACtB,QAAQ,EAAE,kCAAkC,EAAE,EAC9C,WAAW,EAAE,kCAAkC,EAC/C,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GACzB,eAAe,CAAC,mCAAmC,CAAC;CACxD"}
|
|
@@ -11,8 +11,8 @@ export declare const PluginAIInspirationRunMode: z.ZodEnum<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type PluginAIInspirationRunMode = z.infer<typeof PluginAIInspirationRunMode>;
|
|
13
13
|
export declare const PluginAIInspirationOutputKind: z.ZodEnum<{
|
|
14
|
-
image: "image";
|
|
15
14
|
source: "source";
|
|
15
|
+
image: "image";
|
|
16
16
|
video: "video";
|
|
17
17
|
}>;
|
|
18
18
|
export type PluginAIInspirationOutputKind = z.infer<typeof PluginAIInspirationOutputKind>;
|
|
@@ -33,8 +33,8 @@ export declare const PluginAIInspirationPromptStrategy: z.ZodEnum<{
|
|
|
33
33
|
}>;
|
|
34
34
|
export type PluginAIInspirationPromptStrategy = z.infer<typeof PluginAIInspirationPromptStrategy>;
|
|
35
35
|
export declare const PluginAIInspirationShapeKind: z.ZodEnum<{
|
|
36
|
-
image: "image";
|
|
37
36
|
view: "view";
|
|
37
|
+
image: "image";
|
|
38
38
|
video: "video";
|
|
39
39
|
}>;
|
|
40
40
|
export type PluginAIInspirationShapeKind = z.infer<typeof PluginAIInspirationShapeKind>;
|
|
@@ -241,16 +241,16 @@ export declare const PluginAIInspirationShapeRef: z.ZodObject<{
|
|
|
241
241
|
shapeId: z.ZodString;
|
|
242
242
|
assetId: z.ZodOptional<z.ZodString>;
|
|
243
243
|
kind: z.ZodEnum<{
|
|
244
|
-
image: "image";
|
|
245
244
|
view: "view";
|
|
245
|
+
image: "image";
|
|
246
246
|
video: "video";
|
|
247
247
|
}>;
|
|
248
248
|
name: z.ZodOptional<z.ZodString>;
|
|
249
249
|
width: z.ZodOptional<z.ZodNumber>;
|
|
250
250
|
height: z.ZodOptional<z.ZodNumber>;
|
|
251
251
|
outputType: z.ZodOptional<z.ZodEnum<{
|
|
252
|
-
image: "image";
|
|
253
252
|
source: "source";
|
|
253
|
+
image: "image";
|
|
254
254
|
video: "video";
|
|
255
255
|
}>>;
|
|
256
256
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -266,16 +266,16 @@ export declare const PluginAIInspirationListSourcesResult: z.ZodObject<{
|
|
|
266
266
|
shapeId: z.ZodString;
|
|
267
267
|
assetId: z.ZodOptional<z.ZodString>;
|
|
268
268
|
kind: z.ZodEnum<{
|
|
269
|
-
image: "image";
|
|
270
269
|
view: "view";
|
|
270
|
+
image: "image";
|
|
271
271
|
video: "video";
|
|
272
272
|
}>;
|
|
273
273
|
name: z.ZodOptional<z.ZodString>;
|
|
274
274
|
width: z.ZodOptional<z.ZodNumber>;
|
|
275
275
|
height: z.ZodOptional<z.ZodNumber>;
|
|
276
276
|
outputType: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
image: "image";
|
|
278
277
|
source: "source";
|
|
278
|
+
image: "image";
|
|
279
279
|
video: "video";
|
|
280
280
|
}>>;
|
|
281
281
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -288,16 +288,16 @@ export declare const PluginAIInspirationGetSelectionResult: z.ZodObject<{
|
|
|
288
288
|
shapeId: z.ZodString;
|
|
289
289
|
assetId: z.ZodOptional<z.ZodString>;
|
|
290
290
|
kind: z.ZodEnum<{
|
|
291
|
-
image: "image";
|
|
292
291
|
view: "view";
|
|
292
|
+
image: "image";
|
|
293
293
|
video: "video";
|
|
294
294
|
}>;
|
|
295
295
|
name: z.ZodOptional<z.ZodString>;
|
|
296
296
|
width: z.ZodOptional<z.ZodNumber>;
|
|
297
297
|
height: z.ZodOptional<z.ZodNumber>;
|
|
298
298
|
outputType: z.ZodOptional<z.ZodEnum<{
|
|
299
|
-
image: "image";
|
|
300
299
|
source: "source";
|
|
300
|
+
image: "image";
|
|
301
301
|
video: "video";
|
|
302
302
|
}>>;
|
|
303
303
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -867,8 +867,8 @@ export declare const PluginAIInspirationWorkflowNode: z.ZodObject<{
|
|
|
867
867
|
shapeId: z.ZodString;
|
|
868
868
|
assetId: z.ZodOptional<z.ZodString>;
|
|
869
869
|
kind: z.ZodEnum<{
|
|
870
|
-
image: "image";
|
|
871
870
|
source: "source";
|
|
871
|
+
image: "image";
|
|
872
872
|
video: "video";
|
|
873
873
|
}>;
|
|
874
874
|
state: z.ZodString;
|
|
@@ -950,8 +950,8 @@ export declare const PluginAIInspirationWorkflow: z.ZodObject<{
|
|
|
950
950
|
shapeId: z.ZodString;
|
|
951
951
|
assetId: z.ZodOptional<z.ZodString>;
|
|
952
952
|
kind: z.ZodEnum<{
|
|
953
|
-
image: "image";
|
|
954
953
|
source: "source";
|
|
954
|
+
image: "image";
|
|
955
955
|
video: "video";
|
|
956
956
|
}>;
|
|
957
957
|
state: z.ZodString;
|
|
@@ -1040,8 +1040,8 @@ export declare const PluginAIInspirationGetWorkflowForShapeResult: z.ZodObject<{
|
|
|
1040
1040
|
shapeId: z.ZodString;
|
|
1041
1041
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1042
1042
|
kind: z.ZodEnum<{
|
|
1043
|
-
image: "image";
|
|
1044
1043
|
source: "source";
|
|
1044
|
+
image: "image";
|
|
1045
1045
|
video: "video";
|
|
1046
1046
|
}>;
|
|
1047
1047
|
state: z.ZodString;
|
|
@@ -1119,8 +1119,8 @@ export declare const PluginAIInspirationGetWorkflowForShapeResult: z.ZodObject<{
|
|
|
1119
1119
|
shapeId: z.ZodString;
|
|
1120
1120
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1121
1121
|
kind: z.ZodEnum<{
|
|
1122
|
-
image: "image";
|
|
1123
1122
|
source: "source";
|
|
1123
|
+
image: "image";
|
|
1124
1124
|
video: "video";
|
|
1125
1125
|
}>;
|
|
1126
1126
|
state: z.ZodString;
|
|
@@ -1147,8 +1147,8 @@ export declare const PluginAIInspirationRerunPlanResult: z.ZodDiscriminatedUnion
|
|
|
1147
1147
|
shapeId: z.ZodString;
|
|
1148
1148
|
assetId: z.ZodOptional<z.ZodString>;
|
|
1149
1149
|
kind: z.ZodEnum<{
|
|
1150
|
-
image: "image";
|
|
1151
1150
|
source: "source";
|
|
1151
|
+
image: "image";
|
|
1152
1152
|
video: "video";
|
|
1153
1153
|
}>;
|
|
1154
1154
|
state: z.ZodString;
|