@replit/protocol 0.4.24 → 0.4.25
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/api/repl/repl.d.ts +8 -0
- package/dist/api/repl/repl.js +9 -1
- package/iotester/index.d.ts +6 -0
- package/iotester/index.js +23 -0
- package/main/index.d.ts +6 -0
- package/main/index.js +23 -0
- package/package.json +2 -2
package/dist/api/repl/repl.d.ts
CHANGED
|
@@ -395,6 +395,14 @@ export interface BuildInfo {
|
|
|
395
395
|
* @generated from protobuf field: string machine_tier = 4
|
|
396
396
|
*/
|
|
397
397
|
machineTier: string;
|
|
398
|
+
/**
|
|
399
|
+
* The canonical repl ID this build container acts on behalf of for
|
|
400
|
+
* authentication purposes (e.g. looking up connections in OpenInt).
|
|
401
|
+
* Mapped to GovalReplIdentity.originReplid by replvisor.
|
|
402
|
+
*
|
|
403
|
+
* @generated from protobuf field: string origin_repl_id = 5
|
|
404
|
+
*/
|
|
405
|
+
originReplId: string;
|
|
398
406
|
}
|
|
399
407
|
/**
|
|
400
408
|
* Pid2 includes information about the pid2 payload we want to use for this
|
package/dist/api/repl/repl.js
CHANGED
|
@@ -698,7 +698,8 @@ class BuildInfo$Type extends MessageType {
|
|
|
698
698
|
{ no: 1, name: "deployment_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
699
699
|
{ no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
700
700
|
{ no: 3, name: "build_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
701
|
-
{ no: 4, name: "machine_tier", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
701
|
+
{ no: 4, name: "machine_tier", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
702
|
+
{ no: 5, name: "origin_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
702
703
|
]);
|
|
703
704
|
}
|
|
704
705
|
create(value) {
|
|
@@ -707,6 +708,7 @@ class BuildInfo$Type extends MessageType {
|
|
|
707
708
|
message.url = "";
|
|
708
709
|
message.buildId = "";
|
|
709
710
|
message.machineTier = "";
|
|
711
|
+
message.originReplId = "";
|
|
710
712
|
if (value !== undefined)
|
|
711
713
|
reflectionMergePartial(this, message, value);
|
|
712
714
|
return message;
|
|
@@ -728,6 +730,9 @@ class BuildInfo$Type extends MessageType {
|
|
|
728
730
|
case /* string machine_tier */ 4:
|
|
729
731
|
message.machineTier = reader.string();
|
|
730
732
|
break;
|
|
733
|
+
case /* string origin_repl_id */ 5:
|
|
734
|
+
message.originReplId = reader.string();
|
|
735
|
+
break;
|
|
731
736
|
default:
|
|
732
737
|
let u = options.readUnknownField;
|
|
733
738
|
if (u === "throw")
|
|
@@ -752,6 +757,9 @@ class BuildInfo$Type extends MessageType {
|
|
|
752
757
|
/* string machine_tier = 4; */
|
|
753
758
|
if (message.machineTier !== "")
|
|
754
759
|
writer.tag(4, WireType.LengthDelimited).string(message.machineTier);
|
|
760
|
+
/* string origin_repl_id = 5; */
|
|
761
|
+
if (message.originReplId !== "")
|
|
762
|
+
writer.tag(5, WireType.LengthDelimited).string(message.originReplId);
|
|
755
763
|
let u = options.writeUnknownFields;
|
|
756
764
|
if (u !== false)
|
|
757
765
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/iotester/index.d.ts
CHANGED
|
@@ -28469,6 +28469,9 @@ export namespace replit {
|
|
|
28469
28469
|
|
|
28470
28470
|
/** BuildInfo machineTier */
|
|
28471
28471
|
machineTier?: (string|null);
|
|
28472
|
+
|
|
28473
|
+
/** BuildInfo originReplId */
|
|
28474
|
+
originReplId?: (string|null);
|
|
28472
28475
|
}
|
|
28473
28476
|
|
|
28474
28477
|
/** Represents a BuildInfo. */
|
|
@@ -28492,6 +28495,9 @@ export namespace replit {
|
|
|
28492
28495
|
/** BuildInfo machineTier. */
|
|
28493
28496
|
public machineTier: string;
|
|
28494
28497
|
|
|
28498
|
+
/** BuildInfo originReplId. */
|
|
28499
|
+
public originReplId: string;
|
|
28500
|
+
|
|
28495
28501
|
/**
|
|
28496
28502
|
* Creates a new BuildInfo instance using the specified properties.
|
|
28497
28503
|
* @param [properties] Properties to set
|
package/iotester/index.js
CHANGED
|
@@ -72646,6 +72646,7 @@
|
|
|
72646
72646
|
* @property {string|null} [url] BuildInfo url
|
|
72647
72647
|
* @property {string|null} [buildId] BuildInfo buildId
|
|
72648
72648
|
* @property {string|null} [machineTier] BuildInfo machineTier
|
|
72649
|
+
* @property {string|null} [originReplId] BuildInfo originReplId
|
|
72649
72650
|
*/
|
|
72650
72651
|
|
|
72651
72652
|
/**
|
|
@@ -72694,6 +72695,14 @@
|
|
|
72694
72695
|
*/
|
|
72695
72696
|
BuildInfo.prototype.machineTier = "";
|
|
72696
72697
|
|
|
72698
|
+
/**
|
|
72699
|
+
* BuildInfo originReplId.
|
|
72700
|
+
* @member {string} originReplId
|
|
72701
|
+
* @memberof replit.goval.api.repl.BuildInfo
|
|
72702
|
+
* @instance
|
|
72703
|
+
*/
|
|
72704
|
+
BuildInfo.prototype.originReplId = "";
|
|
72705
|
+
|
|
72697
72706
|
/**
|
|
72698
72707
|
* Creates a new BuildInfo instance using the specified properties.
|
|
72699
72708
|
* @function create
|
|
@@ -72726,6 +72735,8 @@
|
|
|
72726
72735
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildId);
|
|
72727
72736
|
if (message.machineTier != null && Object.hasOwnProperty.call(message, "machineTier"))
|
|
72728
72737
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.machineTier);
|
|
72738
|
+
if (message.originReplId != null && Object.hasOwnProperty.call(message, "originReplId"))
|
|
72739
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.originReplId);
|
|
72729
72740
|
return writer;
|
|
72730
72741
|
};
|
|
72731
72742
|
|
|
@@ -72778,6 +72789,10 @@
|
|
|
72778
72789
|
message.machineTier = reader.string();
|
|
72779
72790
|
break;
|
|
72780
72791
|
}
|
|
72792
|
+
case 5: {
|
|
72793
|
+
message.originReplId = reader.string();
|
|
72794
|
+
break;
|
|
72795
|
+
}
|
|
72781
72796
|
default:
|
|
72782
72797
|
reader.skipType(tag & 7);
|
|
72783
72798
|
break;
|
|
@@ -72825,6 +72840,9 @@
|
|
|
72825
72840
|
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
72826
72841
|
if (!$util.isString(message.machineTier))
|
|
72827
72842
|
return "machineTier: string expected";
|
|
72843
|
+
if (message.originReplId != null && message.hasOwnProperty("originReplId"))
|
|
72844
|
+
if (!$util.isString(message.originReplId))
|
|
72845
|
+
return "originReplId: string expected";
|
|
72828
72846
|
return null;
|
|
72829
72847
|
};
|
|
72830
72848
|
|
|
@@ -72848,6 +72866,8 @@
|
|
|
72848
72866
|
message.buildId = String(object.buildId);
|
|
72849
72867
|
if (object.machineTier != null)
|
|
72850
72868
|
message.machineTier = String(object.machineTier);
|
|
72869
|
+
if (object.originReplId != null)
|
|
72870
|
+
message.originReplId = String(object.originReplId);
|
|
72851
72871
|
return message;
|
|
72852
72872
|
};
|
|
72853
72873
|
|
|
@@ -72869,6 +72889,7 @@
|
|
|
72869
72889
|
object.url = "";
|
|
72870
72890
|
object.buildId = "";
|
|
72871
72891
|
object.machineTier = "";
|
|
72892
|
+
object.originReplId = "";
|
|
72872
72893
|
}
|
|
72873
72894
|
if (message.deploymentId != null && message.hasOwnProperty("deploymentId"))
|
|
72874
72895
|
object.deploymentId = message.deploymentId;
|
|
@@ -72878,6 +72899,8 @@
|
|
|
72878
72899
|
object.buildId = message.buildId;
|
|
72879
72900
|
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
72880
72901
|
object.machineTier = message.machineTier;
|
|
72902
|
+
if (message.originReplId != null && message.hasOwnProperty("originReplId"))
|
|
72903
|
+
object.originReplId = message.originReplId;
|
|
72881
72904
|
return object;
|
|
72882
72905
|
};
|
|
72883
72906
|
|
package/main/index.d.ts
CHANGED
|
@@ -28469,6 +28469,9 @@ export namespace replit {
|
|
|
28469
28469
|
|
|
28470
28470
|
/** BuildInfo machineTier */
|
|
28471
28471
|
machineTier?: (string|null);
|
|
28472
|
+
|
|
28473
|
+
/** BuildInfo originReplId */
|
|
28474
|
+
originReplId?: (string|null);
|
|
28472
28475
|
}
|
|
28473
28476
|
|
|
28474
28477
|
/** Represents a BuildInfo. */
|
|
@@ -28492,6 +28495,9 @@ export namespace replit {
|
|
|
28492
28495
|
/** BuildInfo machineTier. */
|
|
28493
28496
|
public machineTier: string;
|
|
28494
28497
|
|
|
28498
|
+
/** BuildInfo originReplId. */
|
|
28499
|
+
public originReplId: string;
|
|
28500
|
+
|
|
28495
28501
|
/**
|
|
28496
28502
|
* Creates a new BuildInfo instance using the specified properties.
|
|
28497
28503
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -72646,6 +72646,7 @@
|
|
|
72646
72646
|
* @property {string|null} [url] BuildInfo url
|
|
72647
72647
|
* @property {string|null} [buildId] BuildInfo buildId
|
|
72648
72648
|
* @property {string|null} [machineTier] BuildInfo machineTier
|
|
72649
|
+
* @property {string|null} [originReplId] BuildInfo originReplId
|
|
72649
72650
|
*/
|
|
72650
72651
|
|
|
72651
72652
|
/**
|
|
@@ -72694,6 +72695,14 @@
|
|
|
72694
72695
|
*/
|
|
72695
72696
|
BuildInfo.prototype.machineTier = "";
|
|
72696
72697
|
|
|
72698
|
+
/**
|
|
72699
|
+
* BuildInfo originReplId.
|
|
72700
|
+
* @member {string} originReplId
|
|
72701
|
+
* @memberof replit.goval.api.repl.BuildInfo
|
|
72702
|
+
* @instance
|
|
72703
|
+
*/
|
|
72704
|
+
BuildInfo.prototype.originReplId = "";
|
|
72705
|
+
|
|
72697
72706
|
/**
|
|
72698
72707
|
* Creates a new BuildInfo instance using the specified properties.
|
|
72699
72708
|
* @function create
|
|
@@ -72726,6 +72735,8 @@
|
|
|
72726
72735
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildId);
|
|
72727
72736
|
if (message.machineTier != null && Object.hasOwnProperty.call(message, "machineTier"))
|
|
72728
72737
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.machineTier);
|
|
72738
|
+
if (message.originReplId != null && Object.hasOwnProperty.call(message, "originReplId"))
|
|
72739
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.originReplId);
|
|
72729
72740
|
return writer;
|
|
72730
72741
|
};
|
|
72731
72742
|
|
|
@@ -72778,6 +72789,10 @@
|
|
|
72778
72789
|
message.machineTier = reader.string();
|
|
72779
72790
|
break;
|
|
72780
72791
|
}
|
|
72792
|
+
case 5: {
|
|
72793
|
+
message.originReplId = reader.string();
|
|
72794
|
+
break;
|
|
72795
|
+
}
|
|
72781
72796
|
default:
|
|
72782
72797
|
reader.skipType(tag & 7);
|
|
72783
72798
|
break;
|
|
@@ -72825,6 +72840,9 @@
|
|
|
72825
72840
|
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
72826
72841
|
if (!$util.isString(message.machineTier))
|
|
72827
72842
|
return "machineTier: string expected";
|
|
72843
|
+
if (message.originReplId != null && message.hasOwnProperty("originReplId"))
|
|
72844
|
+
if (!$util.isString(message.originReplId))
|
|
72845
|
+
return "originReplId: string expected";
|
|
72828
72846
|
return null;
|
|
72829
72847
|
};
|
|
72830
72848
|
|
|
@@ -72848,6 +72866,8 @@
|
|
|
72848
72866
|
message.buildId = String(object.buildId);
|
|
72849
72867
|
if (object.machineTier != null)
|
|
72850
72868
|
message.machineTier = String(object.machineTier);
|
|
72869
|
+
if (object.originReplId != null)
|
|
72870
|
+
message.originReplId = String(object.originReplId);
|
|
72851
72871
|
return message;
|
|
72852
72872
|
};
|
|
72853
72873
|
|
|
@@ -72869,6 +72889,7 @@
|
|
|
72869
72889
|
object.url = "";
|
|
72870
72890
|
object.buildId = "";
|
|
72871
72891
|
object.machineTier = "";
|
|
72892
|
+
object.originReplId = "";
|
|
72872
72893
|
}
|
|
72873
72894
|
if (message.deploymentId != null && message.hasOwnProperty("deploymentId"))
|
|
72874
72895
|
object.deploymentId = message.deploymentId;
|
|
@@ -72878,6 +72899,8 @@
|
|
|
72878
72899
|
object.buildId = message.buildId;
|
|
72879
72900
|
if (message.machineTier != null && message.hasOwnProperty("machineTier"))
|
|
72880
72901
|
object.machineTier = message.machineTier;
|
|
72902
|
+
if (message.originReplId != null && message.hasOwnProperty("originReplId"))
|
|
72903
|
+
object.originReplId = message.originReplId;
|
|
72881
72904
|
return object;
|
|
72882
72905
|
};
|
|
72883
72906
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"types": "main/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@protobuf-ts/runtime": "^2.11.1",
|
|
41
41
|
"@protobuf-ts/runtime-rpc": "^2.11.1",
|
|
42
|
-
"protobufjs": "^7.
|
|
42
|
+
"protobufjs": "^7.5.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@protobuf-ts/plugin": "^2.11.1",
|