@replit/protocol 0.3.57 → 0.3.59

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/main/index.d.ts CHANGED
@@ -22639,6 +22639,9 @@ export namespace replit {
22639
22639
 
22640
22640
  /** NixModuleOption integerType */
22641
22641
  integerType?: (replit.goval.api.NixModuleIntegerType|replit.goval.api.INixModuleIntegerType|null);
22642
+
22643
+ /** NixModuleOption required */
22644
+ required?: (boolean|null);
22642
22645
  }
22643
22646
 
22644
22647
  /** Represents a NixModuleOption. */
@@ -22671,6 +22674,9 @@ export namespace replit {
22671
22674
  /** NixModuleOption integerType. */
22672
22675
  public integerType?: (replit.goval.api.NixModuleIntegerType|null);
22673
22676
 
22677
+ /** NixModuleOption required. */
22678
+ public required: boolean;
22679
+
22674
22680
  /** NixModuleOption type. */
22675
22681
  public type?: ("booleanType"|"stringType"|"choiceStringType"|"stringListType"|"integerType");
22676
22682
 
package/main/index.js CHANGED
@@ -57609,6 +57609,7 @@
57609
57609
  * @property {replit.goval.api.NixModuleChoiceStringType|replit.goval.api.INixModuleChoiceStringType|null} [choiceStringType] NixModuleOption choiceStringType
57610
57610
  * @property {replit.goval.api.NixModuleStringListType|replit.goval.api.INixModuleStringListType|null} [stringListType] NixModuleOption stringListType
57611
57611
  * @property {replit.goval.api.NixModuleIntegerType|replit.goval.api.INixModuleIntegerType|null} [integerType] NixModuleOption integerType
57612
+ * @property {boolean|null} [required] NixModuleOption required
57612
57613
  */
57613
57614
 
57614
57615
  /**
@@ -57681,6 +57682,14 @@
57681
57682
  */
57682
57683
  NixModuleOption.prototype.integerType = null;
57683
57684
 
57685
+ /**
57686
+ * NixModuleOption required.
57687
+ * @member {boolean} required
57688
+ * @memberof replit.goval.api.NixModuleOption
57689
+ * @instance
57690
+ */
57691
+ NixModuleOption.prototype.required = false;
57692
+
57684
57693
  // OneOf field names bound to virtual getters and setters
57685
57694
  var $oneOfFields;
57686
57695
 
@@ -57733,6 +57742,8 @@
57733
57742
  $root.replit.goval.api.NixModuleStringListType.encode(message.stringListType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
57734
57743
  if (message.integerType != null && Object.hasOwnProperty.call(message, "integerType"))
57735
57744
  $root.replit.goval.api.NixModuleIntegerType.encode(message.integerType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
57745
+ if (message.required != null && Object.hasOwnProperty.call(message, "required"))
57746
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.required);
57736
57747
  return writer;
57737
57748
  };
57738
57749
 
@@ -57795,6 +57806,10 @@
57795
57806
  message.integerType = $root.replit.goval.api.NixModuleIntegerType.decode(reader, reader.uint32());
57796
57807
  break;
57797
57808
  }
57809
+ case 8: {
57810
+ message.required = reader.bool();
57811
+ break;
57812
+ }
57798
57813
  default:
57799
57814
  reader.skipType(tag & 7);
57800
57815
  break;
@@ -57885,6 +57900,9 @@
57885
57900
  return "integerType." + error;
57886
57901
  }
57887
57902
  }
57903
+ if (message.required != null && message.hasOwnProperty("required"))
57904
+ if (typeof message.required !== "boolean")
57905
+ return "required: boolean expected";
57888
57906
  return null;
57889
57907
  };
57890
57908
 
@@ -57929,6 +57947,8 @@
57929
57947
  throw TypeError(".replit.goval.api.NixModuleOption.integerType: object expected");
57930
57948
  message.integerType = $root.replit.goval.api.NixModuleIntegerType.fromObject(object.integerType);
57931
57949
  }
57950
+ if (object.required != null)
57951
+ message.required = Boolean(object.required);
57932
57952
  return message;
57933
57953
  };
57934
57954
 
@@ -57948,6 +57968,7 @@
57948
57968
  if (options.defaults) {
57949
57969
  object.name = "";
57950
57970
  object.description = "";
57971
+ object.required = false;
57951
57972
  }
57952
57973
  if (message.name != null && message.hasOwnProperty("name"))
57953
57974
  object.name = message.name;
@@ -57978,6 +57999,8 @@
57978
57999
  if (options.oneofs)
57979
58000
  object.type = "integerType";
57980
58001
  }
58002
+ if (message.required != null && message.hasOwnProperty("required"))
58003
+ object.required = message.required;
57981
58004
  return object;
57982
58005
  };
57983
58006
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.57",
3
+ "version": "0.3.59",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",