@replit/protocol 0.3.63 → 0.4.1

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.
Files changed (3) hide show
  1. package/main/index.d.ts +107 -197
  2. package/main/index.js +251 -425
  3. package/package.json +1 -1
package/main/index.d.ts CHANGED
@@ -618,6 +618,9 @@ export namespace replit {
618
618
  /** Command secretsSetRequest */
619
619
  secretsSetRequest?: (replit.goval.api.SecretsSetRequest|replit.goval.api.ISecretsSetRequest|null);
620
620
 
621
+ /** Command replResourcesUpdateNotification */
622
+ replResourcesUpdateNotification?: (replit.goval.api.ReplResourcesUpdateNotification|replit.goval.api.IReplResourcesUpdateNotification|null);
623
+
621
624
  /** Command ref */
622
625
  ref?: (string|null);
623
626
 
@@ -1243,6 +1246,9 @@ export namespace replit {
1243
1246
  /** Command secretsSetRequest. */
1244
1247
  public secretsSetRequest?: (replit.goval.api.SecretsSetRequest|null);
1245
1248
 
1249
+ /** Command replResourcesUpdateNotification. */
1250
+ public replResourcesUpdateNotification?: (replit.goval.api.ReplResourcesUpdateNotification|null);
1251
+
1246
1252
  /** Command ref. */
1247
1253
  public ref: string;
1248
1254
 
@@ -1253,7 +1259,7 @@ export namespace replit {
1253
1259
  public forceTrace: boolean;
1254
1260
 
1255
1261
  /** Command body. */
1256
- public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"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"|"resetNixFilesystem"|"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"|"otFlushNotification"|"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"|"nixPackageInfoRequest"|"nixPackageInfoResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|"nixModuleConfigGetRequest"|"nixModuleConfigGetResponse"|"nixModuleConfigSetRequest"|"nixModuleConfigSetResponse"|"replspaceApiSSHTokenGetRequest"|"replspaceApiSSHTokenGetResponse"|"secretsGetRequest"|"secretsGetResponse"|"secretsSetRequest");
1262
+ public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"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"|"resetNixFilesystem"|"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"|"otFlushNotification"|"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"|"nixPackageInfoRequest"|"nixPackageInfoResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|"nixModuleConfigGetRequest"|"nixModuleConfigGetResponse"|"nixModuleConfigSetRequest"|"nixModuleConfigSetResponse"|"replspaceApiSSHTokenGetRequest"|"replspaceApiSSHTokenGetResponse"|"secretsGetRequest"|"secretsGetResponse"|"secretsSetRequest"|"replResourcesUpdateNotification");
1257
1263
 
1258
1264
  /**
1259
1265
  * Creates a new Command instance using the specified properties.
@@ -27403,6 +27409,103 @@ export namespace replit {
27403
27409
  public static getTypeUrl(typeUrlPrefix?: string): string;
27404
27410
  }
27405
27411
 
27412
+ /** Properties of a ReplResourcesUpdateNotification. */
27413
+ interface IReplResourcesUpdateNotification {
27414
+
27415
+ /** ReplResourcesUpdateNotification contents */
27416
+ contents?: (string|null);
27417
+ }
27418
+
27419
+ /** Represents a ReplResourcesUpdateNotification. */
27420
+ class ReplResourcesUpdateNotification {
27421
+
27422
+ /**
27423
+ * Constructs a new ReplResourcesUpdateNotification.
27424
+ * @param [properties] Properties to set
27425
+ */
27426
+ private constructor(properties?: replit.goval.api.IReplResourcesUpdateNotification);
27427
+
27428
+ /** ReplResourcesUpdateNotification contents. */
27429
+ public contents: string;
27430
+
27431
+ /**
27432
+ * Creates a new ReplResourcesUpdateNotification instance using the specified properties.
27433
+ * @param [properties] Properties to set
27434
+ * @returns ReplResourcesUpdateNotification instance
27435
+ */
27436
+ public static create(properties?: replit.goval.api.IReplResourcesUpdateNotification): replit.goval.api.ReplResourcesUpdateNotification;
27437
+
27438
+ /**
27439
+ * Encodes the specified ReplResourcesUpdateNotification message. Does not implicitly {@link replit.goval.api.ReplResourcesUpdateNotification.verify|verify} messages.
27440
+ * @param message ReplResourcesUpdateNotification message or plain object to encode
27441
+ * @param [writer] Writer to encode to
27442
+ * @returns Writer
27443
+ */
27444
+ public static encode(message: replit.goval.api.ReplResourcesUpdateNotification, writer?: $protobuf.Writer): $protobuf.Writer;
27445
+
27446
+ /**
27447
+ * Encodes the specified ReplResourcesUpdateNotification message, length delimited. Does not implicitly {@link replit.goval.api.ReplResourcesUpdateNotification.verify|verify} messages.
27448
+ * @param message ReplResourcesUpdateNotification message or plain object to encode
27449
+ * @param [writer] Writer to encode to
27450
+ * @returns Writer
27451
+ */
27452
+ public static encodeDelimited(message: replit.goval.api.ReplResourcesUpdateNotification, writer?: $protobuf.Writer): $protobuf.Writer;
27453
+
27454
+ /**
27455
+ * Decodes a ReplResourcesUpdateNotification message from the specified reader or buffer.
27456
+ * @param reader Reader or buffer to decode from
27457
+ * @param [length] Message length if known beforehand
27458
+ * @returns ReplResourcesUpdateNotification
27459
+ * @throws {Error} If the payload is not a reader or valid buffer
27460
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27461
+ */
27462
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ReplResourcesUpdateNotification;
27463
+
27464
+ /**
27465
+ * Decodes a ReplResourcesUpdateNotification message from the specified reader or buffer, length delimited.
27466
+ * @param reader Reader or buffer to decode from
27467
+ * @returns ReplResourcesUpdateNotification
27468
+ * @throws {Error} If the payload is not a reader or valid buffer
27469
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27470
+ */
27471
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ReplResourcesUpdateNotification;
27472
+
27473
+ /**
27474
+ * Verifies a ReplResourcesUpdateNotification message.
27475
+ * @param message Plain object to verify
27476
+ * @returns `null` if valid, otherwise the reason why it is not
27477
+ */
27478
+ public static verify(message: { [k: string]: any }): (string|null);
27479
+
27480
+ /**
27481
+ * Creates a ReplResourcesUpdateNotification message from a plain object. Also converts values to their respective internal types.
27482
+ * @param object Plain object
27483
+ * @returns ReplResourcesUpdateNotification
27484
+ */
27485
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ReplResourcesUpdateNotification;
27486
+
27487
+ /**
27488
+ * Creates a plain object from a ReplResourcesUpdateNotification message. Also converts values to other types if specified.
27489
+ * @param message ReplResourcesUpdateNotification
27490
+ * @param [options] Conversion options
27491
+ * @returns Plain object
27492
+ */
27493
+ public static toObject(message: replit.goval.api.ReplResourcesUpdateNotification, options?: $protobuf.IConversionOptions): { [k: string]: any };
27494
+
27495
+ /**
27496
+ * Converts this ReplResourcesUpdateNotification to JSON.
27497
+ * @returns JSON object
27498
+ */
27499
+ public toJSON(): { [k: string]: any };
27500
+
27501
+ /**
27502
+ * Gets the default type url for ReplResourcesUpdateNotification
27503
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
27504
+ * @returns The default type url
27505
+ */
27506
+ public static getTypeUrl(typeUrlPrefix?: string): string;
27507
+ }
27508
+
27406
27509
  /** Properties of a TLSCertificate. */
27407
27510
  interface ITLSCertificate {
27408
27511
 
@@ -29477,7 +29580,8 @@ export namespace replit {
29477
29580
  enum WireFormat {
29478
29581
  PROTOBUF = 0,
29479
29582
  JSON = 1,
29480
- PID2 = 2
29583
+ MUXED = 2,
29584
+ RIVER = 3
29481
29585
  }
29482
29586
 
29483
29587
  /** Properties of a Presenced. */
@@ -35913,97 +36017,6 @@ export namespace replit {
35913
36017
  /** Namespace features. */
35914
36018
  namespace features {
35915
36019
 
35916
- /** Properties of a Gpu. */
35917
- interface IGpu {
35918
- }
35919
-
35920
- /** Represents a Gpu. */
35921
- class Gpu {
35922
-
35923
- /**
35924
- * Constructs a new Gpu.
35925
- * @param [properties] Properties to set
35926
- */
35927
- private constructor(properties?: replit.goval.api.features.IGpu);
35928
-
35929
- /**
35930
- * Creates a new Gpu instance using the specified properties.
35931
- * @param [properties] Properties to set
35932
- * @returns Gpu instance
35933
- */
35934
- public static create(properties?: replit.goval.api.features.IGpu): replit.goval.api.features.Gpu;
35935
-
35936
- /**
35937
- * Encodes the specified Gpu message. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
35938
- * @param message Gpu message or plain object to encode
35939
- * @param [writer] Writer to encode to
35940
- * @returns Writer
35941
- */
35942
- public static encode(message: replit.goval.api.features.Gpu, writer?: $protobuf.Writer): $protobuf.Writer;
35943
-
35944
- /**
35945
- * Encodes the specified Gpu message, length delimited. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
35946
- * @param message Gpu message or plain object to encode
35947
- * @param [writer] Writer to encode to
35948
- * @returns Writer
35949
- */
35950
- public static encodeDelimited(message: replit.goval.api.features.Gpu, writer?: $protobuf.Writer): $protobuf.Writer;
35951
-
35952
- /**
35953
- * Decodes a Gpu message from the specified reader or buffer.
35954
- * @param reader Reader or buffer to decode from
35955
- * @param [length] Message length if known beforehand
35956
- * @returns Gpu
35957
- * @throws {Error} If the payload is not a reader or valid buffer
35958
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35959
- */
35960
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.features.Gpu;
35961
-
35962
- /**
35963
- * Decodes a Gpu message from the specified reader or buffer, length delimited.
35964
- * @param reader Reader or buffer to decode from
35965
- * @returns Gpu
35966
- * @throws {Error} If the payload is not a reader or valid buffer
35967
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35968
- */
35969
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.features.Gpu;
35970
-
35971
- /**
35972
- * Verifies a Gpu message.
35973
- * @param message Plain object to verify
35974
- * @returns `null` if valid, otherwise the reason why it is not
35975
- */
35976
- public static verify(message: { [k: string]: any }): (string|null);
35977
-
35978
- /**
35979
- * Creates a Gpu message from a plain object. Also converts values to their respective internal types.
35980
- * @param object Plain object
35981
- * @returns Gpu
35982
- */
35983
- public static fromObject(object: { [k: string]: any }): replit.goval.api.features.Gpu;
35984
-
35985
- /**
35986
- * Creates a plain object from a Gpu message. Also converts values to other types if specified.
35987
- * @param message Gpu
35988
- * @param [options] Conversion options
35989
- * @returns Plain object
35990
- */
35991
- public static toObject(message: replit.goval.api.features.Gpu, options?: $protobuf.IConversionOptions): { [k: string]: any };
35992
-
35993
- /**
35994
- * Converts this Gpu to JSON.
35995
- * @returns JSON object
35996
- */
35997
- public toJSON(): { [k: string]: any };
35998
-
35999
- /**
36000
- * Gets the default type url for Gpu
36001
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36002
- * @returns The default type url
36003
- */
36004
- public static getTypeUrl(typeUrlPrefix?: string): string;
36005
- }
36006
-
36007
36020
  /** Properties of a Boosted. */
36008
36021
  interface IBoosted {
36009
36022
  }
@@ -36095,109 +36108,12 @@ export namespace replit {
36095
36108
  public static getTypeUrl(typeUrlPrefix?: string): string;
36096
36109
  }
36097
36110
 
36098
- /** Properties of a Backpack. */
36099
- interface IBackpack {
36100
- }
36101
-
36102
- /** Represents a Backpack. */
36103
- class Backpack {
36104
-
36105
- /**
36106
- * Constructs a new Backpack.
36107
- * @param [properties] Properties to set
36108
- */
36109
- private constructor(properties?: replit.goval.api.features.IBackpack);
36110
-
36111
- /**
36112
- * Creates a new Backpack instance using the specified properties.
36113
- * @param [properties] Properties to set
36114
- * @returns Backpack instance
36115
- */
36116
- public static create(properties?: replit.goval.api.features.IBackpack): replit.goval.api.features.Backpack;
36117
-
36118
- /**
36119
- * Encodes the specified Backpack message. Does not implicitly {@link replit.goval.api.features.Backpack.verify|verify} messages.
36120
- * @param message Backpack message or plain object to encode
36121
- * @param [writer] Writer to encode to
36122
- * @returns Writer
36123
- */
36124
- public static encode(message: replit.goval.api.features.Backpack, writer?: $protobuf.Writer): $protobuf.Writer;
36125
-
36126
- /**
36127
- * Encodes the specified Backpack message, length delimited. Does not implicitly {@link replit.goval.api.features.Backpack.verify|verify} messages.
36128
- * @param message Backpack message or plain object to encode
36129
- * @param [writer] Writer to encode to
36130
- * @returns Writer
36131
- */
36132
- public static encodeDelimited(message: replit.goval.api.features.Backpack, writer?: $protobuf.Writer): $protobuf.Writer;
36133
-
36134
- /**
36135
- * Decodes a Backpack message from the specified reader or buffer.
36136
- * @param reader Reader or buffer to decode from
36137
- * @param [length] Message length if known beforehand
36138
- * @returns Backpack
36139
- * @throws {Error} If the payload is not a reader or valid buffer
36140
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
36141
- */
36142
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.features.Backpack;
36143
-
36144
- /**
36145
- * Decodes a Backpack message from the specified reader or buffer, length delimited.
36146
- * @param reader Reader or buffer to decode from
36147
- * @returns Backpack
36148
- * @throws {Error} If the payload is not a reader or valid buffer
36149
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
36150
- */
36151
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.features.Backpack;
36152
-
36153
- /**
36154
- * Verifies a Backpack message.
36155
- * @param message Plain object to verify
36156
- * @returns `null` if valid, otherwise the reason why it is not
36157
- */
36158
- public static verify(message: { [k: string]: any }): (string|null);
36159
-
36160
- /**
36161
- * Creates a Backpack message from a plain object. Also converts values to their respective internal types.
36162
- * @param object Plain object
36163
- * @returns Backpack
36164
- */
36165
- public static fromObject(object: { [k: string]: any }): replit.goval.api.features.Backpack;
36166
-
36167
- /**
36168
- * Creates a plain object from a Backpack message. Also converts values to other types if specified.
36169
- * @param message Backpack
36170
- * @param [options] Conversion options
36171
- * @returns Plain object
36172
- */
36173
- public static toObject(message: replit.goval.api.features.Backpack, options?: $protobuf.IConversionOptions): { [k: string]: any };
36174
-
36175
- /**
36176
- * Converts this Backpack to JSON.
36177
- * @returns JSON object
36178
- */
36179
- public toJSON(): { [k: string]: any };
36180
-
36181
- /**
36182
- * Gets the default type url for Backpack
36183
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36184
- * @returns The default type url
36185
- */
36186
- public static getTypeUrl(typeUrlPrefix?: string): string;
36187
- }
36188
-
36189
36111
  /** Properties of a Feature. */
36190
36112
  interface IFeature {
36191
36113
 
36192
- /** Feature gpu */
36193
- gpu?: (replit.goval.api.features.Gpu|replit.goval.api.features.IGpu|null);
36194
-
36195
36114
  /** Feature boosted */
36196
36115
  boosted?: (replit.goval.api.features.Boosted|replit.goval.api.features.IBoosted|null);
36197
36116
 
36198
- /** Feature backpack */
36199
- backpack?: (replit.goval.api.features.Backpack|replit.goval.api.features.IBackpack|null);
36200
-
36201
36117
  /** Feature required */
36202
36118
  required?: (boolean|null);
36203
36119
  }
@@ -36211,20 +36127,14 @@ export namespace replit {
36211
36127
  */
36212
36128
  private constructor(properties?: replit.goval.api.features.IFeature);
36213
36129
 
36214
- /** Feature gpu. */
36215
- public gpu?: (replit.goval.api.features.Gpu|null);
36216
-
36217
36130
  /** Feature boosted. */
36218
36131
  public boosted?: (replit.goval.api.features.Boosted|null);
36219
36132
 
36220
- /** Feature backpack. */
36221
- public backpack?: (replit.goval.api.features.Backpack|null);
36222
-
36223
36133
  /** Feature required. */
36224
36134
  public required: boolean;
36225
36135
 
36226
36136
  /** Feature feature. */
36227
- public feature?: ("gpu"|"boosted"|"backpack");
36137
+ public feature?: "boosted";
36228
36138
 
36229
36139
  /**
36230
36140
  * Creates a new Feature instance using the specified properties.
package/main/index.js CHANGED
@@ -251,6 +251,7 @@
251
251
  * @property {replit.goval.api.SecretsGetRequest|replit.goval.api.ISecretsGetRequest|null} [secretsGetRequest] Command secretsGetRequest
252
252
  * @property {replit.goval.api.SecretsGetResponse|replit.goval.api.ISecretsGetResponse|null} [secretsGetResponse] Command secretsGetResponse
253
253
  * @property {replit.goval.api.SecretsSetRequest|replit.goval.api.ISecretsSetRequest|null} [secretsSetRequest] Command secretsSetRequest
254
+ * @property {replit.goval.api.ReplResourcesUpdateNotification|replit.goval.api.IReplResourcesUpdateNotification|null} [replResourcesUpdateNotification] Command replResourcesUpdateNotification
254
255
  * @property {string|null} [ref] Command ref
255
256
  * @property {Object.<string,string>|null} [traceInfo] Command traceInfo
256
257
  * @property {boolean|null} [forceTrace] Command forceTrace
@@ -1887,6 +1888,14 @@
1887
1888
  */
1888
1889
  Command.prototype.secretsSetRequest = null;
1889
1890
 
1891
+ /**
1892
+ * Command replResourcesUpdateNotification.
1893
+ * @member {replit.goval.api.ReplResourcesUpdateNotification|null|undefined} replResourcesUpdateNotification
1894
+ * @memberof replit.goval.api.Command
1895
+ * @instance
1896
+ */
1897
+ Command.prototype.replResourcesUpdateNotification = null;
1898
+
1890
1899
  /**
1891
1900
  * Command ref.
1892
1901
  * @member {string} ref
@@ -1916,12 +1925,12 @@
1916
1925
 
1917
1926
  /**
1918
1927
  * Command body.
1919
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"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"|"resetNixFilesystem"|"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"|"otFlushNotification"|"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"|"nixPackageInfoRequest"|"nixPackageInfoResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|"nixModuleConfigGetRequest"|"nixModuleConfigGetResponse"|"nixModuleConfigSetRequest"|"nixModuleConfigSetResponse"|"replspaceApiSSHTokenGetRequest"|"replspaceApiSSHTokenGetResponse"|"secretsGetRequest"|"secretsGetResponse"|"secretsSetRequest"|undefined} body
1928
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"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"|"resetNixFilesystem"|"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"|"otFlushNotification"|"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"|"nixPackageInfoRequest"|"nixPackageInfoResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"replspaceApiShellTracker"|"nixModuleConfigGetRequest"|"nixModuleConfigGetResponse"|"nixModuleConfigSetRequest"|"nixModuleConfigSetResponse"|"replspaceApiSSHTokenGetRequest"|"replspaceApiSSHTokenGetResponse"|"secretsGetRequest"|"secretsGetResponse"|"secretsSetRequest"|"replResourcesUpdateNotification"|undefined} body
1920
1929
  * @memberof replit.goval.api.Command
1921
1930
  * @instance
1922
1931
  */
1923
1932
  Object.defineProperty(Command.prototype, "body", {
1924
- get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "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", "resetNixFilesystem", "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", "otFlushNotification", "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", "nixPackageInfoRequest", "nixPackageInfoResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker", "nixModuleConfigGetRequest", "nixModuleConfigGetResponse", "nixModuleConfigSetRequest", "nixModuleConfigSetResponse", "replspaceApiSSHTokenGetRequest", "replspaceApiSSHTokenGetResponse", "secretsGetRequest", "secretsGetResponse", "secretsSetRequest"]),
1933
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "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", "resetNixFilesystem", "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", "otFlushNotification", "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", "nixPackageInfoRequest", "nixPackageInfoResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "replspaceApiShellTracker", "nixModuleConfigGetRequest", "nixModuleConfigGetResponse", "nixModuleConfigSetRequest", "nixModuleConfigSetResponse", "replspaceApiSSHTokenGetRequest", "replspaceApiSSHTokenGetResponse", "secretsGetRequest", "secretsGetResponse", "secretsSetRequest", "replResourcesUpdateNotification"]),
1925
1934
  set: $util.oneOfSetter($oneOfFields)
1926
1935
  });
1927
1936
 
@@ -2353,6 +2362,8 @@
2353
2362
  $root.replit.goval.api.SecretsGetResponse.encode(message.secretsGetResponse, writer.uint32(/* id 467, wireType 2 =*/3738).fork()).ldelim();
2354
2363
  if (message.secretsSetRequest != null && Object.hasOwnProperty.call(message, "secretsSetRequest"))
2355
2364
  $root.replit.goval.api.SecretsSetRequest.encode(message.secretsSetRequest, writer.uint32(/* id 468, wireType 2 =*/3746).fork()).ldelim();
2365
+ if (message.replResourcesUpdateNotification != null && Object.hasOwnProperty.call(message, "replResourcesUpdateNotification"))
2366
+ $root.replit.goval.api.ReplResourcesUpdateNotification.encode(message.replResourcesUpdateNotification, writer.uint32(/* id 600, wireType 2 =*/4802).fork()).ldelim();
2356
2367
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
2357
2368
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
2358
2369
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -3202,6 +3213,10 @@
3202
3213
  message.secretsSetRequest = $root.replit.goval.api.SecretsSetRequest.decode(reader, reader.uint32());
3203
3214
  break;
3204
3215
  }
3216
+ case 600: {
3217
+ message.replResourcesUpdateNotification = $root.replit.goval.api.ReplResourcesUpdateNotification.decode(reader, reader.uint32());
3218
+ break;
3219
+ }
3205
3220
  case 1000: {
3206
3221
  message.ref = reader.string();
3207
3222
  break;
@@ -5239,6 +5254,16 @@
5239
5254
  return "secretsSetRequest." + error;
5240
5255
  }
5241
5256
  }
5257
+ if (message.replResourcesUpdateNotification != null && message.hasOwnProperty("replResourcesUpdateNotification")) {
5258
+ if (properties.body === 1)
5259
+ return "body: multiple values";
5260
+ properties.body = 1;
5261
+ {
5262
+ var error = $root.replit.goval.api.ReplResourcesUpdateNotification.verify(message.replResourcesUpdateNotification);
5263
+ if (error)
5264
+ return "replResourcesUpdateNotification." + error;
5265
+ }
5266
+ }
5242
5267
  if (message.ref != null && message.hasOwnProperty("ref"))
5243
5268
  if (!$util.isString(message.ref))
5244
5269
  return "ref: string expected";
@@ -6247,6 +6272,11 @@
6247
6272
  throw TypeError(".replit.goval.api.Command.secretsSetRequest: object expected");
6248
6273
  message.secretsSetRequest = $root.replit.goval.api.SecretsSetRequest.fromObject(object.secretsSetRequest);
6249
6274
  }
6275
+ if (object.replResourcesUpdateNotification != null) {
6276
+ if (typeof object.replResourcesUpdateNotification !== "object")
6277
+ throw TypeError(".replit.goval.api.Command.replResourcesUpdateNotification: object expected");
6278
+ message.replResourcesUpdateNotification = $root.replit.goval.api.ReplResourcesUpdateNotification.fromObject(object.replResourcesUpdateNotification);
6279
+ }
6250
6280
  if (object.ref != null)
6251
6281
  message.ref = String(object.ref);
6252
6282
  if (object.traceInfo) {
@@ -7286,6 +7316,11 @@
7286
7316
  if (options.oneofs)
7287
7317
  object.body = "secretsSetRequest";
7288
7318
  }
7319
+ if (message.replResourcesUpdateNotification != null && message.hasOwnProperty("replResourcesUpdateNotification")) {
7320
+ object.replResourcesUpdateNotification = $root.replit.goval.api.ReplResourcesUpdateNotification.toObject(message.replResourcesUpdateNotification, options);
7321
+ if (options.oneofs)
7322
+ object.body = "replResourcesUpdateNotification";
7323
+ }
7289
7324
  if (message.ref != null && message.hasOwnProperty("ref"))
7290
7325
  object.ref = message.ref;
7291
7326
  var keys2;
@@ -69148,6 +69183,208 @@
69148
69183
  return SecretsSetRequest;
69149
69184
  })();
69150
69185
 
69186
+ api.ReplResourcesUpdateNotification = (function() {
69187
+
69188
+ /**
69189
+ * Properties of a ReplResourcesUpdateNotification.
69190
+ * @memberof replit.goval.api
69191
+ * @interface IReplResourcesUpdateNotification
69192
+ * @property {string|null} [contents] ReplResourcesUpdateNotification contents
69193
+ */
69194
+
69195
+ /**
69196
+ * Constructs a new ReplResourcesUpdateNotification.
69197
+ * @memberof replit.goval.api
69198
+ * @classdesc Represents a ReplResourcesUpdateNotification.
69199
+ * @constructor
69200
+ * @param {replit.goval.api.IReplResourcesUpdateNotification=} [properties] Properties to set
69201
+ */
69202
+ function ReplResourcesUpdateNotification(properties) {
69203
+ if (properties)
69204
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
69205
+ if (properties[keys[i]] != null)
69206
+ this[keys[i]] = properties[keys[i]];
69207
+ }
69208
+
69209
+ /**
69210
+ * ReplResourcesUpdateNotification contents.
69211
+ * @member {string} contents
69212
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69213
+ * @instance
69214
+ */
69215
+ ReplResourcesUpdateNotification.prototype.contents = "";
69216
+
69217
+ /**
69218
+ * Creates a new ReplResourcesUpdateNotification instance using the specified properties.
69219
+ * @function create
69220
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69221
+ * @static
69222
+ * @param {replit.goval.api.IReplResourcesUpdateNotification=} [properties] Properties to set
69223
+ * @returns {replit.goval.api.ReplResourcesUpdateNotification} ReplResourcesUpdateNotification instance
69224
+ */
69225
+ ReplResourcesUpdateNotification.create = function create(properties) {
69226
+ return ReplResourcesUpdateNotification.fromObject(properties);
69227
+ };
69228
+
69229
+ /**
69230
+ * Encodes the specified ReplResourcesUpdateNotification message. Does not implicitly {@link replit.goval.api.ReplResourcesUpdateNotification.verify|verify} messages.
69231
+ * @function encode
69232
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69233
+ * @static
69234
+ * @param {replit.goval.api.ReplResourcesUpdateNotification} message ReplResourcesUpdateNotification message or plain object to encode
69235
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69236
+ * @returns {$protobuf.Writer} Writer
69237
+ */
69238
+ ReplResourcesUpdateNotification.encode = function encode(message, writer) {
69239
+ if (!writer)
69240
+ writer = $Writer.create();
69241
+ if (message.contents != null && Object.hasOwnProperty.call(message, "contents"))
69242
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.contents);
69243
+ return writer;
69244
+ };
69245
+
69246
+ /**
69247
+ * Encodes the specified ReplResourcesUpdateNotification message, length delimited. Does not implicitly {@link replit.goval.api.ReplResourcesUpdateNotification.verify|verify} messages.
69248
+ * @function encodeDelimited
69249
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69250
+ * @static
69251
+ * @param {replit.goval.api.ReplResourcesUpdateNotification} message ReplResourcesUpdateNotification message or plain object to encode
69252
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69253
+ * @returns {$protobuf.Writer} Writer
69254
+ */
69255
+ ReplResourcesUpdateNotification.encodeDelimited = function encodeDelimited(message, writer) {
69256
+ return this.encode(message, writer).ldelim();
69257
+ };
69258
+
69259
+ /**
69260
+ * Decodes a ReplResourcesUpdateNotification message from the specified reader or buffer.
69261
+ * @function decode
69262
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69263
+ * @static
69264
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69265
+ * @param {number} [length] Message length if known beforehand
69266
+ * @returns {replit.goval.api.ReplResourcesUpdateNotification} ReplResourcesUpdateNotification
69267
+ * @throws {Error} If the payload is not a reader or valid buffer
69268
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69269
+ */
69270
+ ReplResourcesUpdateNotification.decode = function decode(reader, length) {
69271
+ if (!(reader instanceof $Reader))
69272
+ reader = $Reader.create(reader);
69273
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplResourcesUpdateNotification();
69274
+ while (reader.pos < end) {
69275
+ var tag = reader.uint32();
69276
+ switch (tag >>> 3) {
69277
+ case 1: {
69278
+ message.contents = reader.string();
69279
+ break;
69280
+ }
69281
+ default:
69282
+ reader.skipType(tag & 7);
69283
+ break;
69284
+ }
69285
+ }
69286
+ return message;
69287
+ };
69288
+
69289
+ /**
69290
+ * Decodes a ReplResourcesUpdateNotification message from the specified reader or buffer, length delimited.
69291
+ * @function decodeDelimited
69292
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69293
+ * @static
69294
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69295
+ * @returns {replit.goval.api.ReplResourcesUpdateNotification} ReplResourcesUpdateNotification
69296
+ * @throws {Error} If the payload is not a reader or valid buffer
69297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69298
+ */
69299
+ ReplResourcesUpdateNotification.decodeDelimited = function decodeDelimited(reader) {
69300
+ if (!(reader instanceof $Reader))
69301
+ reader = new $Reader(reader);
69302
+ return this.decode(reader, reader.uint32());
69303
+ };
69304
+
69305
+ /**
69306
+ * Verifies a ReplResourcesUpdateNotification message.
69307
+ * @function verify
69308
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69309
+ * @static
69310
+ * @param {Object.<string,*>} message Plain object to verify
69311
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
69312
+ */
69313
+ ReplResourcesUpdateNotification.verify = function verify(message) {
69314
+ if (typeof message !== "object" || message === null)
69315
+ return "object expected";
69316
+ if (message.contents != null && message.hasOwnProperty("contents"))
69317
+ if (!$util.isString(message.contents))
69318
+ return "contents: string expected";
69319
+ return null;
69320
+ };
69321
+
69322
+ /**
69323
+ * Creates a ReplResourcesUpdateNotification message from a plain object. Also converts values to their respective internal types.
69324
+ * @function fromObject
69325
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69326
+ * @static
69327
+ * @param {Object.<string,*>} object Plain object
69328
+ * @returns {replit.goval.api.ReplResourcesUpdateNotification} ReplResourcesUpdateNotification
69329
+ */
69330
+ ReplResourcesUpdateNotification.fromObject = function fromObject(object) {
69331
+ if (object instanceof $root.replit.goval.api.ReplResourcesUpdateNotification)
69332
+ return object;
69333
+ var message = new $root.replit.goval.api.ReplResourcesUpdateNotification();
69334
+ if (object.contents != null)
69335
+ message.contents = String(object.contents);
69336
+ return message;
69337
+ };
69338
+
69339
+ /**
69340
+ * Creates a plain object from a ReplResourcesUpdateNotification message. Also converts values to other types if specified.
69341
+ * @function toObject
69342
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69343
+ * @static
69344
+ * @param {replit.goval.api.ReplResourcesUpdateNotification} message ReplResourcesUpdateNotification
69345
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
69346
+ * @returns {Object.<string,*>} Plain object
69347
+ */
69348
+ ReplResourcesUpdateNotification.toObject = function toObject(message, options) {
69349
+ if (!options)
69350
+ options = {};
69351
+ var object = {};
69352
+ if (options.defaults)
69353
+ object.contents = "";
69354
+ if (message.contents != null && message.hasOwnProperty("contents"))
69355
+ object.contents = message.contents;
69356
+ return object;
69357
+ };
69358
+
69359
+ /**
69360
+ * Converts this ReplResourcesUpdateNotification to JSON.
69361
+ * @function toJSON
69362
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69363
+ * @instance
69364
+ * @returns {Object.<string,*>} JSON object
69365
+ */
69366
+ ReplResourcesUpdateNotification.prototype.toJSON = function toJSON() {
69367
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
69368
+ };
69369
+
69370
+ /**
69371
+ * Gets the default type url for ReplResourcesUpdateNotification
69372
+ * @function getTypeUrl
69373
+ * @memberof replit.goval.api.ReplResourcesUpdateNotification
69374
+ * @static
69375
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
69376
+ * @returns {string} The default type url
69377
+ */
69378
+ ReplResourcesUpdateNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
69379
+ if (typeUrlPrefix === undefined) {
69380
+ typeUrlPrefix = "type.googleapis.com";
69381
+ }
69382
+ return typeUrlPrefix + "/replit.goval.api.ReplResourcesUpdateNotification";
69383
+ };
69384
+
69385
+ return ReplResourcesUpdateNotification;
69386
+ })();
69387
+
69151
69388
  api.TLSCertificate = (function() {
69152
69389
 
69153
69390
  /**
@@ -74001,6 +74238,7 @@
74001
74238
  case 0:
74002
74239
  case 1:
74003
74240
  case 2:
74241
+ case 3:
74004
74242
  break;
74005
74243
  }
74006
74244
  if (message.presenced != null && message.hasOwnProperty("presenced")) {
@@ -74130,10 +74368,14 @@
74130
74368
  case 1:
74131
74369
  message.format = 1;
74132
74370
  break;
74133
- case "PID2":
74371
+ case "MUXED":
74134
74372
  case 2:
74135
74373
  message.format = 2;
74136
74374
  break;
74375
+ case "RIVER":
74376
+ case 3:
74377
+ message.format = 3;
74378
+ break;
74137
74379
  }
74138
74380
  if (object.presenced != null) {
74139
74381
  if (typeof object.presenced !== "object")
@@ -74739,13 +74981,15 @@
74739
74981
  * @enum {number}
74740
74982
  * @property {number} PROTOBUF=0 PROTOBUF value
74741
74983
  * @property {number} JSON=1 JSON value
74742
- * @property {number} PID2=2 PID2 value
74984
+ * @property {number} MUXED=2 MUXED value
74985
+ * @property {number} RIVER=3 RIVER value
74743
74986
  */
74744
74987
  ReplToken.WireFormat = (function() {
74745
74988
  var valuesById = {}, values = Object.create(valuesById);
74746
74989
  values[valuesById[0] = "PROTOBUF"] = 0;
74747
74990
  values[valuesById[1] = "JSON"] = 1;
74748
- values[valuesById[2] = "PID2"] = 2;
74991
+ values[valuesById[2] = "MUXED"] = 2;
74992
+ values[valuesById[3] = "RIVER"] = 3;
74749
74993
  return values;
74750
74994
  })();
74751
74995
 
@@ -89239,180 +89483,6 @@
89239
89483
  */
89240
89484
  var features = {};
89241
89485
 
89242
- features.Gpu = (function() {
89243
-
89244
- /**
89245
- * Properties of a Gpu.
89246
- * @memberof replit.goval.api.features
89247
- * @interface IGpu
89248
- */
89249
-
89250
- /**
89251
- * Constructs a new Gpu.
89252
- * @memberof replit.goval.api.features
89253
- * @classdesc Represents a Gpu.
89254
- * @constructor
89255
- * @param {replit.goval.api.features.IGpu=} [properties] Properties to set
89256
- */
89257
- function Gpu(properties) {
89258
- if (properties)
89259
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89260
- if (properties[keys[i]] != null)
89261
- this[keys[i]] = properties[keys[i]];
89262
- }
89263
-
89264
- /**
89265
- * Creates a new Gpu instance using the specified properties.
89266
- * @function create
89267
- * @memberof replit.goval.api.features.Gpu
89268
- * @static
89269
- * @param {replit.goval.api.features.IGpu=} [properties] Properties to set
89270
- * @returns {replit.goval.api.features.Gpu} Gpu instance
89271
- */
89272
- Gpu.create = function create(properties) {
89273
- return Gpu.fromObject(properties);
89274
- };
89275
-
89276
- /**
89277
- * Encodes the specified Gpu message. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
89278
- * @function encode
89279
- * @memberof replit.goval.api.features.Gpu
89280
- * @static
89281
- * @param {replit.goval.api.features.Gpu} message Gpu message or plain object to encode
89282
- * @param {$protobuf.Writer} [writer] Writer to encode to
89283
- * @returns {$protobuf.Writer} Writer
89284
- */
89285
- Gpu.encode = function encode(message, writer) {
89286
- if (!writer)
89287
- writer = $Writer.create();
89288
- return writer;
89289
- };
89290
-
89291
- /**
89292
- * Encodes the specified Gpu message, length delimited. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
89293
- * @function encodeDelimited
89294
- * @memberof replit.goval.api.features.Gpu
89295
- * @static
89296
- * @param {replit.goval.api.features.Gpu} message Gpu message or plain object to encode
89297
- * @param {$protobuf.Writer} [writer] Writer to encode to
89298
- * @returns {$protobuf.Writer} Writer
89299
- */
89300
- Gpu.encodeDelimited = function encodeDelimited(message, writer) {
89301
- return this.encode(message, writer).ldelim();
89302
- };
89303
-
89304
- /**
89305
- * Decodes a Gpu message from the specified reader or buffer.
89306
- * @function decode
89307
- * @memberof replit.goval.api.features.Gpu
89308
- * @static
89309
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89310
- * @param {number} [length] Message length if known beforehand
89311
- * @returns {replit.goval.api.features.Gpu} Gpu
89312
- * @throws {Error} If the payload is not a reader or valid buffer
89313
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
89314
- */
89315
- Gpu.decode = function decode(reader, length) {
89316
- if (!(reader instanceof $Reader))
89317
- reader = $Reader.create(reader);
89318
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Gpu();
89319
- while (reader.pos < end) {
89320
- var tag = reader.uint32();
89321
- switch (tag >>> 3) {
89322
- default:
89323
- reader.skipType(tag & 7);
89324
- break;
89325
- }
89326
- }
89327
- return message;
89328
- };
89329
-
89330
- /**
89331
- * Decodes a Gpu message from the specified reader or buffer, length delimited.
89332
- * @function decodeDelimited
89333
- * @memberof replit.goval.api.features.Gpu
89334
- * @static
89335
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89336
- * @returns {replit.goval.api.features.Gpu} Gpu
89337
- * @throws {Error} If the payload is not a reader or valid buffer
89338
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
89339
- */
89340
- Gpu.decodeDelimited = function decodeDelimited(reader) {
89341
- if (!(reader instanceof $Reader))
89342
- reader = new $Reader(reader);
89343
- return this.decode(reader, reader.uint32());
89344
- };
89345
-
89346
- /**
89347
- * Verifies a Gpu message.
89348
- * @function verify
89349
- * @memberof replit.goval.api.features.Gpu
89350
- * @static
89351
- * @param {Object.<string,*>} message Plain object to verify
89352
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
89353
- */
89354
- Gpu.verify = function verify(message) {
89355
- if (typeof message !== "object" || message === null)
89356
- return "object expected";
89357
- return null;
89358
- };
89359
-
89360
- /**
89361
- * Creates a Gpu message from a plain object. Also converts values to their respective internal types.
89362
- * @function fromObject
89363
- * @memberof replit.goval.api.features.Gpu
89364
- * @static
89365
- * @param {Object.<string,*>} object Plain object
89366
- * @returns {replit.goval.api.features.Gpu} Gpu
89367
- */
89368
- Gpu.fromObject = function fromObject(object) {
89369
- if (object instanceof $root.replit.goval.api.features.Gpu)
89370
- return object;
89371
- return new $root.replit.goval.api.features.Gpu();
89372
- };
89373
-
89374
- /**
89375
- * Creates a plain object from a Gpu message. Also converts values to other types if specified.
89376
- * @function toObject
89377
- * @memberof replit.goval.api.features.Gpu
89378
- * @static
89379
- * @param {replit.goval.api.features.Gpu} message Gpu
89380
- * @param {$protobuf.IConversionOptions} [options] Conversion options
89381
- * @returns {Object.<string,*>} Plain object
89382
- */
89383
- Gpu.toObject = function toObject() {
89384
- return {};
89385
- };
89386
-
89387
- /**
89388
- * Converts this Gpu to JSON.
89389
- * @function toJSON
89390
- * @memberof replit.goval.api.features.Gpu
89391
- * @instance
89392
- * @returns {Object.<string,*>} JSON object
89393
- */
89394
- Gpu.prototype.toJSON = function toJSON() {
89395
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
89396
- };
89397
-
89398
- /**
89399
- * Gets the default type url for Gpu
89400
- * @function getTypeUrl
89401
- * @memberof replit.goval.api.features.Gpu
89402
- * @static
89403
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
89404
- * @returns {string} The default type url
89405
- */
89406
- Gpu.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
89407
- if (typeUrlPrefix === undefined) {
89408
- typeUrlPrefix = "type.googleapis.com";
89409
- }
89410
- return typeUrlPrefix + "/replit.goval.api.features.Gpu";
89411
- };
89412
-
89413
- return Gpu;
89414
- })();
89415
-
89416
89486
  features.Boosted = (function() {
89417
89487
 
89418
89488
  /**
@@ -89587,189 +89657,13 @@
89587
89657
  return Boosted;
89588
89658
  })();
89589
89659
 
89590
- features.Backpack = (function() {
89591
-
89592
- /**
89593
- * Properties of a Backpack.
89594
- * @memberof replit.goval.api.features
89595
- * @interface IBackpack
89596
- */
89597
-
89598
- /**
89599
- * Constructs a new Backpack.
89600
- * @memberof replit.goval.api.features
89601
- * @classdesc Represents a Backpack.
89602
- * @constructor
89603
- * @param {replit.goval.api.features.IBackpack=} [properties] Properties to set
89604
- */
89605
- function Backpack(properties) {
89606
- if (properties)
89607
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89608
- if (properties[keys[i]] != null)
89609
- this[keys[i]] = properties[keys[i]];
89610
- }
89611
-
89612
- /**
89613
- * Creates a new Backpack instance using the specified properties.
89614
- * @function create
89615
- * @memberof replit.goval.api.features.Backpack
89616
- * @static
89617
- * @param {replit.goval.api.features.IBackpack=} [properties] Properties to set
89618
- * @returns {replit.goval.api.features.Backpack} Backpack instance
89619
- */
89620
- Backpack.create = function create(properties) {
89621
- return Backpack.fromObject(properties);
89622
- };
89623
-
89624
- /**
89625
- * Encodes the specified Backpack message. Does not implicitly {@link replit.goval.api.features.Backpack.verify|verify} messages.
89626
- * @function encode
89627
- * @memberof replit.goval.api.features.Backpack
89628
- * @static
89629
- * @param {replit.goval.api.features.Backpack} message Backpack message or plain object to encode
89630
- * @param {$protobuf.Writer} [writer] Writer to encode to
89631
- * @returns {$protobuf.Writer} Writer
89632
- */
89633
- Backpack.encode = function encode(message, writer) {
89634
- if (!writer)
89635
- writer = $Writer.create();
89636
- return writer;
89637
- };
89638
-
89639
- /**
89640
- * Encodes the specified Backpack message, length delimited. Does not implicitly {@link replit.goval.api.features.Backpack.verify|verify} messages.
89641
- * @function encodeDelimited
89642
- * @memberof replit.goval.api.features.Backpack
89643
- * @static
89644
- * @param {replit.goval.api.features.Backpack} message Backpack message or plain object to encode
89645
- * @param {$protobuf.Writer} [writer] Writer to encode to
89646
- * @returns {$protobuf.Writer} Writer
89647
- */
89648
- Backpack.encodeDelimited = function encodeDelimited(message, writer) {
89649
- return this.encode(message, writer).ldelim();
89650
- };
89651
-
89652
- /**
89653
- * Decodes a Backpack message from the specified reader or buffer.
89654
- * @function decode
89655
- * @memberof replit.goval.api.features.Backpack
89656
- * @static
89657
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89658
- * @param {number} [length] Message length if known beforehand
89659
- * @returns {replit.goval.api.features.Backpack} Backpack
89660
- * @throws {Error} If the payload is not a reader or valid buffer
89661
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
89662
- */
89663
- Backpack.decode = function decode(reader, length) {
89664
- if (!(reader instanceof $Reader))
89665
- reader = $Reader.create(reader);
89666
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Backpack();
89667
- while (reader.pos < end) {
89668
- var tag = reader.uint32();
89669
- switch (tag >>> 3) {
89670
- default:
89671
- reader.skipType(tag & 7);
89672
- break;
89673
- }
89674
- }
89675
- return message;
89676
- };
89677
-
89678
- /**
89679
- * Decodes a Backpack message from the specified reader or buffer, length delimited.
89680
- * @function decodeDelimited
89681
- * @memberof replit.goval.api.features.Backpack
89682
- * @static
89683
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89684
- * @returns {replit.goval.api.features.Backpack} Backpack
89685
- * @throws {Error} If the payload is not a reader or valid buffer
89686
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
89687
- */
89688
- Backpack.decodeDelimited = function decodeDelimited(reader) {
89689
- if (!(reader instanceof $Reader))
89690
- reader = new $Reader(reader);
89691
- return this.decode(reader, reader.uint32());
89692
- };
89693
-
89694
- /**
89695
- * Verifies a Backpack message.
89696
- * @function verify
89697
- * @memberof replit.goval.api.features.Backpack
89698
- * @static
89699
- * @param {Object.<string,*>} message Plain object to verify
89700
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
89701
- */
89702
- Backpack.verify = function verify(message) {
89703
- if (typeof message !== "object" || message === null)
89704
- return "object expected";
89705
- return null;
89706
- };
89707
-
89708
- /**
89709
- * Creates a Backpack message from a plain object. Also converts values to their respective internal types.
89710
- * @function fromObject
89711
- * @memberof replit.goval.api.features.Backpack
89712
- * @static
89713
- * @param {Object.<string,*>} object Plain object
89714
- * @returns {replit.goval.api.features.Backpack} Backpack
89715
- */
89716
- Backpack.fromObject = function fromObject(object) {
89717
- if (object instanceof $root.replit.goval.api.features.Backpack)
89718
- return object;
89719
- return new $root.replit.goval.api.features.Backpack();
89720
- };
89721
-
89722
- /**
89723
- * Creates a plain object from a Backpack message. Also converts values to other types if specified.
89724
- * @function toObject
89725
- * @memberof replit.goval.api.features.Backpack
89726
- * @static
89727
- * @param {replit.goval.api.features.Backpack} message Backpack
89728
- * @param {$protobuf.IConversionOptions} [options] Conversion options
89729
- * @returns {Object.<string,*>} Plain object
89730
- */
89731
- Backpack.toObject = function toObject() {
89732
- return {};
89733
- };
89734
-
89735
- /**
89736
- * Converts this Backpack to JSON.
89737
- * @function toJSON
89738
- * @memberof replit.goval.api.features.Backpack
89739
- * @instance
89740
- * @returns {Object.<string,*>} JSON object
89741
- */
89742
- Backpack.prototype.toJSON = function toJSON() {
89743
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
89744
- };
89745
-
89746
- /**
89747
- * Gets the default type url for Backpack
89748
- * @function getTypeUrl
89749
- * @memberof replit.goval.api.features.Backpack
89750
- * @static
89751
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
89752
- * @returns {string} The default type url
89753
- */
89754
- Backpack.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
89755
- if (typeUrlPrefix === undefined) {
89756
- typeUrlPrefix = "type.googleapis.com";
89757
- }
89758
- return typeUrlPrefix + "/replit.goval.api.features.Backpack";
89759
- };
89760
-
89761
- return Backpack;
89762
- })();
89763
-
89764
89660
  features.Feature = (function() {
89765
89661
 
89766
89662
  /**
89767
89663
  * Properties of a Feature.
89768
89664
  * @memberof replit.goval.api.features
89769
89665
  * @interface IFeature
89770
- * @property {replit.goval.api.features.Gpu|replit.goval.api.features.IGpu|null} [gpu] Feature gpu
89771
89666
  * @property {replit.goval.api.features.Boosted|replit.goval.api.features.IBoosted|null} [boosted] Feature boosted
89772
- * @property {replit.goval.api.features.Backpack|replit.goval.api.features.IBackpack|null} [backpack] Feature backpack
89773
89667
  * @property {boolean|null} [required] Feature required
89774
89668
  */
89775
89669
 
@@ -89787,14 +89681,6 @@
89787
89681
  this[keys[i]] = properties[keys[i]];
89788
89682
  }
89789
89683
 
89790
- /**
89791
- * Feature gpu.
89792
- * @member {replit.goval.api.features.Gpu|null|undefined} gpu
89793
- * @memberof replit.goval.api.features.Feature
89794
- * @instance
89795
- */
89796
- Feature.prototype.gpu = null;
89797
-
89798
89684
  /**
89799
89685
  * Feature boosted.
89800
89686
  * @member {replit.goval.api.features.Boosted|null|undefined} boosted
@@ -89803,14 +89689,6 @@
89803
89689
  */
89804
89690
  Feature.prototype.boosted = null;
89805
89691
 
89806
- /**
89807
- * Feature backpack.
89808
- * @member {replit.goval.api.features.Backpack|null|undefined} backpack
89809
- * @memberof replit.goval.api.features.Feature
89810
- * @instance
89811
- */
89812
- Feature.prototype.backpack = null;
89813
-
89814
89692
  /**
89815
89693
  * Feature required.
89816
89694
  * @member {boolean} required
@@ -89824,12 +89702,12 @@
89824
89702
 
89825
89703
  /**
89826
89704
  * Feature feature.
89827
- * @member {"gpu"|"boosted"|"backpack"|undefined} feature
89705
+ * @member {"boosted"|undefined} feature
89828
89706
  * @memberof replit.goval.api.features.Feature
89829
89707
  * @instance
89830
89708
  */
89831
89709
  Object.defineProperty(Feature.prototype, "feature", {
89832
- get: $util.oneOfGetter($oneOfFields = ["gpu", "boosted", "backpack"]),
89710
+ get: $util.oneOfGetter($oneOfFields = ["boosted"]),
89833
89711
  set: $util.oneOfSetter($oneOfFields)
89834
89712
  });
89835
89713
 
@@ -89857,14 +89735,10 @@
89857
89735
  Feature.encode = function encode(message, writer) {
89858
89736
  if (!writer)
89859
89737
  writer = $Writer.create();
89860
- if (message.gpu != null && Object.hasOwnProperty.call(message, "gpu"))
89861
- $root.replit.goval.api.features.Gpu.encode(message.gpu, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
89862
89738
  if (message.boosted != null && Object.hasOwnProperty.call(message, "boosted"))
89863
89739
  $root.replit.goval.api.features.Boosted.encode(message.boosted, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
89864
89740
  if (message.required != null && Object.hasOwnProperty.call(message, "required"))
89865
89741
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required);
89866
- if (message.backpack != null && Object.hasOwnProperty.call(message, "backpack"))
89867
- $root.replit.goval.api.features.Backpack.encode(message.backpack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
89868
89742
  return writer;
89869
89743
  };
89870
89744
 
@@ -89899,18 +89773,10 @@
89899
89773
  while (reader.pos < end) {
89900
89774
  var tag = reader.uint32();
89901
89775
  switch (tag >>> 3) {
89902
- case 1: {
89903
- message.gpu = $root.replit.goval.api.features.Gpu.decode(reader, reader.uint32());
89904
- break;
89905
- }
89906
89776
  case 2: {
89907
89777
  message.boosted = $root.replit.goval.api.features.Boosted.decode(reader, reader.uint32());
89908
89778
  break;
89909
89779
  }
89910
- case 4: {
89911
- message.backpack = $root.replit.goval.api.features.Backpack.decode(reader, reader.uint32());
89912
- break;
89913
- }
89914
89780
  case 3: {
89915
89781
  message.required = reader.bool();
89916
89782
  break;
@@ -89951,17 +89817,7 @@
89951
89817
  if (typeof message !== "object" || message === null)
89952
89818
  return "object expected";
89953
89819
  var properties = {};
89954
- if (message.gpu != null && message.hasOwnProperty("gpu")) {
89955
- properties.feature = 1;
89956
- {
89957
- var error = $root.replit.goval.api.features.Gpu.verify(message.gpu);
89958
- if (error)
89959
- return "gpu." + error;
89960
- }
89961
- }
89962
89820
  if (message.boosted != null && message.hasOwnProperty("boosted")) {
89963
- if (properties.feature === 1)
89964
- return "feature: multiple values";
89965
89821
  properties.feature = 1;
89966
89822
  {
89967
89823
  var error = $root.replit.goval.api.features.Boosted.verify(message.boosted);
@@ -89969,16 +89825,6 @@
89969
89825
  return "boosted." + error;
89970
89826
  }
89971
89827
  }
89972
- if (message.backpack != null && message.hasOwnProperty("backpack")) {
89973
- if (properties.feature === 1)
89974
- return "feature: multiple values";
89975
- properties.feature = 1;
89976
- {
89977
- var error = $root.replit.goval.api.features.Backpack.verify(message.backpack);
89978
- if (error)
89979
- return "backpack." + error;
89980
- }
89981
- }
89982
89828
  if (message.required != null && message.hasOwnProperty("required"))
89983
89829
  if (typeof message.required !== "boolean")
89984
89830
  return "required: boolean expected";
@@ -89997,21 +89843,11 @@
89997
89843
  if (object instanceof $root.replit.goval.api.features.Feature)
89998
89844
  return object;
89999
89845
  var message = new $root.replit.goval.api.features.Feature();
90000
- if (object.gpu != null) {
90001
- if (typeof object.gpu !== "object")
90002
- throw TypeError(".replit.goval.api.features.Feature.gpu: object expected");
90003
- message.gpu = $root.replit.goval.api.features.Gpu.fromObject(object.gpu);
90004
- }
90005
89846
  if (object.boosted != null) {
90006
89847
  if (typeof object.boosted !== "object")
90007
89848
  throw TypeError(".replit.goval.api.features.Feature.boosted: object expected");
90008
89849
  message.boosted = $root.replit.goval.api.features.Boosted.fromObject(object.boosted);
90009
89850
  }
90010
- if (object.backpack != null) {
90011
- if (typeof object.backpack !== "object")
90012
- throw TypeError(".replit.goval.api.features.Feature.backpack: object expected");
90013
- message.backpack = $root.replit.goval.api.features.Backpack.fromObject(object.backpack);
90014
- }
90015
89851
  if (object.required != null)
90016
89852
  message.required = Boolean(object.required);
90017
89853
  return message;
@@ -90032,11 +89868,6 @@
90032
89868
  var object = {};
90033
89869
  if (options.defaults)
90034
89870
  object.required = false;
90035
- if (message.gpu != null && message.hasOwnProperty("gpu")) {
90036
- object.gpu = $root.replit.goval.api.features.Gpu.toObject(message.gpu, options);
90037
- if (options.oneofs)
90038
- object.feature = "gpu";
90039
- }
90040
89871
  if (message.boosted != null && message.hasOwnProperty("boosted")) {
90041
89872
  object.boosted = $root.replit.goval.api.features.Boosted.toObject(message.boosted, options);
90042
89873
  if (options.oneofs)
@@ -90044,11 +89875,6 @@
90044
89875
  }
90045
89876
  if (message.required != null && message.hasOwnProperty("required"))
90046
89877
  object.required = message.required;
90047
- if (message.backpack != null && message.hasOwnProperty("backpack")) {
90048
- object.backpack = $root.replit.goval.api.features.Backpack.toObject(message.backpack, options);
90049
- if (options.oneofs)
90050
- object.feature = "backpack";
90051
- }
90052
89878
  return object;
90053
89879
  };
90054
89880
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.63",
3
+ "version": "0.4.1",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "author": "eng@replit.com",