@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.mjs CHANGED
@@ -5660,9 +5660,10 @@ function createBaseInputDef() {
5660
5660
  required: false,
5661
5661
  description: "",
5662
5662
  default_value: void 0,
5663
- validation: void 0,
5663
+ validation: [],
5664
5664
  sensitive: false,
5665
- nullable: void 0
5665
+ nullable: void 0,
5666
+ ephemeral: void 0
5666
5667
  };
5667
5668
  }
5668
5669
  var InputDef = {
@@ -5682,8 +5683,8 @@ var InputDef = {
5682
5683
  if (message.default_value !== void 0) {
5683
5684
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
5684
5685
  }
5685
- if (message.validation !== void 0) {
5686
- ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
5686
+ for (const v of message.validation) {
5687
+ ValidationBlock.encode(v, writer.uint32(50).fork()).join();
5687
5688
  }
5688
5689
  if (message.sensitive !== false) {
5689
5690
  writer.uint32(56).bool(message.sensitive);
@@ -5691,6 +5692,9 @@ var InputDef = {
5691
5692
  if (message.nullable !== void 0) {
5692
5693
  writer.uint32(64).bool(message.nullable);
5693
5694
  }
5695
+ if (message.ephemeral !== void 0) {
5696
+ writer.uint32(72).bool(message.ephemeral);
5697
+ }
5694
5698
  return writer;
5695
5699
  },
5696
5700
  decode(input, length) {
@@ -5739,7 +5743,7 @@ var InputDef = {
5739
5743
  if (tag !== 50) {
5740
5744
  break;
5741
5745
  }
5742
- message.validation = ValidationBlock.decode(reader, reader.uint32());
5746
+ message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
5743
5747
  continue;
5744
5748
  }
5745
5749
  case 7: {
@@ -5756,6 +5760,13 @@ var InputDef = {
5756
5760
  message.nullable = reader.bool();
5757
5761
  continue;
5758
5762
  }
5763
+ case 9: {
5764
+ if (tag !== 72) {
5765
+ break;
5766
+ }
5767
+ message.ephemeral = reader.bool();
5768
+ continue;
5769
+ }
5759
5770
  }
5760
5771
  if ((tag & 7) === 4 || tag === 0) {
5761
5772
  break;
@@ -5771,9 +5782,10 @@ var InputDef = {
5771
5782
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
5772
5783
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
5773
5784
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
5774
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
5785
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
5775
5786
  sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
5776
- nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
5787
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
5788
+ ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
5777
5789
  };
5778
5790
  },
5779
5791
  toJSON(message) {
@@ -5793,8 +5805,8 @@ var InputDef = {
5793
5805
  if (message.default_value !== void 0) {
5794
5806
  obj.defaultValue = message.default_value;
5795
5807
  }
5796
- if (message.validation !== void 0) {
5797
- obj.validation = ValidationBlock.toJSON(message.validation);
5808
+ if (message.validation?.length) {
5809
+ obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
5798
5810
  }
5799
5811
  if (message.sensitive !== false) {
5800
5812
  obj.sensitive = message.sensitive;
@@ -5802,6 +5814,9 @@ var InputDef = {
5802
5814
  if (message.nullable !== void 0) {
5803
5815
  obj.nullable = message.nullable;
5804
5816
  }
5817
+ if (message.ephemeral !== void 0) {
5818
+ obj.ephemeral = message.ephemeral;
5819
+ }
5805
5820
  return obj;
5806
5821
  },
5807
5822
  create(base) {
@@ -5814,9 +5829,10 @@ var InputDef = {
5814
5829
  message.required = object.required ?? false;
5815
5830
  message.description = object.description ?? "";
5816
5831
  message.default_value = object.default_value ?? void 0;
5817
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
5832
+ message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
5818
5833
  message.sensitive = object.sensitive ?? false;
5819
5834
  message.nullable = object.nullable ?? void 0;
5835
+ message.ephemeral = object.ephemeral ?? void 0;
5820
5836
  return message;
5821
5837
  }
5822
5838
  };
@@ -5889,7 +5905,7 @@ var ValidationBlock = {
5889
5905
  }
5890
5906
  };
5891
5907
  function createBaseOutputDef() {
5892
- return { name: "", type: "", description: "", sensitive: false };
5908
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
5893
5909
  }
5894
5910
  var OutputDef = {
5895
5911
  encode(message, writer = new BinaryWriter3()) {
@@ -5905,6 +5921,9 @@ var OutputDef = {
5905
5921
  if (message.sensitive !== false) {
5906
5922
  writer.uint32(32).bool(message.sensitive);
5907
5923
  }
5924
+ for (const v of message.depends_on) {
5925
+ writer.uint32(42).string(v);
5926
+ }
5908
5927
  return writer;
5909
5928
  },
5910
5929
  decode(input, length) {
@@ -5942,6 +5961,13 @@ var OutputDef = {
5942
5961
  message.sensitive = reader.bool();
5943
5962
  continue;
5944
5963
  }
5964
+ case 5: {
5965
+ if (tag !== 42) {
5966
+ break;
5967
+ }
5968
+ message.depends_on.push(reader.string());
5969
+ continue;
5970
+ }
5945
5971
  }
5946
5972
  if ((tag & 7) === 4 || tag === 0) {
5947
5973
  break;
@@ -5955,7 +5981,8 @@ var OutputDef = {
5955
5981
  name: isSet2(object.name) ? globalThis.String(object.name) : "",
5956
5982
  type: isSet2(object.type) ? globalThis.String(object.type) : "",
5957
5983
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
5958
- sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
5984
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
5985
+ 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)) : []
5959
5986
  };
5960
5987
  },
5961
5988
  toJSON(message) {
@@ -5972,6 +5999,9 @@ var OutputDef = {
5972
5999
  if (message.sensitive !== false) {
5973
6000
  obj.sensitive = message.sensitive;
5974
6001
  }
6002
+ if (message.depends_on?.length) {
6003
+ obj.dependsOn = message.depends_on;
6004
+ }
5975
6005
  return obj;
5976
6006
  },
5977
6007
  create(base) {
@@ -5983,6 +6013,7 @@ var OutputDef = {
5983
6013
  message.type = object.type ?? "";
5984
6014
  message.description = object.description ?? "";
5985
6015
  message.sensitive = object.sensitive ?? false;
6016
+ message.depends_on = object.depends_on?.map((e) => e) || [];
5986
6017
  return message;
5987
6018
  }
5988
6019
  };
@@ -6168,7 +6199,7 @@ var Local = {
6168
6199
  }
6169
6200
  };
6170
6201
  function createBaseUse() {
6171
- return { id: "", module: "", inputs: {}, depends_on: [] };
6202
+ return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
6172
6203
  }
6173
6204
  var Use = {
6174
6205
  encode(message, writer = new BinaryWriter3()) {
@@ -6184,6 +6215,12 @@ var Use = {
6184
6215
  for (const v of message.depends_on) {
6185
6216
  writer.uint32(34).string(v);
6186
6217
  }
6218
+ if (message.count !== void 0) {
6219
+ Binding.encode(message.count, writer.uint32(42).fork()).join();
6220
+ }
6221
+ if (message.for_each !== void 0) {
6222
+ Binding.encode(message.for_each, writer.uint32(50).fork()).join();
6223
+ }
6187
6224
  return writer;
6188
6225
  },
6189
6226
  decode(input, length) {
@@ -6224,6 +6261,20 @@ var Use = {
6224
6261
  message.depends_on.push(reader.string());
6225
6262
  continue;
6226
6263
  }
6264
+ case 5: {
6265
+ if (tag !== 42) {
6266
+ break;
6267
+ }
6268
+ message.count = Binding.decode(reader, reader.uint32());
6269
+ continue;
6270
+ }
6271
+ case 6: {
6272
+ if (tag !== 50) {
6273
+ break;
6274
+ }
6275
+ message.for_each = Binding.decode(reader, reader.uint32());
6276
+ continue;
6277
+ }
6227
6278
  }
6228
6279
  if ((tag & 7) === 4 || tag === 0) {
6229
6280
  break;
@@ -6243,7 +6294,9 @@ var Use = {
6243
6294
  },
6244
6295
  {}
6245
6296
  ) : {},
6246
- 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)) : []
6297
+ 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)) : [],
6298
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
6299
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
6247
6300
  };
6248
6301
  },
6249
6302
  toJSON(message) {
@@ -6266,6 +6319,12 @@ var Use = {
6266
6319
  if (message.depends_on?.length) {
6267
6320
  obj.dependsOn = message.depends_on;
6268
6321
  }
6322
+ if (message.count !== void 0) {
6323
+ obj.count = Binding.toJSON(message.count);
6324
+ }
6325
+ if (message.for_each !== void 0) {
6326
+ obj.forEach = Binding.toJSON(message.for_each);
6327
+ }
6269
6328
  return obj;
6270
6329
  },
6271
6330
  create(base) {
@@ -6285,6 +6344,8 @@ var Use = {
6285
6344
  {}
6286
6345
  );
6287
6346
  message.depends_on = object.depends_on?.map((e) => e) || [];
6347
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
6348
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
6288
6349
  return message;
6289
6350
  }
6290
6351
  };
@@ -7693,9 +7754,7 @@ var ProviderConfig = {
7693
7754
  writer.uint32(18).string(message.alias);
7694
7755
  }
7695
7756
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
7696
- if (value !== void 0) {
7697
- ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
7698
- }
7757
+ ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
7699
7758
  });
7700
7759
  for (const v of message.blocks) {
7701
7760
  Block.encode(v, writer.uint32(34).fork()).join();
@@ -7754,7 +7813,7 @@ var ProviderConfig = {
7754
7813
  alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
7755
7814
  config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
7756
7815
  (acc, [key, value]) => {
7757
- acc[key] = value;
7816
+ acc[key] = Binding.fromJSON(value);
7758
7817
  return acc;
7759
7818
  },
7760
7819
  {}
@@ -7775,7 +7834,7 @@ var ProviderConfig = {
7775
7834
  if (entries.length > 0) {
7776
7835
  obj.config = {};
7777
7836
  entries.forEach(([k, v]) => {
7778
- obj.config[k] = v;
7837
+ obj.config[k] = Binding.toJSON(v);
7779
7838
  });
7780
7839
  }
7781
7840
  }
@@ -7794,7 +7853,7 @@ var ProviderConfig = {
7794
7853
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
7795
7854
  (acc, [key, value]) => {
7796
7855
  if (value !== void 0) {
7797
- acc[key] = value;
7856
+ acc[key] = Binding.fromPartial(value);
7798
7857
  }
7799
7858
  return acc;
7800
7859
  },
@@ -7813,7 +7872,7 @@ var ProviderConfig_ConfigEntry = {
7813
7872
  writer.uint32(10).string(message.key);
7814
7873
  }
7815
7874
  if (message.value !== void 0) {
7816
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
7875
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
7817
7876
  }
7818
7877
  return writer;
7819
7878
  },
@@ -7835,7 +7894,7 @@ var ProviderConfig_ConfigEntry = {
7835
7894
  if (tag !== 18) {
7836
7895
  break;
7837
7896
  }
7838
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
7897
+ message.value = Binding.decode(reader, reader.uint32());
7839
7898
  continue;
7840
7899
  }
7841
7900
  }
@@ -7849,7 +7908,7 @@ var ProviderConfig_ConfigEntry = {
7849
7908
  fromJSON(object) {
7850
7909
  return {
7851
7910
  key: isSet2(object.key) ? globalThis.String(object.key) : "",
7852
- value: isSet2(object?.value) ? object.value : void 0
7911
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
7853
7912
  };
7854
7913
  },
7855
7914
  toJSON(message) {
@@ -7858,7 +7917,7 @@ var ProviderConfig_ConfigEntry = {
7858
7917
  obj.key = message.key;
7859
7918
  }
7860
7919
  if (message.value !== void 0) {
7861
- obj.value = message.value;
7920
+ obj.value = Binding.toJSON(message.value);
7862
7921
  }
7863
7922
  return obj;
7864
7923
  },
@@ -7868,7 +7927,7 @@ var ProviderConfig_ConfigEntry = {
7868
7927
  fromPartial(object) {
7869
7928
  const message = createBaseProviderConfig_ConfigEntry();
7870
7929
  message.key = object.key ?? "";
7871
- message.value = object.value ?? void 0;
7930
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
7872
7931
  return message;
7873
7932
  }
7874
7933
  };
@@ -15622,9 +15681,7 @@ var ProviderView = {
15622
15681
  writer.uint32(18).string(message.alias);
15623
15682
  }
15624
15683
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
15625
- if (value !== void 0) {
15626
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
15627
- }
15684
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
15628
15685
  });
15629
15686
  return writer;
15630
15687
  },
@@ -15673,7 +15730,7 @@ var ProviderView = {
15673
15730
  alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
15674
15731
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
15675
15732
  (acc, [key, value]) => {
15676
- acc[key] = value;
15733
+ acc[key] = globalThis.String(value);
15677
15734
  return acc;
15678
15735
  },
15679
15736
  {}
@@ -15709,7 +15766,7 @@ var ProviderView = {
15709
15766
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
15710
15767
  (acc, [key, value]) => {
15711
15768
  if (value !== void 0) {
15712
- acc[key] = value;
15769
+ acc[key] = globalThis.String(value);
15713
15770
  }
15714
15771
  return acc;
15715
15772
  },
@@ -15719,15 +15776,15 @@ var ProviderView = {
15719
15776
  }
15720
15777
  };
15721
15778
  function createBaseProviderView_ConfigEntry() {
15722
- return { key: "", value: void 0 };
15779
+ return { key: "", value: "" };
15723
15780
  }
15724
15781
  var ProviderView_ConfigEntry = {
15725
15782
  encode(message, writer = new BinaryWriter4()) {
15726
15783
  if (message.key !== "") {
15727
15784
  writer.uint32(10).string(message.key);
15728
15785
  }
15729
- if (message.value !== void 0) {
15730
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
15786
+ if (message.value !== "") {
15787
+ writer.uint32(18).string(message.value);
15731
15788
  }
15732
15789
  return writer;
15733
15790
  },
@@ -15749,7 +15806,7 @@ var ProviderView_ConfigEntry = {
15749
15806
  if (tag !== 18) {
15750
15807
  break;
15751
15808
  }
15752
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
15809
+ message.value = reader.string();
15753
15810
  continue;
15754
15811
  }
15755
15812
  }
@@ -15763,7 +15820,7 @@ var ProviderView_ConfigEntry = {
15763
15820
  fromJSON(object) {
15764
15821
  return {
15765
15822
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
15766
- value: isSet3(object?.value) ? object.value : void 0
15823
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
15767
15824
  };
15768
15825
  },
15769
15826
  toJSON(message) {
@@ -15771,7 +15828,7 @@ var ProviderView_ConfigEntry = {
15771
15828
  if (message.key !== "") {
15772
15829
  obj.key = message.key;
15773
15830
  }
15774
- if (message.value !== void 0) {
15831
+ if (message.value !== "") {
15775
15832
  obj.value = message.value;
15776
15833
  }
15777
15834
  return obj;
@@ -15782,7 +15839,7 @@ var ProviderView_ConfigEntry = {
15782
15839
  fromPartial(object) {
15783
15840
  const message = createBaseProviderView_ConfigEntry();
15784
15841
  message.key = object.key ?? "";
15785
- message.value = object.value ?? void 0;
15842
+ message.value = object.value ?? "";
15786
15843
  return message;
15787
15844
  }
15788
15845
  };
@@ -16021,7 +16078,15 @@ var Position4 = {
16021
16078
  }
16022
16079
  };
16023
16080
  function createBaseInputDef2() {
16024
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
16081
+ return {
16082
+ name: "",
16083
+ type: "",
16084
+ required: false,
16085
+ description: "",
16086
+ default_value: void 0,
16087
+ validation: [],
16088
+ ephemeral: void 0
16089
+ };
16025
16090
  }
16026
16091
  var InputDef2 = {
16027
16092
  encode(message, writer = new BinaryWriter4()) {
@@ -16040,8 +16105,11 @@ var InputDef2 = {
16040
16105
  if (message.default_value !== void 0) {
16041
16106
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
16042
16107
  }
16043
- if (message.validation !== void 0) {
16044
- ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
16108
+ for (const v of message.validation) {
16109
+ ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
16110
+ }
16111
+ if (message.ephemeral !== void 0) {
16112
+ writer.uint32(56).bool(message.ephemeral);
16045
16113
  }
16046
16114
  return writer;
16047
16115
  },
@@ -16091,7 +16159,14 @@ var InputDef2 = {
16091
16159
  if (tag !== 50) {
16092
16160
  break;
16093
16161
  }
16094
- message.validation = ValidationBlock2.decode(reader, reader.uint32());
16162
+ message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
16163
+ continue;
16164
+ }
16165
+ case 7: {
16166
+ if (tag !== 56) {
16167
+ break;
16168
+ }
16169
+ message.ephemeral = reader.bool();
16095
16170
  continue;
16096
16171
  }
16097
16172
  }
@@ -16109,7 +16184,8 @@ var InputDef2 = {
16109
16184
  required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
16110
16185
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
16111
16186
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
16112
- validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0
16187
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
16188
+ ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
16113
16189
  };
16114
16190
  },
16115
16191
  toJSON(message) {
@@ -16129,8 +16205,11 @@ var InputDef2 = {
16129
16205
  if (message.default_value !== void 0) {
16130
16206
  obj.defaultValue = message.default_value;
16131
16207
  }
16132
- if (message.validation !== void 0) {
16133
- obj.validation = ValidationBlock2.toJSON(message.validation);
16208
+ if (message.validation?.length) {
16209
+ obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
16210
+ }
16211
+ if (message.ephemeral !== void 0) {
16212
+ obj.ephemeral = message.ephemeral;
16134
16213
  }
16135
16214
  return obj;
16136
16215
  },
@@ -16144,7 +16223,8 @@ var InputDef2 = {
16144
16223
  message.required = object.required ?? false;
16145
16224
  message.description = object.description ?? "";
16146
16225
  message.default_value = object.default_value ?? void 0;
16147
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
16226
+ message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
16227
+ message.ephemeral = object.ephemeral ?? void 0;
16148
16228
  return message;
16149
16229
  }
16150
16230
  };
@@ -16217,7 +16297,7 @@ var ValidationBlock2 = {
16217
16297
  }
16218
16298
  };
16219
16299
  function createBaseOutputDef2() {
16220
- return { name: "", type: "", description: "", sensitive: false };
16300
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
16221
16301
  }
16222
16302
  var OutputDef2 = {
16223
16303
  encode(message, writer = new BinaryWriter4()) {
@@ -16233,6 +16313,9 @@ var OutputDef2 = {
16233
16313
  if (message.sensitive !== false) {
16234
16314
  writer.uint32(32).bool(message.sensitive);
16235
16315
  }
16316
+ for (const v of message.depends_on) {
16317
+ writer.uint32(42).string(v);
16318
+ }
16236
16319
  return writer;
16237
16320
  },
16238
16321
  decode(input, length) {
@@ -16270,6 +16353,13 @@ var OutputDef2 = {
16270
16353
  message.sensitive = reader.bool();
16271
16354
  continue;
16272
16355
  }
16356
+ case 5: {
16357
+ if (tag !== 42) {
16358
+ break;
16359
+ }
16360
+ message.depends_on.push(reader.string());
16361
+ continue;
16362
+ }
16273
16363
  }
16274
16364
  if ((tag & 7) === 4 || tag === 0) {
16275
16365
  break;
@@ -16283,7 +16373,8 @@ var OutputDef2 = {
16283
16373
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
16284
16374
  type: isSet3(object.type) ? globalThis.String(object.type) : "",
16285
16375
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
16286
- sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
16376
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
16377
+ 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)) : []
16287
16378
  };
16288
16379
  },
16289
16380
  toJSON(message) {
@@ -16300,6 +16391,9 @@ var OutputDef2 = {
16300
16391
  if (message.sensitive !== false) {
16301
16392
  obj.sensitive = message.sensitive;
16302
16393
  }
16394
+ if (message.depends_on?.length) {
16395
+ obj.dependsOn = message.depends_on;
16396
+ }
16303
16397
  return obj;
16304
16398
  },
16305
16399
  create(base) {
@@ -16311,6 +16405,7 @@ var OutputDef2 = {
16311
16405
  message.type = object.type ?? "";
16312
16406
  message.description = object.description ?? "";
16313
16407
  message.sensitive = object.sensitive ?? false;
16408
+ message.depends_on = object.depends_on?.map((e) => e) || [];
16314
16409
  return message;
16315
16410
  }
16316
16411
  };
@@ -16632,7 +16727,7 @@ var ConnectWebEngine = class {
16632
16727
  description: v.description ?? "",
16633
16728
  default_value: v.default ?? void 0,
16634
16729
  sensitive: false,
16635
- validation: void 0
16730
+ validation: []
16636
16731
  }))
16637
16732
  }
16638
16733
  });
@@ -16649,7 +16744,8 @@ var ConnectWebEngine = class {
16649
16744
  name: d.name,
16650
16745
  type: d.type,
16651
16746
  description: d.description ?? "",
16652
- sensitive: d.sensitive ?? false
16747
+ sensitive: d.sensitive ?? false,
16748
+ depends_on: []
16653
16749
  }))
16654
16750
  }
16655
16751
  });
@@ -17303,7 +17399,7 @@ var PostMessageEngine = class {
17303
17399
  description: v.description ?? "",
17304
17400
  default_value: v.default ?? void 0,
17305
17401
  sensitive: false,
17306
- validation: void 0
17402
+ validation: []
17307
17403
  }))
17308
17404
  }
17309
17405
  });
@@ -17320,7 +17416,8 @@ var PostMessageEngine = class {
17320
17416
  name: d.name,
17321
17417
  type: d.type,
17322
17418
  description: d.description ?? "",
17323
- sensitive: d.sensitive ?? false
17419
+ sensitive: d.sensitive ?? false,
17420
+ depends_on: []
17324
17421
  }))
17325
17422
  }
17326
17423
  });
@@ -17567,8 +17664,8 @@ var SnapshotCanvasEngine = class {
17567
17664
  }
17568
17665
  this.loadPromise = (async () => {
17569
17666
  const [bundleBytes, layoutsBytes] = await Promise.all([
17570
- this.fetchBytes(input.bundleUrl, "bundle"),
17571
- this.fetchBytes(input.layoutsUrl, "layouts")
17667
+ this.fetchBytes(input.bundleUrl, "bundle", input.headers),
17668
+ this.fetchBytes(input.layoutsUrl, "layouts", input.headers)
17572
17669
  ]);
17573
17670
  const bundle = Bundle.decode(bundleBytes);
17574
17671
  const layouts = LayoutsMap.decode(layoutsBytes).layouts ?? {};
@@ -17579,10 +17676,10 @@ var SnapshotCanvasEngine = class {
17579
17676
  }
17580
17677
  return this.loadPromise;
17581
17678
  }
17582
- async fetchBytes(url, label) {
17679
+ async fetchBytes(url, label, headers) {
17583
17680
  const res = await this.fetchImpl(url, {
17584
17681
  method: "GET",
17585
- headers: { accept: "application/octet-stream" },
17682
+ headers: { accept: "application/octet-stream", ...headers },
17586
17683
  // Credentials: include so same-origin portal fetches carry the
17587
17684
  // session cookie. Embed routes validate the token in the URL
17588
17685
  // instead, so this is a no-op there.