@lace-cloud/proto 0.21.1 → 0.22.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 +91 -202
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +283 -246
- package/dist/index.d.ts +283 -246
- package/dist/index.mjs +91 -202
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,241 +13,6 @@ type ProtoDiagnosticLike = {
|
|
|
13
13
|
address?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
interface Bundle {
|
|
17
|
-
/**
|
|
18
|
-
* The format of this encoding: "2.0", at which every Expression carries
|
|
19
|
-
* the module references the engine read from it. The engine writes every
|
|
20
|
-
* Bundle at it; an encoding of an earlier version carries none.
|
|
21
|
-
*/
|
|
22
|
-
schema_version: string;
|
|
23
|
-
kind: string;
|
|
24
|
-
entry: string;
|
|
25
|
-
modules: {
|
|
26
|
-
[key: string]: Module;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
declare const Bundle: MessageFns$1<Bundle>;
|
|
30
|
-
interface Module {
|
|
31
|
-
id: string;
|
|
32
|
-
version: string;
|
|
33
|
-
source: Source | undefined;
|
|
34
|
-
interface: Interface | undefined;
|
|
35
|
-
modules: Use[];
|
|
36
|
-
resources: Resource[];
|
|
37
|
-
locals: Local[];
|
|
38
|
-
exports: Exports | undefined;
|
|
39
|
-
terraform: TerraformBlock | undefined;
|
|
40
|
-
providers: ProviderConfig[];
|
|
41
|
-
/** top-level directives: moved {}, import {} */
|
|
42
|
-
top_level_blocks: Block[];
|
|
43
|
-
}
|
|
44
|
-
declare const Module: MessageFns$1<Module>;
|
|
45
|
-
interface Interface {
|
|
46
|
-
inputs: InputDef[];
|
|
47
|
-
outputs: OutputDef[];
|
|
48
|
-
}
|
|
49
|
-
declare const Interface: MessageFns$1<Interface>;
|
|
50
|
-
interface InputDef {
|
|
51
|
-
name: string;
|
|
52
|
-
type: string;
|
|
53
|
-
required: boolean;
|
|
54
|
-
description: string;
|
|
55
|
-
default_value: any | undefined;
|
|
56
|
-
validation: ValidationBlock[];
|
|
57
|
-
sensitive: boolean;
|
|
58
|
-
/** unset = default (true); explicit false is meaningful */
|
|
59
|
-
nullable?: boolean | undefined;
|
|
60
|
-
/** unset = default (false); explicit true is meaningful */
|
|
61
|
-
ephemeral?: boolean | undefined;
|
|
62
|
-
}
|
|
63
|
-
declare const InputDef: MessageFns$1<InputDef>;
|
|
64
|
-
interface ValidationBlock {
|
|
65
|
-
condition: string;
|
|
66
|
-
error_message: string;
|
|
67
|
-
}
|
|
68
|
-
declare const ValidationBlock: MessageFns$1<ValidationBlock>;
|
|
69
|
-
interface OutputDef {
|
|
70
|
-
name: string;
|
|
71
|
-
type: string;
|
|
72
|
-
description: string;
|
|
73
|
-
sensitive: boolean;
|
|
74
|
-
depends_on: string[];
|
|
75
|
-
}
|
|
76
|
-
declare const OutputDef: MessageFns$1<OutputDef>;
|
|
77
|
-
interface Source {
|
|
78
|
-
kind: string;
|
|
79
|
-
repo: string;
|
|
80
|
-
subdir: string;
|
|
81
|
-
ref: string;
|
|
82
|
-
}
|
|
83
|
-
declare const Source: MessageFns$1<Source>;
|
|
84
|
-
interface Local {
|
|
85
|
-
name: string;
|
|
86
|
-
value: Binding | undefined;
|
|
87
|
-
}
|
|
88
|
-
declare const Local: MessageFns$1<Local>;
|
|
89
|
-
interface Use {
|
|
90
|
-
id: string;
|
|
91
|
-
module: string;
|
|
92
|
-
inputs: {
|
|
93
|
-
[key: string]: Binding;
|
|
94
|
-
};
|
|
95
|
-
depends_on: string[];
|
|
96
|
-
/** count meta-argument */
|
|
97
|
-
count: Binding | undefined;
|
|
98
|
-
/** for_each meta-argument */
|
|
99
|
-
for_each: Binding | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* A module call's `providers = {}` map (child-local name → root ref).
|
|
102
|
-
* Each entry targets the child's default provider slot for that name;
|
|
103
|
-
* this map has no way to target an aliased child slot.
|
|
104
|
-
*/
|
|
105
|
-
providers: {
|
|
106
|
-
[key: string]: string;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
declare const Use: MessageFns$1<Use>;
|
|
110
|
-
interface Resource {
|
|
111
|
-
id: string;
|
|
112
|
-
kind: string;
|
|
113
|
-
type: string;
|
|
114
|
-
inputs: {
|
|
115
|
-
[key: string]: Binding;
|
|
116
|
-
};
|
|
117
|
-
depends_on: string[];
|
|
118
|
-
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
119
|
-
blocks: Block[];
|
|
120
|
-
/** count meta-argument */
|
|
121
|
-
count: Binding | undefined;
|
|
122
|
-
/** for_each meta-argument */
|
|
123
|
-
for_each: Binding | undefined;
|
|
124
|
-
/** provider meta-argument, e.g. "aws.west" */
|
|
125
|
-
provider_ref: string;
|
|
126
|
-
}
|
|
127
|
-
declare const Resource: MessageFns$1<Resource>;
|
|
128
|
-
/**
|
|
129
|
-
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
130
|
-
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
131
|
-
* byte-deterministic.
|
|
132
|
-
*/
|
|
133
|
-
interface Block {
|
|
134
|
-
type: string;
|
|
135
|
-
labels: string[];
|
|
136
|
-
attributes: NamedBinding[];
|
|
137
|
-
blocks: Block[];
|
|
138
|
-
}
|
|
139
|
-
declare const Block: MessageFns$1<Block>;
|
|
140
|
-
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
141
|
-
interface NamedBinding {
|
|
142
|
-
name: string;
|
|
143
|
-
value: Binding | undefined;
|
|
144
|
-
}
|
|
145
|
-
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
146
|
-
interface Exports {
|
|
147
|
-
outputs: {
|
|
148
|
-
[key: string]: OutputExport;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
declare const Exports: MessageFns$1<Exports>;
|
|
152
|
-
interface OutputExport {
|
|
153
|
-
out: OutputRef | undefined;
|
|
154
|
-
lit: any | undefined;
|
|
155
|
-
var: string;
|
|
156
|
-
expr: Expression | undefined;
|
|
157
|
-
}
|
|
158
|
-
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
159
|
-
interface Binding {
|
|
160
|
-
lit?: any | undefined;
|
|
161
|
-
var?: string | undefined;
|
|
162
|
-
out?: OutputRef | undefined;
|
|
163
|
-
expr?: Expression | undefined;
|
|
164
|
-
}
|
|
165
|
-
declare const Binding: MessageFns$1<Binding>;
|
|
166
|
-
interface OutputRef {
|
|
167
|
-
module: string;
|
|
168
|
-
name: string;
|
|
169
|
-
}
|
|
170
|
-
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
171
|
-
interface Expression {
|
|
172
|
-
lang: string;
|
|
173
|
-
value: string;
|
|
174
|
-
/**
|
|
175
|
-
* The module calls `value` reads, in source order: what the engine's
|
|
176
|
-
* one reader of references reads from the parse of `value`. The engine
|
|
177
|
-
* fills them each time it encodes an Expression and reads none back, so
|
|
178
|
-
* a consumer takes a reference from here and never from `value`.
|
|
179
|
-
*/
|
|
180
|
-
module_references: ModuleReference[];
|
|
181
|
-
}
|
|
182
|
-
declare const Expression: MessageFns$1<Expression>;
|
|
183
|
-
/** ModuleReference is one module.<call> an expression reads. */
|
|
184
|
-
interface ModuleReference {
|
|
185
|
-
/** The call read: module.<call>. */
|
|
186
|
-
call: string;
|
|
187
|
-
/**
|
|
188
|
-
* The output read off the call: the first attribute after the call and
|
|
189
|
-
* any instance key in the text, module.<call>.<output> or
|
|
190
|
-
* module.<call>[0].<output>. Unset when the reference reads the whole
|
|
191
|
-
* call: module.<call> alone, through a splat, or by a key an expression
|
|
192
|
-
* computes.
|
|
193
|
-
*/
|
|
194
|
-
output?: string | undefined;
|
|
195
|
-
/** An instance key follows the call: [0], ["k"] or [<expression>]. */
|
|
196
|
-
instance_key: boolean;
|
|
197
|
-
/** A splat follows the call or its instance key: [*] or .*. */
|
|
198
|
-
splat: boolean;
|
|
199
|
-
}
|
|
200
|
-
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
201
|
-
interface TerraformBlock {
|
|
202
|
-
required_version: string;
|
|
203
|
-
required_providers: {
|
|
204
|
-
[key: string]: ProviderRequirement;
|
|
205
|
-
};
|
|
206
|
-
backend: BackendConfig | undefined;
|
|
207
|
-
}
|
|
208
|
-
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
209
|
-
interface ProviderRequirement {
|
|
210
|
-
source: string;
|
|
211
|
-
version: string;
|
|
212
|
-
configuration_aliases: string[];
|
|
213
|
-
}
|
|
214
|
-
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
215
|
-
interface BackendConfig {
|
|
216
|
-
type: string;
|
|
217
|
-
config: {
|
|
218
|
-
[key: string]: any | undefined;
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
declare const BackendConfig: MessageFns$1<BackendConfig>;
|
|
222
|
-
interface ProviderConfig {
|
|
223
|
-
name: string;
|
|
224
|
-
alias: string;
|
|
225
|
-
config: {
|
|
226
|
-
[key: string]: Binding;
|
|
227
|
-
};
|
|
228
|
-
/** nested config blocks (default_tags, assume_role, …) */
|
|
229
|
-
blocks: Block[];
|
|
230
|
-
}
|
|
231
|
-
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
232
|
-
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
233
|
-
type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {} ? {
|
|
234
|
-
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
235
|
-
} : Partial<T>;
|
|
236
|
-
type KeysOfUnion$1<T> = T extends T ? keyof T : never;
|
|
237
|
-
type Exact$1<P, I extends P> = P extends Builtin$1 ? P : P & {
|
|
238
|
-
[K in keyof P]: Exact$1<P[K], I[K]>;
|
|
239
|
-
} & {
|
|
240
|
-
[K in Exclude<keyof I, KeysOfUnion$1<P>>]: never;
|
|
241
|
-
};
|
|
242
|
-
interface MessageFns$1<T> {
|
|
243
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
244
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
245
|
-
fromJSON(object: any): T;
|
|
246
|
-
toJSON(message: T): unknown;
|
|
247
|
-
create<I extends Exact$1<DeepPartial$1<T>, I>>(base?: I): T;
|
|
248
|
-
fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
16
|
type XY = {
|
|
252
17
|
x: number;
|
|
253
18
|
y: number;
|
|
@@ -403,17 +168,49 @@ type RenderOutput = {
|
|
|
403
168
|
};
|
|
404
169
|
type NodeConfig = {
|
|
405
170
|
instance_id: string;
|
|
171
|
+
module_key?: string;
|
|
406
172
|
inputs: RenderInput[];
|
|
407
173
|
outputs: RenderOutput[];
|
|
408
174
|
sibling_ids: string[];
|
|
409
175
|
depends_on: string[];
|
|
410
176
|
providers: Record<string, string>;
|
|
177
|
+
count: string;
|
|
178
|
+
for_each: string;
|
|
411
179
|
available_variables: Array<{
|
|
412
180
|
name: string;
|
|
413
181
|
type: string;
|
|
414
182
|
}>;
|
|
415
183
|
};
|
|
184
|
+
type BlockConfig = {
|
|
185
|
+
type: string;
|
|
186
|
+
labels: string[];
|
|
187
|
+
attributes: Array<{
|
|
188
|
+
name: string;
|
|
189
|
+
value: string;
|
|
190
|
+
}>;
|
|
191
|
+
blocks: BlockConfig[];
|
|
192
|
+
};
|
|
193
|
+
type ResourceConfig = {
|
|
194
|
+
id: string;
|
|
195
|
+
kind: 'resource' | 'data';
|
|
196
|
+
type: string;
|
|
197
|
+
name: string;
|
|
198
|
+
arguments: Array<{
|
|
199
|
+
name: string;
|
|
200
|
+
value: string;
|
|
201
|
+
}>;
|
|
202
|
+
blocks: BlockConfig[];
|
|
203
|
+
count: string;
|
|
204
|
+
for_each: string;
|
|
205
|
+
provider: string;
|
|
206
|
+
depends_on: string[];
|
|
207
|
+
};
|
|
416
208
|
type SettingsConfig = {
|
|
209
|
+
module_key: string;
|
|
210
|
+
reference?: {
|
|
211
|
+
source: string;
|
|
212
|
+
version: string;
|
|
213
|
+
};
|
|
417
214
|
terraform: {
|
|
418
215
|
required_version: string;
|
|
419
216
|
required_providers: Array<{
|
|
@@ -427,12 +224,11 @@ type SettingsConfig = {
|
|
|
427
224
|
name: string;
|
|
428
225
|
alias: string;
|
|
429
226
|
config: Record<string, string>;
|
|
430
|
-
blocks
|
|
227
|
+
blocks: BlockConfig[];
|
|
431
228
|
}>;
|
|
432
229
|
locals: Array<{
|
|
433
230
|
name: string;
|
|
434
|
-
|
|
435
|
-
value_display: string;
|
|
231
|
+
value: string;
|
|
436
232
|
}>;
|
|
437
233
|
variables: Array<{
|
|
438
234
|
name: string;
|
|
@@ -447,19 +243,21 @@ type SettingsConfig = {
|
|
|
447
243
|
ephemeral?: boolean;
|
|
448
244
|
sensitive?: boolean;
|
|
449
245
|
nullable?: boolean;
|
|
246
|
+
default: string;
|
|
450
247
|
}>;
|
|
451
|
-
|
|
452
|
-
name: string;
|
|
453
|
-
source_instance: string;
|
|
454
|
-
source_output: string;
|
|
455
|
-
}>;
|
|
456
|
-
output_defs: Array<{
|
|
248
|
+
outputs: Array<{
|
|
457
249
|
name: string;
|
|
458
250
|
type: string;
|
|
251
|
+
value: string;
|
|
459
252
|
description?: string;
|
|
460
253
|
sensitive?: boolean;
|
|
461
254
|
depends_on?: string[];
|
|
462
255
|
}>;
|
|
256
|
+
resources: ResourceConfig[];
|
|
257
|
+
holds_managed_resources: boolean;
|
|
258
|
+
directives: BlockConfig[];
|
|
259
|
+
call_outputs: string[];
|
|
260
|
+
dependency_options: string[];
|
|
463
261
|
};
|
|
464
262
|
type Diagnostic = {
|
|
465
263
|
severity: 'error' | 'warning' | 'info';
|
|
@@ -534,8 +332,247 @@ type MessageBridge = {
|
|
|
534
332
|
onMessage(f: (m: unknown) => void): () => void;
|
|
535
333
|
};
|
|
536
334
|
|
|
335
|
+
interface Bundle {
|
|
336
|
+
/**
|
|
337
|
+
* The format of this encoding: "2.0", at which every Expression carries
|
|
338
|
+
* the module references the engine read from it. The engine writes every
|
|
339
|
+
* Bundle at it; an encoding of an earlier version carries none.
|
|
340
|
+
*/
|
|
341
|
+
schema_version: string;
|
|
342
|
+
kind: string;
|
|
343
|
+
entry: string;
|
|
344
|
+
modules: {
|
|
345
|
+
[key: string]: Module;
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
declare const Bundle: MessageFns$1<Bundle>;
|
|
349
|
+
interface Module {
|
|
350
|
+
id: string;
|
|
351
|
+
version: string;
|
|
352
|
+
source: Source | undefined;
|
|
353
|
+
interface: Interface | undefined;
|
|
354
|
+
modules: Use[];
|
|
355
|
+
resources: Resource[];
|
|
356
|
+
locals: Local[];
|
|
357
|
+
exports: Exports | undefined;
|
|
358
|
+
terraform: TerraformBlock | undefined;
|
|
359
|
+
providers: ProviderConfig[];
|
|
360
|
+
/** top-level directives: moved {}, import {} */
|
|
361
|
+
top_level_blocks: Block[];
|
|
362
|
+
}
|
|
363
|
+
declare const Module: MessageFns$1<Module>;
|
|
364
|
+
interface Interface {
|
|
365
|
+
inputs: InputDef[];
|
|
366
|
+
outputs: OutputDef[];
|
|
367
|
+
}
|
|
368
|
+
declare const Interface: MessageFns$1<Interface>;
|
|
369
|
+
interface InputDef {
|
|
370
|
+
name: string;
|
|
371
|
+
/**
|
|
372
|
+
* The type constraint the variable's type line spells, as written; empty
|
|
373
|
+
* for a variable with no type line. `any` is a type line of its own.
|
|
374
|
+
*/
|
|
375
|
+
type: string;
|
|
376
|
+
required: boolean;
|
|
377
|
+
description: string;
|
|
378
|
+
default_value: any | undefined;
|
|
379
|
+
validation: ValidationBlock[];
|
|
380
|
+
sensitive: boolean;
|
|
381
|
+
/** unset = default (true); explicit false is meaningful */
|
|
382
|
+
nullable?: boolean | undefined;
|
|
383
|
+
/** unset = default (false); explicit true is meaningful */
|
|
384
|
+
ephemeral?: boolean | undefined;
|
|
385
|
+
}
|
|
386
|
+
declare const InputDef: MessageFns$1<InputDef>;
|
|
387
|
+
interface ValidationBlock {
|
|
388
|
+
condition: string;
|
|
389
|
+
error_message: string;
|
|
390
|
+
}
|
|
391
|
+
declare const ValidationBlock: MessageFns$1<ValidationBlock>;
|
|
392
|
+
interface OutputDef {
|
|
393
|
+
name: string;
|
|
394
|
+
/**
|
|
395
|
+
* The type of the child output the output's export reads; empty when
|
|
396
|
+
* nothing types it. An output block declares no type.
|
|
397
|
+
*/
|
|
398
|
+
type: string;
|
|
399
|
+
description: string;
|
|
400
|
+
sensitive: boolean;
|
|
401
|
+
depends_on: string[];
|
|
402
|
+
}
|
|
403
|
+
declare const OutputDef: MessageFns$1<OutputDef>;
|
|
404
|
+
interface Source {
|
|
405
|
+
kind: string;
|
|
406
|
+
repo: string;
|
|
407
|
+
subdir: string;
|
|
408
|
+
ref: string;
|
|
409
|
+
}
|
|
410
|
+
declare const Source: MessageFns$1<Source>;
|
|
411
|
+
interface Local {
|
|
412
|
+
name: string;
|
|
413
|
+
value: Binding | undefined;
|
|
414
|
+
}
|
|
415
|
+
declare const Local: MessageFns$1<Local>;
|
|
416
|
+
interface Use {
|
|
417
|
+
id: string;
|
|
418
|
+
module: string;
|
|
419
|
+
inputs: {
|
|
420
|
+
[key: string]: Binding;
|
|
421
|
+
};
|
|
422
|
+
depends_on: string[];
|
|
423
|
+
/** count meta-argument */
|
|
424
|
+
count: Binding | undefined;
|
|
425
|
+
/** for_each meta-argument */
|
|
426
|
+
for_each: Binding | undefined;
|
|
427
|
+
/**
|
|
428
|
+
* A module call's `providers = {}` map (child-local name → root ref).
|
|
429
|
+
* Each entry targets the child's default provider slot for that name;
|
|
430
|
+
* this map has no way to target an aliased child slot.
|
|
431
|
+
*/
|
|
432
|
+
providers: {
|
|
433
|
+
[key: string]: string;
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
declare const Use: MessageFns$1<Use>;
|
|
437
|
+
interface Resource {
|
|
438
|
+
id: string;
|
|
439
|
+
kind: string;
|
|
440
|
+
type: string;
|
|
441
|
+
inputs: {
|
|
442
|
+
[key: string]: Binding;
|
|
443
|
+
};
|
|
444
|
+
depends_on: string[];
|
|
445
|
+
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
446
|
+
blocks: Block[];
|
|
447
|
+
/** count meta-argument */
|
|
448
|
+
count: Binding | undefined;
|
|
449
|
+
/** for_each meta-argument */
|
|
450
|
+
for_each: Binding | undefined;
|
|
451
|
+
/** provider meta-argument, e.g. "aws.west" */
|
|
452
|
+
provider_ref: string;
|
|
453
|
+
}
|
|
454
|
+
declare const Resource: MessageFns$1<Resource>;
|
|
455
|
+
/**
|
|
456
|
+
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
457
|
+
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
458
|
+
* byte-deterministic.
|
|
459
|
+
*/
|
|
460
|
+
interface Block {
|
|
461
|
+
type: string;
|
|
462
|
+
labels: string[];
|
|
463
|
+
attributes: NamedBinding[];
|
|
464
|
+
blocks: Block[];
|
|
465
|
+
}
|
|
466
|
+
declare const Block: MessageFns$1<Block>;
|
|
467
|
+
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
468
|
+
interface NamedBinding {
|
|
469
|
+
name: string;
|
|
470
|
+
value: Binding | undefined;
|
|
471
|
+
}
|
|
472
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
473
|
+
interface Exports {
|
|
474
|
+
outputs: {
|
|
475
|
+
[key: string]: OutputExport;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
declare const Exports: MessageFns$1<Exports>;
|
|
479
|
+
interface OutputExport {
|
|
480
|
+
out: OutputRef | undefined;
|
|
481
|
+
lit: any | undefined;
|
|
482
|
+
var: string;
|
|
483
|
+
expr: Expression | undefined;
|
|
484
|
+
}
|
|
485
|
+
declare const OutputExport: MessageFns$1<OutputExport>;
|
|
486
|
+
interface Binding {
|
|
487
|
+
lit?: any | undefined;
|
|
488
|
+
var?: string | undefined;
|
|
489
|
+
out?: OutputRef | undefined;
|
|
490
|
+
expr?: Expression | undefined;
|
|
491
|
+
}
|
|
492
|
+
declare const Binding: MessageFns$1<Binding>;
|
|
493
|
+
interface OutputRef {
|
|
494
|
+
module: string;
|
|
495
|
+
name: string;
|
|
496
|
+
}
|
|
497
|
+
declare const OutputRef: MessageFns$1<OutputRef>;
|
|
498
|
+
interface Expression {
|
|
499
|
+
lang: string;
|
|
500
|
+
value: string;
|
|
501
|
+
/**
|
|
502
|
+
* The module calls `value` reads, in source order: what the engine's
|
|
503
|
+
* one reader of references reads from the parse of `value`. The engine
|
|
504
|
+
* fills them each time it encodes an Expression and reads none back, so
|
|
505
|
+
* a consumer takes a reference from here and never from `value`.
|
|
506
|
+
*/
|
|
507
|
+
module_references: ModuleReference[];
|
|
508
|
+
}
|
|
509
|
+
declare const Expression: MessageFns$1<Expression>;
|
|
510
|
+
/** ModuleReference is one module.<call> an expression reads. */
|
|
511
|
+
interface ModuleReference {
|
|
512
|
+
/** The call read: module.<call>. */
|
|
513
|
+
call: string;
|
|
514
|
+
/**
|
|
515
|
+
* The output read off the call: the first attribute after the call and
|
|
516
|
+
* any instance key in the text, module.<call>.<output> or
|
|
517
|
+
* module.<call>[0].<output>. Unset when the reference reads the whole
|
|
518
|
+
* call: module.<call> alone, through a splat, or by a key an expression
|
|
519
|
+
* computes.
|
|
520
|
+
*/
|
|
521
|
+
output?: string | undefined;
|
|
522
|
+
/** An instance key follows the call: [0], ["k"] or [<expression>]. */
|
|
523
|
+
instance_key: boolean;
|
|
524
|
+
/** A splat follows the call or its instance key: [*] or .*. */
|
|
525
|
+
splat: boolean;
|
|
526
|
+
}
|
|
527
|
+
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
528
|
+
/**
|
|
529
|
+
* A module's terraform block as the IR holds it. It holds no backend: Lace
|
|
530
|
+
* manages state, and a backend block is a fact about the files.
|
|
531
|
+
*/
|
|
532
|
+
interface TerraformBlock {
|
|
533
|
+
required_version: string;
|
|
534
|
+
required_providers: {
|
|
535
|
+
[key: string]: ProviderRequirement;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
539
|
+
interface ProviderRequirement {
|
|
540
|
+
source: string;
|
|
541
|
+
version: string;
|
|
542
|
+
configuration_aliases: string[];
|
|
543
|
+
}
|
|
544
|
+
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
545
|
+
interface ProviderConfig {
|
|
546
|
+
name: string;
|
|
547
|
+
alias: string;
|
|
548
|
+
config: {
|
|
549
|
+
[key: string]: Binding;
|
|
550
|
+
};
|
|
551
|
+
/** nested config blocks (default_tags, assume_role, …) */
|
|
552
|
+
blocks: Block[];
|
|
553
|
+
}
|
|
554
|
+
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
555
|
+
type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
556
|
+
type DeepPartial$1<T> = T extends Builtin$1 ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$1<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$1<U>> : T extends {} ? {
|
|
557
|
+
[K in keyof T]?: DeepPartial$1<T[K]>;
|
|
558
|
+
} : Partial<T>;
|
|
559
|
+
type KeysOfUnion$1<T> = T extends T ? keyof T : never;
|
|
560
|
+
type Exact$1<P, I extends P> = P extends Builtin$1 ? P : P & {
|
|
561
|
+
[K in keyof P]: Exact$1<P[K], I[K]>;
|
|
562
|
+
} & {
|
|
563
|
+
[K in Exclude<keyof I, KeysOfUnion$1<P>>]: never;
|
|
564
|
+
};
|
|
565
|
+
interface MessageFns$1<T> {
|
|
566
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
567
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
568
|
+
fromJSON(object: any): T;
|
|
569
|
+
toJSON(message: T): unknown;
|
|
570
|
+
create<I extends Exact$1<DeepPartial$1<T>, I>>(base?: I): T;
|
|
571
|
+
fromPartial<I extends Exact$1<DeepPartial$1<T>, I>>(object: I): T;
|
|
572
|
+
}
|
|
573
|
+
|
|
537
574
|
declare function deriveNodeConfig(bundle: Bundle, instanceId: string): NodeConfig | null;
|
|
538
|
-
declare function deriveSettingsConfig(bundle: Bundle): SettingsConfig;
|
|
575
|
+
declare function deriveSettingsConfig(bundle: Bundle, moduleKey: string): SettingsConfig | null;
|
|
539
576
|
|
|
540
577
|
declare function nodeIdForAddress(view: Pick<CanvasView$1, 'nodes' | 'groups'>, address: string): string | null;
|
|
541
578
|
|
|
@@ -855,4 +892,4 @@ declare class EngineProtocolMismatchError extends Error {
|
|
|
855
892
|
*/
|
|
856
893
|
declare function checkEngineProtocol(engineVersion: string, engineProtocol: string): void;
|
|
857
894
|
|
|
858
|
-
export { BRIDGE_METHODS, type BridgeMethod, type BridgeRequest, type BridgeResponse, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, type CanvasArrangement, type CanvasView$1 as CanvasView, CanvasViewProto, type Conflict, type DeepPartial$1 as DeepPartial, type Diagnostic, EMPTY_BUNDLE, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, type EngineMethod, EngineProtocolMismatchError, type EngineStreamMethod, GROUP_HEADER_HEIGHT, GROUP_PADDING, type GeneratePhase, HOST_ONLY_METHODS, type HostOnlyMethod, type InstanceAddress, type InstanceChild, type KeepKey, type LayoutEdge, type LayoutItem, type MessageBridge, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, type NodeConfig, type NodePin$1 as NodePin, type ParsedModuleKey, type ProjectionMeta, type ProtoDiagnosticLike, type Rect, type RenderEdge$1 as RenderEdge, type RenderGroup$1 as RenderGroup, type RenderInput, type RenderNode$1 as RenderNode, type RenderOutput, type ScopedInstance, type SettingsConfig, type Size, type ViewportIntent, type XY, 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 };
|
|
895
|
+
export { BRIDGE_METHODS, type BlockConfig, type BridgeMethod, type BridgeRequest, type BridgeResponse, Bundle, COLLAPSED_GROUP_WIDTH, CONNECT_CODE_NAMES, type CanvasArrangement, type CanvasView$1 as CanvasView, CanvasViewProto, type Conflict, type DeepPartial$1 as DeepPartial, type Diagnostic, EMPTY_BUNDLE, ENGINE_METHODS, ENGINE_PROTOCOL_VERSION, ENGINE_STREAM_METHODS, type EngineMethod, EngineProtocolMismatchError, type EngineStreamMethod, GROUP_HEADER_HEIGHT, GROUP_PADDING, type GeneratePhase, HOST_ONLY_METHODS, type HostOnlyMethod, type InstanceAddress, type InstanceChild, type KeepKey, type LayoutEdge, type LayoutItem, type MessageBridge, NODE_HEADER_HEIGHT, NODE_ROW_HEIGHT, NODE_WIDTH, type NodeConfig, type NodePin$1 as NodePin, type ParsedModuleKey, type ProjectionMeta, type ProtoDiagnosticLike, type Rect, type RenderEdge$1 as RenderEdge, type RenderGroup$1 as RenderGroup, type RenderInput, type RenderNode$1 as RenderNode, type RenderOutput, type ResourceConfig, type ScopedInstance, type SettingsConfig, type Size, type ViewportIntent, type XY, 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 };
|