@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.d.ts
CHANGED
|
@@ -7507,6 +7507,9 @@ export namespace api {
|
|
|
7507
7507
|
|
|
7508
7508
|
/** RunMain runMode */
|
|
7509
7509
|
runMode?: (api.RunMain.RunMode|null);
|
|
7510
|
+
|
|
7511
|
+
/** RunMain idempotent */
|
|
7512
|
+
idempotent?: (boolean|null);
|
|
7510
7513
|
}
|
|
7511
7514
|
|
|
7512
7515
|
/** Represents a RunMain. */
|
|
@@ -7521,6 +7524,9 @@ export namespace api {
|
|
|
7521
7524
|
/** RunMain runMode. */
|
|
7522
7525
|
public runMode: api.RunMain.RunMode;
|
|
7523
7526
|
|
|
7527
|
+
/** RunMain idempotent. */
|
|
7528
|
+
public idempotent: boolean;
|
|
7529
|
+
|
|
7524
7530
|
/**
|
|
7525
7531
|
* Creates a new RunMain instance using the specified properties.
|
|
7526
7532
|
* @param [properties] Properties to set
|
|
@@ -8757,8 +8763,8 @@ export namespace api {
|
|
|
8757
8763
|
/** OTPacket version */
|
|
8758
8764
|
version?: (number|null);
|
|
8759
8765
|
|
|
8760
|
-
/** OTPacket
|
|
8761
|
-
|
|
8766
|
+
/** OTPacket op */
|
|
8767
|
+
op?: ((api.OTOpComponent|api.IOTOpComponent)[]|null);
|
|
8762
8768
|
|
|
8763
8769
|
/** OTPacket crc32 */
|
|
8764
8770
|
crc32?: (number|null);
|
|
@@ -8788,8 +8794,8 @@ export namespace api {
|
|
|
8788
8794
|
/** OTPacket version. */
|
|
8789
8795
|
public version: number;
|
|
8790
8796
|
|
|
8791
|
-
/** OTPacket
|
|
8792
|
-
public
|
|
8797
|
+
/** OTPacket op. */
|
|
8798
|
+
public op: api.OTOpComponent[];
|
|
8793
8799
|
|
|
8794
8800
|
/** OTPacket crc32. */
|
|
8795
8801
|
public crc32: number;
|
|
@@ -8874,106 +8880,106 @@ export namespace api {
|
|
|
8874
8880
|
public toJSON(): { [k: string]: any };
|
|
8875
8881
|
}
|
|
8876
8882
|
|
|
8877
|
-
/** Properties of a
|
|
8878
|
-
interface
|
|
8883
|
+
/** Properties of a OTOpComponent. */
|
|
8884
|
+
interface IOTOpComponent {
|
|
8879
8885
|
|
|
8880
|
-
/**
|
|
8886
|
+
/** OTOpComponent skip */
|
|
8881
8887
|
skip?: (number|null);
|
|
8882
8888
|
|
|
8883
|
-
/**
|
|
8889
|
+
/** OTOpComponent delete */
|
|
8884
8890
|
"delete"?: (number|null);
|
|
8885
8891
|
|
|
8886
|
-
/**
|
|
8892
|
+
/** OTOpComponent insert */
|
|
8887
8893
|
insert?: (string|null);
|
|
8888
8894
|
}
|
|
8889
8895
|
|
|
8890
|
-
/** Represents a
|
|
8891
|
-
class
|
|
8896
|
+
/** Represents a OTOpComponent. */
|
|
8897
|
+
class OTOpComponent {
|
|
8892
8898
|
|
|
8893
8899
|
/**
|
|
8894
|
-
* Constructs a new
|
|
8900
|
+
* Constructs a new OTOpComponent.
|
|
8895
8901
|
* @param [properties] Properties to set
|
|
8896
8902
|
*/
|
|
8897
|
-
private constructor(properties?: api.
|
|
8903
|
+
private constructor(properties?: api.IOTOpComponent);
|
|
8898
8904
|
|
|
8899
|
-
/**
|
|
8905
|
+
/** OTOpComponent skip. */
|
|
8900
8906
|
public skip?: (number|null);
|
|
8901
8907
|
|
|
8902
|
-
/**
|
|
8908
|
+
/** OTOpComponent delete. */
|
|
8903
8909
|
public delete?: (number|null);
|
|
8904
8910
|
|
|
8905
|
-
/**
|
|
8911
|
+
/** OTOpComponent insert. */
|
|
8906
8912
|
public insert?: (string|null);
|
|
8907
8913
|
|
|
8908
|
-
/**
|
|
8909
|
-
public
|
|
8914
|
+
/** OTOpComponent opComponent. */
|
|
8915
|
+
public opComponent?: ("skip"|"delete"|"insert");
|
|
8910
8916
|
|
|
8911
8917
|
/**
|
|
8912
|
-
* Creates a new
|
|
8918
|
+
* Creates a new OTOpComponent instance using the specified properties.
|
|
8913
8919
|
* @param [properties] Properties to set
|
|
8914
|
-
* @returns
|
|
8920
|
+
* @returns OTOpComponent instance
|
|
8915
8921
|
*/
|
|
8916
|
-
public static create(properties?: api.
|
|
8922
|
+
public static create(properties?: api.IOTOpComponent): api.OTOpComponent;
|
|
8917
8923
|
|
|
8918
8924
|
/**
|
|
8919
|
-
* Encodes the specified
|
|
8920
|
-
* @param message
|
|
8925
|
+
* Encodes the specified OTOpComponent message. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
8926
|
+
* @param message OTOpComponent message or plain object to encode
|
|
8921
8927
|
* @param [writer] Writer to encode to
|
|
8922
8928
|
* @returns Writer
|
|
8923
8929
|
*/
|
|
8924
|
-
public static encode(message: api.
|
|
8930
|
+
public static encode(message: api.OTOpComponent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8925
8931
|
|
|
8926
8932
|
/**
|
|
8927
|
-
* Encodes the specified
|
|
8928
|
-
* @param message
|
|
8933
|
+
* Encodes the specified OTOpComponent message, length delimited. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
8934
|
+
* @param message OTOpComponent message or plain object to encode
|
|
8929
8935
|
* @param [writer] Writer to encode to
|
|
8930
8936
|
* @returns Writer
|
|
8931
8937
|
*/
|
|
8932
|
-
public static encodeDelimited(message: api.
|
|
8938
|
+
public static encodeDelimited(message: api.OTOpComponent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8933
8939
|
|
|
8934
8940
|
/**
|
|
8935
|
-
* Decodes a
|
|
8941
|
+
* Decodes a OTOpComponent message from the specified reader or buffer.
|
|
8936
8942
|
* @param reader Reader or buffer to decode from
|
|
8937
8943
|
* @param [length] Message length if known beforehand
|
|
8938
|
-
* @returns
|
|
8944
|
+
* @returns OTOpComponent
|
|
8939
8945
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8940
8946
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8941
8947
|
*/
|
|
8942
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.
|
|
8948
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.OTOpComponent;
|
|
8943
8949
|
|
|
8944
8950
|
/**
|
|
8945
|
-
* Decodes a
|
|
8951
|
+
* Decodes a OTOpComponent message from the specified reader or buffer, length delimited.
|
|
8946
8952
|
* @param reader Reader or buffer to decode from
|
|
8947
|
-
* @returns
|
|
8953
|
+
* @returns OTOpComponent
|
|
8948
8954
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8949
8955
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8950
8956
|
*/
|
|
8951
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.
|
|
8957
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.OTOpComponent;
|
|
8952
8958
|
|
|
8953
8959
|
/**
|
|
8954
|
-
* Verifies a
|
|
8960
|
+
* Verifies a OTOpComponent message.
|
|
8955
8961
|
* @param message Plain object to verify
|
|
8956
8962
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
8957
8963
|
*/
|
|
8958
8964
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
8959
8965
|
|
|
8960
8966
|
/**
|
|
8961
|
-
* Creates a
|
|
8967
|
+
* Creates a OTOpComponent message from a plain object. Also converts values to their respective internal types.
|
|
8962
8968
|
* @param object Plain object
|
|
8963
|
-
* @returns
|
|
8969
|
+
* @returns OTOpComponent
|
|
8964
8970
|
*/
|
|
8965
|
-
public static fromObject(object: { [k: string]: any }): api.
|
|
8971
|
+
public static fromObject(object: { [k: string]: any }): api.OTOpComponent;
|
|
8966
8972
|
|
|
8967
8973
|
/**
|
|
8968
|
-
* Creates a plain object from a
|
|
8969
|
-
* @param message
|
|
8974
|
+
* Creates a plain object from a OTOpComponent message. Also converts values to other types if specified.
|
|
8975
|
+
* @param message OTOpComponent
|
|
8970
8976
|
* @param [options] Conversion options
|
|
8971
8977
|
* @returns Plain object
|
|
8972
8978
|
*/
|
|
8973
|
-
public static toObject(message: api.
|
|
8979
|
+
public static toObject(message: api.OTOpComponent, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8974
8980
|
|
|
8975
8981
|
/**
|
|
8976
|
-
* Converts this
|
|
8982
|
+
* Converts this OTOpComponent to JSON.
|
|
8977
8983
|
* @returns JSON object
|
|
8978
8984
|
*/
|
|
8979
8985
|
public toJSON(): { [k: string]: any };
|
|
@@ -14357,6 +14363,9 @@ export namespace api {
|
|
|
14357
14363
|
|
|
14358
14364
|
/** DotReplit env */
|
|
14359
14365
|
env?: ({ [k: string]: string }|null);
|
|
14366
|
+
|
|
14367
|
+
/** DotReplit gitHubImport */
|
|
14368
|
+
gitHubImport?: (api.GitHubImportConfig|api.IGitHubImportConfig|null);
|
|
14360
14369
|
}
|
|
14361
14370
|
|
|
14362
14371
|
/** Represents a DotReplit. */
|
|
@@ -14413,6 +14422,9 @@ export namespace api {
|
|
|
14413
14422
|
/** DotReplit env. */
|
|
14414
14423
|
public env: { [k: string]: string };
|
|
14415
14424
|
|
|
14425
|
+
/** DotReplit gitHubImport. */
|
|
14426
|
+
public gitHubImport?: (api.GitHubImportConfig|null);
|
|
14427
|
+
|
|
14416
14428
|
/**
|
|
14417
14429
|
* Creates a new DotReplit instance using the specified properties.
|
|
14418
14430
|
* @param [properties] Properties to set
|
|
@@ -14484,6 +14496,96 @@ export namespace api {
|
|
|
14484
14496
|
public toJSON(): { [k: string]: any };
|
|
14485
14497
|
}
|
|
14486
14498
|
|
|
14499
|
+
/** Properties of a GitHubImportConfig. */
|
|
14500
|
+
interface IGitHubImportConfig {
|
|
14501
|
+
|
|
14502
|
+
/** GitHubImportConfig RequiredFiles */
|
|
14503
|
+
RequiredFiles?: (string[]|null);
|
|
14504
|
+
}
|
|
14505
|
+
|
|
14506
|
+
/** Represents a GitHubImportConfig. */
|
|
14507
|
+
class GitHubImportConfig {
|
|
14508
|
+
|
|
14509
|
+
/**
|
|
14510
|
+
* Constructs a new GitHubImportConfig.
|
|
14511
|
+
* @param [properties] Properties to set
|
|
14512
|
+
*/
|
|
14513
|
+
private constructor(properties?: api.IGitHubImportConfig);
|
|
14514
|
+
|
|
14515
|
+
/** GitHubImportConfig RequiredFiles. */
|
|
14516
|
+
public RequiredFiles: string[];
|
|
14517
|
+
|
|
14518
|
+
/**
|
|
14519
|
+
* Creates a new GitHubImportConfig instance using the specified properties.
|
|
14520
|
+
* @param [properties] Properties to set
|
|
14521
|
+
* @returns GitHubImportConfig instance
|
|
14522
|
+
*/
|
|
14523
|
+
public static create(properties?: api.IGitHubImportConfig): api.GitHubImportConfig;
|
|
14524
|
+
|
|
14525
|
+
/**
|
|
14526
|
+
* Encodes the specified GitHubImportConfig message. Does not implicitly {@link api.GitHubImportConfig.verify|verify} messages.
|
|
14527
|
+
* @param message GitHubImportConfig message or plain object to encode
|
|
14528
|
+
* @param [writer] Writer to encode to
|
|
14529
|
+
* @returns Writer
|
|
14530
|
+
*/
|
|
14531
|
+
public static encode(message: api.GitHubImportConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14532
|
+
|
|
14533
|
+
/**
|
|
14534
|
+
* Encodes the specified GitHubImportConfig message, length delimited. Does not implicitly {@link api.GitHubImportConfig.verify|verify} messages.
|
|
14535
|
+
* @param message GitHubImportConfig message or plain object to encode
|
|
14536
|
+
* @param [writer] Writer to encode to
|
|
14537
|
+
* @returns Writer
|
|
14538
|
+
*/
|
|
14539
|
+
public static encodeDelimited(message: api.GitHubImportConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14540
|
+
|
|
14541
|
+
/**
|
|
14542
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer.
|
|
14543
|
+
* @param reader Reader or buffer to decode from
|
|
14544
|
+
* @param [length] Message length if known beforehand
|
|
14545
|
+
* @returns GitHubImportConfig
|
|
14546
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14547
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14548
|
+
*/
|
|
14549
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): api.GitHubImportConfig;
|
|
14550
|
+
|
|
14551
|
+
/**
|
|
14552
|
+
* Decodes a GitHubImportConfig message from the specified reader or buffer, length delimited.
|
|
14553
|
+
* @param reader Reader or buffer to decode from
|
|
14554
|
+
* @returns GitHubImportConfig
|
|
14555
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14556
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14557
|
+
*/
|
|
14558
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): api.GitHubImportConfig;
|
|
14559
|
+
|
|
14560
|
+
/**
|
|
14561
|
+
* Verifies a GitHubImportConfig message.
|
|
14562
|
+
* @param message Plain object to verify
|
|
14563
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
14564
|
+
*/
|
|
14565
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
14566
|
+
|
|
14567
|
+
/**
|
|
14568
|
+
* Creates a GitHubImportConfig message from a plain object. Also converts values to their respective internal types.
|
|
14569
|
+
* @param object Plain object
|
|
14570
|
+
* @returns GitHubImportConfig
|
|
14571
|
+
*/
|
|
14572
|
+
public static fromObject(object: { [k: string]: any }): api.GitHubImportConfig;
|
|
14573
|
+
|
|
14574
|
+
/**
|
|
14575
|
+
* Creates a plain object from a GitHubImportConfig message. Also converts values to other types if specified.
|
|
14576
|
+
* @param message GitHubImportConfig
|
|
14577
|
+
* @param [options] Conversion options
|
|
14578
|
+
* @returns Plain object
|
|
14579
|
+
*/
|
|
14580
|
+
public static toObject(message: api.GitHubImportConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
14581
|
+
|
|
14582
|
+
/**
|
|
14583
|
+
* Converts this GitHubImportConfig to JSON.
|
|
14584
|
+
* @returns JSON object
|
|
14585
|
+
*/
|
|
14586
|
+
public toJSON(): { [k: string]: any };
|
|
14587
|
+
}
|
|
14588
|
+
|
|
14487
14589
|
/** Properties of a NixConfig. */
|
|
14488
14590
|
interface INixConfig {
|
|
14489
14591
|
|