@replit/protocol 0.3.39 → 0.3.42

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/README.md CHANGED
@@ -1,3 +1,16 @@
1
+ # Developing
2
+ * Change goval/api/types.proto
3
+ * In this directory:
4
+ * `npm run build`
5
+ * Change repl-it-web/package.json:
6
+ ```
7
+ "@replit/protocol": "^0.3.39",
8
+ ```
9
+ to
10
+ ```
11
+ "@replit/protocol": "link:../goval/api/npm",
12
+ ```
13
+
1
14
  # Publishing
2
15
 
3
16
  After your `.proto` changes are merged:
package/main/index.d.ts CHANGED
@@ -336,6 +336,9 @@ export namespace replit {
336
336
  /** Command packageAdd */
337
337
  packageAdd?: (replit.goval.api.PackageAdd|replit.goval.api.IPackageAdd|null);
338
338
 
339
+ /** Command packageAddResponse */
340
+ packageAddResponse?: (replit.goval.api.PackageAddResponse|replit.goval.api.IPackageAddResponse|null);
341
+
339
342
  /** Command packageRemove */
340
343
  packageRemove?: (replit.goval.api.PackageRemove|replit.goval.api.IPackageRemove|null);
341
344
 
@@ -925,6 +928,9 @@ export namespace replit {
925
928
  /** Command packageAdd. */
926
929
  public packageAdd?: (replit.goval.api.PackageAdd|null);
927
930
 
931
+ /** Command packageAddResponse. */
932
+ public packageAddResponse?: (replit.goval.api.PackageAddResponse|null);
933
+
928
934
  /** Command packageRemove. */
929
935
  public packageRemove?: (replit.goval.api.PackageRemove|null);
930
936
 
@@ -1181,7 +1187,7 @@ export namespace replit {
1181
1187
  public forceTrace: boolean;
1182
1188
 
1183
1189
  /** Command body. */
1184
- 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"|"shellMetadata"|"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"|"pid2Message"|"replspaceApiShellTracker");
1190
+ 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"|"shellMetadata"|"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"|"packageAddResponse"|"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"|"pid2Message"|"replspaceApiShellTracker");
1185
1191
 
1186
1192
  /**
1187
1193
  * Creates a new Command instance using the specified properties.
@@ -4678,7 +4684,7 @@ export namespace replit {
4678
4684
 
4679
4685
  /** Consistency enum. */
4680
4686
  enum Consistency {
4681
- PermanentStorage = 0,
4687
+ DiskAndHistory = 0,
4682
4688
  Disk = 1
4683
4689
  }
4684
4690
  }
@@ -14184,6 +14190,9 @@ export namespace replit {
14184
14190
 
14185
14191
  /** PackageAdd pkgs */
14186
14192
  pkgs?: ((replit.goval.api.Package|replit.goval.api.IPackage)[]|null);
14193
+
14194
+ /** PackageAdd useNewResponse */
14195
+ useNewResponse?: (boolean|null);
14187
14196
  }
14188
14197
 
14189
14198
  /** Represents a PackageAdd. */
@@ -14198,6 +14207,9 @@ export namespace replit {
14198
14207
  /** PackageAdd pkgs. */
14199
14208
  public pkgs: replit.goval.api.Package[];
14200
14209
 
14210
+ /** PackageAdd useNewResponse. */
14211
+ public useNewResponse: boolean;
14212
+
14201
14213
  /**
14202
14214
  * Creates a new PackageAdd instance using the specified properties.
14203
14215
  * @param [properties] Properties to set
@@ -14276,6 +14288,103 @@ export namespace replit {
14276
14288
  public static getTypeUrl(typeUrlPrefix?: string): string;
14277
14289
  }
14278
14290
 
14291
+ /** Properties of a PackageAddResponse. */
14292
+ interface IPackageAddResponse {
14293
+
14294
+ /** PackageAddResponse installedSystemDependencies */
14295
+ installedSystemDependencies?: (boolean|null);
14296
+ }
14297
+
14298
+ /** Represents a PackageAddResponse. */
14299
+ class PackageAddResponse {
14300
+
14301
+ /**
14302
+ * Constructs a new PackageAddResponse.
14303
+ * @param [properties] Properties to set
14304
+ */
14305
+ private constructor(properties?: replit.goval.api.IPackageAddResponse);
14306
+
14307
+ /** PackageAddResponse installedSystemDependencies. */
14308
+ public installedSystemDependencies: boolean;
14309
+
14310
+ /**
14311
+ * Creates a new PackageAddResponse instance using the specified properties.
14312
+ * @param [properties] Properties to set
14313
+ * @returns PackageAddResponse instance
14314
+ */
14315
+ public static create(properties?: replit.goval.api.IPackageAddResponse): replit.goval.api.PackageAddResponse;
14316
+
14317
+ /**
14318
+ * Encodes the specified PackageAddResponse message. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
14319
+ * @param message PackageAddResponse message or plain object to encode
14320
+ * @param [writer] Writer to encode to
14321
+ * @returns Writer
14322
+ */
14323
+ public static encode(message: replit.goval.api.PackageAddResponse, writer?: $protobuf.Writer): $protobuf.Writer;
14324
+
14325
+ /**
14326
+ * Encodes the specified PackageAddResponse message, length delimited. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
14327
+ * @param message PackageAddResponse message or plain object to encode
14328
+ * @param [writer] Writer to encode to
14329
+ * @returns Writer
14330
+ */
14331
+ public static encodeDelimited(message: replit.goval.api.PackageAddResponse, writer?: $protobuf.Writer): $protobuf.Writer;
14332
+
14333
+ /**
14334
+ * Decodes a PackageAddResponse message from the specified reader or buffer.
14335
+ * @param reader Reader or buffer to decode from
14336
+ * @param [length] Message length if known beforehand
14337
+ * @returns PackageAddResponse
14338
+ * @throws {Error} If the payload is not a reader or valid buffer
14339
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14340
+ */
14341
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.PackageAddResponse;
14342
+
14343
+ /**
14344
+ * Decodes a PackageAddResponse message from the specified reader or buffer, length delimited.
14345
+ * @param reader Reader or buffer to decode from
14346
+ * @returns PackageAddResponse
14347
+ * @throws {Error} If the payload is not a reader or valid buffer
14348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14349
+ */
14350
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.PackageAddResponse;
14351
+
14352
+ /**
14353
+ * Verifies a PackageAddResponse message.
14354
+ * @param message Plain object to verify
14355
+ * @returns `null` if valid, otherwise the reason why it is not
14356
+ */
14357
+ public static verify(message: { [k: string]: any }): (string|null);
14358
+
14359
+ /**
14360
+ * Creates a PackageAddResponse message from a plain object. Also converts values to their respective internal types.
14361
+ * @param object Plain object
14362
+ * @returns PackageAddResponse
14363
+ */
14364
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.PackageAddResponse;
14365
+
14366
+ /**
14367
+ * Creates a plain object from a PackageAddResponse message. Also converts values to other types if specified.
14368
+ * @param message PackageAddResponse
14369
+ * @param [options] Conversion options
14370
+ * @returns Plain object
14371
+ */
14372
+ public static toObject(message: replit.goval.api.PackageAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
14373
+
14374
+ /**
14375
+ * Converts this PackageAddResponse to JSON.
14376
+ * @returns JSON object
14377
+ */
14378
+ public toJSON(): { [k: string]: any };
14379
+
14380
+ /**
14381
+ * Gets the default type url for PackageAddResponse
14382
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
14383
+ * @returns The default type url
14384
+ */
14385
+ public static getTypeUrl(typeUrlPrefix?: string): string;
14386
+ }
14387
+
14279
14388
  /** Properties of a PackageRemove. */
14280
14389
  interface IPackageRemove {
14281
14390
 
@@ -14499,6 +14608,9 @@ export namespace replit {
14499
14608
 
14500
14609
  /** PackageInstallResponse totalDurationMs */
14501
14610
  totalDurationMs?: (number|null);
14611
+
14612
+ /** PackageInstallResponse installedSystemDependencies */
14613
+ installedSystemDependencies?: (boolean|null);
14502
14614
  }
14503
14615
 
14504
14616
  /** Represents a PackageInstallResponse. */
@@ -14525,6 +14637,9 @@ export namespace replit {
14525
14637
  /** PackageInstallResponse totalDurationMs. */
14526
14638
  public totalDurationMs: number;
14527
14639
 
14640
+ /** PackageInstallResponse installedSystemDependencies. */
14641
+ public installedSystemDependencies: boolean;
14642
+
14528
14643
  /**
14529
14644
  * Creates a new PackageInstallResponse instance using the specified properties.
14530
14645
  * @param [properties] Properties to set
@@ -24887,6 +25002,9 @@ export namespace replit {
24887
25002
 
24888
25003
  /** ReplToken pid2Info */
24889
25004
  pid2Info?: (replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null);
25005
+
25006
+ /** ReplToken paid */
25007
+ paid?: (boolean|null);
24890
25008
  }
24891
25009
 
24892
25010
  /** Represents a ReplToken. */
@@ -24949,6 +25067,9 @@ export namespace replit {
24949
25067
  /** ReplToken pid2Info. */
24950
25068
  public pid2Info?: (replit.goval.api.repl.Pid2Binary|null);
24951
25069
 
25070
+ /** ReplToken paid. */
25071
+ public paid: boolean;
25072
+
24952
25073
  /** ReplToken metadata. */
24953
25074
  public metadata?: ("repl"|"id"|"classroom");
24954
25075
 
package/main/index.js CHANGED
@@ -157,6 +157,7 @@
157
157
  * @property {replit.goval.api.PackageInfo|replit.goval.api.IPackageInfo|null} [packageInfo] Command packageInfo
158
158
  * @property {replit.goval.api.PackageInfoResp|replit.goval.api.IPackageInfoResp|null} [packageInfoResp] Command packageInfoResp
159
159
  * @property {replit.goval.api.PackageAdd|replit.goval.api.IPackageAdd|null} [packageAdd] Command packageAdd
160
+ * @property {replit.goval.api.PackageAddResponse|replit.goval.api.IPackageAddResponse|null} [packageAddResponse] Command packageAddResponse
160
161
  * @property {replit.goval.api.PackageRemove|replit.goval.api.IPackageRemove|null} [packageRemove] Command packageRemove
161
162
  * @property {replit.goval.api.PackageInstall|replit.goval.api.IPackageInstall|null} [packageInstall] Command packageInstall
162
163
  * @property {replit.goval.api.PackageInstallResponse|replit.goval.api.IPackageInstallResponse|null} [packageInstallResponse] Command packageInstallResponse
@@ -1123,6 +1124,14 @@
1123
1124
  */
1124
1125
  Command.prototype.packageAdd = null;
1125
1126
 
1127
+ /**
1128
+ * Command packageAddResponse.
1129
+ * @member {replit.goval.api.PackageAddResponse|null|undefined} packageAddResponse
1130
+ * @memberof replit.goval.api.Command
1131
+ * @instance
1132
+ */
1133
+ Command.prototype.packageAddResponse = null;
1134
+
1126
1135
  /**
1127
1136
  * Command packageRemove.
1128
1137
  * @member {replit.goval.api.PackageRemove|null|undefined} packageRemove
@@ -1808,12 +1817,12 @@
1808
1817
 
1809
1818
  /**
1810
1819
  * Command body.
1811
- * @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"|"shellMetadata"|"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"|"pid2Message"|"replspaceApiShellTracker"|undefined} body
1820
+ * @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"|"shellMetadata"|"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"|"packageAddResponse"|"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"|"pid2Message"|"replspaceApiShellTracker"|undefined} body
1812
1821
  * @memberof replit.goval.api.Command
1813
1822
  * @instance
1814
1823
  */
1815
1824
  Object.defineProperty(Command.prototype, "body", {
1816
- 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", "shellMetadata", "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", "pid2Message", "replspaceApiShellTracker"]),
1825
+ 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", "shellMetadata", "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", "packageAddResponse", "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", "pid2Message", "replspaceApiShellTracker"]),
1817
1826
  set: $util.oneOfSetter($oneOfFields)
1818
1827
  });
1819
1828
 
@@ -2221,6 +2230,8 @@
2221
2230
  writer.uint32(/* id 446, wireType 0 =*/3568).bool(message.splitStderrRequest);
2222
2231
  if (message.shellMetadata != null && Object.hasOwnProperty.call(message, "shellMetadata"))
2223
2232
  $root.replit.goval.api.ShellMetadata.encode(message.shellMetadata, writer.uint32(/* id 447, wireType 2 =*/3578).fork()).ldelim();
2233
+ if (message.packageAddResponse != null && Object.hasOwnProperty.call(message, "packageAddResponse"))
2234
+ $root.replit.goval.api.PackageAddResponse.encode(message.packageAddResponse, writer.uint32(/* id 448, wireType 2 =*/3586).fork()).ldelim();
2224
2235
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
2225
2236
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
2226
2237
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -2694,6 +2705,10 @@
2694
2705
  message.packageAdd = $root.replit.goval.api.PackageAdd.decode(reader, reader.uint32());
2695
2706
  break;
2696
2707
  }
2708
+ case 448: {
2709
+ message.packageAddResponse = $root.replit.goval.api.PackageAddResponse.decode(reader, reader.uint32());
2710
+ break;
2711
+ }
2697
2712
  case 285: {
2698
2713
  message.packageRemove = $root.replit.goval.api.PackageRemove.decode(reader, reader.uint32());
2699
2714
  break;
@@ -4125,6 +4140,16 @@
4125
4140
  return "packageAdd." + error;
4126
4141
  }
4127
4142
  }
4143
+ if (message.packageAddResponse != null && message.hasOwnProperty("packageAddResponse")) {
4144
+ if (properties.body === 1)
4145
+ return "body: multiple values";
4146
+ properties.body = 1;
4147
+ {
4148
+ var error = $root.replit.goval.api.PackageAddResponse.verify(message.packageAddResponse);
4149
+ if (error)
4150
+ return "packageAddResponse." + error;
4151
+ }
4152
+ }
4128
4153
  if (message.packageRemove != null && message.hasOwnProperty("packageRemove")) {
4129
4154
  if (properties.body === 1)
4130
4155
  return "body: multiple values";
@@ -5483,6 +5508,11 @@
5483
5508
  throw TypeError(".replit.goval.api.Command.packageAdd: object expected");
5484
5509
  message.packageAdd = $root.replit.goval.api.PackageAdd.fromObject(object.packageAdd);
5485
5510
  }
5511
+ if (object.packageAddResponse != null) {
5512
+ if (typeof object.packageAddResponse !== "object")
5513
+ throw TypeError(".replit.goval.api.Command.packageAddResponse: object expected");
5514
+ message.packageAddResponse = $root.replit.goval.api.PackageAddResponse.fromObject(object.packageAddResponse);
5515
+ }
5486
5516
  if (object.packageRemove != null) {
5487
5517
  if (typeof object.packageRemove !== "object")
5488
5518
  throw TypeError(".replit.goval.api.Command.packageRemove: object expected");
@@ -6866,6 +6896,11 @@
6866
6896
  if (options.oneofs)
6867
6897
  object.body = "shellMetadata";
6868
6898
  }
6899
+ if (message.packageAddResponse != null && message.hasOwnProperty("packageAddResponse")) {
6900
+ object.packageAddResponse = $root.replit.goval.api.PackageAddResponse.toObject(message.packageAddResponse, options);
6901
+ if (options.oneofs)
6902
+ object.body = "packageAddResponse";
6903
+ }
6869
6904
  if (message.ref != null && message.hasOwnProperty("ref"))
6870
6905
  object.ref = message.ref;
6871
6906
  var keys2;
@@ -14826,7 +14861,7 @@
14826
14861
  break;
14827
14862
  }
14828
14863
  break;
14829
- case "PermanentStorage":
14864
+ case "DiskAndHistory":
14830
14865
  case 0:
14831
14866
  message.consistency = 0;
14832
14867
  break;
@@ -14852,7 +14887,7 @@
14852
14887
  options = {};
14853
14888
  var object = {};
14854
14889
  if (options.defaults)
14855
- object.consistency = options.enums === String ? "PermanentStorage" : 0;
14890
+ object.consistency = options.enums === String ? "DiskAndHistory" : 0;
14856
14891
  if (message.consistency != null && message.hasOwnProperty("consistency"))
14857
14892
  object.consistency = options.enums === String ? $root.replit.goval.api.Flush.Consistency[message.consistency] === undefined ? message.consistency : $root.replit.goval.api.Flush.Consistency[message.consistency] : message.consistency;
14858
14893
  return object;
@@ -14888,12 +14923,12 @@
14888
14923
  * Consistency enum.
14889
14924
  * @name replit.goval.api.Flush.Consistency
14890
14925
  * @enum {number}
14891
- * @property {number} PermanentStorage=0 PermanentStorage value
14926
+ * @property {number} DiskAndHistory=0 DiskAndHistory value
14892
14927
  * @property {number} Disk=1 Disk value
14893
14928
  */
14894
14929
  Flush.Consistency = (function() {
14895
14930
  var valuesById = {}, values = Object.create(valuesById);
14896
- values[valuesById[0] = "PermanentStorage"] = 0;
14931
+ values[valuesById[0] = "DiskAndHistory"] = 0;
14897
14932
  values[valuesById[1] = "Disk"] = 1;
14898
14933
  return values;
14899
14934
  })();
@@ -36756,6 +36791,7 @@
36756
36791
  * @memberof replit.goval.api
36757
36792
  * @interface IPackageAdd
36758
36793
  * @property {Array.<replit.goval.api.Package|replit.goval.api.IPackage>|null} [pkgs] PackageAdd pkgs
36794
+ * @property {boolean|null} [useNewResponse] PackageAdd useNewResponse
36759
36795
  */
36760
36796
 
36761
36797
  /**
@@ -36781,6 +36817,14 @@
36781
36817
  */
36782
36818
  PackageAdd.prototype.pkgs = $util.emptyArray;
36783
36819
 
36820
+ /**
36821
+ * PackageAdd useNewResponse.
36822
+ * @member {boolean} useNewResponse
36823
+ * @memberof replit.goval.api.PackageAdd
36824
+ * @instance
36825
+ */
36826
+ PackageAdd.prototype.useNewResponse = false;
36827
+
36784
36828
  /**
36785
36829
  * Creates a new PackageAdd instance using the specified properties.
36786
36830
  * @function create
@@ -36808,6 +36852,8 @@
36808
36852
  if (message.pkgs != null && message.pkgs.length)
36809
36853
  for (var i = 0; i < message.pkgs.length; ++i)
36810
36854
  $root.replit.goval.api.Package.encode(message.pkgs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
36855
+ if (message.useNewResponse != null && Object.hasOwnProperty.call(message, "useNewResponse"))
36856
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useNewResponse);
36811
36857
  return writer;
36812
36858
  };
36813
36859
 
@@ -36848,6 +36894,10 @@
36848
36894
  message.pkgs.push($root.replit.goval.api.Package.decode(reader, reader.uint32()));
36849
36895
  break;
36850
36896
  }
36897
+ case 2: {
36898
+ message.useNewResponse = reader.bool();
36899
+ break;
36900
+ }
36851
36901
  default:
36852
36902
  reader.skipType(tag & 7);
36853
36903
  break;
@@ -36892,6 +36942,9 @@
36892
36942
  return "pkgs." + error;
36893
36943
  }
36894
36944
  }
36945
+ if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
36946
+ if (typeof message.useNewResponse !== "boolean")
36947
+ return "useNewResponse: boolean expected";
36895
36948
  return null;
36896
36949
  };
36897
36950
 
@@ -36917,6 +36970,8 @@
36917
36970
  message.pkgs[i] = $root.replit.goval.api.Package.fromObject(object.pkgs[i]);
36918
36971
  }
36919
36972
  }
36973
+ if (object.useNewResponse != null)
36974
+ message.useNewResponse = Boolean(object.useNewResponse);
36920
36975
  return message;
36921
36976
  };
36922
36977
 
@@ -36935,11 +36990,15 @@
36935
36990
  var object = {};
36936
36991
  if (options.arrays || options.defaults)
36937
36992
  object.pkgs = [];
36993
+ if (options.defaults)
36994
+ object.useNewResponse = false;
36938
36995
  if (message.pkgs && message.pkgs.length) {
36939
36996
  object.pkgs = [];
36940
36997
  for (var j = 0; j < message.pkgs.length; ++j)
36941
36998
  object.pkgs[j] = $root.replit.goval.api.Package.toObject(message.pkgs[j], options);
36942
36999
  }
37000
+ if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
37001
+ object.useNewResponse = message.useNewResponse;
36943
37002
  return object;
36944
37003
  };
36945
37004
 
@@ -36972,6 +37031,208 @@
36972
37031
  return PackageAdd;
36973
37032
  })();
36974
37033
 
37034
+ api.PackageAddResponse = (function() {
37035
+
37036
+ /**
37037
+ * Properties of a PackageAddResponse.
37038
+ * @memberof replit.goval.api
37039
+ * @interface IPackageAddResponse
37040
+ * @property {boolean|null} [installedSystemDependencies] PackageAddResponse installedSystemDependencies
37041
+ */
37042
+
37043
+ /**
37044
+ * Constructs a new PackageAddResponse.
37045
+ * @memberof replit.goval.api
37046
+ * @classdesc Represents a PackageAddResponse.
37047
+ * @constructor
37048
+ * @param {replit.goval.api.IPackageAddResponse=} [properties] Properties to set
37049
+ */
37050
+ function PackageAddResponse(properties) {
37051
+ if (properties)
37052
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37053
+ if (properties[keys[i]] != null)
37054
+ this[keys[i]] = properties[keys[i]];
37055
+ }
37056
+
37057
+ /**
37058
+ * PackageAddResponse installedSystemDependencies.
37059
+ * @member {boolean} installedSystemDependencies
37060
+ * @memberof replit.goval.api.PackageAddResponse
37061
+ * @instance
37062
+ */
37063
+ PackageAddResponse.prototype.installedSystemDependencies = false;
37064
+
37065
+ /**
37066
+ * Creates a new PackageAddResponse instance using the specified properties.
37067
+ * @function create
37068
+ * @memberof replit.goval.api.PackageAddResponse
37069
+ * @static
37070
+ * @param {replit.goval.api.IPackageAddResponse=} [properties] Properties to set
37071
+ * @returns {replit.goval.api.PackageAddResponse} PackageAddResponse instance
37072
+ */
37073
+ PackageAddResponse.create = function create(properties) {
37074
+ return PackageAddResponse.fromObject(properties);
37075
+ };
37076
+
37077
+ /**
37078
+ * Encodes the specified PackageAddResponse message. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
37079
+ * @function encode
37080
+ * @memberof replit.goval.api.PackageAddResponse
37081
+ * @static
37082
+ * @param {replit.goval.api.PackageAddResponse} message PackageAddResponse message or plain object to encode
37083
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37084
+ * @returns {$protobuf.Writer} Writer
37085
+ */
37086
+ PackageAddResponse.encode = function encode(message, writer) {
37087
+ if (!writer)
37088
+ writer = $Writer.create();
37089
+ if (message.installedSystemDependencies != null && Object.hasOwnProperty.call(message, "installedSystemDependencies"))
37090
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.installedSystemDependencies);
37091
+ return writer;
37092
+ };
37093
+
37094
+ /**
37095
+ * Encodes the specified PackageAddResponse message, length delimited. Does not implicitly {@link replit.goval.api.PackageAddResponse.verify|verify} messages.
37096
+ * @function encodeDelimited
37097
+ * @memberof replit.goval.api.PackageAddResponse
37098
+ * @static
37099
+ * @param {replit.goval.api.PackageAddResponse} message PackageAddResponse message or plain object to encode
37100
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37101
+ * @returns {$protobuf.Writer} Writer
37102
+ */
37103
+ PackageAddResponse.encodeDelimited = function encodeDelimited(message, writer) {
37104
+ return this.encode(message, writer).ldelim();
37105
+ };
37106
+
37107
+ /**
37108
+ * Decodes a PackageAddResponse message from the specified reader or buffer.
37109
+ * @function decode
37110
+ * @memberof replit.goval.api.PackageAddResponse
37111
+ * @static
37112
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37113
+ * @param {number} [length] Message length if known beforehand
37114
+ * @returns {replit.goval.api.PackageAddResponse} PackageAddResponse
37115
+ * @throws {Error} If the payload is not a reader or valid buffer
37116
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37117
+ */
37118
+ PackageAddResponse.decode = function decode(reader, length) {
37119
+ if (!(reader instanceof $Reader))
37120
+ reader = $Reader.create(reader);
37121
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PackageAddResponse();
37122
+ while (reader.pos < end) {
37123
+ var tag = reader.uint32();
37124
+ switch (tag >>> 3) {
37125
+ case 1: {
37126
+ message.installedSystemDependencies = reader.bool();
37127
+ break;
37128
+ }
37129
+ default:
37130
+ reader.skipType(tag & 7);
37131
+ break;
37132
+ }
37133
+ }
37134
+ return message;
37135
+ };
37136
+
37137
+ /**
37138
+ * Decodes a PackageAddResponse message from the specified reader or buffer, length delimited.
37139
+ * @function decodeDelimited
37140
+ * @memberof replit.goval.api.PackageAddResponse
37141
+ * @static
37142
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37143
+ * @returns {replit.goval.api.PackageAddResponse} PackageAddResponse
37144
+ * @throws {Error} If the payload is not a reader or valid buffer
37145
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37146
+ */
37147
+ PackageAddResponse.decodeDelimited = function decodeDelimited(reader) {
37148
+ if (!(reader instanceof $Reader))
37149
+ reader = new $Reader(reader);
37150
+ return this.decode(reader, reader.uint32());
37151
+ };
37152
+
37153
+ /**
37154
+ * Verifies a PackageAddResponse message.
37155
+ * @function verify
37156
+ * @memberof replit.goval.api.PackageAddResponse
37157
+ * @static
37158
+ * @param {Object.<string,*>} message Plain object to verify
37159
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37160
+ */
37161
+ PackageAddResponse.verify = function verify(message) {
37162
+ if (typeof message !== "object" || message === null)
37163
+ return "object expected";
37164
+ if (message.installedSystemDependencies != null && message.hasOwnProperty("installedSystemDependencies"))
37165
+ if (typeof message.installedSystemDependencies !== "boolean")
37166
+ return "installedSystemDependencies: boolean expected";
37167
+ return null;
37168
+ };
37169
+
37170
+ /**
37171
+ * Creates a PackageAddResponse message from a plain object. Also converts values to their respective internal types.
37172
+ * @function fromObject
37173
+ * @memberof replit.goval.api.PackageAddResponse
37174
+ * @static
37175
+ * @param {Object.<string,*>} object Plain object
37176
+ * @returns {replit.goval.api.PackageAddResponse} PackageAddResponse
37177
+ */
37178
+ PackageAddResponse.fromObject = function fromObject(object) {
37179
+ if (object instanceof $root.replit.goval.api.PackageAddResponse)
37180
+ return object;
37181
+ var message = new $root.replit.goval.api.PackageAddResponse();
37182
+ if (object.installedSystemDependencies != null)
37183
+ message.installedSystemDependencies = Boolean(object.installedSystemDependencies);
37184
+ return message;
37185
+ };
37186
+
37187
+ /**
37188
+ * Creates a plain object from a PackageAddResponse message. Also converts values to other types if specified.
37189
+ * @function toObject
37190
+ * @memberof replit.goval.api.PackageAddResponse
37191
+ * @static
37192
+ * @param {replit.goval.api.PackageAddResponse} message PackageAddResponse
37193
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
37194
+ * @returns {Object.<string,*>} Plain object
37195
+ */
37196
+ PackageAddResponse.toObject = function toObject(message, options) {
37197
+ if (!options)
37198
+ options = {};
37199
+ var object = {};
37200
+ if (options.defaults)
37201
+ object.installedSystemDependencies = false;
37202
+ if (message.installedSystemDependencies != null && message.hasOwnProperty("installedSystemDependencies"))
37203
+ object.installedSystemDependencies = message.installedSystemDependencies;
37204
+ return object;
37205
+ };
37206
+
37207
+ /**
37208
+ * Converts this PackageAddResponse to JSON.
37209
+ * @function toJSON
37210
+ * @memberof replit.goval.api.PackageAddResponse
37211
+ * @instance
37212
+ * @returns {Object.<string,*>} JSON object
37213
+ */
37214
+ PackageAddResponse.prototype.toJSON = function toJSON() {
37215
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37216
+ };
37217
+
37218
+ /**
37219
+ * Gets the default type url for PackageAddResponse
37220
+ * @function getTypeUrl
37221
+ * @memberof replit.goval.api.PackageAddResponse
37222
+ * @static
37223
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
37224
+ * @returns {string} The default type url
37225
+ */
37226
+ PackageAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
37227
+ if (typeUrlPrefix === undefined) {
37228
+ typeUrlPrefix = "type.googleapis.com";
37229
+ }
37230
+ return typeUrlPrefix + "/replit.goval.api.PackageAddResponse";
37231
+ };
37232
+
37233
+ return PackageAddResponse;
37234
+ })();
37235
+
36975
37236
  api.PackageRemove = (function() {
36976
37237
 
36977
37238
  /**
@@ -37455,6 +37716,7 @@
37455
37716
  * @property {number|null} [upmAddDurationMs] PackageInstallResponse upmAddDurationMs
37456
37717
  * @property {number|null} [upmLockDurationMs] PackageInstallResponse upmLockDurationMs
37457
37718
  * @property {number|null} [totalDurationMs] PackageInstallResponse totalDurationMs
37719
+ * @property {boolean|null} [installedSystemDependencies] PackageInstallResponse installedSystemDependencies
37458
37720
  */
37459
37721
 
37460
37722
  /**
@@ -37512,6 +37774,14 @@
37512
37774
  */
37513
37775
  PackageInstallResponse.prototype.totalDurationMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
37514
37776
 
37777
+ /**
37778
+ * PackageInstallResponse installedSystemDependencies.
37779
+ * @member {boolean} installedSystemDependencies
37780
+ * @memberof replit.goval.api.PackageInstallResponse
37781
+ * @instance
37782
+ */
37783
+ PackageInstallResponse.prototype.installedSystemDependencies = false;
37784
+
37515
37785
  /**
37516
37786
  * Creates a new PackageInstallResponse instance using the specified properties.
37517
37787
  * @function create
@@ -37547,6 +37817,8 @@
37547
37817
  writer.uint32(/* id 4, wireType 0 =*/32).int64(message.upmLockDurationMs);
37548
37818
  if (message.totalDurationMs != null && Object.hasOwnProperty.call(message, "totalDurationMs"))
37549
37819
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.totalDurationMs);
37820
+ if (message.installedSystemDependencies != null && Object.hasOwnProperty.call(message, "installedSystemDependencies"))
37821
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.installedSystemDependencies);
37550
37822
  return writer;
37551
37823
  };
37552
37824
 
@@ -37603,6 +37875,10 @@
37603
37875
  message.totalDurationMs = reader.int64();
37604
37876
  break;
37605
37877
  }
37878
+ case 6: {
37879
+ message.installedSystemDependencies = reader.bool();
37880
+ break;
37881
+ }
37606
37882
  default:
37607
37883
  reader.skipType(tag & 7);
37608
37884
  break;
@@ -37657,6 +37933,9 @@
37657
37933
  if (message.totalDurationMs != null && message.hasOwnProperty("totalDurationMs"))
37658
37934
  if (!$util.isInteger(message.totalDurationMs) && !(message.totalDurationMs && $util.isInteger(message.totalDurationMs.low) && $util.isInteger(message.totalDurationMs.high)))
37659
37935
  return "totalDurationMs: integer|Long expected";
37936
+ if (message.installedSystemDependencies != null && message.hasOwnProperty("installedSystemDependencies"))
37937
+ if (typeof message.installedSystemDependencies !== "boolean")
37938
+ return "installedSystemDependencies: boolean expected";
37660
37939
  return null;
37661
37940
  };
37662
37941
 
@@ -37715,6 +37994,8 @@
37715
37994
  message.totalDurationMs = object.totalDurationMs;
37716
37995
  else if (typeof object.totalDurationMs === "object")
37717
37996
  message.totalDurationMs = new $util.LongBits(object.totalDurationMs.low >>> 0, object.totalDurationMs.high >>> 0).toNumber();
37997
+ if (object.installedSystemDependencies != null)
37998
+ message.installedSystemDependencies = Boolean(object.installedSystemDependencies);
37718
37999
  return message;
37719
38000
  };
37720
38001
 
@@ -37754,6 +38035,7 @@
37754
38035
  object.totalDurationMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
37755
38036
  } else
37756
38037
  object.totalDurationMs = options.longs === String ? "0" : 0;
38038
+ object.installedSystemDependencies = false;
37757
38039
  }
37758
38040
  if (message.guessedPkgs && message.guessedPkgs.length) {
37759
38041
  object.guessedPkgs = [];
@@ -37780,6 +38062,8 @@
37780
38062
  object.totalDurationMs = options.longs === String ? String(message.totalDurationMs) : message.totalDurationMs;
37781
38063
  else
37782
38064
  object.totalDurationMs = options.longs === String ? $util.Long.prototype.toString.call(message.totalDurationMs) : options.longs === Number ? new $util.LongBits(message.totalDurationMs.low >>> 0, message.totalDurationMs.high >>> 0).toNumber() : message.totalDurationMs;
38065
+ if (message.installedSystemDependencies != null && message.hasOwnProperty("installedSystemDependencies"))
38066
+ object.installedSystemDependencies = message.installedSystemDependencies;
37783
38067
  return object;
37784
38068
  };
37785
38069
 
@@ -62634,6 +62918,7 @@
62634
62918
  * @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
62635
62919
  * @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
62636
62920
  * @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] ReplToken pid2Info
62921
+ * @property {boolean|null} [paid] ReplToken paid
62637
62922
  */
62638
62923
 
62639
62924
  /**
@@ -62788,6 +63073,14 @@
62788
63073
  */
62789
63074
  ReplToken.prototype.pid2Info = null;
62790
63075
 
63076
+ /**
63077
+ * ReplToken paid.
63078
+ * @member {boolean} paid
63079
+ * @memberof replit.goval.api.ReplToken
63080
+ * @instance
63081
+ */
63082
+ ReplToken.prototype.paid = false;
63083
+
62791
63084
  // OneOf field names bound to virtual getters and setters
62792
63085
  var $oneOfFields;
62793
63086
 
@@ -62862,6 +63155,8 @@
62862
63155
  $root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
62863
63156
  if (message.pid2Info != null && Object.hasOwnProperty.call(message, "pid2Info"))
62864
63157
  $root.replit.goval.api.repl.Pid2Binary.encode(message.pid2Info, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
63158
+ if (message.paid != null && Object.hasOwnProperty.call(message, "paid"))
63159
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.paid);
62865
63160
  return writer;
62866
63161
  };
62867
63162
 
@@ -62968,6 +63263,10 @@
62968
63263
  message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.decode(reader, reader.uint32());
62969
63264
  break;
62970
63265
  }
63266
+ case 20: {
63267
+ message.paid = reader.bool();
63268
+ break;
63269
+ }
62971
63270
  default:
62972
63271
  reader.skipType(tag & 7);
62973
63272
  break;
@@ -63113,6 +63412,9 @@
63113
63412
  if (error)
63114
63413
  return "pid2Info." + error;
63115
63414
  }
63415
+ if (message.paid != null && message.hasOwnProperty("paid"))
63416
+ if (typeof message.paid !== "boolean")
63417
+ return "paid: boolean expected";
63116
63418
  return null;
63117
63419
  };
63118
63420
 
@@ -63248,6 +63550,8 @@
63248
63550
  throw TypeError(".replit.goval.api.ReplToken.pid2Info: object expected");
63249
63551
  message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.fromObject(object.pid2Info);
63250
63552
  }
63553
+ if (object.paid != null)
63554
+ message.paid = Boolean(object.paid);
63251
63555
  return message;
63252
63556
  };
63253
63557
 
@@ -63281,6 +63585,7 @@
63281
63585
  object.interactiveResourceLimits = null;
63282
63586
  object.buildInfo = null;
63283
63587
  object.pid2Info = null;
63588
+ object.paid = false;
63284
63589
  }
63285
63590
  if (message.iat != null && message.hasOwnProperty("iat"))
63286
63591
  object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
@@ -63331,6 +63636,8 @@
63331
63636
  object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
63332
63637
  if (message.pid2Info != null && message.hasOwnProperty("pid2Info"))
63333
63638
  object.pid2Info = $root.replit.goval.api.repl.Pid2Binary.toObject(message.pid2Info, options);
63639
+ if (message.paid != null && message.hasOwnProperty("paid"))
63640
+ object.paid = message.paid;
63334
63641
  return object;
63335
63642
  };
63336
63643
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.39",
3
+ "version": "0.3.42",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",