@replit/protocol 0.2.93 → 0.2.95
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 +234 -6
- package/main/index.js +619 -24
- package/main/index.js.flow +334 -10
- package/package.json +1 -1
package/main/index.js.flow
CHANGED
|
@@ -217,6 +217,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
217
217
|
IFileTypeAttrs: Class<replit$goval$api$IFileTypeAttrs>,
|
|
218
218
|
IPackagerOption: Class<replit$goval$api$IPackagerOption>,
|
|
219
219
|
IReplToken: Class<replit$goval$api$IReplToken>,
|
|
220
|
+
IBuildInfo: Class<replit$goval$api$IBuildInfo>,
|
|
220
221
|
ITLSCertificate: Class<replit$goval$api$ITLSCertificate>,
|
|
221
222
|
IReplTransfer: Class<replit$goval$api$IReplTransfer>,
|
|
222
223
|
IAllowReplRequest: Class<replit$goval$api$IAllowReplRequest>,
|
|
@@ -434,6 +435,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
434
435
|
FileTypeAttrs: typeof replit$goval$api$FileTypeAttrs,
|
|
435
436
|
PackagerOption: typeof replit$goval$api$PackagerOption,
|
|
436
437
|
ReplToken: typeof replit$goval$api$ReplToken,
|
|
438
|
+
BuildInfo: typeof replit$goval$api$BuildInfo,
|
|
437
439
|
TLSCertificate: typeof replit$goval$api$TLSCertificate,
|
|
438
440
|
ReplTransfer: typeof replit$goval$api$ReplTransfer,
|
|
439
441
|
AllowReplRequest: typeof replit$goval$api$AllowReplRequest,
|
|
@@ -28733,11 +28735,6 @@ declare type replit$goval$api$IFileTypeAttrs = {|
|
|
|
28733
28735
|
* FileTypeAttrs filePattern
|
|
28734
28736
|
*/
|
|
28735
28737
|
filePattern?: string | null,
|
|
28736
|
-
|
|
28737
|
-
/**
|
|
28738
|
-
* FileTypeAttrs fileGlobPattern
|
|
28739
|
-
*/
|
|
28740
|
-
fileGlobPattern?: string | null,
|
|
28741
28738
|
|};
|
|
28742
28739
|
|
|
28743
28740
|
/**
|
|
@@ -28765,11 +28762,6 @@ declare class replit$goval$api$FileTypeAttrs {
|
|
|
28765
28762
|
*/
|
|
28766
28763
|
filePattern: string;
|
|
28767
28764
|
|
|
28768
|
-
/**
|
|
28769
|
-
* FileTypeAttrs fileGlobPattern.
|
|
28770
|
-
*/
|
|
28771
|
-
fileGlobPattern: string;
|
|
28772
|
-
|
|
28773
28765
|
/**
|
|
28774
28766
|
* Creates a new FileTypeAttrs instance using the specified properties.
|
|
28775
28767
|
* @param [properties] Properties to set
|
|
@@ -28883,6 +28875,26 @@ declare type replit$goval$api$IPackagerOption = {|
|
|
|
28883
28875
|
* PackagerOption language
|
|
28884
28876
|
*/
|
|
28885
28877
|
language?: string | null,
|
|
28878
|
+
|
|
28879
|
+
/**
|
|
28880
|
+
* PackagerOption packagerFiles
|
|
28881
|
+
*/
|
|
28882
|
+
packagerFiles?: string[] | null,
|
|
28883
|
+
|
|
28884
|
+
/**
|
|
28885
|
+
* PackagerOption enabledForHosting
|
|
28886
|
+
*/
|
|
28887
|
+
enabledForHosting?: boolean | null,
|
|
28888
|
+
|
|
28889
|
+
/**
|
|
28890
|
+
* PackagerOption packageSearch
|
|
28891
|
+
*/
|
|
28892
|
+
packageSearch?: boolean | null,
|
|
28893
|
+
|
|
28894
|
+
/**
|
|
28895
|
+
* PackagerOption guessImports
|
|
28896
|
+
*/
|
|
28897
|
+
guessImports?: boolean | null,
|
|
28886
28898
|
|};
|
|
28887
28899
|
|
|
28888
28900
|
/**
|
|
@@ -28910,6 +28922,26 @@ declare class replit$goval$api$PackagerOption {
|
|
|
28910
28922
|
*/
|
|
28911
28923
|
language: string;
|
|
28912
28924
|
|
|
28925
|
+
/**
|
|
28926
|
+
* PackagerOption packagerFiles.
|
|
28927
|
+
*/
|
|
28928
|
+
packagerFiles: string[];
|
|
28929
|
+
|
|
28930
|
+
/**
|
|
28931
|
+
* PackagerOption enabledForHosting.
|
|
28932
|
+
*/
|
|
28933
|
+
enabledForHosting: boolean;
|
|
28934
|
+
|
|
28935
|
+
/**
|
|
28936
|
+
* PackagerOption packageSearch.
|
|
28937
|
+
*/
|
|
28938
|
+
packageSearch: boolean;
|
|
28939
|
+
|
|
28940
|
+
/**
|
|
28941
|
+
* PackagerOption guessImports.
|
|
28942
|
+
*/
|
|
28943
|
+
guessImports: boolean;
|
|
28944
|
+
|
|
28913
28945
|
/**
|
|
28914
28946
|
* Creates a new PackagerOption instance using the specified properties.
|
|
28915
28947
|
* @param [properties] Properties to set
|
|
@@ -29103,6 +29135,11 @@ declare type replit$goval$api$IReplToken = {|
|
|
|
29103
29135
|
features?:
|
|
29104
29136
|
| (replit$goval$api$features$Feature | replit$goval$api$features$IFeature)[]
|
|
29105
29137
|
| null,
|
|
29138
|
+
|
|
29139
|
+
/**
|
|
29140
|
+
* ReplToken buildInfo
|
|
29141
|
+
*/
|
|
29142
|
+
buildInfo?: replit$goval$api$BuildInfo | replit$goval$api$IBuildInfo | null,
|
|
29106
29143
|
|};
|
|
29107
29144
|
|
|
29108
29145
|
/**
|
|
@@ -29190,6 +29227,11 @@ declare class replit$goval$api$ReplToken {
|
|
|
29190
29227
|
*/
|
|
29191
29228
|
features: replit$goval$api$features$Feature[];
|
|
29192
29229
|
|
|
29230
|
+
/**
|
|
29231
|
+
* ReplToken buildInfo.
|
|
29232
|
+
*/
|
|
29233
|
+
buildInfo?: replit$goval$api$BuildInfo | null;
|
|
29234
|
+
|
|
29193
29235
|
/**
|
|
29194
29236
|
* ReplToken metadata.
|
|
29195
29237
|
*/
|
|
@@ -29696,6 +29738,136 @@ declare class replit$goval$api$ReplToken$Presenced {
|
|
|
29696
29738
|
|};
|
|
29697
29739
|
}
|
|
29698
29740
|
|
|
29741
|
+
/**
|
|
29742
|
+
* Properties of a BuildInfo.
|
|
29743
|
+
*/
|
|
29744
|
+
declare type replit$goval$api$IBuildInfo = {|
|
|
29745
|
+
/**
|
|
29746
|
+
* BuildInfo id
|
|
29747
|
+
*/
|
|
29748
|
+
id?: string | null,
|
|
29749
|
+
|
|
29750
|
+
/**
|
|
29751
|
+
* BuildInfo url
|
|
29752
|
+
*/
|
|
29753
|
+
url?: string | null,
|
|
29754
|
+
|};
|
|
29755
|
+
|
|
29756
|
+
/**
|
|
29757
|
+
* Represents a BuildInfo.
|
|
29758
|
+
*/
|
|
29759
|
+
declare class replit$goval$api$BuildInfo {
|
|
29760
|
+
/**
|
|
29761
|
+
* Constructs a new BuildInfo.
|
|
29762
|
+
* @param [properties] Properties to set
|
|
29763
|
+
*/
|
|
29764
|
+
constructor(properties?: replit$goval$api$IBuildInfo): this;
|
|
29765
|
+
|
|
29766
|
+
/**
|
|
29767
|
+
* BuildInfo id.
|
|
29768
|
+
*/
|
|
29769
|
+
id: string;
|
|
29770
|
+
|
|
29771
|
+
/**
|
|
29772
|
+
* BuildInfo url.
|
|
29773
|
+
*/
|
|
29774
|
+
url: string;
|
|
29775
|
+
|
|
29776
|
+
/**
|
|
29777
|
+
* Creates a new BuildInfo instance using the specified properties.
|
|
29778
|
+
* @param [properties] Properties to set
|
|
29779
|
+
* @returns BuildInfo instance
|
|
29780
|
+
*/
|
|
29781
|
+
static create(
|
|
29782
|
+
properties?: replit$goval$api$IBuildInfo
|
|
29783
|
+
): replit$goval$api$BuildInfo;
|
|
29784
|
+
|
|
29785
|
+
/**
|
|
29786
|
+
* [object Object],[object Object],[object Object]
|
|
29787
|
+
* @param message BuildInfo message or plain object to encode
|
|
29788
|
+
* @param [writer] Writer to encode to
|
|
29789
|
+
* @returns Writer
|
|
29790
|
+
*/
|
|
29791
|
+
static encode(
|
|
29792
|
+
message: replit$goval$api$BuildInfo,
|
|
29793
|
+
writer?: $protobuf.Writer
|
|
29794
|
+
): $protobuf.Writer;
|
|
29795
|
+
|
|
29796
|
+
/**
|
|
29797
|
+
* [object Object],[object Object],[object Object]
|
|
29798
|
+
* @param message BuildInfo message or plain object to encode
|
|
29799
|
+
* @param [writer] Writer to encode to
|
|
29800
|
+
* @returns Writer
|
|
29801
|
+
*/
|
|
29802
|
+
static encodeDelimited(
|
|
29803
|
+
message: replit$goval$api$BuildInfo,
|
|
29804
|
+
writer?: $protobuf.Writer
|
|
29805
|
+
): $protobuf.Writer;
|
|
29806
|
+
|
|
29807
|
+
/**
|
|
29808
|
+
* Decodes a BuildInfo message from the specified reader or buffer.
|
|
29809
|
+
* @param reader Reader or buffer to decode from
|
|
29810
|
+
* @param [length] Message length if known beforehand
|
|
29811
|
+
* @returns BuildInfo
|
|
29812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29814
|
+
*/
|
|
29815
|
+
static decode(
|
|
29816
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
29817
|
+
length?: number
|
|
29818
|
+
): replit$goval$api$BuildInfo;
|
|
29819
|
+
|
|
29820
|
+
/**
|
|
29821
|
+
* Decodes a BuildInfo message from the specified reader or buffer, length delimited.
|
|
29822
|
+
* @param reader Reader or buffer to decode from
|
|
29823
|
+
* @returns BuildInfo
|
|
29824
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29825
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29826
|
+
*/
|
|
29827
|
+
static decodeDelimited(
|
|
29828
|
+
reader: $protobuf.Reader | Uint8Array
|
|
29829
|
+
): replit$goval$api$BuildInfo;
|
|
29830
|
+
|
|
29831
|
+
/**
|
|
29832
|
+
* Verifies a BuildInfo message.
|
|
29833
|
+
* @param message Plain object to verify
|
|
29834
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
29835
|
+
*/
|
|
29836
|
+
static verify(message: {|
|
|
29837
|
+
[k: string]: any,
|
|
29838
|
+
|}): string | null;
|
|
29839
|
+
|
|
29840
|
+
/**
|
|
29841
|
+
* Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
|
|
29842
|
+
* @param object Plain object
|
|
29843
|
+
* @returns BuildInfo
|
|
29844
|
+
*/
|
|
29845
|
+
static fromObject(object: {|
|
|
29846
|
+
[k: string]: any,
|
|
29847
|
+
|}): replit$goval$api$BuildInfo;
|
|
29848
|
+
|
|
29849
|
+
/**
|
|
29850
|
+
* Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
|
|
29851
|
+
* @param message BuildInfo
|
|
29852
|
+
* @param [options] Conversion options
|
|
29853
|
+
* @returns Plain object
|
|
29854
|
+
*/
|
|
29855
|
+
static toObject(
|
|
29856
|
+
message: replit$goval$api$BuildInfo,
|
|
29857
|
+
options?: $protobuf.IConversionOptions
|
|
29858
|
+
): {|
|
|
29859
|
+
[k: string]: any,
|
|
29860
|
+
|};
|
|
29861
|
+
|
|
29862
|
+
/**
|
|
29863
|
+
* Converts this BuildInfo to JSON.
|
|
29864
|
+
* @returns JSON object
|
|
29865
|
+
*/
|
|
29866
|
+
toJSON(): {|
|
|
29867
|
+
[k: string]: any,
|
|
29868
|
+
|};
|
|
29869
|
+
}
|
|
29870
|
+
|
|
29699
29871
|
/**
|
|
29700
29872
|
* Properties of a TLSCertificate.
|
|
29701
29873
|
*/
|
|
@@ -33198,14 +33370,17 @@ declare class replit$goval$api$features$Feature {
|
|
|
33198
33370
|
}
|
|
33199
33371
|
|
|
33200
33372
|
declare var npm$namespace$replit$goval$api$repl: {|
|
|
33373
|
+
Environment: typeof replit$goval$api$repl$Environment,
|
|
33201
33374
|
Persistence: typeof replit$goval$api$repl$Persistence,
|
|
33202
33375
|
IBuckets: Class<replit$goval$api$repl$IBuckets>,
|
|
33203
33376
|
IRepl: Class<replit$goval$api$repl$IRepl>,
|
|
33377
|
+
IUserId: Class<replit$goval$api$repl$IUserId>,
|
|
33204
33378
|
IResourceLimits: Class<replit$goval$api$repl$IResourceLimits>,
|
|
33205
33379
|
IPermissions: Class<replit$goval$api$repl$IPermissions>,
|
|
33206
33380
|
IMetadata: Class<replit$goval$api$repl$IMetadata>,
|
|
33207
33381
|
Buckets: typeof replit$goval$api$repl$Buckets,
|
|
33208
33382
|
Repl: typeof replit$goval$api$repl$Repl,
|
|
33383
|
+
UserId: typeof replit$goval$api$repl$UserId,
|
|
33209
33384
|
ResourceLimits: typeof replit$goval$api$repl$ResourceLimits,
|
|
33210
33385
|
Permissions: typeof replit$goval$api$repl$Permissions,
|
|
33211
33386
|
Metadata: typeof replit$goval$api$repl$Metadata,
|
|
@@ -33387,6 +33562,11 @@ declare type replit$goval$api$repl$IRepl = {|
|
|
|
33387
33562
|
| replit$goval$api$repl$Buckets
|
|
33388
33563
|
| replit$goval$api$repl$IBuckets
|
|
33389
33564
|
| null,
|
|
33565
|
+
|
|
33566
|
+
/**
|
|
33567
|
+
* Repl userId
|
|
33568
|
+
*/
|
|
33569
|
+
userId?: replit$goval$api$repl$UserId | replit$goval$api$repl$IUserId | null,
|
|
33390
33570
|
|};
|
|
33391
33571
|
|
|
33392
33572
|
/**
|
|
@@ -33439,6 +33619,11 @@ declare class replit$goval$api$repl$Repl {
|
|
|
33439
33619
|
*/
|
|
33440
33620
|
buckets?: replit$goval$api$repl$Buckets | null;
|
|
33441
33621
|
|
|
33622
|
+
/**
|
|
33623
|
+
* Repl userId.
|
|
33624
|
+
*/
|
|
33625
|
+
userId?: replit$goval$api$repl$UserId | null;
|
|
33626
|
+
|
|
33442
33627
|
/**
|
|
33443
33628
|
* Creates a new Repl instance using the specified properties.
|
|
33444
33629
|
* @param [properties] Properties to set
|
|
@@ -33534,6 +33719,145 @@ declare class replit$goval$api$repl$Repl {
|
|
|
33534
33719
|
|};
|
|
33535
33720
|
}
|
|
33536
33721
|
|
|
33722
|
+
/**
|
|
33723
|
+
* Environment enum.
|
|
33724
|
+
*/
|
|
33725
|
+
|
|
33726
|
+
declare var replit$goval$api$repl$Environment: {|
|
|
33727
|
+
+DEVELOPMENT: 0, // 0
|
|
33728
|
+
+PRODUCTION: 1, // 1
|
|
33729
|
+
|};
|
|
33730
|
+
|
|
33731
|
+
/**
|
|
33732
|
+
* Properties of a UserId.
|
|
33733
|
+
*/
|
|
33734
|
+
declare type replit$goval$api$repl$IUserId = {|
|
|
33735
|
+
/**
|
|
33736
|
+
* UserId id
|
|
33737
|
+
*/
|
|
33738
|
+
id?: number | null,
|
|
33739
|
+
|
|
33740
|
+
/**
|
|
33741
|
+
* UserId environment
|
|
33742
|
+
*/
|
|
33743
|
+
environment?: $Values<typeof replit$goval$api$repl$Environment> | null,
|
|
33744
|
+
|};
|
|
33745
|
+
|
|
33746
|
+
/**
|
|
33747
|
+
* Represents a UserId.
|
|
33748
|
+
*/
|
|
33749
|
+
declare class replit$goval$api$repl$UserId {
|
|
33750
|
+
/**
|
|
33751
|
+
* Constructs a new UserId.
|
|
33752
|
+
* @param [properties] Properties to set
|
|
33753
|
+
*/
|
|
33754
|
+
constructor(properties?: replit$goval$api$repl$IUserId): this;
|
|
33755
|
+
|
|
33756
|
+
/**
|
|
33757
|
+
* UserId id.
|
|
33758
|
+
*/
|
|
33759
|
+
id: number;
|
|
33760
|
+
|
|
33761
|
+
/**
|
|
33762
|
+
* UserId environment.
|
|
33763
|
+
*/
|
|
33764
|
+
environment: $Values<typeof replit$goval$api$repl$Environment>;
|
|
33765
|
+
|
|
33766
|
+
/**
|
|
33767
|
+
* Creates a new UserId instance using the specified properties.
|
|
33768
|
+
* @param [properties] Properties to set
|
|
33769
|
+
* @returns UserId instance
|
|
33770
|
+
*/
|
|
33771
|
+
static create(
|
|
33772
|
+
properties?: replit$goval$api$repl$IUserId
|
|
33773
|
+
): replit$goval$api$repl$UserId;
|
|
33774
|
+
|
|
33775
|
+
/**
|
|
33776
|
+
* [object Object],[object Object],[object Object]
|
|
33777
|
+
* @param message UserId message or plain object to encode
|
|
33778
|
+
* @param [writer] Writer to encode to
|
|
33779
|
+
* @returns Writer
|
|
33780
|
+
*/
|
|
33781
|
+
static encode(
|
|
33782
|
+
message: replit$goval$api$repl$UserId,
|
|
33783
|
+
writer?: $protobuf.Writer
|
|
33784
|
+
): $protobuf.Writer;
|
|
33785
|
+
|
|
33786
|
+
/**
|
|
33787
|
+
* [object Object],[object Object],[object Object]
|
|
33788
|
+
* @param message UserId message or plain object to encode
|
|
33789
|
+
* @param [writer] Writer to encode to
|
|
33790
|
+
* @returns Writer
|
|
33791
|
+
*/
|
|
33792
|
+
static encodeDelimited(
|
|
33793
|
+
message: replit$goval$api$repl$UserId,
|
|
33794
|
+
writer?: $protobuf.Writer
|
|
33795
|
+
): $protobuf.Writer;
|
|
33796
|
+
|
|
33797
|
+
/**
|
|
33798
|
+
* Decodes a UserId message from the specified reader or buffer.
|
|
33799
|
+
* @param reader Reader or buffer to decode from
|
|
33800
|
+
* @param [length] Message length if known beforehand
|
|
33801
|
+
* @returns UserId
|
|
33802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33804
|
+
*/
|
|
33805
|
+
static decode(
|
|
33806
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
33807
|
+
length?: number
|
|
33808
|
+
): replit$goval$api$repl$UserId;
|
|
33809
|
+
|
|
33810
|
+
/**
|
|
33811
|
+
* Decodes a UserId message from the specified reader or buffer, length delimited.
|
|
33812
|
+
* @param reader Reader or buffer to decode from
|
|
33813
|
+
* @returns UserId
|
|
33814
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33815
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33816
|
+
*/
|
|
33817
|
+
static decodeDelimited(
|
|
33818
|
+
reader: $protobuf.Reader | Uint8Array
|
|
33819
|
+
): replit$goval$api$repl$UserId;
|
|
33820
|
+
|
|
33821
|
+
/**
|
|
33822
|
+
* Verifies a UserId message.
|
|
33823
|
+
* @param message Plain object to verify
|
|
33824
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
33825
|
+
*/
|
|
33826
|
+
static verify(message: {|
|
|
33827
|
+
[k: string]: any,
|
|
33828
|
+
|}): string | null;
|
|
33829
|
+
|
|
33830
|
+
/**
|
|
33831
|
+
* Creates a UserId message from a plain object. Also converts values to their respective internal types.
|
|
33832
|
+
* @param object Plain object
|
|
33833
|
+
* @returns UserId
|
|
33834
|
+
*/
|
|
33835
|
+
static fromObject(object: {|
|
|
33836
|
+
[k: string]: any,
|
|
33837
|
+
|}): replit$goval$api$repl$UserId;
|
|
33838
|
+
|
|
33839
|
+
/**
|
|
33840
|
+
* Creates a plain object from a UserId message. Also converts values to other types if specified.
|
|
33841
|
+
* @param message UserId
|
|
33842
|
+
* @param [options] Conversion options
|
|
33843
|
+
* @returns Plain object
|
|
33844
|
+
*/
|
|
33845
|
+
static toObject(
|
|
33846
|
+
message: replit$goval$api$repl$UserId,
|
|
33847
|
+
options?: $protobuf.IConversionOptions
|
|
33848
|
+
): {|
|
|
33849
|
+
[k: string]: any,
|
|
33850
|
+
|};
|
|
33851
|
+
|
|
33852
|
+
/**
|
|
33853
|
+
* Converts this UserId to JSON.
|
|
33854
|
+
* @returns JSON object
|
|
33855
|
+
*/
|
|
33856
|
+
toJSON(): {|
|
|
33857
|
+
[k: string]: any,
|
|
33858
|
+
|};
|
|
33859
|
+
}
|
|
33860
|
+
|
|
33537
33861
|
/**
|
|
33538
33862
|
* Properties of a ResourceLimits.
|
|
33539
33863
|
*/
|