@replit/protocol 0.2.46 → 0.2.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.d.ts CHANGED
@@ -29,6 +29,9 @@ export namespace api {
29
29
  /** Command portOpen */
30
30
  portOpen?: (api.PortOpen|api.IPortOpen|null);
31
31
 
32
+ /** Command portClose */
33
+ portClose?: (api.PortClose|api.IPortClose|null);
34
+
32
35
  /** Command toast */
33
36
  toast?: (api.Toast|api.IToast|null);
34
37
 
@@ -173,6 +176,9 @@ export namespace api {
173
176
  /** Command goodbye */
174
177
  goodbye?: (api.Goodbye|api.IGoodbye|null);
175
178
 
179
+ /** Command proxyGoingAway */
180
+ proxyGoingAway?: (api.ProxyGoingAway|api.IProxyGoingAway|null);
181
+
176
182
  /** Command hint */
177
183
  hint?: (api.Hint|api.IHint|null);
178
184
 
@@ -443,8 +449,14 @@ export namespace api {
443
449
  /** Command startLSP */
444
450
  startLSP?: (api.StartLSP|api.IStartLSP|null);
445
451
 
452
+ /** Command firewallDenied */
453
+ firewallDenied?: (api.FirewallDenied|api.IFirewallDenied|null);
454
+
446
455
  /** Command ref */
447
456
  ref?: (string|null);
457
+
458
+ /** Command traceInfo */
459
+ traceInfo?: ({ [k: string]: string }|null);
448
460
  }
449
461
 
450
462
  /** Represents a Command. */
@@ -480,6 +492,9 @@ export namespace api {
480
492
  /** Command portOpen. */
481
493
  public portOpen?: (api.PortOpen|null);
482
494
 
495
+ /** Command portClose. */
496
+ public portClose?: (api.PortClose|null);
497
+
483
498
  /** Command toast. */
484
499
  public toast?: (api.Toast|null);
485
500
 
@@ -624,6 +639,9 @@ export namespace api {
624
639
  /** Command goodbye. */
625
640
  public goodbye?: (api.Goodbye|null);
626
641
 
642
+ /** Command proxyGoingAway. */
643
+ public proxyGoingAway?: (api.ProxyGoingAway|null);
644
+
627
645
  /** Command hint. */
628
646
  public hint?: (api.Hint|null);
629
647
 
@@ -894,11 +912,17 @@ export namespace api {
894
912
  /** Command startLSP. */
895
913
  public startLSP?: (api.StartLSP|null);
896
914
 
915
+ /** Command firewallDenied. */
916
+ public firewallDenied?: (api.FirewallDenied|null);
917
+
897
918
  /** Command ref. */
898
919
  public ref: string;
899
920
 
921
+ /** Command traceInfo. */
922
+ public traceInfo: { [k: string]: string };
923
+
900
924
  /** Command body. */
901
- public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"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"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"startLSP");
925
+ public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"startLSP"|"firewallDenied");
902
926
 
903
927
  /**
904
928
  * Creates a new Command instance using the specified properties.
@@ -8208,6 +8232,102 @@ export namespace api {
8208
8232
  public toJSON(): { [k: string]: any };
8209
8233
  }
8210
8234
 
8235
+ /** Properties of a PortClose. */
8236
+ interface IPortClose {
8237
+
8238
+ /** PortClose port */
8239
+ port?: (number|null);
8240
+
8241
+ /** PortClose address */
8242
+ address?: (string|null);
8243
+ }
8244
+
8245
+ /** Represents a PortClose. */
8246
+ class PortClose {
8247
+
8248
+ /**
8249
+ * Constructs a new PortClose.
8250
+ * @param [properties] Properties to set
8251
+ */
8252
+ private constructor(properties?: api.IPortClose);
8253
+
8254
+ /** PortClose port. */
8255
+ public port: number;
8256
+
8257
+ /** PortClose address. */
8258
+ public address: string;
8259
+
8260
+ /**
8261
+ * Creates a new PortClose instance using the specified properties.
8262
+ * @param [properties] Properties to set
8263
+ * @returns PortClose instance
8264
+ */
8265
+ public static create(properties?: api.IPortClose): api.PortClose;
8266
+
8267
+ /**
8268
+ * Encodes the specified PortClose message. Does not implicitly {@link api.PortClose.verify|verify} messages.
8269
+ * @param message PortClose message or plain object to encode
8270
+ * @param [writer] Writer to encode to
8271
+ * @returns Writer
8272
+ */
8273
+ public static encode(message: api.PortClose, writer?: $protobuf.Writer): $protobuf.Writer;
8274
+
8275
+ /**
8276
+ * Encodes the specified PortClose message, length delimited. Does not implicitly {@link api.PortClose.verify|verify} messages.
8277
+ * @param message PortClose message or plain object to encode
8278
+ * @param [writer] Writer to encode to
8279
+ * @returns Writer
8280
+ */
8281
+ public static encodeDelimited(message: api.PortClose, writer?: $protobuf.Writer): $protobuf.Writer;
8282
+
8283
+ /**
8284
+ * Decodes a PortClose message from the specified reader or buffer.
8285
+ * @param reader Reader or buffer to decode from
8286
+ * @param [length] Message length if known beforehand
8287
+ * @returns PortClose
8288
+ * @throws {Error} If the payload is not a reader or valid buffer
8289
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8290
+ */
8291
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.PortClose;
8292
+
8293
+ /**
8294
+ * Decodes a PortClose message from the specified reader or buffer, length delimited.
8295
+ * @param reader Reader or buffer to decode from
8296
+ * @returns PortClose
8297
+ * @throws {Error} If the payload is not a reader or valid buffer
8298
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8299
+ */
8300
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.PortClose;
8301
+
8302
+ /**
8303
+ * Verifies a PortClose message.
8304
+ * @param message Plain object to verify
8305
+ * @returns `null` if valid, otherwise the reason why it is not
8306
+ */
8307
+ public static verify(message: { [k: string]: any }): (string|null);
8308
+
8309
+ /**
8310
+ * Creates a PortClose message from a plain object. Also converts values to their respective internal types.
8311
+ * @param object Plain object
8312
+ * @returns PortClose
8313
+ */
8314
+ public static fromObject(object: { [k: string]: any }): api.PortClose;
8315
+
8316
+ /**
8317
+ * Creates a plain object from a PortClose message. Also converts values to other types if specified.
8318
+ * @param message PortClose
8319
+ * @param [options] Conversion options
8320
+ * @returns Plain object
8321
+ */
8322
+ public static toObject(message: api.PortClose, options?: $protobuf.IConversionOptions): { [k: string]: any };
8323
+
8324
+ /**
8325
+ * Converts this PortClose to JSON.
8326
+ * @returns JSON object
8327
+ */
8328
+ public toJSON(): { [k: string]: any };
8329
+ }
8330
+
8211
8331
  /** Properties of a OTFetchRequest. */
8212
8332
  interface IOTFetchRequest {
8213
8333
 
@@ -8624,6 +8744,9 @@ export namespace api {
8624
8744
 
8625
8745
  /** OTPacket nonce */
8626
8746
  nonce?: (number|null);
8747
+
8748
+ /** OTPacket userId */
8749
+ userId?: (number|null);
8627
8750
  }
8628
8751
 
8629
8752
  /** Represents a OTPacket. */
@@ -8653,6 +8776,9 @@ export namespace api {
8653
8776
  /** OTPacket nonce. */
8654
8777
  public nonce: number;
8655
8778
 
8779
+ /** OTPacket userId. */
8780
+ public userId: number;
8781
+
8656
8782
  /**
8657
8783
  * Creates a new OTPacket instance using the specified properties.
8658
8784
  * @param [properties] Properties to set
@@ -14730,6 +14856,174 @@ export namespace api {
14730
14856
  public toJSON(): { [k: string]: any };
14731
14857
  }
14732
14858
 
14859
+ /** Properties of a ProxyGoingAway. */
14860
+ interface IProxyGoingAway {
14861
+ }
14862
+
14863
+ /** Represents a ProxyGoingAway. */
14864
+ class ProxyGoingAway {
14865
+
14866
+ /**
14867
+ * Constructs a new ProxyGoingAway.
14868
+ * @param [properties] Properties to set
14869
+ */
14870
+ private constructor(properties?: api.IProxyGoingAway);
14871
+
14872
+ /**
14873
+ * Creates a new ProxyGoingAway instance using the specified properties.
14874
+ * @param [properties] Properties to set
14875
+ * @returns ProxyGoingAway instance
14876
+ */
14877
+ public static create(properties?: api.IProxyGoingAway): api.ProxyGoingAway;
14878
+
14879
+ /**
14880
+ * Encodes the specified ProxyGoingAway message. Does not implicitly {@link api.ProxyGoingAway.verify|verify} messages.
14881
+ * @param message ProxyGoingAway message or plain object to encode
14882
+ * @param [writer] Writer to encode to
14883
+ * @returns Writer
14884
+ */
14885
+ public static encode(message: api.ProxyGoingAway, writer?: $protobuf.Writer): $protobuf.Writer;
14886
+
14887
+ /**
14888
+ * Encodes the specified ProxyGoingAway message, length delimited. Does not implicitly {@link api.ProxyGoingAway.verify|verify} messages.
14889
+ * @param message ProxyGoingAway message or plain object to encode
14890
+ * @param [writer] Writer to encode to
14891
+ * @returns Writer
14892
+ */
14893
+ public static encodeDelimited(message: api.ProxyGoingAway, writer?: $protobuf.Writer): $protobuf.Writer;
14894
+
14895
+ /**
14896
+ * Decodes a ProxyGoingAway message from the specified reader or buffer.
14897
+ * @param reader Reader or buffer to decode from
14898
+ * @param [length] Message length if known beforehand
14899
+ * @returns ProxyGoingAway
14900
+ * @throws {Error} If the payload is not a reader or valid buffer
14901
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14902
+ */
14903
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.ProxyGoingAway;
14904
+
14905
+ /**
14906
+ * Decodes a ProxyGoingAway message from the specified reader or buffer, length delimited.
14907
+ * @param reader Reader or buffer to decode from
14908
+ * @returns ProxyGoingAway
14909
+ * @throws {Error} If the payload is not a reader or valid buffer
14910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14911
+ */
14912
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.ProxyGoingAway;
14913
+
14914
+ /**
14915
+ * Verifies a ProxyGoingAway message.
14916
+ * @param message Plain object to verify
14917
+ * @returns `null` if valid, otherwise the reason why it is not
14918
+ */
14919
+ public static verify(message: { [k: string]: any }): (string|null);
14920
+
14921
+ /**
14922
+ * Creates a ProxyGoingAway message from a plain object. Also converts values to their respective internal types.
14923
+ * @param object Plain object
14924
+ * @returns ProxyGoingAway
14925
+ */
14926
+ public static fromObject(object: { [k: string]: any }): api.ProxyGoingAway;
14927
+
14928
+ /**
14929
+ * Creates a plain object from a ProxyGoingAway message. Also converts values to other types if specified.
14930
+ * @param message ProxyGoingAway
14931
+ * @param [options] Conversion options
14932
+ * @returns Plain object
14933
+ */
14934
+ public static toObject(message: api.ProxyGoingAway, options?: $protobuf.IConversionOptions): { [k: string]: any };
14935
+
14936
+ /**
14937
+ * Converts this ProxyGoingAway to JSON.
14938
+ * @returns JSON object
14939
+ */
14940
+ public toJSON(): { [k: string]: any };
14941
+ }
14942
+
14943
+ /** Properties of a FirewallDenied. */
14944
+ interface IFirewallDenied {
14945
+ }
14946
+
14947
+ /** Represents a FirewallDenied. */
14948
+ class FirewallDenied {
14949
+
14950
+ /**
14951
+ * Constructs a new FirewallDenied.
14952
+ * @param [properties] Properties to set
14953
+ */
14954
+ private constructor(properties?: api.IFirewallDenied);
14955
+
14956
+ /**
14957
+ * Creates a new FirewallDenied instance using the specified properties.
14958
+ * @param [properties] Properties to set
14959
+ * @returns FirewallDenied instance
14960
+ */
14961
+ public static create(properties?: api.IFirewallDenied): api.FirewallDenied;
14962
+
14963
+ /**
14964
+ * Encodes the specified FirewallDenied message. Does not implicitly {@link api.FirewallDenied.verify|verify} messages.
14965
+ * @param message FirewallDenied message or plain object to encode
14966
+ * @param [writer] Writer to encode to
14967
+ * @returns Writer
14968
+ */
14969
+ public static encode(message: api.FirewallDenied, writer?: $protobuf.Writer): $protobuf.Writer;
14970
+
14971
+ /**
14972
+ * Encodes the specified FirewallDenied message, length delimited. Does not implicitly {@link api.FirewallDenied.verify|verify} messages.
14973
+ * @param message FirewallDenied message or plain object to encode
14974
+ * @param [writer] Writer to encode to
14975
+ * @returns Writer
14976
+ */
14977
+ public static encodeDelimited(message: api.FirewallDenied, writer?: $protobuf.Writer): $protobuf.Writer;
14978
+
14979
+ /**
14980
+ * Decodes a FirewallDenied message from the specified reader or buffer.
14981
+ * @param reader Reader or buffer to decode from
14982
+ * @param [length] Message length if known beforehand
14983
+ * @returns FirewallDenied
14984
+ * @throws {Error} If the payload is not a reader or valid buffer
14985
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14986
+ */
14987
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.FirewallDenied;
14988
+
14989
+ /**
14990
+ * Decodes a FirewallDenied message from the specified reader or buffer, length delimited.
14991
+ * @param reader Reader or buffer to decode from
14992
+ * @returns FirewallDenied
14993
+ * @throws {Error} If the payload is not a reader or valid buffer
14994
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14995
+ */
14996
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.FirewallDenied;
14997
+
14998
+ /**
14999
+ * Verifies a FirewallDenied message.
15000
+ * @param message Plain object to verify
15001
+ * @returns `null` if valid, otherwise the reason why it is not
15002
+ */
15003
+ public static verify(message: { [k: string]: any }): (string|null);
15004
+
15005
+ /**
15006
+ * Creates a FirewallDenied message from a plain object. Also converts values to their respective internal types.
15007
+ * @param object Plain object
15008
+ * @returns FirewallDenied
15009
+ */
15010
+ public static fromObject(object: { [k: string]: any }): api.FirewallDenied;
15011
+
15012
+ /**
15013
+ * Creates a plain object from a FirewallDenied message. Also converts values to other types if specified.
15014
+ * @param message FirewallDenied
15015
+ * @param [options] Conversion options
15016
+ * @returns Plain object
15017
+ */
15018
+ public static toObject(message: api.FirewallDenied, options?: $protobuf.IConversionOptions): { [k: string]: any };
15019
+
15020
+ /**
15021
+ * Converts this FirewallDenied to JSON.
15022
+ * @returns JSON object
15023
+ */
15024
+ public toJSON(): { [k: string]: any };
15025
+ }
15026
+
14733
15027
  /** Properties of a Repl. */
14734
15028
  interface IRepl {
14735
15029
 
@@ -14870,6 +15164,9 @@ export namespace api {
14870
15164
 
14871
15165
  /** ResourceLimits cache */
14872
15166
  cache?: (api.ResourceLimits.Cachability|null);
15167
+
15168
+ /** ResourceLimits restrictNetwork */
15169
+ restrictNetwork?: (boolean|null);
14873
15170
  }
14874
15171
 
14875
15172
  /** Represents a ResourceLimits. */
@@ -14899,6 +15196,9 @@ export namespace api {
14899
15196
  /** ResourceLimits cache. */
14900
15197
  public cache: api.ResourceLimits.Cachability;
14901
15198
 
15199
+ /** ResourceLimits restrictNetwork. */
15200
+ public restrictNetwork: boolean;
15201
+
14902
15202
  /**
14903
15203
  * Creates a new ResourceLimits instance using the specified properties.
14904
15204
  * @param [properties] Properties to set
@@ -15857,14 +16157,8 @@ export namespace api {
15857
16157
  /** ClusterMetadata gurl */
15858
16158
  gurl?: (string|null);
15859
16159
 
15860
- /** ClusterMetadata proxyHost */
15861
- proxyHost?: (string|null);
15862
-
15863
16160
  /** ClusterMetadata proxy */
15864
16161
  proxy?: (string|null);
15865
-
15866
- /** ClusterMetadata proxyIP */
15867
- proxyIP?: (string|null);
15868
16162
  }
15869
16163
 
15870
16164
  /** Represents a ClusterMetadata. */
@@ -15885,15 +16179,9 @@ export namespace api {
15885
16179
  /** ClusterMetadata gurl. */
15886
16180
  public gurl: string;
15887
16181
 
15888
- /** ClusterMetadata proxyHost. */
15889
- public proxyHost: string;
15890
-
15891
16182
  /** ClusterMetadata proxy. */
15892
16183
  public proxy: string;
15893
16184
 
15894
- /** ClusterMetadata proxyIP. */
15895
- public proxyIP: string;
15896
-
15897
16185
  /**
15898
16186
  * Creates a new ClusterMetadata instance using the specified properties.
15899
16187
  * @param [properties] Properties to set