@replit/protocol 0.2.94 → 0.2.96
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 +216 -0
- package/main/index.js +540 -0
- package/main/index.js.flow +310 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -20405,6 +20405,9 @@ export namespace replit {
|
|
|
20405
20405
|
|
|
20406
20406
|
/** ReplToken features */
|
|
20407
20407
|
features?: ((replit.goval.api.features.Feature|replit.goval.api.features.IFeature)[]|null);
|
|
20408
|
+
|
|
20409
|
+
/** ReplToken buildInfo */
|
|
20410
|
+
buildInfo?: (replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null);
|
|
20408
20411
|
}
|
|
20409
20412
|
|
|
20410
20413
|
/** Represents a ReplToken. */
|
|
@@ -20461,6 +20464,9 @@ export namespace replit {
|
|
|
20461
20464
|
/** ReplToken features. */
|
|
20462
20465
|
public features: replit.goval.api.features.Feature[];
|
|
20463
20466
|
|
|
20467
|
+
/** ReplToken buildInfo. */
|
|
20468
|
+
public buildInfo?: (replit.goval.api.repl.BuildInfo|null);
|
|
20469
|
+
|
|
20464
20470
|
/** ReplToken metadata. */
|
|
20465
20471
|
public metadata?: ("repl"|"id"|"classroom");
|
|
20466
20472
|
|
|
@@ -23453,6 +23459,9 @@ export namespace replit {
|
|
|
23453
23459
|
|
|
23454
23460
|
/** Repl buckets */
|
|
23455
23461
|
buckets?: (replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null);
|
|
23462
|
+
|
|
23463
|
+
/** Repl userId */
|
|
23464
|
+
userId?: (replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null);
|
|
23456
23465
|
}
|
|
23457
23466
|
|
|
23458
23467
|
/** Represents a Repl. */
|
|
@@ -23488,6 +23497,9 @@ export namespace replit {
|
|
|
23488
23497
|
/** Repl buckets. */
|
|
23489
23498
|
public buckets?: (replit.goval.api.repl.Buckets|null);
|
|
23490
23499
|
|
|
23500
|
+
/** Repl userId. */
|
|
23501
|
+
public userId?: (replit.goval.api.repl.UserId|null);
|
|
23502
|
+
|
|
23491
23503
|
/**
|
|
23492
23504
|
* Creates a new Repl instance using the specified properties.
|
|
23493
23505
|
* @param [properties] Properties to set
|
|
@@ -23559,6 +23571,108 @@ export namespace replit {
|
|
|
23559
23571
|
public toJSON(): { [k: string]: any };
|
|
23560
23572
|
}
|
|
23561
23573
|
|
|
23574
|
+
/** Environment enum. */
|
|
23575
|
+
enum Environment {
|
|
23576
|
+
DEVELOPMENT = 0,
|
|
23577
|
+
PRODUCTION = 1
|
|
23578
|
+
}
|
|
23579
|
+
|
|
23580
|
+
/** Properties of a UserId. */
|
|
23581
|
+
interface IUserId {
|
|
23582
|
+
|
|
23583
|
+
/** UserId id */
|
|
23584
|
+
id?: (number|null);
|
|
23585
|
+
|
|
23586
|
+
/** UserId environment */
|
|
23587
|
+
environment?: (replit.goval.api.repl.Environment|null);
|
|
23588
|
+
}
|
|
23589
|
+
|
|
23590
|
+
/** Represents a UserId. */
|
|
23591
|
+
class UserId {
|
|
23592
|
+
|
|
23593
|
+
/**
|
|
23594
|
+
* Constructs a new UserId.
|
|
23595
|
+
* @param [properties] Properties to set
|
|
23596
|
+
*/
|
|
23597
|
+
private constructor(properties?: replit.goval.api.repl.IUserId);
|
|
23598
|
+
|
|
23599
|
+
/** UserId id. */
|
|
23600
|
+
public id: number;
|
|
23601
|
+
|
|
23602
|
+
/** UserId environment. */
|
|
23603
|
+
public environment: replit.goval.api.repl.Environment;
|
|
23604
|
+
|
|
23605
|
+
/**
|
|
23606
|
+
* Creates a new UserId instance using the specified properties.
|
|
23607
|
+
* @param [properties] Properties to set
|
|
23608
|
+
* @returns UserId instance
|
|
23609
|
+
*/
|
|
23610
|
+
public static create(properties?: replit.goval.api.repl.IUserId): replit.goval.api.repl.UserId;
|
|
23611
|
+
|
|
23612
|
+
/**
|
|
23613
|
+
* Encodes the specified UserId message. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
|
|
23614
|
+
* @param message UserId message or plain object to encode
|
|
23615
|
+
* @param [writer] Writer to encode to
|
|
23616
|
+
* @returns Writer
|
|
23617
|
+
*/
|
|
23618
|
+
public static encode(message: replit.goval.api.repl.UserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23619
|
+
|
|
23620
|
+
/**
|
|
23621
|
+
* Encodes the specified UserId message, length delimited. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
|
|
23622
|
+
* @param message UserId message or plain object to encode
|
|
23623
|
+
* @param [writer] Writer to encode to
|
|
23624
|
+
* @returns Writer
|
|
23625
|
+
*/
|
|
23626
|
+
public static encodeDelimited(message: replit.goval.api.repl.UserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
23627
|
+
|
|
23628
|
+
/**
|
|
23629
|
+
* Decodes a UserId message from the specified reader or buffer.
|
|
23630
|
+
* @param reader Reader or buffer to decode from
|
|
23631
|
+
* @param [length] Message length if known beforehand
|
|
23632
|
+
* @returns UserId
|
|
23633
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23634
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23635
|
+
*/
|
|
23636
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.repl.UserId;
|
|
23637
|
+
|
|
23638
|
+
/**
|
|
23639
|
+
* Decodes a UserId message from the specified reader or buffer, length delimited.
|
|
23640
|
+
* @param reader Reader or buffer to decode from
|
|
23641
|
+
* @returns UserId
|
|
23642
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23643
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23644
|
+
*/
|
|
23645
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.repl.UserId;
|
|
23646
|
+
|
|
23647
|
+
/**
|
|
23648
|
+
* Verifies a UserId message.
|
|
23649
|
+
* @param message Plain object to verify
|
|
23650
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
23651
|
+
*/
|
|
23652
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
23653
|
+
|
|
23654
|
+
/**
|
|
23655
|
+
* Creates a UserId message from a plain object. Also converts values to their respective internal types.
|
|
23656
|
+
* @param object Plain object
|
|
23657
|
+
* @returns UserId
|
|
23658
|
+
*/
|
|
23659
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.repl.UserId;
|
|
23660
|
+
|
|
23661
|
+
/**
|
|
23662
|
+
* Creates a plain object from a UserId message. Also converts values to other types if specified.
|
|
23663
|
+
* @param message UserId
|
|
23664
|
+
* @param [options] Conversion options
|
|
23665
|
+
* @returns Plain object
|
|
23666
|
+
*/
|
|
23667
|
+
public static toObject(message: replit.goval.api.repl.UserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
23668
|
+
|
|
23669
|
+
/**
|
|
23670
|
+
* Converts this UserId to JSON.
|
|
23671
|
+
* @returns JSON object
|
|
23672
|
+
*/
|
|
23673
|
+
public toJSON(): { [k: string]: any };
|
|
23674
|
+
}
|
|
23675
|
+
|
|
23562
23676
|
/** Properties of a ResourceLimits. */
|
|
23563
23677
|
interface IResourceLimits {
|
|
23564
23678
|
|
|
@@ -23822,6 +23936,9 @@ export namespace replit {
|
|
|
23822
23936
|
|
|
23823
23937
|
/** Metadata features */
|
|
23824
23938
|
features?: ((replit.goval.api.features.Feature|replit.goval.api.features.IFeature)[]|null);
|
|
23939
|
+
|
|
23940
|
+
/** Metadata buildInfo */
|
|
23941
|
+
buildInfo?: (replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null);
|
|
23825
23942
|
}
|
|
23826
23943
|
|
|
23827
23944
|
/** Represents a Metadata. */
|
|
@@ -23854,6 +23971,9 @@ export namespace replit {
|
|
|
23854
23971
|
/** Metadata features. */
|
|
23855
23972
|
public features: replit.goval.api.features.Feature[];
|
|
23856
23973
|
|
|
23974
|
+
/** Metadata buildInfo. */
|
|
23975
|
+
public buildInfo?: (replit.goval.api.repl.BuildInfo|null);
|
|
23976
|
+
|
|
23857
23977
|
/**
|
|
23858
23978
|
* Creates a new Metadata instance using the specified properties.
|
|
23859
23979
|
* @param [properties] Properties to set
|
|
@@ -23924,6 +24044,102 @@ export namespace replit {
|
|
|
23924
24044
|
*/
|
|
23925
24045
|
public toJSON(): { [k: string]: any };
|
|
23926
24046
|
}
|
|
24047
|
+
|
|
24048
|
+
/** Properties of a BuildInfo. */
|
|
24049
|
+
interface IBuildInfo {
|
|
24050
|
+
|
|
24051
|
+
/** BuildInfo id */
|
|
24052
|
+
id?: (string|null);
|
|
24053
|
+
|
|
24054
|
+
/** BuildInfo url */
|
|
24055
|
+
url?: (string|null);
|
|
24056
|
+
}
|
|
24057
|
+
|
|
24058
|
+
/** Represents a BuildInfo. */
|
|
24059
|
+
class BuildInfo {
|
|
24060
|
+
|
|
24061
|
+
/**
|
|
24062
|
+
* Constructs a new BuildInfo.
|
|
24063
|
+
* @param [properties] Properties to set
|
|
24064
|
+
*/
|
|
24065
|
+
private constructor(properties?: replit.goval.api.repl.IBuildInfo);
|
|
24066
|
+
|
|
24067
|
+
/** BuildInfo id. */
|
|
24068
|
+
public id: string;
|
|
24069
|
+
|
|
24070
|
+
/** BuildInfo url. */
|
|
24071
|
+
public url: string;
|
|
24072
|
+
|
|
24073
|
+
/**
|
|
24074
|
+
* Creates a new BuildInfo instance using the specified properties.
|
|
24075
|
+
* @param [properties] Properties to set
|
|
24076
|
+
* @returns BuildInfo instance
|
|
24077
|
+
*/
|
|
24078
|
+
public static create(properties?: replit.goval.api.repl.IBuildInfo): replit.goval.api.repl.BuildInfo;
|
|
24079
|
+
|
|
24080
|
+
/**
|
|
24081
|
+
* Encodes the specified BuildInfo message. Does not implicitly {@link replit.goval.api.repl.BuildInfo.verify|verify} messages.
|
|
24082
|
+
* @param message BuildInfo message or plain object to encode
|
|
24083
|
+
* @param [writer] Writer to encode to
|
|
24084
|
+
* @returns Writer
|
|
24085
|
+
*/
|
|
24086
|
+
public static encode(message: replit.goval.api.repl.BuildInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24087
|
+
|
|
24088
|
+
/**
|
|
24089
|
+
* Encodes the specified BuildInfo message, length delimited. Does not implicitly {@link replit.goval.api.repl.BuildInfo.verify|verify} messages.
|
|
24090
|
+
* @param message BuildInfo message or plain object to encode
|
|
24091
|
+
* @param [writer] Writer to encode to
|
|
24092
|
+
* @returns Writer
|
|
24093
|
+
*/
|
|
24094
|
+
public static encodeDelimited(message: replit.goval.api.repl.BuildInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24095
|
+
|
|
24096
|
+
/**
|
|
24097
|
+
* Decodes a BuildInfo message from the specified reader or buffer.
|
|
24098
|
+
* @param reader Reader or buffer to decode from
|
|
24099
|
+
* @param [length] Message length if known beforehand
|
|
24100
|
+
* @returns BuildInfo
|
|
24101
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24102
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24103
|
+
*/
|
|
24104
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.repl.BuildInfo;
|
|
24105
|
+
|
|
24106
|
+
/**
|
|
24107
|
+
* Decodes a BuildInfo message from the specified reader or buffer, length delimited.
|
|
24108
|
+
* @param reader Reader or buffer to decode from
|
|
24109
|
+
* @returns BuildInfo
|
|
24110
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24111
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24112
|
+
*/
|
|
24113
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.repl.BuildInfo;
|
|
24114
|
+
|
|
24115
|
+
/**
|
|
24116
|
+
* Verifies a BuildInfo message.
|
|
24117
|
+
* @param message Plain object to verify
|
|
24118
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
24119
|
+
*/
|
|
24120
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
24121
|
+
|
|
24122
|
+
/**
|
|
24123
|
+
* Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
|
|
24124
|
+
* @param object Plain object
|
|
24125
|
+
* @returns BuildInfo
|
|
24126
|
+
*/
|
|
24127
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.repl.BuildInfo;
|
|
24128
|
+
|
|
24129
|
+
/**
|
|
24130
|
+
* Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
|
|
24131
|
+
* @param message BuildInfo
|
|
24132
|
+
* @param [options] Conversion options
|
|
24133
|
+
* @returns Plain object
|
|
24134
|
+
*/
|
|
24135
|
+
public static toObject(message: replit.goval.api.repl.BuildInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
24136
|
+
|
|
24137
|
+
/**
|
|
24138
|
+
* Converts this BuildInfo to JSON.
|
|
24139
|
+
* @returns JSON object
|
|
24140
|
+
*/
|
|
24141
|
+
public toJSON(): { [k: string]: any };
|
|
24142
|
+
}
|
|
23927
24143
|
}
|
|
23928
24144
|
}
|
|
23929
24145
|
}
|