@lace-cloud/canvas 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 +152 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.mjs +152 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -130,7 +130,7 @@ type ProviderDef = {
|
|
|
130
130
|
type ProviderConfigDef = {
|
|
131
131
|
name: string;
|
|
132
132
|
alias?: string;
|
|
133
|
-
config: Record<string,
|
|
133
|
+
config: Record<string, string>;
|
|
134
134
|
};
|
|
135
135
|
type LocalDef = {
|
|
136
136
|
name: string;
|
|
@@ -801,10 +801,12 @@ interface InputDef {
|
|
|
801
801
|
required: boolean;
|
|
802
802
|
description: string;
|
|
803
803
|
default_value: any | undefined;
|
|
804
|
-
validation: ValidationBlock
|
|
804
|
+
validation: ValidationBlock[];
|
|
805
805
|
sensitive: boolean;
|
|
806
806
|
/** unset = default (true); explicit false is meaningful */
|
|
807
807
|
nullable?: boolean | undefined;
|
|
808
|
+
/** unset = default (false); explicit true is meaningful */
|
|
809
|
+
ephemeral?: boolean | undefined;
|
|
808
810
|
}
|
|
809
811
|
declare const InputDef: MessageFns<InputDef>;
|
|
810
812
|
interface ValidationBlock {
|
|
@@ -817,6 +819,7 @@ interface OutputDef {
|
|
|
817
819
|
type: string;
|
|
818
820
|
description: string;
|
|
819
821
|
sensitive: boolean;
|
|
822
|
+
depends_on: string[];
|
|
820
823
|
}
|
|
821
824
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
822
825
|
interface Source {
|
|
@@ -839,6 +842,10 @@ interface Use {
|
|
|
839
842
|
[key: string]: Binding;
|
|
840
843
|
};
|
|
841
844
|
depends_on: string[];
|
|
845
|
+
/** count meta-argument */
|
|
846
|
+
count: Binding | undefined;
|
|
847
|
+
/** for_each meta-argument */
|
|
848
|
+
for_each: Binding | undefined;
|
|
842
849
|
}
|
|
843
850
|
declare const Use: MessageFns<Use>;
|
|
844
851
|
interface Resource {
|
|
@@ -931,7 +938,7 @@ interface ProviderConfig {
|
|
|
931
938
|
name: string;
|
|
932
939
|
alias: string;
|
|
933
940
|
config: {
|
|
934
|
-
[key: string]:
|
|
941
|
+
[key: string]: Binding;
|
|
935
942
|
};
|
|
936
943
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
937
944
|
blocks: Block[];
|
|
@@ -999,6 +1006,14 @@ type SnapshotUrls = {
|
|
|
999
1006
|
layoutsUrl: string;
|
|
1000
1007
|
fetch?: typeof fetch;
|
|
1001
1008
|
meta?: SnapshotMeta;
|
|
1009
|
+
/**
|
|
1010
|
+
* Extra request headers sent with the bundle + layouts GETs. Same-origin
|
|
1011
|
+
* portal fetches carry the session cookie via `credentials: include`, but
|
|
1012
|
+
* the API still resolves org/team scope from `x-org-slug`/`x-team-slug`
|
|
1013
|
+
* headers — the caller must supply them here or the reads 400. Embed routes
|
|
1014
|
+
* authenticate via the token in the URL and omit this.
|
|
1015
|
+
*/
|
|
1016
|
+
headers?: Record<string, string>;
|
|
1002
1017
|
};
|
|
1003
1018
|
type SnapshotCanvasEngineInput = SnapshotInProcess | SnapshotUrls;
|
|
1004
1019
|
declare class SnapshotCanvasEngine implements CanvasEngine {
|
package/dist/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ type ProviderDef = {
|
|
|
130
130
|
type ProviderConfigDef = {
|
|
131
131
|
name: string;
|
|
132
132
|
alias?: string;
|
|
133
|
-
config: Record<string,
|
|
133
|
+
config: Record<string, string>;
|
|
134
134
|
};
|
|
135
135
|
type LocalDef = {
|
|
136
136
|
name: string;
|
|
@@ -801,10 +801,12 @@ interface InputDef {
|
|
|
801
801
|
required: boolean;
|
|
802
802
|
description: string;
|
|
803
803
|
default_value: any | undefined;
|
|
804
|
-
validation: ValidationBlock
|
|
804
|
+
validation: ValidationBlock[];
|
|
805
805
|
sensitive: boolean;
|
|
806
806
|
/** unset = default (true); explicit false is meaningful */
|
|
807
807
|
nullable?: boolean | undefined;
|
|
808
|
+
/** unset = default (false); explicit true is meaningful */
|
|
809
|
+
ephemeral?: boolean | undefined;
|
|
808
810
|
}
|
|
809
811
|
declare const InputDef: MessageFns<InputDef>;
|
|
810
812
|
interface ValidationBlock {
|
|
@@ -817,6 +819,7 @@ interface OutputDef {
|
|
|
817
819
|
type: string;
|
|
818
820
|
description: string;
|
|
819
821
|
sensitive: boolean;
|
|
822
|
+
depends_on: string[];
|
|
820
823
|
}
|
|
821
824
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
822
825
|
interface Source {
|
|
@@ -839,6 +842,10 @@ interface Use {
|
|
|
839
842
|
[key: string]: Binding;
|
|
840
843
|
};
|
|
841
844
|
depends_on: string[];
|
|
845
|
+
/** count meta-argument */
|
|
846
|
+
count: Binding | undefined;
|
|
847
|
+
/** for_each meta-argument */
|
|
848
|
+
for_each: Binding | undefined;
|
|
842
849
|
}
|
|
843
850
|
declare const Use: MessageFns<Use>;
|
|
844
851
|
interface Resource {
|
|
@@ -931,7 +938,7 @@ interface ProviderConfig {
|
|
|
931
938
|
name: string;
|
|
932
939
|
alias: string;
|
|
933
940
|
config: {
|
|
934
|
-
[key: string]:
|
|
941
|
+
[key: string]: Binding;
|
|
935
942
|
};
|
|
936
943
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
937
944
|
blocks: Block[];
|
|
@@ -999,6 +1006,14 @@ type SnapshotUrls = {
|
|
|
999
1006
|
layoutsUrl: string;
|
|
1000
1007
|
fetch?: typeof fetch;
|
|
1001
1008
|
meta?: SnapshotMeta;
|
|
1009
|
+
/**
|
|
1010
|
+
* Extra request headers sent with the bundle + layouts GETs. Same-origin
|
|
1011
|
+
* portal fetches carry the session cookie via `credentials: include`, but
|
|
1012
|
+
* the API still resolves org/team scope from `x-org-slug`/`x-team-slug`
|
|
1013
|
+
* headers — the caller must supply them here or the reads 400. Embed routes
|
|
1014
|
+
* authenticate via the token in the URL and omit this.
|
|
1015
|
+
*/
|
|
1016
|
+
headers?: Record<string, string>;
|
|
1002
1017
|
};
|
|
1003
1018
|
type SnapshotCanvasEngineInput = SnapshotInProcess | SnapshotUrls;
|
|
1004
1019
|
declare class SnapshotCanvasEngine implements CanvasEngine {
|