@lace-cloud/host 0.8.0 → 0.9.1

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
@@ -9313,6 +9313,165 @@ var SetDependsOnAction = {
9313
9313
  return message;
9314
9314
  }
9315
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
+ };
9316
9475
  function createBaseSetEnvironmentsAction() {
9317
9476
  return { environments: {}, environment_backends: {} };
9318
9477
  }
@@ -9783,7 +9942,8 @@ function createBaseAction() {
9783
9942
  set_environments: void 0,
9784
9943
  undo: void 0,
9785
9944
  redo: void 0,
9786
- place_module: void 0
9945
+ place_module: void 0,
9946
+ set_use_providers: void 0
9787
9947
  };
9788
9948
  }
9789
9949
  var Action = {
@@ -9854,6 +10014,9 @@ var Action = {
9854
10014
  if (message.place_module !== void 0) {
9855
10015
  PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
9856
10016
  }
10017
+ if (message.set_use_providers !== void 0) {
10018
+ SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
10019
+ }
9857
10020
  return writer;
9858
10021
  },
9859
10022
  decode(input, length) {
@@ -10017,6 +10180,13 @@ var Action = {
10017
10180
  message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
10018
10181
  continue;
10019
10182
  }
10183
+ case 23: {
10184
+ if (tag !== 186) {
10185
+ break;
10186
+ }
10187
+ message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
10188
+ continue;
10189
+ }
10020
10190
  }
10021
10191
  if ((tag & 7) === 4 || tag === 0) {
10022
10192
  break;
@@ -10048,7 +10218,8 @@ var Action = {
10048
10218
  set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
10049
10219
  undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
10050
10220
  redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
10051
- 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
10052
10223
  };
10053
10224
  },
10054
10225
  toJSON(message) {
@@ -10119,6 +10290,9 @@ var Action = {
10119
10290
  if (message.place_module !== void 0) {
10120
10291
  obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
10121
10292
  }
10293
+ if (message.set_use_providers !== void 0) {
10294
+ obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
10295
+ }
10122
10296
  return obj;
10123
10297
  },
10124
10298
  create(base) {
@@ -10148,6 +10322,7 @@ var Action = {
10148
10322
  message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
10149
10323
  message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
10150
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;
10151
10326
  return message;
10152
10327
  }
10153
10328
  };
@@ -11905,7 +12080,15 @@ var RenderOutput = {
11905
12080
  }
11906
12081
  };
11907
12082
  function createBaseNodeConfig() {
11908
- 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
+ };
11909
12092
  }
11910
12093
  var NodeConfig = {
11911
12094
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -11927,6 +12110,9 @@ var NodeConfig = {
11927
12110
  for (const v of message.available_variables) {
11928
12111
  VariableRef.encode(v, writer.uint32(50).fork()).join();
11929
12112
  }
12113
+ globalThis.Object.entries(message.providers).forEach(([key, value]) => {
12114
+ NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
12115
+ });
11930
12116
  return writer;
11931
12117
  },
11932
12118
  decode(input, length) {
@@ -11978,6 +12164,16 @@ var NodeConfig = {
11978
12164
  message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
11979
12165
  continue;
11980
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
+ }
11981
12177
  }
11982
12178
  if ((tag & 7) === 4 || tag === 0) {
11983
12179
  break;
@@ -11993,7 +12189,14 @@ var NodeConfig = {
11993
12189
  outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
11994
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)) : [],
11995
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)) : [],
11996
- 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
+ ) : {}
11997
12200
  };
11998
12201
  },
11999
12202
  toJSON(message) {
@@ -12016,6 +12219,15 @@ var NodeConfig = {
12016
12219
  if (message.available_variables?.length) {
12017
12220
  obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
12018
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
+ }
12019
12231
  return obj;
12020
12232
  },
12021
12233
  create(base) {
@@ -12029,6 +12241,83 @@ var NodeConfig = {
12029
12241
  message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
12030
12242
  message.depends_on = object.depends_on?.map((e) => e) || [];
12031
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 ?? "";
12032
12321
  return message;
12033
12322
  }
12034
12323
  };
@@ -12641,7 +12930,7 @@ var TerraformView = {
12641
12930
  }
12642
12931
  };
12643
12932
  function createBaseProviderReqView() {
12644
- return { name: "", source: "", version: "" };
12933
+ return { name: "", source: "", version: "", configuration_aliases: [] };
12645
12934
  }
12646
12935
  var ProviderReqView = {
12647
12936
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -12654,6 +12943,9 @@ var ProviderReqView = {
12654
12943
  if (message.version !== "") {
12655
12944
  writer.uint32(26).string(message.version);
12656
12945
  }
12946
+ for (const v of message.configuration_aliases) {
12947
+ writer.uint32(34).string(v);
12948
+ }
12657
12949
  return writer;
12658
12950
  },
12659
12951
  decode(input, length) {
@@ -12684,6 +12976,13 @@ var ProviderReqView = {
12684
12976
  message.version = reader.string();
12685
12977
  continue;
12686
12978
  }
12979
+ case 4: {
12980
+ if (tag !== 34) {
12981
+ break;
12982
+ }
12983
+ message.configuration_aliases.push(reader.string());
12984
+ continue;
12985
+ }
12687
12986
  }
12688
12987
  if ((tag & 7) === 4 || tag === 0) {
12689
12988
  break;
@@ -12696,7 +12995,8 @@ var ProviderReqView = {
12696
12995
  return {
12697
12996
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
12698
12997
  source: isSet3(object.source) ? globalThis.String(object.source) : "",
12699
- 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)) : []
12700
13000
  };
12701
13001
  },
12702
13002
  toJSON(message) {
@@ -12710,6 +13010,9 @@ var ProviderReqView = {
12710
13010
  if (message.version !== "") {
12711
13011
  obj.version = message.version;
12712
13012
  }
13013
+ if (message.configuration_aliases?.length) {
13014
+ obj.configurationAliases = message.configuration_aliases;
13015
+ }
12713
13016
  return obj;
12714
13017
  },
12715
13018
  create(base) {
@@ -12720,6 +13023,7 @@ var ProviderReqView = {
12720
13023
  message.name = object.name ?? "";
12721
13024
  message.source = object.source ?? "";
12722
13025
  message.version = object.version ?? "";
13026
+ message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
12723
13027
  return message;
12724
13028
  }
12725
13029
  };
@@ -12885,7 +13189,7 @@ var BackendView_ConfigEntry = {
12885
13189
  }
12886
13190
  };
12887
13191
  function createBaseProviderView() {
12888
- return { name: "", alias: "", config: {} };
13192
+ return { name: "", alias: "", config: {}, blocks: [] };
12889
13193
  }
12890
13194
  var ProviderView = {
12891
13195
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -12898,6 +13202,9 @@ var ProviderView = {
12898
13202
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
12899
13203
  ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
12900
13204
  });
13205
+ for (const v of message.blocks) {
13206
+ Block.encode(v, writer.uint32(34).fork()).join();
13207
+ }
12901
13208
  return writer;
12902
13209
  },
12903
13210
  decode(input, length) {
@@ -12931,6 +13238,13 @@ var ProviderView = {
12931
13238
  }
12932
13239
  continue;
12933
13240
  }
13241
+ case 4: {
13242
+ if (tag !== 34) {
13243
+ break;
13244
+ }
13245
+ message.blocks.push(Block.decode(reader, reader.uint32()));
13246
+ continue;
13247
+ }
12934
13248
  }
12935
13249
  if ((tag & 7) === 4 || tag === 0) {
12936
13250
  break;
@@ -12949,7 +13263,8 @@ var ProviderView = {
12949
13263
  return acc;
12950
13264
  },
12951
13265
  {}
12952
- ) : {}
13266
+ ) : {},
13267
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
12953
13268
  };
12954
13269
  },
12955
13270
  toJSON(message) {
@@ -12969,6 +13284,9 @@ var ProviderView = {
12969
13284
  });
12970
13285
  }
12971
13286
  }
13287
+ if (message.blocks?.length) {
13288
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
13289
+ }
12972
13290
  return obj;
12973
13291
  },
12974
13292
  create(base) {
@@ -12987,6 +13305,7 @@ var ProviderView = {
12987
13305
  },
12988
13306
  {}
12989
13307
  );
13308
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
12990
13309
  return message;
12991
13310
  }
12992
13311
  };
@@ -13300,7 +13619,9 @@ function createBaseInputDef2() {
13300
13619
  description: "",
13301
13620
  default_value: void 0,
13302
13621
  validation: [],
13303
- ephemeral: void 0
13622
+ ephemeral: void 0,
13623
+ nullable: void 0,
13624
+ sensitive: false
13304
13625
  };
13305
13626
  }
13306
13627
  var InputDef2 = {
@@ -13326,6 +13647,12 @@ var InputDef2 = {
13326
13647
  if (message.ephemeral !== void 0) {
13327
13648
  writer.uint32(56).bool(message.ephemeral);
13328
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);
13655
+ }
13329
13656
  return writer;
13330
13657
  },
13331
13658
  decode(input, length) {
@@ -13384,6 +13711,20 @@ var InputDef2 = {
13384
13711
  message.ephemeral = reader.bool();
13385
13712
  continue;
13386
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();
13726
+ continue;
13727
+ }
13387
13728
  }
13388
13729
  if ((tag & 7) === 4 || tag === 0) {
13389
13730
  break;
@@ -13400,7 +13741,9 @@ var InputDef2 = {
13400
13741
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
13401
13742
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
13402
13743
  validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
13403
- ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
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
13404
13747
  };
13405
13748
  },
13406
13749
  toJSON(message) {
@@ -13426,6 +13769,12 @@ var InputDef2 = {
13426
13769
  if (message.ephemeral !== void 0) {
13427
13770
  obj.ephemeral = message.ephemeral;
13428
13771
  }
13772
+ if (message.nullable !== void 0) {
13773
+ obj.nullable = message.nullable;
13774
+ }
13775
+ if (message.sensitive !== false) {
13776
+ obj.sensitive = message.sensitive;
13777
+ }
13429
13778
  return obj;
13430
13779
  },
13431
13780
  create(base) {
@@ -13440,6 +13789,8 @@ var InputDef2 = {
13440
13789
  message.default_value = object.default_value ?? void 0;
13441
13790
  message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
13442
13791
  message.ephemeral = object.ephemeral ?? void 0;
13792
+ message.nullable = object.nullable ?? void 0;
13793
+ message.sensitive = object.sensitive ?? false;
13443
13794
  return message;
13444
13795
  }
13445
13796
  };