@replit/protocol 0.4.9 → 0.4.10
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 +219 -1
- package/main/index.js +524 -2
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -30285,6 +30285,12 @@ export namespace replit {
|
|
|
30285
30285
|
|
|
30286
30286
|
/** GovalCommand startViktor */
|
|
30287
30287
|
startViktor?: (replit.goval.api.lore.StartViktor|replit.goval.api.lore.IStartViktor|null);
|
|
30288
|
+
|
|
30289
|
+
/** GovalCommand addTokenToReplShieldAllowList */
|
|
30290
|
+
addTokenToReplShieldAllowList?: (replit.goval.api.lore.AddTokenToReplShieldAllowList|replit.goval.api.lore.IAddTokenToReplShieldAllowList|null);
|
|
30291
|
+
|
|
30292
|
+
/** GovalCommand revokeUserReplShieldTokens */
|
|
30293
|
+
revokeUserReplShieldTokens?: (replit.goval.api.lore.RevokeUserReplShieldTokens|replit.goval.api.lore.IRevokeUserReplShieldTokens|null);
|
|
30288
30294
|
}
|
|
30289
30295
|
|
|
30290
30296
|
/** Represents a GovalCommand. */
|
|
@@ -30320,8 +30326,14 @@ export namespace replit {
|
|
|
30320
30326
|
/** GovalCommand startViktor. */
|
|
30321
30327
|
public startViktor?: (replit.goval.api.lore.StartViktor|null);
|
|
30322
30328
|
|
|
30329
|
+
/** GovalCommand addTokenToReplShieldAllowList. */
|
|
30330
|
+
public addTokenToReplShieldAllowList?: (replit.goval.api.lore.AddTokenToReplShieldAllowList|null);
|
|
30331
|
+
|
|
30332
|
+
/** GovalCommand revokeUserReplShieldTokens. */
|
|
30333
|
+
public revokeUserReplShieldTokens?: (replit.goval.api.lore.RevokeUserReplShieldTokens|null);
|
|
30334
|
+
|
|
30323
30335
|
/** GovalCommand command. */
|
|
30324
|
-
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|"startViktor");
|
|
30336
|
+
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|"startViktor"|"addTokenToReplShieldAllowList"|"revokeUserReplShieldTokens");
|
|
30325
30337
|
|
|
30326
30338
|
/**
|
|
30327
30339
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -31007,6 +31019,212 @@ export namespace replit {
|
|
|
31007
31019
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31008
31020
|
}
|
|
31009
31021
|
|
|
31022
|
+
/** Properties of an AddTokenToReplShieldAllowList. */
|
|
31023
|
+
interface IAddTokenToReplShieldAllowList {
|
|
31024
|
+
|
|
31025
|
+
/** AddTokenToReplShieldAllowList replId */
|
|
31026
|
+
replId?: (string|null);
|
|
31027
|
+
|
|
31028
|
+
/** AddTokenToReplShieldAllowList token */
|
|
31029
|
+
token?: (string|null);
|
|
31030
|
+
}
|
|
31031
|
+
|
|
31032
|
+
/** Represents an AddTokenToReplShieldAllowList. */
|
|
31033
|
+
class AddTokenToReplShieldAllowList {
|
|
31034
|
+
|
|
31035
|
+
/**
|
|
31036
|
+
* Constructs a new AddTokenToReplShieldAllowList.
|
|
31037
|
+
* @param [properties] Properties to set
|
|
31038
|
+
*/
|
|
31039
|
+
private constructor(properties?: replit.goval.api.lore.IAddTokenToReplShieldAllowList);
|
|
31040
|
+
|
|
31041
|
+
/** AddTokenToReplShieldAllowList replId. */
|
|
31042
|
+
public replId: string;
|
|
31043
|
+
|
|
31044
|
+
/** AddTokenToReplShieldAllowList token. */
|
|
31045
|
+
public token: string;
|
|
31046
|
+
|
|
31047
|
+
/**
|
|
31048
|
+
* Creates a new AddTokenToReplShieldAllowList instance using the specified properties.
|
|
31049
|
+
* @param [properties] Properties to set
|
|
31050
|
+
* @returns AddTokenToReplShieldAllowList instance
|
|
31051
|
+
*/
|
|
31052
|
+
public static create(properties?: replit.goval.api.lore.IAddTokenToReplShieldAllowList): replit.goval.api.lore.AddTokenToReplShieldAllowList;
|
|
31053
|
+
|
|
31054
|
+
/**
|
|
31055
|
+
* Encodes the specified AddTokenToReplShieldAllowList message. Does not implicitly {@link replit.goval.api.lore.AddTokenToReplShieldAllowList.verify|verify} messages.
|
|
31056
|
+
* @param message AddTokenToReplShieldAllowList message or plain object to encode
|
|
31057
|
+
* @param [writer] Writer to encode to
|
|
31058
|
+
* @returns Writer
|
|
31059
|
+
*/
|
|
31060
|
+
public static encode(message: replit.goval.api.lore.AddTokenToReplShieldAllowList, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31061
|
+
|
|
31062
|
+
/**
|
|
31063
|
+
* Encodes the specified AddTokenToReplShieldAllowList message, length delimited. Does not implicitly {@link replit.goval.api.lore.AddTokenToReplShieldAllowList.verify|verify} messages.
|
|
31064
|
+
* @param message AddTokenToReplShieldAllowList message or plain object to encode
|
|
31065
|
+
* @param [writer] Writer to encode to
|
|
31066
|
+
* @returns Writer
|
|
31067
|
+
*/
|
|
31068
|
+
public static encodeDelimited(message: replit.goval.api.lore.AddTokenToReplShieldAllowList, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31069
|
+
|
|
31070
|
+
/**
|
|
31071
|
+
* Decodes an AddTokenToReplShieldAllowList message from the specified reader or buffer.
|
|
31072
|
+
* @param reader Reader or buffer to decode from
|
|
31073
|
+
* @param [length] Message length if known beforehand
|
|
31074
|
+
* @returns AddTokenToReplShieldAllowList
|
|
31075
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31076
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31077
|
+
*/
|
|
31078
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.lore.AddTokenToReplShieldAllowList;
|
|
31079
|
+
|
|
31080
|
+
/**
|
|
31081
|
+
* Decodes an AddTokenToReplShieldAllowList message from the specified reader or buffer, length delimited.
|
|
31082
|
+
* @param reader Reader or buffer to decode from
|
|
31083
|
+
* @returns AddTokenToReplShieldAllowList
|
|
31084
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31085
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31086
|
+
*/
|
|
31087
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.lore.AddTokenToReplShieldAllowList;
|
|
31088
|
+
|
|
31089
|
+
/**
|
|
31090
|
+
* Verifies an AddTokenToReplShieldAllowList message.
|
|
31091
|
+
* @param message Plain object to verify
|
|
31092
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31093
|
+
*/
|
|
31094
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
31095
|
+
|
|
31096
|
+
/**
|
|
31097
|
+
* Creates an AddTokenToReplShieldAllowList message from a plain object. Also converts values to their respective internal types.
|
|
31098
|
+
* @param object Plain object
|
|
31099
|
+
* @returns AddTokenToReplShieldAllowList
|
|
31100
|
+
*/
|
|
31101
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.lore.AddTokenToReplShieldAllowList;
|
|
31102
|
+
|
|
31103
|
+
/**
|
|
31104
|
+
* Creates a plain object from an AddTokenToReplShieldAllowList message. Also converts values to other types if specified.
|
|
31105
|
+
* @param message AddTokenToReplShieldAllowList
|
|
31106
|
+
* @param [options] Conversion options
|
|
31107
|
+
* @returns Plain object
|
|
31108
|
+
*/
|
|
31109
|
+
public static toObject(message: replit.goval.api.lore.AddTokenToReplShieldAllowList, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31110
|
+
|
|
31111
|
+
/**
|
|
31112
|
+
* Converts this AddTokenToReplShieldAllowList to JSON.
|
|
31113
|
+
* @returns JSON object
|
|
31114
|
+
*/
|
|
31115
|
+
public toJSON(): { [k: string]: any };
|
|
31116
|
+
|
|
31117
|
+
/**
|
|
31118
|
+
* Gets the default type url for AddTokenToReplShieldAllowList
|
|
31119
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31120
|
+
* @returns The default type url
|
|
31121
|
+
*/
|
|
31122
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31123
|
+
}
|
|
31124
|
+
|
|
31125
|
+
/** Properties of a RevokeUserReplShieldTokens. */
|
|
31126
|
+
interface IRevokeUserReplShieldTokens {
|
|
31127
|
+
|
|
31128
|
+
/** RevokeUserReplShieldTokens userId */
|
|
31129
|
+
userId?: (number|null);
|
|
31130
|
+
|
|
31131
|
+
/** RevokeUserReplShieldTokens token */
|
|
31132
|
+
token?: (string|null);
|
|
31133
|
+
}
|
|
31134
|
+
|
|
31135
|
+
/** Represents a RevokeUserReplShieldTokens. */
|
|
31136
|
+
class RevokeUserReplShieldTokens {
|
|
31137
|
+
|
|
31138
|
+
/**
|
|
31139
|
+
* Constructs a new RevokeUserReplShieldTokens.
|
|
31140
|
+
* @param [properties] Properties to set
|
|
31141
|
+
*/
|
|
31142
|
+
private constructor(properties?: replit.goval.api.lore.IRevokeUserReplShieldTokens);
|
|
31143
|
+
|
|
31144
|
+
/** RevokeUserReplShieldTokens userId. */
|
|
31145
|
+
public userId: number;
|
|
31146
|
+
|
|
31147
|
+
/** RevokeUserReplShieldTokens token. */
|
|
31148
|
+
public token: string;
|
|
31149
|
+
|
|
31150
|
+
/**
|
|
31151
|
+
* Creates a new RevokeUserReplShieldTokens instance using the specified properties.
|
|
31152
|
+
* @param [properties] Properties to set
|
|
31153
|
+
* @returns RevokeUserReplShieldTokens instance
|
|
31154
|
+
*/
|
|
31155
|
+
public static create(properties?: replit.goval.api.lore.IRevokeUserReplShieldTokens): replit.goval.api.lore.RevokeUserReplShieldTokens;
|
|
31156
|
+
|
|
31157
|
+
/**
|
|
31158
|
+
* Encodes the specified RevokeUserReplShieldTokens message. Does not implicitly {@link replit.goval.api.lore.RevokeUserReplShieldTokens.verify|verify} messages.
|
|
31159
|
+
* @param message RevokeUserReplShieldTokens message or plain object to encode
|
|
31160
|
+
* @param [writer] Writer to encode to
|
|
31161
|
+
* @returns Writer
|
|
31162
|
+
*/
|
|
31163
|
+
public static encode(message: replit.goval.api.lore.RevokeUserReplShieldTokens, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31164
|
+
|
|
31165
|
+
/**
|
|
31166
|
+
* Encodes the specified RevokeUserReplShieldTokens message, length delimited. Does not implicitly {@link replit.goval.api.lore.RevokeUserReplShieldTokens.verify|verify} messages.
|
|
31167
|
+
* @param message RevokeUserReplShieldTokens message or plain object to encode
|
|
31168
|
+
* @param [writer] Writer to encode to
|
|
31169
|
+
* @returns Writer
|
|
31170
|
+
*/
|
|
31171
|
+
public static encodeDelimited(message: replit.goval.api.lore.RevokeUserReplShieldTokens, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31172
|
+
|
|
31173
|
+
/**
|
|
31174
|
+
* Decodes a RevokeUserReplShieldTokens message from the specified reader or buffer.
|
|
31175
|
+
* @param reader Reader or buffer to decode from
|
|
31176
|
+
* @param [length] Message length if known beforehand
|
|
31177
|
+
* @returns RevokeUserReplShieldTokens
|
|
31178
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31179
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31180
|
+
*/
|
|
31181
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.lore.RevokeUserReplShieldTokens;
|
|
31182
|
+
|
|
31183
|
+
/**
|
|
31184
|
+
* Decodes a RevokeUserReplShieldTokens message from the specified reader or buffer, length delimited.
|
|
31185
|
+
* @param reader Reader or buffer to decode from
|
|
31186
|
+
* @returns RevokeUserReplShieldTokens
|
|
31187
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31188
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31189
|
+
*/
|
|
31190
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.lore.RevokeUserReplShieldTokens;
|
|
31191
|
+
|
|
31192
|
+
/**
|
|
31193
|
+
* Verifies a RevokeUserReplShieldTokens message.
|
|
31194
|
+
* @param message Plain object to verify
|
|
31195
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31196
|
+
*/
|
|
31197
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
31198
|
+
|
|
31199
|
+
/**
|
|
31200
|
+
* Creates a RevokeUserReplShieldTokens message from a plain object. Also converts values to their respective internal types.
|
|
31201
|
+
* @param object Plain object
|
|
31202
|
+
* @returns RevokeUserReplShieldTokens
|
|
31203
|
+
*/
|
|
31204
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.lore.RevokeUserReplShieldTokens;
|
|
31205
|
+
|
|
31206
|
+
/**
|
|
31207
|
+
* Creates a plain object from a RevokeUserReplShieldTokens message. Also converts values to other types if specified.
|
|
31208
|
+
* @param message RevokeUserReplShieldTokens
|
|
31209
|
+
* @param [options] Conversion options
|
|
31210
|
+
* @returns Plain object
|
|
31211
|
+
*/
|
|
31212
|
+
public static toObject(message: replit.goval.api.lore.RevokeUserReplShieldTokens, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31213
|
+
|
|
31214
|
+
/**
|
|
31215
|
+
* Converts this RevokeUserReplShieldTokens to JSON.
|
|
31216
|
+
* @returns JSON object
|
|
31217
|
+
*/
|
|
31218
|
+
public toJSON(): { [k: string]: any };
|
|
31219
|
+
|
|
31220
|
+
/**
|
|
31221
|
+
* Gets the default type url for RevokeUserReplShieldTokens
|
|
31222
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31223
|
+
* @returns The default type url
|
|
31224
|
+
*/
|
|
31225
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31226
|
+
}
|
|
31227
|
+
|
|
31010
31228
|
/** Properties of a Buckets. */
|
|
31011
31229
|
interface IBuckets {
|
|
31012
31230
|
|
package/main/index.js
CHANGED
|
@@ -76702,6 +76702,8 @@
|
|
|
76702
76702
|
* @property {replit.goval.api.lore.SoftTakedown|replit.goval.api.lore.ISoftTakedown|null} [softTakedown] GovalCommand softTakedown
|
|
76703
76703
|
* @property {replit.goval.api.lore.Takedown|replit.goval.api.lore.ITakedown|null} [takedown] GovalCommand takedown
|
|
76704
76704
|
* @property {replit.goval.api.lore.StartViktor|replit.goval.api.lore.IStartViktor|null} [startViktor] GovalCommand startViktor
|
|
76705
|
+
* @property {replit.goval.api.lore.AddTokenToReplShieldAllowList|replit.goval.api.lore.IAddTokenToReplShieldAllowList|null} [addTokenToReplShieldAllowList] GovalCommand addTokenToReplShieldAllowList
|
|
76706
|
+
* @property {replit.goval.api.lore.RevokeUserReplShieldTokens|replit.goval.api.lore.IRevokeUserReplShieldTokens|null} [revokeUserReplShieldTokens] GovalCommand revokeUserReplShieldTokens
|
|
76705
76707
|
*/
|
|
76706
76708
|
|
|
76707
76709
|
/**
|
|
@@ -76782,17 +76784,33 @@
|
|
|
76782
76784
|
*/
|
|
76783
76785
|
GovalCommand.prototype.startViktor = null;
|
|
76784
76786
|
|
|
76787
|
+
/**
|
|
76788
|
+
* GovalCommand addTokenToReplShieldAllowList.
|
|
76789
|
+
* @member {replit.goval.api.lore.AddTokenToReplShieldAllowList|null|undefined} addTokenToReplShieldAllowList
|
|
76790
|
+
* @memberof replit.goval.api.lore.GovalCommand
|
|
76791
|
+
* @instance
|
|
76792
|
+
*/
|
|
76793
|
+
GovalCommand.prototype.addTokenToReplShieldAllowList = null;
|
|
76794
|
+
|
|
76795
|
+
/**
|
|
76796
|
+
* GovalCommand revokeUserReplShieldTokens.
|
|
76797
|
+
* @member {replit.goval.api.lore.RevokeUserReplShieldTokens|null|undefined} revokeUserReplShieldTokens
|
|
76798
|
+
* @memberof replit.goval.api.lore.GovalCommand
|
|
76799
|
+
* @instance
|
|
76800
|
+
*/
|
|
76801
|
+
GovalCommand.prototype.revokeUserReplShieldTokens = null;
|
|
76802
|
+
|
|
76785
76803
|
// OneOf field names bound to virtual getters and setters
|
|
76786
76804
|
var $oneOfFields;
|
|
76787
76805
|
|
|
76788
76806
|
/**
|
|
76789
76807
|
* GovalCommand command.
|
|
76790
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|"startViktor"|undefined} command
|
|
76808
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|"startViktor"|"addTokenToReplShieldAllowList"|"revokeUserReplShieldTokens"|undefined} command
|
|
76791
76809
|
* @memberof replit.goval.api.lore.GovalCommand
|
|
76792
76810
|
* @instance
|
|
76793
76811
|
*/
|
|
76794
76812
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
76795
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags", "softTakedown", "takedown", "startViktor"]),
|
|
76813
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags", "softTakedown", "takedown", "startViktor", "addTokenToReplShieldAllowList", "revokeUserReplShieldTokens"]),
|
|
76796
76814
|
set: $util.oneOfSetter($oneOfFields)
|
|
76797
76815
|
});
|
|
76798
76816
|
|
|
@@ -76836,6 +76854,10 @@
|
|
|
76836
76854
|
$root.replit.goval.api.lore.Takedown.encode(message.takedown, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
76837
76855
|
if (message.startViktor != null && Object.hasOwnProperty.call(message, "startViktor"))
|
|
76838
76856
|
$root.replit.goval.api.lore.StartViktor.encode(message.startViktor, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
76857
|
+
if (message.addTokenToReplShieldAllowList != null && Object.hasOwnProperty.call(message, "addTokenToReplShieldAllowList"))
|
|
76858
|
+
$root.replit.goval.api.lore.AddTokenToReplShieldAllowList.encode(message.addTokenToReplShieldAllowList, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
76859
|
+
if (message.revokeUserReplShieldTokens != null && Object.hasOwnProperty.call(message, "revokeUserReplShieldTokens"))
|
|
76860
|
+
$root.replit.goval.api.lore.RevokeUserReplShieldTokens.encode(message.revokeUserReplShieldTokens, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
76839
76861
|
return writer;
|
|
76840
76862
|
};
|
|
76841
76863
|
|
|
@@ -76902,6 +76924,14 @@
|
|
|
76902
76924
|
message.startViktor = $root.replit.goval.api.lore.StartViktor.decode(reader, reader.uint32());
|
|
76903
76925
|
break;
|
|
76904
76926
|
}
|
|
76927
|
+
case 10: {
|
|
76928
|
+
message.addTokenToReplShieldAllowList = $root.replit.goval.api.lore.AddTokenToReplShieldAllowList.decode(reader, reader.uint32());
|
|
76929
|
+
break;
|
|
76930
|
+
}
|
|
76931
|
+
case 11: {
|
|
76932
|
+
message.revokeUserReplShieldTokens = $root.replit.goval.api.lore.RevokeUserReplShieldTokens.decode(reader, reader.uint32());
|
|
76933
|
+
break;
|
|
76934
|
+
}
|
|
76905
76935
|
default:
|
|
76906
76936
|
reader.skipType(tag & 7);
|
|
76907
76937
|
break;
|
|
@@ -77016,6 +77046,26 @@
|
|
|
77016
77046
|
return "startViktor." + error;
|
|
77017
77047
|
}
|
|
77018
77048
|
}
|
|
77049
|
+
if (message.addTokenToReplShieldAllowList != null && message.hasOwnProperty("addTokenToReplShieldAllowList")) {
|
|
77050
|
+
if (properties.command === 1)
|
|
77051
|
+
return "command: multiple values";
|
|
77052
|
+
properties.command = 1;
|
|
77053
|
+
{
|
|
77054
|
+
var error = $root.replit.goval.api.lore.AddTokenToReplShieldAllowList.verify(message.addTokenToReplShieldAllowList);
|
|
77055
|
+
if (error)
|
|
77056
|
+
return "addTokenToReplShieldAllowList." + error;
|
|
77057
|
+
}
|
|
77058
|
+
}
|
|
77059
|
+
if (message.revokeUserReplShieldTokens != null && message.hasOwnProperty("revokeUserReplShieldTokens")) {
|
|
77060
|
+
if (properties.command === 1)
|
|
77061
|
+
return "command: multiple values";
|
|
77062
|
+
properties.command = 1;
|
|
77063
|
+
{
|
|
77064
|
+
var error = $root.replit.goval.api.lore.RevokeUserReplShieldTokens.verify(message.revokeUserReplShieldTokens);
|
|
77065
|
+
if (error)
|
|
77066
|
+
return "revokeUserReplShieldTokens." + error;
|
|
77067
|
+
}
|
|
77068
|
+
}
|
|
77019
77069
|
return null;
|
|
77020
77070
|
};
|
|
77021
77071
|
|
|
@@ -77071,6 +77121,16 @@
|
|
|
77071
77121
|
throw TypeError(".replit.goval.api.lore.GovalCommand.startViktor: object expected");
|
|
77072
77122
|
message.startViktor = $root.replit.goval.api.lore.StartViktor.fromObject(object.startViktor);
|
|
77073
77123
|
}
|
|
77124
|
+
if (object.addTokenToReplShieldAllowList != null) {
|
|
77125
|
+
if (typeof object.addTokenToReplShieldAllowList !== "object")
|
|
77126
|
+
throw TypeError(".replit.goval.api.lore.GovalCommand.addTokenToReplShieldAllowList: object expected");
|
|
77127
|
+
message.addTokenToReplShieldAllowList = $root.replit.goval.api.lore.AddTokenToReplShieldAllowList.fromObject(object.addTokenToReplShieldAllowList);
|
|
77128
|
+
}
|
|
77129
|
+
if (object.revokeUserReplShieldTokens != null) {
|
|
77130
|
+
if (typeof object.revokeUserReplShieldTokens !== "object")
|
|
77131
|
+
throw TypeError(".replit.goval.api.lore.GovalCommand.revokeUserReplShieldTokens: object expected");
|
|
77132
|
+
message.revokeUserReplShieldTokens = $root.replit.goval.api.lore.RevokeUserReplShieldTokens.fromObject(object.revokeUserReplShieldTokens);
|
|
77133
|
+
}
|
|
77074
77134
|
return message;
|
|
77075
77135
|
};
|
|
77076
77136
|
|
|
@@ -77127,6 +77187,16 @@
|
|
|
77127
77187
|
if (options.oneofs)
|
|
77128
77188
|
object.command = "startViktor";
|
|
77129
77189
|
}
|
|
77190
|
+
if (message.addTokenToReplShieldAllowList != null && message.hasOwnProperty("addTokenToReplShieldAllowList")) {
|
|
77191
|
+
object.addTokenToReplShieldAllowList = $root.replit.goval.api.lore.AddTokenToReplShieldAllowList.toObject(message.addTokenToReplShieldAllowList, options);
|
|
77192
|
+
if (options.oneofs)
|
|
77193
|
+
object.command = "addTokenToReplShieldAllowList";
|
|
77194
|
+
}
|
|
77195
|
+
if (message.revokeUserReplShieldTokens != null && message.hasOwnProperty("revokeUserReplShieldTokens")) {
|
|
77196
|
+
object.revokeUserReplShieldTokens = $root.replit.goval.api.lore.RevokeUserReplShieldTokens.toObject(message.revokeUserReplShieldTokens, options);
|
|
77197
|
+
if (options.oneofs)
|
|
77198
|
+
object.command = "revokeUserReplShieldTokens";
|
|
77199
|
+
}
|
|
77130
77200
|
return object;
|
|
77131
77201
|
};
|
|
77132
77202
|
|
|
@@ -78514,6 +78584,458 @@
|
|
|
78514
78584
|
return UpdateReplFlags;
|
|
78515
78585
|
})();
|
|
78516
78586
|
|
|
78587
|
+
lore.AddTokenToReplShieldAllowList = (function() {
|
|
78588
|
+
|
|
78589
|
+
/**
|
|
78590
|
+
* Properties of an AddTokenToReplShieldAllowList.
|
|
78591
|
+
* @memberof replit.goval.api.lore
|
|
78592
|
+
* @interface IAddTokenToReplShieldAllowList
|
|
78593
|
+
* @property {string|null} [replId] AddTokenToReplShieldAllowList replId
|
|
78594
|
+
* @property {string|null} [token] AddTokenToReplShieldAllowList token
|
|
78595
|
+
*/
|
|
78596
|
+
|
|
78597
|
+
/**
|
|
78598
|
+
* Constructs a new AddTokenToReplShieldAllowList.
|
|
78599
|
+
* @memberof replit.goval.api.lore
|
|
78600
|
+
* @classdesc Represents an AddTokenToReplShieldAllowList.
|
|
78601
|
+
* @constructor
|
|
78602
|
+
* @param {replit.goval.api.lore.IAddTokenToReplShieldAllowList=} [properties] Properties to set
|
|
78603
|
+
*/
|
|
78604
|
+
function AddTokenToReplShieldAllowList(properties) {
|
|
78605
|
+
if (properties)
|
|
78606
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
78607
|
+
if (properties[keys[i]] != null)
|
|
78608
|
+
this[keys[i]] = properties[keys[i]];
|
|
78609
|
+
}
|
|
78610
|
+
|
|
78611
|
+
/**
|
|
78612
|
+
* AddTokenToReplShieldAllowList replId.
|
|
78613
|
+
* @member {string} replId
|
|
78614
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78615
|
+
* @instance
|
|
78616
|
+
*/
|
|
78617
|
+
AddTokenToReplShieldAllowList.prototype.replId = "";
|
|
78618
|
+
|
|
78619
|
+
/**
|
|
78620
|
+
* AddTokenToReplShieldAllowList token.
|
|
78621
|
+
* @member {string} token
|
|
78622
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78623
|
+
* @instance
|
|
78624
|
+
*/
|
|
78625
|
+
AddTokenToReplShieldAllowList.prototype.token = "";
|
|
78626
|
+
|
|
78627
|
+
/**
|
|
78628
|
+
* Creates a new AddTokenToReplShieldAllowList instance using the specified properties.
|
|
78629
|
+
* @function create
|
|
78630
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78631
|
+
* @static
|
|
78632
|
+
* @param {replit.goval.api.lore.IAddTokenToReplShieldAllowList=} [properties] Properties to set
|
|
78633
|
+
* @returns {replit.goval.api.lore.AddTokenToReplShieldAllowList} AddTokenToReplShieldAllowList instance
|
|
78634
|
+
*/
|
|
78635
|
+
AddTokenToReplShieldAllowList.create = function create(properties) {
|
|
78636
|
+
return AddTokenToReplShieldAllowList.fromObject(properties);
|
|
78637
|
+
};
|
|
78638
|
+
|
|
78639
|
+
/**
|
|
78640
|
+
* Encodes the specified AddTokenToReplShieldAllowList message. Does not implicitly {@link replit.goval.api.lore.AddTokenToReplShieldAllowList.verify|verify} messages.
|
|
78641
|
+
* @function encode
|
|
78642
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78643
|
+
* @static
|
|
78644
|
+
* @param {replit.goval.api.lore.AddTokenToReplShieldAllowList} message AddTokenToReplShieldAllowList message or plain object to encode
|
|
78645
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78646
|
+
* @returns {$protobuf.Writer} Writer
|
|
78647
|
+
*/
|
|
78648
|
+
AddTokenToReplShieldAllowList.encode = function encode(message, writer) {
|
|
78649
|
+
if (!writer)
|
|
78650
|
+
writer = $Writer.create();
|
|
78651
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
78652
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
78653
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
78654
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
|
|
78655
|
+
return writer;
|
|
78656
|
+
};
|
|
78657
|
+
|
|
78658
|
+
/**
|
|
78659
|
+
* Encodes the specified AddTokenToReplShieldAllowList message, length delimited. Does not implicitly {@link replit.goval.api.lore.AddTokenToReplShieldAllowList.verify|verify} messages.
|
|
78660
|
+
* @function encodeDelimited
|
|
78661
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78662
|
+
* @static
|
|
78663
|
+
* @param {replit.goval.api.lore.AddTokenToReplShieldAllowList} message AddTokenToReplShieldAllowList message or plain object to encode
|
|
78664
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78665
|
+
* @returns {$protobuf.Writer} Writer
|
|
78666
|
+
*/
|
|
78667
|
+
AddTokenToReplShieldAllowList.encodeDelimited = function encodeDelimited(message, writer) {
|
|
78668
|
+
return this.encode(message, writer).ldelim();
|
|
78669
|
+
};
|
|
78670
|
+
|
|
78671
|
+
/**
|
|
78672
|
+
* Decodes an AddTokenToReplShieldAllowList message from the specified reader or buffer.
|
|
78673
|
+
* @function decode
|
|
78674
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78675
|
+
* @static
|
|
78676
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78677
|
+
* @param {number} [length] Message length if known beforehand
|
|
78678
|
+
* @returns {replit.goval.api.lore.AddTokenToReplShieldAllowList} AddTokenToReplShieldAllowList
|
|
78679
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78680
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78681
|
+
*/
|
|
78682
|
+
AddTokenToReplShieldAllowList.decode = function decode(reader, length) {
|
|
78683
|
+
if (!(reader instanceof $Reader))
|
|
78684
|
+
reader = $Reader.create(reader);
|
|
78685
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.AddTokenToReplShieldAllowList();
|
|
78686
|
+
while (reader.pos < end) {
|
|
78687
|
+
var tag = reader.uint32();
|
|
78688
|
+
switch (tag >>> 3) {
|
|
78689
|
+
case 1: {
|
|
78690
|
+
message.replId = reader.string();
|
|
78691
|
+
break;
|
|
78692
|
+
}
|
|
78693
|
+
case 2: {
|
|
78694
|
+
message.token = reader.string();
|
|
78695
|
+
break;
|
|
78696
|
+
}
|
|
78697
|
+
default:
|
|
78698
|
+
reader.skipType(tag & 7);
|
|
78699
|
+
break;
|
|
78700
|
+
}
|
|
78701
|
+
}
|
|
78702
|
+
return message;
|
|
78703
|
+
};
|
|
78704
|
+
|
|
78705
|
+
/**
|
|
78706
|
+
* Decodes an AddTokenToReplShieldAllowList message from the specified reader or buffer, length delimited.
|
|
78707
|
+
* @function decodeDelimited
|
|
78708
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78709
|
+
* @static
|
|
78710
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78711
|
+
* @returns {replit.goval.api.lore.AddTokenToReplShieldAllowList} AddTokenToReplShieldAllowList
|
|
78712
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78713
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78714
|
+
*/
|
|
78715
|
+
AddTokenToReplShieldAllowList.decodeDelimited = function decodeDelimited(reader) {
|
|
78716
|
+
if (!(reader instanceof $Reader))
|
|
78717
|
+
reader = new $Reader(reader);
|
|
78718
|
+
return this.decode(reader, reader.uint32());
|
|
78719
|
+
};
|
|
78720
|
+
|
|
78721
|
+
/**
|
|
78722
|
+
* Verifies an AddTokenToReplShieldAllowList message.
|
|
78723
|
+
* @function verify
|
|
78724
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78725
|
+
* @static
|
|
78726
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78727
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78728
|
+
*/
|
|
78729
|
+
AddTokenToReplShieldAllowList.verify = function verify(message) {
|
|
78730
|
+
if (typeof message !== "object" || message === null)
|
|
78731
|
+
return "object expected";
|
|
78732
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
78733
|
+
if (!$util.isString(message.replId))
|
|
78734
|
+
return "replId: string expected";
|
|
78735
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
78736
|
+
if (!$util.isString(message.token))
|
|
78737
|
+
return "token: string expected";
|
|
78738
|
+
return null;
|
|
78739
|
+
};
|
|
78740
|
+
|
|
78741
|
+
/**
|
|
78742
|
+
* Creates an AddTokenToReplShieldAllowList message from a plain object. Also converts values to their respective internal types.
|
|
78743
|
+
* @function fromObject
|
|
78744
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78745
|
+
* @static
|
|
78746
|
+
* @param {Object.<string,*>} object Plain object
|
|
78747
|
+
* @returns {replit.goval.api.lore.AddTokenToReplShieldAllowList} AddTokenToReplShieldAllowList
|
|
78748
|
+
*/
|
|
78749
|
+
AddTokenToReplShieldAllowList.fromObject = function fromObject(object) {
|
|
78750
|
+
if (object instanceof $root.replit.goval.api.lore.AddTokenToReplShieldAllowList)
|
|
78751
|
+
return object;
|
|
78752
|
+
var message = new $root.replit.goval.api.lore.AddTokenToReplShieldAllowList();
|
|
78753
|
+
if (object.replId != null)
|
|
78754
|
+
message.replId = String(object.replId);
|
|
78755
|
+
if (object.token != null)
|
|
78756
|
+
message.token = String(object.token);
|
|
78757
|
+
return message;
|
|
78758
|
+
};
|
|
78759
|
+
|
|
78760
|
+
/**
|
|
78761
|
+
* Creates a plain object from an AddTokenToReplShieldAllowList message. Also converts values to other types if specified.
|
|
78762
|
+
* @function toObject
|
|
78763
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78764
|
+
* @static
|
|
78765
|
+
* @param {replit.goval.api.lore.AddTokenToReplShieldAllowList} message AddTokenToReplShieldAllowList
|
|
78766
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78767
|
+
* @returns {Object.<string,*>} Plain object
|
|
78768
|
+
*/
|
|
78769
|
+
AddTokenToReplShieldAllowList.toObject = function toObject(message, options) {
|
|
78770
|
+
if (!options)
|
|
78771
|
+
options = {};
|
|
78772
|
+
var object = {};
|
|
78773
|
+
if (options.defaults) {
|
|
78774
|
+
object.replId = "";
|
|
78775
|
+
object.token = "";
|
|
78776
|
+
}
|
|
78777
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
78778
|
+
object.replId = message.replId;
|
|
78779
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
78780
|
+
object.token = message.token;
|
|
78781
|
+
return object;
|
|
78782
|
+
};
|
|
78783
|
+
|
|
78784
|
+
/**
|
|
78785
|
+
* Converts this AddTokenToReplShieldAllowList to JSON.
|
|
78786
|
+
* @function toJSON
|
|
78787
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78788
|
+
* @instance
|
|
78789
|
+
* @returns {Object.<string,*>} JSON object
|
|
78790
|
+
*/
|
|
78791
|
+
AddTokenToReplShieldAllowList.prototype.toJSON = function toJSON() {
|
|
78792
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78793
|
+
};
|
|
78794
|
+
|
|
78795
|
+
/**
|
|
78796
|
+
* Gets the default type url for AddTokenToReplShieldAllowList
|
|
78797
|
+
* @function getTypeUrl
|
|
78798
|
+
* @memberof replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
78799
|
+
* @static
|
|
78800
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
78801
|
+
* @returns {string} The default type url
|
|
78802
|
+
*/
|
|
78803
|
+
AddTokenToReplShieldAllowList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
78804
|
+
if (typeUrlPrefix === undefined) {
|
|
78805
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
78806
|
+
}
|
|
78807
|
+
return typeUrlPrefix + "/replit.goval.api.lore.AddTokenToReplShieldAllowList";
|
|
78808
|
+
};
|
|
78809
|
+
|
|
78810
|
+
return AddTokenToReplShieldAllowList;
|
|
78811
|
+
})();
|
|
78812
|
+
|
|
78813
|
+
lore.RevokeUserReplShieldTokens = (function() {
|
|
78814
|
+
|
|
78815
|
+
/**
|
|
78816
|
+
* Properties of a RevokeUserReplShieldTokens.
|
|
78817
|
+
* @memberof replit.goval.api.lore
|
|
78818
|
+
* @interface IRevokeUserReplShieldTokens
|
|
78819
|
+
* @property {number|null} [userId] RevokeUserReplShieldTokens userId
|
|
78820
|
+
* @property {string|null} [token] RevokeUserReplShieldTokens token
|
|
78821
|
+
*/
|
|
78822
|
+
|
|
78823
|
+
/**
|
|
78824
|
+
* Constructs a new RevokeUserReplShieldTokens.
|
|
78825
|
+
* @memberof replit.goval.api.lore
|
|
78826
|
+
* @classdesc Represents a RevokeUserReplShieldTokens.
|
|
78827
|
+
* @constructor
|
|
78828
|
+
* @param {replit.goval.api.lore.IRevokeUserReplShieldTokens=} [properties] Properties to set
|
|
78829
|
+
*/
|
|
78830
|
+
function RevokeUserReplShieldTokens(properties) {
|
|
78831
|
+
if (properties)
|
|
78832
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
78833
|
+
if (properties[keys[i]] != null)
|
|
78834
|
+
this[keys[i]] = properties[keys[i]];
|
|
78835
|
+
}
|
|
78836
|
+
|
|
78837
|
+
/**
|
|
78838
|
+
* RevokeUserReplShieldTokens userId.
|
|
78839
|
+
* @member {number} userId
|
|
78840
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78841
|
+
* @instance
|
|
78842
|
+
*/
|
|
78843
|
+
RevokeUserReplShieldTokens.prototype.userId = 0;
|
|
78844
|
+
|
|
78845
|
+
/**
|
|
78846
|
+
* RevokeUserReplShieldTokens token.
|
|
78847
|
+
* @member {string} token
|
|
78848
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78849
|
+
* @instance
|
|
78850
|
+
*/
|
|
78851
|
+
RevokeUserReplShieldTokens.prototype.token = "";
|
|
78852
|
+
|
|
78853
|
+
/**
|
|
78854
|
+
* Creates a new RevokeUserReplShieldTokens instance using the specified properties.
|
|
78855
|
+
* @function create
|
|
78856
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78857
|
+
* @static
|
|
78858
|
+
* @param {replit.goval.api.lore.IRevokeUserReplShieldTokens=} [properties] Properties to set
|
|
78859
|
+
* @returns {replit.goval.api.lore.RevokeUserReplShieldTokens} RevokeUserReplShieldTokens instance
|
|
78860
|
+
*/
|
|
78861
|
+
RevokeUserReplShieldTokens.create = function create(properties) {
|
|
78862
|
+
return RevokeUserReplShieldTokens.fromObject(properties);
|
|
78863
|
+
};
|
|
78864
|
+
|
|
78865
|
+
/**
|
|
78866
|
+
* Encodes the specified RevokeUserReplShieldTokens message. Does not implicitly {@link replit.goval.api.lore.RevokeUserReplShieldTokens.verify|verify} messages.
|
|
78867
|
+
* @function encode
|
|
78868
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78869
|
+
* @static
|
|
78870
|
+
* @param {replit.goval.api.lore.RevokeUserReplShieldTokens} message RevokeUserReplShieldTokens message or plain object to encode
|
|
78871
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78872
|
+
* @returns {$protobuf.Writer} Writer
|
|
78873
|
+
*/
|
|
78874
|
+
RevokeUserReplShieldTokens.encode = function encode(message, writer) {
|
|
78875
|
+
if (!writer)
|
|
78876
|
+
writer = $Writer.create();
|
|
78877
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
78878
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId);
|
|
78879
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
78880
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
|
|
78881
|
+
return writer;
|
|
78882
|
+
};
|
|
78883
|
+
|
|
78884
|
+
/**
|
|
78885
|
+
* Encodes the specified RevokeUserReplShieldTokens message, length delimited. Does not implicitly {@link replit.goval.api.lore.RevokeUserReplShieldTokens.verify|verify} messages.
|
|
78886
|
+
* @function encodeDelimited
|
|
78887
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78888
|
+
* @static
|
|
78889
|
+
* @param {replit.goval.api.lore.RevokeUserReplShieldTokens} message RevokeUserReplShieldTokens message or plain object to encode
|
|
78890
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78891
|
+
* @returns {$protobuf.Writer} Writer
|
|
78892
|
+
*/
|
|
78893
|
+
RevokeUserReplShieldTokens.encodeDelimited = function encodeDelimited(message, writer) {
|
|
78894
|
+
return this.encode(message, writer).ldelim();
|
|
78895
|
+
};
|
|
78896
|
+
|
|
78897
|
+
/**
|
|
78898
|
+
* Decodes a RevokeUserReplShieldTokens message from the specified reader or buffer.
|
|
78899
|
+
* @function decode
|
|
78900
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78901
|
+
* @static
|
|
78902
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78903
|
+
* @param {number} [length] Message length if known beforehand
|
|
78904
|
+
* @returns {replit.goval.api.lore.RevokeUserReplShieldTokens} RevokeUserReplShieldTokens
|
|
78905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78907
|
+
*/
|
|
78908
|
+
RevokeUserReplShieldTokens.decode = function decode(reader, length) {
|
|
78909
|
+
if (!(reader instanceof $Reader))
|
|
78910
|
+
reader = $Reader.create(reader);
|
|
78911
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.RevokeUserReplShieldTokens();
|
|
78912
|
+
while (reader.pos < end) {
|
|
78913
|
+
var tag = reader.uint32();
|
|
78914
|
+
switch (tag >>> 3) {
|
|
78915
|
+
case 1: {
|
|
78916
|
+
message.userId = reader.uint32();
|
|
78917
|
+
break;
|
|
78918
|
+
}
|
|
78919
|
+
case 2: {
|
|
78920
|
+
message.token = reader.string();
|
|
78921
|
+
break;
|
|
78922
|
+
}
|
|
78923
|
+
default:
|
|
78924
|
+
reader.skipType(tag & 7);
|
|
78925
|
+
break;
|
|
78926
|
+
}
|
|
78927
|
+
}
|
|
78928
|
+
return message;
|
|
78929
|
+
};
|
|
78930
|
+
|
|
78931
|
+
/**
|
|
78932
|
+
* Decodes a RevokeUserReplShieldTokens message from the specified reader or buffer, length delimited.
|
|
78933
|
+
* @function decodeDelimited
|
|
78934
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78935
|
+
* @static
|
|
78936
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78937
|
+
* @returns {replit.goval.api.lore.RevokeUserReplShieldTokens} RevokeUserReplShieldTokens
|
|
78938
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78939
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78940
|
+
*/
|
|
78941
|
+
RevokeUserReplShieldTokens.decodeDelimited = function decodeDelimited(reader) {
|
|
78942
|
+
if (!(reader instanceof $Reader))
|
|
78943
|
+
reader = new $Reader(reader);
|
|
78944
|
+
return this.decode(reader, reader.uint32());
|
|
78945
|
+
};
|
|
78946
|
+
|
|
78947
|
+
/**
|
|
78948
|
+
* Verifies a RevokeUserReplShieldTokens message.
|
|
78949
|
+
* @function verify
|
|
78950
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78951
|
+
* @static
|
|
78952
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78953
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78954
|
+
*/
|
|
78955
|
+
RevokeUserReplShieldTokens.verify = function verify(message) {
|
|
78956
|
+
if (typeof message !== "object" || message === null)
|
|
78957
|
+
return "object expected";
|
|
78958
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
78959
|
+
if (!$util.isInteger(message.userId))
|
|
78960
|
+
return "userId: integer expected";
|
|
78961
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
78962
|
+
if (!$util.isString(message.token))
|
|
78963
|
+
return "token: string expected";
|
|
78964
|
+
return null;
|
|
78965
|
+
};
|
|
78966
|
+
|
|
78967
|
+
/**
|
|
78968
|
+
* Creates a RevokeUserReplShieldTokens message from a plain object. Also converts values to their respective internal types.
|
|
78969
|
+
* @function fromObject
|
|
78970
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78971
|
+
* @static
|
|
78972
|
+
* @param {Object.<string,*>} object Plain object
|
|
78973
|
+
* @returns {replit.goval.api.lore.RevokeUserReplShieldTokens} RevokeUserReplShieldTokens
|
|
78974
|
+
*/
|
|
78975
|
+
RevokeUserReplShieldTokens.fromObject = function fromObject(object) {
|
|
78976
|
+
if (object instanceof $root.replit.goval.api.lore.RevokeUserReplShieldTokens)
|
|
78977
|
+
return object;
|
|
78978
|
+
var message = new $root.replit.goval.api.lore.RevokeUserReplShieldTokens();
|
|
78979
|
+
if (object.userId != null)
|
|
78980
|
+
message.userId = object.userId >>> 0;
|
|
78981
|
+
if (object.token != null)
|
|
78982
|
+
message.token = String(object.token);
|
|
78983
|
+
return message;
|
|
78984
|
+
};
|
|
78985
|
+
|
|
78986
|
+
/**
|
|
78987
|
+
* Creates a plain object from a RevokeUserReplShieldTokens message. Also converts values to other types if specified.
|
|
78988
|
+
* @function toObject
|
|
78989
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
78990
|
+
* @static
|
|
78991
|
+
* @param {replit.goval.api.lore.RevokeUserReplShieldTokens} message RevokeUserReplShieldTokens
|
|
78992
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78993
|
+
* @returns {Object.<string,*>} Plain object
|
|
78994
|
+
*/
|
|
78995
|
+
RevokeUserReplShieldTokens.toObject = function toObject(message, options) {
|
|
78996
|
+
if (!options)
|
|
78997
|
+
options = {};
|
|
78998
|
+
var object = {};
|
|
78999
|
+
if (options.defaults) {
|
|
79000
|
+
object.userId = 0;
|
|
79001
|
+
object.token = "";
|
|
79002
|
+
}
|
|
79003
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
79004
|
+
object.userId = message.userId;
|
|
79005
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
79006
|
+
object.token = message.token;
|
|
79007
|
+
return object;
|
|
79008
|
+
};
|
|
79009
|
+
|
|
79010
|
+
/**
|
|
79011
|
+
* Converts this RevokeUserReplShieldTokens to JSON.
|
|
79012
|
+
* @function toJSON
|
|
79013
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
79014
|
+
* @instance
|
|
79015
|
+
* @returns {Object.<string,*>} JSON object
|
|
79016
|
+
*/
|
|
79017
|
+
RevokeUserReplShieldTokens.prototype.toJSON = function toJSON() {
|
|
79018
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
79019
|
+
};
|
|
79020
|
+
|
|
79021
|
+
/**
|
|
79022
|
+
* Gets the default type url for RevokeUserReplShieldTokens
|
|
79023
|
+
* @function getTypeUrl
|
|
79024
|
+
* @memberof replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
79025
|
+
* @static
|
|
79026
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
79027
|
+
* @returns {string} The default type url
|
|
79028
|
+
*/
|
|
79029
|
+
RevokeUserReplShieldTokens.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
79030
|
+
if (typeUrlPrefix === undefined) {
|
|
79031
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
79032
|
+
}
|
|
79033
|
+
return typeUrlPrefix + "/replit.goval.api.lore.RevokeUserReplShieldTokens";
|
|
79034
|
+
};
|
|
79035
|
+
|
|
79036
|
+
return RevokeUserReplShieldTokens;
|
|
79037
|
+
})();
|
|
79038
|
+
|
|
78517
79039
|
lore.Buckets = (function() {
|
|
78518
79040
|
|
|
78519
79041
|
/**
|