@replit/protocol 0.3.15 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.d.ts CHANGED
@@ -326,6 +326,9 @@ export namespace replit {
326
326
  /** Command packageInstall */
327
327
  packageInstall?: (replit.goval.api.PackageInstall|replit.goval.api.IPackageInstall|null);
328
328
 
329
+ /** Command packageInstallResponse */
330
+ packageInstallResponse?: (replit.goval.api.PackageInstallResponse|replit.goval.api.IPackageInstallResponse|null);
331
+
329
332
  /** Command packageListSpecfile */
330
333
  packageListSpecfile?: (replit.goval.api.PackageListSpecfile|replit.goval.api.IPackageListSpecfile|null);
331
334
 
@@ -894,6 +897,9 @@ export namespace replit {
894
897
  /** Command packageInstall. */
895
898
  public packageInstall?: (replit.goval.api.PackageInstall|null);
896
899
 
900
+ /** Command packageInstallResponse. */
901
+ public packageInstallResponse?: (replit.goval.api.PackageInstallResponse|null);
902
+
897
903
  /** Command packageListSpecfile. */
898
904
  public packageListSpecfile?: (replit.goval.api.PackageListSpecfile|null);
899
905
 
@@ -1138,7 +1144,7 @@ export namespace replit {
1138
1144
  public traceInfo: { [k: string]: string };
1139
1145
 
1140
1146
  /** Command body. */
1141
- 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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"pid2Input"|"pid2Output");
1147
+ 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"|"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"|"pid2Input"|"pid2Output");
1142
1148
 
1143
1149
  /**
1144
1150
  * Creates a new Command instance using the specified properties.
@@ -13171,6 +13177,9 @@ export namespace replit {
13171
13177
 
13172
13178
  /** PackageInstall fromHosting */
13173
13179
  fromHosting?: (boolean|null);
13180
+
13181
+ /** PackageInstall useNewResponse */
13182
+ useNewResponse?: (boolean|null);
13174
13183
  }
13175
13184
 
13176
13185
  /** Represents a PackageInstall. */
@@ -13185,6 +13194,9 @@ export namespace replit {
13185
13194
  /** PackageInstall fromHosting. */
13186
13195
  public fromHosting: boolean;
13187
13196
 
13197
+ /** PackageInstall useNewResponse. */
13198
+ public useNewResponse: boolean;
13199
+
13188
13200
  /**
13189
13201
  * Creates a new PackageInstall instance using the specified properties.
13190
13202
  * @param [properties] Properties to set
@@ -13256,6 +13268,96 @@ export namespace replit {
13256
13268
  public toJSON(): { [k: string]: any };
13257
13269
  }
13258
13270
 
13271
+ /** Properties of a PackageInstallResponse. */
13272
+ interface IPackageInstallResponse {
13273
+
13274
+ /** PackageInstallResponse guessedPkgs */
13275
+ guessedPkgs?: (string[]|null);
13276
+ }
13277
+
13278
+ /** Represents a PackageInstallResponse. */
13279
+ class PackageInstallResponse {
13280
+
13281
+ /**
13282
+ * Constructs a new PackageInstallResponse.
13283
+ * @param [properties] Properties to set
13284
+ */
13285
+ private constructor(properties?: replit.goval.api.IPackageInstallResponse);
13286
+
13287
+ /** PackageInstallResponse guessedPkgs. */
13288
+ public guessedPkgs: string[];
13289
+
13290
+ /**
13291
+ * Creates a new PackageInstallResponse instance using the specified properties.
13292
+ * @param [properties] Properties to set
13293
+ * @returns PackageInstallResponse instance
13294
+ */
13295
+ public static create(properties?: replit.goval.api.IPackageInstallResponse): replit.goval.api.PackageInstallResponse;
13296
+
13297
+ /**
13298
+ * Encodes the specified PackageInstallResponse message. Does not implicitly {@link replit.goval.api.PackageInstallResponse.verify|verify} messages.
13299
+ * @param message PackageInstallResponse message or plain object to encode
13300
+ * @param [writer] Writer to encode to
13301
+ * @returns Writer
13302
+ */
13303
+ public static encode(message: replit.goval.api.PackageInstallResponse, writer?: $protobuf.Writer): $protobuf.Writer;
13304
+
13305
+ /**
13306
+ * Encodes the specified PackageInstallResponse message, length delimited. Does not implicitly {@link replit.goval.api.PackageInstallResponse.verify|verify} messages.
13307
+ * @param message PackageInstallResponse message or plain object to encode
13308
+ * @param [writer] Writer to encode to
13309
+ * @returns Writer
13310
+ */
13311
+ public static encodeDelimited(message: replit.goval.api.PackageInstallResponse, writer?: $protobuf.Writer): $protobuf.Writer;
13312
+
13313
+ /**
13314
+ * Decodes a PackageInstallResponse message from the specified reader or buffer.
13315
+ * @param reader Reader or buffer to decode from
13316
+ * @param [length] Message length if known beforehand
13317
+ * @returns PackageInstallResponse
13318
+ * @throws {Error} If the payload is not a reader or valid buffer
13319
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13320
+ */
13321
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.PackageInstallResponse;
13322
+
13323
+ /**
13324
+ * Decodes a PackageInstallResponse message from the specified reader or buffer, length delimited.
13325
+ * @param reader Reader or buffer to decode from
13326
+ * @returns PackageInstallResponse
13327
+ * @throws {Error} If the payload is not a reader or valid buffer
13328
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13329
+ */
13330
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.PackageInstallResponse;
13331
+
13332
+ /**
13333
+ * Verifies a PackageInstallResponse message.
13334
+ * @param message Plain object to verify
13335
+ * @returns `null` if valid, otherwise the reason why it is not
13336
+ */
13337
+ public static verify(message: { [k: string]: any }): (string|null);
13338
+
13339
+ /**
13340
+ * Creates a PackageInstallResponse message from a plain object. Also converts values to their respective internal types.
13341
+ * @param object Plain object
13342
+ * @returns PackageInstallResponse
13343
+ */
13344
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.PackageInstallResponse;
13345
+
13346
+ /**
13347
+ * Creates a plain object from a PackageInstallResponse message. Also converts values to other types if specified.
13348
+ * @param message PackageInstallResponse
13349
+ * @param [options] Conversion options
13350
+ * @returns Plain object
13351
+ */
13352
+ public static toObject(message: replit.goval.api.PackageInstallResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
13353
+
13354
+ /**
13355
+ * Converts this PackageInstallResponse to JSON.
13356
+ * @returns JSON object
13357
+ */
13358
+ public toJSON(): { [k: string]: any };
13359
+ }
13360
+
13259
13361
  /** Properties of a PackageListSpecfile. */
13260
13362
  interface IPackageListSpecfile {
13261
13363
  }
package/main/index.js CHANGED
@@ -154,6 +154,7 @@
154
154
  * @property {replit.goval.api.PackageAdd|replit.goval.api.IPackageAdd|null} [packageAdd] Command packageAdd
155
155
  * @property {replit.goval.api.PackageRemove|replit.goval.api.IPackageRemove|null} [packageRemove] Command packageRemove
156
156
  * @property {replit.goval.api.PackageInstall|replit.goval.api.IPackageInstall|null} [packageInstall] Command packageInstall
157
+ * @property {replit.goval.api.PackageInstallResponse|replit.goval.api.IPackageInstallResponse|null} [packageInstallResponse] Command packageInstallResponse
157
158
  * @property {replit.goval.api.PackageListSpecfile|replit.goval.api.IPackageListSpecfile|null} [packageListSpecfile] Command packageListSpecfile
158
159
  * @property {replit.goval.api.PackageListSpecfileResp|replit.goval.api.IPackageListSpecfileResp|null} [packageListSpecfileResp] Command packageListSpecfileResp
159
160
  * @property {replit.goval.api.PackageCacheSave|replit.goval.api.IPackageCacheSave|null} [packageCacheSave] Command packageCacheSave
@@ -1092,6 +1093,14 @@
1092
1093
  */
1093
1094
  Command.prototype.packageInstall = null;
1094
1095
 
1096
+ /**
1097
+ * Command packageInstallResponse.
1098
+ * @member {replit.goval.api.PackageInstallResponse|null|undefined} packageInstallResponse
1099
+ * @memberof replit.goval.api.Command
1100
+ * @instance
1101
+ */
1102
+ Command.prototype.packageInstallResponse = null;
1103
+
1095
1104
  /**
1096
1105
  * Command packageListSpecfile.
1097
1106
  * @member {replit.goval.api.PackageListSpecfile|null|undefined} packageListSpecfile
@@ -1745,12 +1754,12 @@
1745
1754
 
1746
1755
  /**
1747
1756
  * Command body.
1748
- * @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"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"pid2Input"|"pid2Output"|undefined} body
1757
+ * @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"|"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"|"pid2Input"|"pid2Output"|undefined} body
1749
1758
  * @memberof replit.goval.api.Command
1750
1759
  * @instance
1751
1760
  */
1752
1761
  Object.defineProperty(Command.prototype, "body", {
1753
- 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", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "pid2Input", "pid2Output"]),
1762
+ 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", "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", "pid2Input", "pid2Output"]),
1754
1763
  set: $util.oneOfSetter($oneOfFields)
1755
1764
  });
1756
1765
 
@@ -1978,6 +1987,8 @@
1978
1987
  $root.replit.goval.api.PackageListSpecfileResp.encode(message.packageListSpecfileResp, writer.uint32(/* id 288, wireType 2 =*/2306).fork()).ldelim();
1979
1988
  if (message.packageCacheSave != null && Object.hasOwnProperty.call(message, "packageCacheSave"))
1980
1989
  $root.replit.goval.api.PackageCacheSave.encode(message.packageCacheSave, writer.uint32(/* id 289, wireType 2 =*/2314).fork()).ldelim();
1990
+ if (message.packageInstallResponse != null && Object.hasOwnProperty.call(message, "packageInstallResponse"))
1991
+ $root.replit.goval.api.PackageInstallResponse.encode(message.packageInstallResponse, writer.uint32(/* id 290, wireType 2 =*/2322).fork()).ldelim();
1981
1992
  if (message.chatMessage != null && Object.hasOwnProperty.call(message, "chatMessage"))
1982
1993
  $root.replit.goval.api.ChatMessage.encode(message.chatMessage, writer.uint32(/* id 310, wireType 2 =*/2482).fork()).ldelim();
1983
1994
  if (message.chatTyping != null && Object.hasOwnProperty.call(message, "chatTyping"))
@@ -2500,6 +2511,9 @@
2500
2511
  case 286:
2501
2512
  message.packageInstall = $root.replit.goval.api.PackageInstall.decode(reader, reader.uint32());
2502
2513
  break;
2514
+ case 290:
2515
+ message.packageInstallResponse = $root.replit.goval.api.PackageInstallResponse.decode(reader, reader.uint32());
2516
+ break;
2503
2517
  case 287:
2504
2518
  message.packageListSpecfile = $root.replit.goval.api.PackageListSpecfile.decode(reader, reader.uint32());
2505
2519
  break;
@@ -3807,6 +3821,16 @@
3807
3821
  return "packageInstall." + error;
3808
3822
  }
3809
3823
  }
3824
+ if (message.packageInstallResponse != null && message.hasOwnProperty("packageInstallResponse")) {
3825
+ if (properties.body === 1)
3826
+ return "body: multiple values";
3827
+ properties.body = 1;
3828
+ {
3829
+ var error = $root.replit.goval.api.PackageInstallResponse.verify(message.packageInstallResponse);
3830
+ if (error)
3831
+ return "packageInstallResponse." + error;
3832
+ }
3833
+ }
3810
3834
  if (message.packageListSpecfile != null && message.hasOwnProperty("packageListSpecfile")) {
3811
3835
  if (properties.body === 1)
3812
3836
  return "body: multiple values";
@@ -5114,6 +5138,11 @@
5114
5138
  throw TypeError(".replit.goval.api.Command.packageInstall: object expected");
5115
5139
  message.packageInstall = $root.replit.goval.api.PackageInstall.fromObject(object.packageInstall);
5116
5140
  }
5141
+ if (object.packageInstallResponse != null) {
5142
+ if (typeof object.packageInstallResponse !== "object")
5143
+ throw TypeError(".replit.goval.api.Command.packageInstallResponse: object expected");
5144
+ message.packageInstallResponse = $root.replit.goval.api.PackageInstallResponse.fromObject(object.packageInstallResponse);
5145
+ }
5117
5146
  if (object.packageListSpecfile != null) {
5118
5147
  if (typeof object.packageListSpecfile !== "object")
5119
5148
  throw TypeError(".replit.goval.api.Command.packageListSpecfile: object expected");
@@ -6029,6 +6058,11 @@
6029
6058
  if (options.oneofs)
6030
6059
  object.body = "packageCacheSave";
6031
6060
  }
6061
+ if (message.packageInstallResponse != null && message.hasOwnProperty("packageInstallResponse")) {
6062
+ object.packageInstallResponse = $root.replit.goval.api.PackageInstallResponse.toObject(message.packageInstallResponse, options);
6063
+ if (options.oneofs)
6064
+ object.body = "packageInstallResponse";
6065
+ }
6032
6066
  if (message.chatMessage != null && message.hasOwnProperty("chatMessage")) {
6033
6067
  object.chatMessage = $root.replit.goval.api.ChatMessage.toObject(message.chatMessage, options);
6034
6068
  if (options.oneofs)
@@ -33709,6 +33743,7 @@
33709
33743
  * @memberof replit.goval.api
33710
33744
  * @interface IPackageInstall
33711
33745
  * @property {boolean|null} [fromHosting] PackageInstall fromHosting
33746
+ * @property {boolean|null} [useNewResponse] PackageInstall useNewResponse
33712
33747
  */
33713
33748
 
33714
33749
  /**
@@ -33733,6 +33768,14 @@
33733
33768
  */
33734
33769
  PackageInstall.prototype.fromHosting = false;
33735
33770
 
33771
+ /**
33772
+ * PackageInstall useNewResponse.
33773
+ * @member {boolean} useNewResponse
33774
+ * @memberof replit.goval.api.PackageInstall
33775
+ * @instance
33776
+ */
33777
+ PackageInstall.prototype.useNewResponse = false;
33778
+
33736
33779
  /**
33737
33780
  * Creates a new PackageInstall instance using the specified properties.
33738
33781
  * @function create
@@ -33759,6 +33802,8 @@
33759
33802
  writer = $Writer.create();
33760
33803
  if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
33761
33804
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
33805
+ if (message.useNewResponse != null && Object.hasOwnProperty.call(message, "useNewResponse"))
33806
+ writer.uint32(/* id 99, wireType 0 =*/792).bool(message.useNewResponse);
33762
33807
  return writer;
33763
33808
  };
33764
33809
 
@@ -33796,6 +33841,9 @@
33796
33841
  case 1:
33797
33842
  message.fromHosting = reader.bool();
33798
33843
  break;
33844
+ case 99:
33845
+ message.useNewResponse = reader.bool();
33846
+ break;
33799
33847
  default:
33800
33848
  reader.skipType(tag & 7);
33801
33849
  break;
@@ -33834,6 +33882,9 @@
33834
33882
  if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
33835
33883
  if (typeof message.fromHosting !== "boolean")
33836
33884
  return "fromHosting: boolean expected";
33885
+ if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
33886
+ if (typeof message.useNewResponse !== "boolean")
33887
+ return "useNewResponse: boolean expected";
33837
33888
  return null;
33838
33889
  };
33839
33890
 
@@ -33851,6 +33902,8 @@
33851
33902
  var message = new $root.replit.goval.api.PackageInstall();
33852
33903
  if (object.fromHosting != null)
33853
33904
  message.fromHosting = Boolean(object.fromHosting);
33905
+ if (object.useNewResponse != null)
33906
+ message.useNewResponse = Boolean(object.useNewResponse);
33854
33907
  return message;
33855
33908
  };
33856
33909
 
@@ -33867,10 +33920,14 @@
33867
33920
  if (!options)
33868
33921
  options = {};
33869
33922
  var object = {};
33870
- if (options.defaults)
33923
+ if (options.defaults) {
33871
33924
  object.fromHosting = false;
33925
+ object.useNewResponse = false;
33926
+ }
33872
33927
  if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
33873
33928
  object.fromHosting = message.fromHosting;
33929
+ if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
33930
+ object.useNewResponse = message.useNewResponse;
33874
33931
  return object;
33875
33932
  };
33876
33933
 
@@ -33888,6 +33945,208 @@
33888
33945
  return PackageInstall;
33889
33946
  })();
33890
33947
 
33948
+ api.PackageInstallResponse = (function() {
33949
+
33950
+ /**
33951
+ * Properties of a PackageInstallResponse.
33952
+ * @memberof replit.goval.api
33953
+ * @interface IPackageInstallResponse
33954
+ * @property {Array.<string>|null} [guessedPkgs] PackageInstallResponse guessedPkgs
33955
+ */
33956
+
33957
+ /**
33958
+ * Constructs a new PackageInstallResponse.
33959
+ * @memberof replit.goval.api
33960
+ * @classdesc Represents a PackageInstallResponse.
33961
+ * @constructor
33962
+ * @param {replit.goval.api.IPackageInstallResponse=} [properties] Properties to set
33963
+ */
33964
+ function PackageInstallResponse(properties) {
33965
+ this.guessedPkgs = [];
33966
+ if (properties)
33967
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33968
+ if (properties[keys[i]] != null)
33969
+ this[keys[i]] = properties[keys[i]];
33970
+ }
33971
+
33972
+ /**
33973
+ * PackageInstallResponse guessedPkgs.
33974
+ * @member {Array.<string>} guessedPkgs
33975
+ * @memberof replit.goval.api.PackageInstallResponse
33976
+ * @instance
33977
+ */
33978
+ PackageInstallResponse.prototype.guessedPkgs = $util.emptyArray;
33979
+
33980
+ /**
33981
+ * Creates a new PackageInstallResponse instance using the specified properties.
33982
+ * @function create
33983
+ * @memberof replit.goval.api.PackageInstallResponse
33984
+ * @static
33985
+ * @param {replit.goval.api.IPackageInstallResponse=} [properties] Properties to set
33986
+ * @returns {replit.goval.api.PackageInstallResponse} PackageInstallResponse instance
33987
+ */
33988
+ PackageInstallResponse.create = function create(properties) {
33989
+ return PackageInstallResponse.fromObject(properties);
33990
+ };
33991
+
33992
+ /**
33993
+ * Encodes the specified PackageInstallResponse message. Does not implicitly {@link replit.goval.api.PackageInstallResponse.verify|verify} messages.
33994
+ * @function encode
33995
+ * @memberof replit.goval.api.PackageInstallResponse
33996
+ * @static
33997
+ * @param {replit.goval.api.PackageInstallResponse} message PackageInstallResponse message or plain object to encode
33998
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33999
+ * @returns {$protobuf.Writer} Writer
34000
+ */
34001
+ PackageInstallResponse.encode = function encode(message, writer) {
34002
+ if (!writer)
34003
+ writer = $Writer.create();
34004
+ if (message.guessedPkgs != null && message.guessedPkgs.length)
34005
+ for (var i = 0; i < message.guessedPkgs.length; ++i)
34006
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.guessedPkgs[i]);
34007
+ return writer;
34008
+ };
34009
+
34010
+ /**
34011
+ * Encodes the specified PackageInstallResponse message, length delimited. Does not implicitly {@link replit.goval.api.PackageInstallResponse.verify|verify} messages.
34012
+ * @function encodeDelimited
34013
+ * @memberof replit.goval.api.PackageInstallResponse
34014
+ * @static
34015
+ * @param {replit.goval.api.PackageInstallResponse} message PackageInstallResponse message or plain object to encode
34016
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34017
+ * @returns {$protobuf.Writer} Writer
34018
+ */
34019
+ PackageInstallResponse.encodeDelimited = function encodeDelimited(message, writer) {
34020
+ return this.encode(message, writer).ldelim();
34021
+ };
34022
+
34023
+ /**
34024
+ * Decodes a PackageInstallResponse message from the specified reader or buffer.
34025
+ * @function decode
34026
+ * @memberof replit.goval.api.PackageInstallResponse
34027
+ * @static
34028
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34029
+ * @param {number} [length] Message length if known beforehand
34030
+ * @returns {replit.goval.api.PackageInstallResponse} PackageInstallResponse
34031
+ * @throws {Error} If the payload is not a reader or valid buffer
34032
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34033
+ */
34034
+ PackageInstallResponse.decode = function decode(reader, length) {
34035
+ if (!(reader instanceof $Reader))
34036
+ reader = $Reader.create(reader);
34037
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PackageInstallResponse();
34038
+ while (reader.pos < end) {
34039
+ var tag = reader.uint32();
34040
+ switch (tag >>> 3) {
34041
+ case 1:
34042
+ if (!(message.guessedPkgs && message.guessedPkgs.length))
34043
+ message.guessedPkgs = [];
34044
+ message.guessedPkgs.push(reader.string());
34045
+ break;
34046
+ default:
34047
+ reader.skipType(tag & 7);
34048
+ break;
34049
+ }
34050
+ }
34051
+ return message;
34052
+ };
34053
+
34054
+ /**
34055
+ * Decodes a PackageInstallResponse message from the specified reader or buffer, length delimited.
34056
+ * @function decodeDelimited
34057
+ * @memberof replit.goval.api.PackageInstallResponse
34058
+ * @static
34059
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34060
+ * @returns {replit.goval.api.PackageInstallResponse} PackageInstallResponse
34061
+ * @throws {Error} If the payload is not a reader or valid buffer
34062
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34063
+ */
34064
+ PackageInstallResponse.decodeDelimited = function decodeDelimited(reader) {
34065
+ if (!(reader instanceof $Reader))
34066
+ reader = new $Reader(reader);
34067
+ return this.decode(reader, reader.uint32());
34068
+ };
34069
+
34070
+ /**
34071
+ * Verifies a PackageInstallResponse message.
34072
+ * @function verify
34073
+ * @memberof replit.goval.api.PackageInstallResponse
34074
+ * @static
34075
+ * @param {Object.<string,*>} message Plain object to verify
34076
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34077
+ */
34078
+ PackageInstallResponse.verify = function verify(message) {
34079
+ if (typeof message !== "object" || message === null)
34080
+ return "object expected";
34081
+ if (message.guessedPkgs != null && message.hasOwnProperty("guessedPkgs")) {
34082
+ if (!Array.isArray(message.guessedPkgs))
34083
+ return "guessedPkgs: array expected";
34084
+ for (var i = 0; i < message.guessedPkgs.length; ++i)
34085
+ if (!$util.isString(message.guessedPkgs[i]))
34086
+ return "guessedPkgs: string[] expected";
34087
+ }
34088
+ return null;
34089
+ };
34090
+
34091
+ /**
34092
+ * Creates a PackageInstallResponse message from a plain object. Also converts values to their respective internal types.
34093
+ * @function fromObject
34094
+ * @memberof replit.goval.api.PackageInstallResponse
34095
+ * @static
34096
+ * @param {Object.<string,*>} object Plain object
34097
+ * @returns {replit.goval.api.PackageInstallResponse} PackageInstallResponse
34098
+ */
34099
+ PackageInstallResponse.fromObject = function fromObject(object) {
34100
+ if (object instanceof $root.replit.goval.api.PackageInstallResponse)
34101
+ return object;
34102
+ var message = new $root.replit.goval.api.PackageInstallResponse();
34103
+ if (object.guessedPkgs) {
34104
+ if (!Array.isArray(object.guessedPkgs))
34105
+ throw TypeError(".replit.goval.api.PackageInstallResponse.guessedPkgs: array expected");
34106
+ message.guessedPkgs = [];
34107
+ for (var i = 0; i < object.guessedPkgs.length; ++i)
34108
+ message.guessedPkgs[i] = String(object.guessedPkgs[i]);
34109
+ }
34110
+ return message;
34111
+ };
34112
+
34113
+ /**
34114
+ * Creates a plain object from a PackageInstallResponse message. Also converts values to other types if specified.
34115
+ * @function toObject
34116
+ * @memberof replit.goval.api.PackageInstallResponse
34117
+ * @static
34118
+ * @param {replit.goval.api.PackageInstallResponse} message PackageInstallResponse
34119
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34120
+ * @returns {Object.<string,*>} Plain object
34121
+ */
34122
+ PackageInstallResponse.toObject = function toObject(message, options) {
34123
+ if (!options)
34124
+ options = {};
34125
+ var object = {};
34126
+ if (options.arrays || options.defaults)
34127
+ object.guessedPkgs = [];
34128
+ if (message.guessedPkgs && message.guessedPkgs.length) {
34129
+ object.guessedPkgs = [];
34130
+ for (var j = 0; j < message.guessedPkgs.length; ++j)
34131
+ object.guessedPkgs[j] = message.guessedPkgs[j];
34132
+ }
34133
+ return object;
34134
+ };
34135
+
34136
+ /**
34137
+ * Converts this PackageInstallResponse to JSON.
34138
+ * @function toJSON
34139
+ * @memberof replit.goval.api.PackageInstallResponse
34140
+ * @instance
34141
+ * @returns {Object.<string,*>} JSON object
34142
+ */
34143
+ PackageInstallResponse.prototype.toJSON = function toJSON() {
34144
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34145
+ };
34146
+
34147
+ return PackageInstallResponse;
34148
+ })();
34149
+
33891
34150
  api.PackageListSpecfile = (function() {
33892
34151
 
33893
34152
  /**
@@ -146,6 +146,7 @@ declare var npm$namespace$replit$goval$api: {|
146
146
  IPackageAdd: Class<replit$goval$api$IPackageAdd>,
147
147
  IPackageRemove: Class<replit$goval$api$IPackageRemove>,
148
148
  IPackageInstall: Class<replit$goval$api$IPackageInstall>,
149
+ IPackageInstallResponse: Class<replit$goval$api$IPackageInstallResponse>,
149
150
  IPackageListSpecfile: Class<replit$goval$api$IPackageListSpecfile>,
150
151
  IPackageListSpecfileResp: Class<replit$goval$api$IPackageListSpecfileResp>,
151
152
  IPackageCacheSave: Class<replit$goval$api$IPackageCacheSave>,
@@ -369,6 +370,7 @@ declare var npm$namespace$replit$goval$api: {|
369
370
  PackageAdd: typeof replit$goval$api$PackageAdd,
370
371
  PackageRemove: typeof replit$goval$api$PackageRemove,
371
372
  PackageInstall: typeof replit$goval$api$PackageInstall,
373
+ PackageInstallResponse: typeof replit$goval$api$PackageInstallResponse,
372
374
  PackageListSpecfile: typeof replit$goval$api$PackageListSpecfile,
373
375
  PackageListSpecfileResp: typeof replit$goval$api$PackageListSpecfileResp,
374
376
  PackageCacheSave: typeof replit$goval$api$PackageCacheSave,
@@ -1134,6 +1136,14 @@ declare type replit$goval$api$ICommand = {|
1134
1136
  | replit$goval$api$IPackageInstall
1135
1137
  | null,
1136
1138
 
1139
+ /**
1140
+ * Command packageInstallResponse
1141
+ */
1142
+ packageInstallResponse?:
1143
+ | replit$goval$api$PackageInstallResponse
1144
+ | replit$goval$api$IPackageInstallResponse
1145
+ | null,
1146
+
1137
1147
  /**
1138
1148
  * Command packageListSpecfile
1139
1149
  */
@@ -2275,6 +2285,11 @@ declare class replit$goval$api$Command {
2275
2285
  */
2276
2286
  packageInstall?: replit$goval$api$PackageInstall | null;
2277
2287
 
2288
+ /**
2289
+ * Command packageInstallResponse.
2290
+ */
2291
+ packageInstallResponse?: replit$goval$api$PackageInstallResponse | null;
2292
+
2278
2293
  /**
2279
2294
  * Command packageListSpecfile.
2280
2295
  */
@@ -2789,6 +2804,7 @@ declare class replit$goval$api$Command {
2789
2804
  | "packageAdd"
2790
2805
  | "packageRemove"
2791
2806
  | "packageInstall"
2807
+ | "packageInstallResponse"
2792
2808
  | "packageListSpecfile"
2793
2809
  | "packageListSpecfileResp"
2794
2810
  | "packageCacheSave"
@@ -19118,6 +19134,11 @@ declare type replit$goval$api$IPackageInstall = {|
19118
19134
  * PackageInstall fromHosting
19119
19135
  */
19120
19136
  fromHosting?: boolean | null,
19137
+
19138
+ /**
19139
+ * PackageInstall useNewResponse
19140
+ */
19141
+ useNewResponse?: boolean | null,
19121
19142
  |};
19122
19143
 
19123
19144
  /**
@@ -19135,6 +19156,11 @@ declare class replit$goval$api$PackageInstall {
19135
19156
  */
19136
19157
  fromHosting: boolean;
19137
19158
 
19159
+ /**
19160
+ * PackageInstall useNewResponse.
19161
+ */
19162
+ useNewResponse: boolean;
19163
+
19138
19164
  /**
19139
19165
  * Creates a new PackageInstall instance using the specified properties.
19140
19166
  * @param [properties] Properties to set
@@ -19230,6 +19256,126 @@ declare class replit$goval$api$PackageInstall {
19230
19256
  |};
19231
19257
  }
19232
19258
 
19259
+ /**
19260
+ * Properties of a PackageInstallResponse.
19261
+ */
19262
+ declare type replit$goval$api$IPackageInstallResponse = {|
19263
+ /**
19264
+ * PackageInstallResponse guessedPkgs
19265
+ */
19266
+ guessedPkgs?: string[] | null,
19267
+ |};
19268
+
19269
+ /**
19270
+ * Represents a PackageInstallResponse.
19271
+ */
19272
+ declare class replit$goval$api$PackageInstallResponse {
19273
+ /**
19274
+ * Constructs a new PackageInstallResponse.
19275
+ * @param [properties] Properties to set
19276
+ */
19277
+ constructor(properties?: replit$goval$api$IPackageInstallResponse): this;
19278
+
19279
+ /**
19280
+ * PackageInstallResponse guessedPkgs.
19281
+ */
19282
+ guessedPkgs: string[];
19283
+
19284
+ /**
19285
+ * Creates a new PackageInstallResponse instance using the specified properties.
19286
+ * @param [properties] Properties to set
19287
+ * @returns PackageInstallResponse instance
19288
+ */
19289
+ static create(
19290
+ properties?: replit$goval$api$IPackageInstallResponse
19291
+ ): replit$goval$api$PackageInstallResponse;
19292
+
19293
+ /**
19294
+ * [object Object],[object Object],[object Object]
19295
+ * @param message PackageInstallResponse message or plain object to encode
19296
+ * @param [writer] Writer to encode to
19297
+ * @returns Writer
19298
+ */
19299
+ static encode(
19300
+ message: replit$goval$api$PackageInstallResponse,
19301
+ writer?: $protobuf.Writer
19302
+ ): $protobuf.Writer;
19303
+
19304
+ /**
19305
+ * [object Object],[object Object],[object Object]
19306
+ * @param message PackageInstallResponse message or plain object to encode
19307
+ * @param [writer] Writer to encode to
19308
+ * @returns Writer
19309
+ */
19310
+ static encodeDelimited(
19311
+ message: replit$goval$api$PackageInstallResponse,
19312
+ writer?: $protobuf.Writer
19313
+ ): $protobuf.Writer;
19314
+
19315
+ /**
19316
+ * Decodes a PackageInstallResponse message from the specified reader or buffer.
19317
+ * @param reader Reader or buffer to decode from
19318
+ * @param [length] Message length if known beforehand
19319
+ * @returns PackageInstallResponse
19320
+ * @throws {Error} If the payload is not a reader or valid buffer
19321
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19322
+ */
19323
+ static decode(
19324
+ reader: $protobuf.Reader | Uint8Array,
19325
+ length?: number
19326
+ ): replit$goval$api$PackageInstallResponse;
19327
+
19328
+ /**
19329
+ * Decodes a PackageInstallResponse message from the specified reader or buffer, length delimited.
19330
+ * @param reader Reader or buffer to decode from
19331
+ * @returns PackageInstallResponse
19332
+ * @throws {Error} If the payload is not a reader or valid buffer
19333
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19334
+ */
19335
+ static decodeDelimited(
19336
+ reader: $protobuf.Reader | Uint8Array
19337
+ ): replit$goval$api$PackageInstallResponse;
19338
+
19339
+ /**
19340
+ * Verifies a PackageInstallResponse message.
19341
+ * @param message Plain object to verify
19342
+ * @returns `null` if valid, otherwise the reason why it is not
19343
+ */
19344
+ static verify(message: {|
19345
+ [k: string]: any,
19346
+ |}): string | null;
19347
+
19348
+ /**
19349
+ * Creates a PackageInstallResponse message from a plain object. Also converts values to their respective internal types.
19350
+ * @param object Plain object
19351
+ * @returns PackageInstallResponse
19352
+ */
19353
+ static fromObject(object: {|
19354
+ [k: string]: any,
19355
+ |}): replit$goval$api$PackageInstallResponse;
19356
+
19357
+ /**
19358
+ * Creates a plain object from a PackageInstallResponse message. Also converts values to other types if specified.
19359
+ * @param message PackageInstallResponse
19360
+ * @param [options] Conversion options
19361
+ * @returns Plain object
19362
+ */
19363
+ static toObject(
19364
+ message: replit$goval$api$PackageInstallResponse,
19365
+ options?: $protobuf.IConversionOptions
19366
+ ): {|
19367
+ [k: string]: any,
19368
+ |};
19369
+
19370
+ /**
19371
+ * Converts this PackageInstallResponse to JSON.
19372
+ * @returns JSON object
19373
+ */
19374
+ toJSON(): {|
19375
+ [k: string]: any,
19376
+ |};
19377
+ }
19378
+
19233
19379
  /**
19234
19380
  * Properties of a PackageListSpecfile.
19235
19381
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",
@@ -13,9 +13,10 @@
13
13
  "build:main": "TARGET='./main/index' ./gen.sh fix ../types.proto ../client.proto ../signing.proto ../lore/lore.proto ../features/features.proto ../repl/repl.proto ../powerup.proto ../pid2/protocol.proto"
14
14
  },
15
15
  "dependencies": {
16
- "protobufjs": "^6.11.3"
16
+ "protobufjs": "^7.2.4"
17
17
  },
18
18
  "devDependencies": {
19
- "flowgen": "~1.14.0"
19
+ "flowgen": "~1.14.0",
20
+ "protobufjs-cli": "^1.1.1"
20
21
  }
21
22
  }