@replit/protocol 0.4.9 → 0.4.11
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 +231 -1
- package/main/index.js +570 -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
|
|
|
@@ -32435,6 +32653,9 @@ export namespace replit {
|
|
|
32435
32653
|
|
|
32436
32654
|
/** GetReplConnectionInfoRequest sourceReplId */
|
|
32437
32655
|
sourceReplId?: (string|null);
|
|
32656
|
+
|
|
32657
|
+
/** GetReplConnectionInfoRequest orgSlug */
|
|
32658
|
+
orgSlug?: (string|null);
|
|
32438
32659
|
}
|
|
32439
32660
|
|
|
32440
32661
|
/** Represents a GetReplConnectionInfoRequest. */
|
|
@@ -32467,6 +32688,9 @@ export namespace replit {
|
|
|
32467
32688
|
/** GetReplConnectionInfoRequest sourceReplId. */
|
|
32468
32689
|
public sourceReplId: string;
|
|
32469
32690
|
|
|
32691
|
+
/** GetReplConnectionInfoRequest orgSlug. */
|
|
32692
|
+
public orgSlug: string;
|
|
32693
|
+
|
|
32470
32694
|
/** GetReplConnectionInfoRequest defaultLocation. */
|
|
32471
32695
|
public defaultLocation?: ("defaultCluster"|"defaultContinent");
|
|
32472
32696
|
|
|
@@ -36254,6 +36478,9 @@ export namespace replit {
|
|
|
36254
36478
|
|
|
36255
36479
|
/** Org type */
|
|
36256
36480
|
type?: (replit.goval.api.repl.Org.OrgType|null);
|
|
36481
|
+
|
|
36482
|
+
/** Org slug */
|
|
36483
|
+
slug?: (string|null);
|
|
36257
36484
|
}
|
|
36258
36485
|
|
|
36259
36486
|
/** Represents an Org. */
|
|
@@ -36271,6 +36498,9 @@ export namespace replit {
|
|
|
36271
36498
|
/** Org type. */
|
|
36272
36499
|
public type: replit.goval.api.repl.Org.OrgType;
|
|
36273
36500
|
|
|
36501
|
+
/** Org slug. */
|
|
36502
|
+
public slug: string;
|
|
36503
|
+
|
|
36274
36504
|
/**
|
|
36275
36505
|
* Creates a new Org instance using the specified properties.
|
|
36276
36506
|
* @param [properties] Properties to set
|
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
|
/**
|
|
@@ -81806,6 +82328,7 @@
|
|
|
81806
82328
|
* @property {string|null} [defaultContinent] GetReplConnectionInfoRequest defaultContinent
|
|
81807
82329
|
* @property {replit.goval.api.lore.ReplLocation|replit.goval.api.lore.IReplLocation|null} [replLocation] GetReplConnectionInfoRequest replLocation
|
|
81808
82330
|
* @property {string|null} [sourceReplId] GetReplConnectionInfoRequest sourceReplId
|
|
82331
|
+
* @property {string|null} [orgSlug] GetReplConnectionInfoRequest orgSlug
|
|
81809
82332
|
*/
|
|
81810
82333
|
|
|
81811
82334
|
/**
|
|
@@ -81878,6 +82401,14 @@
|
|
|
81878
82401
|
*/
|
|
81879
82402
|
GetReplConnectionInfoRequest.prototype.sourceReplId = "";
|
|
81880
82403
|
|
|
82404
|
+
/**
|
|
82405
|
+
* GetReplConnectionInfoRequest orgSlug.
|
|
82406
|
+
* @member {string} orgSlug
|
|
82407
|
+
* @memberof replit.goval.api.lore.GetReplConnectionInfoRequest
|
|
82408
|
+
* @instance
|
|
82409
|
+
*/
|
|
82410
|
+
GetReplConnectionInfoRequest.prototype.orgSlug = "";
|
|
82411
|
+
|
|
81881
82412
|
// OneOf field names bound to virtual getters and setters
|
|
81882
82413
|
var $oneOfFields;
|
|
81883
82414
|
|
|
@@ -81930,6 +82461,8 @@
|
|
|
81930
82461
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.defaultContinent);
|
|
81931
82462
|
if (message.replLocation != null && Object.hasOwnProperty.call(message, "replLocation"))
|
|
81932
82463
|
$root.replit.goval.api.lore.ReplLocation.encode(message.replLocation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
82464
|
+
if (message.orgSlug != null && Object.hasOwnProperty.call(message, "orgSlug"))
|
|
82465
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.orgSlug);
|
|
81933
82466
|
return writer;
|
|
81934
82467
|
};
|
|
81935
82468
|
|
|
@@ -81992,6 +82525,10 @@
|
|
|
81992
82525
|
message.sourceReplId = reader.string();
|
|
81993
82526
|
break;
|
|
81994
82527
|
}
|
|
82528
|
+
case 11: {
|
|
82529
|
+
message.orgSlug = reader.string();
|
|
82530
|
+
break;
|
|
82531
|
+
}
|
|
81995
82532
|
default:
|
|
81996
82533
|
reader.skipType(tag & 7);
|
|
81997
82534
|
break;
|
|
@@ -82057,6 +82594,9 @@
|
|
|
82057
82594
|
if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
|
|
82058
82595
|
if (!$util.isString(message.sourceReplId))
|
|
82059
82596
|
return "sourceReplId: string expected";
|
|
82597
|
+
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
82598
|
+
if (!$util.isString(message.orgSlug))
|
|
82599
|
+
return "orgSlug: string expected";
|
|
82060
82600
|
return null;
|
|
82061
82601
|
};
|
|
82062
82602
|
|
|
@@ -82089,6 +82629,8 @@
|
|
|
82089
82629
|
}
|
|
82090
82630
|
if (object.sourceReplId != null)
|
|
82091
82631
|
message.sourceReplId = String(object.sourceReplId);
|
|
82632
|
+
if (object.orgSlug != null)
|
|
82633
|
+
message.orgSlug = String(object.orgSlug);
|
|
82092
82634
|
return message;
|
|
82093
82635
|
};
|
|
82094
82636
|
|
|
@@ -82111,6 +82653,7 @@
|
|
|
82111
82653
|
object.persistent = false;
|
|
82112
82654
|
object.sourceReplId = "";
|
|
82113
82655
|
object.replLocation = null;
|
|
82656
|
+
object.orgSlug = "";
|
|
82114
82657
|
}
|
|
82115
82658
|
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
82116
82659
|
object.replId = message.replId;
|
|
@@ -82132,6 +82675,8 @@
|
|
|
82132
82675
|
}
|
|
82133
82676
|
if (message.replLocation != null && message.hasOwnProperty("replLocation"))
|
|
82134
82677
|
object.replLocation = $root.replit.goval.api.lore.ReplLocation.toObject(message.replLocation, options);
|
|
82678
|
+
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
82679
|
+
object.orgSlug = message.orgSlug;
|
|
82135
82680
|
return object;
|
|
82136
82681
|
};
|
|
82137
82682
|
|
|
@@ -90227,6 +90772,7 @@
|
|
|
90227
90772
|
* @interface IOrg
|
|
90228
90773
|
* @property {string|null} [id] Org id
|
|
90229
90774
|
* @property {replit.goval.api.repl.Org.OrgType|null} [type] Org type
|
|
90775
|
+
* @property {string|null} [slug] Org slug
|
|
90230
90776
|
*/
|
|
90231
90777
|
|
|
90232
90778
|
/**
|
|
@@ -90259,6 +90805,14 @@
|
|
|
90259
90805
|
*/
|
|
90260
90806
|
Org.prototype.type = 0;
|
|
90261
90807
|
|
|
90808
|
+
/**
|
|
90809
|
+
* Org slug.
|
|
90810
|
+
* @member {string} slug
|
|
90811
|
+
* @memberof replit.goval.api.repl.Org
|
|
90812
|
+
* @instance
|
|
90813
|
+
*/
|
|
90814
|
+
Org.prototype.slug = "";
|
|
90815
|
+
|
|
90262
90816
|
/**
|
|
90263
90817
|
* Creates a new Org instance using the specified properties.
|
|
90264
90818
|
* @function create
|
|
@@ -90287,6 +90841,8 @@
|
|
|
90287
90841
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
90288
90842
|
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
90289
90843
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
|
|
90844
|
+
if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
|
|
90845
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
|
|
90290
90846
|
return writer;
|
|
90291
90847
|
};
|
|
90292
90848
|
|
|
@@ -90329,6 +90885,10 @@
|
|
|
90329
90885
|
message.type = reader.int32();
|
|
90330
90886
|
break;
|
|
90331
90887
|
}
|
|
90888
|
+
case 3: {
|
|
90889
|
+
message.slug = reader.string();
|
|
90890
|
+
break;
|
|
90891
|
+
}
|
|
90332
90892
|
default:
|
|
90333
90893
|
reader.skipType(tag & 7);
|
|
90334
90894
|
break;
|
|
@@ -90376,6 +90936,9 @@
|
|
|
90376
90936
|
case 2:
|
|
90377
90937
|
break;
|
|
90378
90938
|
}
|
|
90939
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
90940
|
+
if (!$util.isString(message.slug))
|
|
90941
|
+
return "slug: string expected";
|
|
90379
90942
|
return null;
|
|
90380
90943
|
};
|
|
90381
90944
|
|
|
@@ -90413,6 +90976,8 @@
|
|
|
90413
90976
|
message.type = 2;
|
|
90414
90977
|
break;
|
|
90415
90978
|
}
|
|
90979
|
+
if (object.slug != null)
|
|
90980
|
+
message.slug = String(object.slug);
|
|
90416
90981
|
return message;
|
|
90417
90982
|
};
|
|
90418
90983
|
|
|
@@ -90432,11 +90997,14 @@
|
|
|
90432
90997
|
if (options.defaults) {
|
|
90433
90998
|
object.id = "";
|
|
90434
90999
|
object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
|
|
91000
|
+
object.slug = "";
|
|
90435
91001
|
}
|
|
90436
91002
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
90437
91003
|
object.id = message.id;
|
|
90438
91004
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
90439
91005
|
object.type = options.enums === String ? $root.replit.goval.api.repl.Org.OrgType[message.type] === undefined ? message.type : $root.replit.goval.api.repl.Org.OrgType[message.type] : message.type;
|
|
91006
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
91007
|
+
object.slug = message.slug;
|
|
90440
91008
|
return object;
|
|
90441
91009
|
};
|
|
90442
91010
|
|