@lace-cloud/host 0.7.1 → 0.9.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 CHANGED
@@ -1351,9 +1351,10 @@ function createBaseInputDef() {
1351
1351
  required: false,
1352
1352
  description: "",
1353
1353
  default_value: void 0,
1354
- validation: void 0,
1354
+ validation: [],
1355
1355
  sensitive: false,
1356
- nullable: void 0
1356
+ nullable: void 0,
1357
+ ephemeral: void 0
1357
1358
  };
1358
1359
  }
1359
1360
  var InputDef = {
@@ -1373,8 +1374,8 @@ var InputDef = {
1373
1374
  if (message.default_value !== void 0) {
1374
1375
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
1375
1376
  }
1376
- if (message.validation !== void 0) {
1377
- ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
1377
+ for (const v of message.validation) {
1378
+ ValidationBlock.encode(v, writer.uint32(50).fork()).join();
1378
1379
  }
1379
1380
  if (message.sensitive !== false) {
1380
1381
  writer.uint32(56).bool(message.sensitive);
@@ -1382,6 +1383,9 @@ var InputDef = {
1382
1383
  if (message.nullable !== void 0) {
1383
1384
  writer.uint32(64).bool(message.nullable);
1384
1385
  }
1386
+ if (message.ephemeral !== void 0) {
1387
+ writer.uint32(72).bool(message.ephemeral);
1388
+ }
1385
1389
  return writer;
1386
1390
  },
1387
1391
  decode(input, length) {
@@ -1430,7 +1434,7 @@ var InputDef = {
1430
1434
  if (tag !== 50) {
1431
1435
  break;
1432
1436
  }
1433
- message.validation = ValidationBlock.decode(reader, reader.uint32());
1437
+ message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
1434
1438
  continue;
1435
1439
  }
1436
1440
  case 7: {
@@ -1447,6 +1451,13 @@ var InputDef = {
1447
1451
  message.nullable = reader.bool();
1448
1452
  continue;
1449
1453
  }
1454
+ case 9: {
1455
+ if (tag !== 72) {
1456
+ break;
1457
+ }
1458
+ message.ephemeral = reader.bool();
1459
+ continue;
1460
+ }
1450
1461
  }
1451
1462
  if ((tag & 7) === 4 || tag === 0) {
1452
1463
  break;
@@ -1462,9 +1473,10 @@ var InputDef = {
1462
1473
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
1463
1474
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1464
1475
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
1465
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
1476
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
1466
1477
  sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1467
- nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
1478
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
1479
+ ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
1468
1480
  };
1469
1481
  },
1470
1482
  toJSON(message) {
@@ -1484,8 +1496,8 @@ var InputDef = {
1484
1496
  if (message.default_value !== void 0) {
1485
1497
  obj.defaultValue = message.default_value;
1486
1498
  }
1487
- if (message.validation !== void 0) {
1488
- obj.validation = ValidationBlock.toJSON(message.validation);
1499
+ if (message.validation?.length) {
1500
+ obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
1489
1501
  }
1490
1502
  if (message.sensitive !== false) {
1491
1503
  obj.sensitive = message.sensitive;
@@ -1493,6 +1505,9 @@ var InputDef = {
1493
1505
  if (message.nullable !== void 0) {
1494
1506
  obj.nullable = message.nullable;
1495
1507
  }
1508
+ if (message.ephemeral !== void 0) {
1509
+ obj.ephemeral = message.ephemeral;
1510
+ }
1496
1511
  return obj;
1497
1512
  },
1498
1513
  create(base) {
@@ -1505,9 +1520,10 @@ var InputDef = {
1505
1520
  message.required = object.required ?? false;
1506
1521
  message.description = object.description ?? "";
1507
1522
  message.default_value = object.default_value ?? void 0;
1508
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
1523
+ message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
1509
1524
  message.sensitive = object.sensitive ?? false;
1510
1525
  message.nullable = object.nullable ?? void 0;
1526
+ message.ephemeral = object.ephemeral ?? void 0;
1511
1527
  return message;
1512
1528
  }
1513
1529
  };
@@ -1580,7 +1596,7 @@ var ValidationBlock = {
1580
1596
  }
1581
1597
  };
1582
1598
  function createBaseOutputDef() {
1583
- return { name: "", type: "", description: "", sensitive: false };
1599
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
1584
1600
  }
1585
1601
  var OutputDef = {
1586
1602
  encode(message, writer = new import_wire3.BinaryWriter()) {
@@ -1596,6 +1612,9 @@ var OutputDef = {
1596
1612
  if (message.sensitive !== false) {
1597
1613
  writer.uint32(32).bool(message.sensitive);
1598
1614
  }
1615
+ for (const v of message.depends_on) {
1616
+ writer.uint32(42).string(v);
1617
+ }
1599
1618
  return writer;
1600
1619
  },
1601
1620
  decode(input, length) {
@@ -1633,6 +1652,13 @@ var OutputDef = {
1633
1652
  message.sensitive = reader.bool();
1634
1653
  continue;
1635
1654
  }
1655
+ case 5: {
1656
+ if (tag !== 42) {
1657
+ break;
1658
+ }
1659
+ message.depends_on.push(reader.string());
1660
+ continue;
1661
+ }
1636
1662
  }
1637
1663
  if ((tag & 7) === 4 || tag === 0) {
1638
1664
  break;
@@ -1646,7 +1672,8 @@ var OutputDef = {
1646
1672
  name: isSet2(object.name) ? globalThis.String(object.name) : "",
1647
1673
  type: isSet2(object.type) ? globalThis.String(object.type) : "",
1648
1674
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1649
- sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
1675
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1676
+ 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)) : []
1650
1677
  };
1651
1678
  },
1652
1679
  toJSON(message) {
@@ -1663,6 +1690,9 @@ var OutputDef = {
1663
1690
  if (message.sensitive !== false) {
1664
1691
  obj.sensitive = message.sensitive;
1665
1692
  }
1693
+ if (message.depends_on?.length) {
1694
+ obj.dependsOn = message.depends_on;
1695
+ }
1666
1696
  return obj;
1667
1697
  },
1668
1698
  create(base) {
@@ -1674,6 +1704,7 @@ var OutputDef = {
1674
1704
  message.type = object.type ?? "";
1675
1705
  message.description = object.description ?? "";
1676
1706
  message.sensitive = object.sensitive ?? false;
1707
+ message.depends_on = object.depends_on?.map((e) => e) || [];
1677
1708
  return message;
1678
1709
  }
1679
1710
  };
@@ -1859,7 +1890,7 @@ var Local = {
1859
1890
  }
1860
1891
  };
1861
1892
  function createBaseUse() {
1862
- return { id: "", module: "", inputs: {}, depends_on: [] };
1893
+ return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
1863
1894
  }
1864
1895
  var Use = {
1865
1896
  encode(message, writer = new import_wire3.BinaryWriter()) {
@@ -1875,6 +1906,12 @@ var Use = {
1875
1906
  for (const v of message.depends_on) {
1876
1907
  writer.uint32(34).string(v);
1877
1908
  }
1909
+ if (message.count !== void 0) {
1910
+ Binding.encode(message.count, writer.uint32(42).fork()).join();
1911
+ }
1912
+ if (message.for_each !== void 0) {
1913
+ Binding.encode(message.for_each, writer.uint32(50).fork()).join();
1914
+ }
1878
1915
  return writer;
1879
1916
  },
1880
1917
  decode(input, length) {
@@ -1915,6 +1952,20 @@ var Use = {
1915
1952
  message.depends_on.push(reader.string());
1916
1953
  continue;
1917
1954
  }
1955
+ case 5: {
1956
+ if (tag !== 42) {
1957
+ break;
1958
+ }
1959
+ message.count = Binding.decode(reader, reader.uint32());
1960
+ continue;
1961
+ }
1962
+ case 6: {
1963
+ if (tag !== 50) {
1964
+ break;
1965
+ }
1966
+ message.for_each = Binding.decode(reader, reader.uint32());
1967
+ continue;
1968
+ }
1918
1969
  }
1919
1970
  if ((tag & 7) === 4 || tag === 0) {
1920
1971
  break;
@@ -1934,7 +1985,9 @@ var Use = {
1934
1985
  },
1935
1986
  {}
1936
1987
  ) : {},
1937
- depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : []
1988
+ 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)) : [],
1989
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
1990
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
1938
1991
  };
1939
1992
  },
1940
1993
  toJSON(message) {
@@ -1957,6 +2010,12 @@ var Use = {
1957
2010
  if (message.depends_on?.length) {
1958
2011
  obj.dependsOn = message.depends_on;
1959
2012
  }
2013
+ if (message.count !== void 0) {
2014
+ obj.count = Binding.toJSON(message.count);
2015
+ }
2016
+ if (message.for_each !== void 0) {
2017
+ obj.forEach = Binding.toJSON(message.for_each);
2018
+ }
1960
2019
  return obj;
1961
2020
  },
1962
2021
  create(base) {
@@ -1976,6 +2035,8 @@ var Use = {
1976
2035
  {}
1977
2036
  );
1978
2037
  message.depends_on = object.depends_on?.map((e) => e) || [];
2038
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
2039
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
1979
2040
  return message;
1980
2041
  }
1981
2042
  };
@@ -3384,9 +3445,7 @@ var ProviderConfig = {
3384
3445
  writer.uint32(18).string(message.alias);
3385
3446
  }
3386
3447
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
3387
- if (value !== void 0) {
3388
- ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3389
- }
3448
+ ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3390
3449
  });
3391
3450
  for (const v of message.blocks) {
3392
3451
  Block.encode(v, writer.uint32(34).fork()).join();
@@ -3445,7 +3504,7 @@ var ProviderConfig = {
3445
3504
  alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
3446
3505
  config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
3447
3506
  (acc, [key, value]) => {
3448
- acc[key] = value;
3507
+ acc[key] = Binding.fromJSON(value);
3449
3508
  return acc;
3450
3509
  },
3451
3510
  {}
@@ -3466,7 +3525,7 @@ var ProviderConfig = {
3466
3525
  if (entries.length > 0) {
3467
3526
  obj.config = {};
3468
3527
  entries.forEach(([k, v]) => {
3469
- obj.config[k] = v;
3528
+ obj.config[k] = Binding.toJSON(v);
3470
3529
  });
3471
3530
  }
3472
3531
  }
@@ -3485,7 +3544,7 @@ var ProviderConfig = {
3485
3544
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
3486
3545
  (acc, [key, value]) => {
3487
3546
  if (value !== void 0) {
3488
- acc[key] = value;
3547
+ acc[key] = Binding.fromPartial(value);
3489
3548
  }
3490
3549
  return acc;
3491
3550
  },
@@ -3504,7 +3563,7 @@ var ProviderConfig_ConfigEntry = {
3504
3563
  writer.uint32(10).string(message.key);
3505
3564
  }
3506
3565
  if (message.value !== void 0) {
3507
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
3566
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
3508
3567
  }
3509
3568
  return writer;
3510
3569
  },
@@ -3526,7 +3585,7 @@ var ProviderConfig_ConfigEntry = {
3526
3585
  if (tag !== 18) {
3527
3586
  break;
3528
3587
  }
3529
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
3588
+ message.value = Binding.decode(reader, reader.uint32());
3530
3589
  continue;
3531
3590
  }
3532
3591
  }
@@ -3540,7 +3599,7 @@ var ProviderConfig_ConfigEntry = {
3540
3599
  fromJSON(object) {
3541
3600
  return {
3542
3601
  key: isSet2(object.key) ? globalThis.String(object.key) : "",
3543
- value: isSet2(object?.value) ? object.value : void 0
3602
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
3544
3603
  };
3545
3604
  },
3546
3605
  toJSON(message) {
@@ -3549,7 +3608,7 @@ var ProviderConfig_ConfigEntry = {
3549
3608
  obj.key = message.key;
3550
3609
  }
3551
3610
  if (message.value !== void 0) {
3552
- obj.value = message.value;
3611
+ obj.value = Binding.toJSON(message.value);
3553
3612
  }
3554
3613
  return obj;
3555
3614
  },
@@ -3559,7 +3618,7 @@ var ProviderConfig_ConfigEntry = {
3559
3618
  fromPartial(object) {
3560
3619
  const message = createBaseProviderConfig_ConfigEntry();
3561
3620
  message.key = object.key ?? "";
3562
- message.value = object.value ?? void 0;
3621
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
3563
3622
  return message;
3564
3623
  }
3565
3624
  };
@@ -9254,6 +9313,165 @@ var SetDependsOnAction = {
9254
9313
  return message;
9255
9314
  }
9256
9315
  };
9316
+ function createBaseSetUseProvidersAction() {
9317
+ return { instance_id: "", providers: {} };
9318
+ }
9319
+ var SetUseProvidersAction = {
9320
+ encode(message, writer = new import_wire4.BinaryWriter()) {
9321
+ if (message.instance_id !== "") {
9322
+ writer.uint32(10).string(message.instance_id);
9323
+ }
9324
+ globalThis.Object.entries(message.providers).forEach(([key, value]) => {
9325
+ SetUseProvidersAction_ProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
9326
+ });
9327
+ return writer;
9328
+ },
9329
+ decode(input, length) {
9330
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
9331
+ const end = length === void 0 ? reader.len : reader.pos + length;
9332
+ const message = createBaseSetUseProvidersAction();
9333
+ while (reader.pos < end) {
9334
+ const tag = reader.uint32();
9335
+ switch (tag >>> 3) {
9336
+ case 1: {
9337
+ if (tag !== 10) {
9338
+ break;
9339
+ }
9340
+ message.instance_id = reader.string();
9341
+ continue;
9342
+ }
9343
+ case 2: {
9344
+ if (tag !== 18) {
9345
+ break;
9346
+ }
9347
+ const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
9348
+ if (entry2.value !== void 0) {
9349
+ message.providers[entry2.key] = entry2.value;
9350
+ }
9351
+ continue;
9352
+ }
9353
+ }
9354
+ if ((tag & 7) === 4 || tag === 0) {
9355
+ break;
9356
+ }
9357
+ reader.skip(tag & 7);
9358
+ }
9359
+ return message;
9360
+ },
9361
+ fromJSON(object) {
9362
+ return {
9363
+ instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
9364
+ providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
9365
+ (acc, [key, value]) => {
9366
+ acc[key] = globalThis.String(value);
9367
+ return acc;
9368
+ },
9369
+ {}
9370
+ ) : {}
9371
+ };
9372
+ },
9373
+ toJSON(message) {
9374
+ const obj = {};
9375
+ if (message.instance_id !== "") {
9376
+ obj.instanceId = message.instance_id;
9377
+ }
9378
+ if (message.providers) {
9379
+ const entries = globalThis.Object.entries(message.providers);
9380
+ if (entries.length > 0) {
9381
+ obj.providers = {};
9382
+ entries.forEach(([k, v]) => {
9383
+ obj.providers[k] = v;
9384
+ });
9385
+ }
9386
+ }
9387
+ return obj;
9388
+ },
9389
+ create(base) {
9390
+ return SetUseProvidersAction.fromPartial(base ?? {});
9391
+ },
9392
+ fromPartial(object) {
9393
+ const message = createBaseSetUseProvidersAction();
9394
+ message.instance_id = object.instance_id ?? "";
9395
+ message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
9396
+ (acc, [key, value]) => {
9397
+ if (value !== void 0) {
9398
+ acc[key] = globalThis.String(value);
9399
+ }
9400
+ return acc;
9401
+ },
9402
+ {}
9403
+ );
9404
+ return message;
9405
+ }
9406
+ };
9407
+ function createBaseSetUseProvidersAction_ProvidersEntry() {
9408
+ return { key: "", value: "" };
9409
+ }
9410
+ var SetUseProvidersAction_ProvidersEntry = {
9411
+ encode(message, writer = new import_wire4.BinaryWriter()) {
9412
+ if (message.key !== "") {
9413
+ writer.uint32(10).string(message.key);
9414
+ }
9415
+ if (message.value !== "") {
9416
+ writer.uint32(18).string(message.value);
9417
+ }
9418
+ return writer;
9419
+ },
9420
+ decode(input, length) {
9421
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
9422
+ const end = length === void 0 ? reader.len : reader.pos + length;
9423
+ const message = createBaseSetUseProvidersAction_ProvidersEntry();
9424
+ while (reader.pos < end) {
9425
+ const tag = reader.uint32();
9426
+ switch (tag >>> 3) {
9427
+ case 1: {
9428
+ if (tag !== 10) {
9429
+ break;
9430
+ }
9431
+ message.key = reader.string();
9432
+ continue;
9433
+ }
9434
+ case 2: {
9435
+ if (tag !== 18) {
9436
+ break;
9437
+ }
9438
+ message.value = reader.string();
9439
+ continue;
9440
+ }
9441
+ }
9442
+ if ((tag & 7) === 4 || tag === 0) {
9443
+ break;
9444
+ }
9445
+ reader.skip(tag & 7);
9446
+ }
9447
+ return message;
9448
+ },
9449
+ fromJSON(object) {
9450
+ return {
9451
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
9452
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
9453
+ };
9454
+ },
9455
+ toJSON(message) {
9456
+ const obj = {};
9457
+ if (message.key !== "") {
9458
+ obj.key = message.key;
9459
+ }
9460
+ if (message.value !== "") {
9461
+ obj.value = message.value;
9462
+ }
9463
+ return obj;
9464
+ },
9465
+ create(base) {
9466
+ return SetUseProvidersAction_ProvidersEntry.fromPartial(base ?? {});
9467
+ },
9468
+ fromPartial(object) {
9469
+ const message = createBaseSetUseProvidersAction_ProvidersEntry();
9470
+ message.key = object.key ?? "";
9471
+ message.value = object.value ?? "";
9472
+ return message;
9473
+ }
9474
+ };
9257
9475
  function createBaseSetEnvironmentsAction() {
9258
9476
  return { environments: {}, environment_backends: {} };
9259
9477
  }
@@ -9724,7 +9942,8 @@ function createBaseAction() {
9724
9942
  set_environments: void 0,
9725
9943
  undo: void 0,
9726
9944
  redo: void 0,
9727
- place_module: void 0
9945
+ place_module: void 0,
9946
+ set_use_providers: void 0
9728
9947
  };
9729
9948
  }
9730
9949
  var Action = {
@@ -9795,6 +10014,9 @@ var Action = {
9795
10014
  if (message.place_module !== void 0) {
9796
10015
  PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
9797
10016
  }
10017
+ if (message.set_use_providers !== void 0) {
10018
+ SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
10019
+ }
9798
10020
  return writer;
9799
10021
  },
9800
10022
  decode(input, length) {
@@ -9958,6 +10180,13 @@ var Action = {
9958
10180
  message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
9959
10181
  continue;
9960
10182
  }
10183
+ case 23: {
10184
+ if (tag !== 186) {
10185
+ break;
10186
+ }
10187
+ message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
10188
+ continue;
10189
+ }
9961
10190
  }
9962
10191
  if ((tag & 7) === 4 || tag === 0) {
9963
10192
  break;
@@ -9989,7 +10218,8 @@ var Action = {
9989
10218
  set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
9990
10219
  undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
9991
10220
  redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
9992
- place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0
10221
+ place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
10222
+ set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
9993
10223
  };
9994
10224
  },
9995
10225
  toJSON(message) {
@@ -10060,6 +10290,9 @@ var Action = {
10060
10290
  if (message.place_module !== void 0) {
10061
10291
  obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
10062
10292
  }
10293
+ if (message.set_use_providers !== void 0) {
10294
+ obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
10295
+ }
10063
10296
  return obj;
10064
10297
  },
10065
10298
  create(base) {
@@ -10089,6 +10322,7 @@ var Action = {
10089
10322
  message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
10090
10323
  message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
10091
10324
  message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
10325
+ message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
10092
10326
  return message;
10093
10327
  }
10094
10328
  };
@@ -11846,7 +12080,15 @@ var RenderOutput = {
11846
12080
  }
11847
12081
  };
11848
12082
  function createBaseNodeConfig() {
11849
- return { instance_id: "", inputs: [], outputs: [], sibling_ids: [], depends_on: [], available_variables: [] };
12083
+ return {
12084
+ instance_id: "",
12085
+ inputs: [],
12086
+ outputs: [],
12087
+ sibling_ids: [],
12088
+ depends_on: [],
12089
+ available_variables: [],
12090
+ providers: {}
12091
+ };
11850
12092
  }
11851
12093
  var NodeConfig = {
11852
12094
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -11868,6 +12110,9 @@ var NodeConfig = {
11868
12110
  for (const v of message.available_variables) {
11869
12111
  VariableRef.encode(v, writer.uint32(50).fork()).join();
11870
12112
  }
12113
+ globalThis.Object.entries(message.providers).forEach(([key, value]) => {
12114
+ NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
12115
+ });
11871
12116
  return writer;
11872
12117
  },
11873
12118
  decode(input, length) {
@@ -11919,6 +12164,16 @@ var NodeConfig = {
11919
12164
  message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
11920
12165
  continue;
11921
12166
  }
12167
+ case 7: {
12168
+ if (tag !== 58) {
12169
+ break;
12170
+ }
12171
+ const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
12172
+ if (entry7.value !== void 0) {
12173
+ message.providers[entry7.key] = entry7.value;
12174
+ }
12175
+ continue;
12176
+ }
11922
12177
  }
11923
12178
  if ((tag & 7) === 4 || tag === 0) {
11924
12179
  break;
@@ -11934,7 +12189,14 @@ var NodeConfig = {
11934
12189
  outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
11935
12190
  sibling_ids: globalThis.Array.isArray(object?.siblingIds) ? object.siblingIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.sibling_ids) ? object.sibling_ids.map((e) => globalThis.String(e)) : [],
11936
12191
  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)) : [],
11937
- available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : []
12192
+ available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : [],
12193
+ providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
12194
+ (acc, [key, value]) => {
12195
+ acc[key] = globalThis.String(value);
12196
+ return acc;
12197
+ },
12198
+ {}
12199
+ ) : {}
11938
12200
  };
11939
12201
  },
11940
12202
  toJSON(message) {
@@ -11957,6 +12219,15 @@ var NodeConfig = {
11957
12219
  if (message.available_variables?.length) {
11958
12220
  obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
11959
12221
  }
12222
+ if (message.providers) {
12223
+ const entries = globalThis.Object.entries(message.providers);
12224
+ if (entries.length > 0) {
12225
+ obj.providers = {};
12226
+ entries.forEach(([k, v]) => {
12227
+ obj.providers[k] = v;
12228
+ });
12229
+ }
12230
+ }
11960
12231
  return obj;
11961
12232
  },
11962
12233
  create(base) {
@@ -11970,6 +12241,83 @@ var NodeConfig = {
11970
12241
  message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
11971
12242
  message.depends_on = object.depends_on?.map((e) => e) || [];
11972
12243
  message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
12244
+ message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
12245
+ (acc, [key, value]) => {
12246
+ if (value !== void 0) {
12247
+ acc[key] = globalThis.String(value);
12248
+ }
12249
+ return acc;
12250
+ },
12251
+ {}
12252
+ );
12253
+ return message;
12254
+ }
12255
+ };
12256
+ function createBaseNodeConfig_ProvidersEntry() {
12257
+ return { key: "", value: "" };
12258
+ }
12259
+ var NodeConfig_ProvidersEntry = {
12260
+ encode(message, writer = new import_wire4.BinaryWriter()) {
12261
+ if (message.key !== "") {
12262
+ writer.uint32(10).string(message.key);
12263
+ }
12264
+ if (message.value !== "") {
12265
+ writer.uint32(18).string(message.value);
12266
+ }
12267
+ return writer;
12268
+ },
12269
+ decode(input, length) {
12270
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
12271
+ const end = length === void 0 ? reader.len : reader.pos + length;
12272
+ const message = createBaseNodeConfig_ProvidersEntry();
12273
+ while (reader.pos < end) {
12274
+ const tag = reader.uint32();
12275
+ switch (tag >>> 3) {
12276
+ case 1: {
12277
+ if (tag !== 10) {
12278
+ break;
12279
+ }
12280
+ message.key = reader.string();
12281
+ continue;
12282
+ }
12283
+ case 2: {
12284
+ if (tag !== 18) {
12285
+ break;
12286
+ }
12287
+ message.value = reader.string();
12288
+ continue;
12289
+ }
12290
+ }
12291
+ if ((tag & 7) === 4 || tag === 0) {
12292
+ break;
12293
+ }
12294
+ reader.skip(tag & 7);
12295
+ }
12296
+ return message;
12297
+ },
12298
+ fromJSON(object) {
12299
+ return {
12300
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
12301
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
12302
+ };
12303
+ },
12304
+ toJSON(message) {
12305
+ const obj = {};
12306
+ if (message.key !== "") {
12307
+ obj.key = message.key;
12308
+ }
12309
+ if (message.value !== "") {
12310
+ obj.value = message.value;
12311
+ }
12312
+ return obj;
12313
+ },
12314
+ create(base) {
12315
+ return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
12316
+ },
12317
+ fromPartial(object) {
12318
+ const message = createBaseNodeConfig_ProvidersEntry();
12319
+ message.key = object.key ?? "";
12320
+ message.value = object.value ?? "";
11973
12321
  return message;
11974
12322
  }
11975
12323
  };
@@ -12582,7 +12930,7 @@ var TerraformView = {
12582
12930
  }
12583
12931
  };
12584
12932
  function createBaseProviderReqView() {
12585
- return { name: "", source: "", version: "" };
12933
+ return { name: "", source: "", version: "", configuration_aliases: [] };
12586
12934
  }
12587
12935
  var ProviderReqView = {
12588
12936
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -12595,6 +12943,9 @@ var ProviderReqView = {
12595
12943
  if (message.version !== "") {
12596
12944
  writer.uint32(26).string(message.version);
12597
12945
  }
12946
+ for (const v of message.configuration_aliases) {
12947
+ writer.uint32(34).string(v);
12948
+ }
12598
12949
  return writer;
12599
12950
  },
12600
12951
  decode(input, length) {
@@ -12625,6 +12976,13 @@ var ProviderReqView = {
12625
12976
  message.version = reader.string();
12626
12977
  continue;
12627
12978
  }
12979
+ case 4: {
12980
+ if (tag !== 34) {
12981
+ break;
12982
+ }
12983
+ message.configuration_aliases.push(reader.string());
12984
+ continue;
12985
+ }
12628
12986
  }
12629
12987
  if ((tag & 7) === 4 || tag === 0) {
12630
12988
  break;
@@ -12637,7 +12995,8 @@ var ProviderReqView = {
12637
12995
  return {
12638
12996
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
12639
12997
  source: isSet3(object.source) ? globalThis.String(object.source) : "",
12640
- version: isSet3(object.version) ? globalThis.String(object.version) : ""
12998
+ version: isSet3(object.version) ? globalThis.String(object.version) : "",
12999
+ configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
12641
13000
  };
12642
13001
  },
12643
13002
  toJSON(message) {
@@ -12651,6 +13010,9 @@ var ProviderReqView = {
12651
13010
  if (message.version !== "") {
12652
13011
  obj.version = message.version;
12653
13012
  }
13013
+ if (message.configuration_aliases?.length) {
13014
+ obj.configurationAliases = message.configuration_aliases;
13015
+ }
12654
13016
  return obj;
12655
13017
  },
12656
13018
  create(base) {
@@ -12661,6 +13023,7 @@ var ProviderReqView = {
12661
13023
  message.name = object.name ?? "";
12662
13024
  message.source = object.source ?? "";
12663
13025
  message.version = object.version ?? "";
13026
+ message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
12664
13027
  return message;
12665
13028
  }
12666
13029
  };
@@ -12826,7 +13189,7 @@ var BackendView_ConfigEntry = {
12826
13189
  }
12827
13190
  };
12828
13191
  function createBaseProviderView() {
12829
- return { name: "", alias: "", config: {} };
13192
+ return { name: "", alias: "", config: {}, blocks: [] };
12830
13193
  }
12831
13194
  var ProviderView = {
12832
13195
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -12837,10 +13200,11 @@ var ProviderView = {
12837
13200
  writer.uint32(18).string(message.alias);
12838
13201
  }
12839
13202
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
12840
- if (value !== void 0) {
12841
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
12842
- }
13203
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
12843
13204
  });
13205
+ for (const v of message.blocks) {
13206
+ Block.encode(v, writer.uint32(34).fork()).join();
13207
+ }
12844
13208
  return writer;
12845
13209
  },
12846
13210
  decode(input, length) {
@@ -12874,6 +13238,13 @@ var ProviderView = {
12874
13238
  }
12875
13239
  continue;
12876
13240
  }
13241
+ case 4: {
13242
+ if (tag !== 34) {
13243
+ break;
13244
+ }
13245
+ message.blocks.push(Block.decode(reader, reader.uint32()));
13246
+ continue;
13247
+ }
12877
13248
  }
12878
13249
  if ((tag & 7) === 4 || tag === 0) {
12879
13250
  break;
@@ -12888,11 +13259,12 @@ var ProviderView = {
12888
13259
  alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
12889
13260
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
12890
13261
  (acc, [key, value]) => {
12891
- acc[key] = value;
13262
+ acc[key] = globalThis.String(value);
12892
13263
  return acc;
12893
13264
  },
12894
13265
  {}
12895
- ) : {}
13266
+ ) : {},
13267
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
12896
13268
  };
12897
13269
  },
12898
13270
  toJSON(message) {
@@ -12912,6 +13284,9 @@ var ProviderView = {
12912
13284
  });
12913
13285
  }
12914
13286
  }
13287
+ if (message.blocks?.length) {
13288
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
13289
+ }
12915
13290
  return obj;
12916
13291
  },
12917
13292
  create(base) {
@@ -12924,25 +13299,26 @@ var ProviderView = {
12924
13299
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
12925
13300
  (acc, [key, value]) => {
12926
13301
  if (value !== void 0) {
12927
- acc[key] = value;
13302
+ acc[key] = globalThis.String(value);
12928
13303
  }
12929
13304
  return acc;
12930
13305
  },
12931
13306
  {}
12932
13307
  );
13308
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
12933
13309
  return message;
12934
13310
  }
12935
13311
  };
12936
13312
  function createBaseProviderView_ConfigEntry() {
12937
- return { key: "", value: void 0 };
13313
+ return { key: "", value: "" };
12938
13314
  }
12939
13315
  var ProviderView_ConfigEntry = {
12940
13316
  encode(message, writer = new import_wire4.BinaryWriter()) {
12941
13317
  if (message.key !== "") {
12942
13318
  writer.uint32(10).string(message.key);
12943
13319
  }
12944
- if (message.value !== void 0) {
12945
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
13320
+ if (message.value !== "") {
13321
+ writer.uint32(18).string(message.value);
12946
13322
  }
12947
13323
  return writer;
12948
13324
  },
@@ -12964,7 +13340,7 @@ var ProviderView_ConfigEntry = {
12964
13340
  if (tag !== 18) {
12965
13341
  break;
12966
13342
  }
12967
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
13343
+ message.value = reader.string();
12968
13344
  continue;
12969
13345
  }
12970
13346
  }
@@ -12978,7 +13354,7 @@ var ProviderView_ConfigEntry = {
12978
13354
  fromJSON(object) {
12979
13355
  return {
12980
13356
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
12981
- value: isSet3(object?.value) ? object.value : void 0
13357
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
12982
13358
  };
12983
13359
  },
12984
13360
  toJSON(message) {
@@ -12986,7 +13362,7 @@ var ProviderView_ConfigEntry = {
12986
13362
  if (message.key !== "") {
12987
13363
  obj.key = message.key;
12988
13364
  }
12989
- if (message.value !== void 0) {
13365
+ if (message.value !== "") {
12990
13366
  obj.value = message.value;
12991
13367
  }
12992
13368
  return obj;
@@ -12997,7 +13373,7 @@ var ProviderView_ConfigEntry = {
12997
13373
  fromPartial(object) {
12998
13374
  const message = createBaseProviderView_ConfigEntry();
12999
13375
  message.key = object.key ?? "";
13000
- message.value = object.value ?? void 0;
13376
+ message.value = object.value ?? "";
13001
13377
  return message;
13002
13378
  }
13003
13379
  };
@@ -13236,7 +13612,17 @@ var Position2 = {
13236
13612
  }
13237
13613
  };
13238
13614
  function createBaseInputDef2() {
13239
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
13615
+ return {
13616
+ name: "",
13617
+ type: "",
13618
+ required: false,
13619
+ description: "",
13620
+ default_value: void 0,
13621
+ validation: [],
13622
+ ephemeral: void 0,
13623
+ nullable: void 0,
13624
+ sensitive: false
13625
+ };
13240
13626
  }
13241
13627
  var InputDef2 = {
13242
13628
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -13255,8 +13641,17 @@ var InputDef2 = {
13255
13641
  if (message.default_value !== void 0) {
13256
13642
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
13257
13643
  }
13258
- if (message.validation !== void 0) {
13259
- ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
13644
+ for (const v of message.validation) {
13645
+ ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
13646
+ }
13647
+ if (message.ephemeral !== void 0) {
13648
+ writer.uint32(56).bool(message.ephemeral);
13649
+ }
13650
+ if (message.nullable !== void 0) {
13651
+ writer.uint32(64).bool(message.nullable);
13652
+ }
13653
+ if (message.sensitive !== false) {
13654
+ writer.uint32(72).bool(message.sensitive);
13260
13655
  }
13261
13656
  return writer;
13262
13657
  },
@@ -13306,7 +13701,28 @@ var InputDef2 = {
13306
13701
  if (tag !== 50) {
13307
13702
  break;
13308
13703
  }
13309
- message.validation = ValidationBlock2.decode(reader, reader.uint32());
13704
+ message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
13705
+ continue;
13706
+ }
13707
+ case 7: {
13708
+ if (tag !== 56) {
13709
+ break;
13710
+ }
13711
+ message.ephemeral = reader.bool();
13712
+ continue;
13713
+ }
13714
+ case 8: {
13715
+ if (tag !== 64) {
13716
+ break;
13717
+ }
13718
+ message.nullable = reader.bool();
13719
+ continue;
13720
+ }
13721
+ case 9: {
13722
+ if (tag !== 72) {
13723
+ break;
13724
+ }
13725
+ message.sensitive = reader.bool();
13310
13726
  continue;
13311
13727
  }
13312
13728
  }
@@ -13324,7 +13740,10 @@ var InputDef2 = {
13324
13740
  required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
13325
13741
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
13326
13742
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
13327
- validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0
13743
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
13744
+ ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
13745
+ nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
13746
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
13328
13747
  };
13329
13748
  },
13330
13749
  toJSON(message) {
@@ -13344,8 +13763,17 @@ var InputDef2 = {
13344
13763
  if (message.default_value !== void 0) {
13345
13764
  obj.defaultValue = message.default_value;
13346
13765
  }
13347
- if (message.validation !== void 0) {
13348
- obj.validation = ValidationBlock2.toJSON(message.validation);
13766
+ if (message.validation?.length) {
13767
+ obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
13768
+ }
13769
+ if (message.ephemeral !== void 0) {
13770
+ obj.ephemeral = message.ephemeral;
13771
+ }
13772
+ if (message.nullable !== void 0) {
13773
+ obj.nullable = message.nullable;
13774
+ }
13775
+ if (message.sensitive !== false) {
13776
+ obj.sensitive = message.sensitive;
13349
13777
  }
13350
13778
  return obj;
13351
13779
  },
@@ -13359,7 +13787,10 @@ var InputDef2 = {
13359
13787
  message.required = object.required ?? false;
13360
13788
  message.description = object.description ?? "";
13361
13789
  message.default_value = object.default_value ?? void 0;
13362
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
13790
+ message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
13791
+ message.ephemeral = object.ephemeral ?? void 0;
13792
+ message.nullable = object.nullable ?? void 0;
13793
+ message.sensitive = object.sensitive ?? false;
13363
13794
  return message;
13364
13795
  }
13365
13796
  };
@@ -13432,7 +13863,7 @@ var ValidationBlock2 = {
13432
13863
  }
13433
13864
  };
13434
13865
  function createBaseOutputDef2() {
13435
- return { name: "", type: "", description: "", sensitive: false };
13866
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
13436
13867
  }
13437
13868
  var OutputDef2 = {
13438
13869
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -13448,6 +13879,9 @@ var OutputDef2 = {
13448
13879
  if (message.sensitive !== false) {
13449
13880
  writer.uint32(32).bool(message.sensitive);
13450
13881
  }
13882
+ for (const v of message.depends_on) {
13883
+ writer.uint32(42).string(v);
13884
+ }
13451
13885
  return writer;
13452
13886
  },
13453
13887
  decode(input, length) {
@@ -13485,6 +13919,13 @@ var OutputDef2 = {
13485
13919
  message.sensitive = reader.bool();
13486
13920
  continue;
13487
13921
  }
13922
+ case 5: {
13923
+ if (tag !== 42) {
13924
+ break;
13925
+ }
13926
+ message.depends_on.push(reader.string());
13927
+ continue;
13928
+ }
13488
13929
  }
13489
13930
  if ((tag & 7) === 4 || tag === 0) {
13490
13931
  break;
@@ -13498,7 +13939,8 @@ var OutputDef2 = {
13498
13939
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
13499
13940
  type: isSet3(object.type) ? globalThis.String(object.type) : "",
13500
13941
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
13501
- sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
13942
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
13943
+ 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)) : []
13502
13944
  };
13503
13945
  },
13504
13946
  toJSON(message) {
@@ -13515,6 +13957,9 @@ var OutputDef2 = {
13515
13957
  if (message.sensitive !== false) {
13516
13958
  obj.sensitive = message.sensitive;
13517
13959
  }
13960
+ if (message.depends_on?.length) {
13961
+ obj.dependsOn = message.depends_on;
13962
+ }
13518
13963
  return obj;
13519
13964
  },
13520
13965
  create(base) {
@@ -13526,6 +13971,7 @@ var OutputDef2 = {
13526
13971
  message.type = object.type ?? "";
13527
13972
  message.description = object.description ?? "";
13528
13973
  message.sensitive = object.sensitive ?? false;
13974
+ message.depends_on = object.depends_on?.map((e) => e) || [];
13529
13975
  return message;
13530
13976
  }
13531
13977
  };