@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.
@@ -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,10 +1117,22 @@ 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
  */
1107
1128
  ref?: string | null,
1129
+
1130
+ /**
1131
+ * Command traceInfo
1132
+ */
1133
+ traceInfo?: {|
1134
+ [k: string]: string,
1135
+ |} | null,
1108
1136
  |};
1109
1137
 
1110
1138
  /**
@@ -1157,6 +1185,11 @@ declare class api$Command {
1157
1185
  */
1158
1186
  portOpen?: api$PortOpen | null;
1159
1187
 
1188
+ /**
1189
+ * Command portClose.
1190
+ */
1191
+ portClose?: api$PortClose | null;
1192
+
1160
1193
  /**
1161
1194
  * Command toast.
1162
1195
  */
@@ -1397,6 +1430,11 @@ declare class api$Command {
1397
1430
  */
1398
1431
  goodbye?: api$Goodbye | null;
1399
1432
 
1433
+ /**
1434
+ * Command proxyGoingAway.
1435
+ */
1436
+ proxyGoingAway?: api$ProxyGoingAway | null;
1437
+
1400
1438
  /**
1401
1439
  * Command hint.
1402
1440
  */
@@ -1847,11 +1885,23 @@ declare class api$Command {
1847
1885
  */
1848
1886
  startLSP?: api$StartLSP | null;
1849
1887
 
1888
+ /**
1889
+ * Command firewallDenied.
1890
+ */
1891
+ firewallDenied?: api$FirewallDenied | null;
1892
+
1850
1893
  /**
1851
1894
  * Command ref.
1852
1895
  */
1853
1896
  ref: string;
1854
1897
 
1898
+ /**
1899
+ * Command traceInfo.
1900
+ */
1901
+ traceInfo: {|
1902
+ [k: string]: string,
1903
+ |};
1904
+
1855
1905
  /**
1856
1906
  * Command body.
1857
1907
  */
@@ -1862,6 +1912,7 @@ declare class api$Command {
1862
1912
  | "closeChanRes"
1863
1913
  | "containerState"
1864
1914
  | "portOpen"
1915
+ | "portClose"
1865
1916
  | "toast"
1866
1917
  | "protocolError"
1867
1918
  | "redirect"
@@ -1910,6 +1961,7 @@ declare class api$Command {
1910
1961
  | "pong"
1911
1962
  | "hello"
1912
1963
  | "goodbye"
1964
+ | "proxyGoingAway"
1913
1965
  | "hint"
1914
1966
  | "connect"
1915
1967
  | "send"
@@ -1999,7 +2051,8 @@ declare class api$Command {
1999
2051
  | "dotReplitGetResponse"
2000
2052
  | "runConfigGetRequest"
2001
2053
  | "runConfigGetResponse"
2002
- | "startLSP";
2054
+ | "startLSP"
2055
+ | "firewallDenied";
2003
2056
 
2004
2057
  /**
2005
2058
  * Creates a new Command instance using the specified properties.
@@ -11579,6 +11632,132 @@ declare class api$PortOpen {
11579
11632
  |};
11580
11633
  }
11581
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
+
11582
11761
  /**
11583
11762
  * Properties of a OTFetchRequest.
11584
11763
  */
@@ -12148,6 +12327,11 @@ declare type api$IOTPacket = {|
12148
12327
  * OTPacket nonce
12149
12328
  */
12150
12329
  nonce?: number | null,
12330
+
12331
+ /**
12332
+ * OTPacket userId
12333
+ */
12334
+ userId?: number | null,
12151
12335
  |};
12152
12336
 
12153
12337
  /**
@@ -12190,6 +12374,11 @@ declare class api$OTPacket {
12190
12374
  */
12191
12375
  nonce: number;
12192
12376
 
12377
+ /**
12378
+ * OTPacket userId.
12379
+ */
12380
+ userId: number;
12381
+
12193
12382
  /**
12194
12383
  * Creates a new OTPacket instance using the specified properties.
12195
12384
  * @param [properties] Properties to set
@@ -20355,6 +20544,222 @@ declare class api$DebuggerConfig {
20355
20544
  |};
20356
20545
  }
20357
20546
 
20547
+ /**
20548
+ * Properties of a ProxyGoingAway.
20549
+ */
20550
+ declare type api$IProxyGoingAway = {||};
20551
+
20552
+ /**
20553
+ * Represents a ProxyGoingAway.
20554
+ */
20555
+ declare class api$ProxyGoingAway {
20556
+ /**
20557
+ * Constructs a new ProxyGoingAway.
20558
+ * @param [properties] Properties to set
20559
+ */
20560
+ constructor(properties?: api$IProxyGoingAway): this;
20561
+
20562
+ /**
20563
+ * Creates a new ProxyGoingAway instance using the specified properties.
20564
+ * @param [properties] Properties to set
20565
+ * @returns ProxyGoingAway instance
20566
+ */
20567
+ static create(properties?: api$IProxyGoingAway): api$ProxyGoingAway;
20568
+
20569
+ /**
20570
+ * [object Object],[object Object],[object Object]
20571
+ * @param message ProxyGoingAway message or plain object to encode
20572
+ * @param [writer] Writer to encode to
20573
+ * @returns Writer
20574
+ */
20575
+ static encode(
20576
+ message: api$ProxyGoingAway,
20577
+ writer?: $protobuf.Writer
20578
+ ): $protobuf.Writer;
20579
+
20580
+ /**
20581
+ * [object Object],[object Object],[object Object]
20582
+ * @param message ProxyGoingAway message or plain object to encode
20583
+ * @param [writer] Writer to encode to
20584
+ * @returns Writer
20585
+ */
20586
+ static encodeDelimited(
20587
+ message: api$ProxyGoingAway,
20588
+ writer?: $protobuf.Writer
20589
+ ): $protobuf.Writer;
20590
+
20591
+ /**
20592
+ * Decodes a ProxyGoingAway message from the specified reader or buffer.
20593
+ * @param reader Reader or buffer to decode from
20594
+ * @param [length] Message length if known beforehand
20595
+ * @returns ProxyGoingAway
20596
+ * @throws {Error} If the payload is not a reader or valid buffer
20597
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20598
+ */
20599
+ static decode(
20600
+ reader: $protobuf.Reader | Uint8Array,
20601
+ length?: number
20602
+ ): api$ProxyGoingAway;
20603
+
20604
+ /**
20605
+ * Decodes a ProxyGoingAway message from the specified reader or buffer, length delimited.
20606
+ * @param reader Reader or buffer to decode from
20607
+ * @returns ProxyGoingAway
20608
+ * @throws {Error} If the payload is not a reader or valid buffer
20609
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20610
+ */
20611
+ static decodeDelimited(
20612
+ reader: $protobuf.Reader | Uint8Array
20613
+ ): api$ProxyGoingAway;
20614
+
20615
+ /**
20616
+ * Verifies a ProxyGoingAway message.
20617
+ * @param message Plain object to verify
20618
+ * @returns `null` if valid, otherwise the reason why it is not
20619
+ */
20620
+ static verify(message: {|
20621
+ [k: string]: any,
20622
+ |}): string | null;
20623
+
20624
+ /**
20625
+ * Creates a ProxyGoingAway message from a plain object. Also converts values to their respective internal types.
20626
+ * @param object Plain object
20627
+ * @returns ProxyGoingAway
20628
+ */
20629
+ static fromObject(object: {|
20630
+ [k: string]: any,
20631
+ |}): api$ProxyGoingAway;
20632
+
20633
+ /**
20634
+ * Creates a plain object from a ProxyGoingAway message. Also converts values to other types if specified.
20635
+ * @param message ProxyGoingAway
20636
+ * @param [options] Conversion options
20637
+ * @returns Plain object
20638
+ */
20639
+ static toObject(
20640
+ message: api$ProxyGoingAway,
20641
+ options?: $protobuf.IConversionOptions
20642
+ ): {|
20643
+ [k: string]: any,
20644
+ |};
20645
+
20646
+ /**
20647
+ * Converts this ProxyGoingAway to JSON.
20648
+ * @returns JSON object
20649
+ */
20650
+ toJSON(): {|
20651
+ [k: string]: any,
20652
+ |};
20653
+ }
20654
+
20655
+ /**
20656
+ * Properties of a FirewallDenied.
20657
+ */
20658
+ declare type api$IFirewallDenied = {||};
20659
+
20660
+ /**
20661
+ * Represents a FirewallDenied.
20662
+ */
20663
+ declare class api$FirewallDenied {
20664
+ /**
20665
+ * Constructs a new FirewallDenied.
20666
+ * @param [properties] Properties to set
20667
+ */
20668
+ constructor(properties?: api$IFirewallDenied): this;
20669
+
20670
+ /**
20671
+ * Creates a new FirewallDenied instance using the specified properties.
20672
+ * @param [properties] Properties to set
20673
+ * @returns FirewallDenied instance
20674
+ */
20675
+ static create(properties?: api$IFirewallDenied): api$FirewallDenied;
20676
+
20677
+ /**
20678
+ * [object Object],[object Object],[object Object]
20679
+ * @param message FirewallDenied message or plain object to encode
20680
+ * @param [writer] Writer to encode to
20681
+ * @returns Writer
20682
+ */
20683
+ static encode(
20684
+ message: api$FirewallDenied,
20685
+ writer?: $protobuf.Writer
20686
+ ): $protobuf.Writer;
20687
+
20688
+ /**
20689
+ * [object Object],[object Object],[object Object]
20690
+ * @param message FirewallDenied message or plain object to encode
20691
+ * @param [writer] Writer to encode to
20692
+ * @returns Writer
20693
+ */
20694
+ static encodeDelimited(
20695
+ message: api$FirewallDenied,
20696
+ writer?: $protobuf.Writer
20697
+ ): $protobuf.Writer;
20698
+
20699
+ /**
20700
+ * Decodes a FirewallDenied message from the specified reader or buffer.
20701
+ * @param reader Reader or buffer to decode from
20702
+ * @param [length] Message length if known beforehand
20703
+ * @returns FirewallDenied
20704
+ * @throws {Error} If the payload is not a reader or valid buffer
20705
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20706
+ */
20707
+ static decode(
20708
+ reader: $protobuf.Reader | Uint8Array,
20709
+ length?: number
20710
+ ): api$FirewallDenied;
20711
+
20712
+ /**
20713
+ * Decodes a FirewallDenied message from the specified reader or buffer, length delimited.
20714
+ * @param reader Reader or buffer to decode from
20715
+ * @returns FirewallDenied
20716
+ * @throws {Error} If the payload is not a reader or valid buffer
20717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20718
+ */
20719
+ static decodeDelimited(
20720
+ reader: $protobuf.Reader | Uint8Array
20721
+ ): api$FirewallDenied;
20722
+
20723
+ /**
20724
+ * Verifies a FirewallDenied message.
20725
+ * @param message Plain object to verify
20726
+ * @returns `null` if valid, otherwise the reason why it is not
20727
+ */
20728
+ static verify(message: {|
20729
+ [k: string]: any,
20730
+ |}): string | null;
20731
+
20732
+ /**
20733
+ * Creates a FirewallDenied message from a plain object. Also converts values to their respective internal types.
20734
+ * @param object Plain object
20735
+ * @returns FirewallDenied
20736
+ */
20737
+ static fromObject(object: {|
20738
+ [k: string]: any,
20739
+ |}): api$FirewallDenied;
20740
+
20741
+ /**
20742
+ * Creates a plain object from a FirewallDenied message. Also converts values to other types if specified.
20743
+ * @param message FirewallDenied
20744
+ * @param [options] Conversion options
20745
+ * @returns Plain object
20746
+ */
20747
+ static toObject(
20748
+ message: api$FirewallDenied,
20749
+ options?: $protobuf.IConversionOptions
20750
+ ): {|
20751
+ [k: string]: any,
20752
+ |};
20753
+
20754
+ /**
20755
+ * Converts this FirewallDenied to JSON.
20756
+ * @returns JSON object
20757
+ */
20758
+ toJSON(): {|
20759
+ [k: string]: any,
20760
+ |};
20761
+ }
20762
+
20358
20763
  /**
20359
20764
  * Properties of a Repl.
20360
20765
  */
@@ -20551,6 +20956,11 @@ declare type api$IResourceLimits = {|
20551
20956
  * ResourceLimits cache
20552
20957
  */
20553
20958
  cache?: $Values<typeof api$ResourceLimits$Cachability> | null,
20959
+
20960
+ /**
20961
+ * ResourceLimits restrictNetwork
20962
+ */
20963
+ restrictNetwork?: boolean | null,
20554
20964
  |};
20555
20965
 
20556
20966
  /**
@@ -20593,6 +21003,11 @@ declare class api$ResourceLimits {
20593
21003
  */
20594
21004
  cache: $Values<typeof api$ResourceLimits$Cachability>;
20595
21005
 
21006
+ /**
21007
+ * ResourceLimits restrictNetwork.
21008
+ */
21009
+ restrictNetwork: boolean;
21010
+
20596
21011
  /**
20597
21012
  * Creates a new ResourceLimits instance using the specified properties.
20598
21013
  * @param [properties] Properties to set
@@ -21905,20 +22320,10 @@ declare type api$IClusterMetadata = {|
21905
22320
  */
21906
22321
  gurl?: string | null,
21907
22322
 
21908
- /**
21909
- * ClusterMetadata proxyHost
21910
- */
21911
- proxyHost?: string | null,
21912
-
21913
22323
  /**
21914
22324
  * ClusterMetadata proxy
21915
22325
  */
21916
22326
  proxy?: string | null,
21917
-
21918
- /**
21919
- * ClusterMetadata proxyIP
21920
- */
21921
- proxyIP?: string | null,
21922
22327
  |};
21923
22328
 
21924
22329
  /**
@@ -21946,21 +22351,11 @@ declare class api$ClusterMetadata {
21946
22351
  */
21947
22352
  gurl: string;
21948
22353
 
21949
- /**
21950
- * ClusterMetadata proxyHost.
21951
- */
21952
- proxyHost: string;
21953
-
21954
22354
  /**
21955
22355
  * ClusterMetadata proxy.
21956
22356
  */
21957
22357
  proxy: string;
21958
22358
 
21959
- /**
21960
- * ClusterMetadata proxyIP.
21961
- */
21962
- proxyIP: string;
21963
-
21964
22359
  /**
21965
22360
  * Creates a new ClusterMetadata instance using the specified properties.
21966
22361
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.46",
3
+ "version": "0.2.49",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",