@snaptrude/plugin-core 0.9.16 → 0.9.18-voids-20261016.1
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.full.json +10406 -0
- package/api-manifest.json +827 -51
- 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 +29 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +7 -1
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +8 -2
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +13 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/bim.d.ts +209 -0
- package/dist/api/design/bim.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +2 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -1
- package/dist/api/design/catalog.d.ts +320 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +65 -25
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +272 -99
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +13 -12
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +1 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +18 -24
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +797 -27
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +16 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1703 -0
- package/dist/api/design/networks.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +42 -32
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/selection/index.d.ts +10 -10
- package/dist/api/design/types/index.d.ts +40 -24
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +43 -3
- 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 +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/drawingContract.d.ts +32 -0
- package/dist/api/presentation/drawingContract.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +3523 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +23 -5
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +41 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +106 -6
- 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 +175 -19
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/viewPresets.d.ts +222 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +103 -5
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +6 -6
- package/dist/errors/codes.d.ts +3 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +3749 -2328
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3616 -2328
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.mjs +5 -0
- package/src/api/core/camera/index.ts +29 -0
- package/src/api/core/geom/create/index.ts +7 -1
- package/src/api/core/geom/update/contour.ts +8 -2
- package/src/api/core/zoom/index.ts +13 -0
- package/src/api/design/bim.ts +121 -0
- package/src/api/design/boolean/index.ts +2 -0
- package/src/api/design/catalog.ts +203 -0
- package/src/api/design/create/bulk-items.ts +57 -17
- package/src/api/design/create/index.ts +288 -120
- package/src/api/design/create/opening-fields.ts +15 -12
- package/src/api/design/delete/index.ts +1 -0
- package/src/api/design/doors/index.ts +58 -42
- package/src/api/design/family.ts +662 -32
- package/src/api/design/index.ts +34 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/index.ts +12 -2
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +44 -3
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/presentation/annotate.ts +90 -58
- package/src/api/presentation/drawingContract.ts +70 -0
- package/src/api/presentation/drawings.ts +1179 -0
- package/src/api/presentation/export.ts +32 -6
- package/src/api/presentation/index.ts +48 -14
- package/src/api/presentation/placedViews.ts +119 -28
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +181 -20
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +46 -6
- package/src/errors/codes.ts +7 -0
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../types";
|
|
3
3
|
/**
|
|
4
|
-
* Presentation views — read the saved
|
|
4
|
+
* Presentation views — read the saved plan, 3D, and elevation views used to prepare presentations.
|
|
5
5
|
*
|
|
6
6
|
* A **view** is a saved camera/plan: a sheet-ready 2D plan or a saved 3D view.
|
|
7
7
|
* A plugin can list and read views, capture them to images, activate one (move
|
|
@@ -22,10 +22,10 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
22
22
|
* List the saved views in the active project.
|
|
23
23
|
*
|
|
24
24
|
* @returns A {@linkcode PluginPresentationViewsListResult} with a `views` array
|
|
25
|
-
* of
|
|
25
|
+
* of plan, 3D, and elevation views (empty when the project has none).
|
|
26
26
|
*
|
|
27
27
|
* @examplePrompt List all the saved views
|
|
28
|
-
* @examplePrompt What
|
|
28
|
+
* @examplePrompt What plan, 3D, and elevation views are in this project?
|
|
29
29
|
* @examplePrompt Which view is currently active?
|
|
30
30
|
* @examplePrompt Get the names of every presentation view
|
|
31
31
|
* @examplePrompt Show me the 3D views I can put on a sheet
|
|
@@ -107,6 +107,10 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
107
107
|
* Applies the view's camera, visibility, and storey state to the live scene.
|
|
108
108
|
* Paired with {@linkcode PluginPresentationViewsApi.getActive}.
|
|
109
109
|
*
|
|
110
|
+
* While Present is open this sets the Design frame a view saved in Present
|
|
111
|
+
* is taken from; it never moves the Present sheet canvas; use
|
|
112
|
+
* `presentation.camera` for that.
|
|
113
|
+
*
|
|
110
114
|
* @param viewId - The id of the view to activate.
|
|
111
115
|
* @returns The id of the now-active view.
|
|
112
116
|
* @throws If no view has the given id.
|
|
@@ -127,6 +131,15 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
127
131
|
*
|
|
128
132
|
* Creates a camera bookmark (not geometry) from where the camera is now.
|
|
129
133
|
*
|
|
134
|
+
* Works while Present mode is open. Present draws its drawings on the same
|
|
135
|
+
* 3D scene, so a view saved in Present takes its framing (camera, 2D or 3D
|
|
136
|
+
* mode, projection, storey, building) from the Design frame instead: the one
|
|
137
|
+
* the user had when Present opened, or one a plugin set since with
|
|
138
|
+
* `setActive`, `updateSettings({ viewMode })`, `core.camera`, `core.zoom`,
|
|
139
|
+
* `core.storeys.setActive`, `core.storeys.layers.setActive` or
|
|
140
|
+
* `core.buildings.setActive`. It never moves the Present sheet canvas; use
|
|
141
|
+
* `presentation.camera` for that.
|
|
142
|
+
*
|
|
130
143
|
* @param name - Name for the new view (a default is used when omitted).
|
|
131
144
|
* @param options - Optional `kind` (what kind of view to save, default
|
|
132
145
|
* `"view"`) and `storey` (save the view on a specific storey — the storey is
|
|
@@ -289,13 +302,31 @@ export declare abstract class PluginPresentationViewsApi {
|
|
|
289
302
|
abstract delete(viewId: string): PluginApiReturn<PluginPresentationViewsDeleteResult>;
|
|
290
303
|
}
|
|
291
304
|
/**
|
|
292
|
-
* The
|
|
305
|
+
* The rendering category of a saved view. Existing plan/3D values are preserved;
|
|
306
|
+
* elevations are identified independently of their orthographic 3D camera.
|
|
293
307
|
*/
|
|
294
308
|
export declare const PluginPresentationViewType: z.ZodEnum<{
|
|
309
|
+
elevation: "elevation";
|
|
295
310
|
"2d": "2d";
|
|
296
311
|
"3d": "3d";
|
|
297
312
|
}>;
|
|
298
313
|
export type PluginPresentationViewType = z.infer<typeof PluginPresentationViewType>;
|
|
314
|
+
/** The native semantic kind persisted for a saved view. */
|
|
315
|
+
export declare const PluginPresentationViewKind: z.ZodEnum<{
|
|
316
|
+
elevation: "elevation";
|
|
317
|
+
plan: "plan";
|
|
318
|
+
sitePlan: "sitePlan";
|
|
319
|
+
threeD: "threeD";
|
|
320
|
+
}>;
|
|
321
|
+
export type PluginPresentationViewKind = z.infer<typeof PluginPresentationViewKind>;
|
|
322
|
+
/** Cardinal direction for an elevation; non-elevation views return `null`. */
|
|
323
|
+
export declare const PluginPresentationElevationDirection: z.ZodEnum<{
|
|
324
|
+
north: "north";
|
|
325
|
+
south: "south";
|
|
326
|
+
east: "east";
|
|
327
|
+
west: "west";
|
|
328
|
+
}>;
|
|
329
|
+
export type PluginPresentationElevationDirection = z.infer<typeof PluginPresentationElevationDirection>;
|
|
299
330
|
/**
|
|
300
331
|
* A saved presentation view.
|
|
301
332
|
*
|
|
@@ -303,7 +334,9 @@ export type PluginPresentationViewType = z.infer<typeof PluginPresentationViewTy
|
|
|
303
334
|
* |---|---|---|
|
|
304
335
|
* | `id` | `string` | Unique view id |
|
|
305
336
|
* | `name` | `string` | Display name |
|
|
306
|
-
* | `type` | `"2d" \| "3d"` |
|
|
337
|
+
* | `type` | `"2d" \| "3d" \| "elevation"` | Rendering category; elevations are distinct from ordinary 3D views |
|
|
338
|
+
* | `kind` | {@linkcode PluginPresentationViewKind} | Native semantic view kind |
|
|
339
|
+
* | `direction` | {@linkcode PluginPresentationElevationDirection}` \| null` | Cardinal direction for elevations; otherwise `null` |
|
|
307
340
|
* | `isActive` | `boolean` | Whether this view is the currently active view |
|
|
308
341
|
* | `storey` | `number \| null` | The storey this view was saved on (`null` on older views saved without one) |
|
|
309
342
|
*/
|
|
@@ -311,9 +344,22 @@ export declare const PluginPresentationView: z.ZodObject<{
|
|
|
311
344
|
id: z.ZodString;
|
|
312
345
|
name: z.ZodString;
|
|
313
346
|
type: z.ZodEnum<{
|
|
347
|
+
elevation: "elevation";
|
|
314
348
|
"2d": "2d";
|
|
315
349
|
"3d": "3d";
|
|
316
350
|
}>;
|
|
351
|
+
kind: z.ZodEnum<{
|
|
352
|
+
elevation: "elevation";
|
|
353
|
+
plan: "plan";
|
|
354
|
+
sitePlan: "sitePlan";
|
|
355
|
+
threeD: "threeD";
|
|
356
|
+
}>;
|
|
357
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
358
|
+
north: "north";
|
|
359
|
+
south: "south";
|
|
360
|
+
east: "east";
|
|
361
|
+
west: "west";
|
|
362
|
+
}>>;
|
|
317
363
|
isActive: z.ZodBoolean;
|
|
318
364
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
319
365
|
}, z.core.$strip>;
|
|
@@ -330,9 +376,22 @@ export declare const PluginPresentationViewsListResult: z.ZodObject<{
|
|
|
330
376
|
id: z.ZodString;
|
|
331
377
|
name: z.ZodString;
|
|
332
378
|
type: z.ZodEnum<{
|
|
379
|
+
elevation: "elevation";
|
|
333
380
|
"2d": "2d";
|
|
334
381
|
"3d": "3d";
|
|
335
382
|
}>;
|
|
383
|
+
kind: z.ZodEnum<{
|
|
384
|
+
elevation: "elevation";
|
|
385
|
+
plan: "plan";
|
|
386
|
+
sitePlan: "sitePlan";
|
|
387
|
+
threeD: "threeD";
|
|
388
|
+
}>;
|
|
389
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
390
|
+
north: "north";
|
|
391
|
+
south: "south";
|
|
392
|
+
east: "east";
|
|
393
|
+
west: "west";
|
|
394
|
+
}>>;
|
|
336
395
|
isActive: z.ZodBoolean;
|
|
337
396
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
338
397
|
}, z.core.$strip>>;
|
|
@@ -358,9 +417,22 @@ export declare const PluginPresentationViewsGetResult: z.ZodNullable<z.ZodObject
|
|
|
358
417
|
id: z.ZodString;
|
|
359
418
|
name: z.ZodString;
|
|
360
419
|
type: z.ZodEnum<{
|
|
420
|
+
elevation: "elevation";
|
|
361
421
|
"2d": "2d";
|
|
362
422
|
"3d": "3d";
|
|
363
423
|
}>;
|
|
424
|
+
kind: z.ZodEnum<{
|
|
425
|
+
elevation: "elevation";
|
|
426
|
+
plan: "plan";
|
|
427
|
+
sitePlan: "sitePlan";
|
|
428
|
+
threeD: "threeD";
|
|
429
|
+
}>;
|
|
430
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
431
|
+
north: "north";
|
|
432
|
+
south: "south";
|
|
433
|
+
east: "east";
|
|
434
|
+
west: "west";
|
|
435
|
+
}>>;
|
|
364
436
|
isActive: z.ZodBoolean;
|
|
365
437
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
366
438
|
}, z.core.$strip>>;
|
|
@@ -439,9 +511,22 @@ export declare const PluginPresentationViewsCreateResult: z.ZodObject<{
|
|
|
439
511
|
id: z.ZodString;
|
|
440
512
|
name: z.ZodString;
|
|
441
513
|
type: z.ZodEnum<{
|
|
514
|
+
elevation: "elevation";
|
|
442
515
|
"2d": "2d";
|
|
443
516
|
"3d": "3d";
|
|
444
517
|
}>;
|
|
518
|
+
kind: z.ZodEnum<{
|
|
519
|
+
elevation: "elevation";
|
|
520
|
+
plan: "plan";
|
|
521
|
+
sitePlan: "sitePlan";
|
|
522
|
+
threeD: "threeD";
|
|
523
|
+
}>;
|
|
524
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
525
|
+
north: "north";
|
|
526
|
+
south: "south";
|
|
527
|
+
east: "east";
|
|
528
|
+
west: "west";
|
|
529
|
+
}>>;
|
|
445
530
|
isActive: z.ZodBoolean;
|
|
446
531
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
447
532
|
}, z.core.$strip>;
|
|
@@ -626,9 +711,22 @@ export declare const PluginPresentationViewsRenameResult: z.ZodObject<{
|
|
|
626
711
|
id: z.ZodString;
|
|
627
712
|
name: z.ZodString;
|
|
628
713
|
type: z.ZodEnum<{
|
|
714
|
+
elevation: "elevation";
|
|
629
715
|
"2d": "2d";
|
|
630
716
|
"3d": "3d";
|
|
631
717
|
}>;
|
|
718
|
+
kind: z.ZodEnum<{
|
|
719
|
+
elevation: "elevation";
|
|
720
|
+
plan: "plan";
|
|
721
|
+
sitePlan: "sitePlan";
|
|
722
|
+
threeD: "threeD";
|
|
723
|
+
}>;
|
|
724
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
725
|
+
north: "north";
|
|
726
|
+
south: "south";
|
|
727
|
+
east: "east";
|
|
728
|
+
west: "west";
|
|
729
|
+
}>>;
|
|
632
730
|
isActive: z.ZodBoolean;
|
|
633
731
|
storey: z.ZodNullable<z.ZodNumber>;
|
|
634
732
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;OAkBG;aACa,IAAI,IAAI,eAAe,CAAC,iCAAiC,CAAC;IAE1E;;;;;;;;;;;;;;;OAeG;aACa,GAAG,CACjB,MAAM,EAAE,MAAM,GACb,eAAe,CAAC,gCAAgC,CAAC;IAEpD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eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;iBA0BnD,CAAA;AACH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,yCAAyC,CACjD,CAAA;AAED,+FAA+F;AAC/F,eAAO,MAAM,2CAA2C;;iBAEtD,CAAA;AACF,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAC/D,OAAO,2CAA2C,CACnD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAA;AACzE,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA"}
|
|
@@ -1252,10 +1252,10 @@ export type PluginWalkthroughExportArgs = z.infer<typeof PluginWalkthroughExport
|
|
|
1252
1252
|
*/
|
|
1253
1253
|
export declare const PluginWalkthroughExportJobStatus: z.ZodEnum<{
|
|
1254
1254
|
failed: "failed";
|
|
1255
|
-
running: "running";
|
|
1256
1255
|
queued: "queued";
|
|
1257
|
-
completed: "completed";
|
|
1258
1256
|
cancelled: "cancelled";
|
|
1257
|
+
running: "running";
|
|
1258
|
+
completed: "completed";
|
|
1259
1259
|
}>;
|
|
1260
1260
|
export type PluginWalkthroughExportJobStatus = z.infer<typeof PluginWalkthroughExportJobStatus>;
|
|
1261
1261
|
/**
|
|
@@ -1297,10 +1297,10 @@ export declare const PluginWalkthroughExportJob: z.ZodObject<{
|
|
|
1297
1297
|
walkthroughId: z.ZodString;
|
|
1298
1298
|
status: z.ZodEnum<{
|
|
1299
1299
|
failed: "failed";
|
|
1300
|
-
running: "running";
|
|
1301
1300
|
queued: "queued";
|
|
1302
|
-
completed: "completed";
|
|
1303
1301
|
cancelled: "cancelled";
|
|
1302
|
+
running: "running";
|
|
1303
|
+
completed: "completed";
|
|
1304
1304
|
}>;
|
|
1305
1305
|
createdAt: z.ZodNumber;
|
|
1306
1306
|
updatedAt: z.ZodNumber;
|
|
@@ -1326,10 +1326,10 @@ export declare const PluginWalkthroughListJobsResult: z.ZodObject<{
|
|
|
1326
1326
|
walkthroughId: z.ZodString;
|
|
1327
1327
|
status: z.ZodEnum<{
|
|
1328
1328
|
failed: "failed";
|
|
1329
|
-
running: "running";
|
|
1330
1329
|
queued: "queued";
|
|
1331
|
-
completed: "completed";
|
|
1332
1330
|
cancelled: "cancelled";
|
|
1331
|
+
running: "running";
|
|
1332
|
+
completed: "completed";
|
|
1333
1333
|
}>;
|
|
1334
1334
|
createdAt: z.ZodNumber;
|
|
1335
1335
|
updatedAt: z.ZodNumber;
|
package/dist/errors/codes.d.ts
CHANGED
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* (`HANDLE_INVALID`) so error responses cannot be used as an existence /
|
|
8
8
|
* ownership oracle (PLUGIN_HANDLE_MIGRATION_HLD §6). `HANDLE_KIND_MISMATCH`
|
|
9
9
|
* stays distinct because the kind is information the caller already holds.
|
|
10
|
+
* `HANDLE_STALE` is the one deliberate exception: a handle the caller
|
|
11
|
+
* legitimately held whose entity was since retired (deleted or rebuilt).
|
|
10
12
|
*/
|
|
11
|
-
export declare const PLUGIN_ERROR_CODES: readonly ["VALIDATION", "INVALID_RPC_FORMAT", "METHOD_NOT_FOUND", "METHOD_NOT_PERMITTED", "HANDLE_INVALID", "HANDLE_KIND_MISMATCH", "RESOURCE_QUOTA_EXCEEDED", "RATE_LIMITED", "PRECONDITION_FAILED", "OPERATION_FAILED", "TIMEOUT", "CALL_TIMEOUT", "TRANSPORT_LOST", "PLUGIN_NOT_READY", "PLUGIN_TERMINATED", "RESULT_NOT_SERIALIZABLE", "RESULT_TOO_LARGE", "BATCH_PARTIAL", "STORY_UPDATE_FAILED", "STORY_HEIGHT_REJECTED", "NO_ACTIVE_STRUCTURE", "NO_ELIGIBLE_ELEMENTS", "PROPOSAL_SWITCH_BLOCKED", "INTERNAL", "UNKNOWN"];
|
|
13
|
+
export declare const PLUGIN_ERROR_CODES: readonly ["VALIDATION", "INVALID_RPC_FORMAT", "METHOD_NOT_FOUND", "METHOD_NOT_PERMITTED", "HANDLE_INVALID", "HANDLE_KIND_MISMATCH", "RESOURCE_QUOTA_EXCEEDED", "RATE_LIMITED", "PRECONDITION_FAILED", "OPERATION_FAILED", "TIMEOUT", "CALL_TIMEOUT", "TRANSPORT_LOST", "PLUGIN_NOT_READY", "PLUGIN_TERMINATED", "RESULT_NOT_SERIALIZABLE", "RESULT_TOO_LARGE", "BATCH_PARTIAL", "STORY_UPDATE_FAILED", "STORY_HEIGHT_REJECTED", "NO_ACTIVE_STRUCTURE", "NO_ELIGIBLE_ELEMENTS", "PROPOSAL_SWITCH_BLOCKED", "INTERNAL", "UNKNOWN", "HANDLE_STALE"];
|
|
12
14
|
export type PluginErrorCode = (typeof PLUGIN_ERROR_CODES)[number];
|
|
13
15
|
/**
|
|
14
16
|
* A known code, or a string outside the union — a plugin built against an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,khBA2BrB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjE,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,CAAA;AAEd;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,eAAe,EAAE,QAAQ,CA+DvD,CAAA;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE"}
|