@lace-cloud/proto 0.7.0 → 0.8.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.cjs +176 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.mjs +176 -72
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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]:
|
|
183
|
+
[key: string]: Binding;
|
|
177
184
|
};
|
|
178
185
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
179
186
|
blocks: Block[];
|
|
@@ -523,7 +530,7 @@ interface ProviderView {
|
|
|
523
530
|
name: string;
|
|
524
531
|
alias: string;
|
|
525
532
|
config: {
|
|
526
|
-
[key: string]:
|
|
533
|
+
[key: string]: string;
|
|
527
534
|
};
|
|
528
535
|
}
|
|
529
536
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
@@ -550,7 +557,9 @@ interface InputDef {
|
|
|
550
557
|
required: boolean;
|
|
551
558
|
description: string;
|
|
552
559
|
default_value: any | undefined;
|
|
553
|
-
validation: ValidationBlock
|
|
560
|
+
validation: ValidationBlock[];
|
|
561
|
+
/** unset = default (false); explicit true is meaningful */
|
|
562
|
+
ephemeral?: boolean | undefined;
|
|
554
563
|
}
|
|
555
564
|
declare const InputDef: MessageFns<InputDef>;
|
|
556
565
|
interface ValidationBlock {
|
|
@@ -563,6 +572,7 @@ interface OutputDef {
|
|
|
563
572
|
type: string;
|
|
564
573
|
description: string;
|
|
565
574
|
sensitive: boolean;
|
|
575
|
+
depends_on: string[];
|
|
566
576
|
}
|
|
567
577
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
568
578
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -659,10 +669,7 @@ type ProtoInputDefLike = {
|
|
|
659
669
|
required: boolean;
|
|
660
670
|
description: string;
|
|
661
671
|
default_value?: unknown;
|
|
662
|
-
validation?:
|
|
663
|
-
condition: string;
|
|
664
|
-
error_message: string;
|
|
665
|
-
} | ValidationBlock;
|
|
672
|
+
validation?: ValidationBlock[];
|
|
666
673
|
};
|
|
667
674
|
type ProtoOutputDefLike = {
|
|
668
675
|
name: string;
|
|
@@ -786,7 +793,7 @@ type SettingsConfig = {
|
|
|
786
793
|
providers: Array<{
|
|
787
794
|
name: string;
|
|
788
795
|
alias: string;
|
|
789
|
-
config: Record<string,
|
|
796
|
+
config: Record<string, string>;
|
|
790
797
|
}>;
|
|
791
798
|
locals: Array<{
|
|
792
799
|
name: string;
|
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
|
|
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]:
|
|
183
|
+
[key: string]: Binding;
|
|
177
184
|
};
|
|
178
185
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
179
186
|
blocks: Block[];
|
|
@@ -523,7 +530,7 @@ interface ProviderView {
|
|
|
523
530
|
name: string;
|
|
524
531
|
alias: string;
|
|
525
532
|
config: {
|
|
526
|
-
[key: string]:
|
|
533
|
+
[key: string]: string;
|
|
527
534
|
};
|
|
528
535
|
}
|
|
529
536
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
@@ -550,7 +557,9 @@ interface InputDef {
|
|
|
550
557
|
required: boolean;
|
|
551
558
|
description: string;
|
|
552
559
|
default_value: any | undefined;
|
|
553
|
-
validation: ValidationBlock
|
|
560
|
+
validation: ValidationBlock[];
|
|
561
|
+
/** unset = default (false); explicit true is meaningful */
|
|
562
|
+
ephemeral?: boolean | undefined;
|
|
554
563
|
}
|
|
555
564
|
declare const InputDef: MessageFns<InputDef>;
|
|
556
565
|
interface ValidationBlock {
|
|
@@ -563,6 +572,7 @@ interface OutputDef {
|
|
|
563
572
|
type: string;
|
|
564
573
|
description: string;
|
|
565
574
|
sensitive: boolean;
|
|
575
|
+
depends_on: string[];
|
|
566
576
|
}
|
|
567
577
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
568
578
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -659,10 +669,7 @@ type ProtoInputDefLike = {
|
|
|
659
669
|
required: boolean;
|
|
660
670
|
description: string;
|
|
661
671
|
default_value?: unknown;
|
|
662
|
-
validation?:
|
|
663
|
-
condition: string;
|
|
664
|
-
error_message: string;
|
|
665
|
-
} | ValidationBlock;
|
|
672
|
+
validation?: ValidationBlock[];
|
|
666
673
|
};
|
|
667
674
|
type ProtoOutputDefLike = {
|
|
668
675
|
name: string;
|
|
@@ -786,7 +793,7 @@ type SettingsConfig = {
|
|
|
786
793
|
providers: Array<{
|
|
787
794
|
name: string;
|
|
788
795
|
alias: string;
|
|
789
|
-
config: Record<string,
|
|
796
|
+
config: Record<string, string>;
|
|
790
797
|
}>;
|
|
791
798
|
locals: Array<{
|
|
792
799
|
name: string;
|