@replit/protocol 0.2.47 → 0.2.48

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.
@@ -89,6 +89,7 @@ declare var npm$namespace$api: {|
89
89
  ICloseChannelRes: Class<api$ICloseChannelRes>,
90
90
  IContainerState: Class<api$IContainerState>,
91
91
  IPortOpen: Class<api$IPortOpen>,
92
+ IPortClose: Class<api$IPortClose>,
92
93
  IOTFetchRequest: Class<api$IOTFetchRequest>,
93
94
  IOTFetchResponse: Class<api$IOTFetchResponse>,
94
95
  IOTTransformSelectionRequest: Class<api$IOTTransformSelectionRequest>,
@@ -154,6 +155,8 @@ declare var npm$namespace$api: {|
154
155
  IDotReplitPackagerFeatures: Class<api$IDotReplitPackagerFeatures>,
155
156
  IDotReplitUnitTest: Class<api$IDotReplitUnitTest>,
156
157
  IDebuggerConfig: Class<api$IDebuggerConfig>,
158
+ IProxyGoingAway: Class<api$IProxyGoingAway>,
159
+ IFirewallDenied: Class<api$IFirewallDenied>,
157
160
  IRepl: Class<api$IRepl>,
158
161
  IResourceLimits: Class<api$IResourceLimits>,
159
162
  IPermissions: Class<api$IPermissions>,
@@ -244,6 +247,7 @@ declare var npm$namespace$api: {|
244
247
  CloseChannelRes: typeof api$CloseChannelRes,
245
248
  ContainerState: typeof api$ContainerState,
246
249
  PortOpen: typeof api$PortOpen,
250
+ PortClose: typeof api$PortClose,
247
251
  OTFetchRequest: typeof api$OTFetchRequest,
248
252
  OTFetchResponse: typeof api$OTFetchResponse,
249
253
  OTTransformSelectionRequest: typeof api$OTTransformSelectionRequest,
@@ -309,6 +313,8 @@ declare var npm$namespace$api: {|
309
313
  DotReplitPackagerFeatures: typeof api$DotReplitPackagerFeatures,
310
314
  DotReplitUnitTest: typeof api$DotReplitUnitTest,
311
315
  DebuggerConfig: typeof api$DebuggerConfig,
316
+ ProxyGoingAway: typeof api$ProxyGoingAway,
317
+ FirewallDenied: typeof api$FirewallDenied,
312
318
  Repl: typeof api$Repl,
313
319
  ResourceLimits: typeof api$ResourceLimits,
314
320
  Permissions: typeof api$Permissions,
@@ -369,6 +375,11 @@ declare type api$ICommand = {|
369
375
  */
370
376
  portOpen?: api$PortOpen | api$IPortOpen | null,
371
377
 
378
+ /**
379
+ * Command portClose
380
+ */
381
+ portClose?: api$PortClose | api$IPortClose | null,
382
+
372
383
  /**
373
384
  * Command toast
374
385
  */
@@ -609,6 +620,11 @@ declare type api$ICommand = {|
609
620
  */
610
621
  goodbye?: api$Goodbye | api$IGoodbye | null,
611
622
 
623
+ /**
624
+ * Command proxyGoingAway
625
+ */
626
+ proxyGoingAway?: api$ProxyGoingAway | api$IProxyGoingAway | null,
627
+
612
628
  /**
613
629
  * Command hint
614
630
  */
@@ -1101,6 +1117,11 @@ declare type api$ICommand = {|
1101
1117
  */
1102
1118
  startLSP?: api$StartLSP | api$IStartLSP | null,
1103
1119
 
1120
+ /**
1121
+ * Command firewallDenied
1122
+ */
1123
+ firewallDenied?: api$FirewallDenied | api$IFirewallDenied | null,
1124
+
1104
1125
  /**
1105
1126
  * Command ref
1106
1127
  */
@@ -1164,6 +1185,11 @@ declare class api$Command {
1164
1185
  */
1165
1186
  portOpen?: api$PortOpen | null;
1166
1187
 
1188
+ /**
1189
+ * Command portClose.
1190
+ */
1191
+ portClose?: api$PortClose | null;
1192
+
1167
1193
  /**
1168
1194
  * Command toast.
1169
1195
  */
@@ -1404,6 +1430,11 @@ declare class api$Command {
1404
1430
  */
1405
1431
  goodbye?: api$Goodbye | null;
1406
1432
 
1433
+ /**
1434
+ * Command proxyGoingAway.
1435
+ */
1436
+ proxyGoingAway?: api$ProxyGoingAway | null;
1437
+
1407
1438
  /**
1408
1439
  * Command hint.
1409
1440
  */
@@ -1854,6 +1885,11 @@ declare class api$Command {
1854
1885
  */
1855
1886
  startLSP?: api$StartLSP | null;
1856
1887
 
1888
+ /**
1889
+ * Command firewallDenied.
1890
+ */
1891
+ firewallDenied?: api$FirewallDenied | null;
1892
+
1857
1893
  /**
1858
1894
  * Command ref.
1859
1895
  */
@@ -1876,6 +1912,7 @@ declare class api$Command {
1876
1912
  | "closeChanRes"
1877
1913
  | "containerState"
1878
1914
  | "portOpen"
1915
+ | "portClose"
1879
1916
  | "toast"
1880
1917
  | "protocolError"
1881
1918
  | "redirect"
@@ -1924,6 +1961,7 @@ declare class api$Command {
1924
1961
  | "pong"
1925
1962
  | "hello"
1926
1963
  | "goodbye"
1964
+ | "proxyGoingAway"
1927
1965
  | "hint"
1928
1966
  | "connect"
1929
1967
  | "send"
@@ -2013,7 +2051,8 @@ declare class api$Command {
2013
2051
  | "dotReplitGetResponse"
2014
2052
  | "runConfigGetRequest"
2015
2053
  | "runConfigGetResponse"
2016
- | "startLSP";
2054
+ | "startLSP"
2055
+ | "firewallDenied";
2017
2056
 
2018
2057
  /**
2019
2058
  * Creates a new Command instance using the specified properties.
@@ -11593,6 +11632,132 @@ declare class api$PortOpen {
11593
11632
  |};
11594
11633
  }
11595
11634
 
11635
+ /**
11636
+ * Properties of a PortClose.
11637
+ */
11638
+ declare type api$IPortClose = {|
11639
+ /**
11640
+ * PortClose port
11641
+ */
11642
+ port?: number | null,
11643
+
11644
+ /**
11645
+ * PortClose address
11646
+ */
11647
+ address?: string | null,
11648
+ |};
11649
+
11650
+ /**
11651
+ * Represents a PortClose.
11652
+ */
11653
+ declare class api$PortClose {
11654
+ /**
11655
+ * Constructs a new PortClose.
11656
+ * @param [properties] Properties to set
11657
+ */
11658
+ constructor(properties?: api$IPortClose): this;
11659
+
11660
+ /**
11661
+ * PortClose port.
11662
+ */
11663
+ port: number;
11664
+
11665
+ /**
11666
+ * PortClose address.
11667
+ */
11668
+ address: string;
11669
+
11670
+ /**
11671
+ * Creates a new PortClose instance using the specified properties.
11672
+ * @param [properties] Properties to set
11673
+ * @returns PortClose instance
11674
+ */
11675
+ static create(properties?: api$IPortClose): api$PortClose;
11676
+
11677
+ /**
11678
+ * [object Object],[object Object],[object Object]
11679
+ * @param message PortClose message or plain object to encode
11680
+ * @param [writer] Writer to encode to
11681
+ * @returns Writer
11682
+ */
11683
+ static encode(
11684
+ message: api$PortClose,
11685
+ writer?: $protobuf.Writer
11686
+ ): $protobuf.Writer;
11687
+
11688
+ /**
11689
+ * [object Object],[object Object],[object Object]
11690
+ * @param message PortClose message or plain object to encode
11691
+ * @param [writer] Writer to encode to
11692
+ * @returns Writer
11693
+ */
11694
+ static encodeDelimited(
11695
+ message: api$PortClose,
11696
+ writer?: $protobuf.Writer
11697
+ ): $protobuf.Writer;
11698
+
11699
+ /**
11700
+ * Decodes a PortClose message from the specified reader or buffer.
11701
+ * @param reader Reader or buffer to decode from
11702
+ * @param [length] Message length if known beforehand
11703
+ * @returns PortClose
11704
+ * @throws {Error} If the payload is not a reader or valid buffer
11705
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11706
+ */
11707
+ static decode(
11708
+ reader: $protobuf.Reader | Uint8Array,
11709
+ length?: number
11710
+ ): api$PortClose;
11711
+
11712
+ /**
11713
+ * Decodes a PortClose message from the specified reader or buffer, length delimited.
11714
+ * @param reader Reader or buffer to decode from
11715
+ * @returns PortClose
11716
+ * @throws {Error} If the payload is not a reader or valid buffer
11717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11718
+ */
11719
+ static decodeDelimited(reader: $protobuf.Reader | Uint8Array): api$PortClose;
11720
+
11721
+ /**
11722
+ * Verifies a PortClose message.
11723
+ * @param message Plain object to verify
11724
+ * @returns `null` if valid, otherwise the reason why it is not
11725
+ */
11726
+ static verify(message: {|
11727
+ [k: string]: any,
11728
+ |}): string | null;
11729
+
11730
+ /**
11731
+ * Creates a PortClose message from a plain object. Also converts values to their respective internal types.
11732
+ * @param object Plain object
11733
+ * @returns PortClose
11734
+ */
11735
+ static fromObject(object: {|
11736
+ [k: string]: any,
11737
+ |}): api$PortClose;
11738
+
11739
+ /**
11740
+ * Creates a plain object from a PortClose message. Also converts values to other types if specified.
11741
+ * @param message PortClose
11742
+ * @param [options] Conversion options
11743
+ * @returns Plain object
11744
+ */
11745
+ static toObject(
11746
+ message: api$PortClose,
11747
+ options?: $protobuf.IConversionOptions
11748
+ ): {|
11749
+ [k: string]: any,
11750
+ |};
11751
+
11752
+ /**
11753
+ * Converts this PortClose to JSON.
11754
+ * @returns JSON object
11755
+ */
11756
+ toJSON(): {|
11757
+ [k: string]: any,
11758
+ |};
11759
+ }
11760
+
11596
11761
  /**
11597
11762
  * Properties of a OTFetchRequest.
11598
11763
  */
@@ -20369,6 +20534,222 @@ declare class api$DebuggerConfig {
20369
20534
  |};
20370
20535
  }
20371
20536
 
20537
+ /**
20538
+ * Properties of a ProxyGoingAway.
20539
+ */
20540
+ declare type api$IProxyGoingAway = {||};
20541
+
20542
+ /**
20543
+ * Represents a ProxyGoingAway.
20544
+ */
20545
+ declare class api$ProxyGoingAway {
20546
+ /**
20547
+ * Constructs a new ProxyGoingAway.
20548
+ * @param [properties] Properties to set
20549
+ */
20550
+ constructor(properties?: api$IProxyGoingAway): this;
20551
+
20552
+ /**
20553
+ * Creates a new ProxyGoingAway instance using the specified properties.
20554
+ * @param [properties] Properties to set
20555
+ * @returns ProxyGoingAway instance
20556
+ */
20557
+ static create(properties?: api$IProxyGoingAway): api$ProxyGoingAway;
20558
+
20559
+ /**
20560
+ * [object Object],[object Object],[object Object]
20561
+ * @param message ProxyGoingAway message or plain object to encode
20562
+ * @param [writer] Writer to encode to
20563
+ * @returns Writer
20564
+ */
20565
+ static encode(
20566
+ message: api$ProxyGoingAway,
20567
+ writer?: $protobuf.Writer
20568
+ ): $protobuf.Writer;
20569
+
20570
+ /**
20571
+ * [object Object],[object Object],[object Object]
20572
+ * @param message ProxyGoingAway message or plain object to encode
20573
+ * @param [writer] Writer to encode to
20574
+ * @returns Writer
20575
+ */
20576
+ static encodeDelimited(
20577
+ message: api$ProxyGoingAway,
20578
+ writer?: $protobuf.Writer
20579
+ ): $protobuf.Writer;
20580
+
20581
+ /**
20582
+ * Decodes a ProxyGoingAway message from the specified reader or buffer.
20583
+ * @param reader Reader or buffer to decode from
20584
+ * @param [length] Message length if known beforehand
20585
+ * @returns ProxyGoingAway
20586
+ * @throws {Error} If the payload is not a reader or valid buffer
20587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20588
+ */
20589
+ static decode(
20590
+ reader: $protobuf.Reader | Uint8Array,
20591
+ length?: number
20592
+ ): api$ProxyGoingAway;
20593
+
20594
+ /**
20595
+ * Decodes a ProxyGoingAway message from the specified reader or buffer, length delimited.
20596
+ * @param reader Reader or buffer to decode from
20597
+ * @returns ProxyGoingAway
20598
+ * @throws {Error} If the payload is not a reader or valid buffer
20599
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20600
+ */
20601
+ static decodeDelimited(
20602
+ reader: $protobuf.Reader | Uint8Array
20603
+ ): api$ProxyGoingAway;
20604
+
20605
+ /**
20606
+ * Verifies a ProxyGoingAway message.
20607
+ * @param message Plain object to verify
20608
+ * @returns `null` if valid, otherwise the reason why it is not
20609
+ */
20610
+ static verify(message: {|
20611
+ [k: string]: any,
20612
+ |}): string | null;
20613
+
20614
+ /**
20615
+ * Creates a ProxyGoingAway message from a plain object. Also converts values to their respective internal types.
20616
+ * @param object Plain object
20617
+ * @returns ProxyGoingAway
20618
+ */
20619
+ static fromObject(object: {|
20620
+ [k: string]: any,
20621
+ |}): api$ProxyGoingAway;
20622
+
20623
+ /**
20624
+ * Creates a plain object from a ProxyGoingAway message. Also converts values to other types if specified.
20625
+ * @param message ProxyGoingAway
20626
+ * @param [options] Conversion options
20627
+ * @returns Plain object
20628
+ */
20629
+ static toObject(
20630
+ message: api$ProxyGoingAway,
20631
+ options?: $protobuf.IConversionOptions
20632
+ ): {|
20633
+ [k: string]: any,
20634
+ |};
20635
+
20636
+ /**
20637
+ * Converts this ProxyGoingAway to JSON.
20638
+ * @returns JSON object
20639
+ */
20640
+ toJSON(): {|
20641
+ [k: string]: any,
20642
+ |};
20643
+ }
20644
+
20645
+ /**
20646
+ * Properties of a FirewallDenied.
20647
+ */
20648
+ declare type api$IFirewallDenied = {||};
20649
+
20650
+ /**
20651
+ * Represents a FirewallDenied.
20652
+ */
20653
+ declare class api$FirewallDenied {
20654
+ /**
20655
+ * Constructs a new FirewallDenied.
20656
+ * @param [properties] Properties to set
20657
+ */
20658
+ constructor(properties?: api$IFirewallDenied): this;
20659
+
20660
+ /**
20661
+ * Creates a new FirewallDenied instance using the specified properties.
20662
+ * @param [properties] Properties to set
20663
+ * @returns FirewallDenied instance
20664
+ */
20665
+ static create(properties?: api$IFirewallDenied): api$FirewallDenied;
20666
+
20667
+ /**
20668
+ * [object Object],[object Object],[object Object]
20669
+ * @param message FirewallDenied message or plain object to encode
20670
+ * @param [writer] Writer to encode to
20671
+ * @returns Writer
20672
+ */
20673
+ static encode(
20674
+ message: api$FirewallDenied,
20675
+ writer?: $protobuf.Writer
20676
+ ): $protobuf.Writer;
20677
+
20678
+ /**
20679
+ * [object Object],[object Object],[object Object]
20680
+ * @param message FirewallDenied message or plain object to encode
20681
+ * @param [writer] Writer to encode to
20682
+ * @returns Writer
20683
+ */
20684
+ static encodeDelimited(
20685
+ message: api$FirewallDenied,
20686
+ writer?: $protobuf.Writer
20687
+ ): $protobuf.Writer;
20688
+
20689
+ /**
20690
+ * Decodes a FirewallDenied message from the specified reader or buffer.
20691
+ * @param reader Reader or buffer to decode from
20692
+ * @param [length] Message length if known beforehand
20693
+ * @returns FirewallDenied
20694
+ * @throws {Error} If the payload is not a reader or valid buffer
20695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20696
+ */
20697
+ static decode(
20698
+ reader: $protobuf.Reader | Uint8Array,
20699
+ length?: number
20700
+ ): api$FirewallDenied;
20701
+
20702
+ /**
20703
+ * Decodes a FirewallDenied message from the specified reader or buffer, length delimited.
20704
+ * @param reader Reader or buffer to decode from
20705
+ * @returns FirewallDenied
20706
+ * @throws {Error} If the payload is not a reader or valid buffer
20707
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20708
+ */
20709
+ static decodeDelimited(
20710
+ reader: $protobuf.Reader | Uint8Array
20711
+ ): api$FirewallDenied;
20712
+
20713
+ /**
20714
+ * Verifies a FirewallDenied message.
20715
+ * @param message Plain object to verify
20716
+ * @returns `null` if valid, otherwise the reason why it is not
20717
+ */
20718
+ static verify(message: {|
20719
+ [k: string]: any,
20720
+ |}): string | null;
20721
+
20722
+ /**
20723
+ * Creates a FirewallDenied message from a plain object. Also converts values to their respective internal types.
20724
+ * @param object Plain object
20725
+ * @returns FirewallDenied
20726
+ */
20727
+ static fromObject(object: {|
20728
+ [k: string]: any,
20729
+ |}): api$FirewallDenied;
20730
+
20731
+ /**
20732
+ * Creates a plain object from a FirewallDenied message. Also converts values to other types if specified.
20733
+ * @param message FirewallDenied
20734
+ * @param [options] Conversion options
20735
+ * @returns Plain object
20736
+ */
20737
+ static toObject(
20738
+ message: api$FirewallDenied,
20739
+ options?: $protobuf.IConversionOptions
20740
+ ): {|
20741
+ [k: string]: any,
20742
+ |};
20743
+
20744
+ /**
20745
+ * Converts this FirewallDenied to JSON.
20746
+ * @returns JSON object
20747
+ */
20748
+ toJSON(): {|
20749
+ [k: string]: any,
20750
+ |};
20751
+ }
20752
+
20372
20753
  /**
20373
20754
  * Properties of a Repl.
20374
20755
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",