@lace-cloud/host 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 +650 -374
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +148 -37
- package/dist/index.d.ts +148 -37
- package/dist/index.mjs +650 -374
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2885,7 +2885,7 @@ var ModuleReference = {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
2887
|
function createBaseTerraformBlock() {
|
|
2888
|
-
return { required_version: "", required_providers: {}
|
|
2888
|
+
return { required_version: "", required_providers: {} };
|
|
2889
2889
|
}
|
|
2890
2890
|
var TerraformBlock = {
|
|
2891
2891
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -2895,9 +2895,6 @@ var TerraformBlock = {
|
|
|
2895
2895
|
globalThis.Object.entries(message.required_providers).forEach(([key, value]) => {
|
|
2896
2896
|
TerraformBlock_RequiredProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
2897
2897
|
});
|
|
2898
|
-
if (message.backend !== void 0) {
|
|
2899
|
-
BackendConfig.encode(message.backend, writer.uint32(26).fork()).join();
|
|
2900
|
-
}
|
|
2901
2898
|
return writer;
|
|
2902
2899
|
},
|
|
2903
2900
|
decode(input, length) {
|
|
@@ -2924,13 +2921,6 @@ var TerraformBlock = {
|
|
|
2924
2921
|
}
|
|
2925
2922
|
continue;
|
|
2926
2923
|
}
|
|
2927
|
-
case 3: {
|
|
2928
|
-
if (tag !== 26) {
|
|
2929
|
-
break;
|
|
2930
|
-
}
|
|
2931
|
-
message.backend = BackendConfig.decode(reader, reader.uint32());
|
|
2932
|
-
continue;
|
|
2933
|
-
}
|
|
2934
2924
|
}
|
|
2935
2925
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2936
2926
|
break;
|
|
@@ -2954,8 +2944,7 @@ var TerraformBlock = {
|
|
|
2954
2944
|
return acc;
|
|
2955
2945
|
},
|
|
2956
2946
|
{}
|
|
2957
|
-
) : {}
|
|
2958
|
-
backend: isSet2(object.backend) ? BackendConfig.fromJSON(object.backend) : void 0
|
|
2947
|
+
) : {}
|
|
2959
2948
|
};
|
|
2960
2949
|
},
|
|
2961
2950
|
toJSON(message) {
|
|
@@ -2972,9 +2961,6 @@ var TerraformBlock = {
|
|
|
2972
2961
|
});
|
|
2973
2962
|
}
|
|
2974
2963
|
}
|
|
2975
|
-
if (message.backend !== void 0) {
|
|
2976
|
-
obj.backend = BackendConfig.toJSON(message.backend);
|
|
2977
|
-
}
|
|
2978
2964
|
return obj;
|
|
2979
2965
|
},
|
|
2980
2966
|
create(base) {
|
|
@@ -2992,7 +2978,6 @@ var TerraformBlock = {
|
|
|
2992
2978
|
},
|
|
2993
2979
|
{}
|
|
2994
2980
|
);
|
|
2995
|
-
message.backend = object.backend !== void 0 && object.backend !== null ? BackendConfig.fromPartial(object.backend) : void 0;
|
|
2996
2981
|
return message;
|
|
2997
2982
|
}
|
|
2998
2983
|
};
|
|
@@ -3147,167 +3132,6 @@ var ProviderRequirement = {
|
|
|
3147
3132
|
return message;
|
|
3148
3133
|
}
|
|
3149
3134
|
};
|
|
3150
|
-
function createBaseBackendConfig() {
|
|
3151
|
-
return { type: "", config: {} };
|
|
3152
|
-
}
|
|
3153
|
-
var BackendConfig = {
|
|
3154
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
3155
|
-
if (message.type !== "") {
|
|
3156
|
-
writer.uint32(10).string(message.type);
|
|
3157
|
-
}
|
|
3158
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3159
|
-
if (value !== void 0) {
|
|
3160
|
-
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3161
|
-
}
|
|
3162
|
-
});
|
|
3163
|
-
return writer;
|
|
3164
|
-
},
|
|
3165
|
-
decode(input, length) {
|
|
3166
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
3167
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3168
|
-
const message = createBaseBackendConfig();
|
|
3169
|
-
while (reader.pos < end) {
|
|
3170
|
-
const tag = reader.uint32();
|
|
3171
|
-
switch (tag >>> 3) {
|
|
3172
|
-
case 1: {
|
|
3173
|
-
if (tag !== 10) {
|
|
3174
|
-
break;
|
|
3175
|
-
}
|
|
3176
|
-
message.type = reader.string();
|
|
3177
|
-
continue;
|
|
3178
|
-
}
|
|
3179
|
-
case 2: {
|
|
3180
|
-
if (tag !== 18) {
|
|
3181
|
-
break;
|
|
3182
|
-
}
|
|
3183
|
-
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3184
|
-
if (entry2.value !== void 0) {
|
|
3185
|
-
message.config[entry2.key] = entry2.value;
|
|
3186
|
-
}
|
|
3187
|
-
continue;
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3191
|
-
break;
|
|
3192
|
-
}
|
|
3193
|
-
reader.skip(tag & 7);
|
|
3194
|
-
}
|
|
3195
|
-
return message;
|
|
3196
|
-
},
|
|
3197
|
-
fromJSON(object) {
|
|
3198
|
-
return {
|
|
3199
|
-
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3200
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3201
|
-
(acc, [key, value]) => {
|
|
3202
|
-
acc[key] = value;
|
|
3203
|
-
return acc;
|
|
3204
|
-
},
|
|
3205
|
-
{}
|
|
3206
|
-
) : {}
|
|
3207
|
-
};
|
|
3208
|
-
},
|
|
3209
|
-
toJSON(message) {
|
|
3210
|
-
const obj = {};
|
|
3211
|
-
if (message.type !== "") {
|
|
3212
|
-
obj.type = message.type;
|
|
3213
|
-
}
|
|
3214
|
-
if (message.config) {
|
|
3215
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3216
|
-
if (entries.length > 0) {
|
|
3217
|
-
obj.config = {};
|
|
3218
|
-
entries.forEach(([k, v]) => {
|
|
3219
|
-
obj.config[k] = v;
|
|
3220
|
-
});
|
|
3221
|
-
}
|
|
3222
|
-
}
|
|
3223
|
-
return obj;
|
|
3224
|
-
},
|
|
3225
|
-
create(base) {
|
|
3226
|
-
return BackendConfig.fromPartial(base ?? {});
|
|
3227
|
-
},
|
|
3228
|
-
fromPartial(object) {
|
|
3229
|
-
const message = createBaseBackendConfig();
|
|
3230
|
-
message.type = object.type ?? "";
|
|
3231
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3232
|
-
(acc, [key, value]) => {
|
|
3233
|
-
if (value !== void 0) {
|
|
3234
|
-
acc[key] = value;
|
|
3235
|
-
}
|
|
3236
|
-
return acc;
|
|
3237
|
-
},
|
|
3238
|
-
{}
|
|
3239
|
-
);
|
|
3240
|
-
return message;
|
|
3241
|
-
}
|
|
3242
|
-
};
|
|
3243
|
-
function createBaseBackendConfig_ConfigEntry() {
|
|
3244
|
-
return { key: "", value: void 0 };
|
|
3245
|
-
}
|
|
3246
|
-
var BackendConfig_ConfigEntry = {
|
|
3247
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
3248
|
-
if (message.key !== "") {
|
|
3249
|
-
writer.uint32(10).string(message.key);
|
|
3250
|
-
}
|
|
3251
|
-
if (message.value !== void 0) {
|
|
3252
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3253
|
-
}
|
|
3254
|
-
return writer;
|
|
3255
|
-
},
|
|
3256
|
-
decode(input, length) {
|
|
3257
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
3258
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3259
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3260
|
-
while (reader.pos < end) {
|
|
3261
|
-
const tag = reader.uint32();
|
|
3262
|
-
switch (tag >>> 3) {
|
|
3263
|
-
case 1: {
|
|
3264
|
-
if (tag !== 10) {
|
|
3265
|
-
break;
|
|
3266
|
-
}
|
|
3267
|
-
message.key = reader.string();
|
|
3268
|
-
continue;
|
|
3269
|
-
}
|
|
3270
|
-
case 2: {
|
|
3271
|
-
if (tag !== 18) {
|
|
3272
|
-
break;
|
|
3273
|
-
}
|
|
3274
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
3275
|
-
continue;
|
|
3276
|
-
}
|
|
3277
|
-
}
|
|
3278
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3279
|
-
break;
|
|
3280
|
-
}
|
|
3281
|
-
reader.skip(tag & 7);
|
|
3282
|
-
}
|
|
3283
|
-
return message;
|
|
3284
|
-
},
|
|
3285
|
-
fromJSON(object) {
|
|
3286
|
-
return {
|
|
3287
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3288
|
-
value: isSet2(object?.value) ? object.value : void 0
|
|
3289
|
-
};
|
|
3290
|
-
},
|
|
3291
|
-
toJSON(message) {
|
|
3292
|
-
const obj = {};
|
|
3293
|
-
if (message.key !== "") {
|
|
3294
|
-
obj.key = message.key;
|
|
3295
|
-
}
|
|
3296
|
-
if (message.value !== void 0) {
|
|
3297
|
-
obj.value = message.value;
|
|
3298
|
-
}
|
|
3299
|
-
return obj;
|
|
3300
|
-
},
|
|
3301
|
-
create(base) {
|
|
3302
|
-
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3303
|
-
},
|
|
3304
|
-
fromPartial(object) {
|
|
3305
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3306
|
-
message.key = object.key ?? "";
|
|
3307
|
-
message.value = object.value ?? void 0;
|
|
3308
|
-
return message;
|
|
3309
|
-
}
|
|
3310
|
-
};
|
|
3311
3135
|
function createBaseProviderConfig() {
|
|
3312
3136
|
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3313
3137
|
}
|
|
@@ -5974,13 +5798,16 @@ var UngroupAction = {
|
|
|
5974
5798
|
}
|
|
5975
5799
|
};
|
|
5976
5800
|
function createBaseSetVariablesAction() {
|
|
5977
|
-
return { variables: [] };
|
|
5801
|
+
return { variables: [], scope: "" };
|
|
5978
5802
|
}
|
|
5979
5803
|
var SetVariablesAction = {
|
|
5980
5804
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
5981
5805
|
for (const v of message.variables) {
|
|
5982
5806
|
InputDef2.encode(v, writer.uint32(10).fork()).join();
|
|
5983
5807
|
}
|
|
5808
|
+
if (message.scope !== "") {
|
|
5809
|
+
writer.uint32(18).string(message.scope);
|
|
5810
|
+
}
|
|
5984
5811
|
return writer;
|
|
5985
5812
|
},
|
|
5986
5813
|
decode(input, length) {
|
|
@@ -5997,6 +5824,13 @@ var SetVariablesAction = {
|
|
|
5997
5824
|
message.variables.push(InputDef2.decode(reader, reader.uint32()));
|
|
5998
5825
|
continue;
|
|
5999
5826
|
}
|
|
5827
|
+
case 2: {
|
|
5828
|
+
if (tag !== 18) {
|
|
5829
|
+
break;
|
|
5830
|
+
}
|
|
5831
|
+
message.scope = reader.string();
|
|
5832
|
+
continue;
|
|
5833
|
+
}
|
|
6000
5834
|
}
|
|
6001
5835
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6002
5836
|
break;
|
|
@@ -6007,7 +5841,8 @@ var SetVariablesAction = {
|
|
|
6007
5841
|
},
|
|
6008
5842
|
fromJSON(object) {
|
|
6009
5843
|
return {
|
|
6010
|
-
variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : []
|
|
5844
|
+
variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : [],
|
|
5845
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6011
5846
|
};
|
|
6012
5847
|
},
|
|
6013
5848
|
toJSON(message) {
|
|
@@ -6015,6 +5850,9 @@ var SetVariablesAction = {
|
|
|
6015
5850
|
if (message.variables?.length) {
|
|
6016
5851
|
obj.variables = message.variables.map((e) => InputDef2.toJSON(e));
|
|
6017
5852
|
}
|
|
5853
|
+
if (message.scope !== "") {
|
|
5854
|
+
obj.scope = message.scope;
|
|
5855
|
+
}
|
|
6018
5856
|
return obj;
|
|
6019
5857
|
},
|
|
6020
5858
|
create(base) {
|
|
@@ -6023,11 +5861,12 @@ var SetVariablesAction = {
|
|
|
6023
5861
|
fromPartial(object) {
|
|
6024
5862
|
const message = createBaseSetVariablesAction();
|
|
6025
5863
|
message.variables = object.variables?.map((e) => InputDef2.fromPartial(e)) || [];
|
|
5864
|
+
message.scope = object.scope ?? "";
|
|
6026
5865
|
return message;
|
|
6027
5866
|
}
|
|
6028
5867
|
};
|
|
6029
5868
|
function createBaseSetExportsAction() {
|
|
6030
|
-
return { outputs: [], output_defs: [] };
|
|
5869
|
+
return { outputs: [], output_defs: [], scope: "" };
|
|
6031
5870
|
}
|
|
6032
5871
|
var SetExportsAction = {
|
|
6033
5872
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -6037,6 +5876,9 @@ var SetExportsAction = {
|
|
|
6037
5876
|
for (const v of message.output_defs) {
|
|
6038
5877
|
OutputDef2.encode(v, writer.uint32(18).fork()).join();
|
|
6039
5878
|
}
|
|
5879
|
+
if (message.scope !== "") {
|
|
5880
|
+
writer.uint32(26).string(message.scope);
|
|
5881
|
+
}
|
|
6040
5882
|
return writer;
|
|
6041
5883
|
},
|
|
6042
5884
|
decode(input, length) {
|
|
@@ -6060,6 +5902,13 @@ var SetExportsAction = {
|
|
|
6060
5902
|
message.output_defs.push(OutputDef2.decode(reader, reader.uint32()));
|
|
6061
5903
|
continue;
|
|
6062
5904
|
}
|
|
5905
|
+
case 3: {
|
|
5906
|
+
if (tag !== 26) {
|
|
5907
|
+
break;
|
|
5908
|
+
}
|
|
5909
|
+
message.scope = reader.string();
|
|
5910
|
+
continue;
|
|
5911
|
+
}
|
|
6063
5912
|
}
|
|
6064
5913
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6065
5914
|
break;
|
|
@@ -6071,7 +5920,8 @@ var SetExportsAction = {
|
|
|
6071
5920
|
fromJSON(object) {
|
|
6072
5921
|
return {
|
|
6073
5922
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => OutputExportEntry.fromJSON(e)) : [],
|
|
6074
|
-
output_defs: globalThis.Array.isArray(object?.outputDefs) ? object.outputDefs.map((e) => OutputDef2.fromJSON(e)) : globalThis.Array.isArray(object?.output_defs) ? object.output_defs.map((e) => OutputDef2.fromJSON(e)) : []
|
|
5923
|
+
output_defs: globalThis.Array.isArray(object?.outputDefs) ? object.outputDefs.map((e) => OutputDef2.fromJSON(e)) : globalThis.Array.isArray(object?.output_defs) ? object.output_defs.map((e) => OutputDef2.fromJSON(e)) : [],
|
|
5924
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6075
5925
|
};
|
|
6076
5926
|
},
|
|
6077
5927
|
toJSON(message) {
|
|
@@ -6082,6 +5932,9 @@ var SetExportsAction = {
|
|
|
6082
5932
|
if (message.output_defs?.length) {
|
|
6083
5933
|
obj.outputDefs = message.output_defs.map((e) => OutputDef2.toJSON(e));
|
|
6084
5934
|
}
|
|
5935
|
+
if (message.scope !== "") {
|
|
5936
|
+
obj.scope = message.scope;
|
|
5937
|
+
}
|
|
6085
5938
|
return obj;
|
|
6086
5939
|
},
|
|
6087
5940
|
create(base) {
|
|
@@ -6091,22 +5944,20 @@ var SetExportsAction = {
|
|
|
6091
5944
|
const message = createBaseSetExportsAction();
|
|
6092
5945
|
message.outputs = object.outputs?.map((e) => OutputExportEntry.fromPartial(e)) || [];
|
|
6093
5946
|
message.output_defs = object.output_defs?.map((e) => OutputDef2.fromPartial(e)) || [];
|
|
5947
|
+
message.scope = object.scope ?? "";
|
|
6094
5948
|
return message;
|
|
6095
5949
|
}
|
|
6096
5950
|
};
|
|
6097
5951
|
function createBaseOutputExportEntry() {
|
|
6098
|
-
return { name: "",
|
|
5952
|
+
return { name: "", value: "" };
|
|
6099
5953
|
}
|
|
6100
5954
|
var OutputExportEntry = {
|
|
6101
5955
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6102
5956
|
if (message.name !== "") {
|
|
6103
5957
|
writer.uint32(10).string(message.name);
|
|
6104
5958
|
}
|
|
6105
|
-
if (message.
|
|
6106
|
-
writer.uint32(
|
|
6107
|
-
}
|
|
6108
|
-
if (message.source_output !== "") {
|
|
6109
|
-
writer.uint32(26).string(message.source_output);
|
|
5959
|
+
if (message.value !== "") {
|
|
5960
|
+
writer.uint32(34).string(message.value);
|
|
6110
5961
|
}
|
|
6111
5962
|
return writer;
|
|
6112
5963
|
},
|
|
@@ -6124,18 +5975,11 @@ var OutputExportEntry = {
|
|
|
6124
5975
|
message.name = reader.string();
|
|
6125
5976
|
continue;
|
|
6126
5977
|
}
|
|
6127
|
-
case
|
|
6128
|
-
if (tag !==
|
|
6129
|
-
break;
|
|
6130
|
-
}
|
|
6131
|
-
message.source_instance = reader.string();
|
|
6132
|
-
continue;
|
|
6133
|
-
}
|
|
6134
|
-
case 3: {
|
|
6135
|
-
if (tag !== 26) {
|
|
5978
|
+
case 4: {
|
|
5979
|
+
if (tag !== 34) {
|
|
6136
5980
|
break;
|
|
6137
5981
|
}
|
|
6138
|
-
message.
|
|
5982
|
+
message.value = reader.string();
|
|
6139
5983
|
continue;
|
|
6140
5984
|
}
|
|
6141
5985
|
}
|
|
@@ -6149,8 +5993,7 @@ var OutputExportEntry = {
|
|
|
6149
5993
|
fromJSON(object) {
|
|
6150
5994
|
return {
|
|
6151
5995
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6152
|
-
|
|
6153
|
-
source_output: isSet3(object.sourceOutput) ? globalThis.String(object.sourceOutput) : isSet3(object.source_output) ? globalThis.String(object.source_output) : ""
|
|
5996
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6154
5997
|
};
|
|
6155
5998
|
},
|
|
6156
5999
|
toJSON(message) {
|
|
@@ -6158,11 +6001,8 @@ var OutputExportEntry = {
|
|
|
6158
6001
|
if (message.name !== "") {
|
|
6159
6002
|
obj.name = message.name;
|
|
6160
6003
|
}
|
|
6161
|
-
if (message.
|
|
6162
|
-
obj.
|
|
6163
|
-
}
|
|
6164
|
-
if (message.source_output !== "") {
|
|
6165
|
-
obj.sourceOutput = message.source_output;
|
|
6004
|
+
if (message.value !== "") {
|
|
6005
|
+
obj.value = message.value;
|
|
6166
6006
|
}
|
|
6167
6007
|
return obj;
|
|
6168
6008
|
},
|
|
@@ -6172,13 +6012,12 @@ var OutputExportEntry = {
|
|
|
6172
6012
|
fromPartial(object) {
|
|
6173
6013
|
const message = createBaseOutputExportEntry();
|
|
6174
6014
|
message.name = object.name ?? "";
|
|
6175
|
-
message.
|
|
6176
|
-
message.source_output = object.source_output ?? "";
|
|
6015
|
+
message.value = object.value ?? "";
|
|
6177
6016
|
return message;
|
|
6178
6017
|
}
|
|
6179
6018
|
};
|
|
6180
6019
|
function createBaseSetTerraformAction() {
|
|
6181
|
-
return { required_version: "", required_providers: [],
|
|
6020
|
+
return { required_version: "", required_providers: [], scope: "" };
|
|
6182
6021
|
}
|
|
6183
6022
|
var SetTerraformAction = {
|
|
6184
6023
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -6188,8 +6027,8 @@ var SetTerraformAction = {
|
|
|
6188
6027
|
for (const v of message.required_providers) {
|
|
6189
6028
|
ProviderReqView.encode(v, writer.uint32(18).fork()).join();
|
|
6190
6029
|
}
|
|
6191
|
-
if (message.
|
|
6192
|
-
|
|
6030
|
+
if (message.scope !== "") {
|
|
6031
|
+
writer.uint32(34).string(message.scope);
|
|
6193
6032
|
}
|
|
6194
6033
|
return writer;
|
|
6195
6034
|
},
|
|
@@ -6214,11 +6053,11 @@ var SetTerraformAction = {
|
|
|
6214
6053
|
message.required_providers.push(ProviderReqView.decode(reader, reader.uint32()));
|
|
6215
6054
|
continue;
|
|
6216
6055
|
}
|
|
6217
|
-
case
|
|
6218
|
-
if (tag !==
|
|
6056
|
+
case 4: {
|
|
6057
|
+
if (tag !== 34) {
|
|
6219
6058
|
break;
|
|
6220
6059
|
}
|
|
6221
|
-
message.
|
|
6060
|
+
message.scope = reader.string();
|
|
6222
6061
|
continue;
|
|
6223
6062
|
}
|
|
6224
6063
|
}
|
|
@@ -6233,7 +6072,7 @@ var SetTerraformAction = {
|
|
|
6233
6072
|
return {
|
|
6234
6073
|
required_version: isSet3(object.requiredVersion) ? globalThis.String(object.requiredVersion) : isSet3(object.required_version) ? globalThis.String(object.required_version) : "",
|
|
6235
6074
|
required_providers: globalThis.Array.isArray(object?.requiredProviders) ? object.requiredProviders.map((e) => ProviderReqView.fromJSON(e)) : globalThis.Array.isArray(object?.required_providers) ? object.required_providers.map((e) => ProviderReqView.fromJSON(e)) : [],
|
|
6236
|
-
|
|
6075
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6237
6076
|
};
|
|
6238
6077
|
},
|
|
6239
6078
|
toJSON(message) {
|
|
@@ -6244,8 +6083,8 @@ var SetTerraformAction = {
|
|
|
6244
6083
|
if (message.required_providers?.length) {
|
|
6245
6084
|
obj.requiredProviders = message.required_providers.map((e) => ProviderReqView.toJSON(e));
|
|
6246
6085
|
}
|
|
6247
|
-
if (message.
|
|
6248
|
-
obj.
|
|
6086
|
+
if (message.scope !== "") {
|
|
6087
|
+
obj.scope = message.scope;
|
|
6249
6088
|
}
|
|
6250
6089
|
return obj;
|
|
6251
6090
|
},
|
|
@@ -6256,18 +6095,21 @@ var SetTerraformAction = {
|
|
|
6256
6095
|
const message = createBaseSetTerraformAction();
|
|
6257
6096
|
message.required_version = object.required_version ?? "";
|
|
6258
6097
|
message.required_providers = object.required_providers?.map((e) => ProviderReqView.fromPartial(e)) || [];
|
|
6259
|
-
message.
|
|
6098
|
+
message.scope = object.scope ?? "";
|
|
6260
6099
|
return message;
|
|
6261
6100
|
}
|
|
6262
6101
|
};
|
|
6263
6102
|
function createBaseSetProvidersAction() {
|
|
6264
|
-
return { providers: [] };
|
|
6103
|
+
return { providers: [], scope: "" };
|
|
6265
6104
|
}
|
|
6266
6105
|
var SetProvidersAction = {
|
|
6267
6106
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6268
6107
|
for (const v of message.providers) {
|
|
6269
6108
|
ProviderView.encode(v, writer.uint32(10).fork()).join();
|
|
6270
6109
|
}
|
|
6110
|
+
if (message.scope !== "") {
|
|
6111
|
+
writer.uint32(18).string(message.scope);
|
|
6112
|
+
}
|
|
6271
6113
|
return writer;
|
|
6272
6114
|
},
|
|
6273
6115
|
decode(input, length) {
|
|
@@ -6284,6 +6126,13 @@ var SetProvidersAction = {
|
|
|
6284
6126
|
message.providers.push(ProviderView.decode(reader, reader.uint32()));
|
|
6285
6127
|
continue;
|
|
6286
6128
|
}
|
|
6129
|
+
case 2: {
|
|
6130
|
+
if (tag !== 18) {
|
|
6131
|
+
break;
|
|
6132
|
+
}
|
|
6133
|
+
message.scope = reader.string();
|
|
6134
|
+
continue;
|
|
6135
|
+
}
|
|
6287
6136
|
}
|
|
6288
6137
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6289
6138
|
break;
|
|
@@ -6294,7 +6143,8 @@ var SetProvidersAction = {
|
|
|
6294
6143
|
},
|
|
6295
6144
|
fromJSON(object) {
|
|
6296
6145
|
return {
|
|
6297
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : []
|
|
6146
|
+
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : [],
|
|
6147
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6298
6148
|
};
|
|
6299
6149
|
},
|
|
6300
6150
|
toJSON(message) {
|
|
@@ -6302,6 +6152,9 @@ var SetProvidersAction = {
|
|
|
6302
6152
|
if (message.providers?.length) {
|
|
6303
6153
|
obj.providers = message.providers.map((e) => ProviderView.toJSON(e));
|
|
6304
6154
|
}
|
|
6155
|
+
if (message.scope !== "") {
|
|
6156
|
+
obj.scope = message.scope;
|
|
6157
|
+
}
|
|
6305
6158
|
return obj;
|
|
6306
6159
|
},
|
|
6307
6160
|
create(base) {
|
|
@@ -6310,17 +6163,21 @@ var SetProvidersAction = {
|
|
|
6310
6163
|
fromPartial(object) {
|
|
6311
6164
|
const message = createBaseSetProvidersAction();
|
|
6312
6165
|
message.providers = object.providers?.map((e) => ProviderView.fromPartial(e)) || [];
|
|
6166
|
+
message.scope = object.scope ?? "";
|
|
6313
6167
|
return message;
|
|
6314
6168
|
}
|
|
6315
6169
|
};
|
|
6316
6170
|
function createBaseSetLocalsAction() {
|
|
6317
|
-
return { locals: [] };
|
|
6171
|
+
return { locals: [], scope: "" };
|
|
6318
6172
|
}
|
|
6319
6173
|
var SetLocalsAction = {
|
|
6320
6174
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6321
6175
|
for (const v of message.locals) {
|
|
6322
6176
|
LocalEntry.encode(v, writer.uint32(10).fork()).join();
|
|
6323
6177
|
}
|
|
6178
|
+
if (message.scope !== "") {
|
|
6179
|
+
writer.uint32(18).string(message.scope);
|
|
6180
|
+
}
|
|
6324
6181
|
return writer;
|
|
6325
6182
|
},
|
|
6326
6183
|
decode(input, length) {
|
|
@@ -6337,6 +6194,13 @@ var SetLocalsAction = {
|
|
|
6337
6194
|
message.locals.push(LocalEntry.decode(reader, reader.uint32()));
|
|
6338
6195
|
continue;
|
|
6339
6196
|
}
|
|
6197
|
+
case 2: {
|
|
6198
|
+
if (tag !== 18) {
|
|
6199
|
+
break;
|
|
6200
|
+
}
|
|
6201
|
+
message.scope = reader.string();
|
|
6202
|
+
continue;
|
|
6203
|
+
}
|
|
6340
6204
|
}
|
|
6341
6205
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6342
6206
|
break;
|
|
@@ -6347,7 +6211,8 @@ var SetLocalsAction = {
|
|
|
6347
6211
|
},
|
|
6348
6212
|
fromJSON(object) {
|
|
6349
6213
|
return {
|
|
6350
|
-
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : []
|
|
6214
|
+
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : [],
|
|
6215
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6351
6216
|
};
|
|
6352
6217
|
},
|
|
6353
6218
|
toJSON(message) {
|
|
@@ -6355,6 +6220,9 @@ var SetLocalsAction = {
|
|
|
6355
6220
|
if (message.locals?.length) {
|
|
6356
6221
|
obj.locals = message.locals.map((e) => LocalEntry.toJSON(e));
|
|
6357
6222
|
}
|
|
6223
|
+
if (message.scope !== "") {
|
|
6224
|
+
obj.scope = message.scope;
|
|
6225
|
+
}
|
|
6358
6226
|
return obj;
|
|
6359
6227
|
},
|
|
6360
6228
|
create(base) {
|
|
@@ -6363,35 +6231,365 @@ var SetLocalsAction = {
|
|
|
6363
6231
|
fromPartial(object) {
|
|
6364
6232
|
const message = createBaseSetLocalsAction();
|
|
6365
6233
|
message.locals = object.locals?.map((e) => LocalEntry.fromPartial(e)) || [];
|
|
6234
|
+
message.scope = object.scope ?? "";
|
|
6366
6235
|
return message;
|
|
6367
6236
|
}
|
|
6368
6237
|
};
|
|
6369
6238
|
function createBaseLocalEntry() {
|
|
6370
|
-
return { name: "",
|
|
6239
|
+
return { name: "", value: "" };
|
|
6371
6240
|
}
|
|
6372
6241
|
var LocalEntry = {
|
|
6373
6242
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6374
6243
|
if (message.name !== "") {
|
|
6375
6244
|
writer.uint32(10).string(message.name);
|
|
6376
6245
|
}
|
|
6377
|
-
if (message.
|
|
6378
|
-
writer.uint32(
|
|
6246
|
+
if (message.value !== "") {
|
|
6247
|
+
writer.uint32(50).string(message.value);
|
|
6379
6248
|
}
|
|
6380
|
-
|
|
6381
|
-
|
|
6249
|
+
return writer;
|
|
6250
|
+
},
|
|
6251
|
+
decode(input, length) {
|
|
6252
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
6253
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6254
|
+
const message = createBaseLocalEntry();
|
|
6255
|
+
while (reader.pos < end) {
|
|
6256
|
+
const tag = reader.uint32();
|
|
6257
|
+
switch (tag >>> 3) {
|
|
6258
|
+
case 1: {
|
|
6259
|
+
if (tag !== 10) {
|
|
6260
|
+
break;
|
|
6261
|
+
}
|
|
6262
|
+
message.name = reader.string();
|
|
6263
|
+
continue;
|
|
6264
|
+
}
|
|
6265
|
+
case 6: {
|
|
6266
|
+
if (tag !== 50) {
|
|
6267
|
+
break;
|
|
6268
|
+
}
|
|
6269
|
+
message.value = reader.string();
|
|
6270
|
+
continue;
|
|
6271
|
+
}
|
|
6272
|
+
}
|
|
6273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6274
|
+
break;
|
|
6275
|
+
}
|
|
6276
|
+
reader.skip(tag & 7);
|
|
6382
6277
|
}
|
|
6383
|
-
|
|
6384
|
-
|
|
6278
|
+
return message;
|
|
6279
|
+
},
|
|
6280
|
+
fromJSON(object) {
|
|
6281
|
+
return {
|
|
6282
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6283
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6284
|
+
};
|
|
6285
|
+
},
|
|
6286
|
+
toJSON(message) {
|
|
6287
|
+
const obj = {};
|
|
6288
|
+
if (message.name !== "") {
|
|
6289
|
+
obj.name = message.name;
|
|
6385
6290
|
}
|
|
6386
|
-
if (message.
|
|
6387
|
-
|
|
6291
|
+
if (message.value !== "") {
|
|
6292
|
+
obj.value = message.value;
|
|
6293
|
+
}
|
|
6294
|
+
return obj;
|
|
6295
|
+
},
|
|
6296
|
+
create(base) {
|
|
6297
|
+
return LocalEntry.fromPartial(base ?? {});
|
|
6298
|
+
},
|
|
6299
|
+
fromPartial(object) {
|
|
6300
|
+
const message = createBaseLocalEntry();
|
|
6301
|
+
message.name = object.name ?? "";
|
|
6302
|
+
message.value = object.value ?? "";
|
|
6303
|
+
return message;
|
|
6304
|
+
}
|
|
6305
|
+
};
|
|
6306
|
+
function createBaseSetDirectivesAction() {
|
|
6307
|
+
return { blocks: [], scope: "" };
|
|
6308
|
+
}
|
|
6309
|
+
var SetDirectivesAction = {
|
|
6310
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6311
|
+
for (const v of message.blocks) {
|
|
6312
|
+
BlockView.encode(v, writer.uint32(10).fork()).join();
|
|
6313
|
+
}
|
|
6314
|
+
if (message.scope !== "") {
|
|
6315
|
+
writer.uint32(18).string(message.scope);
|
|
6316
|
+
}
|
|
6317
|
+
return writer;
|
|
6318
|
+
},
|
|
6319
|
+
decode(input, length) {
|
|
6320
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
6321
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6322
|
+
const message = createBaseSetDirectivesAction();
|
|
6323
|
+
while (reader.pos < end) {
|
|
6324
|
+
const tag = reader.uint32();
|
|
6325
|
+
switch (tag >>> 3) {
|
|
6326
|
+
case 1: {
|
|
6327
|
+
if (tag !== 10) {
|
|
6328
|
+
break;
|
|
6329
|
+
}
|
|
6330
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
6331
|
+
continue;
|
|
6332
|
+
}
|
|
6333
|
+
case 2: {
|
|
6334
|
+
if (tag !== 18) {
|
|
6335
|
+
break;
|
|
6336
|
+
}
|
|
6337
|
+
message.scope = reader.string();
|
|
6338
|
+
continue;
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6342
|
+
break;
|
|
6343
|
+
}
|
|
6344
|
+
reader.skip(tag & 7);
|
|
6345
|
+
}
|
|
6346
|
+
return message;
|
|
6347
|
+
},
|
|
6348
|
+
fromJSON(object) {
|
|
6349
|
+
return {
|
|
6350
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
|
|
6351
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6352
|
+
};
|
|
6353
|
+
},
|
|
6354
|
+
toJSON(message) {
|
|
6355
|
+
const obj = {};
|
|
6356
|
+
if (message.blocks?.length) {
|
|
6357
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
6358
|
+
}
|
|
6359
|
+
if (message.scope !== "") {
|
|
6360
|
+
obj.scope = message.scope;
|
|
6361
|
+
}
|
|
6362
|
+
return obj;
|
|
6363
|
+
},
|
|
6364
|
+
create(base) {
|
|
6365
|
+
return SetDirectivesAction.fromPartial(base ?? {});
|
|
6366
|
+
},
|
|
6367
|
+
fromPartial(object) {
|
|
6368
|
+
const message = createBaseSetDirectivesAction();
|
|
6369
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
6370
|
+
message.scope = object.scope ?? "";
|
|
6371
|
+
return message;
|
|
6372
|
+
}
|
|
6373
|
+
};
|
|
6374
|
+
function createBaseSetBlocksAction() {
|
|
6375
|
+
return { instance_id: "", blocks: [], scope: "" };
|
|
6376
|
+
}
|
|
6377
|
+
var SetBlocksAction = {
|
|
6378
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6379
|
+
if (message.instance_id !== "") {
|
|
6380
|
+
writer.uint32(10).string(message.instance_id);
|
|
6381
|
+
}
|
|
6382
|
+
for (const v of message.blocks) {
|
|
6383
|
+
BlockView.encode(v, writer.uint32(18).fork()).join();
|
|
6384
|
+
}
|
|
6385
|
+
if (message.scope !== "") {
|
|
6386
|
+
writer.uint32(26).string(message.scope);
|
|
6387
|
+
}
|
|
6388
|
+
return writer;
|
|
6389
|
+
},
|
|
6390
|
+
decode(input, length) {
|
|
6391
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
6392
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6393
|
+
const message = createBaseSetBlocksAction();
|
|
6394
|
+
while (reader.pos < end) {
|
|
6395
|
+
const tag = reader.uint32();
|
|
6396
|
+
switch (tag >>> 3) {
|
|
6397
|
+
case 1: {
|
|
6398
|
+
if (tag !== 10) {
|
|
6399
|
+
break;
|
|
6400
|
+
}
|
|
6401
|
+
message.instance_id = reader.string();
|
|
6402
|
+
continue;
|
|
6403
|
+
}
|
|
6404
|
+
case 2: {
|
|
6405
|
+
if (tag !== 18) {
|
|
6406
|
+
break;
|
|
6407
|
+
}
|
|
6408
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
6409
|
+
continue;
|
|
6410
|
+
}
|
|
6411
|
+
case 3: {
|
|
6412
|
+
if (tag !== 26) {
|
|
6413
|
+
break;
|
|
6414
|
+
}
|
|
6415
|
+
message.scope = reader.string();
|
|
6416
|
+
continue;
|
|
6417
|
+
}
|
|
6418
|
+
}
|
|
6419
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6420
|
+
break;
|
|
6421
|
+
}
|
|
6422
|
+
reader.skip(tag & 7);
|
|
6423
|
+
}
|
|
6424
|
+
return message;
|
|
6425
|
+
},
|
|
6426
|
+
fromJSON(object) {
|
|
6427
|
+
return {
|
|
6428
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
6429
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
|
|
6430
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6431
|
+
};
|
|
6432
|
+
},
|
|
6433
|
+
toJSON(message) {
|
|
6434
|
+
const obj = {};
|
|
6435
|
+
if (message.instance_id !== "") {
|
|
6436
|
+
obj.instanceId = message.instance_id;
|
|
6437
|
+
}
|
|
6438
|
+
if (message.blocks?.length) {
|
|
6439
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
6440
|
+
}
|
|
6441
|
+
if (message.scope !== "") {
|
|
6442
|
+
obj.scope = message.scope;
|
|
6443
|
+
}
|
|
6444
|
+
return obj;
|
|
6445
|
+
},
|
|
6446
|
+
create(base) {
|
|
6447
|
+
return SetBlocksAction.fromPartial(base ?? {});
|
|
6448
|
+
},
|
|
6449
|
+
fromPartial(object) {
|
|
6450
|
+
const message = createBaseSetBlocksAction();
|
|
6451
|
+
message.instance_id = object.instance_id ?? "";
|
|
6452
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
6453
|
+
message.scope = object.scope ?? "";
|
|
6454
|
+
return message;
|
|
6455
|
+
}
|
|
6456
|
+
};
|
|
6457
|
+
function createBaseSetMetaArgumentsAction() {
|
|
6458
|
+
return { instance_id: "", count: "", for_each: "", provider: "", scope: "" };
|
|
6459
|
+
}
|
|
6460
|
+
var SetMetaArgumentsAction = {
|
|
6461
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6462
|
+
if (message.instance_id !== "") {
|
|
6463
|
+
writer.uint32(10).string(message.instance_id);
|
|
6464
|
+
}
|
|
6465
|
+
if (message.count !== "") {
|
|
6466
|
+
writer.uint32(18).string(message.count);
|
|
6467
|
+
}
|
|
6468
|
+
if (message.for_each !== "") {
|
|
6469
|
+
writer.uint32(26).string(message.for_each);
|
|
6470
|
+
}
|
|
6471
|
+
if (message.provider !== "") {
|
|
6472
|
+
writer.uint32(34).string(message.provider);
|
|
6473
|
+
}
|
|
6474
|
+
if (message.scope !== "") {
|
|
6475
|
+
writer.uint32(42).string(message.scope);
|
|
6476
|
+
}
|
|
6477
|
+
return writer;
|
|
6478
|
+
},
|
|
6479
|
+
decode(input, length) {
|
|
6480
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
6481
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6482
|
+
const message = createBaseSetMetaArgumentsAction();
|
|
6483
|
+
while (reader.pos < end) {
|
|
6484
|
+
const tag = reader.uint32();
|
|
6485
|
+
switch (tag >>> 3) {
|
|
6486
|
+
case 1: {
|
|
6487
|
+
if (tag !== 10) {
|
|
6488
|
+
break;
|
|
6489
|
+
}
|
|
6490
|
+
message.instance_id = reader.string();
|
|
6491
|
+
continue;
|
|
6492
|
+
}
|
|
6493
|
+
case 2: {
|
|
6494
|
+
if (tag !== 18) {
|
|
6495
|
+
break;
|
|
6496
|
+
}
|
|
6497
|
+
message.count = reader.string();
|
|
6498
|
+
continue;
|
|
6499
|
+
}
|
|
6500
|
+
case 3: {
|
|
6501
|
+
if (tag !== 26) {
|
|
6502
|
+
break;
|
|
6503
|
+
}
|
|
6504
|
+
message.for_each = reader.string();
|
|
6505
|
+
continue;
|
|
6506
|
+
}
|
|
6507
|
+
case 4: {
|
|
6508
|
+
if (tag !== 34) {
|
|
6509
|
+
break;
|
|
6510
|
+
}
|
|
6511
|
+
message.provider = reader.string();
|
|
6512
|
+
continue;
|
|
6513
|
+
}
|
|
6514
|
+
case 5: {
|
|
6515
|
+
if (tag !== 42) {
|
|
6516
|
+
break;
|
|
6517
|
+
}
|
|
6518
|
+
message.scope = reader.string();
|
|
6519
|
+
continue;
|
|
6520
|
+
}
|
|
6521
|
+
}
|
|
6522
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6523
|
+
break;
|
|
6524
|
+
}
|
|
6525
|
+
reader.skip(tag & 7);
|
|
6526
|
+
}
|
|
6527
|
+
return message;
|
|
6528
|
+
},
|
|
6529
|
+
fromJSON(object) {
|
|
6530
|
+
return {
|
|
6531
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
6532
|
+
count: isSet3(object.count) ? globalThis.String(object.count) : "",
|
|
6533
|
+
for_each: isSet3(object.forEach) ? globalThis.String(object.forEach) : isSet3(object.for_each) ? globalThis.String(object.for_each) : "",
|
|
6534
|
+
provider: isSet3(object.provider) ? globalThis.String(object.provider) : "",
|
|
6535
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6536
|
+
};
|
|
6537
|
+
},
|
|
6538
|
+
toJSON(message) {
|
|
6539
|
+
const obj = {};
|
|
6540
|
+
if (message.instance_id !== "") {
|
|
6541
|
+
obj.instanceId = message.instance_id;
|
|
6542
|
+
}
|
|
6543
|
+
if (message.count !== "") {
|
|
6544
|
+
obj.count = message.count;
|
|
6545
|
+
}
|
|
6546
|
+
if (message.for_each !== "") {
|
|
6547
|
+
obj.forEach = message.for_each;
|
|
6548
|
+
}
|
|
6549
|
+
if (message.provider !== "") {
|
|
6550
|
+
obj.provider = message.provider;
|
|
6551
|
+
}
|
|
6552
|
+
if (message.scope !== "") {
|
|
6553
|
+
obj.scope = message.scope;
|
|
6554
|
+
}
|
|
6555
|
+
return obj;
|
|
6556
|
+
},
|
|
6557
|
+
create(base) {
|
|
6558
|
+
return SetMetaArgumentsAction.fromPartial(base ?? {});
|
|
6559
|
+
},
|
|
6560
|
+
fromPartial(object) {
|
|
6561
|
+
const message = createBaseSetMetaArgumentsAction();
|
|
6562
|
+
message.instance_id = object.instance_id ?? "";
|
|
6563
|
+
message.count = object.count ?? "";
|
|
6564
|
+
message.for_each = object.for_each ?? "";
|
|
6565
|
+
message.provider = object.provider ?? "";
|
|
6566
|
+
message.scope = object.scope ?? "";
|
|
6567
|
+
return message;
|
|
6568
|
+
}
|
|
6569
|
+
};
|
|
6570
|
+
function createBaseAddResourceAction() {
|
|
6571
|
+
return { kind: "", type: "", name: "", scope: "" };
|
|
6572
|
+
}
|
|
6573
|
+
var AddResourceAction = {
|
|
6574
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
6575
|
+
if (message.kind !== "") {
|
|
6576
|
+
writer.uint32(10).string(message.kind);
|
|
6577
|
+
}
|
|
6578
|
+
if (message.type !== "") {
|
|
6579
|
+
writer.uint32(18).string(message.type);
|
|
6580
|
+
}
|
|
6581
|
+
if (message.name !== "") {
|
|
6582
|
+
writer.uint32(26).string(message.name);
|
|
6583
|
+
}
|
|
6584
|
+
if (message.scope !== "") {
|
|
6585
|
+
writer.uint32(34).string(message.scope);
|
|
6388
6586
|
}
|
|
6389
6587
|
return writer;
|
|
6390
6588
|
},
|
|
6391
6589
|
decode(input, length) {
|
|
6392
6590
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
6393
6591
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6394
|
-
const message =
|
|
6592
|
+
const message = createBaseAddResourceAction();
|
|
6395
6593
|
while (reader.pos < end) {
|
|
6396
6594
|
const tag = reader.uint32();
|
|
6397
6595
|
switch (tag >>> 3) {
|
|
@@ -6399,35 +6597,28 @@ var LocalEntry = {
|
|
|
6399
6597
|
if (tag !== 10) {
|
|
6400
6598
|
break;
|
|
6401
6599
|
}
|
|
6402
|
-
message.
|
|
6600
|
+
message.kind = reader.string();
|
|
6403
6601
|
continue;
|
|
6404
6602
|
}
|
|
6405
6603
|
case 2: {
|
|
6406
6604
|
if (tag !== 18) {
|
|
6407
6605
|
break;
|
|
6408
6606
|
}
|
|
6409
|
-
message.
|
|
6607
|
+
message.type = reader.string();
|
|
6410
6608
|
continue;
|
|
6411
6609
|
}
|
|
6412
6610
|
case 3: {
|
|
6413
6611
|
if (tag !== 26) {
|
|
6414
6612
|
break;
|
|
6415
6613
|
}
|
|
6416
|
-
message.
|
|
6614
|
+
message.name = reader.string();
|
|
6417
6615
|
continue;
|
|
6418
6616
|
}
|
|
6419
6617
|
case 4: {
|
|
6420
6618
|
if (tag !== 34) {
|
|
6421
6619
|
break;
|
|
6422
6620
|
}
|
|
6423
|
-
message.
|
|
6424
|
-
continue;
|
|
6425
|
-
}
|
|
6426
|
-
case 5: {
|
|
6427
|
-
if (tag !== 42) {
|
|
6428
|
-
break;
|
|
6429
|
-
}
|
|
6430
|
-
message.expression = reader.string();
|
|
6621
|
+
message.scope = reader.string();
|
|
6431
6622
|
continue;
|
|
6432
6623
|
}
|
|
6433
6624
|
}
|
|
@@ -6440,42 +6631,37 @@ var LocalEntry = {
|
|
|
6440
6631
|
},
|
|
6441
6632
|
fromJSON(object) {
|
|
6442
6633
|
return {
|
|
6634
|
+
kind: isSet3(object.kind) ? globalThis.String(object.kind) : "",
|
|
6635
|
+
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
6443
6636
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6444
|
-
|
|
6445
|
-
value: isSet3(object?.value) ? object.value : void 0,
|
|
6446
|
-
variable: isSet3(object.variable) ? globalThis.String(object.variable) : "",
|
|
6447
|
-
expression: isSet3(object.expression) ? globalThis.String(object.expression) : ""
|
|
6637
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6448
6638
|
};
|
|
6449
6639
|
},
|
|
6450
6640
|
toJSON(message) {
|
|
6451
6641
|
const obj = {};
|
|
6452
|
-
if (message.
|
|
6453
|
-
obj.
|
|
6454
|
-
}
|
|
6455
|
-
if (message.mode !== "") {
|
|
6456
|
-
obj.mode = message.mode;
|
|
6642
|
+
if (message.kind !== "") {
|
|
6643
|
+
obj.kind = message.kind;
|
|
6457
6644
|
}
|
|
6458
|
-
if (message.
|
|
6459
|
-
obj.
|
|
6645
|
+
if (message.type !== "") {
|
|
6646
|
+
obj.type = message.type;
|
|
6460
6647
|
}
|
|
6461
|
-
if (message.
|
|
6462
|
-
obj.
|
|
6648
|
+
if (message.name !== "") {
|
|
6649
|
+
obj.name = message.name;
|
|
6463
6650
|
}
|
|
6464
|
-
if (message.
|
|
6465
|
-
obj.
|
|
6651
|
+
if (message.scope !== "") {
|
|
6652
|
+
obj.scope = message.scope;
|
|
6466
6653
|
}
|
|
6467
6654
|
return obj;
|
|
6468
6655
|
},
|
|
6469
6656
|
create(base) {
|
|
6470
|
-
return
|
|
6657
|
+
return AddResourceAction.fromPartial(base ?? {});
|
|
6471
6658
|
},
|
|
6472
6659
|
fromPartial(object) {
|
|
6473
|
-
const message =
|
|
6660
|
+
const message = createBaseAddResourceAction();
|
|
6661
|
+
message.kind = object.kind ?? "";
|
|
6662
|
+
message.type = object.type ?? "";
|
|
6474
6663
|
message.name = object.name ?? "";
|
|
6475
|
-
message.
|
|
6476
|
-
message.value = object.value ?? void 0;
|
|
6477
|
-
message.variable = object.variable ?? "";
|
|
6478
|
-
message.expression = object.expression ?? "";
|
|
6664
|
+
message.scope = object.scope ?? "";
|
|
6479
6665
|
return message;
|
|
6480
6666
|
}
|
|
6481
6667
|
};
|
|
@@ -6914,7 +7100,11 @@ function createBaseAction() {
|
|
|
6914
7100
|
redo: void 0,
|
|
6915
7101
|
place_module: void 0,
|
|
6916
7102
|
set_use_providers: void 0,
|
|
6917
|
-
ungroup: void 0
|
|
7103
|
+
ungroup: void 0,
|
|
7104
|
+
set_blocks: void 0,
|
|
7105
|
+
set_directives: void 0,
|
|
7106
|
+
set_meta_arguments: void 0,
|
|
7107
|
+
add_resource: void 0
|
|
6918
7108
|
};
|
|
6919
7109
|
}
|
|
6920
7110
|
var Action = {
|
|
@@ -6979,6 +7169,18 @@ var Action = {
|
|
|
6979
7169
|
if (message.ungroup !== void 0) {
|
|
6980
7170
|
UngroupAction.encode(message.ungroup, writer.uint32(194).fork()).join();
|
|
6981
7171
|
}
|
|
7172
|
+
if (message.set_blocks !== void 0) {
|
|
7173
|
+
SetBlocksAction.encode(message.set_blocks, writer.uint32(202).fork()).join();
|
|
7174
|
+
}
|
|
7175
|
+
if (message.set_directives !== void 0) {
|
|
7176
|
+
SetDirectivesAction.encode(message.set_directives, writer.uint32(210).fork()).join();
|
|
7177
|
+
}
|
|
7178
|
+
if (message.set_meta_arguments !== void 0) {
|
|
7179
|
+
SetMetaArgumentsAction.encode(message.set_meta_arguments, writer.uint32(218).fork()).join();
|
|
7180
|
+
}
|
|
7181
|
+
if (message.add_resource !== void 0) {
|
|
7182
|
+
AddResourceAction.encode(message.add_resource, writer.uint32(226).fork()).join();
|
|
7183
|
+
}
|
|
6982
7184
|
return writer;
|
|
6983
7185
|
},
|
|
6984
7186
|
decode(input, length) {
|
|
@@ -7128,6 +7330,34 @@ var Action = {
|
|
|
7128
7330
|
message.ungroup = UngroupAction.decode(reader, reader.uint32());
|
|
7129
7331
|
continue;
|
|
7130
7332
|
}
|
|
7333
|
+
case 25: {
|
|
7334
|
+
if (tag !== 202) {
|
|
7335
|
+
break;
|
|
7336
|
+
}
|
|
7337
|
+
message.set_blocks = SetBlocksAction.decode(reader, reader.uint32());
|
|
7338
|
+
continue;
|
|
7339
|
+
}
|
|
7340
|
+
case 26: {
|
|
7341
|
+
if (tag !== 210) {
|
|
7342
|
+
break;
|
|
7343
|
+
}
|
|
7344
|
+
message.set_directives = SetDirectivesAction.decode(reader, reader.uint32());
|
|
7345
|
+
continue;
|
|
7346
|
+
}
|
|
7347
|
+
case 27: {
|
|
7348
|
+
if (tag !== 218) {
|
|
7349
|
+
break;
|
|
7350
|
+
}
|
|
7351
|
+
message.set_meta_arguments = SetMetaArgumentsAction.decode(reader, reader.uint32());
|
|
7352
|
+
continue;
|
|
7353
|
+
}
|
|
7354
|
+
case 28: {
|
|
7355
|
+
if (tag !== 226) {
|
|
7356
|
+
break;
|
|
7357
|
+
}
|
|
7358
|
+
message.add_resource = AddResourceAction.decode(reader, reader.uint32());
|
|
7359
|
+
continue;
|
|
7360
|
+
}
|
|
7131
7361
|
}
|
|
7132
7362
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7133
7363
|
break;
|
|
@@ -7157,7 +7387,11 @@ var Action = {
|
|
|
7157
7387
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
7158
7388
|
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
7159
7389
|
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0,
|
|
7160
|
-
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0
|
|
7390
|
+
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0,
|
|
7391
|
+
set_blocks: isSet3(object.setBlocks) ? SetBlocksAction.fromJSON(object.setBlocks) : isSet3(object.set_blocks) ? SetBlocksAction.fromJSON(object.set_blocks) : void 0,
|
|
7392
|
+
set_directives: isSet3(object.setDirectives) ? SetDirectivesAction.fromJSON(object.setDirectives) : isSet3(object.set_directives) ? SetDirectivesAction.fromJSON(object.set_directives) : void 0,
|
|
7393
|
+
set_meta_arguments: isSet3(object.setMetaArguments) ? SetMetaArgumentsAction.fromJSON(object.setMetaArguments) : isSet3(object.set_meta_arguments) ? SetMetaArgumentsAction.fromJSON(object.set_meta_arguments) : void 0,
|
|
7394
|
+
add_resource: isSet3(object.addResource) ? AddResourceAction.fromJSON(object.addResource) : isSet3(object.add_resource) ? AddResourceAction.fromJSON(object.add_resource) : void 0
|
|
7161
7395
|
};
|
|
7162
7396
|
},
|
|
7163
7397
|
toJSON(message) {
|
|
@@ -7222,6 +7456,18 @@ var Action = {
|
|
|
7222
7456
|
if (message.ungroup !== void 0) {
|
|
7223
7457
|
obj.ungroup = UngroupAction.toJSON(message.ungroup);
|
|
7224
7458
|
}
|
|
7459
|
+
if (message.set_blocks !== void 0) {
|
|
7460
|
+
obj.setBlocks = SetBlocksAction.toJSON(message.set_blocks);
|
|
7461
|
+
}
|
|
7462
|
+
if (message.set_directives !== void 0) {
|
|
7463
|
+
obj.setDirectives = SetDirectivesAction.toJSON(message.set_directives);
|
|
7464
|
+
}
|
|
7465
|
+
if (message.set_meta_arguments !== void 0) {
|
|
7466
|
+
obj.setMetaArguments = SetMetaArgumentsAction.toJSON(message.set_meta_arguments);
|
|
7467
|
+
}
|
|
7468
|
+
if (message.add_resource !== void 0) {
|
|
7469
|
+
obj.addResource = AddResourceAction.toJSON(message.add_resource);
|
|
7470
|
+
}
|
|
7225
7471
|
return obj;
|
|
7226
7472
|
},
|
|
7227
7473
|
create(base) {
|
|
@@ -7249,6 +7495,10 @@ var Action = {
|
|
|
7249
7495
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
7250
7496
|
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
7251
7497
|
message.ungroup = object.ungroup !== void 0 && object.ungroup !== null ? UngroupAction.fromPartial(object.ungroup) : void 0;
|
|
7498
|
+
message.set_blocks = object.set_blocks !== void 0 && object.set_blocks !== null ? SetBlocksAction.fromPartial(object.set_blocks) : void 0;
|
|
7499
|
+
message.set_directives = object.set_directives !== void 0 && object.set_directives !== null ? SetDirectivesAction.fromPartial(object.set_directives) : void 0;
|
|
7500
|
+
message.set_meta_arguments = object.set_meta_arguments !== void 0 && object.set_meta_arguments !== null ? SetMetaArgumentsAction.fromPartial(object.set_meta_arguments) : void 0;
|
|
7501
|
+
message.add_resource = object.add_resource !== void 0 && object.add_resource !== null ? AddResourceAction.fromPartial(object.add_resource) : void 0;
|
|
7252
7502
|
return message;
|
|
7253
7503
|
}
|
|
7254
7504
|
};
|
|
@@ -7600,7 +7850,7 @@ var ReadWiringCandidatesResponse = {
|
|
|
7600
7850
|
}
|
|
7601
7851
|
};
|
|
7602
7852
|
function createBaseInvokeRequest() {
|
|
7603
|
-
return { invoke_id: "", path: [], argv: [], working_directory: "" };
|
|
7853
|
+
return { invoke_id: "", path: [], argv: [], working_directory: "", stdin: Buffer.alloc(0) };
|
|
7604
7854
|
}
|
|
7605
7855
|
var InvokeRequest = {
|
|
7606
7856
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -7616,6 +7866,9 @@ var InvokeRequest = {
|
|
|
7616
7866
|
if (message.working_directory !== "") {
|
|
7617
7867
|
writer.uint32(42).string(message.working_directory);
|
|
7618
7868
|
}
|
|
7869
|
+
if (message.stdin.length !== 0) {
|
|
7870
|
+
writer.uint32(50).bytes(message.stdin);
|
|
7871
|
+
}
|
|
7619
7872
|
return writer;
|
|
7620
7873
|
},
|
|
7621
7874
|
decode(input, length) {
|
|
@@ -7653,6 +7906,13 @@ var InvokeRequest = {
|
|
|
7653
7906
|
message.working_directory = reader.string();
|
|
7654
7907
|
continue;
|
|
7655
7908
|
}
|
|
7909
|
+
case 6: {
|
|
7910
|
+
if (tag !== 50) {
|
|
7911
|
+
break;
|
|
7912
|
+
}
|
|
7913
|
+
message.stdin = Buffer.from(reader.bytes());
|
|
7914
|
+
continue;
|
|
7915
|
+
}
|
|
7656
7916
|
}
|
|
7657
7917
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7658
7918
|
break;
|
|
@@ -7666,7 +7926,8 @@ var InvokeRequest = {
|
|
|
7666
7926
|
invoke_id: isSet3(object.invokeId) ? globalThis.String(object.invokeId) : isSet3(object.invoke_id) ? globalThis.String(object.invoke_id) : "",
|
|
7667
7927
|
path: globalThis.Array.isArray(object?.path) ? object.path.map((e) => globalThis.String(e)) : [],
|
|
7668
7928
|
argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [],
|
|
7669
|
-
working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : ""
|
|
7929
|
+
working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : "",
|
|
7930
|
+
stdin: isSet3(object.stdin) ? Buffer.from(bytesFromBase64(object.stdin)) : Buffer.alloc(0)
|
|
7670
7931
|
};
|
|
7671
7932
|
},
|
|
7672
7933
|
toJSON(message) {
|
|
@@ -7683,6 +7944,9 @@ var InvokeRequest = {
|
|
|
7683
7944
|
if (message.working_directory !== "") {
|
|
7684
7945
|
obj.workingDirectory = message.working_directory;
|
|
7685
7946
|
}
|
|
7947
|
+
if (message.stdin.length !== 0) {
|
|
7948
|
+
obj.stdin = base64FromBytes(message.stdin);
|
|
7949
|
+
}
|
|
7686
7950
|
return obj;
|
|
7687
7951
|
},
|
|
7688
7952
|
create(base) {
|
|
@@ -7694,6 +7958,7 @@ var InvokeRequest = {
|
|
|
7694
7958
|
message.path = object.path?.map((e) => e) || [];
|
|
7695
7959
|
message.argv = object.argv?.map((e) => e) || [];
|
|
7696
7960
|
message.working_directory = object.working_directory ?? "";
|
|
7961
|
+
message.stdin = object.stdin ?? Buffer.alloc(0);
|
|
7697
7962
|
return message;
|
|
7698
7963
|
}
|
|
7699
7964
|
};
|
|
@@ -9191,25 +9456,29 @@ var ProviderReqView = {
|
|
|
9191
9456
|
return message;
|
|
9192
9457
|
}
|
|
9193
9458
|
};
|
|
9194
|
-
function
|
|
9195
|
-
return {
|
|
9459
|
+
function createBaseProviderView() {
|
|
9460
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
9196
9461
|
}
|
|
9197
|
-
var
|
|
9462
|
+
var ProviderView = {
|
|
9198
9463
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
9199
|
-
if (message.
|
|
9200
|
-
writer.uint32(10).string(message.
|
|
9464
|
+
if (message.name !== "") {
|
|
9465
|
+
writer.uint32(10).string(message.name);
|
|
9466
|
+
}
|
|
9467
|
+
if (message.alias !== "") {
|
|
9468
|
+
writer.uint32(18).string(message.alias);
|
|
9201
9469
|
}
|
|
9202
9470
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
9203
|
-
|
|
9204
|
-
BackendView_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9205
|
-
}
|
|
9471
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
9206
9472
|
});
|
|
9473
|
+
for (const v of message.blocks) {
|
|
9474
|
+
BlockView.encode(v, writer.uint32(42).fork()).join();
|
|
9475
|
+
}
|
|
9207
9476
|
return writer;
|
|
9208
9477
|
},
|
|
9209
9478
|
decode(input, length) {
|
|
9210
9479
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
9211
9480
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9212
|
-
const message =
|
|
9481
|
+
const message = createBaseProviderView();
|
|
9213
9482
|
while (reader.pos < end) {
|
|
9214
9483
|
const tag = reader.uint32();
|
|
9215
9484
|
switch (tag >>> 3) {
|
|
@@ -9217,17 +9486,31 @@ var BackendView = {
|
|
|
9217
9486
|
if (tag !== 10) {
|
|
9218
9487
|
break;
|
|
9219
9488
|
}
|
|
9220
|
-
message.
|
|
9489
|
+
message.name = reader.string();
|
|
9221
9490
|
continue;
|
|
9222
9491
|
}
|
|
9223
9492
|
case 2: {
|
|
9224
9493
|
if (tag !== 18) {
|
|
9225
9494
|
break;
|
|
9226
9495
|
}
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9496
|
+
message.alias = reader.string();
|
|
9497
|
+
continue;
|
|
9498
|
+
}
|
|
9499
|
+
case 3: {
|
|
9500
|
+
if (tag !== 26) {
|
|
9501
|
+
break;
|
|
9502
|
+
}
|
|
9503
|
+
const entry3 = ProviderView_ConfigEntry.decode(reader, reader.uint32());
|
|
9504
|
+
if (entry3.value !== void 0) {
|
|
9505
|
+
message.config[entry3.key] = entry3.value;
|
|
9506
|
+
}
|
|
9507
|
+
continue;
|
|
9508
|
+
}
|
|
9509
|
+
case 5: {
|
|
9510
|
+
if (tag !== 42) {
|
|
9511
|
+
break;
|
|
9230
9512
|
}
|
|
9513
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
9231
9514
|
continue;
|
|
9232
9515
|
}
|
|
9233
9516
|
}
|
|
@@ -9240,20 +9523,25 @@ var BackendView = {
|
|
|
9240
9523
|
},
|
|
9241
9524
|
fromJSON(object) {
|
|
9242
9525
|
return {
|
|
9243
|
-
|
|
9526
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9527
|
+
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
9244
9528
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
9245
9529
|
(acc, [key, value]) => {
|
|
9246
|
-
acc[key] = value;
|
|
9530
|
+
acc[key] = globalThis.String(value);
|
|
9247
9531
|
return acc;
|
|
9248
9532
|
},
|
|
9249
9533
|
{}
|
|
9250
|
-
) : {}
|
|
9534
|
+
) : {},
|
|
9535
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
|
|
9251
9536
|
};
|
|
9252
9537
|
},
|
|
9253
9538
|
toJSON(message) {
|
|
9254
9539
|
const obj = {};
|
|
9255
|
-
if (message.
|
|
9256
|
-
obj.
|
|
9540
|
+
if (message.name !== "") {
|
|
9541
|
+
obj.name = message.name;
|
|
9542
|
+
}
|
|
9543
|
+
if (message.alias !== "") {
|
|
9544
|
+
obj.alias = message.alias;
|
|
9257
9545
|
}
|
|
9258
9546
|
if (message.config) {
|
|
9259
9547
|
const entries = globalThis.Object.entries(message.config);
|
|
@@ -9264,43 +9552,48 @@ var BackendView = {
|
|
|
9264
9552
|
});
|
|
9265
9553
|
}
|
|
9266
9554
|
}
|
|
9555
|
+
if (message.blocks?.length) {
|
|
9556
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
9557
|
+
}
|
|
9267
9558
|
return obj;
|
|
9268
9559
|
},
|
|
9269
9560
|
create(base) {
|
|
9270
|
-
return
|
|
9561
|
+
return ProviderView.fromPartial(base ?? {});
|
|
9271
9562
|
},
|
|
9272
9563
|
fromPartial(object) {
|
|
9273
|
-
const message =
|
|
9274
|
-
message.
|
|
9564
|
+
const message = createBaseProviderView();
|
|
9565
|
+
message.name = object.name ?? "";
|
|
9566
|
+
message.alias = object.alias ?? "";
|
|
9275
9567
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
9276
9568
|
(acc, [key, value]) => {
|
|
9277
9569
|
if (value !== void 0) {
|
|
9278
|
-
acc[key] = value;
|
|
9570
|
+
acc[key] = globalThis.String(value);
|
|
9279
9571
|
}
|
|
9280
9572
|
return acc;
|
|
9281
9573
|
},
|
|
9282
9574
|
{}
|
|
9283
9575
|
);
|
|
9576
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
9284
9577
|
return message;
|
|
9285
9578
|
}
|
|
9286
9579
|
};
|
|
9287
|
-
function
|
|
9288
|
-
return { key: "", value:
|
|
9580
|
+
function createBaseProviderView_ConfigEntry() {
|
|
9581
|
+
return { key: "", value: "" };
|
|
9289
9582
|
}
|
|
9290
|
-
var
|
|
9583
|
+
var ProviderView_ConfigEntry = {
|
|
9291
9584
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
9292
9585
|
if (message.key !== "") {
|
|
9293
9586
|
writer.uint32(10).string(message.key);
|
|
9294
9587
|
}
|
|
9295
|
-
if (message.value !==
|
|
9296
|
-
|
|
9588
|
+
if (message.value !== "") {
|
|
9589
|
+
writer.uint32(18).string(message.value);
|
|
9297
9590
|
}
|
|
9298
9591
|
return writer;
|
|
9299
9592
|
},
|
|
9300
9593
|
decode(input, length) {
|
|
9301
9594
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
9302
9595
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9303
|
-
const message =
|
|
9596
|
+
const message = createBaseProviderView_ConfigEntry();
|
|
9304
9597
|
while (reader.pos < end) {
|
|
9305
9598
|
const tag = reader.uint32();
|
|
9306
9599
|
switch (tag >>> 3) {
|
|
@@ -9315,7 +9608,7 @@ var BackendView_ConfigEntry = {
|
|
|
9315
9608
|
if (tag !== 18) {
|
|
9316
9609
|
break;
|
|
9317
9610
|
}
|
|
9318
|
-
message.value =
|
|
9611
|
+
message.value = reader.string();
|
|
9319
9612
|
continue;
|
|
9320
9613
|
}
|
|
9321
9614
|
}
|
|
@@ -9329,7 +9622,7 @@ var BackendView_ConfigEntry = {
|
|
|
9329
9622
|
fromJSON(object) {
|
|
9330
9623
|
return {
|
|
9331
9624
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
9332
|
-
value: isSet3(object
|
|
9625
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9333
9626
|
};
|
|
9334
9627
|
},
|
|
9335
9628
|
toJSON(message) {
|
|
@@ -9337,44 +9630,44 @@ var BackendView_ConfigEntry = {
|
|
|
9337
9630
|
if (message.key !== "") {
|
|
9338
9631
|
obj.key = message.key;
|
|
9339
9632
|
}
|
|
9340
|
-
if (message.value !==
|
|
9633
|
+
if (message.value !== "") {
|
|
9341
9634
|
obj.value = message.value;
|
|
9342
9635
|
}
|
|
9343
9636
|
return obj;
|
|
9344
9637
|
},
|
|
9345
9638
|
create(base) {
|
|
9346
|
-
return
|
|
9639
|
+
return ProviderView_ConfigEntry.fromPartial(base ?? {});
|
|
9347
9640
|
},
|
|
9348
9641
|
fromPartial(object) {
|
|
9349
|
-
const message =
|
|
9642
|
+
const message = createBaseProviderView_ConfigEntry();
|
|
9350
9643
|
message.key = object.key ?? "";
|
|
9351
|
-
message.value = object.value ??
|
|
9644
|
+
message.value = object.value ?? "";
|
|
9352
9645
|
return message;
|
|
9353
9646
|
}
|
|
9354
9647
|
};
|
|
9355
|
-
function
|
|
9356
|
-
return {
|
|
9648
|
+
function createBaseBlockView() {
|
|
9649
|
+
return { type: "", labels: [], attributes: [], blocks: [] };
|
|
9357
9650
|
}
|
|
9358
|
-
var
|
|
9651
|
+
var BlockView = {
|
|
9359
9652
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
9360
|
-
if (message.
|
|
9361
|
-
writer.uint32(10).string(message.
|
|
9653
|
+
if (message.type !== "") {
|
|
9654
|
+
writer.uint32(10).string(message.type);
|
|
9362
9655
|
}
|
|
9363
|
-
|
|
9364
|
-
writer.uint32(18).string(
|
|
9656
|
+
for (const v of message.labels) {
|
|
9657
|
+
writer.uint32(18).string(v);
|
|
9658
|
+
}
|
|
9659
|
+
for (const v of message.attributes) {
|
|
9660
|
+
AttributeView.encode(v, writer.uint32(26).fork()).join();
|
|
9365
9661
|
}
|
|
9366
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
9367
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
9368
|
-
});
|
|
9369
9662
|
for (const v of message.blocks) {
|
|
9370
|
-
|
|
9663
|
+
BlockView.encode(v, writer.uint32(34).fork()).join();
|
|
9371
9664
|
}
|
|
9372
9665
|
return writer;
|
|
9373
9666
|
},
|
|
9374
9667
|
decode(input, length) {
|
|
9375
9668
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
9376
9669
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9377
|
-
const message =
|
|
9670
|
+
const message = createBaseBlockView();
|
|
9378
9671
|
while (reader.pos < end) {
|
|
9379
9672
|
const tag = reader.uint32();
|
|
9380
9673
|
switch (tag >>> 3) {
|
|
@@ -9382,31 +9675,28 @@ var ProviderView = {
|
|
|
9382
9675
|
if (tag !== 10) {
|
|
9383
9676
|
break;
|
|
9384
9677
|
}
|
|
9385
|
-
message.
|
|
9678
|
+
message.type = reader.string();
|
|
9386
9679
|
continue;
|
|
9387
9680
|
}
|
|
9388
9681
|
case 2: {
|
|
9389
9682
|
if (tag !== 18) {
|
|
9390
9683
|
break;
|
|
9391
9684
|
}
|
|
9392
|
-
message.
|
|
9685
|
+
message.labels.push(reader.string());
|
|
9393
9686
|
continue;
|
|
9394
9687
|
}
|
|
9395
9688
|
case 3: {
|
|
9396
9689
|
if (tag !== 26) {
|
|
9397
9690
|
break;
|
|
9398
9691
|
}
|
|
9399
|
-
|
|
9400
|
-
if (entry3.value !== void 0) {
|
|
9401
|
-
message.config[entry3.key] = entry3.value;
|
|
9402
|
-
}
|
|
9692
|
+
message.attributes.push(AttributeView.decode(reader, reader.uint32()));
|
|
9403
9693
|
continue;
|
|
9404
9694
|
}
|
|
9405
9695
|
case 4: {
|
|
9406
9696
|
if (tag !== 34) {
|
|
9407
9697
|
break;
|
|
9408
9698
|
}
|
|
9409
|
-
message.blocks.push(
|
|
9699
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
9410
9700
|
continue;
|
|
9411
9701
|
}
|
|
9412
9702
|
}
|
|
@@ -9419,67 +9709,47 @@ var ProviderView = {
|
|
|
9419
9709
|
},
|
|
9420
9710
|
fromJSON(object) {
|
|
9421
9711
|
return {
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
acc[key] = globalThis.String(value);
|
|
9427
|
-
return acc;
|
|
9428
|
-
},
|
|
9429
|
-
{}
|
|
9430
|
-
) : {},
|
|
9431
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
9712
|
+
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
9713
|
+
labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
|
|
9714
|
+
attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => AttributeView.fromJSON(e)) : [],
|
|
9715
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
|
|
9432
9716
|
};
|
|
9433
9717
|
},
|
|
9434
9718
|
toJSON(message) {
|
|
9435
9719
|
const obj = {};
|
|
9436
|
-
if (message.
|
|
9437
|
-
obj.
|
|
9720
|
+
if (message.type !== "") {
|
|
9721
|
+
obj.type = message.type;
|
|
9438
9722
|
}
|
|
9439
|
-
if (message.
|
|
9440
|
-
obj.
|
|
9723
|
+
if (message.labels?.length) {
|
|
9724
|
+
obj.labels = message.labels;
|
|
9441
9725
|
}
|
|
9442
|
-
if (message.
|
|
9443
|
-
|
|
9444
|
-
if (entries.length > 0) {
|
|
9445
|
-
obj.config = {};
|
|
9446
|
-
entries.forEach(([k, v]) => {
|
|
9447
|
-
obj.config[k] = v;
|
|
9448
|
-
});
|
|
9449
|
-
}
|
|
9726
|
+
if (message.attributes?.length) {
|
|
9727
|
+
obj.attributes = message.attributes.map((e) => AttributeView.toJSON(e));
|
|
9450
9728
|
}
|
|
9451
9729
|
if (message.blocks?.length) {
|
|
9452
|
-
obj.blocks = message.blocks.map((e) =>
|
|
9730
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
9453
9731
|
}
|
|
9454
9732
|
return obj;
|
|
9455
9733
|
},
|
|
9456
9734
|
create(base) {
|
|
9457
|
-
return
|
|
9735
|
+
return BlockView.fromPartial(base ?? {});
|
|
9458
9736
|
},
|
|
9459
9737
|
fromPartial(object) {
|
|
9460
|
-
const message =
|
|
9461
|
-
message.
|
|
9462
|
-
message.
|
|
9463
|
-
message.
|
|
9464
|
-
|
|
9465
|
-
if (value !== void 0) {
|
|
9466
|
-
acc[key] = globalThis.String(value);
|
|
9467
|
-
}
|
|
9468
|
-
return acc;
|
|
9469
|
-
},
|
|
9470
|
-
{}
|
|
9471
|
-
);
|
|
9472
|
-
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
9738
|
+
const message = createBaseBlockView();
|
|
9739
|
+
message.type = object.type ?? "";
|
|
9740
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
9741
|
+
message.attributes = object.attributes?.map((e) => AttributeView.fromPartial(e)) || [];
|
|
9742
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
9473
9743
|
return message;
|
|
9474
9744
|
}
|
|
9475
9745
|
};
|
|
9476
|
-
function
|
|
9477
|
-
return {
|
|
9746
|
+
function createBaseAttributeView() {
|
|
9747
|
+
return { name: "", value: "" };
|
|
9478
9748
|
}
|
|
9479
|
-
var
|
|
9749
|
+
var AttributeView = {
|
|
9480
9750
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
9481
|
-
if (message.
|
|
9482
|
-
writer.uint32(10).string(message.
|
|
9751
|
+
if (message.name !== "") {
|
|
9752
|
+
writer.uint32(10).string(message.name);
|
|
9483
9753
|
}
|
|
9484
9754
|
if (message.value !== "") {
|
|
9485
9755
|
writer.uint32(18).string(message.value);
|
|
@@ -9489,7 +9759,7 @@ var ProviderView_ConfigEntry = {
|
|
|
9489
9759
|
decode(input, length) {
|
|
9490
9760
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
9491
9761
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9492
|
-
const message =
|
|
9762
|
+
const message = createBaseAttributeView();
|
|
9493
9763
|
while (reader.pos < end) {
|
|
9494
9764
|
const tag = reader.uint32();
|
|
9495
9765
|
switch (tag >>> 3) {
|
|
@@ -9497,7 +9767,7 @@ var ProviderView_ConfigEntry = {
|
|
|
9497
9767
|
if (tag !== 10) {
|
|
9498
9768
|
break;
|
|
9499
9769
|
}
|
|
9500
|
-
message.
|
|
9770
|
+
message.name = reader.string();
|
|
9501
9771
|
continue;
|
|
9502
9772
|
}
|
|
9503
9773
|
case 2: {
|
|
@@ -9517,14 +9787,14 @@ var ProviderView_ConfigEntry = {
|
|
|
9517
9787
|
},
|
|
9518
9788
|
fromJSON(object) {
|
|
9519
9789
|
return {
|
|
9520
|
-
|
|
9790
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9521
9791
|
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9522
9792
|
};
|
|
9523
9793
|
},
|
|
9524
9794
|
toJSON(message) {
|
|
9525
9795
|
const obj = {};
|
|
9526
|
-
if (message.
|
|
9527
|
-
obj.
|
|
9796
|
+
if (message.name !== "") {
|
|
9797
|
+
obj.name = message.name;
|
|
9528
9798
|
}
|
|
9529
9799
|
if (message.value !== "") {
|
|
9530
9800
|
obj.value = message.value;
|
|
@@ -9532,11 +9802,11 @@ var ProviderView_ConfigEntry = {
|
|
|
9532
9802
|
return obj;
|
|
9533
9803
|
},
|
|
9534
9804
|
create(base) {
|
|
9535
|
-
return
|
|
9805
|
+
return AttributeView.fromPartial(base ?? {});
|
|
9536
9806
|
},
|
|
9537
9807
|
fromPartial(object) {
|
|
9538
|
-
const message =
|
|
9539
|
-
message.
|
|
9808
|
+
const message = createBaseAttributeView();
|
|
9809
|
+
message.name = object.name ?? "";
|
|
9540
9810
|
message.value = object.value ?? "";
|
|
9541
9811
|
return message;
|
|
9542
9812
|
}
|
|
@@ -10091,6 +10361,12 @@ var LaceEngineClient = (0, import_grpc_js.makeGenericClientConstructor)(
|
|
|
10091
10361
|
LaceEngineService,
|
|
10092
10362
|
"lace.engine.LaceEngine"
|
|
10093
10363
|
);
|
|
10364
|
+
function bytesFromBase64(b64) {
|
|
10365
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
10366
|
+
}
|
|
10367
|
+
function base64FromBytes(arr) {
|
|
10368
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
10369
|
+
}
|
|
10094
10370
|
function longToNumber(int64) {
|
|
10095
10371
|
const num = globalThis.Number(int64.toString());
|
|
10096
10372
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -10192,7 +10468,7 @@ var Any = {
|
|
|
10192
10468
|
fromJSON(object) {
|
|
10193
10469
|
return {
|
|
10194
10470
|
type_url: isSet4(object.typeUrl) ? globalThis.String(object.typeUrl) : isSet4(object.type_url) ? globalThis.String(object.type_url) : "",
|
|
10195
|
-
value: isSet4(object.value) ? Buffer.from(
|
|
10471
|
+
value: isSet4(object.value) ? Buffer.from(bytesFromBase642(object.value)) : Buffer.alloc(0)
|
|
10196
10472
|
};
|
|
10197
10473
|
},
|
|
10198
10474
|
toJSON(message) {
|
|
@@ -10201,7 +10477,7 @@ var Any = {
|
|
|
10201
10477
|
obj.typeUrl = message.type_url;
|
|
10202
10478
|
}
|
|
10203
10479
|
if (message.value.length !== 0) {
|
|
10204
|
-
obj.value =
|
|
10480
|
+
obj.value = base64FromBytes2(message.value);
|
|
10205
10481
|
}
|
|
10206
10482
|
return obj;
|
|
10207
10483
|
},
|
|
@@ -10215,10 +10491,10 @@ var Any = {
|
|
|
10215
10491
|
return message;
|
|
10216
10492
|
}
|
|
10217
10493
|
};
|
|
10218
|
-
function
|
|
10494
|
+
function bytesFromBase642(b64) {
|
|
10219
10495
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
10220
10496
|
}
|
|
10221
|
-
function
|
|
10497
|
+
function base64FromBytes2(arr) {
|
|
10222
10498
|
return globalThis.Buffer.from(arr).toString("base64");
|
|
10223
10499
|
}
|
|
10224
10500
|
function isSet4(value) {
|