@replit/protocol 0.2.55 → 0.2.58
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 +143 -41
- package/main/index.js +356 -104
- package/main/index.js.flow +181 -41
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -20024,6 +20024,7 @@
|
|
|
20024
20024
|
* @memberof api
|
|
20025
20025
|
* @interface IRunMain
|
|
20026
20026
|
* @property {api.RunMain.RunMode|null} [runMode] RunMain runMode
|
|
20027
|
+
* @property {boolean|null} [idempotent] RunMain idempotent
|
|
20027
20028
|
*/
|
|
20028
20029
|
|
|
20029
20030
|
/**
|
|
@@ -20048,6 +20049,14 @@
|
|
|
20048
20049
|
*/
|
|
20049
20050
|
RunMain.prototype.runMode = 0;
|
|
20050
20051
|
|
|
20052
|
+
/**
|
|
20053
|
+
* RunMain idempotent.
|
|
20054
|
+
* @member {boolean} idempotent
|
|
20055
|
+
* @memberof api.RunMain
|
|
20056
|
+
* @instance
|
|
20057
|
+
*/
|
|
20058
|
+
RunMain.prototype.idempotent = false;
|
|
20059
|
+
|
|
20051
20060
|
/**
|
|
20052
20061
|
* Creates a new RunMain instance using the specified properties.
|
|
20053
20062
|
* @function create
|
|
@@ -20074,6 +20083,8 @@
|
|
|
20074
20083
|
writer = $Writer.create();
|
|
20075
20084
|
if (message.runMode != null && Object.hasOwnProperty.call(message, "runMode"))
|
|
20076
20085
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.runMode);
|
|
20086
|
+
if (message.idempotent != null && Object.hasOwnProperty.call(message, "idempotent"))
|
|
20087
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.idempotent);
|
|
20077
20088
|
return writer;
|
|
20078
20089
|
};
|
|
20079
20090
|
|
|
@@ -20111,6 +20122,9 @@
|
|
|
20111
20122
|
case 1:
|
|
20112
20123
|
message.runMode = reader.int32();
|
|
20113
20124
|
break;
|
|
20125
|
+
case 2:
|
|
20126
|
+
message.idempotent = reader.bool();
|
|
20127
|
+
break;
|
|
20114
20128
|
default:
|
|
20115
20129
|
reader.skipType(tag & 7);
|
|
20116
20130
|
break;
|
|
@@ -20154,6 +20168,9 @@
|
|
|
20154
20168
|
case 1:
|
|
20155
20169
|
break;
|
|
20156
20170
|
}
|
|
20171
|
+
if (message.idempotent != null && message.hasOwnProperty("idempotent"))
|
|
20172
|
+
if (typeof message.idempotent !== "boolean")
|
|
20173
|
+
return "idempotent: boolean expected";
|
|
20157
20174
|
return null;
|
|
20158
20175
|
};
|
|
20159
20176
|
|
|
@@ -20179,6 +20196,8 @@
|
|
|
20179
20196
|
message.runMode = 1;
|
|
20180
20197
|
break;
|
|
20181
20198
|
}
|
|
20199
|
+
if (object.idempotent != null)
|
|
20200
|
+
message.idempotent = Boolean(object.idempotent);
|
|
20182
20201
|
return message;
|
|
20183
20202
|
};
|
|
20184
20203
|
|
|
@@ -20195,10 +20214,14 @@
|
|
|
20195
20214
|
if (!options)
|
|
20196
20215
|
options = {};
|
|
20197
20216
|
var object = {};
|
|
20198
|
-
if (options.defaults)
|
|
20217
|
+
if (options.defaults) {
|
|
20199
20218
|
object.runMode = options.enums === String ? "RUN" : 0;
|
|
20219
|
+
object.idempotent = false;
|
|
20220
|
+
}
|
|
20200
20221
|
if (message.runMode != null && message.hasOwnProperty("runMode"))
|
|
20201
20222
|
object.runMode = options.enums === String ? $root.api.RunMain.RunMode[message.runMode] : message.runMode;
|
|
20223
|
+
if (message.idempotent != null && message.hasOwnProperty("idempotent"))
|
|
20224
|
+
object.idempotent = message.idempotent;
|
|
20202
20225
|
return object;
|
|
20203
20226
|
};
|
|
20204
20227
|
|
|
@@ -22873,7 +22896,7 @@
|
|
|
22873
22896
|
* @interface IOTPacket
|
|
22874
22897
|
* @property {number|null} [spookyVersion] OTPacket spookyVersion
|
|
22875
22898
|
* @property {number|null} [version] OTPacket version
|
|
22876
|
-
* @property {Array.<api.
|
|
22899
|
+
* @property {Array.<api.OTOpComponent|api.IOTOpComponent>|null} [op] OTPacket op
|
|
22877
22900
|
* @property {number|null} [crc32] OTPacket crc32
|
|
22878
22901
|
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [committed] OTPacket committed
|
|
22879
22902
|
* @property {number|null} [nonce] OTPacket nonce
|
|
@@ -22888,7 +22911,7 @@
|
|
|
22888
22911
|
* @param {api.IOTPacket=} [properties] Properties to set
|
|
22889
22912
|
*/
|
|
22890
22913
|
function OTPacket(properties) {
|
|
22891
|
-
this.
|
|
22914
|
+
this.op = [];
|
|
22892
22915
|
if (properties)
|
|
22893
22916
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22894
22917
|
if (properties[keys[i]] != null)
|
|
@@ -22912,12 +22935,12 @@
|
|
|
22912
22935
|
OTPacket.prototype.version = 0;
|
|
22913
22936
|
|
|
22914
22937
|
/**
|
|
22915
|
-
* OTPacket
|
|
22916
|
-
* @member {Array.<api.
|
|
22938
|
+
* OTPacket op.
|
|
22939
|
+
* @member {Array.<api.OTOpComponent>} op
|
|
22917
22940
|
* @memberof api.OTPacket
|
|
22918
22941
|
* @instance
|
|
22919
22942
|
*/
|
|
22920
|
-
OTPacket.prototype.
|
|
22943
|
+
OTPacket.prototype.op = $util.emptyArray;
|
|
22921
22944
|
|
|
22922
22945
|
/**
|
|
22923
22946
|
* OTPacket crc32.
|
|
@@ -22977,9 +23000,9 @@
|
|
|
22977
23000
|
writer = $Writer.create();
|
|
22978
23001
|
if (message.spookyVersion != null && Object.hasOwnProperty.call(message, "spookyVersion"))
|
|
22979
23002
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.spookyVersion);
|
|
22980
|
-
if (message.
|
|
22981
|
-
for (var i = 0; i < message.
|
|
22982
|
-
$root.api.
|
|
23003
|
+
if (message.op != null && message.op.length)
|
|
23004
|
+
for (var i = 0; i < message.op.length; ++i)
|
|
23005
|
+
$root.api.OTOpComponent.encode(message.op[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
22983
23006
|
if (message.crc32 != null && Object.hasOwnProperty.call(message, "crc32"))
|
|
22984
23007
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.crc32);
|
|
22985
23008
|
if (message.committed != null && Object.hasOwnProperty.call(message, "committed"))
|
|
@@ -23031,9 +23054,9 @@
|
|
|
23031
23054
|
message.version = reader.uint32();
|
|
23032
23055
|
break;
|
|
23033
23056
|
case 2:
|
|
23034
|
-
if (!(message.
|
|
23035
|
-
message.
|
|
23036
|
-
message.
|
|
23057
|
+
if (!(message.op && message.op.length))
|
|
23058
|
+
message.op = [];
|
|
23059
|
+
message.op.push($root.api.OTOpComponent.decode(reader, reader.uint32()));
|
|
23037
23060
|
break;
|
|
23038
23061
|
case 3:
|
|
23039
23062
|
message.crc32 = reader.uint32();
|
|
@@ -23088,13 +23111,13 @@
|
|
|
23088
23111
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
23089
23112
|
if (!$util.isInteger(message.version))
|
|
23090
23113
|
return "version: integer expected";
|
|
23091
|
-
if (message.
|
|
23092
|
-
if (!Array.isArray(message.
|
|
23093
|
-
return "
|
|
23094
|
-
for (var i = 0; i < message.
|
|
23095
|
-
var error = $root.api.
|
|
23114
|
+
if (message.op != null && message.hasOwnProperty("op")) {
|
|
23115
|
+
if (!Array.isArray(message.op))
|
|
23116
|
+
return "op: array expected";
|
|
23117
|
+
for (var i = 0; i < message.op.length; ++i) {
|
|
23118
|
+
var error = $root.api.OTOpComponent.verify(message.op[i]);
|
|
23096
23119
|
if (error)
|
|
23097
|
-
return "
|
|
23120
|
+
return "op." + error;
|
|
23098
23121
|
}
|
|
23099
23122
|
}
|
|
23100
23123
|
if (message.crc32 != null && message.hasOwnProperty("crc32"))
|
|
@@ -23130,14 +23153,14 @@
|
|
|
23130
23153
|
message.spookyVersion = object.spookyVersion >>> 0;
|
|
23131
23154
|
if (object.version != null)
|
|
23132
23155
|
message.version = object.version >>> 0;
|
|
23133
|
-
if (object.
|
|
23134
|
-
if (!Array.isArray(object.
|
|
23135
|
-
throw TypeError(".api.OTPacket.
|
|
23136
|
-
message.
|
|
23137
|
-
for (var i = 0; i < object.
|
|
23138
|
-
if (typeof object.
|
|
23139
|
-
throw TypeError(".api.OTPacket.
|
|
23140
|
-
message.
|
|
23156
|
+
if (object.op) {
|
|
23157
|
+
if (!Array.isArray(object.op))
|
|
23158
|
+
throw TypeError(".api.OTPacket.op: array expected");
|
|
23159
|
+
message.op = [];
|
|
23160
|
+
for (var i = 0; i < object.op.length; ++i) {
|
|
23161
|
+
if (typeof object.op[i] !== "object")
|
|
23162
|
+
throw TypeError(".api.OTPacket.op: object expected");
|
|
23163
|
+
message.op[i] = $root.api.OTOpComponent.fromObject(object.op[i]);
|
|
23141
23164
|
}
|
|
23142
23165
|
}
|
|
23143
23166
|
if (object.crc32 != null)
|
|
@@ -23168,7 +23191,7 @@
|
|
|
23168
23191
|
options = {};
|
|
23169
23192
|
var object = {};
|
|
23170
23193
|
if (options.arrays || options.defaults)
|
|
23171
|
-
object.
|
|
23194
|
+
object.op = [];
|
|
23172
23195
|
if (options.defaults) {
|
|
23173
23196
|
object.spookyVersion = 0;
|
|
23174
23197
|
object.crc32 = 0;
|
|
@@ -23179,10 +23202,10 @@
|
|
|
23179
23202
|
}
|
|
23180
23203
|
if (message.spookyVersion != null && message.hasOwnProperty("spookyVersion"))
|
|
23181
23204
|
object.spookyVersion = message.spookyVersion;
|
|
23182
|
-
if (message.
|
|
23183
|
-
object.
|
|
23184
|
-
for (var j = 0; j < message.
|
|
23185
|
-
object.
|
|
23205
|
+
if (message.op && message.op.length) {
|
|
23206
|
+
object.op = [];
|
|
23207
|
+
for (var j = 0; j < message.op.length; ++j)
|
|
23208
|
+
object.op[j] = $root.api.OTOpComponent.toObject(message.op[j], options);
|
|
23186
23209
|
}
|
|
23187
23210
|
if (message.crc32 != null && message.hasOwnProperty("crc32"))
|
|
23188
23211
|
object.crc32 = message.crc32;
|
|
@@ -23211,25 +23234,25 @@
|
|
|
23211
23234
|
return OTPacket;
|
|
23212
23235
|
})();
|
|
23213
23236
|
|
|
23214
|
-
api.
|
|
23237
|
+
api.OTOpComponent = (function() {
|
|
23215
23238
|
|
|
23216
23239
|
/**
|
|
23217
|
-
* Properties of a
|
|
23240
|
+
* Properties of a OTOpComponent.
|
|
23218
23241
|
* @memberof api
|
|
23219
|
-
* @interface
|
|
23220
|
-
* @property {number|null} [skip]
|
|
23221
|
-
* @property {number|null} ["delete"]
|
|
23222
|
-
* @property {string|null} [insert]
|
|
23242
|
+
* @interface IOTOpComponent
|
|
23243
|
+
* @property {number|null} [skip] OTOpComponent skip
|
|
23244
|
+
* @property {number|null} ["delete"] OTOpComponent delete
|
|
23245
|
+
* @property {string|null} [insert] OTOpComponent insert
|
|
23223
23246
|
*/
|
|
23224
23247
|
|
|
23225
23248
|
/**
|
|
23226
|
-
* Constructs a new
|
|
23249
|
+
* Constructs a new OTOpComponent.
|
|
23227
23250
|
* @memberof api
|
|
23228
|
-
* @classdesc Represents a
|
|
23251
|
+
* @classdesc Represents a OTOpComponent.
|
|
23229
23252
|
* @constructor
|
|
23230
|
-
* @param {api.
|
|
23253
|
+
* @param {api.IOTOpComponent=} [properties] Properties to set
|
|
23231
23254
|
*/
|
|
23232
|
-
function
|
|
23255
|
+
function OTOpComponent(properties) {
|
|
23233
23256
|
if (properties)
|
|
23234
23257
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23235
23258
|
if (properties[keys[i]] != null)
|
|
@@ -23237,65 +23260,65 @@
|
|
|
23237
23260
|
}
|
|
23238
23261
|
|
|
23239
23262
|
/**
|
|
23240
|
-
*
|
|
23263
|
+
* OTOpComponent skip.
|
|
23241
23264
|
* @member {number|null|undefined} skip
|
|
23242
|
-
* @memberof api.
|
|
23265
|
+
* @memberof api.OTOpComponent
|
|
23243
23266
|
* @instance
|
|
23244
23267
|
*/
|
|
23245
|
-
|
|
23268
|
+
OTOpComponent.prototype.skip = null;
|
|
23246
23269
|
|
|
23247
23270
|
/**
|
|
23248
|
-
*
|
|
23271
|
+
* OTOpComponent delete.
|
|
23249
23272
|
* @member {number|null|undefined} delete
|
|
23250
|
-
* @memberof api.
|
|
23273
|
+
* @memberof api.OTOpComponent
|
|
23251
23274
|
* @instance
|
|
23252
23275
|
*/
|
|
23253
|
-
|
|
23276
|
+
OTOpComponent.prototype["delete"] = null;
|
|
23254
23277
|
|
|
23255
23278
|
/**
|
|
23256
|
-
*
|
|
23279
|
+
* OTOpComponent insert.
|
|
23257
23280
|
* @member {string|null|undefined} insert
|
|
23258
|
-
* @memberof api.
|
|
23281
|
+
* @memberof api.OTOpComponent
|
|
23259
23282
|
* @instance
|
|
23260
23283
|
*/
|
|
23261
|
-
|
|
23284
|
+
OTOpComponent.prototype.insert = null;
|
|
23262
23285
|
|
|
23263
23286
|
// OneOf field names bound to virtual getters and setters
|
|
23264
23287
|
var $oneOfFields;
|
|
23265
23288
|
|
|
23266
23289
|
/**
|
|
23267
|
-
*
|
|
23268
|
-
* @member {"skip"|"delete"|"insert"|undefined}
|
|
23269
|
-
* @memberof api.
|
|
23290
|
+
* OTOpComponent opComponent.
|
|
23291
|
+
* @member {"skip"|"delete"|"insert"|undefined} opComponent
|
|
23292
|
+
* @memberof api.OTOpComponent
|
|
23270
23293
|
* @instance
|
|
23271
23294
|
*/
|
|
23272
|
-
Object.defineProperty(
|
|
23295
|
+
Object.defineProperty(OTOpComponent.prototype, "opComponent", {
|
|
23273
23296
|
get: $util.oneOfGetter($oneOfFields = ["skip", "delete", "insert"]),
|
|
23274
23297
|
set: $util.oneOfSetter($oneOfFields)
|
|
23275
23298
|
});
|
|
23276
23299
|
|
|
23277
23300
|
/**
|
|
23278
|
-
* Creates a new
|
|
23301
|
+
* Creates a new OTOpComponent instance using the specified properties.
|
|
23279
23302
|
* @function create
|
|
23280
|
-
* @memberof api.
|
|
23303
|
+
* @memberof api.OTOpComponent
|
|
23281
23304
|
* @static
|
|
23282
|
-
* @param {api.
|
|
23283
|
-
* @returns {api.
|
|
23305
|
+
* @param {api.IOTOpComponent=} [properties] Properties to set
|
|
23306
|
+
* @returns {api.OTOpComponent} OTOpComponent instance
|
|
23284
23307
|
*/
|
|
23285
|
-
|
|
23286
|
-
return
|
|
23308
|
+
OTOpComponent.create = function create(properties) {
|
|
23309
|
+
return OTOpComponent.fromObject(properties);
|
|
23287
23310
|
};
|
|
23288
23311
|
|
|
23289
23312
|
/**
|
|
23290
|
-
* Encodes the specified
|
|
23313
|
+
* Encodes the specified OTOpComponent message. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
23291
23314
|
* @function encode
|
|
23292
|
-
* @memberof api.
|
|
23315
|
+
* @memberof api.OTOpComponent
|
|
23293
23316
|
* @static
|
|
23294
|
-
* @param {api.
|
|
23317
|
+
* @param {api.OTOpComponent} message OTOpComponent message or plain object to encode
|
|
23295
23318
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23296
23319
|
* @returns {$protobuf.Writer} Writer
|
|
23297
23320
|
*/
|
|
23298
|
-
|
|
23321
|
+
OTOpComponent.encode = function encode(message, writer) {
|
|
23299
23322
|
if (!writer)
|
|
23300
23323
|
writer = $Writer.create();
|
|
23301
23324
|
if (message.skip != null && Object.hasOwnProperty.call(message, "skip"))
|
|
@@ -23308,33 +23331,33 @@
|
|
|
23308
23331
|
};
|
|
23309
23332
|
|
|
23310
23333
|
/**
|
|
23311
|
-
* Encodes the specified
|
|
23334
|
+
* Encodes the specified OTOpComponent message, length delimited. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
23312
23335
|
* @function encodeDelimited
|
|
23313
|
-
* @memberof api.
|
|
23336
|
+
* @memberof api.OTOpComponent
|
|
23314
23337
|
* @static
|
|
23315
|
-
* @param {api.
|
|
23338
|
+
* @param {api.OTOpComponent} message OTOpComponent message or plain object to encode
|
|
23316
23339
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23317
23340
|
* @returns {$protobuf.Writer} Writer
|
|
23318
23341
|
*/
|
|
23319
|
-
|
|
23342
|
+
OTOpComponent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23320
23343
|
return this.encode(message, writer).ldelim();
|
|
23321
23344
|
};
|
|
23322
23345
|
|
|
23323
23346
|
/**
|
|
23324
|
-
* Decodes a
|
|
23347
|
+
* Decodes a OTOpComponent message from the specified reader or buffer.
|
|
23325
23348
|
* @function decode
|
|
23326
|
-
* @memberof api.
|
|
23349
|
+
* @memberof api.OTOpComponent
|
|
23327
23350
|
* @static
|
|
23328
23351
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23329
23352
|
* @param {number} [length] Message length if known beforehand
|
|
23330
|
-
* @returns {api.
|
|
23353
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23331
23354
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23332
23355
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23333
23356
|
*/
|
|
23334
|
-
|
|
23357
|
+
OTOpComponent.decode = function decode(reader, length) {
|
|
23335
23358
|
if (!(reader instanceof $Reader))
|
|
23336
23359
|
reader = $Reader.create(reader);
|
|
23337
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.
|
|
23360
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.OTOpComponent();
|
|
23338
23361
|
while (reader.pos < end) {
|
|
23339
23362
|
var tag = reader.uint32();
|
|
23340
23363
|
switch (tag >>> 3) {
|
|
@@ -23356,49 +23379,49 @@
|
|
|
23356
23379
|
};
|
|
23357
23380
|
|
|
23358
23381
|
/**
|
|
23359
|
-
* Decodes a
|
|
23382
|
+
* Decodes a OTOpComponent message from the specified reader or buffer, length delimited.
|
|
23360
23383
|
* @function decodeDelimited
|
|
23361
|
-
* @memberof api.
|
|
23384
|
+
* @memberof api.OTOpComponent
|
|
23362
23385
|
* @static
|
|
23363
23386
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23364
|
-
* @returns {api.
|
|
23387
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23365
23388
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23366
23389
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23367
23390
|
*/
|
|
23368
|
-
|
|
23391
|
+
OTOpComponent.decodeDelimited = function decodeDelimited(reader) {
|
|
23369
23392
|
if (!(reader instanceof $Reader))
|
|
23370
23393
|
reader = new $Reader(reader);
|
|
23371
23394
|
return this.decode(reader, reader.uint32());
|
|
23372
23395
|
};
|
|
23373
23396
|
|
|
23374
23397
|
/**
|
|
23375
|
-
* Verifies a
|
|
23398
|
+
* Verifies a OTOpComponent message.
|
|
23376
23399
|
* @function verify
|
|
23377
|
-
* @memberof api.
|
|
23400
|
+
* @memberof api.OTOpComponent
|
|
23378
23401
|
* @static
|
|
23379
23402
|
* @param {Object.<string,*>} message Plain object to verify
|
|
23380
23403
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23381
23404
|
*/
|
|
23382
|
-
|
|
23405
|
+
OTOpComponent.verify = function verify(message) {
|
|
23383
23406
|
if (typeof message !== "object" || message === null)
|
|
23384
23407
|
return "object expected";
|
|
23385
23408
|
var properties = {};
|
|
23386
23409
|
if (message.skip != null && message.hasOwnProperty("skip")) {
|
|
23387
|
-
properties.
|
|
23410
|
+
properties.opComponent = 1;
|
|
23388
23411
|
if (!$util.isInteger(message.skip))
|
|
23389
23412
|
return "skip: integer expected";
|
|
23390
23413
|
}
|
|
23391
23414
|
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
23392
|
-
if (properties.
|
|
23393
|
-
return "
|
|
23394
|
-
properties.
|
|
23415
|
+
if (properties.opComponent === 1)
|
|
23416
|
+
return "opComponent: multiple values";
|
|
23417
|
+
properties.opComponent = 1;
|
|
23395
23418
|
if (!$util.isInteger(message["delete"]))
|
|
23396
23419
|
return "delete: integer expected";
|
|
23397
23420
|
}
|
|
23398
23421
|
if (message.insert != null && message.hasOwnProperty("insert")) {
|
|
23399
|
-
if (properties.
|
|
23400
|
-
return "
|
|
23401
|
-
properties.
|
|
23422
|
+
if (properties.opComponent === 1)
|
|
23423
|
+
return "opComponent: multiple values";
|
|
23424
|
+
properties.opComponent = 1;
|
|
23402
23425
|
if (!$util.isString(message.insert))
|
|
23403
23426
|
return "insert: string expected";
|
|
23404
23427
|
}
|
|
@@ -23406,17 +23429,17 @@
|
|
|
23406
23429
|
};
|
|
23407
23430
|
|
|
23408
23431
|
/**
|
|
23409
|
-
* Creates a
|
|
23432
|
+
* Creates a OTOpComponent message from a plain object. Also converts values to their respective internal types.
|
|
23410
23433
|
* @function fromObject
|
|
23411
|
-
* @memberof api.
|
|
23434
|
+
* @memberof api.OTOpComponent
|
|
23412
23435
|
* @static
|
|
23413
23436
|
* @param {Object.<string,*>} object Plain object
|
|
23414
|
-
* @returns {api.
|
|
23437
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23415
23438
|
*/
|
|
23416
|
-
|
|
23417
|
-
if (object instanceof $root.api.
|
|
23439
|
+
OTOpComponent.fromObject = function fromObject(object) {
|
|
23440
|
+
if (object instanceof $root.api.OTOpComponent)
|
|
23418
23441
|
return object;
|
|
23419
|
-
var message = new $root.api.
|
|
23442
|
+
var message = new $root.api.OTOpComponent();
|
|
23420
23443
|
if (object.skip != null)
|
|
23421
23444
|
message.skip = object.skip >>> 0;
|
|
23422
23445
|
if (object["delete"] != null)
|
|
@@ -23427,48 +23450,48 @@
|
|
|
23427
23450
|
};
|
|
23428
23451
|
|
|
23429
23452
|
/**
|
|
23430
|
-
* Creates a plain object from a
|
|
23453
|
+
* Creates a plain object from a OTOpComponent message. Also converts values to other types if specified.
|
|
23431
23454
|
* @function toObject
|
|
23432
|
-
* @memberof api.
|
|
23455
|
+
* @memberof api.OTOpComponent
|
|
23433
23456
|
* @static
|
|
23434
|
-
* @param {api.
|
|
23457
|
+
* @param {api.OTOpComponent} message OTOpComponent
|
|
23435
23458
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23436
23459
|
* @returns {Object.<string,*>} Plain object
|
|
23437
23460
|
*/
|
|
23438
|
-
|
|
23461
|
+
OTOpComponent.toObject = function toObject(message, options) {
|
|
23439
23462
|
if (!options)
|
|
23440
23463
|
options = {};
|
|
23441
23464
|
var object = {};
|
|
23442
23465
|
if (message.skip != null && message.hasOwnProperty("skip")) {
|
|
23443
23466
|
object.skip = message.skip;
|
|
23444
23467
|
if (options.oneofs)
|
|
23445
|
-
object.
|
|
23468
|
+
object.opComponent = "skip";
|
|
23446
23469
|
}
|
|
23447
23470
|
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
23448
23471
|
object["delete"] = message["delete"];
|
|
23449
23472
|
if (options.oneofs)
|
|
23450
|
-
object.
|
|
23473
|
+
object.opComponent = "delete";
|
|
23451
23474
|
}
|
|
23452
23475
|
if (message.insert != null && message.hasOwnProperty("insert")) {
|
|
23453
23476
|
object.insert = message.insert;
|
|
23454
23477
|
if (options.oneofs)
|
|
23455
|
-
object.
|
|
23478
|
+
object.opComponent = "insert";
|
|
23456
23479
|
}
|
|
23457
23480
|
return object;
|
|
23458
23481
|
};
|
|
23459
23482
|
|
|
23460
23483
|
/**
|
|
23461
|
-
* Converts this
|
|
23484
|
+
* Converts this OTOpComponent to JSON.
|
|
23462
23485
|
* @function toJSON
|
|
23463
|
-
* @memberof api.
|
|
23486
|
+
* @memberof api.OTOpComponent
|
|
23464
23487
|
* @instance
|
|
23465
23488
|
* @returns {Object.<string,*>} JSON object
|
|
23466
23489
|
*/
|
|
23467
|
-
|
|
23490
|
+
OTOpComponent.prototype.toJSON = function toJSON() {
|
|
23468
23491
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23469
23492
|
};
|
|
23470
23493
|
|
|
23471
|
-
return
|
|
23494
|
+
return OTOpComponent;
|
|
23472
23495
|
})();
|
|
23473
23496
|
|
|
23474
23497
|
api.OTStatus = (function() {
|
|
@@ -35672,6 +35695,7 @@
|
|
|
35672
35695
|
* @property {boolean|null} [audio] DotReplit audio
|
|
35673
35696
|
* @property {api.HostingConfig|api.IHostingConfig|null} [hosting] DotReplit hosting
|
|
35674
35697
|
* @property {Object.<string,string>|null} [env] DotReplit env
|
|
35698
|
+
* @property {api.GitHubImportConfig|api.IGitHubImportConfig|null} [gitHubImport] DotReplit gitHubImport
|
|
35675
35699
|
*/
|
|
35676
35700
|
|
|
35677
35701
|
/**
|
|
@@ -35811,6 +35835,14 @@
|
|
|
35811
35835
|
*/
|
|
35812
35836
|
DotReplit.prototype.env = $util.emptyObject;
|
|
35813
35837
|
|
|
35838
|
+
/**
|
|
35839
|
+
* DotReplit gitHubImport.
|
|
35840
|
+
* @member {api.GitHubImportConfig|null|undefined} gitHubImport
|
|
35841
|
+
* @memberof api.DotReplit
|
|
35842
|
+
* @instance
|
|
35843
|
+
*/
|
|
35844
|
+
DotReplit.prototype.gitHubImport = null;
|
|
35845
|
+
|
|
35814
35846
|
/**
|
|
35815
35847
|
* Creates a new DotReplit instance using the specified properties.
|
|
35816
35848
|
* @function create
|
|
@@ -35870,6 +35902,8 @@
|
|
|
35870
35902
|
if (message.env != null && Object.hasOwnProperty.call(message, "env"))
|
|
35871
35903
|
for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i)
|
|
35872
35904
|
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
|
|
35905
|
+
if (message.gitHubImport != null && Object.hasOwnProperty.call(message, "gitHubImport"))
|
|
35906
|
+
$root.api.GitHubImportConfig.encode(message.gitHubImport, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
35873
35907
|
return writer;
|
|
35874
35908
|
};
|
|
35875
35909
|
|
|
@@ -35989,6 +36023,9 @@
|
|
|
35989
36023
|
}
|
|
35990
36024
|
message.env[key] = value;
|
|
35991
36025
|
break;
|
|
36026
|
+
case 16:
|
|
36027
|
+
message.gitHubImport = $root.api.GitHubImportConfig.decode(reader, reader.uint32());
|
|
36028
|
+
break;
|
|
35992
36029
|
default:
|
|
35993
36030
|
reader.skipType(tag & 7);
|
|
35994
36031
|
break;
|
|
@@ -36103,6 +36140,11 @@
|
|
|
36103
36140
|
if (!$util.isString(message.env[key[i]]))
|
|
36104
36141
|
return "env: string{k:string} expected";
|
|
36105
36142
|
}
|
|
36143
|
+
if (message.gitHubImport != null && message.hasOwnProperty("gitHubImport")) {
|
|
36144
|
+
var error = $root.api.GitHubImportConfig.verify(message.gitHubImport);
|
|
36145
|
+
if (error)
|
|
36146
|
+
return "gitHubImport." + error;
|
|
36147
|
+
}
|
|
36106
36148
|
return null;
|
|
36107
36149
|
};
|
|
36108
36150
|
|
|
@@ -36193,6 +36235,11 @@
|
|
|
36193
36235
|
for (var keys = Object.keys(object.env), i = 0; i < keys.length; ++i)
|
|
36194
36236
|
message.env[keys[i]] = String(object.env[keys[i]]);
|
|
36195
36237
|
}
|
|
36238
|
+
if (object.gitHubImport != null) {
|
|
36239
|
+
if (typeof object.gitHubImport !== "object")
|
|
36240
|
+
throw TypeError(".api.DotReplit.gitHubImport: object expected");
|
|
36241
|
+
message.gitHubImport = $root.api.GitHubImportConfig.fromObject(object.gitHubImport);
|
|
36242
|
+
}
|
|
36196
36243
|
return message;
|
|
36197
36244
|
};
|
|
36198
36245
|
|
|
@@ -36228,6 +36275,7 @@
|
|
|
36228
36275
|
object.nix = null;
|
|
36229
36276
|
object.audio = false;
|
|
36230
36277
|
object.hosting = null;
|
|
36278
|
+
object.gitHubImport = null;
|
|
36231
36279
|
}
|
|
36232
36280
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
36233
36281
|
object.run = $root.api.Exec.toObject(message.run, options);
|
|
@@ -36269,6 +36317,8 @@
|
|
|
36269
36317
|
for (var j = 0; j < keys2.length; ++j)
|
|
36270
36318
|
object.env[keys2[j]] = message.env[keys2[j]];
|
|
36271
36319
|
}
|
|
36320
|
+
if (message.gitHubImport != null && message.hasOwnProperty("gitHubImport"))
|
|
36321
|
+
object.gitHubImport = $root.api.GitHubImportConfig.toObject(message.gitHubImport, options);
|
|
36272
36322
|
return object;
|
|
36273
36323
|
};
|
|
36274
36324
|
|
|
@@ -36286,6 +36336,208 @@
|
|
|
36286
36336
|
return DotReplit;
|
|
36287
36337
|
})();
|
|
36288
36338
|
|
|
36339
|
+
api.GitHubImportConfig = (function() {
|
|
36340
|
+
|
|
36341
|
+
/**
|
|
36342
|
+
* Properties of a GitHubImportConfig.
|
|
36343
|
+
* @memberof api
|
|
36344
|
+
* @interface IGitHubImportConfig
|
|
36345
|
+
* @property {Array.<string>|null} [RequiredFiles] GitHubImportConfig RequiredFiles
|
|
36346
|
+
*/
|
|
36347
|
+
|
|
36348
|
+
/**
|
|
36349
|
+
* Constructs a new GitHubImportConfig.
|
|
36350
|
+
* @memberof api
|
|
36351
|
+
* @classdesc Represents a GitHubImportConfig.
|
|
36352
|
+
* @constructor
|
|
36353
|
+
* @param {api.IGitHubImportConfig=} [properties] Properties to set
|
|
36354
|
+
*/
|
|
36355
|
+
function GitHubImportConfig(properties) {
|
|
36356
|
+
this.RequiredFiles = [];
|
|
36357
|
+
if (properties)
|
|
36358
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36359
|
+
if (properties[keys[i]] != null)
|
|
36360
|
+
this[keys[i]] = properties[keys[i]];
|
|
36361
|
+
}
|
|
36362
|
+
|
|
36363
|
+
/**
|
|
36364
|
+
* GitHubImportConfig RequiredFiles.
|
|
36365
|
+
* @member {Array.<string>} RequiredFiles
|
|
36366
|
+
* @memberof api.GitHubImportConfig
|
|
36367
|
+
* @instance
|
|
36368
|
+
*/
|
|
36369
|
+
GitHubImportConfig.prototype.RequiredFiles = $util.emptyArray;
|
|
36370
|
+
|
|
36371
|
+
/**
|
|
36372
|
+
* Creates a new GitHubImportConfig instance using the specified properties.
|
|
36373
|
+
* @function create
|
|
36374
|
+
* @memberof api.GitHubImportConfig
|
|
36375
|
+
* @static
|
|
36376
|
+
* @param {api.IGitHubImportConfig=} [properties] Properties to set
|
|
36377
|
+
* @returns {api.GitHubImportConfig} GitHubImportConfig instance
|
|
36378
|
+
*/
|
|
36379
|
+
GitHubImportConfig.create = function create(properties) {
|
|
36380
|
+
return GitHubImportConfig.fromObject(properties);
|
|
36381
|
+
};
|
|
36382
|
+
|
|
36383
|
+
/**
|
|
36384
|
+
* Encodes the specified GitHubImportConfig message. Does not implicitly {@link api.GitHubImportConfig.verify|verify} messages.
|
|
36385
|
+
* @function encode
|
|
36386
|
+
* @memberof api.GitHubImportConfig
|
|
36387
|
+
* @static
|
|
36388
|
+
* @param {api.GitHubImportConfig} message GitHubImportConfig message or plain object to encode
|
|
36389
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36390
|
+
* @returns {$protobuf.Writer} Writer
|
|
36391
|
+
*/
|
|
36392
|
+
GitHubImportConfig.encode = function encode(message, writer) {
|
|
36393
|
+
if (!writer)
|
|
36394
|
+
writer = $Writer.create();
|
|
36395
|
+
if (message.RequiredFiles != null && message.RequiredFiles.length)
|
|
36396
|
+
for (var i = 0; i < message.RequiredFiles.length; ++i)
|
|
36397
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.RequiredFiles[i]);
|
|
36398
|
+
return writer;
|
|
36399
|
+
};
|
|
36400
|
+
|
|
36401
|
+
/**
|
|
36402
|
+
* Encodes the specified GitHubImportConfig message, length delimited. Does not implicitly {@link api.GitHubImportConfig.verify|verify} messages.
|
|
36403
|
+
* @function encodeDelimited
|
|
36404
|
+
* @memberof api.GitHubImportConfig
|
|
36405
|
+
* @static
|
|
36406
|
+
* @param {api.GitHubImportConfig} message GitHubImportConfig message or plain object to encode
|
|
36407
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36408
|
+
* @returns {$protobuf.Writer} Writer
|
|
36409
|
+
*/
|
|
36410
|
+
GitHubImportConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36411
|
+
return this.encode(message, writer).ldelim();
|
|
36412
|
+
};
|
|
36413
|
+
|
|
36414
|
+
/**
|
|
36415
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer.
|
|
36416
|
+
* @function decode
|
|
36417
|
+
* @memberof api.GitHubImportConfig
|
|
36418
|
+
* @static
|
|
36419
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36420
|
+
* @param {number} [length] Message length if known beforehand
|
|
36421
|
+
* @returns {api.GitHubImportConfig} GitHubImportConfig
|
|
36422
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36423
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36424
|
+
*/
|
|
36425
|
+
GitHubImportConfig.decode = function decode(reader, length) {
|
|
36426
|
+
if (!(reader instanceof $Reader))
|
|
36427
|
+
reader = $Reader.create(reader);
|
|
36428
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.GitHubImportConfig();
|
|
36429
|
+
while (reader.pos < end) {
|
|
36430
|
+
var tag = reader.uint32();
|
|
36431
|
+
switch (tag >>> 3) {
|
|
36432
|
+
case 1:
|
|
36433
|
+
if (!(message.RequiredFiles && message.RequiredFiles.length))
|
|
36434
|
+
message.RequiredFiles = [];
|
|
36435
|
+
message.RequiredFiles.push(reader.string());
|
|
36436
|
+
break;
|
|
36437
|
+
default:
|
|
36438
|
+
reader.skipType(tag & 7);
|
|
36439
|
+
break;
|
|
36440
|
+
}
|
|
36441
|
+
}
|
|
36442
|
+
return message;
|
|
36443
|
+
};
|
|
36444
|
+
|
|
36445
|
+
/**
|
|
36446
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer, length delimited.
|
|
36447
|
+
* @function decodeDelimited
|
|
36448
|
+
* @memberof api.GitHubImportConfig
|
|
36449
|
+
* @static
|
|
36450
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36451
|
+
* @returns {api.GitHubImportConfig} GitHubImportConfig
|
|
36452
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36453
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36454
|
+
*/
|
|
36455
|
+
GitHubImportConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
36456
|
+
if (!(reader instanceof $Reader))
|
|
36457
|
+
reader = new $Reader(reader);
|
|
36458
|
+
return this.decode(reader, reader.uint32());
|
|
36459
|
+
};
|
|
36460
|
+
|
|
36461
|
+
/**
|
|
36462
|
+
* Verifies a GitHubImportConfig message.
|
|
36463
|
+
* @function verify
|
|
36464
|
+
* @memberof api.GitHubImportConfig
|
|
36465
|
+
* @static
|
|
36466
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36467
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36468
|
+
*/
|
|
36469
|
+
GitHubImportConfig.verify = function verify(message) {
|
|
36470
|
+
if (typeof message !== "object" || message === null)
|
|
36471
|
+
return "object expected";
|
|
36472
|
+
if (message.RequiredFiles != null && message.hasOwnProperty("RequiredFiles")) {
|
|
36473
|
+
if (!Array.isArray(message.RequiredFiles))
|
|
36474
|
+
return "RequiredFiles: array expected";
|
|
36475
|
+
for (var i = 0; i < message.RequiredFiles.length; ++i)
|
|
36476
|
+
if (!$util.isString(message.RequiredFiles[i]))
|
|
36477
|
+
return "RequiredFiles: string[] expected";
|
|
36478
|
+
}
|
|
36479
|
+
return null;
|
|
36480
|
+
};
|
|
36481
|
+
|
|
36482
|
+
/**
|
|
36483
|
+
* Creates a GitHubImportConfig message from a plain object. Also converts values to their respective internal types.
|
|
36484
|
+
* @function fromObject
|
|
36485
|
+
* @memberof api.GitHubImportConfig
|
|
36486
|
+
* @static
|
|
36487
|
+
* @param {Object.<string,*>} object Plain object
|
|
36488
|
+
* @returns {api.GitHubImportConfig} GitHubImportConfig
|
|
36489
|
+
*/
|
|
36490
|
+
GitHubImportConfig.fromObject = function fromObject(object) {
|
|
36491
|
+
if (object instanceof $root.api.GitHubImportConfig)
|
|
36492
|
+
return object;
|
|
36493
|
+
var message = new $root.api.GitHubImportConfig();
|
|
36494
|
+
if (object.RequiredFiles) {
|
|
36495
|
+
if (!Array.isArray(object.RequiredFiles))
|
|
36496
|
+
throw TypeError(".api.GitHubImportConfig.RequiredFiles: array expected");
|
|
36497
|
+
message.RequiredFiles = [];
|
|
36498
|
+
for (var i = 0; i < object.RequiredFiles.length; ++i)
|
|
36499
|
+
message.RequiredFiles[i] = String(object.RequiredFiles[i]);
|
|
36500
|
+
}
|
|
36501
|
+
return message;
|
|
36502
|
+
};
|
|
36503
|
+
|
|
36504
|
+
/**
|
|
36505
|
+
* Creates a plain object from a GitHubImportConfig message. Also converts values to other types if specified.
|
|
36506
|
+
* @function toObject
|
|
36507
|
+
* @memberof api.GitHubImportConfig
|
|
36508
|
+
* @static
|
|
36509
|
+
* @param {api.GitHubImportConfig} message GitHubImportConfig
|
|
36510
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36511
|
+
* @returns {Object.<string,*>} Plain object
|
|
36512
|
+
*/
|
|
36513
|
+
GitHubImportConfig.toObject = function toObject(message, options) {
|
|
36514
|
+
if (!options)
|
|
36515
|
+
options = {};
|
|
36516
|
+
var object = {};
|
|
36517
|
+
if (options.arrays || options.defaults)
|
|
36518
|
+
object.RequiredFiles = [];
|
|
36519
|
+
if (message.RequiredFiles && message.RequiredFiles.length) {
|
|
36520
|
+
object.RequiredFiles = [];
|
|
36521
|
+
for (var j = 0; j < message.RequiredFiles.length; ++j)
|
|
36522
|
+
object.RequiredFiles[j] = message.RequiredFiles[j];
|
|
36523
|
+
}
|
|
36524
|
+
return object;
|
|
36525
|
+
};
|
|
36526
|
+
|
|
36527
|
+
/**
|
|
36528
|
+
* Converts this GitHubImportConfig to JSON.
|
|
36529
|
+
* @function toJSON
|
|
36530
|
+
* @memberof api.GitHubImportConfig
|
|
36531
|
+
* @instance
|
|
36532
|
+
* @returns {Object.<string,*>} JSON object
|
|
36533
|
+
*/
|
|
36534
|
+
GitHubImportConfig.prototype.toJSON = function toJSON() {
|
|
36535
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36536
|
+
};
|
|
36537
|
+
|
|
36538
|
+
return GitHubImportConfig;
|
|
36539
|
+
})();
|
|
36540
|
+
|
|
36289
36541
|
api.NixConfig = (function() {
|
|
36290
36542
|
|
|
36291
36543
|
/**
|