@replit/protocol 0.2.96 → 0.2.97
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 +10 -4
- package/main/index.js +51 -15
- package/main/index.js.flow +14 -4
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21940,6 +21940,9 @@ export namespace replit {
|
|
|
21940
21940
|
|
|
21941
21941
|
/** GovalReplIdentity originReplid */
|
|
21942
21942
|
originReplid?: (string|null);
|
|
21943
|
+
|
|
21944
|
+
/** GovalReplIdentity userId */
|
|
21945
|
+
userId?: (number|null);
|
|
21943
21946
|
}
|
|
21944
21947
|
|
|
21945
21948
|
/** Represents a GovalReplIdentity. */
|
|
@@ -21969,6 +21972,9 @@ export namespace replit {
|
|
|
21969
21972
|
/** GovalReplIdentity originReplid. */
|
|
21970
21973
|
public originReplid: string;
|
|
21971
21974
|
|
|
21975
|
+
/** GovalReplIdentity userId. */
|
|
21976
|
+
public userId: number;
|
|
21977
|
+
|
|
21972
21978
|
/**
|
|
21973
21979
|
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
21974
21980
|
* @param [properties] Properties to set
|
|
@@ -24048,8 +24054,8 @@ export namespace replit {
|
|
|
24048
24054
|
/** Properties of a BuildInfo. */
|
|
24049
24055
|
interface IBuildInfo {
|
|
24050
24056
|
|
|
24051
|
-
/** BuildInfo
|
|
24052
|
-
|
|
24057
|
+
/** BuildInfo deploymentId */
|
|
24058
|
+
deploymentId?: (string|null);
|
|
24053
24059
|
|
|
24054
24060
|
/** BuildInfo url */
|
|
24055
24061
|
url?: (string|null);
|
|
@@ -24064,8 +24070,8 @@ export namespace replit {
|
|
|
24064
24070
|
*/
|
|
24065
24071
|
private constructor(properties?: replit.goval.api.repl.IBuildInfo);
|
|
24066
24072
|
|
|
24067
|
-
/** BuildInfo
|
|
24068
|
-
public
|
|
24073
|
+
/** BuildInfo deploymentId. */
|
|
24074
|
+
public deploymentId: string;
|
|
24069
24075
|
|
|
24070
24076
|
/** BuildInfo url. */
|
|
24071
24077
|
public url: string;
|
package/main/index.js
CHANGED
|
@@ -54783,6 +54783,7 @@
|
|
|
54783
54783
|
* @property {string|null} [aud] GovalReplIdentity aud
|
|
54784
54784
|
* @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
|
|
54785
54785
|
* @property {string|null} [originReplid] GovalReplIdentity originReplid
|
|
54786
|
+
* @property {number|null} [userId] GovalReplIdentity userId
|
|
54786
54787
|
*/
|
|
54787
54788
|
|
|
54788
54789
|
/**
|
|
@@ -54847,6 +54848,14 @@
|
|
|
54847
54848
|
*/
|
|
54848
54849
|
GovalReplIdentity.prototype.originReplid = "";
|
|
54849
54850
|
|
|
54851
|
+
/**
|
|
54852
|
+
* GovalReplIdentity userId.
|
|
54853
|
+
* @member {number} userId
|
|
54854
|
+
* @memberof replit.goval.api.GovalReplIdentity
|
|
54855
|
+
* @instance
|
|
54856
|
+
*/
|
|
54857
|
+
GovalReplIdentity.prototype.userId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
54858
|
+
|
|
54850
54859
|
/**
|
|
54851
54860
|
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
54852
54861
|
* @function create
|
|
@@ -54883,6 +54892,8 @@
|
|
|
54883
54892
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ephemeral);
|
|
54884
54893
|
if (message.originReplid != null && Object.hasOwnProperty.call(message, "originReplid"))
|
|
54885
54894
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.originReplid);
|
|
54895
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
54896
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.userId);
|
|
54886
54897
|
return writer;
|
|
54887
54898
|
};
|
|
54888
54899
|
|
|
@@ -54935,6 +54946,9 @@
|
|
|
54935
54946
|
case 6:
|
|
54936
54947
|
message.originReplid = reader.string();
|
|
54937
54948
|
break;
|
|
54949
|
+
case 7:
|
|
54950
|
+
message.userId = reader.int64();
|
|
54951
|
+
break;
|
|
54938
54952
|
default:
|
|
54939
54953
|
reader.skipType(tag & 7);
|
|
54940
54954
|
break;
|
|
@@ -54988,6 +55002,9 @@
|
|
|
54988
55002
|
if (message.originReplid != null && message.hasOwnProperty("originReplid"))
|
|
54989
55003
|
if (!$util.isString(message.originReplid))
|
|
54990
55004
|
return "originReplid: string expected";
|
|
55005
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
55006
|
+
if (!$util.isInteger(message.userId) && !(message.userId && $util.isInteger(message.userId.low) && $util.isInteger(message.userId.high)))
|
|
55007
|
+
return "userId: integer|Long expected";
|
|
54991
55008
|
return null;
|
|
54992
55009
|
};
|
|
54993
55010
|
|
|
@@ -55015,6 +55032,15 @@
|
|
|
55015
55032
|
message.ephemeral = Boolean(object.ephemeral);
|
|
55016
55033
|
if (object.originReplid != null)
|
|
55017
55034
|
message.originReplid = String(object.originReplid);
|
|
55035
|
+
if (object.userId != null)
|
|
55036
|
+
if ($util.Long)
|
|
55037
|
+
(message.userId = $util.Long.fromValue(object.userId)).unsigned = false;
|
|
55038
|
+
else if (typeof object.userId === "string")
|
|
55039
|
+
message.userId = parseInt(object.userId, 10);
|
|
55040
|
+
else if (typeof object.userId === "number")
|
|
55041
|
+
message.userId = object.userId;
|
|
55042
|
+
else if (typeof object.userId === "object")
|
|
55043
|
+
message.userId = new $util.LongBits(object.userId.low >>> 0, object.userId.high >>> 0).toNumber();
|
|
55018
55044
|
return message;
|
|
55019
55045
|
};
|
|
55020
55046
|
|
|
@@ -55038,6 +55064,11 @@
|
|
|
55038
55064
|
object.aud = "";
|
|
55039
55065
|
object.ephemeral = false;
|
|
55040
55066
|
object.originReplid = "";
|
|
55067
|
+
if ($util.Long) {
|
|
55068
|
+
var long = new $util.Long(0, 0, false);
|
|
55069
|
+
object.userId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
55070
|
+
} else
|
|
55071
|
+
object.userId = options.longs === String ? "0" : 0;
|
|
55041
55072
|
}
|
|
55042
55073
|
if (message.replid != null && message.hasOwnProperty("replid"))
|
|
55043
55074
|
object.replid = message.replid;
|
|
@@ -55051,6 +55082,11 @@
|
|
|
55051
55082
|
object.ephemeral = message.ephemeral;
|
|
55052
55083
|
if (message.originReplid != null && message.hasOwnProperty("originReplid"))
|
|
55053
55084
|
object.originReplid = message.originReplid;
|
|
55085
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
55086
|
+
if (typeof message.userId === "number")
|
|
55087
|
+
object.userId = options.longs === String ? String(message.userId) : message.userId;
|
|
55088
|
+
else
|
|
55089
|
+
object.userId = options.longs === String ? $util.Long.prototype.toString.call(message.userId) : options.longs === Number ? new $util.LongBits(message.userId.low >>> 0, message.userId.high >>> 0).toNumber() : message.userId;
|
|
55054
55090
|
return object;
|
|
55055
55091
|
};
|
|
55056
55092
|
|
|
@@ -60026,7 +60062,7 @@
|
|
|
60026
60062
|
* Properties of a BuildInfo.
|
|
60027
60063
|
* @memberof replit.goval.api.repl
|
|
60028
60064
|
* @interface IBuildInfo
|
|
60029
|
-
* @property {string|null} [
|
|
60065
|
+
* @property {string|null} [deploymentId] BuildInfo deploymentId
|
|
60030
60066
|
* @property {string|null} [url] BuildInfo url
|
|
60031
60067
|
*/
|
|
60032
60068
|
|
|
@@ -60045,12 +60081,12 @@
|
|
|
60045
60081
|
}
|
|
60046
60082
|
|
|
60047
60083
|
/**
|
|
60048
|
-
* BuildInfo
|
|
60049
|
-
* @member {string}
|
|
60084
|
+
* BuildInfo deploymentId.
|
|
60085
|
+
* @member {string} deploymentId
|
|
60050
60086
|
* @memberof replit.goval.api.repl.BuildInfo
|
|
60051
60087
|
* @instance
|
|
60052
60088
|
*/
|
|
60053
|
-
BuildInfo.prototype.
|
|
60089
|
+
BuildInfo.prototype.deploymentId = "";
|
|
60054
60090
|
|
|
60055
60091
|
/**
|
|
60056
60092
|
* BuildInfo url.
|
|
@@ -60084,8 +60120,8 @@
|
|
|
60084
60120
|
BuildInfo.encode = function encode(message, writer) {
|
|
60085
60121
|
if (!writer)
|
|
60086
60122
|
writer = $Writer.create();
|
|
60087
|
-
if (message.
|
|
60088
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
60123
|
+
if (message.deploymentId != null && Object.hasOwnProperty.call(message, "deploymentId"))
|
|
60124
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentId);
|
|
60089
60125
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
60090
60126
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
60091
60127
|
return writer;
|
|
@@ -60123,7 +60159,7 @@
|
|
|
60123
60159
|
var tag = reader.uint32();
|
|
60124
60160
|
switch (tag >>> 3) {
|
|
60125
60161
|
case 1:
|
|
60126
|
-
message.
|
|
60162
|
+
message.deploymentId = reader.string();
|
|
60127
60163
|
break;
|
|
60128
60164
|
case 2:
|
|
60129
60165
|
message.url = reader.string();
|
|
@@ -60163,9 +60199,9 @@
|
|
|
60163
60199
|
BuildInfo.verify = function verify(message) {
|
|
60164
60200
|
if (typeof message !== "object" || message === null)
|
|
60165
60201
|
return "object expected";
|
|
60166
|
-
if (message.
|
|
60167
|
-
if (!$util.isString(message.
|
|
60168
|
-
return "
|
|
60202
|
+
if (message.deploymentId != null && message.hasOwnProperty("deploymentId"))
|
|
60203
|
+
if (!$util.isString(message.deploymentId))
|
|
60204
|
+
return "deploymentId: string expected";
|
|
60169
60205
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
60170
60206
|
if (!$util.isString(message.url))
|
|
60171
60207
|
return "url: string expected";
|
|
@@ -60184,8 +60220,8 @@
|
|
|
60184
60220
|
if (object instanceof $root.replit.goval.api.repl.BuildInfo)
|
|
60185
60221
|
return object;
|
|
60186
60222
|
var message = new $root.replit.goval.api.repl.BuildInfo();
|
|
60187
|
-
if (object.
|
|
60188
|
-
message.
|
|
60223
|
+
if (object.deploymentId != null)
|
|
60224
|
+
message.deploymentId = String(object.deploymentId);
|
|
60189
60225
|
if (object.url != null)
|
|
60190
60226
|
message.url = String(object.url);
|
|
60191
60227
|
return message;
|
|
@@ -60205,11 +60241,11 @@
|
|
|
60205
60241
|
options = {};
|
|
60206
60242
|
var object = {};
|
|
60207
60243
|
if (options.defaults) {
|
|
60208
|
-
object.
|
|
60244
|
+
object.deploymentId = "";
|
|
60209
60245
|
object.url = "";
|
|
60210
60246
|
}
|
|
60211
|
-
if (message.
|
|
60212
|
-
object.
|
|
60247
|
+
if (message.deploymentId != null && message.hasOwnProperty("deploymentId"))
|
|
60248
|
+
object.deploymentId = message.deploymentId;
|
|
60213
60249
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
60214
60250
|
object.url = message.url;
|
|
60215
60251
|
return object;
|
package/main/index.js.flow
CHANGED
|
@@ -31292,6 +31292,11 @@ declare type replit$goval$api$IGovalReplIdentity = {|
|
|
|
31292
31292
|
* GovalReplIdentity originReplid
|
|
31293
31293
|
*/
|
|
31294
31294
|
originReplid?: string | null,
|
|
31295
|
+
|
|
31296
|
+
/**
|
|
31297
|
+
* GovalReplIdentity userId
|
|
31298
|
+
*/
|
|
31299
|
+
userId?: number | null,
|
|
31295
31300
|
|};
|
|
31296
31301
|
|
|
31297
31302
|
/**
|
|
@@ -31334,6 +31339,11 @@ declare class replit$goval$api$GovalReplIdentity {
|
|
|
31334
31339
|
*/
|
|
31335
31340
|
originReplid: string;
|
|
31336
31341
|
|
|
31342
|
+
/**
|
|
31343
|
+
* GovalReplIdentity userId.
|
|
31344
|
+
*/
|
|
31345
|
+
userId: number;
|
|
31346
|
+
|
|
31337
31347
|
/**
|
|
31338
31348
|
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
31339
31349
|
* @param [properties] Properties to set
|
|
@@ -34274,9 +34284,9 @@ declare class replit$goval$api$repl$Metadata {
|
|
|
34274
34284
|
*/
|
|
34275
34285
|
declare type replit$goval$api$repl$IBuildInfo = {|
|
|
34276
34286
|
/**
|
|
34277
|
-
* BuildInfo
|
|
34287
|
+
* BuildInfo deploymentId
|
|
34278
34288
|
*/
|
|
34279
|
-
|
|
34289
|
+
deploymentId?: string | null,
|
|
34280
34290
|
|
|
34281
34291
|
/**
|
|
34282
34292
|
* BuildInfo url
|
|
@@ -34295,9 +34305,9 @@ declare class replit$goval$api$repl$BuildInfo {
|
|
|
34295
34305
|
constructor(properties?: replit$goval$api$repl$IBuildInfo): this;
|
|
34296
34306
|
|
|
34297
34307
|
/**
|
|
34298
|
-
* BuildInfo
|
|
34308
|
+
* BuildInfo deploymentId.
|
|
34299
34309
|
*/
|
|
34300
|
-
|
|
34310
|
+
deploymentId: string;
|
|
34301
34311
|
|
|
34302
34312
|
/**
|
|
34303
34313
|
* BuildInfo url.
|