@lace-cloud/proto 0.31.2 → 0.32.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/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +129 -122
- package/dist/index.d.ts +129 -122
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -5
package/dist/index.d.mts
CHANGED
|
@@ -285,6 +285,133 @@ type ViewportIntent = {
|
|
|
285
285
|
|
|
286
286
|
declare function convertDiagnostic(d: ProtoDiagnosticLike): Diagnostic;
|
|
287
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
290
|
+
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
291
|
+
* status' error details, and a command's failure document names it; a
|
|
292
|
+
* client branches on it, never on the message's text. A failure the API
|
|
293
|
+
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
294
|
+
* reason only where that code has one: every code that asks the developer
|
|
295
|
+
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
296
|
+
*
|
|
297
|
+
* The vocabulary is a file of its own, in the engine's package, generated
|
|
298
|
+
* into a Go package of its own (internal/kernel/reason/pb): every CLI package
|
|
299
|
+
* that refuses with a reason names it from there, the execution side's
|
|
300
|
+
* included, without linking the engine's wire. service.proto imports it.
|
|
301
|
+
*/
|
|
302
|
+
declare enum Reason {
|
|
303
|
+
REASON_UNSPECIFIED = 0,
|
|
304
|
+
/**
|
|
305
|
+
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
306
|
+
* module convert and module import: lacification cannot take the tree to
|
|
307
|
+
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
308
|
+
*/
|
|
309
|
+
REASON_NOT_LACE_FORM = 1,
|
|
310
|
+
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
311
|
+
REASON_HASH_MISMATCH = 2,
|
|
312
|
+
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
313
|
+
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
314
|
+
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
315
|
+
REASON_ROOT_LOCKED = 4,
|
|
316
|
+
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
317
|
+
REASON_UNSAVED = 5,
|
|
318
|
+
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
319
|
+
REASON_CONFLICT = 6,
|
|
320
|
+
/**
|
|
321
|
+
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
322
|
+
* (`BundleState.source_refused`).
|
|
323
|
+
* module convert and module import: the tree's tf does not parse, has a
|
|
324
|
+
* non-empty residual report, or its Bundle fails its own validation.
|
|
325
|
+
* module validate, stack apply / stack destroy / registry register: a
|
|
326
|
+
* source the command reads does not parse; apply, destroy and register
|
|
327
|
+
* check it before the certification.
|
|
328
|
+
*/
|
|
329
|
+
REASON_SOURCE_REFUSED = 7,
|
|
330
|
+
/**
|
|
331
|
+
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, module import and module fmt: the authoring
|
|
332
|
+
* root is not inside a git working tree.
|
|
333
|
+
* stack create --source: the directory is not inside a git working tree,
|
|
334
|
+
* so it has no place in a repository to bind the stack to.
|
|
335
|
+
*/
|
|
336
|
+
REASON_NOT_GIT_REPOSITORY = 8,
|
|
337
|
+
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
338
|
+
REASON_GENERATE_IN_PROGRESS = 9,
|
|
339
|
+
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
340
|
+
REASON_NO_ORGANIZATION = 10,
|
|
341
|
+
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
342
|
+
REASON_NO_TEAM = 11,
|
|
343
|
+
/**
|
|
344
|
+
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
345
|
+
* certification.
|
|
346
|
+
*/
|
|
347
|
+
REASON_NO_CERTIFICATION = 12,
|
|
348
|
+
/**
|
|
349
|
+
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
350
|
+
* does not certify the tree on disk — the tree changed since validate,
|
|
351
|
+
* another lace version wrote it, or its files are torn or mixed from two
|
|
352
|
+
* validates. Running validate again replaces it.
|
|
353
|
+
*/
|
|
354
|
+
REASON_STALE_CERTIFICATION = 13,
|
|
355
|
+
/**
|
|
356
|
+
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
357
|
+
* convert / module import / stack preview / stack apply / stack destroy:
|
|
358
|
+
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
359
|
+
* is not available. convert and module import run the pinned terraform
|
|
360
|
+
* through the validate each closes on, apply and destroy through their
|
|
361
|
+
* local plan.
|
|
362
|
+
*/
|
|
363
|
+
REASON_TOOL_MISSING = 14,
|
|
364
|
+
/**
|
|
365
|
+
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
366
|
+
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
367
|
+
* It is a refusal of the batch's content, carried on its GraphError.
|
|
368
|
+
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
369
|
+
* (FailedPrecondition) as such a wire is.
|
|
370
|
+
*/
|
|
371
|
+
REASON_CROSS_SCOPE = 15,
|
|
372
|
+
/**
|
|
373
|
+
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
374
|
+
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
375
|
+
* before any request; or the API refuses the ones sent with its code
|
|
376
|
+
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
377
|
+
*/
|
|
378
|
+
REASON_UNAUTHENTICATED = 16,
|
|
379
|
+
/**
|
|
380
|
+
* REASON_IMPORT_RESIDUAL - module import: a resource in the statefile has no import id the CLI
|
|
381
|
+
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
382
|
+
* writes the import without them. Nothing was written.
|
|
383
|
+
*/
|
|
384
|
+
REASON_IMPORT_RESIDUAL = 17,
|
|
385
|
+
/**
|
|
386
|
+
* REASON_STACK_HAS_STATE - module import: the stack's state already holds resources, and import
|
|
387
|
+
* adopts into an empty stack. Nothing was read or written.
|
|
388
|
+
*/
|
|
389
|
+
REASON_STACK_HAS_STATE = 18,
|
|
390
|
+
/**
|
|
391
|
+
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
392
|
+
* remote, whose URL is the repository a stack's source binding names.
|
|
393
|
+
*/
|
|
394
|
+
REASON_NO_ORIGIN_REMOTE = 19,
|
|
395
|
+
/**
|
|
396
|
+
* REASON_IMPORT_UNDECLARED - module import: the statefile holds resources the converted tree does not
|
|
397
|
+
* declare, named in the failure's `addresses`; an import block adopts
|
|
398
|
+
* only a resource the tree declares. Nothing was written.
|
|
399
|
+
*/
|
|
400
|
+
REASON_IMPORT_UNDECLARED = 20,
|
|
401
|
+
/**
|
|
402
|
+
* REASON_ALREADY_IMPORTED - module import: the tree already imports resources the statefile holds,
|
|
403
|
+
* named in the failure's `addresses`; terraform refuses two imports of
|
|
404
|
+
* one address. Nothing was written.
|
|
405
|
+
*/
|
|
406
|
+
REASON_ALREADY_IMPORTED = 21,
|
|
407
|
+
/**
|
|
408
|
+
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
409
|
+
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
410
|
+
*/
|
|
411
|
+
REASON_NO_LOCKFILE = 22,
|
|
412
|
+
UNRECOGNIZED = -1
|
|
413
|
+
}
|
|
414
|
+
|
|
288
415
|
interface Bundle {
|
|
289
416
|
/**
|
|
290
417
|
* The format of this encoding: "2.0", at which every Expression carries
|
|
@@ -531,127 +658,6 @@ declare enum NodeKind {
|
|
|
531
658
|
NODE_KIND_DATA = 3,
|
|
532
659
|
UNRECOGNIZED = -1
|
|
533
660
|
}
|
|
534
|
-
/**
|
|
535
|
-
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
536
|
-
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
537
|
-
* status' error details, and a command's failure document names it; a
|
|
538
|
-
* client branches on it, never on the message's text. A failure the API
|
|
539
|
-
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
540
|
-
* reason only where that code has one: every code that asks the developer
|
|
541
|
-
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
542
|
-
*/
|
|
543
|
-
declare enum Reason {
|
|
544
|
-
REASON_UNSPECIFIED = 0,
|
|
545
|
-
/**
|
|
546
|
-
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
547
|
-
* module convert and stack import: lacification cannot take the tree to
|
|
548
|
-
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
549
|
-
*/
|
|
550
|
-
REASON_NOT_LACE_FORM = 1,
|
|
551
|
-
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
552
|
-
REASON_HASH_MISMATCH = 2,
|
|
553
|
-
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
554
|
-
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
555
|
-
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
556
|
-
REASON_ROOT_LOCKED = 4,
|
|
557
|
-
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
558
|
-
REASON_UNSAVED = 5,
|
|
559
|
-
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
560
|
-
REASON_CONFLICT = 6,
|
|
561
|
-
/**
|
|
562
|
-
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
563
|
-
* (`BundleState.source_refused`).
|
|
564
|
-
* module convert and stack import: the tree's tf does not parse, has a
|
|
565
|
-
* non-empty residual report, or its Bundle fails its own validation.
|
|
566
|
-
* module validate, stack apply / stack destroy / registry register: a
|
|
567
|
-
* source the command reads does not parse; apply, destroy and register
|
|
568
|
-
* check it before the certification.
|
|
569
|
-
*/
|
|
570
|
-
REASON_SOURCE_REFUSED = 7,
|
|
571
|
-
/**
|
|
572
|
-
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
573
|
-
* root is not inside a git working tree.
|
|
574
|
-
* stack create --source: the directory is not inside a git working tree,
|
|
575
|
-
* so it has no place in a repository to bind the stack to.
|
|
576
|
-
*/
|
|
577
|
-
REASON_NOT_GIT_REPOSITORY = 8,
|
|
578
|
-
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
579
|
-
REASON_GENERATE_IN_PROGRESS = 9,
|
|
580
|
-
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
581
|
-
REASON_NO_ORGANIZATION = 10,
|
|
582
|
-
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
583
|
-
REASON_NO_TEAM = 11,
|
|
584
|
-
/**
|
|
585
|
-
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
586
|
-
* certification.
|
|
587
|
-
*/
|
|
588
|
-
REASON_NO_CERTIFICATION = 12,
|
|
589
|
-
/**
|
|
590
|
-
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
591
|
-
* does not certify the tree on disk — the tree changed since validate,
|
|
592
|
-
* another lace version wrote it, or its files are torn or mixed from two
|
|
593
|
-
* validates. Running validate again replaces it.
|
|
594
|
-
*/
|
|
595
|
-
REASON_STALE_CERTIFICATION = 13,
|
|
596
|
-
/**
|
|
597
|
-
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
598
|
-
* convert / stack import / stack preview / stack apply / stack destroy:
|
|
599
|
-
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
600
|
-
* is not available. convert and stack import run the pinned terraform
|
|
601
|
-
* through the validate each closes on, apply and destroy through their
|
|
602
|
-
* local plan.
|
|
603
|
-
*/
|
|
604
|
-
REASON_TOOL_MISSING = 14,
|
|
605
|
-
/**
|
|
606
|
-
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
607
|
-
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
608
|
-
* It is a refusal of the batch's content, carried on its GraphError.
|
|
609
|
-
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
610
|
-
* (FailedPrecondition) as such a wire is.
|
|
611
|
-
*/
|
|
612
|
-
REASON_CROSS_SCOPE = 15,
|
|
613
|
-
/**
|
|
614
|
-
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
615
|
-
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
616
|
-
* before any request; or the API refuses the ones sent with its code
|
|
617
|
-
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
618
|
-
*/
|
|
619
|
-
REASON_UNAUTHENTICATED = 16,
|
|
620
|
-
/**
|
|
621
|
-
* REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
|
|
622
|
-
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
623
|
-
* writes the import without them. Nothing was written.
|
|
624
|
-
*/
|
|
625
|
-
REASON_IMPORT_RESIDUAL = 17,
|
|
626
|
-
/**
|
|
627
|
-
* REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
|
|
628
|
-
* adopts into an empty stack. Nothing was read or written.
|
|
629
|
-
*/
|
|
630
|
-
REASON_STACK_HAS_STATE = 18,
|
|
631
|
-
/**
|
|
632
|
-
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
633
|
-
* remote, whose URL is the repository a stack's source binding names.
|
|
634
|
-
*/
|
|
635
|
-
REASON_NO_ORIGIN_REMOTE = 19,
|
|
636
|
-
/**
|
|
637
|
-
* REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
|
|
638
|
-
* declare, named in the failure's `addresses`; an import block adopts
|
|
639
|
-
* only a resource the tree declares. Nothing was written.
|
|
640
|
-
*/
|
|
641
|
-
REASON_IMPORT_UNDECLARED = 20,
|
|
642
|
-
/**
|
|
643
|
-
* REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
|
|
644
|
-
* named in the failure's `addresses`; terraform refuses two imports of
|
|
645
|
-
* one address. Nothing was written.
|
|
646
|
-
*/
|
|
647
|
-
REASON_ALREADY_IMPORTED = 21,
|
|
648
|
-
/**
|
|
649
|
-
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
650
|
-
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
651
|
-
*/
|
|
652
|
-
REASON_NO_LOCKFILE = 22,
|
|
653
|
-
UNRECOGNIZED = -1
|
|
654
|
-
}
|
|
655
661
|
/**
|
|
656
662
|
* ReasonDetail rides a refused RPC's status as its one error detail:
|
|
657
663
|
* `grpc-status-details-bin` over gRPC, `details[]` over Connect. A
|
|
@@ -1035,4 +1041,5 @@ declare class EngineProtocolMismatchError extends Error {
|
|
|
1035
1041
|
*/
|
|
1036
1042
|
declare function checkEngineProtocol(engineVersion: string, engineProtocol: string): void;
|
|
1037
1043
|
|
|
1038
|
-
export { BRIDGE_METHODS,
|
|
1044
|
+
export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, CanvasViewProto, EMPTY_BUNDLE, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineProtocolMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, apiFields, boxAt, callText, checkEngineProtocol, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, resolveInstance, resolveScopePath, resolveScopePositionsByDepth, splitPath, stepDown, visibleInputs };
|
|
1045
|
+
export type { BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView$1 as CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, NodeConfig, NodePin$1 as NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge$1 as RenderEdge, RenderGroup$1 as RenderGroup, RenderInput, RenderNode$1 as RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };
|
package/dist/index.d.ts
CHANGED
|
@@ -285,6 +285,133 @@ type ViewportIntent = {
|
|
|
285
285
|
|
|
286
286
|
declare function convertDiagnostic(d: ProtoDiagnosticLike): Diagnostic;
|
|
287
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
290
|
+
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
291
|
+
* status' error details, and a command's failure document names it; a
|
|
292
|
+
* client branches on it, never on the message's text. A failure the API
|
|
293
|
+
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
294
|
+
* reason only where that code has one: every code that asks the developer
|
|
295
|
+
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
296
|
+
*
|
|
297
|
+
* The vocabulary is a file of its own, in the engine's package, generated
|
|
298
|
+
* into a Go package of its own (internal/kernel/reason/pb): every CLI package
|
|
299
|
+
* that refuses with a reason names it from there, the execution side's
|
|
300
|
+
* included, without linking the engine's wire. service.proto imports it.
|
|
301
|
+
*/
|
|
302
|
+
declare enum Reason {
|
|
303
|
+
REASON_UNSPECIFIED = 0,
|
|
304
|
+
/**
|
|
305
|
+
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
306
|
+
* module convert and module import: lacification cannot take the tree to
|
|
307
|
+
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
308
|
+
*/
|
|
309
|
+
REASON_NOT_LACE_FORM = 1,
|
|
310
|
+
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
311
|
+
REASON_HASH_MISMATCH = 2,
|
|
312
|
+
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
313
|
+
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
314
|
+
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
315
|
+
REASON_ROOT_LOCKED = 4,
|
|
316
|
+
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
317
|
+
REASON_UNSAVED = 5,
|
|
318
|
+
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
319
|
+
REASON_CONFLICT = 6,
|
|
320
|
+
/**
|
|
321
|
+
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
322
|
+
* (`BundleState.source_refused`).
|
|
323
|
+
* module convert and module import: the tree's tf does not parse, has a
|
|
324
|
+
* non-empty residual report, or its Bundle fails its own validation.
|
|
325
|
+
* module validate, stack apply / stack destroy / registry register: a
|
|
326
|
+
* source the command reads does not parse; apply, destroy and register
|
|
327
|
+
* check it before the certification.
|
|
328
|
+
*/
|
|
329
|
+
REASON_SOURCE_REFUSED = 7,
|
|
330
|
+
/**
|
|
331
|
+
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, module import and module fmt: the authoring
|
|
332
|
+
* root is not inside a git working tree.
|
|
333
|
+
* stack create --source: the directory is not inside a git working tree,
|
|
334
|
+
* so it has no place in a repository to bind the stack to.
|
|
335
|
+
*/
|
|
336
|
+
REASON_NOT_GIT_REPOSITORY = 8,
|
|
337
|
+
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
338
|
+
REASON_GENERATE_IN_PROGRESS = 9,
|
|
339
|
+
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
340
|
+
REASON_NO_ORGANIZATION = 10,
|
|
341
|
+
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
342
|
+
REASON_NO_TEAM = 11,
|
|
343
|
+
/**
|
|
344
|
+
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
345
|
+
* certification.
|
|
346
|
+
*/
|
|
347
|
+
REASON_NO_CERTIFICATION = 12,
|
|
348
|
+
/**
|
|
349
|
+
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
350
|
+
* does not certify the tree on disk — the tree changed since validate,
|
|
351
|
+
* another lace version wrote it, or its files are torn or mixed from two
|
|
352
|
+
* validates. Running validate again replaces it.
|
|
353
|
+
*/
|
|
354
|
+
REASON_STALE_CERTIFICATION = 13,
|
|
355
|
+
/**
|
|
356
|
+
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
357
|
+
* convert / module import / stack preview / stack apply / stack destroy:
|
|
358
|
+
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
359
|
+
* is not available. convert and module import run the pinned terraform
|
|
360
|
+
* through the validate each closes on, apply and destroy through their
|
|
361
|
+
* local plan.
|
|
362
|
+
*/
|
|
363
|
+
REASON_TOOL_MISSING = 14,
|
|
364
|
+
/**
|
|
365
|
+
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
366
|
+
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
367
|
+
* It is a refusal of the batch's content, carried on its GraphError.
|
|
368
|
+
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
369
|
+
* (FailedPrecondition) as such a wire is.
|
|
370
|
+
*/
|
|
371
|
+
REASON_CROSS_SCOPE = 15,
|
|
372
|
+
/**
|
|
373
|
+
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
374
|
+
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
375
|
+
* before any request; or the API refuses the ones sent with its code
|
|
376
|
+
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
377
|
+
*/
|
|
378
|
+
REASON_UNAUTHENTICATED = 16,
|
|
379
|
+
/**
|
|
380
|
+
* REASON_IMPORT_RESIDUAL - module import: a resource in the statefile has no import id the CLI
|
|
381
|
+
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
382
|
+
* writes the import without them. Nothing was written.
|
|
383
|
+
*/
|
|
384
|
+
REASON_IMPORT_RESIDUAL = 17,
|
|
385
|
+
/**
|
|
386
|
+
* REASON_STACK_HAS_STATE - module import: the stack's state already holds resources, and import
|
|
387
|
+
* adopts into an empty stack. Nothing was read or written.
|
|
388
|
+
*/
|
|
389
|
+
REASON_STACK_HAS_STATE = 18,
|
|
390
|
+
/**
|
|
391
|
+
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
392
|
+
* remote, whose URL is the repository a stack's source binding names.
|
|
393
|
+
*/
|
|
394
|
+
REASON_NO_ORIGIN_REMOTE = 19,
|
|
395
|
+
/**
|
|
396
|
+
* REASON_IMPORT_UNDECLARED - module import: the statefile holds resources the converted tree does not
|
|
397
|
+
* declare, named in the failure's `addresses`; an import block adopts
|
|
398
|
+
* only a resource the tree declares. Nothing was written.
|
|
399
|
+
*/
|
|
400
|
+
REASON_IMPORT_UNDECLARED = 20,
|
|
401
|
+
/**
|
|
402
|
+
* REASON_ALREADY_IMPORTED - module import: the tree already imports resources the statefile holds,
|
|
403
|
+
* named in the failure's `addresses`; terraform refuses two imports of
|
|
404
|
+
* one address. Nothing was written.
|
|
405
|
+
*/
|
|
406
|
+
REASON_ALREADY_IMPORTED = 21,
|
|
407
|
+
/**
|
|
408
|
+
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
409
|
+
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
410
|
+
*/
|
|
411
|
+
REASON_NO_LOCKFILE = 22,
|
|
412
|
+
UNRECOGNIZED = -1
|
|
413
|
+
}
|
|
414
|
+
|
|
288
415
|
interface Bundle {
|
|
289
416
|
/**
|
|
290
417
|
* The format of this encoding: "2.0", at which every Expression carries
|
|
@@ -531,127 +658,6 @@ declare enum NodeKind {
|
|
|
531
658
|
NODE_KIND_DATA = 3,
|
|
532
659
|
UNRECOGNIZED = -1
|
|
533
660
|
}
|
|
534
|
-
/**
|
|
535
|
-
* Reason is the one vocabulary of what a failure asks of the developer.
|
|
536
|
-
* The engine attaches it to a refused RPC as a `ReasonDetail` in the
|
|
537
|
-
* status' error details, and a command's failure document names it; a
|
|
538
|
-
* client branches on it, never on the message's text. A failure the API
|
|
539
|
-
* decided carries the API's own code (`ReasonDetail.api_code`), and a
|
|
540
|
-
* reason only where that code has one: every code that asks the developer
|
|
541
|
-
* to sign in again is `REASON_UNAUTHENTICATED`.
|
|
542
|
-
*/
|
|
543
|
-
declare enum Reason {
|
|
544
|
-
REASON_UNSPECIFIED = 0,
|
|
545
|
-
/**
|
|
546
|
-
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
547
|
-
* module convert and stack import: lacification cannot take the tree to
|
|
548
|
-
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
549
|
-
*/
|
|
550
|
-
REASON_NOT_LACE_FORM = 1,
|
|
551
|
-
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
552
|
-
REASON_HASH_MISMATCH = 2,
|
|
553
|
-
/** REASON_REGISTRY_UNAVAILABLE - Placement: the registry could not be reached or answered with no verdict. */
|
|
554
|
-
REASON_REGISTRY_UNAVAILABLE = 3,
|
|
555
|
-
/** REASON_ROOT_LOCKED - SessionOpen: the root's canvas is open in another window. */
|
|
556
|
-
REASON_ROOT_LOCKED = 4,
|
|
557
|
-
/** REASON_UNSAVED - Generate: the session has unsaved edits; save first. */
|
|
558
|
-
REASON_UNSAVED = 5,
|
|
559
|
-
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
560
|
-
REASON_CONFLICT = 6,
|
|
561
|
-
/**
|
|
562
|
-
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
563
|
-
* (`BundleState.source_refused`).
|
|
564
|
-
* module convert and stack import: the tree's tf does not parse, has a
|
|
565
|
-
* non-empty residual report, or its Bundle fails its own validation.
|
|
566
|
-
* module validate, stack apply / stack destroy / registry register: a
|
|
567
|
-
* source the command reads does not parse; apply, destroy and register
|
|
568
|
-
* check it before the certification.
|
|
569
|
-
*/
|
|
570
|
-
REASON_SOURCE_REFUSED = 7,
|
|
571
|
-
/**
|
|
572
|
-
* REASON_NOT_GIT_REPOSITORY - Generate, module convert, stack import and module fmt: the authoring
|
|
573
|
-
* root is not inside a git working tree.
|
|
574
|
-
* stack create --source: the directory is not inside a git working tree,
|
|
575
|
-
* so it has no place in a repository to bind the stack to.
|
|
576
|
-
*/
|
|
577
|
-
REASON_NOT_GIT_REPOSITORY = 8,
|
|
578
|
-
/** REASON_GENERATE_IN_PROGRESS - Generate: a Generate is already running on the session. */
|
|
579
|
-
REASON_GENERATE_IN_PROGRESS = 9,
|
|
580
|
-
/** REASON_NO_ORGANIZATION - A scoped command: no organization is selected. */
|
|
581
|
-
REASON_NO_ORGANIZATION = 10,
|
|
582
|
-
/** REASON_NO_TEAM - A team-scoped command: no team is selected in the organization. */
|
|
583
|
-
REASON_NO_TEAM = 11,
|
|
584
|
-
/**
|
|
585
|
-
* REASON_NO_CERTIFICATION - stack apply / stack destroy / registry register: the root has no
|
|
586
|
-
* certification.
|
|
587
|
-
*/
|
|
588
|
-
REASON_NO_CERTIFICATION = 12,
|
|
589
|
-
/**
|
|
590
|
-
* REASON_STALE_CERTIFICATION - stack apply / stack destroy / registry register: the certification
|
|
591
|
-
* does not certify the tree on disk — the tree changed since validate,
|
|
592
|
-
* another lace version wrote it, or its files are torn or mixed from two
|
|
593
|
-
* validates. Running validate again replaces it.
|
|
594
|
-
*/
|
|
595
|
-
REASON_STALE_CERTIFICATION = 13,
|
|
596
|
-
/**
|
|
597
|
-
* REASON_TOOL_MISSING - module scan / module docs / module fmt / module validate / module
|
|
598
|
-
* convert / stack import / stack preview / stack apply / stack destroy:
|
|
599
|
-
* the tool the command runs (tfsec, terraform-docs, the pinned terraform)
|
|
600
|
-
* is not available. convert and stack import run the pinned terraform
|
|
601
|
-
* through the validate each closes on, apply and destroy through their
|
|
602
|
-
* local plan.
|
|
603
|
-
*/
|
|
604
|
-
REASON_TOOL_MISSING = 14,
|
|
605
|
-
/**
|
|
606
|
-
* REASON_CROSS_SCOPE - ApplyAction: a wire whose source and target are owned by different
|
|
607
|
-
* modules crosses a group's boundary, which no single-scope edit makes.
|
|
608
|
-
* It is a refusal of the batch's content, carried on its GraphError.
|
|
609
|
-
* ReadWiringCandidates: a read whose two scopes differ, refused
|
|
610
|
-
* (FailedPrecondition) as such a wire is.
|
|
611
|
-
*/
|
|
612
|
-
REASON_CROSS_SCOPE = 15,
|
|
613
|
-
/**
|
|
614
|
-
* REASON_UNAUTHENTICATED - The developer must sign in: a command or a placement that needs
|
|
615
|
-
* credentials finds none (no `lace login`, no LACE_TOKEN), decided
|
|
616
|
-
* before any request; or the API refuses the ones sent with its code
|
|
617
|
-
* `unauthenticated`, which `ReasonDetail.api_code` then names.
|
|
618
|
-
*/
|
|
619
|
-
REASON_UNAUTHENTICATED = 16,
|
|
620
|
-
/**
|
|
621
|
-
* REASON_IMPORT_RESIDUAL - stack import: a resource in the statefile has no import id the CLI
|
|
622
|
-
* derives. The failure names each in `importResiduals`; --allow-partial
|
|
623
|
-
* writes the import without them. Nothing was written.
|
|
624
|
-
*/
|
|
625
|
-
REASON_IMPORT_RESIDUAL = 17,
|
|
626
|
-
/**
|
|
627
|
-
* REASON_STACK_HAS_STATE - stack import: the stack's state already holds resources, and import
|
|
628
|
-
* adopts into an empty stack. Nothing was read or written.
|
|
629
|
-
*/
|
|
630
|
-
REASON_STACK_HAS_STATE = 18,
|
|
631
|
-
/**
|
|
632
|
-
* REASON_NO_ORIGIN_REMOTE - stack create --source: the directory's repository has no `origin`
|
|
633
|
-
* remote, whose URL is the repository a stack's source binding names.
|
|
634
|
-
*/
|
|
635
|
-
REASON_NO_ORIGIN_REMOTE = 19,
|
|
636
|
-
/**
|
|
637
|
-
* REASON_IMPORT_UNDECLARED - stack import: the statefile holds resources the converted tree does not
|
|
638
|
-
* declare, named in the failure's `addresses`; an import block adopts
|
|
639
|
-
* only a resource the tree declares. Nothing was written.
|
|
640
|
-
*/
|
|
641
|
-
REASON_IMPORT_UNDECLARED = 20,
|
|
642
|
-
/**
|
|
643
|
-
* REASON_ALREADY_IMPORTED - stack import: the tree already imports resources the statefile holds,
|
|
644
|
-
* named in the failure's `addresses`; terraform refuses two imports of
|
|
645
|
-
* one address. Nothing was written.
|
|
646
|
-
*/
|
|
647
|
-
REASON_ALREADY_IMPORTED = 21,
|
|
648
|
-
/**
|
|
649
|
-
* REASON_NO_LOCKFILE - stack apply / stack destroy / stack preview: the root keeps no
|
|
650
|
-
* `.terraform.lock.hcl`; `lace module lock` writes it.
|
|
651
|
-
*/
|
|
652
|
-
REASON_NO_LOCKFILE = 22,
|
|
653
|
-
UNRECOGNIZED = -1
|
|
654
|
-
}
|
|
655
661
|
/**
|
|
656
662
|
* ReasonDetail rides a refused RPC's status as its one error detail:
|
|
657
663
|
* `grpc-status-details-bin` over gRPC, `details[]` over Connect. A
|
|
@@ -1035,4 +1041,5 @@ declare class EngineProtocolMismatchError extends Error {
|
|
|
1035
1041
|
*/
|
|
1036
1042
|
declare function checkEngineProtocol(engineVersion: string, engineProtocol: string): void;
|
|
1037
1043
|
|
|
1038
|
-
export { BRIDGE_METHODS,
|
|
1044
|
+
export { BRIDGE_METHODS, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, CanvasViewProto, EMPTY_BUNDLE, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, EngineProtocolMismatchError, GROUP_HEADER_HEIGHT, GROUP_PADDING, HOST_ONLY_METHODS, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, apiFields, boxAt, callText, checkEngineProtocol, collapsedGroupSize, convertDiagnostic, deriveNodeConfig, deriveSettingsConfig, drawnAt, drawnRect, extentOf, frameOf, freeSlot, groupBoxSize, groupFootprint, groupInputPinY, groupPinY, groupPins, groupReach, inputPinY, instanceAddress, joinPath, keepOrder, layoutByDepth, localIn, nodeIdForAddress, nodeIdForDiagnostic, nodeRows, nodeSize, originAt, parseModuleKey, projectCanvasView, reachRect, resolveInstance, resolveScopePath, resolveScopePositionsByDepth, splitPath, stepDown, visibleInputs };
|
|
1045
|
+
export type { BlockConfig, BridgeMethod, BridgeRequest, BridgeResponse, CanvasArrangement, CanvasView$1 as CanvasView, Conflict, DeepPartial$1 as DeepPartial, Diagnostic, EngineMethod, EngineStreamMethod, HostOnlyMethod, InstanceAddress, InstanceChild, KeepKey, LayoutEdge, LayoutItem, MessageBridge, NodeConfig, NodePin$1 as NodePin, ParsedModuleKey, ProjectionMeta, ProtoDiagnosticLike, Rect, RenderEdge$1 as RenderEdge, RenderGroup$1 as RenderGroup, RenderInput, RenderNode$1 as RenderNode, RenderOutput, ResourceConfig, ScopedInstance, SettingsConfig, Size, ViewportIntent, XY };
|