@replit/protocol 0.3.32 → 0.3.33
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 +109 -0
- package/main/index.js +271 -0
- package/main/index.js.flow +156 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -18466,6 +18466,9 @@ export namespace replit {
|
|
|
18466
18466
|
|
|
18467
18467
|
/** DeploymentConfig publicDir */
|
|
18468
18468
|
publicDir?: (string|null);
|
|
18469
|
+
|
|
18470
|
+
/** DeploymentConfig rewrites */
|
|
18471
|
+
rewrites?: ((replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule)[]|null);
|
|
18469
18472
|
}
|
|
18470
18473
|
|
|
18471
18474
|
/** Represents a DeploymentConfig. */
|
|
@@ -18492,6 +18495,9 @@ export namespace replit {
|
|
|
18492
18495
|
/** DeploymentConfig publicDir. */
|
|
18493
18496
|
public publicDir: string;
|
|
18494
18497
|
|
|
18498
|
+
/** DeploymentConfig rewrites. */
|
|
18499
|
+
public rewrites: replit.goval.api.DeploymentConfig.RewriteRule[];
|
|
18500
|
+
|
|
18495
18501
|
/**
|
|
18496
18502
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
18497
18503
|
* @param [properties] Properties to set
|
|
@@ -18578,6 +18584,109 @@ export namespace replit {
|
|
|
18578
18584
|
CLOUDRUN = 1,
|
|
18579
18585
|
STATIC = 2
|
|
18580
18586
|
}
|
|
18587
|
+
|
|
18588
|
+
/** Properties of a RewriteRule. */
|
|
18589
|
+
interface IRewriteRule {
|
|
18590
|
+
|
|
18591
|
+
/** RewriteRule from */
|
|
18592
|
+
from?: (string|null);
|
|
18593
|
+
|
|
18594
|
+
/** RewriteRule to */
|
|
18595
|
+
to?: (string|null);
|
|
18596
|
+
}
|
|
18597
|
+
|
|
18598
|
+
/** Represents a RewriteRule. */
|
|
18599
|
+
class RewriteRule {
|
|
18600
|
+
|
|
18601
|
+
/**
|
|
18602
|
+
* Constructs a new RewriteRule.
|
|
18603
|
+
* @param [properties] Properties to set
|
|
18604
|
+
*/
|
|
18605
|
+
private constructor(properties?: replit.goval.api.DeploymentConfig.IRewriteRule);
|
|
18606
|
+
|
|
18607
|
+
/** RewriteRule from. */
|
|
18608
|
+
public from: string;
|
|
18609
|
+
|
|
18610
|
+
/** RewriteRule to. */
|
|
18611
|
+
public to: string;
|
|
18612
|
+
|
|
18613
|
+
/**
|
|
18614
|
+
* Creates a new RewriteRule instance using the specified properties.
|
|
18615
|
+
* @param [properties] Properties to set
|
|
18616
|
+
* @returns RewriteRule instance
|
|
18617
|
+
*/
|
|
18618
|
+
public static create(properties?: replit.goval.api.DeploymentConfig.IRewriteRule): replit.goval.api.DeploymentConfig.RewriteRule;
|
|
18619
|
+
|
|
18620
|
+
/**
|
|
18621
|
+
* Encodes the specified RewriteRule message. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
18622
|
+
* @param message RewriteRule message or plain object to encode
|
|
18623
|
+
* @param [writer] Writer to encode to
|
|
18624
|
+
* @returns Writer
|
|
18625
|
+
*/
|
|
18626
|
+
public static encode(message: replit.goval.api.DeploymentConfig.RewriteRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18627
|
+
|
|
18628
|
+
/**
|
|
18629
|
+
* Encodes the specified RewriteRule message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
18630
|
+
* @param message RewriteRule message or plain object to encode
|
|
18631
|
+
* @param [writer] Writer to encode to
|
|
18632
|
+
* @returns Writer
|
|
18633
|
+
*/
|
|
18634
|
+
public static encodeDelimited(message: replit.goval.api.DeploymentConfig.RewriteRule, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18635
|
+
|
|
18636
|
+
/**
|
|
18637
|
+
* Decodes a RewriteRule message from the specified reader or buffer.
|
|
18638
|
+
* @param reader Reader or buffer to decode from
|
|
18639
|
+
* @param [length] Message length if known beforehand
|
|
18640
|
+
* @returns RewriteRule
|
|
18641
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18642
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18643
|
+
*/
|
|
18644
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.DeploymentConfig.RewriteRule;
|
|
18645
|
+
|
|
18646
|
+
/**
|
|
18647
|
+
* Decodes a RewriteRule message from the specified reader or buffer, length delimited.
|
|
18648
|
+
* @param reader Reader or buffer to decode from
|
|
18649
|
+
* @returns RewriteRule
|
|
18650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18652
|
+
*/
|
|
18653
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.DeploymentConfig.RewriteRule;
|
|
18654
|
+
|
|
18655
|
+
/**
|
|
18656
|
+
* Verifies a RewriteRule message.
|
|
18657
|
+
* @param message Plain object to verify
|
|
18658
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18659
|
+
*/
|
|
18660
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18661
|
+
|
|
18662
|
+
/**
|
|
18663
|
+
* Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
|
|
18664
|
+
* @param object Plain object
|
|
18665
|
+
* @returns RewriteRule
|
|
18666
|
+
*/
|
|
18667
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.DeploymentConfig.RewriteRule;
|
|
18668
|
+
|
|
18669
|
+
/**
|
|
18670
|
+
* Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
|
|
18671
|
+
* @param message RewriteRule
|
|
18672
|
+
* @param [options] Conversion options
|
|
18673
|
+
* @returns Plain object
|
|
18674
|
+
*/
|
|
18675
|
+
public static toObject(message: replit.goval.api.DeploymentConfig.RewriteRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18676
|
+
|
|
18677
|
+
/**
|
|
18678
|
+
* Converts this RewriteRule to JSON.
|
|
18679
|
+
* @returns JSON object
|
|
18680
|
+
*/
|
|
18681
|
+
public toJSON(): { [k: string]: any };
|
|
18682
|
+
|
|
18683
|
+
/**
|
|
18684
|
+
* Gets the default type url for RewriteRule
|
|
18685
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18686
|
+
* @returns The default type url
|
|
18687
|
+
*/
|
|
18688
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18689
|
+
}
|
|
18581
18690
|
}
|
|
18582
18691
|
|
|
18583
18692
|
/** Properties of an ExtensionConfig. */
|
package/main/index.js
CHANGED
|
@@ -46771,6 +46771,7 @@
|
|
|
46771
46771
|
* @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
|
|
46772
46772
|
* @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
|
|
46773
46773
|
* @property {string|null} [publicDir] DeploymentConfig publicDir
|
|
46774
|
+
* @property {Array.<replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule>|null} [rewrites] DeploymentConfig rewrites
|
|
46774
46775
|
*/
|
|
46775
46776
|
|
|
46776
46777
|
/**
|
|
@@ -46781,6 +46782,7 @@
|
|
|
46781
46782
|
* @param {replit.goval.api.IDeploymentConfig=} [properties] Properties to set
|
|
46782
46783
|
*/
|
|
46783
46784
|
function DeploymentConfig(properties) {
|
|
46785
|
+
this.rewrites = [];
|
|
46784
46786
|
if (properties)
|
|
46785
46787
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46786
46788
|
if (properties[keys[i]] != null)
|
|
@@ -46827,6 +46829,14 @@
|
|
|
46827
46829
|
*/
|
|
46828
46830
|
DeploymentConfig.prototype.publicDir = "";
|
|
46829
46831
|
|
|
46832
|
+
/**
|
|
46833
|
+
* DeploymentConfig rewrites.
|
|
46834
|
+
* @member {Array.<replit.goval.api.DeploymentConfig.RewriteRule>} rewrites
|
|
46835
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
46836
|
+
* @instance
|
|
46837
|
+
*/
|
|
46838
|
+
DeploymentConfig.prototype.rewrites = $util.emptyArray;
|
|
46839
|
+
|
|
46830
46840
|
/**
|
|
46831
46841
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
46832
46842
|
* @function create
|
|
@@ -46861,6 +46871,9 @@
|
|
|
46861
46871
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.target);
|
|
46862
46872
|
if (message.publicDir != null && Object.hasOwnProperty.call(message, "publicDir"))
|
|
46863
46873
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicDir);
|
|
46874
|
+
if (message.rewrites != null && message.rewrites.length)
|
|
46875
|
+
for (var i = 0; i < message.rewrites.length; ++i)
|
|
46876
|
+
$root.replit.goval.api.DeploymentConfig.RewriteRule.encode(message.rewrites[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
46864
46877
|
return writer;
|
|
46865
46878
|
};
|
|
46866
46879
|
|
|
@@ -46915,6 +46928,12 @@
|
|
|
46915
46928
|
message.publicDir = reader.string();
|
|
46916
46929
|
break;
|
|
46917
46930
|
}
|
|
46931
|
+
case 6: {
|
|
46932
|
+
if (!(message.rewrites && message.rewrites.length))
|
|
46933
|
+
message.rewrites = [];
|
|
46934
|
+
message.rewrites.push($root.replit.goval.api.DeploymentConfig.RewriteRule.decode(reader, reader.uint32()));
|
|
46935
|
+
break;
|
|
46936
|
+
}
|
|
46918
46937
|
default:
|
|
46919
46938
|
reader.skipType(tag & 7);
|
|
46920
46939
|
break;
|
|
@@ -46975,6 +46994,15 @@
|
|
|
46975
46994
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
46976
46995
|
if (!$util.isString(message.publicDir))
|
|
46977
46996
|
return "publicDir: string expected";
|
|
46997
|
+
if (message.rewrites != null && message.hasOwnProperty("rewrites")) {
|
|
46998
|
+
if (!Array.isArray(message.rewrites))
|
|
46999
|
+
return "rewrites: array expected";
|
|
47000
|
+
for (var i = 0; i < message.rewrites.length; ++i) {
|
|
47001
|
+
var error = $root.replit.goval.api.DeploymentConfig.RewriteRule.verify(message.rewrites[i]);
|
|
47002
|
+
if (error)
|
|
47003
|
+
return "rewrites." + error;
|
|
47004
|
+
}
|
|
47005
|
+
}
|
|
46978
47006
|
return null;
|
|
46979
47007
|
};
|
|
46980
47008
|
|
|
@@ -47024,6 +47052,16 @@
|
|
|
47024
47052
|
}
|
|
47025
47053
|
if (object.publicDir != null)
|
|
47026
47054
|
message.publicDir = String(object.publicDir);
|
|
47055
|
+
if (object.rewrites) {
|
|
47056
|
+
if (!Array.isArray(object.rewrites))
|
|
47057
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: array expected");
|
|
47058
|
+
message.rewrites = [];
|
|
47059
|
+
for (var i = 0; i < object.rewrites.length; ++i) {
|
|
47060
|
+
if (typeof object.rewrites[i] !== "object")
|
|
47061
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: object expected");
|
|
47062
|
+
message.rewrites[i] = $root.replit.goval.api.DeploymentConfig.RewriteRule.fromObject(object.rewrites[i]);
|
|
47063
|
+
}
|
|
47064
|
+
}
|
|
47027
47065
|
return message;
|
|
47028
47066
|
};
|
|
47029
47067
|
|
|
@@ -47040,6 +47078,8 @@
|
|
|
47040
47078
|
if (!options)
|
|
47041
47079
|
options = {};
|
|
47042
47080
|
var object = {};
|
|
47081
|
+
if (options.arrays || options.defaults)
|
|
47082
|
+
object.rewrites = [];
|
|
47043
47083
|
if (options.defaults) {
|
|
47044
47084
|
object.run = null;
|
|
47045
47085
|
object.build = null;
|
|
@@ -47057,6 +47097,11 @@
|
|
|
47057
47097
|
object.target = options.enums === String ? $root.replit.goval.api.DeploymentConfig.Target[message.target] === undefined ? message.target : $root.replit.goval.api.DeploymentConfig.Target[message.target] : message.target;
|
|
47058
47098
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
47059
47099
|
object.publicDir = message.publicDir;
|
|
47100
|
+
if (message.rewrites && message.rewrites.length) {
|
|
47101
|
+
object.rewrites = [];
|
|
47102
|
+
for (var j = 0; j < message.rewrites.length; ++j)
|
|
47103
|
+
object.rewrites[j] = $root.replit.goval.api.DeploymentConfig.RewriteRule.toObject(message.rewrites[j], options);
|
|
47104
|
+
}
|
|
47060
47105
|
return object;
|
|
47061
47106
|
};
|
|
47062
47107
|
|
|
@@ -47102,6 +47147,232 @@
|
|
|
47102
47147
|
return values;
|
|
47103
47148
|
})();
|
|
47104
47149
|
|
|
47150
|
+
DeploymentConfig.RewriteRule = (function() {
|
|
47151
|
+
|
|
47152
|
+
/**
|
|
47153
|
+
* Properties of a RewriteRule.
|
|
47154
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47155
|
+
* @interface IRewriteRule
|
|
47156
|
+
* @property {string|null} [from] RewriteRule from
|
|
47157
|
+
* @property {string|null} [to] RewriteRule to
|
|
47158
|
+
*/
|
|
47159
|
+
|
|
47160
|
+
/**
|
|
47161
|
+
* Constructs a new RewriteRule.
|
|
47162
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47163
|
+
* @classdesc Represents a RewriteRule.
|
|
47164
|
+
* @constructor
|
|
47165
|
+
* @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
|
|
47166
|
+
*/
|
|
47167
|
+
function RewriteRule(properties) {
|
|
47168
|
+
if (properties)
|
|
47169
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47170
|
+
if (properties[keys[i]] != null)
|
|
47171
|
+
this[keys[i]] = properties[keys[i]];
|
|
47172
|
+
}
|
|
47173
|
+
|
|
47174
|
+
/**
|
|
47175
|
+
* RewriteRule from.
|
|
47176
|
+
* @member {string} from
|
|
47177
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47178
|
+
* @instance
|
|
47179
|
+
*/
|
|
47180
|
+
RewriteRule.prototype.from = "";
|
|
47181
|
+
|
|
47182
|
+
/**
|
|
47183
|
+
* RewriteRule to.
|
|
47184
|
+
* @member {string} to
|
|
47185
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47186
|
+
* @instance
|
|
47187
|
+
*/
|
|
47188
|
+
RewriteRule.prototype.to = "";
|
|
47189
|
+
|
|
47190
|
+
/**
|
|
47191
|
+
* Creates a new RewriteRule instance using the specified properties.
|
|
47192
|
+
* @function create
|
|
47193
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47194
|
+
* @static
|
|
47195
|
+
* @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
|
|
47196
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule instance
|
|
47197
|
+
*/
|
|
47198
|
+
RewriteRule.create = function create(properties) {
|
|
47199
|
+
return RewriteRule.fromObject(properties);
|
|
47200
|
+
};
|
|
47201
|
+
|
|
47202
|
+
/**
|
|
47203
|
+
* Encodes the specified RewriteRule message. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
47204
|
+
* @function encode
|
|
47205
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47206
|
+
* @static
|
|
47207
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
|
|
47208
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47209
|
+
* @returns {$protobuf.Writer} Writer
|
|
47210
|
+
*/
|
|
47211
|
+
RewriteRule.encode = function encode(message, writer) {
|
|
47212
|
+
if (!writer)
|
|
47213
|
+
writer = $Writer.create();
|
|
47214
|
+
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
47215
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.from);
|
|
47216
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
47217
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.to);
|
|
47218
|
+
return writer;
|
|
47219
|
+
};
|
|
47220
|
+
|
|
47221
|
+
/**
|
|
47222
|
+
* Encodes the specified RewriteRule message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
47223
|
+
* @function encodeDelimited
|
|
47224
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47225
|
+
* @static
|
|
47226
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
|
|
47227
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47228
|
+
* @returns {$protobuf.Writer} Writer
|
|
47229
|
+
*/
|
|
47230
|
+
RewriteRule.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47231
|
+
return this.encode(message, writer).ldelim();
|
|
47232
|
+
};
|
|
47233
|
+
|
|
47234
|
+
/**
|
|
47235
|
+
* Decodes a RewriteRule message from the specified reader or buffer.
|
|
47236
|
+
* @function decode
|
|
47237
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47238
|
+
* @static
|
|
47239
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47240
|
+
* @param {number} [length] Message length if known beforehand
|
|
47241
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47242
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47243
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47244
|
+
*/
|
|
47245
|
+
RewriteRule.decode = function decode(reader, length) {
|
|
47246
|
+
if (!(reader instanceof $Reader))
|
|
47247
|
+
reader = $Reader.create(reader);
|
|
47248
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
|
|
47249
|
+
while (reader.pos < end) {
|
|
47250
|
+
var tag = reader.uint32();
|
|
47251
|
+
switch (tag >>> 3) {
|
|
47252
|
+
case 1: {
|
|
47253
|
+
message.from = reader.string();
|
|
47254
|
+
break;
|
|
47255
|
+
}
|
|
47256
|
+
case 2: {
|
|
47257
|
+
message.to = reader.string();
|
|
47258
|
+
break;
|
|
47259
|
+
}
|
|
47260
|
+
default:
|
|
47261
|
+
reader.skipType(tag & 7);
|
|
47262
|
+
break;
|
|
47263
|
+
}
|
|
47264
|
+
}
|
|
47265
|
+
return message;
|
|
47266
|
+
};
|
|
47267
|
+
|
|
47268
|
+
/**
|
|
47269
|
+
* Decodes a RewriteRule message from the specified reader or buffer, length delimited.
|
|
47270
|
+
* @function decodeDelimited
|
|
47271
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47272
|
+
* @static
|
|
47273
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47274
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47275
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47276
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47277
|
+
*/
|
|
47278
|
+
RewriteRule.decodeDelimited = function decodeDelimited(reader) {
|
|
47279
|
+
if (!(reader instanceof $Reader))
|
|
47280
|
+
reader = new $Reader(reader);
|
|
47281
|
+
return this.decode(reader, reader.uint32());
|
|
47282
|
+
};
|
|
47283
|
+
|
|
47284
|
+
/**
|
|
47285
|
+
* Verifies a RewriteRule message.
|
|
47286
|
+
* @function verify
|
|
47287
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47288
|
+
* @static
|
|
47289
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47290
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47291
|
+
*/
|
|
47292
|
+
RewriteRule.verify = function verify(message) {
|
|
47293
|
+
if (typeof message !== "object" || message === null)
|
|
47294
|
+
return "object expected";
|
|
47295
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
47296
|
+
if (!$util.isString(message.from))
|
|
47297
|
+
return "from: string expected";
|
|
47298
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
47299
|
+
if (!$util.isString(message.to))
|
|
47300
|
+
return "to: string expected";
|
|
47301
|
+
return null;
|
|
47302
|
+
};
|
|
47303
|
+
|
|
47304
|
+
/**
|
|
47305
|
+
* Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
|
|
47306
|
+
* @function fromObject
|
|
47307
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47308
|
+
* @static
|
|
47309
|
+
* @param {Object.<string,*>} object Plain object
|
|
47310
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47311
|
+
*/
|
|
47312
|
+
RewriteRule.fromObject = function fromObject(object) {
|
|
47313
|
+
if (object instanceof $root.replit.goval.api.DeploymentConfig.RewriteRule)
|
|
47314
|
+
return object;
|
|
47315
|
+
var message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
|
|
47316
|
+
if (object.from != null)
|
|
47317
|
+
message.from = String(object.from);
|
|
47318
|
+
if (object.to != null)
|
|
47319
|
+
message.to = String(object.to);
|
|
47320
|
+
return message;
|
|
47321
|
+
};
|
|
47322
|
+
|
|
47323
|
+
/**
|
|
47324
|
+
* Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
|
|
47325
|
+
* @function toObject
|
|
47326
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47327
|
+
* @static
|
|
47328
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule
|
|
47329
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47330
|
+
* @returns {Object.<string,*>} Plain object
|
|
47331
|
+
*/
|
|
47332
|
+
RewriteRule.toObject = function toObject(message, options) {
|
|
47333
|
+
if (!options)
|
|
47334
|
+
options = {};
|
|
47335
|
+
var object = {};
|
|
47336
|
+
if (options.defaults) {
|
|
47337
|
+
object.from = "";
|
|
47338
|
+
object.to = "";
|
|
47339
|
+
}
|
|
47340
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
47341
|
+
object.from = message.from;
|
|
47342
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
47343
|
+
object.to = message.to;
|
|
47344
|
+
return object;
|
|
47345
|
+
};
|
|
47346
|
+
|
|
47347
|
+
/**
|
|
47348
|
+
* Converts this RewriteRule to JSON.
|
|
47349
|
+
* @function toJSON
|
|
47350
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47351
|
+
* @instance
|
|
47352
|
+
* @returns {Object.<string,*>} JSON object
|
|
47353
|
+
*/
|
|
47354
|
+
RewriteRule.prototype.toJSON = function toJSON() {
|
|
47355
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47356
|
+
};
|
|
47357
|
+
|
|
47358
|
+
/**
|
|
47359
|
+
* Gets the default type url for RewriteRule
|
|
47360
|
+
* @function getTypeUrl
|
|
47361
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47362
|
+
* @static
|
|
47363
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47364
|
+
* @returns {string} The default type url
|
|
47365
|
+
*/
|
|
47366
|
+
RewriteRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47367
|
+
if (typeUrlPrefix === undefined) {
|
|
47368
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
47369
|
+
}
|
|
47370
|
+
return typeUrlPrefix + "/replit.goval.api.DeploymentConfig.RewriteRule";
|
|
47371
|
+
};
|
|
47372
|
+
|
|
47373
|
+
return RewriteRule;
|
|
47374
|
+
})();
|
|
47375
|
+
|
|
47105
47376
|
return DeploymentConfig;
|
|
47106
47377
|
})();
|
|
47107
47378
|
|
package/main/index.js.flow
CHANGED
|
@@ -26049,6 +26049,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
|
|
|
26049
26049
|
* DeploymentConfig publicDir
|
|
26050
26050
|
*/
|
|
26051
26051
|
publicDir?: string | null,
|
|
26052
|
+
|
|
26053
|
+
/**
|
|
26054
|
+
* DeploymentConfig rewrites
|
|
26055
|
+
*/
|
|
26056
|
+
rewrites?:
|
|
26057
|
+
| (
|
|
26058
|
+
| replit$goval$api$DeploymentConfig$RewriteRule
|
|
26059
|
+
| replit$goval$api$DeploymentConfig$IRewriteRule
|
|
26060
|
+
)[]
|
|
26061
|
+
| null,
|
|
26052
26062
|
|};
|
|
26053
26063
|
|
|
26054
26064
|
/**
|
|
@@ -26086,6 +26096,11 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
26086
26096
|
*/
|
|
26087
26097
|
publicDir: string;
|
|
26088
26098
|
|
|
26099
|
+
/**
|
|
26100
|
+
* DeploymentConfig rewrites.
|
|
26101
|
+
*/
|
|
26102
|
+
rewrites: replit$goval$api$DeploymentConfig$RewriteRule[];
|
|
26103
|
+
|
|
26089
26104
|
/**
|
|
26090
26105
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
26091
26106
|
* @param [properties] Properties to set
|
|
@@ -26187,6 +26202,8 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
26187
26202
|
*/
|
|
26188
26203
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
26189
26204
|
static Target: typeof replit$goval$api$DeploymentConfig$Target;
|
|
26205
|
+
static IRewriteRule: Class<replit$goval$api$DeploymentConfig$IRewriteRule>;
|
|
26206
|
+
static RewriteRule: typeof replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26190
26207
|
}
|
|
26191
26208
|
|
|
26192
26209
|
/**
|
|
@@ -26199,6 +26216,145 @@ declare var replit$goval$api$DeploymentConfig$Target: {|
|
|
|
26199
26216
|
+STATIC: 2, // 2
|
|
26200
26217
|
|};
|
|
26201
26218
|
|
|
26219
|
+
/**
|
|
26220
|
+
* Properties of a RewriteRule.
|
|
26221
|
+
*/
|
|
26222
|
+
declare type replit$goval$api$DeploymentConfig$IRewriteRule = {|
|
|
26223
|
+
/**
|
|
26224
|
+
* RewriteRule from
|
|
26225
|
+
*/
|
|
26226
|
+
from?: string | null,
|
|
26227
|
+
|
|
26228
|
+
/**
|
|
26229
|
+
* RewriteRule to
|
|
26230
|
+
*/
|
|
26231
|
+
to?: string | null,
|
|
26232
|
+
|};
|
|
26233
|
+
|
|
26234
|
+
/**
|
|
26235
|
+
* Represents a RewriteRule.
|
|
26236
|
+
*/
|
|
26237
|
+
declare class replit$goval$api$DeploymentConfig$RewriteRule {
|
|
26238
|
+
/**
|
|
26239
|
+
* Constructs a new RewriteRule.
|
|
26240
|
+
* @param [properties] Properties to set
|
|
26241
|
+
*/
|
|
26242
|
+
constructor(
|
|
26243
|
+
properties?: replit$goval$api$DeploymentConfig$IRewriteRule
|
|
26244
|
+
): this;
|
|
26245
|
+
|
|
26246
|
+
/**
|
|
26247
|
+
* RewriteRule from.
|
|
26248
|
+
*/
|
|
26249
|
+
from: string;
|
|
26250
|
+
|
|
26251
|
+
/**
|
|
26252
|
+
* RewriteRule to.
|
|
26253
|
+
*/
|
|
26254
|
+
to: string;
|
|
26255
|
+
|
|
26256
|
+
/**
|
|
26257
|
+
* Creates a new RewriteRule instance using the specified properties.
|
|
26258
|
+
* @param [properties] Properties to set
|
|
26259
|
+
* @returns RewriteRule instance
|
|
26260
|
+
*/
|
|
26261
|
+
static create(
|
|
26262
|
+
properties?: replit$goval$api$DeploymentConfig$IRewriteRule
|
|
26263
|
+
): replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26264
|
+
|
|
26265
|
+
/**
|
|
26266
|
+
* [object Object],[object Object],[object Object]
|
|
26267
|
+
* @param message RewriteRule message or plain object to encode
|
|
26268
|
+
* @param [writer] Writer to encode to
|
|
26269
|
+
* @returns Writer
|
|
26270
|
+
*/
|
|
26271
|
+
static encode(
|
|
26272
|
+
message: replit$goval$api$DeploymentConfig$RewriteRule,
|
|
26273
|
+
writer?: $protobuf.Writer
|
|
26274
|
+
): $protobuf.Writer;
|
|
26275
|
+
|
|
26276
|
+
/**
|
|
26277
|
+
* [object Object],[object Object],[object Object]
|
|
26278
|
+
* @param message RewriteRule message or plain object to encode
|
|
26279
|
+
* @param [writer] Writer to encode to
|
|
26280
|
+
* @returns Writer
|
|
26281
|
+
*/
|
|
26282
|
+
static encodeDelimited(
|
|
26283
|
+
message: replit$goval$api$DeploymentConfig$RewriteRule,
|
|
26284
|
+
writer?: $protobuf.Writer
|
|
26285
|
+
): $protobuf.Writer;
|
|
26286
|
+
|
|
26287
|
+
/**
|
|
26288
|
+
* Decodes a RewriteRule message from the specified reader or buffer.
|
|
26289
|
+
* @param reader Reader or buffer to decode from
|
|
26290
|
+
* @param [length] Message length if known beforehand
|
|
26291
|
+
* @returns RewriteRule
|
|
26292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26294
|
+
*/
|
|
26295
|
+
static decode(
|
|
26296
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
26297
|
+
length?: number
|
|
26298
|
+
): replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26299
|
+
|
|
26300
|
+
/**
|
|
26301
|
+
* Decodes a RewriteRule message from the specified reader or buffer, length delimited.
|
|
26302
|
+
* @param reader Reader or buffer to decode from
|
|
26303
|
+
* @returns RewriteRule
|
|
26304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26306
|
+
*/
|
|
26307
|
+
static decodeDelimited(
|
|
26308
|
+
reader: $protobuf.Reader | Uint8Array
|
|
26309
|
+
): replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26310
|
+
|
|
26311
|
+
/**
|
|
26312
|
+
* Verifies a RewriteRule message.
|
|
26313
|
+
* @param message Plain object to verify
|
|
26314
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
26315
|
+
*/
|
|
26316
|
+
static verify(message: {|
|
|
26317
|
+
[k: string]: any,
|
|
26318
|
+
|}): string | null;
|
|
26319
|
+
|
|
26320
|
+
/**
|
|
26321
|
+
* Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
|
|
26322
|
+
* @param object Plain object
|
|
26323
|
+
* @returns RewriteRule
|
|
26324
|
+
*/
|
|
26325
|
+
static fromObject(object: {|
|
|
26326
|
+
[k: string]: any,
|
|
26327
|
+
|}): replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26328
|
+
|
|
26329
|
+
/**
|
|
26330
|
+
* Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
|
|
26331
|
+
* @param message RewriteRule
|
|
26332
|
+
* @param [options] Conversion options
|
|
26333
|
+
* @returns Plain object
|
|
26334
|
+
*/
|
|
26335
|
+
static toObject(
|
|
26336
|
+
message: replit$goval$api$DeploymentConfig$RewriteRule,
|
|
26337
|
+
options?: $protobuf.IConversionOptions
|
|
26338
|
+
): {|
|
|
26339
|
+
[k: string]: any,
|
|
26340
|
+
|};
|
|
26341
|
+
|
|
26342
|
+
/**
|
|
26343
|
+
* Converts this RewriteRule to JSON.
|
|
26344
|
+
* @returns JSON object
|
|
26345
|
+
*/
|
|
26346
|
+
toJSON(): {|
|
|
26347
|
+
[k: string]: any,
|
|
26348
|
+
|};
|
|
26349
|
+
|
|
26350
|
+
/**
|
|
26351
|
+
* Gets the default type url for RewriteRule
|
|
26352
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
26353
|
+
* @returns The default type url
|
|
26354
|
+
*/
|
|
26355
|
+
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
26356
|
+
}
|
|
26357
|
+
|
|
26202
26358
|
/**
|
|
26203
26359
|
* Properties of an ExtensionConfig.
|
|
26204
26360
|
*/
|