@lace-cloud/proto 0.12.0 → 0.14.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 +125 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +125 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,14 @@ interface Use {
|
|
|
88
88
|
count: Binding | undefined;
|
|
89
89
|
/** for_each meta-argument */
|
|
90
90
|
for_each: Binding | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* A module call's `providers = {}` map (child-local name → root ref).
|
|
93
|
+
* Each entry targets the child's default provider slot for that name;
|
|
94
|
+
* this map has no way to target an aliased child slot.
|
|
95
|
+
*/
|
|
96
|
+
providers: {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
91
99
|
}
|
|
92
100
|
declare const Use: MessageFns$1<Use>;
|
|
93
101
|
interface Resource {
|
|
@@ -167,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
167
175
|
interface ProviderRequirement {
|
|
168
176
|
source: string;
|
|
169
177
|
version: string;
|
|
178
|
+
configuration_aliases: string[];
|
|
170
179
|
}
|
|
171
180
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
172
181
|
interface BackendConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,14 @@ interface Use {
|
|
|
88
88
|
count: Binding | undefined;
|
|
89
89
|
/** for_each meta-argument */
|
|
90
90
|
for_each: Binding | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* A module call's `providers = {}` map (child-local name → root ref).
|
|
93
|
+
* Each entry targets the child's default provider slot for that name;
|
|
94
|
+
* this map has no way to target an aliased child slot.
|
|
95
|
+
*/
|
|
96
|
+
providers: {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
91
99
|
}
|
|
92
100
|
declare const Use: MessageFns$1<Use>;
|
|
93
101
|
interface Resource {
|
|
@@ -167,6 +175,7 @@ declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
|
167
175
|
interface ProviderRequirement {
|
|
168
176
|
source: string;
|
|
169
177
|
version: string;
|
|
178
|
+
configuration_aliases: string[];
|
|
170
179
|
}
|
|
171
180
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
172
181
|
interface BackendConfig {
|
package/dist/index.mjs
CHANGED
|
@@ -1889,7 +1889,7 @@ var Local = {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
1891
1891
|
function createBaseUse() {
|
|
1892
|
-
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1892
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0, providers: {} };
|
|
1893
1893
|
}
|
|
1894
1894
|
var Use = {
|
|
1895
1895
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -1911,6 +1911,9 @@ var Use = {
|
|
|
1911
1911
|
if (message.for_each !== void 0) {
|
|
1912
1912
|
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1913
1913
|
}
|
|
1914
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
1915
|
+
Use_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
1916
|
+
});
|
|
1914
1917
|
return writer;
|
|
1915
1918
|
},
|
|
1916
1919
|
decode(input, length) {
|
|
@@ -1965,6 +1968,16 @@ var Use = {
|
|
|
1965
1968
|
message.for_each = Binding.decode(reader, reader.uint32());
|
|
1966
1969
|
continue;
|
|
1967
1970
|
}
|
|
1971
|
+
case 7: {
|
|
1972
|
+
if (tag !== 58) {
|
|
1973
|
+
break;
|
|
1974
|
+
}
|
|
1975
|
+
const entry7 = Use_ProvidersEntry.decode(reader, reader.uint32());
|
|
1976
|
+
if (entry7.value !== void 0) {
|
|
1977
|
+
message.providers[entry7.key] = entry7.value;
|
|
1978
|
+
}
|
|
1979
|
+
continue;
|
|
1980
|
+
}
|
|
1968
1981
|
}
|
|
1969
1982
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1970
1983
|
break;
|
|
@@ -1986,7 +1999,14 @@ var Use = {
|
|
|
1986
1999
|
) : {},
|
|
1987
2000
|
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
1988
2001
|
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
1989
|
-
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
2002
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2003
|
+
providers: isObject2(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
2004
|
+
(acc, [key, value]) => {
|
|
2005
|
+
acc[key] = globalThis.String(value);
|
|
2006
|
+
return acc;
|
|
2007
|
+
},
|
|
2008
|
+
{}
|
|
2009
|
+
) : {}
|
|
1990
2010
|
};
|
|
1991
2011
|
},
|
|
1992
2012
|
toJSON(message) {
|
|
@@ -2015,6 +2035,15 @@ var Use = {
|
|
|
2015
2035
|
if (message.for_each !== void 0) {
|
|
2016
2036
|
obj.forEach = Binding.toJSON(message.for_each);
|
|
2017
2037
|
}
|
|
2038
|
+
if (message.providers) {
|
|
2039
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
2040
|
+
if (entries.length > 0) {
|
|
2041
|
+
obj.providers = {};
|
|
2042
|
+
entries.forEach(([k, v]) => {
|
|
2043
|
+
obj.providers[k] = v;
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2018
2047
|
return obj;
|
|
2019
2048
|
},
|
|
2020
2049
|
create(base) {
|
|
@@ -2036,6 +2065,15 @@ var Use = {
|
|
|
2036
2065
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2037
2066
|
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2038
2067
|
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2068
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
2069
|
+
(acc, [key, value]) => {
|
|
2070
|
+
if (value !== void 0) {
|
|
2071
|
+
acc[key] = globalThis.String(value);
|
|
2072
|
+
}
|
|
2073
|
+
return acc;
|
|
2074
|
+
},
|
|
2075
|
+
{}
|
|
2076
|
+
);
|
|
2039
2077
|
return message;
|
|
2040
2078
|
}
|
|
2041
2079
|
};
|
|
@@ -2107,6 +2145,74 @@ var Use_InputsEntry = {
|
|
|
2107
2145
|
return message;
|
|
2108
2146
|
}
|
|
2109
2147
|
};
|
|
2148
|
+
function createBaseUse_ProvidersEntry() {
|
|
2149
|
+
return { key: "", value: "" };
|
|
2150
|
+
}
|
|
2151
|
+
var Use_ProvidersEntry = {
|
|
2152
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2153
|
+
if (message.key !== "") {
|
|
2154
|
+
writer.uint32(10).string(message.key);
|
|
2155
|
+
}
|
|
2156
|
+
if (message.value !== "") {
|
|
2157
|
+
writer.uint32(18).string(message.value);
|
|
2158
|
+
}
|
|
2159
|
+
return writer;
|
|
2160
|
+
},
|
|
2161
|
+
decode(input, length) {
|
|
2162
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2163
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2164
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2165
|
+
while (reader.pos < end) {
|
|
2166
|
+
const tag = reader.uint32();
|
|
2167
|
+
switch (tag >>> 3) {
|
|
2168
|
+
case 1: {
|
|
2169
|
+
if (tag !== 10) {
|
|
2170
|
+
break;
|
|
2171
|
+
}
|
|
2172
|
+
message.key = reader.string();
|
|
2173
|
+
continue;
|
|
2174
|
+
}
|
|
2175
|
+
case 2: {
|
|
2176
|
+
if (tag !== 18) {
|
|
2177
|
+
break;
|
|
2178
|
+
}
|
|
2179
|
+
message.value = reader.string();
|
|
2180
|
+
continue;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2184
|
+
break;
|
|
2185
|
+
}
|
|
2186
|
+
reader.skip(tag & 7);
|
|
2187
|
+
}
|
|
2188
|
+
return message;
|
|
2189
|
+
},
|
|
2190
|
+
fromJSON(object) {
|
|
2191
|
+
return {
|
|
2192
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
2193
|
+
value: isSet2(object.value) ? globalThis.String(object.value) : ""
|
|
2194
|
+
};
|
|
2195
|
+
},
|
|
2196
|
+
toJSON(message) {
|
|
2197
|
+
const obj = {};
|
|
2198
|
+
if (message.key !== "") {
|
|
2199
|
+
obj.key = message.key;
|
|
2200
|
+
}
|
|
2201
|
+
if (message.value !== "") {
|
|
2202
|
+
obj.value = message.value;
|
|
2203
|
+
}
|
|
2204
|
+
return obj;
|
|
2205
|
+
},
|
|
2206
|
+
create(base) {
|
|
2207
|
+
return Use_ProvidersEntry.fromPartial(base ?? {});
|
|
2208
|
+
},
|
|
2209
|
+
fromPartial(object) {
|
|
2210
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2211
|
+
message.key = object.key ?? "";
|
|
2212
|
+
message.value = object.value ?? "";
|
|
2213
|
+
return message;
|
|
2214
|
+
}
|
|
2215
|
+
};
|
|
2110
2216
|
function createBaseResource() {
|
|
2111
2217
|
return {
|
|
2112
2218
|
id: "",
|
|
@@ -3204,7 +3310,7 @@ var TerraformBlock_RequiredProvidersEntry = {
|
|
|
3204
3310
|
}
|
|
3205
3311
|
};
|
|
3206
3312
|
function createBaseProviderRequirement() {
|
|
3207
|
-
return { source: "", version: "" };
|
|
3313
|
+
return { source: "", version: "", configuration_aliases: [] };
|
|
3208
3314
|
}
|
|
3209
3315
|
var ProviderRequirement = {
|
|
3210
3316
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -3214,6 +3320,9 @@ var ProviderRequirement = {
|
|
|
3214
3320
|
if (message.version !== "") {
|
|
3215
3321
|
writer.uint32(18).string(message.version);
|
|
3216
3322
|
}
|
|
3323
|
+
for (const v of message.configuration_aliases) {
|
|
3324
|
+
writer.uint32(26).string(v);
|
|
3325
|
+
}
|
|
3217
3326
|
return writer;
|
|
3218
3327
|
},
|
|
3219
3328
|
decode(input, length) {
|
|
@@ -3237,6 +3346,13 @@ var ProviderRequirement = {
|
|
|
3237
3346
|
message.version = reader.string();
|
|
3238
3347
|
continue;
|
|
3239
3348
|
}
|
|
3349
|
+
case 3: {
|
|
3350
|
+
if (tag !== 26) {
|
|
3351
|
+
break;
|
|
3352
|
+
}
|
|
3353
|
+
message.configuration_aliases.push(reader.string());
|
|
3354
|
+
continue;
|
|
3355
|
+
}
|
|
3240
3356
|
}
|
|
3241
3357
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3242
3358
|
break;
|
|
@@ -3248,7 +3364,8 @@ var ProviderRequirement = {
|
|
|
3248
3364
|
fromJSON(object) {
|
|
3249
3365
|
return {
|
|
3250
3366
|
source: isSet2(object.source) ? globalThis.String(object.source) : "",
|
|
3251
|
-
version: isSet2(object.version) ? globalThis.String(object.version) : ""
|
|
3367
|
+
version: isSet2(object.version) ? globalThis.String(object.version) : "",
|
|
3368
|
+
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
3252
3369
|
};
|
|
3253
3370
|
},
|
|
3254
3371
|
toJSON(message) {
|
|
@@ -3259,6 +3376,9 @@ var ProviderRequirement = {
|
|
|
3259
3376
|
if (message.version !== "") {
|
|
3260
3377
|
obj.version = message.version;
|
|
3261
3378
|
}
|
|
3379
|
+
if (message.configuration_aliases?.length) {
|
|
3380
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
3381
|
+
}
|
|
3262
3382
|
return obj;
|
|
3263
3383
|
},
|
|
3264
3384
|
create(base) {
|
|
@@ -3268,6 +3388,7 @@ var ProviderRequirement = {
|
|
|
3268
3388
|
const message = createBaseProviderRequirement();
|
|
3269
3389
|
message.source = object.source ?? "";
|
|
3270
3390
|
message.version = object.version ?? "";
|
|
3391
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
3271
3392
|
return message;
|
|
3272
3393
|
}
|
|
3273
3394
|
};
|