@replit/protocol 0.3.25 → 0.3.27
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/iotester/index.js.flow +1 -1
- package/main/index.d.ts +225 -1
- package/main/index.js +581 -2
- package/main/index.js.flow +315 -1
- package/package.json +2 -2
package/main/index.js.flow
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flowtype definitions for index
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.
|
|
4
|
+
* Flowgen v1.14.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -223,6 +223,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
223
223
|
ILanguageServerOption: Class<replit$goval$api$ILanguageServerOption>,
|
|
224
224
|
IFileTypeAttrs: Class<replit$goval$api$IFileTypeAttrs>,
|
|
225
225
|
IPackagerOption: Class<replit$goval$api$IPackagerOption>,
|
|
226
|
+
IFormatterOption: Class<replit$goval$api$IFormatterOption>,
|
|
226
227
|
IReplDomainDoubleDash: Class<replit$goval$api$IReplDomainDoubleDash>,
|
|
227
228
|
IReplDomainDots: Class<replit$goval$api$IReplDomainDots>,
|
|
228
229
|
IReplDomainSingleDomain: Class<replit$goval$api$IReplDomainSingleDomain>,
|
|
@@ -451,6 +452,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
451
452
|
LanguageServerOption: typeof replit$goval$api$LanguageServerOption,
|
|
452
453
|
FileTypeAttrs: typeof replit$goval$api$FileTypeAttrs,
|
|
453
454
|
PackagerOption: typeof replit$goval$api$PackagerOption,
|
|
455
|
+
FormatterOption: typeof replit$goval$api$FormatterOption,
|
|
454
456
|
ReplDomainDoubleDash: typeof replit$goval$api$ReplDomainDoubleDash,
|
|
455
457
|
ReplDomainDots: typeof replit$goval$api$ReplDomainDots,
|
|
456
458
|
ReplDomainSingleDomain: typeof replit$goval$api$ReplDomainSingleDomain,
|
|
@@ -614,6 +616,11 @@ declare type replit$goval$api$ICommand = {|
|
|
|
614
616
|
*/
|
|
615
617
|
log?: string | null,
|
|
616
618
|
|
|
619
|
+
/**
|
|
620
|
+
* Command inputClose
|
|
621
|
+
*/
|
|
622
|
+
inputClose?: google$protobuf$Empty | google$protobuf$IEmpty | null,
|
|
623
|
+
|
|
617
624
|
/**
|
|
618
625
|
* Command outputBlockStartEvent
|
|
619
626
|
*/
|
|
@@ -1882,6 +1889,11 @@ declare class replit$goval$api$Command {
|
|
|
1882
1889
|
*/
|
|
1883
1890
|
log?: string | null;
|
|
1884
1891
|
|
|
1892
|
+
/**
|
|
1893
|
+
* Command inputClose.
|
|
1894
|
+
*/
|
|
1895
|
+
inputClose?: google$protobuf$Empty | null;
|
|
1896
|
+
|
|
1885
1897
|
/**
|
|
1886
1898
|
* Command outputBlockStartEvent.
|
|
1887
1899
|
*/
|
|
@@ -2738,6 +2750,7 @@ declare class replit$goval$api$Command {
|
|
|
2738
2750
|
| "error"
|
|
2739
2751
|
| "stderr"
|
|
2740
2752
|
| "log"
|
|
2753
|
+
| "inputClose"
|
|
2741
2754
|
| "outputBlockStartEvent"
|
|
2742
2755
|
| "outputBlockEndEvent"
|
|
2743
2756
|
| "exitCodeEvent"
|
|
@@ -29295,6 +29308,13 @@ declare type replit$goval$api$INixModule = {|
|
|
|
29295
29308
|
* NixModule referencedId
|
|
29296
29309
|
*/
|
|
29297
29310
|
referencedId?: string | null,
|
|
29311
|
+
|
|
29312
|
+
/**
|
|
29313
|
+
* NixModule formatters
|
|
29314
|
+
*/
|
|
29315
|
+
formatters?:
|
|
29316
|
+
| (replit$goval$api$FormatterOption | replit$goval$api$IFormatterOption)[]
|
|
29317
|
+
| null,
|
|
29298
29318
|
|};
|
|
29299
29319
|
|
|
29300
29320
|
/**
|
|
@@ -29367,6 +29387,11 @@ declare class replit$goval$api$NixModule {
|
|
|
29367
29387
|
*/
|
|
29368
29388
|
referencedId: string;
|
|
29369
29389
|
|
|
29390
|
+
/**
|
|
29391
|
+
* NixModule formatters.
|
|
29392
|
+
*/
|
|
29393
|
+
formatters: replit$goval$api$FormatterOption[];
|
|
29394
|
+
|
|
29370
29395
|
/**
|
|
29371
29396
|
* Creates a new NixModule instance using the specified properties.
|
|
29372
29397
|
* @param [properties] Properties to set
|
|
@@ -30486,6 +30511,13 @@ declare type replit$goval$api$IToolchainConfigs = {|
|
|
|
30486
30511
|
packagers?:
|
|
30487
30512
|
| (replit$goval$api$PackagerOption | replit$goval$api$IPackagerOption)[]
|
|
30488
30513
|
| null,
|
|
30514
|
+
|
|
30515
|
+
/**
|
|
30516
|
+
* ToolchainConfigs formatters
|
|
30517
|
+
*/
|
|
30518
|
+
formatters?:
|
|
30519
|
+
| (replit$goval$api$FormatterOption | replit$goval$api$IFormatterOption)[]
|
|
30520
|
+
| null,
|
|
30489
30521
|
|};
|
|
30490
30522
|
|
|
30491
30523
|
/**
|
|
@@ -30523,6 +30555,11 @@ declare class replit$goval$api$ToolchainConfigs {
|
|
|
30523
30555
|
*/
|
|
30524
30556
|
packagers: replit$goval$api$PackagerOption[];
|
|
30525
30557
|
|
|
30558
|
+
/**
|
|
30559
|
+
* ToolchainConfigs formatters.
|
|
30560
|
+
*/
|
|
30561
|
+
formatters: replit$goval$api$FormatterOption[];
|
|
30562
|
+
|
|
30526
30563
|
/**
|
|
30527
30564
|
* Creates a new ToolchainConfigs instance using the specified properties.
|
|
30528
30565
|
* @param [properties] Properties to set
|
|
@@ -31752,6 +31789,166 @@ declare class replit$goval$api$PackagerOption {
|
|
|
31752
31789
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31753
31790
|
}
|
|
31754
31791
|
|
|
31792
|
+
/**
|
|
31793
|
+
* Properties of a FormatterOption.
|
|
31794
|
+
*/
|
|
31795
|
+
declare type replit$goval$api$IFormatterOption = {|
|
|
31796
|
+
/**
|
|
31797
|
+
* FormatterOption id
|
|
31798
|
+
*/
|
|
31799
|
+
id?: string | null,
|
|
31800
|
+
|
|
31801
|
+
/**
|
|
31802
|
+
* FormatterOption name
|
|
31803
|
+
*/
|
|
31804
|
+
name?: string | null,
|
|
31805
|
+
|
|
31806
|
+
/**
|
|
31807
|
+
* FormatterOption startCommand
|
|
31808
|
+
*/
|
|
31809
|
+
startCommand?: replit$goval$api$Exec | replit$goval$api$IExec | null,
|
|
31810
|
+
|
|
31811
|
+
/**
|
|
31812
|
+
* FormatterOption fileTypeAttrs
|
|
31813
|
+
*/
|
|
31814
|
+
fileTypeAttrs?:
|
|
31815
|
+
| replit$goval$api$FileTypeAttrs
|
|
31816
|
+
| replit$goval$api$IFileTypeAttrs
|
|
31817
|
+
| null,
|
|
31818
|
+
|};
|
|
31819
|
+
|
|
31820
|
+
/**
|
|
31821
|
+
* Represents a FormatterOption.
|
|
31822
|
+
*/
|
|
31823
|
+
declare class replit$goval$api$FormatterOption {
|
|
31824
|
+
/**
|
|
31825
|
+
* Constructs a new FormatterOption.
|
|
31826
|
+
* @param [properties] Properties to set
|
|
31827
|
+
*/
|
|
31828
|
+
constructor(properties?: replit$goval$api$IFormatterOption): this;
|
|
31829
|
+
|
|
31830
|
+
/**
|
|
31831
|
+
* FormatterOption id.
|
|
31832
|
+
*/
|
|
31833
|
+
id: string;
|
|
31834
|
+
|
|
31835
|
+
/**
|
|
31836
|
+
* FormatterOption name.
|
|
31837
|
+
*/
|
|
31838
|
+
name: string;
|
|
31839
|
+
|
|
31840
|
+
/**
|
|
31841
|
+
* FormatterOption startCommand.
|
|
31842
|
+
*/
|
|
31843
|
+
startCommand?: replit$goval$api$Exec | null;
|
|
31844
|
+
|
|
31845
|
+
/**
|
|
31846
|
+
* FormatterOption fileTypeAttrs.
|
|
31847
|
+
*/
|
|
31848
|
+
fileTypeAttrs?: replit$goval$api$FileTypeAttrs | null;
|
|
31849
|
+
|
|
31850
|
+
/**
|
|
31851
|
+
* Creates a new FormatterOption instance using the specified properties.
|
|
31852
|
+
* @param [properties] Properties to set
|
|
31853
|
+
* @returns FormatterOption instance
|
|
31854
|
+
*/
|
|
31855
|
+
static create(
|
|
31856
|
+
properties?: replit$goval$api$IFormatterOption
|
|
31857
|
+
): replit$goval$api$FormatterOption;
|
|
31858
|
+
|
|
31859
|
+
/**
|
|
31860
|
+
* [object Object],[object Object],[object Object]
|
|
31861
|
+
* @param message FormatterOption message or plain object to encode
|
|
31862
|
+
* @param [writer] Writer to encode to
|
|
31863
|
+
* @returns Writer
|
|
31864
|
+
*/
|
|
31865
|
+
static encode(
|
|
31866
|
+
message: replit$goval$api$FormatterOption,
|
|
31867
|
+
writer?: $protobuf.Writer
|
|
31868
|
+
): $protobuf.Writer;
|
|
31869
|
+
|
|
31870
|
+
/**
|
|
31871
|
+
* [object Object],[object Object],[object Object]
|
|
31872
|
+
* @param message FormatterOption message or plain object to encode
|
|
31873
|
+
* @param [writer] Writer to encode to
|
|
31874
|
+
* @returns Writer
|
|
31875
|
+
*/
|
|
31876
|
+
static encodeDelimited(
|
|
31877
|
+
message: replit$goval$api$FormatterOption,
|
|
31878
|
+
writer?: $protobuf.Writer
|
|
31879
|
+
): $protobuf.Writer;
|
|
31880
|
+
|
|
31881
|
+
/**
|
|
31882
|
+
* Decodes a FormatterOption message from the specified reader or buffer.
|
|
31883
|
+
* @param reader Reader or buffer to decode from
|
|
31884
|
+
* @param [length] Message length if known beforehand
|
|
31885
|
+
* @returns FormatterOption
|
|
31886
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31887
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31888
|
+
*/
|
|
31889
|
+
static decode(
|
|
31890
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
31891
|
+
length?: number
|
|
31892
|
+
): replit$goval$api$FormatterOption;
|
|
31893
|
+
|
|
31894
|
+
/**
|
|
31895
|
+
* Decodes a FormatterOption message from the specified reader or buffer, length delimited.
|
|
31896
|
+
* @param reader Reader or buffer to decode from
|
|
31897
|
+
* @returns FormatterOption
|
|
31898
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31899
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31900
|
+
*/
|
|
31901
|
+
static decodeDelimited(
|
|
31902
|
+
reader: $protobuf.Reader | Uint8Array
|
|
31903
|
+
): replit$goval$api$FormatterOption;
|
|
31904
|
+
|
|
31905
|
+
/**
|
|
31906
|
+
* Verifies a FormatterOption message.
|
|
31907
|
+
* @param message Plain object to verify
|
|
31908
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31909
|
+
*/
|
|
31910
|
+
static verify(message: {|
|
|
31911
|
+
[k: string]: any,
|
|
31912
|
+
|}): string | null;
|
|
31913
|
+
|
|
31914
|
+
/**
|
|
31915
|
+
* Creates a FormatterOption message from a plain object. Also converts values to their respective internal types.
|
|
31916
|
+
* @param object Plain object
|
|
31917
|
+
* @returns FormatterOption
|
|
31918
|
+
*/
|
|
31919
|
+
static fromObject(object: {|
|
|
31920
|
+
[k: string]: any,
|
|
31921
|
+
|}): replit$goval$api$FormatterOption;
|
|
31922
|
+
|
|
31923
|
+
/**
|
|
31924
|
+
* Creates a plain object from a FormatterOption message. Also converts values to other types if specified.
|
|
31925
|
+
* @param message FormatterOption
|
|
31926
|
+
* @param [options] Conversion options
|
|
31927
|
+
* @returns Plain object
|
|
31928
|
+
*/
|
|
31929
|
+
static toObject(
|
|
31930
|
+
message: replit$goval$api$FormatterOption,
|
|
31931
|
+
options?: $protobuf.IConversionOptions
|
|
31932
|
+
): {|
|
|
31933
|
+
[k: string]: any,
|
|
31934
|
+
|};
|
|
31935
|
+
|
|
31936
|
+
/**
|
|
31937
|
+
* Converts this FormatterOption to JSON.
|
|
31938
|
+
* @returns JSON object
|
|
31939
|
+
*/
|
|
31940
|
+
toJSON(): {|
|
|
31941
|
+
[k: string]: any,
|
|
31942
|
+
|};
|
|
31943
|
+
|
|
31944
|
+
/**
|
|
31945
|
+
* Gets the default type url for FormatterOption
|
|
31946
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31947
|
+
* @returns The default type url
|
|
31948
|
+
*/
|
|
31949
|
+
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31950
|
+
}
|
|
31951
|
+
|
|
31755
31952
|
/**
|
|
31756
31953
|
* Properties of a ReplDomainDoubleDash.
|
|
31757
31954
|
*/
|
|
@@ -39771,11 +39968,13 @@ declare var npm$namespace$google$protobuf: {|
|
|
|
39771
39968
|
IStruct: Class<google$protobuf$IStruct>,
|
|
39772
39969
|
IValue: Class<google$protobuf$IValue>,
|
|
39773
39970
|
IListValue: Class<google$protobuf$IListValue>,
|
|
39971
|
+
IEmpty: Class<google$protobuf$IEmpty>,
|
|
39774
39972
|
IFieldMask: Class<google$protobuf$IFieldMask>,
|
|
39775
39973
|
Timestamp: typeof google$protobuf$Timestamp,
|
|
39776
39974
|
Struct: typeof google$protobuf$Struct,
|
|
39777
39975
|
Value: typeof google$protobuf$Value,
|
|
39778
39976
|
ListValue: typeof google$protobuf$ListValue,
|
|
39977
|
+
Empty: typeof google$protobuf$Empty,
|
|
39779
39978
|
FieldMask: typeof google$protobuf$FieldMask,
|
|
39780
39979
|
|};
|
|
39781
39980
|
|
|
@@ -40366,6 +40565,121 @@ declare class google$protobuf$ListValue {
|
|
|
40366
40565
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
40367
40566
|
}
|
|
40368
40567
|
|
|
40568
|
+
/**
|
|
40569
|
+
* Properties of an Empty.
|
|
40570
|
+
*/
|
|
40571
|
+
declare type google$protobuf$IEmpty = {||};
|
|
40572
|
+
|
|
40573
|
+
/**
|
|
40574
|
+
* Represents an Empty.
|
|
40575
|
+
*/
|
|
40576
|
+
declare class google$protobuf$Empty {
|
|
40577
|
+
/**
|
|
40578
|
+
* Constructs a new Empty.
|
|
40579
|
+
* @param [properties] Properties to set
|
|
40580
|
+
*/
|
|
40581
|
+
constructor(properties?: google$protobuf$IEmpty): this;
|
|
40582
|
+
|
|
40583
|
+
/**
|
|
40584
|
+
* Creates a new Empty instance using the specified properties.
|
|
40585
|
+
* @param [properties] Properties to set
|
|
40586
|
+
* @returns Empty instance
|
|
40587
|
+
*/
|
|
40588
|
+
static create(properties?: google$protobuf$IEmpty): google$protobuf$Empty;
|
|
40589
|
+
|
|
40590
|
+
/**
|
|
40591
|
+
* [object Object],[object Object],[object Object]
|
|
40592
|
+
* @param message Empty message or plain object to encode
|
|
40593
|
+
* @param [writer] Writer to encode to
|
|
40594
|
+
* @returns Writer
|
|
40595
|
+
*/
|
|
40596
|
+
static encode(
|
|
40597
|
+
message: google$protobuf$Empty,
|
|
40598
|
+
writer?: $protobuf.Writer
|
|
40599
|
+
): $protobuf.Writer;
|
|
40600
|
+
|
|
40601
|
+
/**
|
|
40602
|
+
* [object Object],[object Object],[object Object]
|
|
40603
|
+
* @param message Empty message or plain object to encode
|
|
40604
|
+
* @param [writer] Writer to encode to
|
|
40605
|
+
* @returns Writer
|
|
40606
|
+
*/
|
|
40607
|
+
static encodeDelimited(
|
|
40608
|
+
message: google$protobuf$Empty,
|
|
40609
|
+
writer?: $protobuf.Writer
|
|
40610
|
+
): $protobuf.Writer;
|
|
40611
|
+
|
|
40612
|
+
/**
|
|
40613
|
+
* Decodes an Empty message from the specified reader or buffer.
|
|
40614
|
+
* @param reader Reader or buffer to decode from
|
|
40615
|
+
* @param [length] Message length if known beforehand
|
|
40616
|
+
* @returns Empty
|
|
40617
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40618
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40619
|
+
*/
|
|
40620
|
+
static decode(
|
|
40621
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
40622
|
+
length?: number
|
|
40623
|
+
): google$protobuf$Empty;
|
|
40624
|
+
|
|
40625
|
+
/**
|
|
40626
|
+
* Decodes an Empty message from the specified reader or buffer, length delimited.
|
|
40627
|
+
* @param reader Reader or buffer to decode from
|
|
40628
|
+
* @returns Empty
|
|
40629
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40630
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40631
|
+
*/
|
|
40632
|
+
static decodeDelimited(
|
|
40633
|
+
reader: $protobuf.Reader | Uint8Array
|
|
40634
|
+
): google$protobuf$Empty;
|
|
40635
|
+
|
|
40636
|
+
/**
|
|
40637
|
+
* Verifies an Empty message.
|
|
40638
|
+
* @param message Plain object to verify
|
|
40639
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
40640
|
+
*/
|
|
40641
|
+
static verify(message: {|
|
|
40642
|
+
[k: string]: any,
|
|
40643
|
+
|}): string | null;
|
|
40644
|
+
|
|
40645
|
+
/**
|
|
40646
|
+
* Creates an Empty message from a plain object. Also converts values to their respective internal types.
|
|
40647
|
+
* @param object Plain object
|
|
40648
|
+
* @returns Empty
|
|
40649
|
+
*/
|
|
40650
|
+
static fromObject(object: {|
|
|
40651
|
+
[k: string]: any,
|
|
40652
|
+
|}): google$protobuf$Empty;
|
|
40653
|
+
|
|
40654
|
+
/**
|
|
40655
|
+
* Creates a plain object from an Empty message. Also converts values to other types if specified.
|
|
40656
|
+
* @param message Empty
|
|
40657
|
+
* @param [options] Conversion options
|
|
40658
|
+
* @returns Plain object
|
|
40659
|
+
*/
|
|
40660
|
+
static toObject(
|
|
40661
|
+
message: google$protobuf$Empty,
|
|
40662
|
+
options?: $protobuf.IConversionOptions
|
|
40663
|
+
): {|
|
|
40664
|
+
[k: string]: any,
|
|
40665
|
+
|};
|
|
40666
|
+
|
|
40667
|
+
/**
|
|
40668
|
+
* Converts this Empty to JSON.
|
|
40669
|
+
* @returns JSON object
|
|
40670
|
+
*/
|
|
40671
|
+
toJSON(): {|
|
|
40672
|
+
[k: string]: any,
|
|
40673
|
+
|};
|
|
40674
|
+
|
|
40675
|
+
/**
|
|
40676
|
+
* Gets the default type url for Empty
|
|
40677
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
40678
|
+
* @returns The default type url
|
|
40679
|
+
*/
|
|
40680
|
+
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
40681
|
+
}
|
|
40682
|
+
|
|
40369
40683
|
/**
|
|
40370
40684
|
* Properties of a FieldMask.
|
|
40371
40685
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.27",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"repository": "https://github.com/replit/protocol",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"flowgen": "~1.14.0",
|
|
20
|
-
"protobufjs-cli": "^1.1.
|
|
20
|
+
"protobufjs-cli": "^1.1.1"
|
|
21
21
|
}
|
|
22
22
|
}
|