@replit/protocol 0.2.86 → 0.2.87

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/gen.sh CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env bash
2
2
 
3
3
  set -e
4
4
 
package/main/index.d.ts CHANGED
@@ -506,6 +506,12 @@ export namespace replit {
506
506
  /** Command userEvent */
507
507
  userEvent?: (replit.goval.api.UserEvent|replit.goval.api.IUserEvent|null);
508
508
 
509
+ /** Command replspaceApiOpenFile */
510
+ replspaceApiOpenFile?: (replit.goval.api.ReplspaceApiOpenFile|replit.goval.api.IReplspaceApiOpenFile|null);
511
+
512
+ /** Command replspaceApiCloseFile */
513
+ replspaceApiCloseFile?: (replit.goval.api.ReplspaceApiCloseFile|replit.goval.api.IReplspaceApiCloseFile|null);
514
+
509
515
  /** Command ref */
510
516
  ref?: (string|null);
511
517
 
@@ -1017,6 +1023,12 @@ export namespace replit {
1017
1023
  /** Command userEvent. */
1018
1024
  public userEvent?: (replit.goval.api.UserEvent|null);
1019
1025
 
1026
+ /** Command replspaceApiOpenFile. */
1027
+ public replspaceApiOpenFile?: (replit.goval.api.ReplspaceApiOpenFile|null);
1028
+
1029
+ /** Command replspaceApiCloseFile. */
1030
+ public replspaceApiCloseFile?: (replit.goval.api.ReplspaceApiCloseFile|null);
1031
+
1020
1032
  /** Command ref. */
1021
1033
  public ref: string;
1022
1034
 
@@ -1024,7 +1036,7 @@ export namespace replit {
1024
1036
  public traceInfo: { [k: string]: string };
1025
1037
 
1026
1038
  /** Command body. */
1027
- public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent");
1039
+ public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile");
1028
1040
 
1029
1041
  /**
1030
1042
  * Creates a new Command instance using the specified properties.
@@ -11115,6 +11127,204 @@ export namespace replit {
11115
11127
  public toJSON(): { [k: string]: any };
11116
11128
  }
11117
11129
 
11130
+ /** Properties of a ReplspaceApiOpenFile. */
11131
+ interface IReplspaceApiOpenFile {
11132
+
11133
+ /** ReplspaceApiOpenFile file */
11134
+ file?: (string|null);
11135
+
11136
+ /** ReplspaceApiOpenFile waitForClose */
11137
+ waitForClose?: (boolean|null);
11138
+
11139
+ /** ReplspaceApiOpenFile nonce */
11140
+ nonce?: (string|null);
11141
+ }
11142
+
11143
+ /** Represents a ReplspaceApiOpenFile. */
11144
+ class ReplspaceApiOpenFile {
11145
+
11146
+ /**
11147
+ * Constructs a new ReplspaceApiOpenFile.
11148
+ * @param [properties] Properties to set
11149
+ */
11150
+ private constructor(properties?: replit.goval.api.IReplspaceApiOpenFile);
11151
+
11152
+ /** ReplspaceApiOpenFile file. */
11153
+ public file: string;
11154
+
11155
+ /** ReplspaceApiOpenFile waitForClose. */
11156
+ public waitForClose: boolean;
11157
+
11158
+ /** ReplspaceApiOpenFile nonce. */
11159
+ public nonce: string;
11160
+
11161
+ /**
11162
+ * Creates a new ReplspaceApiOpenFile instance using the specified properties.
11163
+ * @param [properties] Properties to set
11164
+ * @returns ReplspaceApiOpenFile instance
11165
+ */
11166
+ public static create(properties?: replit.goval.api.IReplspaceApiOpenFile): replit.goval.api.ReplspaceApiOpenFile;
11167
+
11168
+ /**
11169
+ * Encodes the specified ReplspaceApiOpenFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
11170
+ * @param message ReplspaceApiOpenFile message or plain object to encode
11171
+ * @param [writer] Writer to encode to
11172
+ * @returns Writer
11173
+ */
11174
+ public static encode(message: replit.goval.api.ReplspaceApiOpenFile, writer?: $protobuf.Writer): $protobuf.Writer;
11175
+
11176
+ /**
11177
+ * Encodes the specified ReplspaceApiOpenFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
11178
+ * @param message ReplspaceApiOpenFile message or plain object to encode
11179
+ * @param [writer] Writer to encode to
11180
+ * @returns Writer
11181
+ */
11182
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiOpenFile, writer?: $protobuf.Writer): $protobuf.Writer;
11183
+
11184
+ /**
11185
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
11186
+ * @param reader Reader or buffer to decode from
11187
+ * @param [length] Message length if known beforehand
11188
+ * @returns ReplspaceApiOpenFile
11189
+ * @throws {Error} If the payload is not a reader or valid buffer
11190
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11191
+ */
11192
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiOpenFile;
11193
+
11194
+ /**
11195
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
11196
+ * @param reader Reader or buffer to decode from
11197
+ * @returns ReplspaceApiOpenFile
11198
+ * @throws {Error} If the payload is not a reader or valid buffer
11199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11200
+ */
11201
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiOpenFile;
11202
+
11203
+ /**
11204
+ * Verifies a ReplspaceApiOpenFile message.
11205
+ * @param message Plain object to verify
11206
+ * @returns `null` if valid, otherwise the reason why it is not
11207
+ */
11208
+ public static verify(message: { [k: string]: any }): (string|null);
11209
+
11210
+ /**
11211
+ * Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
11212
+ * @param object Plain object
11213
+ * @returns ReplspaceApiOpenFile
11214
+ */
11215
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiOpenFile;
11216
+
11217
+ /**
11218
+ * Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
11219
+ * @param message ReplspaceApiOpenFile
11220
+ * @param [options] Conversion options
11221
+ * @returns Plain object
11222
+ */
11223
+ public static toObject(message: replit.goval.api.ReplspaceApiOpenFile, options?: $protobuf.IConversionOptions): { [k: string]: any };
11224
+
11225
+ /**
11226
+ * Converts this ReplspaceApiOpenFile to JSON.
11227
+ * @returns JSON object
11228
+ */
11229
+ public toJSON(): { [k: string]: any };
11230
+ }
11231
+
11232
+ /** Properties of a ReplspaceApiCloseFile. */
11233
+ interface IReplspaceApiCloseFile {
11234
+
11235
+ /** ReplspaceApiCloseFile file */
11236
+ file?: (string|null);
11237
+
11238
+ /** ReplspaceApiCloseFile nonce */
11239
+ nonce?: (string|null);
11240
+ }
11241
+
11242
+ /** Represents a ReplspaceApiCloseFile. */
11243
+ class ReplspaceApiCloseFile {
11244
+
11245
+ /**
11246
+ * Constructs a new ReplspaceApiCloseFile.
11247
+ * @param [properties] Properties to set
11248
+ */
11249
+ private constructor(properties?: replit.goval.api.IReplspaceApiCloseFile);
11250
+
11251
+ /** ReplspaceApiCloseFile file. */
11252
+ public file: string;
11253
+
11254
+ /** ReplspaceApiCloseFile nonce. */
11255
+ public nonce: string;
11256
+
11257
+ /**
11258
+ * Creates a new ReplspaceApiCloseFile instance using the specified properties.
11259
+ * @param [properties] Properties to set
11260
+ * @returns ReplspaceApiCloseFile instance
11261
+ */
11262
+ public static create(properties?: replit.goval.api.IReplspaceApiCloseFile): replit.goval.api.ReplspaceApiCloseFile;
11263
+
11264
+ /**
11265
+ * Encodes the specified ReplspaceApiCloseFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
11266
+ * @param message ReplspaceApiCloseFile message or plain object to encode
11267
+ * @param [writer] Writer to encode to
11268
+ * @returns Writer
11269
+ */
11270
+ public static encode(message: replit.goval.api.ReplspaceApiCloseFile, writer?: $protobuf.Writer): $protobuf.Writer;
11271
+
11272
+ /**
11273
+ * Encodes the specified ReplspaceApiCloseFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
11274
+ * @param message ReplspaceApiCloseFile message or plain object to encode
11275
+ * @param [writer] Writer to encode to
11276
+ * @returns Writer
11277
+ */
11278
+ public static encodeDelimited(message: replit.goval.api.ReplspaceApiCloseFile, writer?: $protobuf.Writer): $protobuf.Writer;
11279
+
11280
+ /**
11281
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
11282
+ * @param reader Reader or buffer to decode from
11283
+ * @param [length] Message length if known beforehand
11284
+ * @returns ReplspaceApiCloseFile
11285
+ * @throws {Error} If the payload is not a reader or valid buffer
11286
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11287
+ */
11288
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplspaceApiCloseFile;
11289
+
11290
+ /**
11291
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
11292
+ * @param reader Reader or buffer to decode from
11293
+ * @returns ReplspaceApiCloseFile
11294
+ * @throws {Error} If the payload is not a reader or valid buffer
11295
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11296
+ */
11297
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplspaceApiCloseFile;
11298
+
11299
+ /**
11300
+ * Verifies a ReplspaceApiCloseFile message.
11301
+ * @param message Plain object to verify
11302
+ * @returns `null` if valid, otherwise the reason why it is not
11303
+ */
11304
+ public static verify(message: { [k: string]: any }): (string|null);
11305
+
11306
+ /**
11307
+ * Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
11308
+ * @param object Plain object
11309
+ * @returns ReplspaceApiCloseFile
11310
+ */
11311
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplspaceApiCloseFile;
11312
+
11313
+ /**
11314
+ * Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
11315
+ * @param message ReplspaceApiCloseFile
11316
+ * @param [options] Conversion options
11317
+ * @returns Plain object
11318
+ */
11319
+ public static toObject(message: replit.goval.api.ReplspaceApiCloseFile, options?: $protobuf.IConversionOptions): { [k: string]: any };
11320
+
11321
+ /**
11322
+ * Converts this ReplspaceApiCloseFile to JSON.
11323
+ * @returns JSON object
11324
+ */
11325
+ public toJSON(): { [k: string]: any };
11326
+ }
11327
+
11118
11328
  /** Properties of an UpdateSessionTimestamp. */
11119
11329
  interface IUpdateSessionTimestamp {
11120
11330
  }
package/main/index.js CHANGED
@@ -214,6 +214,8 @@
214
214
  * @property {replit.goval.api.NixPackageSearchRequest|replit.goval.api.INixPackageSearchRequest|null} [nixPackageSearchRequest] Command nixPackageSearchRequest
215
215
  * @property {replit.goval.api.NixPackageSearchResponse|replit.goval.api.INixPackageSearchResponse|null} [nixPackageSearchResponse] Command nixPackageSearchResponse
216
216
  * @property {replit.goval.api.UserEvent|replit.goval.api.IUserEvent|null} [userEvent] Command userEvent
217
+ * @property {replit.goval.api.ReplspaceApiOpenFile|replit.goval.api.IReplspaceApiOpenFile|null} [replspaceApiOpenFile] Command replspaceApiOpenFile
218
+ * @property {replit.goval.api.ReplspaceApiCloseFile|replit.goval.api.IReplspaceApiCloseFile|null} [replspaceApiCloseFile] Command replspaceApiCloseFile
217
219
  * @property {string|null} [ref] Command ref
218
220
  * @property {Object.<string,string>|null} [traceInfo] Command traceInfo
219
221
  */
@@ -1553,6 +1555,22 @@
1553
1555
  */
1554
1556
  Command.prototype.userEvent = null;
1555
1557
 
1558
+ /**
1559
+ * Command replspaceApiOpenFile.
1560
+ * @member {replit.goval.api.ReplspaceApiOpenFile|null|undefined} replspaceApiOpenFile
1561
+ * @memberof replit.goval.api.Command
1562
+ * @instance
1563
+ */
1564
+ Command.prototype.replspaceApiOpenFile = null;
1565
+
1566
+ /**
1567
+ * Command replspaceApiCloseFile.
1568
+ * @member {replit.goval.api.ReplspaceApiCloseFile|null|undefined} replspaceApiCloseFile
1569
+ * @memberof replit.goval.api.Command
1570
+ * @instance
1571
+ */
1572
+ Command.prototype.replspaceApiCloseFile = null;
1573
+
1556
1574
  /**
1557
1575
  * Command ref.
1558
1576
  * @member {string} ref
@@ -1574,12 +1592,12 @@
1574
1592
 
1575
1593
  /**
1576
1594
  * Command body.
1577
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|undefined} body
1595
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|undefined} body
1578
1596
  * @memberof replit.goval.api.Command
1579
1597
  * @instance
1580
1598
  */
1581
1599
  Object.defineProperty(Command.prototype, "body", {
1582
- get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent"]),
1600
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile"]),
1583
1601
  set: $util.oneOfSetter($oneOfFields)
1584
1602
  });
1585
1603
 
@@ -1937,6 +1955,10 @@
1937
1955
  writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
1938
1956
  if (message.userEvent != null && Object.hasOwnProperty.call(message, "userEvent"))
1939
1957
  $root.replit.goval.api.UserEvent.encode(message.userEvent, writer.uint32(/* id 423, wireType 2 =*/3386).fork()).ldelim();
1958
+ if (message.replspaceApiOpenFile != null && Object.hasOwnProperty.call(message, "replspaceApiOpenFile"))
1959
+ $root.replit.goval.api.ReplspaceApiOpenFile.encode(message.replspaceApiOpenFile, writer.uint32(/* id 424, wireType 2 =*/3394).fork()).ldelim();
1960
+ if (message.replspaceApiCloseFile != null && Object.hasOwnProperty.call(message, "replspaceApiCloseFile"))
1961
+ $root.replit.goval.api.ReplspaceApiCloseFile.encode(message.replspaceApiCloseFile, writer.uint32(/* id 425, wireType 2 =*/3402).fork()).ldelim();
1940
1962
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1941
1963
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1942
1964
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -2471,6 +2493,12 @@
2471
2493
  case 423:
2472
2494
  message.userEvent = $root.replit.goval.api.UserEvent.decode(reader, reader.uint32());
2473
2495
  break;
2496
+ case 424:
2497
+ message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.decode(reader, reader.uint32());
2498
+ break;
2499
+ case 425:
2500
+ message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.decode(reader, reader.uint32());
2501
+ break;
2474
2502
  case 1000:
2475
2503
  message.ref = reader.string();
2476
2504
  break;
@@ -4135,6 +4163,26 @@
4135
4163
  return "userEvent." + error;
4136
4164
  }
4137
4165
  }
4166
+ if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
4167
+ if (properties.body === 1)
4168
+ return "body: multiple values";
4169
+ properties.body = 1;
4170
+ {
4171
+ var error = $root.replit.goval.api.ReplspaceApiOpenFile.verify(message.replspaceApiOpenFile);
4172
+ if (error)
4173
+ return "replspaceApiOpenFile." + error;
4174
+ }
4175
+ }
4176
+ if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
4177
+ if (properties.body === 1)
4178
+ return "body: multiple values";
4179
+ properties.body = 1;
4180
+ {
4181
+ var error = $root.replit.goval.api.ReplspaceApiCloseFile.verify(message.replspaceApiCloseFile);
4182
+ if (error)
4183
+ return "replspaceApiCloseFile." + error;
4184
+ }
4185
+ }
4138
4186
  if (message.ref != null && message.hasOwnProperty("ref"))
4139
4187
  if (!$util.isString(message.ref))
4140
4188
  return "ref: string expected";
@@ -4952,6 +5000,16 @@
4952
5000
  throw TypeError(".replit.goval.api.Command.userEvent: object expected");
4953
5001
  message.userEvent = $root.replit.goval.api.UserEvent.fromObject(object.userEvent);
4954
5002
  }
5003
+ if (object.replspaceApiOpenFile != null) {
5004
+ if (typeof object.replspaceApiOpenFile !== "object")
5005
+ throw TypeError(".replit.goval.api.Command.replspaceApiOpenFile: object expected");
5006
+ message.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.fromObject(object.replspaceApiOpenFile);
5007
+ }
5008
+ if (object.replspaceApiCloseFile != null) {
5009
+ if (typeof object.replspaceApiCloseFile !== "object")
5010
+ throw TypeError(".replit.goval.api.Command.replspaceApiCloseFile: object expected");
5011
+ message.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.fromObject(object.replspaceApiCloseFile);
5012
+ }
4955
5013
  if (object.ref != null)
4956
5014
  message.ref = String(object.ref);
4957
5015
  if (object.traceInfo) {
@@ -5803,6 +5861,16 @@
5803
5861
  if (options.oneofs)
5804
5862
  object.body = "userEvent";
5805
5863
  }
5864
+ if (message.replspaceApiOpenFile != null && message.hasOwnProperty("replspaceApiOpenFile")) {
5865
+ object.replspaceApiOpenFile = $root.replit.goval.api.ReplspaceApiOpenFile.toObject(message.replspaceApiOpenFile, options);
5866
+ if (options.oneofs)
5867
+ object.body = "replspaceApiOpenFile";
5868
+ }
5869
+ if (message.replspaceApiCloseFile != null && message.hasOwnProperty("replspaceApiCloseFile")) {
5870
+ object.replspaceApiCloseFile = $root.replit.goval.api.ReplspaceApiCloseFile.toObject(message.replspaceApiCloseFile, options);
5871
+ if (options.oneofs)
5872
+ object.body = "replspaceApiCloseFile";
5873
+ }
5806
5874
  if (message.ref != null && message.hasOwnProperty("ref"))
5807
5875
  object.ref = message.ref;
5808
5876
  var keys2;
@@ -28667,6 +28735,446 @@
28667
28735
  return FileOpened;
28668
28736
  })();
28669
28737
 
28738
+ api.ReplspaceApiOpenFile = (function() {
28739
+
28740
+ /**
28741
+ * Properties of a ReplspaceApiOpenFile.
28742
+ * @memberof replit.goval.api
28743
+ * @interface IReplspaceApiOpenFile
28744
+ * @property {string|null} [file] ReplspaceApiOpenFile file
28745
+ * @property {boolean|null} [waitForClose] ReplspaceApiOpenFile waitForClose
28746
+ * @property {string|null} [nonce] ReplspaceApiOpenFile nonce
28747
+ */
28748
+
28749
+ /**
28750
+ * Constructs a new ReplspaceApiOpenFile.
28751
+ * @memberof replit.goval.api
28752
+ * @classdesc Represents a ReplspaceApiOpenFile.
28753
+ * @constructor
28754
+ * @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
28755
+ */
28756
+ function ReplspaceApiOpenFile(properties) {
28757
+ if (properties)
28758
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28759
+ if (properties[keys[i]] != null)
28760
+ this[keys[i]] = properties[keys[i]];
28761
+ }
28762
+
28763
+ /**
28764
+ * ReplspaceApiOpenFile file.
28765
+ * @member {string} file
28766
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28767
+ * @instance
28768
+ */
28769
+ ReplspaceApiOpenFile.prototype.file = "";
28770
+
28771
+ /**
28772
+ * ReplspaceApiOpenFile waitForClose.
28773
+ * @member {boolean} waitForClose
28774
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28775
+ * @instance
28776
+ */
28777
+ ReplspaceApiOpenFile.prototype.waitForClose = false;
28778
+
28779
+ /**
28780
+ * ReplspaceApiOpenFile nonce.
28781
+ * @member {string} nonce
28782
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28783
+ * @instance
28784
+ */
28785
+ ReplspaceApiOpenFile.prototype.nonce = "";
28786
+
28787
+ /**
28788
+ * Creates a new ReplspaceApiOpenFile instance using the specified properties.
28789
+ * @function create
28790
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28791
+ * @static
28792
+ * @param {replit.goval.api.IReplspaceApiOpenFile=} [properties] Properties to set
28793
+ * @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile instance
28794
+ */
28795
+ ReplspaceApiOpenFile.create = function create(properties) {
28796
+ return ReplspaceApiOpenFile.fromObject(properties);
28797
+ };
28798
+
28799
+ /**
28800
+ * Encodes the specified ReplspaceApiOpenFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
28801
+ * @function encode
28802
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28803
+ * @static
28804
+ * @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
28805
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28806
+ * @returns {$protobuf.Writer} Writer
28807
+ */
28808
+ ReplspaceApiOpenFile.encode = function encode(message, writer) {
28809
+ if (!writer)
28810
+ writer = $Writer.create();
28811
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
28812
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
28813
+ if (message.waitForClose != null && Object.hasOwnProperty.call(message, "waitForClose"))
28814
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.waitForClose);
28815
+ if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
28816
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.nonce);
28817
+ return writer;
28818
+ };
28819
+
28820
+ /**
28821
+ * Encodes the specified ReplspaceApiOpenFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiOpenFile.verify|verify} messages.
28822
+ * @function encodeDelimited
28823
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28824
+ * @static
28825
+ * @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile message or plain object to encode
28826
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28827
+ * @returns {$protobuf.Writer} Writer
28828
+ */
28829
+ ReplspaceApiOpenFile.encodeDelimited = function encodeDelimited(message, writer) {
28830
+ return this.encode(message, writer).ldelim();
28831
+ };
28832
+
28833
+ /**
28834
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
28835
+ * @function decode
28836
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28837
+ * @static
28838
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28839
+ * @param {number} [length] Message length if known beforehand
28840
+ * @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
28841
+ * @throws {Error} If the payload is not a reader or valid buffer
28842
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28843
+ */
28844
+ ReplspaceApiOpenFile.decode = function decode(reader, length) {
28845
+ if (!(reader instanceof $Reader))
28846
+ reader = $Reader.create(reader);
28847
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiOpenFile();
28848
+ while (reader.pos < end) {
28849
+ var tag = reader.uint32();
28850
+ switch (tag >>> 3) {
28851
+ case 1:
28852
+ message.file = reader.string();
28853
+ break;
28854
+ case 2:
28855
+ message.waitForClose = reader.bool();
28856
+ break;
28857
+ case 3:
28858
+ message.nonce = reader.string();
28859
+ break;
28860
+ default:
28861
+ reader.skipType(tag & 7);
28862
+ break;
28863
+ }
28864
+ }
28865
+ return message;
28866
+ };
28867
+
28868
+ /**
28869
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
28870
+ * @function decodeDelimited
28871
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28872
+ * @static
28873
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28874
+ * @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
28875
+ * @throws {Error} If the payload is not a reader or valid buffer
28876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28877
+ */
28878
+ ReplspaceApiOpenFile.decodeDelimited = function decodeDelimited(reader) {
28879
+ if (!(reader instanceof $Reader))
28880
+ reader = new $Reader(reader);
28881
+ return this.decode(reader, reader.uint32());
28882
+ };
28883
+
28884
+ /**
28885
+ * Verifies a ReplspaceApiOpenFile message.
28886
+ * @function verify
28887
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28888
+ * @static
28889
+ * @param {Object.<string,*>} message Plain object to verify
28890
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28891
+ */
28892
+ ReplspaceApiOpenFile.verify = function verify(message) {
28893
+ if (typeof message !== "object" || message === null)
28894
+ return "object expected";
28895
+ if (message.file != null && message.hasOwnProperty("file"))
28896
+ if (!$util.isString(message.file))
28897
+ return "file: string expected";
28898
+ if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
28899
+ if (typeof message.waitForClose !== "boolean")
28900
+ return "waitForClose: boolean expected";
28901
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
28902
+ if (!$util.isString(message.nonce))
28903
+ return "nonce: string expected";
28904
+ return null;
28905
+ };
28906
+
28907
+ /**
28908
+ * Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
28909
+ * @function fromObject
28910
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28911
+ * @static
28912
+ * @param {Object.<string,*>} object Plain object
28913
+ * @returns {replit.goval.api.ReplspaceApiOpenFile} ReplspaceApiOpenFile
28914
+ */
28915
+ ReplspaceApiOpenFile.fromObject = function fromObject(object) {
28916
+ if (object instanceof $root.replit.goval.api.ReplspaceApiOpenFile)
28917
+ return object;
28918
+ var message = new $root.replit.goval.api.ReplspaceApiOpenFile();
28919
+ if (object.file != null)
28920
+ message.file = String(object.file);
28921
+ if (object.waitForClose != null)
28922
+ message.waitForClose = Boolean(object.waitForClose);
28923
+ if (object.nonce != null)
28924
+ message.nonce = String(object.nonce);
28925
+ return message;
28926
+ };
28927
+
28928
+ /**
28929
+ * Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
28930
+ * @function toObject
28931
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28932
+ * @static
28933
+ * @param {replit.goval.api.ReplspaceApiOpenFile} message ReplspaceApiOpenFile
28934
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28935
+ * @returns {Object.<string,*>} Plain object
28936
+ */
28937
+ ReplspaceApiOpenFile.toObject = function toObject(message, options) {
28938
+ if (!options)
28939
+ options = {};
28940
+ var object = {};
28941
+ if (options.defaults) {
28942
+ object.file = "";
28943
+ object.waitForClose = false;
28944
+ object.nonce = "";
28945
+ }
28946
+ if (message.file != null && message.hasOwnProperty("file"))
28947
+ object.file = message.file;
28948
+ if (message.waitForClose != null && message.hasOwnProperty("waitForClose"))
28949
+ object.waitForClose = message.waitForClose;
28950
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
28951
+ object.nonce = message.nonce;
28952
+ return object;
28953
+ };
28954
+
28955
+ /**
28956
+ * Converts this ReplspaceApiOpenFile to JSON.
28957
+ * @function toJSON
28958
+ * @memberof replit.goval.api.ReplspaceApiOpenFile
28959
+ * @instance
28960
+ * @returns {Object.<string,*>} JSON object
28961
+ */
28962
+ ReplspaceApiOpenFile.prototype.toJSON = function toJSON() {
28963
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28964
+ };
28965
+
28966
+ return ReplspaceApiOpenFile;
28967
+ })();
28968
+
28969
+ api.ReplspaceApiCloseFile = (function() {
28970
+
28971
+ /**
28972
+ * Properties of a ReplspaceApiCloseFile.
28973
+ * @memberof replit.goval.api
28974
+ * @interface IReplspaceApiCloseFile
28975
+ * @property {string|null} [file] ReplspaceApiCloseFile file
28976
+ * @property {string|null} [nonce] ReplspaceApiCloseFile nonce
28977
+ */
28978
+
28979
+ /**
28980
+ * Constructs a new ReplspaceApiCloseFile.
28981
+ * @memberof replit.goval.api
28982
+ * @classdesc Represents a ReplspaceApiCloseFile.
28983
+ * @constructor
28984
+ * @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
28985
+ */
28986
+ function ReplspaceApiCloseFile(properties) {
28987
+ if (properties)
28988
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28989
+ if (properties[keys[i]] != null)
28990
+ this[keys[i]] = properties[keys[i]];
28991
+ }
28992
+
28993
+ /**
28994
+ * ReplspaceApiCloseFile file.
28995
+ * @member {string} file
28996
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
28997
+ * @instance
28998
+ */
28999
+ ReplspaceApiCloseFile.prototype.file = "";
29000
+
29001
+ /**
29002
+ * ReplspaceApiCloseFile nonce.
29003
+ * @member {string} nonce
29004
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29005
+ * @instance
29006
+ */
29007
+ ReplspaceApiCloseFile.prototype.nonce = "";
29008
+
29009
+ /**
29010
+ * Creates a new ReplspaceApiCloseFile instance using the specified properties.
29011
+ * @function create
29012
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29013
+ * @static
29014
+ * @param {replit.goval.api.IReplspaceApiCloseFile=} [properties] Properties to set
29015
+ * @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile instance
29016
+ */
29017
+ ReplspaceApiCloseFile.create = function create(properties) {
29018
+ return ReplspaceApiCloseFile.fromObject(properties);
29019
+ };
29020
+
29021
+ /**
29022
+ * Encodes the specified ReplspaceApiCloseFile message. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
29023
+ * @function encode
29024
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29025
+ * @static
29026
+ * @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
29027
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29028
+ * @returns {$protobuf.Writer} Writer
29029
+ */
29030
+ ReplspaceApiCloseFile.encode = function encode(message, writer) {
29031
+ if (!writer)
29032
+ writer = $Writer.create();
29033
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
29034
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.file);
29035
+ if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
29036
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nonce);
29037
+ return writer;
29038
+ };
29039
+
29040
+ /**
29041
+ * Encodes the specified ReplspaceApiCloseFile message, length delimited. Does not implicitly {@link replit.goval.api.ReplspaceApiCloseFile.verify|verify} messages.
29042
+ * @function encodeDelimited
29043
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29044
+ * @static
29045
+ * @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile message or plain object to encode
29046
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29047
+ * @returns {$protobuf.Writer} Writer
29048
+ */
29049
+ ReplspaceApiCloseFile.encodeDelimited = function encodeDelimited(message, writer) {
29050
+ return this.encode(message, writer).ldelim();
29051
+ };
29052
+
29053
+ /**
29054
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
29055
+ * @function decode
29056
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29057
+ * @static
29058
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29059
+ * @param {number} [length] Message length if known beforehand
29060
+ * @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
29061
+ * @throws {Error} If the payload is not a reader or valid buffer
29062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29063
+ */
29064
+ ReplspaceApiCloseFile.decode = function decode(reader, length) {
29065
+ if (!(reader instanceof $Reader))
29066
+ reader = $Reader.create(reader);
29067
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplspaceApiCloseFile();
29068
+ while (reader.pos < end) {
29069
+ var tag = reader.uint32();
29070
+ switch (tag >>> 3) {
29071
+ case 1:
29072
+ message.file = reader.string();
29073
+ break;
29074
+ case 2:
29075
+ message.nonce = reader.string();
29076
+ break;
29077
+ default:
29078
+ reader.skipType(tag & 7);
29079
+ break;
29080
+ }
29081
+ }
29082
+ return message;
29083
+ };
29084
+
29085
+ /**
29086
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
29087
+ * @function decodeDelimited
29088
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29089
+ * @static
29090
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29091
+ * @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
29092
+ * @throws {Error} If the payload is not a reader or valid buffer
29093
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29094
+ */
29095
+ ReplspaceApiCloseFile.decodeDelimited = function decodeDelimited(reader) {
29096
+ if (!(reader instanceof $Reader))
29097
+ reader = new $Reader(reader);
29098
+ return this.decode(reader, reader.uint32());
29099
+ };
29100
+
29101
+ /**
29102
+ * Verifies a ReplspaceApiCloseFile message.
29103
+ * @function verify
29104
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29105
+ * @static
29106
+ * @param {Object.<string,*>} message Plain object to verify
29107
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
29108
+ */
29109
+ ReplspaceApiCloseFile.verify = function verify(message) {
29110
+ if (typeof message !== "object" || message === null)
29111
+ return "object expected";
29112
+ if (message.file != null && message.hasOwnProperty("file"))
29113
+ if (!$util.isString(message.file))
29114
+ return "file: string expected";
29115
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
29116
+ if (!$util.isString(message.nonce))
29117
+ return "nonce: string expected";
29118
+ return null;
29119
+ };
29120
+
29121
+ /**
29122
+ * Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
29123
+ * @function fromObject
29124
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29125
+ * @static
29126
+ * @param {Object.<string,*>} object Plain object
29127
+ * @returns {replit.goval.api.ReplspaceApiCloseFile} ReplspaceApiCloseFile
29128
+ */
29129
+ ReplspaceApiCloseFile.fromObject = function fromObject(object) {
29130
+ if (object instanceof $root.replit.goval.api.ReplspaceApiCloseFile)
29131
+ return object;
29132
+ var message = new $root.replit.goval.api.ReplspaceApiCloseFile();
29133
+ if (object.file != null)
29134
+ message.file = String(object.file);
29135
+ if (object.nonce != null)
29136
+ message.nonce = String(object.nonce);
29137
+ return message;
29138
+ };
29139
+
29140
+ /**
29141
+ * Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
29142
+ * @function toObject
29143
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29144
+ * @static
29145
+ * @param {replit.goval.api.ReplspaceApiCloseFile} message ReplspaceApiCloseFile
29146
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
29147
+ * @returns {Object.<string,*>} Plain object
29148
+ */
29149
+ ReplspaceApiCloseFile.toObject = function toObject(message, options) {
29150
+ if (!options)
29151
+ options = {};
29152
+ var object = {};
29153
+ if (options.defaults) {
29154
+ object.file = "";
29155
+ object.nonce = "";
29156
+ }
29157
+ if (message.file != null && message.hasOwnProperty("file"))
29158
+ object.file = message.file;
29159
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
29160
+ object.nonce = message.nonce;
29161
+ return object;
29162
+ };
29163
+
29164
+ /**
29165
+ * Converts this ReplspaceApiCloseFile to JSON.
29166
+ * @function toJSON
29167
+ * @memberof replit.goval.api.ReplspaceApiCloseFile
29168
+ * @instance
29169
+ * @returns {Object.<string,*>} JSON object
29170
+ */
29171
+ ReplspaceApiCloseFile.prototype.toJSON = function toJSON() {
29172
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29173
+ };
29174
+
29175
+ return ReplspaceApiCloseFile;
29176
+ })();
29177
+
28670
29178
  api.UpdateSessionTimestamp = (function() {
28671
29179
 
28672
29180
  /**
@@ -125,6 +125,8 @@ declare var npm$namespace$replit$goval$api: {|
125
125
  IRoster: Class<replit$goval$api$IRoster>,
126
126
  IOpenFile: Class<replit$goval$api$IOpenFile>,
127
127
  IFileOpened: Class<replit$goval$api$IFileOpened>,
128
+ IReplspaceApiOpenFile: Class<replit$goval$api$IReplspaceApiOpenFile>,
129
+ IReplspaceApiCloseFile: Class<replit$goval$api$IReplspaceApiCloseFile>,
128
130
  IUpdateSessionTimestamp: Class<replit$goval$api$IUpdateSessionTimestamp>,
129
131
  ISessionTimestampUpdated: Class<replit$goval$api$ISessionTimestampUpdated>,
130
132
  IFollowUser: Class<replit$goval$api$IFollowUser>,
@@ -321,6 +323,8 @@ declare var npm$namespace$replit$goval$api: {|
321
323
  Roster: typeof replit$goval$api$Roster,
322
324
  OpenFile: typeof replit$goval$api$OpenFile,
323
325
  FileOpened: typeof replit$goval$api$FileOpened,
326
+ ReplspaceApiOpenFile: typeof replit$goval$api$ReplspaceApiOpenFile,
327
+ ReplspaceApiCloseFile: typeof replit$goval$api$ReplspaceApiCloseFile,
324
328
  UpdateSessionTimestamp: typeof replit$goval$api$UpdateSessionTimestamp,
325
329
  SessionTimestampUpdated: typeof replit$goval$api$SessionTimestampUpdated,
326
330
  FollowUser: typeof replit$goval$api$FollowUser,
@@ -1522,6 +1526,22 @@ declare type replit$goval$api$ICommand = {|
1522
1526
  */
1523
1527
  userEvent?: replit$goval$api$UserEvent | replit$goval$api$IUserEvent | null,
1524
1528
 
1529
+ /**
1530
+ * Command replspaceApiOpenFile
1531
+ */
1532
+ replspaceApiOpenFile?:
1533
+ | replit$goval$api$ReplspaceApiOpenFile
1534
+ | replit$goval$api$IReplspaceApiOpenFile
1535
+ | null,
1536
+
1537
+ /**
1538
+ * Command replspaceApiCloseFile
1539
+ */
1540
+ replspaceApiCloseFile?:
1541
+ | replit$goval$api$ReplspaceApiCloseFile
1542
+ | replit$goval$api$IReplspaceApiCloseFile
1543
+ | null,
1544
+
1525
1545
  /**
1526
1546
  * Command ref
1527
1547
  */
@@ -2370,6 +2390,16 @@ declare class replit$goval$api$Command {
2370
2390
  */
2371
2391
  userEvent?: replit$goval$api$UserEvent | null;
2372
2392
 
2393
+ /**
2394
+ * Command replspaceApiOpenFile.
2395
+ */
2396
+ replspaceApiOpenFile?: replit$goval$api$ReplspaceApiOpenFile | null;
2397
+
2398
+ /**
2399
+ * Command replspaceApiCloseFile.
2400
+ */
2401
+ replspaceApiCloseFile?: replit$goval$api$ReplspaceApiCloseFile | null;
2402
+
2373
2403
  /**
2374
2404
  * Command ref.
2375
2405
  */
@@ -2548,7 +2578,9 @@ declare class replit$goval$api$Command {
2548
2578
  | "nixChannelLatestStableResponse"
2549
2579
  | "nixPackageSearchRequest"
2550
2580
  | "nixPackageSearchResponse"
2551
- | "userEvent";
2581
+ | "userEvent"
2582
+ | "replspaceApiOpenFile"
2583
+ | "replspaceApiCloseFile";
2552
2584
 
2553
2585
  /**
2554
2586
  * Creates a new Command instance using the specified properties.
@@ -16163,6 +16195,276 @@ declare class replit$goval$api$FileOpened {
16163
16195
  |};
16164
16196
  }
16165
16197
 
16198
+ /**
16199
+ * Properties of a ReplspaceApiOpenFile.
16200
+ */
16201
+ declare type replit$goval$api$IReplspaceApiOpenFile = {|
16202
+ /**
16203
+ * ReplspaceApiOpenFile file
16204
+ */
16205
+ file?: string | null,
16206
+
16207
+ /**
16208
+ * ReplspaceApiOpenFile waitForClose
16209
+ */
16210
+ waitForClose?: boolean | null,
16211
+
16212
+ /**
16213
+ * ReplspaceApiOpenFile nonce
16214
+ */
16215
+ nonce?: string | null,
16216
+ |};
16217
+
16218
+ /**
16219
+ * Represents a ReplspaceApiOpenFile.
16220
+ */
16221
+ declare class replit$goval$api$ReplspaceApiOpenFile {
16222
+ /**
16223
+ * Constructs a new ReplspaceApiOpenFile.
16224
+ * @param [properties] Properties to set
16225
+ */
16226
+ constructor(properties?: replit$goval$api$IReplspaceApiOpenFile): this;
16227
+
16228
+ /**
16229
+ * ReplspaceApiOpenFile file.
16230
+ */
16231
+ file: string;
16232
+
16233
+ /**
16234
+ * ReplspaceApiOpenFile waitForClose.
16235
+ */
16236
+ waitForClose: boolean;
16237
+
16238
+ /**
16239
+ * ReplspaceApiOpenFile nonce.
16240
+ */
16241
+ nonce: string;
16242
+
16243
+ /**
16244
+ * Creates a new ReplspaceApiOpenFile instance using the specified properties.
16245
+ * @param [properties] Properties to set
16246
+ * @returns ReplspaceApiOpenFile instance
16247
+ */
16248
+ static create(
16249
+ properties?: replit$goval$api$IReplspaceApiOpenFile
16250
+ ): replit$goval$api$ReplspaceApiOpenFile;
16251
+
16252
+ /**
16253
+ * [object Object],[object Object],[object Object]
16254
+ * @param message ReplspaceApiOpenFile message or plain object to encode
16255
+ * @param [writer] Writer to encode to
16256
+ * @returns Writer
16257
+ */
16258
+ static encode(
16259
+ message: replit$goval$api$ReplspaceApiOpenFile,
16260
+ writer?: $protobuf.Writer
16261
+ ): $protobuf.Writer;
16262
+
16263
+ /**
16264
+ * [object Object],[object Object],[object Object]
16265
+ * @param message ReplspaceApiOpenFile message or plain object to encode
16266
+ * @param [writer] Writer to encode to
16267
+ * @returns Writer
16268
+ */
16269
+ static encodeDelimited(
16270
+ message: replit$goval$api$ReplspaceApiOpenFile,
16271
+ writer?: $protobuf.Writer
16272
+ ): $protobuf.Writer;
16273
+
16274
+ /**
16275
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer.
16276
+ * @param reader Reader or buffer to decode from
16277
+ * @param [length] Message length if known beforehand
16278
+ * @returns ReplspaceApiOpenFile
16279
+ * @throws {Error} If the payload is not a reader or valid buffer
16280
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16281
+ */
16282
+ static decode(
16283
+ reader: $protobuf.Reader | Uint8Array,
16284
+ length?: number
16285
+ ): replit$goval$api$ReplspaceApiOpenFile;
16286
+
16287
+ /**
16288
+ * Decodes a ReplspaceApiOpenFile message from the specified reader or buffer, length delimited.
16289
+ * @param reader Reader or buffer to decode from
16290
+ * @returns ReplspaceApiOpenFile
16291
+ * @throws {Error} If the payload is not a reader or valid buffer
16292
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16293
+ */
16294
+ static decodeDelimited(
16295
+ reader: $protobuf.Reader | Uint8Array
16296
+ ): replit$goval$api$ReplspaceApiOpenFile;
16297
+
16298
+ /**
16299
+ * Verifies a ReplspaceApiOpenFile message.
16300
+ * @param message Plain object to verify
16301
+ * @returns `null` if valid, otherwise the reason why it is not
16302
+ */
16303
+ static verify(message: {|
16304
+ [k: string]: any,
16305
+ |}): string | null;
16306
+
16307
+ /**
16308
+ * Creates a ReplspaceApiOpenFile message from a plain object. Also converts values to their respective internal types.
16309
+ * @param object Plain object
16310
+ * @returns ReplspaceApiOpenFile
16311
+ */
16312
+ static fromObject(object: {|
16313
+ [k: string]: any,
16314
+ |}): replit$goval$api$ReplspaceApiOpenFile;
16315
+
16316
+ /**
16317
+ * Creates a plain object from a ReplspaceApiOpenFile message. Also converts values to other types if specified.
16318
+ * @param message ReplspaceApiOpenFile
16319
+ * @param [options] Conversion options
16320
+ * @returns Plain object
16321
+ */
16322
+ static toObject(
16323
+ message: replit$goval$api$ReplspaceApiOpenFile,
16324
+ options?: $protobuf.IConversionOptions
16325
+ ): {|
16326
+ [k: string]: any,
16327
+ |};
16328
+
16329
+ /**
16330
+ * Converts this ReplspaceApiOpenFile to JSON.
16331
+ * @returns JSON object
16332
+ */
16333
+ toJSON(): {|
16334
+ [k: string]: any,
16335
+ |};
16336
+ }
16337
+
16338
+ /**
16339
+ * Properties of a ReplspaceApiCloseFile.
16340
+ */
16341
+ declare type replit$goval$api$IReplspaceApiCloseFile = {|
16342
+ /**
16343
+ * ReplspaceApiCloseFile file
16344
+ */
16345
+ file?: string | null,
16346
+
16347
+ /**
16348
+ * ReplspaceApiCloseFile nonce
16349
+ */
16350
+ nonce?: string | null,
16351
+ |};
16352
+
16353
+ /**
16354
+ * Represents a ReplspaceApiCloseFile.
16355
+ */
16356
+ declare class replit$goval$api$ReplspaceApiCloseFile {
16357
+ /**
16358
+ * Constructs a new ReplspaceApiCloseFile.
16359
+ * @param [properties] Properties to set
16360
+ */
16361
+ constructor(properties?: replit$goval$api$IReplspaceApiCloseFile): this;
16362
+
16363
+ /**
16364
+ * ReplspaceApiCloseFile file.
16365
+ */
16366
+ file: string;
16367
+
16368
+ /**
16369
+ * ReplspaceApiCloseFile nonce.
16370
+ */
16371
+ nonce: string;
16372
+
16373
+ /**
16374
+ * Creates a new ReplspaceApiCloseFile instance using the specified properties.
16375
+ * @param [properties] Properties to set
16376
+ * @returns ReplspaceApiCloseFile instance
16377
+ */
16378
+ static create(
16379
+ properties?: replit$goval$api$IReplspaceApiCloseFile
16380
+ ): replit$goval$api$ReplspaceApiCloseFile;
16381
+
16382
+ /**
16383
+ * [object Object],[object Object],[object Object]
16384
+ * @param message ReplspaceApiCloseFile message or plain object to encode
16385
+ * @param [writer] Writer to encode to
16386
+ * @returns Writer
16387
+ */
16388
+ static encode(
16389
+ message: replit$goval$api$ReplspaceApiCloseFile,
16390
+ writer?: $protobuf.Writer
16391
+ ): $protobuf.Writer;
16392
+
16393
+ /**
16394
+ * [object Object],[object Object],[object Object]
16395
+ * @param message ReplspaceApiCloseFile message or plain object to encode
16396
+ * @param [writer] Writer to encode to
16397
+ * @returns Writer
16398
+ */
16399
+ static encodeDelimited(
16400
+ message: replit$goval$api$ReplspaceApiCloseFile,
16401
+ writer?: $protobuf.Writer
16402
+ ): $protobuf.Writer;
16403
+
16404
+ /**
16405
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer.
16406
+ * @param reader Reader or buffer to decode from
16407
+ * @param [length] Message length if known beforehand
16408
+ * @returns ReplspaceApiCloseFile
16409
+ * @throws {Error} If the payload is not a reader or valid buffer
16410
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16411
+ */
16412
+ static decode(
16413
+ reader: $protobuf.Reader | Uint8Array,
16414
+ length?: number
16415
+ ): replit$goval$api$ReplspaceApiCloseFile;
16416
+
16417
+ /**
16418
+ * Decodes a ReplspaceApiCloseFile message from the specified reader or buffer, length delimited.
16419
+ * @param reader Reader or buffer to decode from
16420
+ * @returns ReplspaceApiCloseFile
16421
+ * @throws {Error} If the payload is not a reader or valid buffer
16422
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16423
+ */
16424
+ static decodeDelimited(
16425
+ reader: $protobuf.Reader | Uint8Array
16426
+ ): replit$goval$api$ReplspaceApiCloseFile;
16427
+
16428
+ /**
16429
+ * Verifies a ReplspaceApiCloseFile message.
16430
+ * @param message Plain object to verify
16431
+ * @returns `null` if valid, otherwise the reason why it is not
16432
+ */
16433
+ static verify(message: {|
16434
+ [k: string]: any,
16435
+ |}): string | null;
16436
+
16437
+ /**
16438
+ * Creates a ReplspaceApiCloseFile message from a plain object. Also converts values to their respective internal types.
16439
+ * @param object Plain object
16440
+ * @returns ReplspaceApiCloseFile
16441
+ */
16442
+ static fromObject(object: {|
16443
+ [k: string]: any,
16444
+ |}): replit$goval$api$ReplspaceApiCloseFile;
16445
+
16446
+ /**
16447
+ * Creates a plain object from a ReplspaceApiCloseFile message. Also converts values to other types if specified.
16448
+ * @param message ReplspaceApiCloseFile
16449
+ * @param [options] Conversion options
16450
+ * @returns Plain object
16451
+ */
16452
+ static toObject(
16453
+ message: replit$goval$api$ReplspaceApiCloseFile,
16454
+ options?: $protobuf.IConversionOptions
16455
+ ): {|
16456
+ [k: string]: any,
16457
+ |};
16458
+
16459
+ /**
16460
+ * Converts this ReplspaceApiCloseFile to JSON.
16461
+ * @returns JSON object
16462
+ */
16463
+ toJSON(): {|
16464
+ [k: string]: any,
16465
+ |};
16466
+ }
16467
+
16166
16468
  /**
16167
16469
  * Properties of an UpdateSessionTimestamp.
16168
16470
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",