@replit/protocol 0.3.26 → 0.3.27

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for index
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.14.1
4
+ * Flowgen v1.14.0
5
5
  * @flow
6
6
  */
7
7
 
package/main/index.d.ts CHANGED
@@ -78,6 +78,9 @@ export namespace replit {
78
78
  /** Command log */
79
79
  log?: (string|null);
80
80
 
81
+ /** Command inputClose */
82
+ inputClose?: (google.protobuf.Empty|google.protobuf.IEmpty|null);
83
+
81
84
  /** Command outputBlockStartEvent */
82
85
  outputBlockStartEvent?: (replit.goval.api.OutputBlockStartEvent|replit.goval.api.IOutputBlockStartEvent|null);
83
86
 
@@ -652,6 +655,9 @@ export namespace replit {
652
655
  /** Command log. */
653
656
  public log?: (string|null);
654
657
 
658
+ /** Command inputClose. */
659
+ public inputClose?: (google.protobuf.Empty|null);
660
+
655
661
  /** Command outputBlockStartEvent. */
656
662
  public outputBlockStartEvent?: (replit.goval.api.OutputBlockStartEvent|null);
657
663
 
@@ -1151,7 +1157,7 @@ export namespace replit {
1151
1157
  public traceInfo: { [k: string]: string };
1152
1158
 
1153
1159
  /** Command body. */
1154
- public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"packageInstallResponse"|"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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse");
1160
+ public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"packageInstallResponse"|"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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse");
1155
1161
 
1156
1162
  /**
1157
1163
  * Creates a new Command instance using the specified properties.
@@ -20865,6 +20871,9 @@ export namespace replit {
20865
20871
 
20866
20872
  /** NixModule referencedId */
20867
20873
  referencedId?: (string|null);
20874
+
20875
+ /** NixModule formatters */
20876
+ formatters?: ((replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption)[]|null);
20868
20877
  }
20869
20878
 
20870
20879
  /** Represents a NixModule. */
@@ -20912,6 +20921,9 @@ export namespace replit {
20912
20921
  /** NixModule referencedId. */
20913
20922
  public referencedId: string;
20914
20923
 
20924
+ /** NixModule formatters. */
20925
+ public formatters: replit.goval.api.FormatterOption[];
20926
+
20915
20927
  /**
20916
20928
  * Creates a new NixModule instance using the specified properties.
20917
20929
  * @param [properties] Properties to set
@@ -22660,6 +22672,9 @@ export namespace replit {
22660
22672
 
22661
22673
  /** FormatterOption startCommand */
22662
22674
  startCommand?: (replit.goval.api.Exec|replit.goval.api.IExec|null);
22675
+
22676
+ /** FormatterOption fileTypeAttrs */
22677
+ fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null);
22663
22678
  }
22664
22679
 
22665
22680
  /** Represents a FormatterOption. */
@@ -22680,6 +22695,9 @@ export namespace replit {
22680
22695
  /** FormatterOption startCommand. */
22681
22696
  public startCommand?: (replit.goval.api.Exec|null);
22682
22697
 
22698
+ /** FormatterOption fileTypeAttrs. */
22699
+ public fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|null);
22700
+
22683
22701
  /**
22684
22702
  * Creates a new FormatterOption instance using the specified properties.
22685
22703
  * @param [properties] Properties to set
@@ -28933,6 +28951,97 @@ export namespace google {
28933
28951
  public static getTypeUrl(typeUrlPrefix?: string): string;
28934
28952
  }
28935
28953
 
28954
+ /** Properties of an Empty. */
28955
+ interface IEmpty {
28956
+ }
28957
+
28958
+ /** Represents an Empty. */
28959
+ class Empty {
28960
+
28961
+ /**
28962
+ * Constructs a new Empty.
28963
+ * @param [properties] Properties to set
28964
+ */
28965
+ private constructor(properties?: google.protobuf.IEmpty);
28966
+
28967
+ /**
28968
+ * Creates a new Empty instance using the specified properties.
28969
+ * @param [properties] Properties to set
28970
+ * @returns Empty instance
28971
+ */
28972
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
28973
+
28974
+ /**
28975
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
28976
+ * @param message Empty message or plain object to encode
28977
+ * @param [writer] Writer to encode to
28978
+ * @returns Writer
28979
+ */
28980
+ public static encode(message: google.protobuf.Empty, writer?: $protobuf.Writer): $protobuf.Writer;
28981
+
28982
+ /**
28983
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
28984
+ * @param message Empty message or plain object to encode
28985
+ * @param [writer] Writer to encode to
28986
+ * @returns Writer
28987
+ */
28988
+ public static encodeDelimited(message: google.protobuf.Empty, writer?: $protobuf.Writer): $protobuf.Writer;
28989
+
28990
+ /**
28991
+ * Decodes an Empty message from the specified reader or buffer.
28992
+ * @param reader Reader or buffer to decode from
28993
+ * @param [length] Message length if known beforehand
28994
+ * @returns Empty
28995
+ * @throws {Error} If the payload is not a reader or valid buffer
28996
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28997
+ */
28998
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
28999
+
29000
+ /**
29001
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
29002
+ * @param reader Reader or buffer to decode from
29003
+ * @returns Empty
29004
+ * @throws {Error} If the payload is not a reader or valid buffer
29005
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29006
+ */
29007
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
29008
+
29009
+ /**
29010
+ * Verifies an Empty message.
29011
+ * @param message Plain object to verify
29012
+ * @returns `null` if valid, otherwise the reason why it is not
29013
+ */
29014
+ public static verify(message: { [k: string]: any }): (string|null);
29015
+
29016
+ /**
29017
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
29018
+ * @param object Plain object
29019
+ * @returns Empty
29020
+ */
29021
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
29022
+
29023
+ /**
29024
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
29025
+ * @param message Empty
29026
+ * @param [options] Conversion options
29027
+ * @returns Plain object
29028
+ */
29029
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
29030
+
29031
+ /**
29032
+ * Converts this Empty to JSON.
29033
+ * @returns JSON object
29034
+ */
29035
+ public toJSON(): { [k: string]: any };
29036
+
29037
+ /**
29038
+ * Gets the default type url for Empty
29039
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
29040
+ * @returns The default type url
29041
+ */
29042
+ public static getTypeUrl(typeUrlPrefix?: string): string;
29043
+ }
29044
+
28936
29045
  /** Properties of a FieldMask. */
28937
29046
  interface IFieldMask {
28938
29047
 
package/main/index.js CHANGED
@@ -71,6 +71,7 @@
71
71
  * @property {string|null} [error] Command error
72
72
  * @property {string|null} [stderr] Command stderr
73
73
  * @property {string|null} [log] Command log
74
+ * @property {google.protobuf.Empty|google.protobuf.IEmpty|null} [inputClose] Command inputClose
74
75
  * @property {replit.goval.api.OutputBlockStartEvent|replit.goval.api.IOutputBlockStartEvent|null} [outputBlockStartEvent] Command outputBlockStartEvent
75
76
  * @property {replit.goval.api.OutputBlockEndEvent|replit.goval.api.IOutputBlockEndEvent|null} [outputBlockEndEvent] Command outputBlockEndEvent
76
77
  * @property {number|null} [exitCodeEvent] Command exitCodeEvent
@@ -430,6 +431,14 @@
430
431
  */
431
432
  Command.prototype.log = null;
432
433
 
434
+ /**
435
+ * Command inputClose.
436
+ * @member {google.protobuf.Empty|null|undefined} inputClose
437
+ * @memberof replit.goval.api.Command
438
+ * @instance
439
+ */
440
+ Command.prototype.inputClose = null;
441
+
433
442
  /**
434
443
  * Command outputBlockStartEvent.
435
444
  * @member {replit.goval.api.OutputBlockStartEvent|null|undefined} outputBlockStartEvent
@@ -1763,12 +1772,12 @@
1763
1772
 
1764
1773
  /**
1765
1774
  * Command body.
1766
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"packageInstallResponse"|"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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
1775
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"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"|"packageInstallResponse"|"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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
1767
1776
  * @memberof replit.goval.api.Command
1768
1777
  * @instance
1769
1778
  */
1770
1779
  Object.defineProperty(Command.prototype, "body", {
1771
- get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "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", "packageInstallResponse", "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", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
1780
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "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", "packageInstallResponse", "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", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
1772
1781
  set: $util.oneOfSetter($oneOfFields)
1773
1782
  });
1774
1783
 
@@ -1876,6 +1885,8 @@
1876
1885
  writer.uint32(/* id 47, wireType 2 =*/378).string(message.log);
1877
1886
  if (message.portClose != null && Object.hasOwnProperty.call(message, "portClose"))
1878
1887
  $root.replit.goval.api.PortClose.encode(message.portClose, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim();
1888
+ if (message.inputClose != null && Object.hasOwnProperty.call(message, "inputClose"))
1889
+ $root.google.protobuf.Empty.encode(message.inputClose, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim();
1879
1890
  if (message.runContainedTest != null && Object.hasOwnProperty.call(message, "runContainedTest"))
1880
1891
  $root.replit.goval.api.ContainedTest.encode(message.runContainedTest, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim();
1881
1892
  if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult"))
@@ -2295,6 +2306,10 @@
2295
2306
  message.log = reader.string();
2296
2307
  break;
2297
2308
  }
2309
+ case 49: {
2310
+ message.inputClose = $root.google.protobuf.Empty.decode(reader, reader.uint32());
2311
+ break;
2312
+ }
2298
2313
  case 443: {
2299
2314
  message.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.decode(reader, reader.uint32());
2300
2315
  break;
@@ -3197,6 +3212,16 @@
3197
3212
  if (!$util.isString(message.log))
3198
3213
  return "log: string expected";
3199
3214
  }
3215
+ if (message.inputClose != null && message.hasOwnProperty("inputClose")) {
3216
+ if (properties.body === 1)
3217
+ return "body: multiple values";
3218
+ properties.body = 1;
3219
+ {
3220
+ var error = $root.google.protobuf.Empty.verify(message.inputClose);
3221
+ if (error)
3222
+ return "inputClose." + error;
3223
+ }
3224
+ }
3200
3225
  if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
3201
3226
  if (properties.body === 1)
3202
3227
  return "body: multiple values";
@@ -4933,6 +4958,11 @@
4933
4958
  message.stderr = String(object.stderr);
4934
4959
  if (object.log != null)
4935
4960
  message.log = String(object.log);
4961
+ if (object.inputClose != null) {
4962
+ if (typeof object.inputClose !== "object")
4963
+ throw TypeError(".replit.goval.api.Command.inputClose: object expected");
4964
+ message.inputClose = $root.google.protobuf.Empty.fromObject(object.inputClose);
4965
+ }
4936
4966
  if (object.outputBlockStartEvent != null) {
4937
4967
  if (typeof object.outputBlockStartEvent !== "object")
4938
4968
  throw TypeError(".replit.goval.api.Command.outputBlockStartEvent: object expected");
@@ -5975,6 +6005,11 @@
5975
6005
  if (options.oneofs)
5976
6006
  object.body = "portClose";
5977
6007
  }
6008
+ if (message.inputClose != null && message.hasOwnProperty("inputClose")) {
6009
+ object.inputClose = $root.google.protobuf.Empty.toObject(message.inputClose, options);
6010
+ if (options.oneofs)
6011
+ object.body = "inputClose";
6012
+ }
5978
6013
  if (message.runContainedTest != null && message.hasOwnProperty("runContainedTest")) {
5979
6014
  object.runContainedTest = $root.replit.goval.api.ContainedTest.toObject(message.runContainedTest, options);
5980
6015
  if (options.oneofs)
@@ -52363,6 +52398,7 @@
52363
52398
  * @property {Array.<string>|null} [resolutionPath] NixModule resolutionPath
52364
52399
  * @property {string|null} [resolvedId] NixModule resolvedId
52365
52400
  * @property {string|null} [referencedId] NixModule referencedId
52401
+ * @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] NixModule formatters
52366
52402
  */
52367
52403
 
52368
52404
  /**
@@ -52378,6 +52414,7 @@
52378
52414
  this.packagers = [];
52379
52415
  this.languageServers = [];
52380
52416
  this.resolutionPath = [];
52417
+ this.formatters = [];
52381
52418
  if (properties)
52382
52419
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52383
52420
  if (properties[keys[i]] != null)
@@ -52480,6 +52517,14 @@
52480
52517
  */
52481
52518
  NixModule.prototype.referencedId = "";
52482
52519
 
52520
+ /**
52521
+ * NixModule formatters.
52522
+ * @member {Array.<replit.goval.api.FormatterOption>} formatters
52523
+ * @memberof replit.goval.api.NixModule
52524
+ * @instance
52525
+ */
52526
+ NixModule.prototype.formatters = $util.emptyArray;
52527
+
52483
52528
  /**
52484
52529
  * Creates a new NixModule instance using the specified properties.
52485
52530
  * @function create
@@ -52533,6 +52578,9 @@
52533
52578
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.resolvedId);
52534
52579
  if (message.referencedId != null && Object.hasOwnProperty.call(message, "referencedId"))
52535
52580
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.referencedId);
52581
+ if (message.formatters != null && message.formatters.length)
52582
+ for (var i = 0; i < message.formatters.length; ++i)
52583
+ $root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
52536
52584
  return writer;
52537
52585
  };
52538
52586
 
@@ -52625,6 +52673,12 @@
52625
52673
  message.referencedId = reader.string();
52626
52674
  break;
52627
52675
  }
52676
+ case 13: {
52677
+ if (!(message.formatters && message.formatters.length))
52678
+ message.formatters = [];
52679
+ message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
52680
+ break;
52681
+ }
52628
52682
  default:
52629
52683
  reader.skipType(tag & 7);
52630
52684
  break;
@@ -52724,6 +52778,15 @@
52724
52778
  if (message.referencedId != null && message.hasOwnProperty("referencedId"))
52725
52779
  if (!$util.isString(message.referencedId))
52726
52780
  return "referencedId: string expected";
52781
+ if (message.formatters != null && message.hasOwnProperty("formatters")) {
52782
+ if (!Array.isArray(message.formatters))
52783
+ return "formatters: array expected";
52784
+ for (var i = 0; i < message.formatters.length; ++i) {
52785
+ var error = $root.replit.goval.api.FormatterOption.verify(message.formatters[i]);
52786
+ if (error)
52787
+ return "formatters." + error;
52788
+ }
52789
+ }
52727
52790
  return null;
52728
52791
  };
52729
52792
 
@@ -52800,6 +52863,16 @@
52800
52863
  message.resolvedId = String(object.resolvedId);
52801
52864
  if (object.referencedId != null)
52802
52865
  message.referencedId = String(object.referencedId);
52866
+ if (object.formatters) {
52867
+ if (!Array.isArray(object.formatters))
52868
+ throw TypeError(".replit.goval.api.NixModule.formatters: array expected");
52869
+ message.formatters = [];
52870
+ for (var i = 0; i < object.formatters.length; ++i) {
52871
+ if (typeof object.formatters[i] !== "object")
52872
+ throw TypeError(".replit.goval.api.NixModule.formatters: object expected");
52873
+ message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
52874
+ }
52875
+ }
52803
52876
  return message;
52804
52877
  };
52805
52878
 
@@ -52822,6 +52895,7 @@
52822
52895
  object.packagers = [];
52823
52896
  object.languageServers = [];
52824
52897
  object.resolutionPath = [];
52898
+ object.formatters = [];
52825
52899
  }
52826
52900
  if (options.defaults) {
52827
52901
  object.id = "";
@@ -52871,6 +52945,11 @@
52871
52945
  object.resolvedId = message.resolvedId;
52872
52946
  if (message.referencedId != null && message.hasOwnProperty("referencedId"))
52873
52947
  object.referencedId = message.referencedId;
52948
+ if (message.formatters && message.formatters.length) {
52949
+ object.formatters = [];
52950
+ for (var j = 0; j < message.formatters.length; ++j)
52951
+ object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
52952
+ }
52874
52953
  return object;
52875
52954
  };
52876
52955
 
@@ -57047,6 +57126,7 @@
57047
57126
  * @property {string|null} [id] FormatterOption id
57048
57127
  * @property {string|null} [name] FormatterOption name
57049
57128
  * @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [startCommand] FormatterOption startCommand
57129
+ * @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] FormatterOption fileTypeAttrs
57050
57130
  */
57051
57131
 
57052
57132
  /**
@@ -57087,6 +57167,14 @@
57087
57167
  */
57088
57168
  FormatterOption.prototype.startCommand = null;
57089
57169
 
57170
+ /**
57171
+ * FormatterOption fileTypeAttrs.
57172
+ * @member {replit.goval.api.FileTypeAttrs|null|undefined} fileTypeAttrs
57173
+ * @memberof replit.goval.api.FormatterOption
57174
+ * @instance
57175
+ */
57176
+ FormatterOption.prototype.fileTypeAttrs = null;
57177
+
57090
57178
  /**
57091
57179
  * Creates a new FormatterOption instance using the specified properties.
57092
57180
  * @function create
@@ -57117,6 +57205,8 @@
57117
57205
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
57118
57206
  if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
57119
57207
  $root.replit.goval.api.Exec.encode(message.startCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
57208
+ if (message.fileTypeAttrs != null && Object.hasOwnProperty.call(message, "fileTypeAttrs"))
57209
+ $root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
57120
57210
  return writer;
57121
57211
  };
57122
57212
 
@@ -57163,6 +57253,10 @@
57163
57253
  message.startCommand = $root.replit.goval.api.Exec.decode(reader, reader.uint32());
57164
57254
  break;
57165
57255
  }
57256
+ case 4: {
57257
+ message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.decode(reader, reader.uint32());
57258
+ break;
57259
+ }
57166
57260
  default:
57167
57261
  reader.skipType(tag & 7);
57168
57262
  break;
@@ -57209,6 +57303,11 @@
57209
57303
  if (error)
57210
57304
  return "startCommand." + error;
57211
57305
  }
57306
+ if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs")) {
57307
+ var error = $root.replit.goval.api.FileTypeAttrs.verify(message.fileTypeAttrs);
57308
+ if (error)
57309
+ return "fileTypeAttrs." + error;
57310
+ }
57212
57311
  return null;
57213
57312
  };
57214
57313
 
@@ -57233,6 +57332,11 @@
57233
57332
  throw TypeError(".replit.goval.api.FormatterOption.startCommand: object expected");
57234
57333
  message.startCommand = $root.replit.goval.api.Exec.fromObject(object.startCommand);
57235
57334
  }
57335
+ if (object.fileTypeAttrs != null) {
57336
+ if (typeof object.fileTypeAttrs !== "object")
57337
+ throw TypeError(".replit.goval.api.FormatterOption.fileTypeAttrs: object expected");
57338
+ message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.fromObject(object.fileTypeAttrs);
57339
+ }
57236
57340
  return message;
57237
57341
  };
57238
57342
 
@@ -57253,6 +57357,7 @@
57253
57357
  object.id = "";
57254
57358
  object.name = "";
57255
57359
  object.startCommand = null;
57360
+ object.fileTypeAttrs = null;
57256
57361
  }
57257
57362
  if (message.id != null && message.hasOwnProperty("id"))
57258
57363
  object.id = message.id;
@@ -57260,6 +57365,8 @@
57260
57365
  object.name = message.name;
57261
57366
  if (message.startCommand != null && message.hasOwnProperty("startCommand"))
57262
57367
  object.startCommand = $root.replit.goval.api.Exec.toObject(message.startCommand, options);
57368
+ if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs"))
57369
+ object.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.toObject(message.fileTypeAttrs, options);
57263
57370
  return object;
57264
57371
  };
57265
57372
 
@@ -72972,6 +73079,180 @@
72972
73079
  return ListValue;
72973
73080
  })();
72974
73081
 
73082
+ protobuf.Empty = (function() {
73083
+
73084
+ /**
73085
+ * Properties of an Empty.
73086
+ * @memberof google.protobuf
73087
+ * @interface IEmpty
73088
+ */
73089
+
73090
+ /**
73091
+ * Constructs a new Empty.
73092
+ * @memberof google.protobuf
73093
+ * @classdesc Represents an Empty.
73094
+ * @constructor
73095
+ * @param {google.protobuf.IEmpty=} [properties] Properties to set
73096
+ */
73097
+ function Empty(properties) {
73098
+ if (properties)
73099
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
73100
+ if (properties[keys[i]] != null)
73101
+ this[keys[i]] = properties[keys[i]];
73102
+ }
73103
+
73104
+ /**
73105
+ * Creates a new Empty instance using the specified properties.
73106
+ * @function create
73107
+ * @memberof google.protobuf.Empty
73108
+ * @static
73109
+ * @param {google.protobuf.IEmpty=} [properties] Properties to set
73110
+ * @returns {google.protobuf.Empty} Empty instance
73111
+ */
73112
+ Empty.create = function create(properties) {
73113
+ return Empty.fromObject(properties);
73114
+ };
73115
+
73116
+ /**
73117
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
73118
+ * @function encode
73119
+ * @memberof google.protobuf.Empty
73120
+ * @static
73121
+ * @param {google.protobuf.Empty} message Empty message or plain object to encode
73122
+ * @param {$protobuf.Writer} [writer] Writer to encode to
73123
+ * @returns {$protobuf.Writer} Writer
73124
+ */
73125
+ Empty.encode = function encode(message, writer) {
73126
+ if (!writer)
73127
+ writer = $Writer.create();
73128
+ return writer;
73129
+ };
73130
+
73131
+ /**
73132
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
73133
+ * @function encodeDelimited
73134
+ * @memberof google.protobuf.Empty
73135
+ * @static
73136
+ * @param {google.protobuf.Empty} message Empty message or plain object to encode
73137
+ * @param {$protobuf.Writer} [writer] Writer to encode to
73138
+ * @returns {$protobuf.Writer} Writer
73139
+ */
73140
+ Empty.encodeDelimited = function encodeDelimited(message, writer) {
73141
+ return this.encode(message, writer).ldelim();
73142
+ };
73143
+
73144
+ /**
73145
+ * Decodes an Empty message from the specified reader or buffer.
73146
+ * @function decode
73147
+ * @memberof google.protobuf.Empty
73148
+ * @static
73149
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73150
+ * @param {number} [length] Message length if known beforehand
73151
+ * @returns {google.protobuf.Empty} Empty
73152
+ * @throws {Error} If the payload is not a reader or valid buffer
73153
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73154
+ */
73155
+ Empty.decode = function decode(reader, length) {
73156
+ if (!(reader instanceof $Reader))
73157
+ reader = $Reader.create(reader);
73158
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty();
73159
+ while (reader.pos < end) {
73160
+ var tag = reader.uint32();
73161
+ switch (tag >>> 3) {
73162
+ default:
73163
+ reader.skipType(tag & 7);
73164
+ break;
73165
+ }
73166
+ }
73167
+ return message;
73168
+ };
73169
+
73170
+ /**
73171
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
73172
+ * @function decodeDelimited
73173
+ * @memberof google.protobuf.Empty
73174
+ * @static
73175
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73176
+ * @returns {google.protobuf.Empty} Empty
73177
+ * @throws {Error} If the payload is not a reader or valid buffer
73178
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
73179
+ */
73180
+ Empty.decodeDelimited = function decodeDelimited(reader) {
73181
+ if (!(reader instanceof $Reader))
73182
+ reader = new $Reader(reader);
73183
+ return this.decode(reader, reader.uint32());
73184
+ };
73185
+
73186
+ /**
73187
+ * Verifies an Empty message.
73188
+ * @function verify
73189
+ * @memberof google.protobuf.Empty
73190
+ * @static
73191
+ * @param {Object.<string,*>} message Plain object to verify
73192
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
73193
+ */
73194
+ Empty.verify = function verify(message) {
73195
+ if (typeof message !== "object" || message === null)
73196
+ return "object expected";
73197
+ return null;
73198
+ };
73199
+
73200
+ /**
73201
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
73202
+ * @function fromObject
73203
+ * @memberof google.protobuf.Empty
73204
+ * @static
73205
+ * @param {Object.<string,*>} object Plain object
73206
+ * @returns {google.protobuf.Empty} Empty
73207
+ */
73208
+ Empty.fromObject = function fromObject(object) {
73209
+ if (object instanceof $root.google.protobuf.Empty)
73210
+ return object;
73211
+ return new $root.google.protobuf.Empty();
73212
+ };
73213
+
73214
+ /**
73215
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
73216
+ * @function toObject
73217
+ * @memberof google.protobuf.Empty
73218
+ * @static
73219
+ * @param {google.protobuf.Empty} message Empty
73220
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
73221
+ * @returns {Object.<string,*>} Plain object
73222
+ */
73223
+ Empty.toObject = function toObject() {
73224
+ return {};
73225
+ };
73226
+
73227
+ /**
73228
+ * Converts this Empty to JSON.
73229
+ * @function toJSON
73230
+ * @memberof google.protobuf.Empty
73231
+ * @instance
73232
+ * @returns {Object.<string,*>} JSON object
73233
+ */
73234
+ Empty.prototype.toJSON = function toJSON() {
73235
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
73236
+ };
73237
+
73238
+ /**
73239
+ * Gets the default type url for Empty
73240
+ * @function getTypeUrl
73241
+ * @memberof google.protobuf.Empty
73242
+ * @static
73243
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
73244
+ * @returns {string} The default type url
73245
+ */
73246
+ Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
73247
+ if (typeUrlPrefix === undefined) {
73248
+ typeUrlPrefix = "type.googleapis.com";
73249
+ }
73250
+ return typeUrlPrefix + "/google.protobuf.Empty";
73251
+ };
73252
+
73253
+ return Empty;
73254
+ })();
73255
+
72975
73256
  protobuf.FieldMask = (function() {
72976
73257
 
72977
73258
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for index
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.14.1
4
+ * Flowgen v1.14.0
5
5
  * @flow
6
6
  */
7
7
 
@@ -616,6 +616,11 @@ declare type replit$goval$api$ICommand = {|
616
616
  */
617
617
  log?: string | null,
618
618
 
619
+ /**
620
+ * Command inputClose
621
+ */
622
+ inputClose?: google$protobuf$Empty | google$protobuf$IEmpty | null,
623
+
619
624
  /**
620
625
  * Command outputBlockStartEvent
621
626
  */
@@ -1884,6 +1889,11 @@ declare class replit$goval$api$Command {
1884
1889
  */
1885
1890
  log?: string | null;
1886
1891
 
1892
+ /**
1893
+ * Command inputClose.
1894
+ */
1895
+ inputClose?: google$protobuf$Empty | null;
1896
+
1887
1897
  /**
1888
1898
  * Command outputBlockStartEvent.
1889
1899
  */
@@ -2740,6 +2750,7 @@ declare class replit$goval$api$Command {
2740
2750
  | "error"
2741
2751
  | "stderr"
2742
2752
  | "log"
2753
+ | "inputClose"
2743
2754
  | "outputBlockStartEvent"
2744
2755
  | "outputBlockEndEvent"
2745
2756
  | "exitCodeEvent"
@@ -29297,6 +29308,13 @@ declare type replit$goval$api$INixModule = {|
29297
29308
  * NixModule referencedId
29298
29309
  */
29299
29310
  referencedId?: string | null,
29311
+
29312
+ /**
29313
+ * NixModule formatters
29314
+ */
29315
+ formatters?:
29316
+ | (replit$goval$api$FormatterOption | replit$goval$api$IFormatterOption)[]
29317
+ | null,
29300
29318
  |};
29301
29319
 
29302
29320
  /**
@@ -29369,6 +29387,11 @@ declare class replit$goval$api$NixModule {
29369
29387
  */
29370
29388
  referencedId: string;
29371
29389
 
29390
+ /**
29391
+ * NixModule formatters.
29392
+ */
29393
+ formatters: replit$goval$api$FormatterOption[];
29394
+
29372
29395
  /**
29373
29396
  * Creates a new NixModule instance using the specified properties.
29374
29397
  * @param [properties] Properties to set
@@ -31784,6 +31807,14 @@ declare type replit$goval$api$IFormatterOption = {|
31784
31807
  * FormatterOption startCommand
31785
31808
  */
31786
31809
  startCommand?: replit$goval$api$Exec | replit$goval$api$IExec | null,
31810
+
31811
+ /**
31812
+ * FormatterOption fileTypeAttrs
31813
+ */
31814
+ fileTypeAttrs?:
31815
+ | replit$goval$api$FileTypeAttrs
31816
+ | replit$goval$api$IFileTypeAttrs
31817
+ | null,
31787
31818
  |};
31788
31819
 
31789
31820
  /**
@@ -31811,6 +31842,11 @@ declare class replit$goval$api$FormatterOption {
31811
31842
  */
31812
31843
  startCommand?: replit$goval$api$Exec | null;
31813
31844
 
31845
+ /**
31846
+ * FormatterOption fileTypeAttrs.
31847
+ */
31848
+ fileTypeAttrs?: replit$goval$api$FileTypeAttrs | null;
31849
+
31814
31850
  /**
31815
31851
  * Creates a new FormatterOption instance using the specified properties.
31816
31852
  * @param [properties] Properties to set
@@ -39932,11 +39968,13 @@ declare var npm$namespace$google$protobuf: {|
39932
39968
  IStruct: Class<google$protobuf$IStruct>,
39933
39969
  IValue: Class<google$protobuf$IValue>,
39934
39970
  IListValue: Class<google$protobuf$IListValue>,
39971
+ IEmpty: Class<google$protobuf$IEmpty>,
39935
39972
  IFieldMask: Class<google$protobuf$IFieldMask>,
39936
39973
  Timestamp: typeof google$protobuf$Timestamp,
39937
39974
  Struct: typeof google$protobuf$Struct,
39938
39975
  Value: typeof google$protobuf$Value,
39939
39976
  ListValue: typeof google$protobuf$ListValue,
39977
+ Empty: typeof google$protobuf$Empty,
39940
39978
  FieldMask: typeof google$protobuf$FieldMask,
39941
39979
  |};
39942
39980
 
@@ -40527,6 +40565,121 @@ declare class google$protobuf$ListValue {
40527
40565
  static getTypeUrl(typeUrlPrefix?: string): string;
40528
40566
  }
40529
40567
 
40568
+ /**
40569
+ * Properties of an Empty.
40570
+ */
40571
+ declare type google$protobuf$IEmpty = {||};
40572
+
40573
+ /**
40574
+ * Represents an Empty.
40575
+ */
40576
+ declare class google$protobuf$Empty {
40577
+ /**
40578
+ * Constructs a new Empty.
40579
+ * @param [properties] Properties to set
40580
+ */
40581
+ constructor(properties?: google$protobuf$IEmpty): this;
40582
+
40583
+ /**
40584
+ * Creates a new Empty instance using the specified properties.
40585
+ * @param [properties] Properties to set
40586
+ * @returns Empty instance
40587
+ */
40588
+ static create(properties?: google$protobuf$IEmpty): google$protobuf$Empty;
40589
+
40590
+ /**
40591
+ * [object Object],[object Object],[object Object]
40592
+ * @param message Empty message or plain object to encode
40593
+ * @param [writer] Writer to encode to
40594
+ * @returns Writer
40595
+ */
40596
+ static encode(
40597
+ message: google$protobuf$Empty,
40598
+ writer?: $protobuf.Writer
40599
+ ): $protobuf.Writer;
40600
+
40601
+ /**
40602
+ * [object Object],[object Object],[object Object]
40603
+ * @param message Empty message or plain object to encode
40604
+ * @param [writer] Writer to encode to
40605
+ * @returns Writer
40606
+ */
40607
+ static encodeDelimited(
40608
+ message: google$protobuf$Empty,
40609
+ writer?: $protobuf.Writer
40610
+ ): $protobuf.Writer;
40611
+
40612
+ /**
40613
+ * Decodes an Empty message from the specified reader or buffer.
40614
+ * @param reader Reader or buffer to decode from
40615
+ * @param [length] Message length if known beforehand
40616
+ * @returns Empty
40617
+ * @throws {Error} If the payload is not a reader or valid buffer
40618
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40619
+ */
40620
+ static decode(
40621
+ reader: $protobuf.Reader | Uint8Array,
40622
+ length?: number
40623
+ ): google$protobuf$Empty;
40624
+
40625
+ /**
40626
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
40627
+ * @param reader Reader or buffer to decode from
40628
+ * @returns Empty
40629
+ * @throws {Error} If the payload is not a reader or valid buffer
40630
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40631
+ */
40632
+ static decodeDelimited(
40633
+ reader: $protobuf.Reader | Uint8Array
40634
+ ): google$protobuf$Empty;
40635
+
40636
+ /**
40637
+ * Verifies an Empty message.
40638
+ * @param message Plain object to verify
40639
+ * @returns `null` if valid, otherwise the reason why it is not
40640
+ */
40641
+ static verify(message: {|
40642
+ [k: string]: any,
40643
+ |}): string | null;
40644
+
40645
+ /**
40646
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
40647
+ * @param object Plain object
40648
+ * @returns Empty
40649
+ */
40650
+ static fromObject(object: {|
40651
+ [k: string]: any,
40652
+ |}): google$protobuf$Empty;
40653
+
40654
+ /**
40655
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
40656
+ * @param message Empty
40657
+ * @param [options] Conversion options
40658
+ * @returns Plain object
40659
+ */
40660
+ static toObject(
40661
+ message: google$protobuf$Empty,
40662
+ options?: $protobuf.IConversionOptions
40663
+ ): {|
40664
+ [k: string]: any,
40665
+ |};
40666
+
40667
+ /**
40668
+ * Converts this Empty to JSON.
40669
+ * @returns JSON object
40670
+ */
40671
+ toJSON(): {|
40672
+ [k: string]: any,
40673
+ |};
40674
+
40675
+ /**
40676
+ * Gets the default type url for Empty
40677
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
40678
+ * @returns The default type url
40679
+ */
40680
+ static getTypeUrl(typeUrlPrefix?: string): string;
40681
+ }
40682
+
40530
40683
  /**
40531
40684
  * Properties of a FieldMask.
40532
40685
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",