@lace-cloud/proto 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -43,10 +43,12 @@ interface InputDef$1 {
43
43
  required: boolean;
44
44
  description: string;
45
45
  default_value: any | undefined;
46
- validation: ValidationBlock$1 | undefined;
46
+ validation: ValidationBlock$1[];
47
47
  sensitive: boolean;
48
48
  /** unset = default (true); explicit false is meaningful */
49
49
  nullable?: boolean | undefined;
50
+ /** unset = default (false); explicit true is meaningful */
51
+ ephemeral?: boolean | undefined;
50
52
  }
51
53
  declare const InputDef$1: MessageFns$1<InputDef$1>;
52
54
  interface ValidationBlock$1 {
@@ -59,6 +61,7 @@ interface OutputDef$1 {
59
61
  type: string;
60
62
  description: string;
61
63
  sensitive: boolean;
64
+ depends_on: string[];
62
65
  }
63
66
  declare const OutputDef$1: MessageFns$1<OutputDef$1>;
64
67
  interface Source {
@@ -81,6 +84,10 @@ interface Use {
81
84
  [key: string]: Binding;
82
85
  };
83
86
  depends_on: string[];
87
+ /** count meta-argument */
88
+ count: Binding | undefined;
89
+ /** for_each meta-argument */
90
+ for_each: Binding | undefined;
84
91
  }
85
92
  declare const Use: MessageFns$1<Use>;
86
93
  interface Resource {
@@ -173,7 +180,7 @@ interface ProviderConfig {
173
180
  name: string;
174
181
  alias: string;
175
182
  config: {
176
- [key: string]: any | undefined;
183
+ [key: string]: Binding;
177
184
  };
178
185
  /** nested config blocks (default_tags, assume_role, …) */
179
186
  blocks: Block[];
@@ -461,6 +468,10 @@ interface NodeConfig$1 {
461
468
  sibling_ids: string[];
462
469
  depends_on: string[];
463
470
  available_variables: VariableRef[];
471
+ /** A module call's `providers = {}` map (child-local name → root ref). */
472
+ providers: {
473
+ [key: string]: string;
474
+ };
464
475
  }
465
476
  declare const NodeConfig$1: MessageFns<NodeConfig$1>;
466
477
  interface VariableRef {
@@ -510,6 +521,13 @@ interface ProviderReqView {
510
521
  name: string;
511
522
  source: string;
512
523
  version: string;
524
+ /**
525
+ * Provider references the module declares it accepts from its caller
526
+ * (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
527
+ * `name.alias` reference, re-emitted unquoted; carried so the panel neither
528
+ * drops nor corrupts the construct.
529
+ */
530
+ configuration_aliases: string[];
513
531
  }
514
532
  declare const ProviderReqView: MessageFns<ProviderReqView>;
515
533
  interface BackendView {
@@ -523,8 +541,16 @@ interface ProviderView {
523
541
  name: string;
524
542
  alias: string;
525
543
  config: {
526
- [key: string]: any | undefined;
544
+ [key: string]: string;
527
545
  };
546
+ /**
547
+ * Nested config blocks (default_tags, assume_role, …). Full-fidelity,
548
+ * read-only echo: the panel renders and round-trips these verbatim but does
549
+ * not structurally edit them, deliberately mixing tiers with the flattened,
550
+ * editable `config` map above (see ProvidersPanel). Reuses state.proto's
551
+ * recursive Block so no HCL is re-serialized on the wire.
552
+ */
553
+ blocks: Block[];
528
554
  }
529
555
  declare const ProviderView: MessageFns<ProviderView>;
530
556
  interface LocalView {
@@ -550,7 +576,12 @@ interface InputDef {
550
576
  required: boolean;
551
577
  description: string;
552
578
  default_value: any | undefined;
553
- validation: ValidationBlock | undefined;
579
+ validation: ValidationBlock[];
580
+ /** unset = default (false); explicit true is meaningful */
581
+ ephemeral?: boolean | undefined;
582
+ /** unset = default (true); explicit false is meaningful */
583
+ nullable?: boolean | undefined;
584
+ sensitive: boolean;
554
585
  }
555
586
  declare const InputDef: MessageFns<InputDef>;
556
587
  interface ValidationBlock {
@@ -563,6 +594,7 @@ interface OutputDef {
563
594
  type: string;
564
595
  description: string;
565
596
  sensitive: boolean;
597
+ depends_on: string[];
566
598
  }
567
599
  declare const OutputDef: MessageFns<OutputDef>;
568
600
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -645,6 +677,7 @@ type ProtoNodeConfigLike = {
645
677
  outputs: RenderOutput$1[];
646
678
  sibling_ids: string[];
647
679
  depends_on: string[];
680
+ providers: Record<string, string>;
648
681
  available_variables: VariableRef[];
649
682
  };
650
683
  type ProtoEdgeConfigLike = {
@@ -659,16 +692,17 @@ type ProtoInputDefLike = {
659
692
  required: boolean;
660
693
  description: string;
661
694
  default_value?: unknown;
662
- validation?: {
663
- condition: string;
664
- error_message: string;
665
- } | ValidationBlock;
695
+ validation?: ValidationBlock[];
696
+ ephemeral?: boolean;
697
+ nullable?: boolean;
698
+ sensitive?: boolean;
666
699
  };
667
700
  type ProtoOutputDefLike = {
668
701
  name: string;
669
702
  type: string;
670
703
  description: string;
671
704
  sensitive: boolean;
705
+ depends_on?: string[];
672
706
  };
673
707
  type ProtoOutputExportEntryLike = {
674
708
  name: string;
@@ -763,6 +797,7 @@ type NodeConfig = {
763
797
  outputs: RenderOutput[];
764
798
  sibling_ids: string[];
765
799
  depends_on: string[];
800
+ providers: Record<string, string>;
766
801
  available_variables: Array<{
767
802
  name: string;
768
803
  type: string;
@@ -781,12 +816,14 @@ type SettingsConfig = {
781
816
  name: string;
782
817
  source: string;
783
818
  version: string;
819
+ configuration_aliases?: string[];
784
820
  }>;
785
821
  };
786
822
  providers: Array<{
787
823
  name: string;
788
824
  alias: string;
789
- config: Record<string, unknown>;
825
+ config: Record<string, string>;
826
+ blocks?: Block[];
790
827
  }>;
791
828
  locals: Array<{
792
829
  name: string;
@@ -800,6 +837,13 @@ type SettingsConfig = {
800
837
  required: boolean;
801
838
  description?: string;
802
839
  default_value?: unknown;
840
+ validation?: Array<{
841
+ condition: string;
842
+ error_message: string;
843
+ }>;
844
+ ephemeral?: boolean;
845
+ sensitive?: boolean;
846
+ nullable?: boolean;
803
847
  }>;
804
848
  exports: Array<{
805
849
  name: string;
@@ -811,6 +855,7 @@ type SettingsConfig = {
811
855
  type: string;
812
856
  description?: string;
813
857
  sensitive?: boolean;
858
+ depends_on?: string[];
814
859
  }>;
815
860
  };
816
861
  type RenderError = {
package/dist/index.d.ts CHANGED
@@ -43,10 +43,12 @@ interface InputDef$1 {
43
43
  required: boolean;
44
44
  description: string;
45
45
  default_value: any | undefined;
46
- validation: ValidationBlock$1 | undefined;
46
+ validation: ValidationBlock$1[];
47
47
  sensitive: boolean;
48
48
  /** unset = default (true); explicit false is meaningful */
49
49
  nullable?: boolean | undefined;
50
+ /** unset = default (false); explicit true is meaningful */
51
+ ephemeral?: boolean | undefined;
50
52
  }
51
53
  declare const InputDef$1: MessageFns$1<InputDef$1>;
52
54
  interface ValidationBlock$1 {
@@ -59,6 +61,7 @@ interface OutputDef$1 {
59
61
  type: string;
60
62
  description: string;
61
63
  sensitive: boolean;
64
+ depends_on: string[];
62
65
  }
63
66
  declare const OutputDef$1: MessageFns$1<OutputDef$1>;
64
67
  interface Source {
@@ -81,6 +84,10 @@ interface Use {
81
84
  [key: string]: Binding;
82
85
  };
83
86
  depends_on: string[];
87
+ /** count meta-argument */
88
+ count: Binding | undefined;
89
+ /** for_each meta-argument */
90
+ for_each: Binding | undefined;
84
91
  }
85
92
  declare const Use: MessageFns$1<Use>;
86
93
  interface Resource {
@@ -173,7 +180,7 @@ interface ProviderConfig {
173
180
  name: string;
174
181
  alias: string;
175
182
  config: {
176
- [key: string]: any | undefined;
183
+ [key: string]: Binding;
177
184
  };
178
185
  /** nested config blocks (default_tags, assume_role, …) */
179
186
  blocks: Block[];
@@ -461,6 +468,10 @@ interface NodeConfig$1 {
461
468
  sibling_ids: string[];
462
469
  depends_on: string[];
463
470
  available_variables: VariableRef[];
471
+ /** A module call's `providers = {}` map (child-local name → root ref). */
472
+ providers: {
473
+ [key: string]: string;
474
+ };
464
475
  }
465
476
  declare const NodeConfig$1: MessageFns<NodeConfig$1>;
466
477
  interface VariableRef {
@@ -510,6 +521,13 @@ interface ProviderReqView {
510
521
  name: string;
511
522
  source: string;
512
523
  version: string;
524
+ /**
525
+ * Provider references the module declares it accepts from its caller
526
+ * (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
527
+ * `name.alias` reference, re-emitted unquoted; carried so the panel neither
528
+ * drops nor corrupts the construct.
529
+ */
530
+ configuration_aliases: string[];
513
531
  }
514
532
  declare const ProviderReqView: MessageFns<ProviderReqView>;
515
533
  interface BackendView {
@@ -523,8 +541,16 @@ interface ProviderView {
523
541
  name: string;
524
542
  alias: string;
525
543
  config: {
526
- [key: string]: any | undefined;
544
+ [key: string]: string;
527
545
  };
546
+ /**
547
+ * Nested config blocks (default_tags, assume_role, …). Full-fidelity,
548
+ * read-only echo: the panel renders and round-trips these verbatim but does
549
+ * not structurally edit them, deliberately mixing tiers with the flattened,
550
+ * editable `config` map above (see ProvidersPanel). Reuses state.proto's
551
+ * recursive Block so no HCL is re-serialized on the wire.
552
+ */
553
+ blocks: Block[];
528
554
  }
529
555
  declare const ProviderView: MessageFns<ProviderView>;
530
556
  interface LocalView {
@@ -550,7 +576,12 @@ interface InputDef {
550
576
  required: boolean;
551
577
  description: string;
552
578
  default_value: any | undefined;
553
- validation: ValidationBlock | undefined;
579
+ validation: ValidationBlock[];
580
+ /** unset = default (false); explicit true is meaningful */
581
+ ephemeral?: boolean | undefined;
582
+ /** unset = default (true); explicit false is meaningful */
583
+ nullable?: boolean | undefined;
584
+ sensitive: boolean;
554
585
  }
555
586
  declare const InputDef: MessageFns<InputDef>;
556
587
  interface ValidationBlock {
@@ -563,6 +594,7 @@ interface OutputDef {
563
594
  type: string;
564
595
  description: string;
565
596
  sensitive: boolean;
597
+ depends_on: string[];
566
598
  }
567
599
  declare const OutputDef: MessageFns<OutputDef>;
568
600
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -645,6 +677,7 @@ type ProtoNodeConfigLike = {
645
677
  outputs: RenderOutput$1[];
646
678
  sibling_ids: string[];
647
679
  depends_on: string[];
680
+ providers: Record<string, string>;
648
681
  available_variables: VariableRef[];
649
682
  };
650
683
  type ProtoEdgeConfigLike = {
@@ -659,16 +692,17 @@ type ProtoInputDefLike = {
659
692
  required: boolean;
660
693
  description: string;
661
694
  default_value?: unknown;
662
- validation?: {
663
- condition: string;
664
- error_message: string;
665
- } | ValidationBlock;
695
+ validation?: ValidationBlock[];
696
+ ephemeral?: boolean;
697
+ nullable?: boolean;
698
+ sensitive?: boolean;
666
699
  };
667
700
  type ProtoOutputDefLike = {
668
701
  name: string;
669
702
  type: string;
670
703
  description: string;
671
704
  sensitive: boolean;
705
+ depends_on?: string[];
672
706
  };
673
707
  type ProtoOutputExportEntryLike = {
674
708
  name: string;
@@ -763,6 +797,7 @@ type NodeConfig = {
763
797
  outputs: RenderOutput[];
764
798
  sibling_ids: string[];
765
799
  depends_on: string[];
800
+ providers: Record<string, string>;
766
801
  available_variables: Array<{
767
802
  name: string;
768
803
  type: string;
@@ -781,12 +816,14 @@ type SettingsConfig = {
781
816
  name: string;
782
817
  source: string;
783
818
  version: string;
819
+ configuration_aliases?: string[];
784
820
  }>;
785
821
  };
786
822
  providers: Array<{
787
823
  name: string;
788
824
  alias: string;
789
- config: Record<string, unknown>;
825
+ config: Record<string, string>;
826
+ blocks?: Block[];
790
827
  }>;
791
828
  locals: Array<{
792
829
  name: string;
@@ -800,6 +837,13 @@ type SettingsConfig = {
800
837
  required: boolean;
801
838
  description?: string;
802
839
  default_value?: unknown;
840
+ validation?: Array<{
841
+ condition: string;
842
+ error_message: string;
843
+ }>;
844
+ ephemeral?: boolean;
845
+ sensitive?: boolean;
846
+ nullable?: boolean;
803
847
  }>;
804
848
  exports: Array<{
805
849
  name: string;
@@ -811,6 +855,7 @@ type SettingsConfig = {
811
855
  type: string;
812
856
  description?: string;
813
857
  sensitive?: boolean;
858
+ depends_on?: string[];
814
859
  }>;
815
860
  };
816
861
  type RenderError = {