@lace-cloud/proto 0.12.0 → 0.13.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 +108 -2
- 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 +108 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,15 @@ 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
|
+
* aliased child slots are not expressible in this message
|
|
95
|
+
* (ProviderRequirement carries no configuration_aliases).
|
|
96
|
+
*/
|
|
97
|
+
providers: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
91
100
|
}
|
|
92
101
|
declare const Use: MessageFns$1<Use>;
|
|
93
102
|
interface Resource {
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,15 @@ 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
|
+
* aliased child slots are not expressible in this message
|
|
95
|
+
* (ProviderRequirement carries no configuration_aliases).
|
|
96
|
+
*/
|
|
97
|
+
providers: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
91
100
|
}
|
|
92
101
|
declare const Use: MessageFns$1<Use>;
|
|
93
102
|
interface Resource {
|
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: "",
|