@lace-cloud/canvas 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +152 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.mjs +152 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -5705,9 +5705,10 @@ function createBaseInputDef() {
|
|
|
5705
5705
|
required: false,
|
|
5706
5706
|
description: "",
|
|
5707
5707
|
default_value: void 0,
|
|
5708
|
-
validation:
|
|
5708
|
+
validation: [],
|
|
5709
5709
|
sensitive: false,
|
|
5710
|
-
nullable: void 0
|
|
5710
|
+
nullable: void 0,
|
|
5711
|
+
ephemeral: void 0
|
|
5711
5712
|
};
|
|
5712
5713
|
}
|
|
5713
5714
|
var InputDef = {
|
|
@@ -5727,8 +5728,8 @@ var InputDef = {
|
|
|
5727
5728
|
if (message.default_value !== void 0) {
|
|
5728
5729
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
5729
5730
|
}
|
|
5730
|
-
|
|
5731
|
-
ValidationBlock.encode(
|
|
5731
|
+
for (const v of message.validation) {
|
|
5732
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
5732
5733
|
}
|
|
5733
5734
|
if (message.sensitive !== false) {
|
|
5734
5735
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -5736,6 +5737,9 @@ var InputDef = {
|
|
|
5736
5737
|
if (message.nullable !== void 0) {
|
|
5737
5738
|
writer.uint32(64).bool(message.nullable);
|
|
5738
5739
|
}
|
|
5740
|
+
if (message.ephemeral !== void 0) {
|
|
5741
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
5742
|
+
}
|
|
5739
5743
|
return writer;
|
|
5740
5744
|
},
|
|
5741
5745
|
decode(input, length) {
|
|
@@ -5784,7 +5788,7 @@ var InputDef = {
|
|
|
5784
5788
|
if (tag !== 50) {
|
|
5785
5789
|
break;
|
|
5786
5790
|
}
|
|
5787
|
-
message.validation
|
|
5791
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
5788
5792
|
continue;
|
|
5789
5793
|
}
|
|
5790
5794
|
case 7: {
|
|
@@ -5801,6 +5805,13 @@ var InputDef = {
|
|
|
5801
5805
|
message.nullable = reader.bool();
|
|
5802
5806
|
continue;
|
|
5803
5807
|
}
|
|
5808
|
+
case 9: {
|
|
5809
|
+
if (tag !== 72) {
|
|
5810
|
+
break;
|
|
5811
|
+
}
|
|
5812
|
+
message.ephemeral = reader.bool();
|
|
5813
|
+
continue;
|
|
5814
|
+
}
|
|
5804
5815
|
}
|
|
5805
5816
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5806
5817
|
break;
|
|
@@ -5816,9 +5827,10 @@ var InputDef = {
|
|
|
5816
5827
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
5817
5828
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
5818
5829
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
5819
|
-
validation:
|
|
5830
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
5820
5831
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
5821
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
5832
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
5833
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
5822
5834
|
};
|
|
5823
5835
|
},
|
|
5824
5836
|
toJSON(message) {
|
|
@@ -5838,8 +5850,8 @@ var InputDef = {
|
|
|
5838
5850
|
if (message.default_value !== void 0) {
|
|
5839
5851
|
obj.defaultValue = message.default_value;
|
|
5840
5852
|
}
|
|
5841
|
-
if (message.validation
|
|
5842
|
-
obj.validation = ValidationBlock.toJSON(
|
|
5853
|
+
if (message.validation?.length) {
|
|
5854
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
5843
5855
|
}
|
|
5844
5856
|
if (message.sensitive !== false) {
|
|
5845
5857
|
obj.sensitive = message.sensitive;
|
|
@@ -5847,6 +5859,9 @@ var InputDef = {
|
|
|
5847
5859
|
if (message.nullable !== void 0) {
|
|
5848
5860
|
obj.nullable = message.nullable;
|
|
5849
5861
|
}
|
|
5862
|
+
if (message.ephemeral !== void 0) {
|
|
5863
|
+
obj.ephemeral = message.ephemeral;
|
|
5864
|
+
}
|
|
5850
5865
|
return obj;
|
|
5851
5866
|
},
|
|
5852
5867
|
create(base) {
|
|
@@ -5859,9 +5874,10 @@ var InputDef = {
|
|
|
5859
5874
|
message.required = object.required ?? false;
|
|
5860
5875
|
message.description = object.description ?? "";
|
|
5861
5876
|
message.default_value = object.default_value ?? void 0;
|
|
5862
|
-
message.validation = object.validation
|
|
5877
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
5863
5878
|
message.sensitive = object.sensitive ?? false;
|
|
5864
5879
|
message.nullable = object.nullable ?? void 0;
|
|
5880
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
5865
5881
|
return message;
|
|
5866
5882
|
}
|
|
5867
5883
|
};
|
|
@@ -5934,7 +5950,7 @@ var ValidationBlock = {
|
|
|
5934
5950
|
}
|
|
5935
5951
|
};
|
|
5936
5952
|
function createBaseOutputDef() {
|
|
5937
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
5953
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
5938
5954
|
}
|
|
5939
5955
|
var OutputDef = {
|
|
5940
5956
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -5950,6 +5966,9 @@ var OutputDef = {
|
|
|
5950
5966
|
if (message.sensitive !== false) {
|
|
5951
5967
|
writer.uint32(32).bool(message.sensitive);
|
|
5952
5968
|
}
|
|
5969
|
+
for (const v of message.depends_on) {
|
|
5970
|
+
writer.uint32(42).string(v);
|
|
5971
|
+
}
|
|
5953
5972
|
return writer;
|
|
5954
5973
|
},
|
|
5955
5974
|
decode(input, length) {
|
|
@@ -5987,6 +6006,13 @@ var OutputDef = {
|
|
|
5987
6006
|
message.sensitive = reader.bool();
|
|
5988
6007
|
continue;
|
|
5989
6008
|
}
|
|
6009
|
+
case 5: {
|
|
6010
|
+
if (tag !== 42) {
|
|
6011
|
+
break;
|
|
6012
|
+
}
|
|
6013
|
+
message.depends_on.push(reader.string());
|
|
6014
|
+
continue;
|
|
6015
|
+
}
|
|
5990
6016
|
}
|
|
5991
6017
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5992
6018
|
break;
|
|
@@ -6000,7 +6026,8 @@ var OutputDef = {
|
|
|
6000
6026
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
6001
6027
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
6002
6028
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
6003
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
6029
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
6030
|
+
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)) : []
|
|
6004
6031
|
};
|
|
6005
6032
|
},
|
|
6006
6033
|
toJSON(message) {
|
|
@@ -6017,6 +6044,9 @@ var OutputDef = {
|
|
|
6017
6044
|
if (message.sensitive !== false) {
|
|
6018
6045
|
obj.sensitive = message.sensitive;
|
|
6019
6046
|
}
|
|
6047
|
+
if (message.depends_on?.length) {
|
|
6048
|
+
obj.dependsOn = message.depends_on;
|
|
6049
|
+
}
|
|
6020
6050
|
return obj;
|
|
6021
6051
|
},
|
|
6022
6052
|
create(base) {
|
|
@@ -6028,6 +6058,7 @@ var OutputDef = {
|
|
|
6028
6058
|
message.type = object.type ?? "";
|
|
6029
6059
|
message.description = object.description ?? "";
|
|
6030
6060
|
message.sensitive = object.sensitive ?? false;
|
|
6061
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
6031
6062
|
return message;
|
|
6032
6063
|
}
|
|
6033
6064
|
};
|
|
@@ -6213,7 +6244,7 @@ var Local = {
|
|
|
6213
6244
|
}
|
|
6214
6245
|
};
|
|
6215
6246
|
function createBaseUse() {
|
|
6216
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
6247
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
6217
6248
|
}
|
|
6218
6249
|
var Use = {
|
|
6219
6250
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -6229,6 +6260,12 @@ var Use = {
|
|
|
6229
6260
|
for (const v of message.depends_on) {
|
|
6230
6261
|
writer.uint32(34).string(v);
|
|
6231
6262
|
}
|
|
6263
|
+
if (message.count !== void 0) {
|
|
6264
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
6265
|
+
}
|
|
6266
|
+
if (message.for_each !== void 0) {
|
|
6267
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
6268
|
+
}
|
|
6232
6269
|
return writer;
|
|
6233
6270
|
},
|
|
6234
6271
|
decode(input, length) {
|
|
@@ -6269,6 +6306,20 @@ var Use = {
|
|
|
6269
6306
|
message.depends_on.push(reader.string());
|
|
6270
6307
|
continue;
|
|
6271
6308
|
}
|
|
6309
|
+
case 5: {
|
|
6310
|
+
if (tag !== 42) {
|
|
6311
|
+
break;
|
|
6312
|
+
}
|
|
6313
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
6314
|
+
continue;
|
|
6315
|
+
}
|
|
6316
|
+
case 6: {
|
|
6317
|
+
if (tag !== 50) {
|
|
6318
|
+
break;
|
|
6319
|
+
}
|
|
6320
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
6321
|
+
continue;
|
|
6322
|
+
}
|
|
6272
6323
|
}
|
|
6273
6324
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6274
6325
|
break;
|
|
@@ -6288,7 +6339,9 @@ var Use = {
|
|
|
6288
6339
|
},
|
|
6289
6340
|
{}
|
|
6290
6341
|
) : {},
|
|
6291
|
-
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)) : []
|
|
6342
|
+
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)) : [],
|
|
6343
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
6344
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
6292
6345
|
};
|
|
6293
6346
|
},
|
|
6294
6347
|
toJSON(message) {
|
|
@@ -6311,6 +6364,12 @@ var Use = {
|
|
|
6311
6364
|
if (message.depends_on?.length) {
|
|
6312
6365
|
obj.dependsOn = message.depends_on;
|
|
6313
6366
|
}
|
|
6367
|
+
if (message.count !== void 0) {
|
|
6368
|
+
obj.count = Binding.toJSON(message.count);
|
|
6369
|
+
}
|
|
6370
|
+
if (message.for_each !== void 0) {
|
|
6371
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
6372
|
+
}
|
|
6314
6373
|
return obj;
|
|
6315
6374
|
},
|
|
6316
6375
|
create(base) {
|
|
@@ -6330,6 +6389,8 @@ var Use = {
|
|
|
6330
6389
|
{}
|
|
6331
6390
|
);
|
|
6332
6391
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
6392
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
6393
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
6333
6394
|
return message;
|
|
6334
6395
|
}
|
|
6335
6396
|
};
|
|
@@ -7738,9 +7799,7 @@ var ProviderConfig = {
|
|
|
7738
7799
|
writer.uint32(18).string(message.alias);
|
|
7739
7800
|
}
|
|
7740
7801
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
7741
|
-
|
|
7742
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
7743
|
-
}
|
|
7802
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
7744
7803
|
});
|
|
7745
7804
|
for (const v of message.blocks) {
|
|
7746
7805
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -7799,7 +7858,7 @@ var ProviderConfig = {
|
|
|
7799
7858
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
7800
7859
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
7801
7860
|
(acc, [key, value]) => {
|
|
7802
|
-
acc[key] = value;
|
|
7861
|
+
acc[key] = Binding.fromJSON(value);
|
|
7803
7862
|
return acc;
|
|
7804
7863
|
},
|
|
7805
7864
|
{}
|
|
@@ -7820,7 +7879,7 @@ var ProviderConfig = {
|
|
|
7820
7879
|
if (entries.length > 0) {
|
|
7821
7880
|
obj.config = {};
|
|
7822
7881
|
entries.forEach(([k, v]) => {
|
|
7823
|
-
obj.config[k] = v;
|
|
7882
|
+
obj.config[k] = Binding.toJSON(v);
|
|
7824
7883
|
});
|
|
7825
7884
|
}
|
|
7826
7885
|
}
|
|
@@ -7839,7 +7898,7 @@ var ProviderConfig = {
|
|
|
7839
7898
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
7840
7899
|
(acc, [key, value]) => {
|
|
7841
7900
|
if (value !== void 0) {
|
|
7842
|
-
acc[key] = value;
|
|
7901
|
+
acc[key] = Binding.fromPartial(value);
|
|
7843
7902
|
}
|
|
7844
7903
|
return acc;
|
|
7845
7904
|
},
|
|
@@ -7858,7 +7917,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7858
7917
|
writer.uint32(10).string(message.key);
|
|
7859
7918
|
}
|
|
7860
7919
|
if (message.value !== void 0) {
|
|
7861
|
-
|
|
7920
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
7862
7921
|
}
|
|
7863
7922
|
return writer;
|
|
7864
7923
|
},
|
|
@@ -7880,7 +7939,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7880
7939
|
if (tag !== 18) {
|
|
7881
7940
|
break;
|
|
7882
7941
|
}
|
|
7883
|
-
message.value =
|
|
7942
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
7884
7943
|
continue;
|
|
7885
7944
|
}
|
|
7886
7945
|
}
|
|
@@ -7894,7 +7953,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7894
7953
|
fromJSON(object) {
|
|
7895
7954
|
return {
|
|
7896
7955
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
7897
|
-
value: isSet2(object
|
|
7956
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
7898
7957
|
};
|
|
7899
7958
|
},
|
|
7900
7959
|
toJSON(message) {
|
|
@@ -7903,7 +7962,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7903
7962
|
obj.key = message.key;
|
|
7904
7963
|
}
|
|
7905
7964
|
if (message.value !== void 0) {
|
|
7906
|
-
obj.value = message.value;
|
|
7965
|
+
obj.value = Binding.toJSON(message.value);
|
|
7907
7966
|
}
|
|
7908
7967
|
return obj;
|
|
7909
7968
|
},
|
|
@@ -7913,7 +7972,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7913
7972
|
fromPartial(object) {
|
|
7914
7973
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
7915
7974
|
message.key = object.key ?? "";
|
|
7916
|
-
message.value = object.value
|
|
7975
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
7917
7976
|
return message;
|
|
7918
7977
|
}
|
|
7919
7978
|
};
|
|
@@ -15667,9 +15726,7 @@ var ProviderView = {
|
|
|
15667
15726
|
writer.uint32(18).string(message.alias);
|
|
15668
15727
|
}
|
|
15669
15728
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
15670
|
-
|
|
15671
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
15672
|
-
}
|
|
15729
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
15673
15730
|
});
|
|
15674
15731
|
return writer;
|
|
15675
15732
|
},
|
|
@@ -15718,7 +15775,7 @@ var ProviderView = {
|
|
|
15718
15775
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
15719
15776
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
15720
15777
|
(acc, [key, value]) => {
|
|
15721
|
-
acc[key] = value;
|
|
15778
|
+
acc[key] = globalThis.String(value);
|
|
15722
15779
|
return acc;
|
|
15723
15780
|
},
|
|
15724
15781
|
{}
|
|
@@ -15754,7 +15811,7 @@ var ProviderView = {
|
|
|
15754
15811
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
15755
15812
|
(acc, [key, value]) => {
|
|
15756
15813
|
if (value !== void 0) {
|
|
15757
|
-
acc[key] = value;
|
|
15814
|
+
acc[key] = globalThis.String(value);
|
|
15758
15815
|
}
|
|
15759
15816
|
return acc;
|
|
15760
15817
|
},
|
|
@@ -15764,15 +15821,15 @@ var ProviderView = {
|
|
|
15764
15821
|
}
|
|
15765
15822
|
};
|
|
15766
15823
|
function createBaseProviderView_ConfigEntry() {
|
|
15767
|
-
return { key: "", value:
|
|
15824
|
+
return { key: "", value: "" };
|
|
15768
15825
|
}
|
|
15769
15826
|
var ProviderView_ConfigEntry = {
|
|
15770
15827
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
15771
15828
|
if (message.key !== "") {
|
|
15772
15829
|
writer.uint32(10).string(message.key);
|
|
15773
15830
|
}
|
|
15774
|
-
if (message.value !==
|
|
15775
|
-
|
|
15831
|
+
if (message.value !== "") {
|
|
15832
|
+
writer.uint32(18).string(message.value);
|
|
15776
15833
|
}
|
|
15777
15834
|
return writer;
|
|
15778
15835
|
},
|
|
@@ -15794,7 +15851,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15794
15851
|
if (tag !== 18) {
|
|
15795
15852
|
break;
|
|
15796
15853
|
}
|
|
15797
|
-
message.value =
|
|
15854
|
+
message.value = reader.string();
|
|
15798
15855
|
continue;
|
|
15799
15856
|
}
|
|
15800
15857
|
}
|
|
@@ -15808,7 +15865,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15808
15865
|
fromJSON(object) {
|
|
15809
15866
|
return {
|
|
15810
15867
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
15811
|
-
value: isSet3(object
|
|
15868
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
15812
15869
|
};
|
|
15813
15870
|
},
|
|
15814
15871
|
toJSON(message) {
|
|
@@ -15816,7 +15873,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15816
15873
|
if (message.key !== "") {
|
|
15817
15874
|
obj.key = message.key;
|
|
15818
15875
|
}
|
|
15819
|
-
if (message.value !==
|
|
15876
|
+
if (message.value !== "") {
|
|
15820
15877
|
obj.value = message.value;
|
|
15821
15878
|
}
|
|
15822
15879
|
return obj;
|
|
@@ -15827,7 +15884,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15827
15884
|
fromPartial(object) {
|
|
15828
15885
|
const message = createBaseProviderView_ConfigEntry();
|
|
15829
15886
|
message.key = object.key ?? "";
|
|
15830
|
-
message.value = object.value ??
|
|
15887
|
+
message.value = object.value ?? "";
|
|
15831
15888
|
return message;
|
|
15832
15889
|
}
|
|
15833
15890
|
};
|
|
@@ -16066,7 +16123,15 @@ var Position4 = {
|
|
|
16066
16123
|
}
|
|
16067
16124
|
};
|
|
16068
16125
|
function createBaseInputDef2() {
|
|
16069
|
-
return {
|
|
16126
|
+
return {
|
|
16127
|
+
name: "",
|
|
16128
|
+
type: "",
|
|
16129
|
+
required: false,
|
|
16130
|
+
description: "",
|
|
16131
|
+
default_value: void 0,
|
|
16132
|
+
validation: [],
|
|
16133
|
+
ephemeral: void 0
|
|
16134
|
+
};
|
|
16070
16135
|
}
|
|
16071
16136
|
var InputDef2 = {
|
|
16072
16137
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -16085,8 +16150,11 @@ var InputDef2 = {
|
|
|
16085
16150
|
if (message.default_value !== void 0) {
|
|
16086
16151
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
16087
16152
|
}
|
|
16088
|
-
|
|
16089
|
-
ValidationBlock2.encode(
|
|
16153
|
+
for (const v of message.validation) {
|
|
16154
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
16155
|
+
}
|
|
16156
|
+
if (message.ephemeral !== void 0) {
|
|
16157
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
16090
16158
|
}
|
|
16091
16159
|
return writer;
|
|
16092
16160
|
},
|
|
@@ -16136,7 +16204,14 @@ var InputDef2 = {
|
|
|
16136
16204
|
if (tag !== 50) {
|
|
16137
16205
|
break;
|
|
16138
16206
|
}
|
|
16139
|
-
message.validation
|
|
16207
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
16208
|
+
continue;
|
|
16209
|
+
}
|
|
16210
|
+
case 7: {
|
|
16211
|
+
if (tag !== 56) {
|
|
16212
|
+
break;
|
|
16213
|
+
}
|
|
16214
|
+
message.ephemeral = reader.bool();
|
|
16140
16215
|
continue;
|
|
16141
16216
|
}
|
|
16142
16217
|
}
|
|
@@ -16154,7 +16229,8 @@ var InputDef2 = {
|
|
|
16154
16229
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
16155
16230
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
16156
16231
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
16157
|
-
validation:
|
|
16232
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
16233
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
16158
16234
|
};
|
|
16159
16235
|
},
|
|
16160
16236
|
toJSON(message) {
|
|
@@ -16174,8 +16250,11 @@ var InputDef2 = {
|
|
|
16174
16250
|
if (message.default_value !== void 0) {
|
|
16175
16251
|
obj.defaultValue = message.default_value;
|
|
16176
16252
|
}
|
|
16177
|
-
if (message.validation
|
|
16178
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
16253
|
+
if (message.validation?.length) {
|
|
16254
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
16255
|
+
}
|
|
16256
|
+
if (message.ephemeral !== void 0) {
|
|
16257
|
+
obj.ephemeral = message.ephemeral;
|
|
16179
16258
|
}
|
|
16180
16259
|
return obj;
|
|
16181
16260
|
},
|
|
@@ -16189,7 +16268,8 @@ var InputDef2 = {
|
|
|
16189
16268
|
message.required = object.required ?? false;
|
|
16190
16269
|
message.description = object.description ?? "";
|
|
16191
16270
|
message.default_value = object.default_value ?? void 0;
|
|
16192
|
-
message.validation = object.validation
|
|
16271
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
16272
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
16193
16273
|
return message;
|
|
16194
16274
|
}
|
|
16195
16275
|
};
|
|
@@ -16262,7 +16342,7 @@ var ValidationBlock2 = {
|
|
|
16262
16342
|
}
|
|
16263
16343
|
};
|
|
16264
16344
|
function createBaseOutputDef2() {
|
|
16265
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
16345
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
16266
16346
|
}
|
|
16267
16347
|
var OutputDef2 = {
|
|
16268
16348
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -16278,6 +16358,9 @@ var OutputDef2 = {
|
|
|
16278
16358
|
if (message.sensitive !== false) {
|
|
16279
16359
|
writer.uint32(32).bool(message.sensitive);
|
|
16280
16360
|
}
|
|
16361
|
+
for (const v of message.depends_on) {
|
|
16362
|
+
writer.uint32(42).string(v);
|
|
16363
|
+
}
|
|
16281
16364
|
return writer;
|
|
16282
16365
|
},
|
|
16283
16366
|
decode(input, length) {
|
|
@@ -16315,6 +16398,13 @@ var OutputDef2 = {
|
|
|
16315
16398
|
message.sensitive = reader.bool();
|
|
16316
16399
|
continue;
|
|
16317
16400
|
}
|
|
16401
|
+
case 5: {
|
|
16402
|
+
if (tag !== 42) {
|
|
16403
|
+
break;
|
|
16404
|
+
}
|
|
16405
|
+
message.depends_on.push(reader.string());
|
|
16406
|
+
continue;
|
|
16407
|
+
}
|
|
16318
16408
|
}
|
|
16319
16409
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16320
16410
|
break;
|
|
@@ -16328,7 +16418,8 @@ var OutputDef2 = {
|
|
|
16328
16418
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
16329
16419
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
16330
16420
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
16331
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
16421
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
16422
|
+
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)) : []
|
|
16332
16423
|
};
|
|
16333
16424
|
},
|
|
16334
16425
|
toJSON(message) {
|
|
@@ -16345,6 +16436,9 @@ var OutputDef2 = {
|
|
|
16345
16436
|
if (message.sensitive !== false) {
|
|
16346
16437
|
obj.sensitive = message.sensitive;
|
|
16347
16438
|
}
|
|
16439
|
+
if (message.depends_on?.length) {
|
|
16440
|
+
obj.dependsOn = message.depends_on;
|
|
16441
|
+
}
|
|
16348
16442
|
return obj;
|
|
16349
16443
|
},
|
|
16350
16444
|
create(base) {
|
|
@@ -16356,6 +16450,7 @@ var OutputDef2 = {
|
|
|
16356
16450
|
message.type = object.type ?? "";
|
|
16357
16451
|
message.description = object.description ?? "";
|
|
16358
16452
|
message.sensitive = object.sensitive ?? false;
|
|
16453
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
16359
16454
|
return message;
|
|
16360
16455
|
}
|
|
16361
16456
|
};
|
|
@@ -16677,7 +16772,7 @@ var ConnectWebEngine = class {
|
|
|
16677
16772
|
description: v.description ?? "",
|
|
16678
16773
|
default_value: v.default ?? void 0,
|
|
16679
16774
|
sensitive: false,
|
|
16680
|
-
validation:
|
|
16775
|
+
validation: []
|
|
16681
16776
|
}))
|
|
16682
16777
|
}
|
|
16683
16778
|
});
|
|
@@ -16694,7 +16789,8 @@ var ConnectWebEngine = class {
|
|
|
16694
16789
|
name: d.name,
|
|
16695
16790
|
type: d.type,
|
|
16696
16791
|
description: d.description ?? "",
|
|
16697
|
-
sensitive: d.sensitive ?? false
|
|
16792
|
+
sensitive: d.sensitive ?? false,
|
|
16793
|
+
depends_on: []
|
|
16698
16794
|
}))
|
|
16699
16795
|
}
|
|
16700
16796
|
});
|
|
@@ -17348,7 +17444,7 @@ var PostMessageEngine = class {
|
|
|
17348
17444
|
description: v.description ?? "",
|
|
17349
17445
|
default_value: v.default ?? void 0,
|
|
17350
17446
|
sensitive: false,
|
|
17351
|
-
validation:
|
|
17447
|
+
validation: []
|
|
17352
17448
|
}))
|
|
17353
17449
|
}
|
|
17354
17450
|
});
|
|
@@ -17365,7 +17461,8 @@ var PostMessageEngine = class {
|
|
|
17365
17461
|
name: d.name,
|
|
17366
17462
|
type: d.type,
|
|
17367
17463
|
description: d.description ?? "",
|
|
17368
|
-
sensitive: d.sensitive ?? false
|
|
17464
|
+
sensitive: d.sensitive ?? false,
|
|
17465
|
+
depends_on: []
|
|
17369
17466
|
}))
|
|
17370
17467
|
}
|
|
17371
17468
|
});
|
|
@@ -17612,8 +17709,8 @@ var SnapshotCanvasEngine = class {
|
|
|
17612
17709
|
}
|
|
17613
17710
|
this.loadPromise = (async () => {
|
|
17614
17711
|
const [bundleBytes, layoutsBytes] = await Promise.all([
|
|
17615
|
-
this.fetchBytes(input.bundleUrl, "bundle"),
|
|
17616
|
-
this.fetchBytes(input.layoutsUrl, "layouts")
|
|
17712
|
+
this.fetchBytes(input.bundleUrl, "bundle", input.headers),
|
|
17713
|
+
this.fetchBytes(input.layoutsUrl, "layouts", input.headers)
|
|
17617
17714
|
]);
|
|
17618
17715
|
const bundle = Bundle.decode(bundleBytes);
|
|
17619
17716
|
const layouts = LayoutsMap.decode(layoutsBytes).layouts ?? {};
|
|
@@ -17624,10 +17721,10 @@ var SnapshotCanvasEngine = class {
|
|
|
17624
17721
|
}
|
|
17625
17722
|
return this.loadPromise;
|
|
17626
17723
|
}
|
|
17627
|
-
async fetchBytes(url, label) {
|
|
17724
|
+
async fetchBytes(url, label, headers) {
|
|
17628
17725
|
const res = await this.fetchImpl(url, {
|
|
17629
17726
|
method: "GET",
|
|
17630
|
-
headers: { accept: "application/octet-stream" },
|
|
17727
|
+
headers: { accept: "application/octet-stream", ...headers },
|
|
17631
17728
|
// Credentials: include so same-origin portal fetches carry the
|
|
17632
17729
|
// session cookie. Embed routes validate the token in the URL
|
|
17633
17730
|
// instead, so this is a no-op there.
|