@replit/protocol 0.2.55 → 0.2.58
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 +143 -41
- package/main/index.js +356 -104
- package/main/index.js.flow +181 -41
- package/package.json +1 -1
package/main/index.js.flow
CHANGED
|
@@ -95,7 +95,7 @@ declare var npm$namespace$api: {|
|
|
|
95
95
|
IOTTransformSelectionRequest: Class<api$IOTTransformSelectionRequest>,
|
|
96
96
|
IOTTransformSelectionResponse: Class<api$IOTTransformSelectionResponse>,
|
|
97
97
|
IOTPacket: Class<api$IOTPacket>,
|
|
98
|
-
|
|
98
|
+
IOTOpComponent: Class<api$IOTOpComponent>,
|
|
99
99
|
IOTStatus: Class<api$IOTStatus>,
|
|
100
100
|
IOTCursor: Class<api$IOTCursor>,
|
|
101
101
|
IChatMessage: Class<api$IChatMessage>,
|
|
@@ -151,6 +151,7 @@ declare var npm$namespace$api: {|
|
|
|
151
151
|
IDebugBreakpointEvent: Class<api$IDebugBreakpointEvent>,
|
|
152
152
|
IDebugBreakpoint: Class<api$IDebugBreakpoint>,
|
|
153
153
|
IDotReplit: Class<api$IDotReplit>,
|
|
154
|
+
IGitHubImportConfig: Class<api$IGitHubImportConfig>,
|
|
154
155
|
INixConfig: Class<api$INixConfig>,
|
|
155
156
|
IHostingConfig: Class<api$IHostingConfig>,
|
|
156
157
|
IDotReplitInterp: Class<api$IDotReplitInterp>,
|
|
@@ -263,7 +264,7 @@ declare var npm$namespace$api: {|
|
|
|
263
264
|
OTTransformSelectionRequest: typeof api$OTTransformSelectionRequest,
|
|
264
265
|
OTTransformSelectionResponse: typeof api$OTTransformSelectionResponse,
|
|
265
266
|
OTPacket: typeof api$OTPacket,
|
|
266
|
-
|
|
267
|
+
OTOpComponent: typeof api$OTOpComponent,
|
|
267
268
|
OTStatus: typeof api$OTStatus,
|
|
268
269
|
OTCursor: typeof api$OTCursor,
|
|
269
270
|
ChatMessage: typeof api$ChatMessage,
|
|
@@ -319,6 +320,7 @@ declare var npm$namespace$api: {|
|
|
|
319
320
|
DebugBreakpointEvent: typeof api$DebugBreakpointEvent,
|
|
320
321
|
DebugBreakpoint: typeof api$DebugBreakpoint,
|
|
321
322
|
DotReplit: typeof api$DotReplit,
|
|
323
|
+
GitHubImportConfig: typeof api$GitHubImportConfig,
|
|
322
324
|
NixConfig: typeof api$NixConfig,
|
|
323
325
|
HostingConfig: typeof api$HostingConfig,
|
|
324
326
|
DotReplitInterp: typeof api$DotReplitInterp,
|
|
@@ -10712,6 +10714,11 @@ declare type api$IRunMain = {|
|
|
|
10712
10714
|
* RunMain runMode
|
|
10713
10715
|
*/
|
|
10714
10716
|
runMode?: $Values<typeof api$RunMain$RunMode> | null,
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* RunMain idempotent
|
|
10720
|
+
*/
|
|
10721
|
+
idempotent?: boolean | null,
|
|
10715
10722
|
|};
|
|
10716
10723
|
|
|
10717
10724
|
/**
|
|
@@ -10729,6 +10736,11 @@ declare class api$RunMain {
|
|
|
10729
10736
|
*/
|
|
10730
10737
|
runMode: $Values<typeof api$RunMain$RunMode>;
|
|
10731
10738
|
|
|
10739
|
+
/**
|
|
10740
|
+
* RunMain idempotent.
|
|
10741
|
+
*/
|
|
10742
|
+
idempotent: boolean;
|
|
10743
|
+
|
|
10732
10744
|
/**
|
|
10733
10745
|
* Creates a new RunMain instance using the specified properties.
|
|
10734
10746
|
* @param [properties] Properties to set
|
|
@@ -12377,9 +12389,9 @@ declare type api$IOTPacket = {|
|
|
|
12377
12389
|
version?: number | null,
|
|
12378
12390
|
|
|
12379
12391
|
/**
|
|
12380
|
-
* OTPacket
|
|
12392
|
+
* OTPacket op
|
|
12381
12393
|
*/
|
|
12382
|
-
|
|
12394
|
+
op?: (api$OTOpComponent | api$IOTOpComponent)[] | null,
|
|
12383
12395
|
|
|
12384
12396
|
/**
|
|
12385
12397
|
* OTPacket crc32
|
|
@@ -12423,9 +12435,9 @@ declare class api$OTPacket {
|
|
|
12423
12435
|
version: number;
|
|
12424
12436
|
|
|
12425
12437
|
/**
|
|
12426
|
-
* OTPacket
|
|
12438
|
+
* OTPacket op.
|
|
12427
12439
|
*/
|
|
12428
|
-
|
|
12440
|
+
op: api$OTOpComponent[];
|
|
12429
12441
|
|
|
12430
12442
|
/**
|
|
12431
12443
|
* OTPacket crc32.
|
|
@@ -12539,110 +12551,110 @@ declare class api$OTPacket {
|
|
|
12539
12551
|
}
|
|
12540
12552
|
|
|
12541
12553
|
/**
|
|
12542
|
-
* Properties of a
|
|
12554
|
+
* Properties of a OTOpComponent.
|
|
12543
12555
|
*/
|
|
12544
|
-
declare type api$
|
|
12556
|
+
declare type api$IOTOpComponent = {|
|
|
12545
12557
|
/**
|
|
12546
|
-
*
|
|
12558
|
+
* OTOpComponent skip
|
|
12547
12559
|
*/
|
|
12548
12560
|
skip?: number | null,
|
|
12549
12561
|
|
|
12550
12562
|
/**
|
|
12551
|
-
*
|
|
12563
|
+
* OTOpComponent delete
|
|
12552
12564
|
*/
|
|
12553
12565
|
delete?: number | null,
|
|
12554
12566
|
|
|
12555
12567
|
/**
|
|
12556
|
-
*
|
|
12568
|
+
* OTOpComponent insert
|
|
12557
12569
|
*/
|
|
12558
12570
|
insert?: string | null,
|
|
12559
12571
|
|};
|
|
12560
12572
|
|
|
12561
12573
|
/**
|
|
12562
|
-
* Represents a
|
|
12574
|
+
* Represents a OTOpComponent.
|
|
12563
12575
|
*/
|
|
12564
|
-
declare class api$
|
|
12576
|
+
declare class api$OTOpComponent {
|
|
12565
12577
|
/**
|
|
12566
|
-
* Constructs a new
|
|
12578
|
+
* Constructs a new OTOpComponent.
|
|
12567
12579
|
* @param [properties] Properties to set
|
|
12568
12580
|
*/
|
|
12569
|
-
constructor(properties?: api$
|
|
12581
|
+
constructor(properties?: api$IOTOpComponent): this;
|
|
12570
12582
|
|
|
12571
12583
|
/**
|
|
12572
|
-
*
|
|
12584
|
+
* OTOpComponent skip.
|
|
12573
12585
|
*/
|
|
12574
12586
|
skip?: number | null;
|
|
12575
12587
|
|
|
12576
12588
|
/**
|
|
12577
|
-
*
|
|
12589
|
+
* OTOpComponent delete.
|
|
12578
12590
|
*/
|
|
12579
12591
|
delete?: number | null;
|
|
12580
12592
|
|
|
12581
12593
|
/**
|
|
12582
|
-
*
|
|
12594
|
+
* OTOpComponent insert.
|
|
12583
12595
|
*/
|
|
12584
12596
|
insert?: string | null;
|
|
12585
12597
|
|
|
12586
12598
|
/**
|
|
12587
|
-
*
|
|
12599
|
+
* OTOpComponent opComponent.
|
|
12588
12600
|
*/
|
|
12589
|
-
|
|
12601
|
+
opComponent?: "skip" | "delete" | "insert";
|
|
12590
12602
|
|
|
12591
12603
|
/**
|
|
12592
|
-
* Creates a new
|
|
12604
|
+
* Creates a new OTOpComponent instance using the specified properties.
|
|
12593
12605
|
* @param [properties] Properties to set
|
|
12594
|
-
* @returns
|
|
12606
|
+
* @returns OTOpComponent instance
|
|
12595
12607
|
*/
|
|
12596
|
-
static create(properties?: api$
|
|
12608
|
+
static create(properties?: api$IOTOpComponent): api$OTOpComponent;
|
|
12597
12609
|
|
|
12598
12610
|
/**
|
|
12599
12611
|
* [object Object],[object Object],[object Object]
|
|
12600
|
-
* @param message
|
|
12612
|
+
* @param message OTOpComponent message or plain object to encode
|
|
12601
12613
|
* @param [writer] Writer to encode to
|
|
12602
12614
|
* @returns Writer
|
|
12603
12615
|
*/
|
|
12604
12616
|
static encode(
|
|
12605
|
-
message: api$
|
|
12617
|
+
message: api$OTOpComponent,
|
|
12606
12618
|
writer?: $protobuf.Writer
|
|
12607
12619
|
): $protobuf.Writer;
|
|
12608
12620
|
|
|
12609
12621
|
/**
|
|
12610
12622
|
* [object Object],[object Object],[object Object]
|
|
12611
|
-
* @param message
|
|
12623
|
+
* @param message OTOpComponent message or plain object to encode
|
|
12612
12624
|
* @param [writer] Writer to encode to
|
|
12613
12625
|
* @returns Writer
|
|
12614
12626
|
*/
|
|
12615
12627
|
static encodeDelimited(
|
|
12616
|
-
message: api$
|
|
12628
|
+
message: api$OTOpComponent,
|
|
12617
12629
|
writer?: $protobuf.Writer
|
|
12618
12630
|
): $protobuf.Writer;
|
|
12619
12631
|
|
|
12620
12632
|
/**
|
|
12621
|
-
* Decodes a
|
|
12633
|
+
* Decodes a OTOpComponent message from the specified reader or buffer.
|
|
12622
12634
|
* @param reader Reader or buffer to decode from
|
|
12623
12635
|
* @param [length] Message length if known beforehand
|
|
12624
|
-
* @returns
|
|
12636
|
+
* @returns OTOpComponent
|
|
12625
12637
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12626
12638
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12627
12639
|
*/
|
|
12628
12640
|
static decode(
|
|
12629
12641
|
reader: $protobuf.Reader | Uint8Array,
|
|
12630
12642
|
length?: number
|
|
12631
|
-
): api$
|
|
12643
|
+
): api$OTOpComponent;
|
|
12632
12644
|
|
|
12633
12645
|
/**
|
|
12634
|
-
* Decodes a
|
|
12646
|
+
* Decodes a OTOpComponent message from the specified reader or buffer, length delimited.
|
|
12635
12647
|
* @param reader Reader or buffer to decode from
|
|
12636
|
-
* @returns
|
|
12648
|
+
* @returns OTOpComponent
|
|
12637
12649
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12638
12650
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12639
12651
|
*/
|
|
12640
12652
|
static decodeDelimited(
|
|
12641
12653
|
reader: $protobuf.Reader | Uint8Array
|
|
12642
|
-
): api$
|
|
12654
|
+
): api$OTOpComponent;
|
|
12643
12655
|
|
|
12644
12656
|
/**
|
|
12645
|
-
* Verifies a
|
|
12657
|
+
* Verifies a OTOpComponent message.
|
|
12646
12658
|
* @param message Plain object to verify
|
|
12647
12659
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
12648
12660
|
*/
|
|
@@ -12651,29 +12663,29 @@ declare class api$OTRuneTransformOp {
|
|
|
12651
12663
|
|}): string | null;
|
|
12652
12664
|
|
|
12653
12665
|
/**
|
|
12654
|
-
* Creates a
|
|
12666
|
+
* Creates a OTOpComponent message from a plain object. Also converts values to their respective internal types.
|
|
12655
12667
|
* @param object Plain object
|
|
12656
|
-
* @returns
|
|
12668
|
+
* @returns OTOpComponent
|
|
12657
12669
|
*/
|
|
12658
12670
|
static fromObject(object: {|
|
|
12659
12671
|
[k: string]: any,
|
|
12660
|
-
|}): api$
|
|
12672
|
+
|}): api$OTOpComponent;
|
|
12661
12673
|
|
|
12662
12674
|
/**
|
|
12663
|
-
* Creates a plain object from a
|
|
12664
|
-
* @param message
|
|
12675
|
+
* Creates a plain object from a OTOpComponent message. Also converts values to other types if specified.
|
|
12676
|
+
* @param message OTOpComponent
|
|
12665
12677
|
* @param [options] Conversion options
|
|
12666
12678
|
* @returns Plain object
|
|
12667
12679
|
*/
|
|
12668
12680
|
static toObject(
|
|
12669
|
-
message: api$
|
|
12681
|
+
message: api$OTOpComponent,
|
|
12670
12682
|
options?: $protobuf.IConversionOptions
|
|
12671
12683
|
): {|
|
|
12672
12684
|
[k: string]: any,
|
|
12673
12685
|
|};
|
|
12674
12686
|
|
|
12675
12687
|
/**
|
|
12676
|
-
* Converts this
|
|
12688
|
+
* Converts this OTOpComponent to JSON.
|
|
12677
12689
|
* @returns JSON object
|
|
12678
12690
|
*/
|
|
12679
12691
|
toJSON(): {|
|
|
@@ -19895,6 +19907,11 @@ declare type api$IDotReplit = {|
|
|
|
19895
19907
|
env?: {|
|
|
19896
19908
|
[k: string]: string,
|
|
19897
19909
|
|} | null,
|
|
19910
|
+
|
|
19911
|
+
/**
|
|
19912
|
+
* DotReplit gitHubImport
|
|
19913
|
+
*/
|
|
19914
|
+
gitHubImport?: api$GitHubImportConfig | api$IGitHubImportConfig | null,
|
|
19898
19915
|
|};
|
|
19899
19916
|
|
|
19900
19917
|
/**
|
|
@@ -19986,6 +20003,11 @@ declare class api$DotReplit {
|
|
|
19986
20003
|
[k: string]: string,
|
|
19987
20004
|
|};
|
|
19988
20005
|
|
|
20006
|
+
/**
|
|
20007
|
+
* DotReplit gitHubImport.
|
|
20008
|
+
*/
|
|
20009
|
+
gitHubImport?: api$GitHubImportConfig | null;
|
|
20010
|
+
|
|
19989
20011
|
/**
|
|
19990
20012
|
* Creates a new DotReplit instance using the specified properties.
|
|
19991
20013
|
* @param [properties] Properties to set
|
|
@@ -20077,6 +20099,124 @@ declare class api$DotReplit {
|
|
|
20077
20099
|
|};
|
|
20078
20100
|
}
|
|
20079
20101
|
|
|
20102
|
+
/**
|
|
20103
|
+
* Properties of a GitHubImportConfig.
|
|
20104
|
+
*/
|
|
20105
|
+
declare type api$IGitHubImportConfig = {|
|
|
20106
|
+
/**
|
|
20107
|
+
* GitHubImportConfig RequiredFiles
|
|
20108
|
+
*/
|
|
20109
|
+
RequiredFiles?: string[] | null,
|
|
20110
|
+
|};
|
|
20111
|
+
|
|
20112
|
+
/**
|
|
20113
|
+
* Represents a GitHubImportConfig.
|
|
20114
|
+
*/
|
|
20115
|
+
declare class api$GitHubImportConfig {
|
|
20116
|
+
/**
|
|
20117
|
+
* Constructs a new GitHubImportConfig.
|
|
20118
|
+
* @param [properties] Properties to set
|
|
20119
|
+
*/
|
|
20120
|
+
constructor(properties?: api$IGitHubImportConfig): this;
|
|
20121
|
+
|
|
20122
|
+
/**
|
|
20123
|
+
* GitHubImportConfig RequiredFiles.
|
|
20124
|
+
*/
|
|
20125
|
+
RequiredFiles: string[];
|
|
20126
|
+
|
|
20127
|
+
/**
|
|
20128
|
+
* Creates a new GitHubImportConfig instance using the specified properties.
|
|
20129
|
+
* @param [properties] Properties to set
|
|
20130
|
+
* @returns GitHubImportConfig instance
|
|
20131
|
+
*/
|
|
20132
|
+
static create(properties?: api$IGitHubImportConfig): api$GitHubImportConfig;
|
|
20133
|
+
|
|
20134
|
+
/**
|
|
20135
|
+
* [object Object],[object Object],[object Object]
|
|
20136
|
+
* @param message GitHubImportConfig message or plain object to encode
|
|
20137
|
+
* @param [writer] Writer to encode to
|
|
20138
|
+
* @returns Writer
|
|
20139
|
+
*/
|
|
20140
|
+
static encode(
|
|
20141
|
+
message: api$GitHubImportConfig,
|
|
20142
|
+
writer?: $protobuf.Writer
|
|
20143
|
+
): $protobuf.Writer;
|
|
20144
|
+
|
|
20145
|
+
/**
|
|
20146
|
+
* [object Object],[object Object],[object Object]
|
|
20147
|
+
* @param message GitHubImportConfig message or plain object to encode
|
|
20148
|
+
* @param [writer] Writer to encode to
|
|
20149
|
+
* @returns Writer
|
|
20150
|
+
*/
|
|
20151
|
+
static encodeDelimited(
|
|
20152
|
+
message: api$GitHubImportConfig,
|
|
20153
|
+
writer?: $protobuf.Writer
|
|
20154
|
+
): $protobuf.Writer;
|
|
20155
|
+
|
|
20156
|
+
/**
|
|
20157
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer.
|
|
20158
|
+
* @param reader Reader or buffer to decode from
|
|
20159
|
+
* @param [length] Message length if known beforehand
|
|
20160
|
+
* @returns GitHubImportConfig
|
|
20161
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20162
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20163
|
+
*/
|
|
20164
|
+
static decode(
|
|
20165
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
20166
|
+
length?: number
|
|
20167
|
+
): api$GitHubImportConfig;
|
|
20168
|
+
|
|
20169
|
+
/**
|
|
20170
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer, length delimited.
|
|
20171
|
+
* @param reader Reader or buffer to decode from
|
|
20172
|
+
* @returns GitHubImportConfig
|
|
20173
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20174
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20175
|
+
*/
|
|
20176
|
+
static decodeDelimited(
|
|
20177
|
+
reader: $protobuf.Reader | Uint8Array
|
|
20178
|
+
): api$GitHubImportConfig;
|
|
20179
|
+
|
|
20180
|
+
/**
|
|
20181
|
+
* Verifies a GitHubImportConfig message.
|
|
20182
|
+
* @param message Plain object to verify
|
|
20183
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20184
|
+
*/
|
|
20185
|
+
static verify(message: {|
|
|
20186
|
+
[k: string]: any,
|
|
20187
|
+
|}): string | null;
|
|
20188
|
+
|
|
20189
|
+
/**
|
|
20190
|
+
* Creates a GitHubImportConfig message from a plain object. Also converts values to their respective internal types.
|
|
20191
|
+
* @param object Plain object
|
|
20192
|
+
* @returns GitHubImportConfig
|
|
20193
|
+
*/
|
|
20194
|
+
static fromObject(object: {|
|
|
20195
|
+
[k: string]: any,
|
|
20196
|
+
|}): api$GitHubImportConfig;
|
|
20197
|
+
|
|
20198
|
+
/**
|
|
20199
|
+
* Creates a plain object from a GitHubImportConfig message. Also converts values to other types if specified.
|
|
20200
|
+
* @param message GitHubImportConfig
|
|
20201
|
+
* @param [options] Conversion options
|
|
20202
|
+
* @returns Plain object
|
|
20203
|
+
*/
|
|
20204
|
+
static toObject(
|
|
20205
|
+
message: api$GitHubImportConfig,
|
|
20206
|
+
options?: $protobuf.IConversionOptions
|
|
20207
|
+
): {|
|
|
20208
|
+
[k: string]: any,
|
|
20209
|
+
|};
|
|
20210
|
+
|
|
20211
|
+
/**
|
|
20212
|
+
* Converts this GitHubImportConfig to JSON.
|
|
20213
|
+
* @returns JSON object
|
|
20214
|
+
*/
|
|
20215
|
+
toJSON(): {|
|
|
20216
|
+
[k: string]: any,
|
|
20217
|
+
|};
|
|
20218
|
+
}
|
|
20219
|
+
|
|
20080
20220
|
/**
|
|
20081
20221
|
* Properties of a NixConfig.
|
|
20082
20222
|
*/
|