@replit/protocol 0.3.34 → 0.3.36
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 +125 -4
- package/main/index.js +356 -32
- package/main/index.js.flow +178 -4
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -1268,7 +1268,7 @@ export namespace replit {
|
|
|
1268
1268
|
ack?: (string|null);
|
|
1269
1269
|
|
|
1270
1270
|
/** RiverMessage payload */
|
|
1271
|
-
payload?: (
|
|
1271
|
+
payload?: (google.protobuf.Value|google.protobuf.IValue|null);
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
/** Represents a RiverMessage. */
|
|
@@ -1284,7 +1284,7 @@ export namespace replit {
|
|
|
1284
1284
|
public id: string;
|
|
1285
1285
|
|
|
1286
1286
|
/** RiverMessage replyTo. */
|
|
1287
|
-
public replyTo
|
|
1287
|
+
public replyTo?: (string|null);
|
|
1288
1288
|
|
|
1289
1289
|
/** RiverMessage from. */
|
|
1290
1290
|
public from: string;
|
|
@@ -1299,10 +1299,16 @@ export namespace replit {
|
|
|
1299
1299
|
public procedureName: string;
|
|
1300
1300
|
|
|
1301
1301
|
/** RiverMessage ack. */
|
|
1302
|
-
public ack
|
|
1302
|
+
public ack?: (string|null);
|
|
1303
1303
|
|
|
1304
1304
|
/** RiverMessage payload. */
|
|
1305
|
-
public payload
|
|
1305
|
+
public payload?: (google.protobuf.Value|null);
|
|
1306
|
+
|
|
1307
|
+
/** RiverMessage _replyTo. */
|
|
1308
|
+
public _replyTo?: "replyTo";
|
|
1309
|
+
|
|
1310
|
+
/** RiverMessage _ack. */
|
|
1311
|
+
public _ack?: "ack";
|
|
1306
1312
|
|
|
1307
1313
|
/**
|
|
1308
1314
|
* Creates a new RiverMessage instance using the specified properties.
|
|
@@ -18614,6 +18620,9 @@ export namespace replit {
|
|
|
18614
18620
|
|
|
18615
18621
|
/** DeploymentConfig rewrites */
|
|
18616
18622
|
rewrites?: ((replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule)[]|null);
|
|
18623
|
+
|
|
18624
|
+
/** DeploymentConfig responseHeaders */
|
|
18625
|
+
responseHeaders?: ((replit.goval.api.DeploymentConfig.Header|replit.goval.api.DeploymentConfig.IHeader)[]|null);
|
|
18617
18626
|
}
|
|
18618
18627
|
|
|
18619
18628
|
/** Represents a DeploymentConfig. */
|
|
@@ -18643,6 +18652,9 @@ export namespace replit {
|
|
|
18643
18652
|
/** DeploymentConfig rewrites. */
|
|
18644
18653
|
public rewrites: replit.goval.api.DeploymentConfig.RewriteRule[];
|
|
18645
18654
|
|
|
18655
|
+
/** DeploymentConfig responseHeaders. */
|
|
18656
|
+
public responseHeaders: replit.goval.api.DeploymentConfig.Header[];
|
|
18657
|
+
|
|
18646
18658
|
/**
|
|
18647
18659
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
18648
18660
|
* @param [properties] Properties to set
|
|
@@ -18832,6 +18844,115 @@ export namespace replit {
|
|
|
18832
18844
|
*/
|
|
18833
18845
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18834
18846
|
}
|
|
18847
|
+
|
|
18848
|
+
/** Properties of a Header. */
|
|
18849
|
+
interface IHeader {
|
|
18850
|
+
|
|
18851
|
+
/** Header path */
|
|
18852
|
+
path?: (string|null);
|
|
18853
|
+
|
|
18854
|
+
/** Header name */
|
|
18855
|
+
name?: (string|null);
|
|
18856
|
+
|
|
18857
|
+
/** Header value */
|
|
18858
|
+
value?: (string|null);
|
|
18859
|
+
}
|
|
18860
|
+
|
|
18861
|
+
/** Represents a Header. */
|
|
18862
|
+
class Header {
|
|
18863
|
+
|
|
18864
|
+
/**
|
|
18865
|
+
* Constructs a new Header.
|
|
18866
|
+
* @param [properties] Properties to set
|
|
18867
|
+
*/
|
|
18868
|
+
private constructor(properties?: replit.goval.api.DeploymentConfig.IHeader);
|
|
18869
|
+
|
|
18870
|
+
/** Header path. */
|
|
18871
|
+
public path: string;
|
|
18872
|
+
|
|
18873
|
+
/** Header name. */
|
|
18874
|
+
public name: string;
|
|
18875
|
+
|
|
18876
|
+
/** Header value. */
|
|
18877
|
+
public value: string;
|
|
18878
|
+
|
|
18879
|
+
/**
|
|
18880
|
+
* Creates a new Header instance using the specified properties.
|
|
18881
|
+
* @param [properties] Properties to set
|
|
18882
|
+
* @returns Header instance
|
|
18883
|
+
*/
|
|
18884
|
+
public static create(properties?: replit.goval.api.DeploymentConfig.IHeader): replit.goval.api.DeploymentConfig.Header;
|
|
18885
|
+
|
|
18886
|
+
/**
|
|
18887
|
+
* Encodes the specified Header message. Does not implicitly {@link replit.goval.api.DeploymentConfig.Header.verify|verify} messages.
|
|
18888
|
+
* @param message Header message or plain object to encode
|
|
18889
|
+
* @param [writer] Writer to encode to
|
|
18890
|
+
* @returns Writer
|
|
18891
|
+
*/
|
|
18892
|
+
public static encode(message: replit.goval.api.DeploymentConfig.Header, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18893
|
+
|
|
18894
|
+
/**
|
|
18895
|
+
* Encodes the specified Header message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.Header.verify|verify} messages.
|
|
18896
|
+
* @param message Header message or plain object to encode
|
|
18897
|
+
* @param [writer] Writer to encode to
|
|
18898
|
+
* @returns Writer
|
|
18899
|
+
*/
|
|
18900
|
+
public static encodeDelimited(message: replit.goval.api.DeploymentConfig.Header, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18901
|
+
|
|
18902
|
+
/**
|
|
18903
|
+
* Decodes a Header message from the specified reader or buffer.
|
|
18904
|
+
* @param reader Reader or buffer to decode from
|
|
18905
|
+
* @param [length] Message length if known beforehand
|
|
18906
|
+
* @returns Header
|
|
18907
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18908
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18909
|
+
*/
|
|
18910
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.DeploymentConfig.Header;
|
|
18911
|
+
|
|
18912
|
+
/**
|
|
18913
|
+
* Decodes a Header message from the specified reader or buffer, length delimited.
|
|
18914
|
+
* @param reader Reader or buffer to decode from
|
|
18915
|
+
* @returns Header
|
|
18916
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18917
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18918
|
+
*/
|
|
18919
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.DeploymentConfig.Header;
|
|
18920
|
+
|
|
18921
|
+
/**
|
|
18922
|
+
* Verifies a Header message.
|
|
18923
|
+
* @param message Plain object to verify
|
|
18924
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18925
|
+
*/
|
|
18926
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18927
|
+
|
|
18928
|
+
/**
|
|
18929
|
+
* Creates a Header message from a plain object. Also converts values to their respective internal types.
|
|
18930
|
+
* @param object Plain object
|
|
18931
|
+
* @returns Header
|
|
18932
|
+
*/
|
|
18933
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.DeploymentConfig.Header;
|
|
18934
|
+
|
|
18935
|
+
/**
|
|
18936
|
+
* Creates a plain object from a Header message. Also converts values to other types if specified.
|
|
18937
|
+
* @param message Header
|
|
18938
|
+
* @param [options] Conversion options
|
|
18939
|
+
* @returns Plain object
|
|
18940
|
+
*/
|
|
18941
|
+
public static toObject(message: replit.goval.api.DeploymentConfig.Header, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18942
|
+
|
|
18943
|
+
/**
|
|
18944
|
+
* Converts this Header to JSON.
|
|
18945
|
+
* @returns JSON object
|
|
18946
|
+
*/
|
|
18947
|
+
public toJSON(): { [k: string]: any };
|
|
18948
|
+
|
|
18949
|
+
/**
|
|
18950
|
+
* Gets the default type url for Header
|
|
18951
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18952
|
+
* @returns The default type url
|
|
18953
|
+
*/
|
|
18954
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18955
|
+
}
|
|
18835
18956
|
}
|
|
18836
18957
|
|
|
18837
18958
|
/** Properties of an ExtensionConfig. */
|
package/main/index.js
CHANGED
|
@@ -6828,7 +6828,7 @@
|
|
|
6828
6828
|
* @property {string|null} [serviceName] RiverMessage serviceName
|
|
6829
6829
|
* @property {string|null} [procedureName] RiverMessage procedureName
|
|
6830
6830
|
* @property {string|null} [ack] RiverMessage ack
|
|
6831
|
-
* @property {
|
|
6831
|
+
* @property {google.protobuf.Value|google.protobuf.IValue|null} [payload] RiverMessage payload
|
|
6832
6832
|
*/
|
|
6833
6833
|
|
|
6834
6834
|
/**
|
|
@@ -6855,11 +6855,11 @@
|
|
|
6855
6855
|
|
|
6856
6856
|
/**
|
|
6857
6857
|
* RiverMessage replyTo.
|
|
6858
|
-
* @member {string} replyTo
|
|
6858
|
+
* @member {string|null|undefined} replyTo
|
|
6859
6859
|
* @memberof replit.goval.api.RiverMessage
|
|
6860
6860
|
* @instance
|
|
6861
6861
|
*/
|
|
6862
|
-
RiverMessage.prototype.replyTo =
|
|
6862
|
+
RiverMessage.prototype.replyTo = null;
|
|
6863
6863
|
|
|
6864
6864
|
/**
|
|
6865
6865
|
* RiverMessage from.
|
|
@@ -6895,19 +6895,44 @@
|
|
|
6895
6895
|
|
|
6896
6896
|
/**
|
|
6897
6897
|
* RiverMessage ack.
|
|
6898
|
-
* @member {string} ack
|
|
6898
|
+
* @member {string|null|undefined} ack
|
|
6899
6899
|
* @memberof replit.goval.api.RiverMessage
|
|
6900
6900
|
* @instance
|
|
6901
6901
|
*/
|
|
6902
|
-
RiverMessage.prototype.ack =
|
|
6902
|
+
RiverMessage.prototype.ack = null;
|
|
6903
6903
|
|
|
6904
6904
|
/**
|
|
6905
6905
|
* RiverMessage payload.
|
|
6906
|
-
* @member {
|
|
6906
|
+
* @member {google.protobuf.Value|null|undefined} payload
|
|
6907
6907
|
* @memberof replit.goval.api.RiverMessage
|
|
6908
6908
|
* @instance
|
|
6909
6909
|
*/
|
|
6910
|
-
RiverMessage.prototype.payload =
|
|
6910
|
+
RiverMessage.prototype.payload = null;
|
|
6911
|
+
|
|
6912
|
+
// OneOf field names bound to virtual getters and setters
|
|
6913
|
+
var $oneOfFields;
|
|
6914
|
+
|
|
6915
|
+
/**
|
|
6916
|
+
* RiverMessage _replyTo.
|
|
6917
|
+
* @member {"replyTo"|undefined} _replyTo
|
|
6918
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6919
|
+
* @instance
|
|
6920
|
+
*/
|
|
6921
|
+
Object.defineProperty(RiverMessage.prototype, "_replyTo", {
|
|
6922
|
+
get: $util.oneOfGetter($oneOfFields = ["replyTo"]),
|
|
6923
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6924
|
+
});
|
|
6925
|
+
|
|
6926
|
+
/**
|
|
6927
|
+
* RiverMessage _ack.
|
|
6928
|
+
* @member {"ack"|undefined} _ack
|
|
6929
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6930
|
+
* @instance
|
|
6931
|
+
*/
|
|
6932
|
+
Object.defineProperty(RiverMessage.prototype, "_ack", {
|
|
6933
|
+
get: $util.oneOfGetter($oneOfFields = ["ack"]),
|
|
6934
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6935
|
+
});
|
|
6911
6936
|
|
|
6912
6937
|
/**
|
|
6913
6938
|
* Creates a new RiverMessage instance using the specified properties.
|
|
@@ -6948,7 +6973,7 @@
|
|
|
6948
6973
|
if (message.ack != null && Object.hasOwnProperty.call(message, "ack"))
|
|
6949
6974
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.ack);
|
|
6950
6975
|
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
6951
|
-
writer.uint32(/* id 10, wireType 2 =*/82).
|
|
6976
|
+
$root.google.protobuf.Value.encode(message.payload, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
6952
6977
|
return writer;
|
|
6953
6978
|
};
|
|
6954
6979
|
|
|
@@ -7012,7 +7037,7 @@
|
|
|
7012
7037
|
break;
|
|
7013
7038
|
}
|
|
7014
7039
|
case 10: {
|
|
7015
|
-
message.payload = reader.
|
|
7040
|
+
message.payload = $root.google.protobuf.Value.decode(reader, reader.uint32());
|
|
7016
7041
|
break;
|
|
7017
7042
|
}
|
|
7018
7043
|
default:
|
|
@@ -7050,12 +7075,15 @@
|
|
|
7050
7075
|
RiverMessage.verify = function verify(message) {
|
|
7051
7076
|
if (typeof message !== "object" || message === null)
|
|
7052
7077
|
return "object expected";
|
|
7078
|
+
var properties = {};
|
|
7053
7079
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
7054
7080
|
if (!$util.isString(message.id))
|
|
7055
7081
|
return "id: string expected";
|
|
7056
|
-
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7082
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo")) {
|
|
7083
|
+
properties._replyTo = 1;
|
|
7057
7084
|
if (!$util.isString(message.replyTo))
|
|
7058
7085
|
return "replyTo: string expected";
|
|
7086
|
+
}
|
|
7059
7087
|
if (message.from != null && message.hasOwnProperty("from"))
|
|
7060
7088
|
if (!$util.isString(message.from))
|
|
7061
7089
|
return "from: string expected";
|
|
@@ -7068,12 +7096,16 @@
|
|
|
7068
7096
|
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7069
7097
|
if (!$util.isString(message.procedureName))
|
|
7070
7098
|
return "procedureName: string expected";
|
|
7071
|
-
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7099
|
+
if (message.ack != null && message.hasOwnProperty("ack")) {
|
|
7100
|
+
properties._ack = 1;
|
|
7072
7101
|
if (!$util.isString(message.ack))
|
|
7073
7102
|
return "ack: string expected";
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7103
|
+
}
|
|
7104
|
+
if (message.payload != null && message.hasOwnProperty("payload")) {
|
|
7105
|
+
var error = $root.google.protobuf.Value.verify(message.payload);
|
|
7106
|
+
if (error)
|
|
7107
|
+
return "payload." + error;
|
|
7108
|
+
}
|
|
7077
7109
|
return null;
|
|
7078
7110
|
};
|
|
7079
7111
|
|
|
@@ -7103,11 +7135,11 @@
|
|
|
7103
7135
|
message.procedureName = String(object.procedureName);
|
|
7104
7136
|
if (object.ack != null)
|
|
7105
7137
|
message.ack = String(object.ack);
|
|
7106
|
-
if (object.payload != null)
|
|
7107
|
-
if (typeof object.payload
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7138
|
+
if (object.payload != null) {
|
|
7139
|
+
if (typeof object.payload !== "object")
|
|
7140
|
+
throw TypeError(".replit.goval.api.RiverMessage.payload: object expected");
|
|
7141
|
+
message.payload = $root.google.protobuf.Value.fromObject(object.payload);
|
|
7142
|
+
}
|
|
7111
7143
|
return message;
|
|
7112
7144
|
};
|
|
7113
7145
|
|
|
@@ -7126,24 +7158,19 @@
|
|
|
7126
7158
|
var object = {};
|
|
7127
7159
|
if (options.defaults) {
|
|
7128
7160
|
object.id = "";
|
|
7129
|
-
object.replyTo = "";
|
|
7130
7161
|
object.from = "";
|
|
7131
7162
|
object.to = "";
|
|
7132
7163
|
object.serviceName = "";
|
|
7133
7164
|
object.procedureName = "";
|
|
7134
|
-
object.
|
|
7135
|
-
if (options.bytes === String)
|
|
7136
|
-
object.payload = "";
|
|
7137
|
-
else {
|
|
7138
|
-
object.payload = [];
|
|
7139
|
-
if (options.bytes !== Array)
|
|
7140
|
-
object.payload = $util.newBuffer(object.payload);
|
|
7141
|
-
}
|
|
7165
|
+
object.payload = null;
|
|
7142
7166
|
}
|
|
7143
7167
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
7144
7168
|
object.id = message.id;
|
|
7145
|
-
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7169
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo")) {
|
|
7146
7170
|
object.replyTo = message.replyTo;
|
|
7171
|
+
if (options.oneofs)
|
|
7172
|
+
object._replyTo = "replyTo";
|
|
7173
|
+
}
|
|
7147
7174
|
if (message.from != null && message.hasOwnProperty("from"))
|
|
7148
7175
|
object.from = message.from;
|
|
7149
7176
|
if (message.to != null && message.hasOwnProperty("to"))
|
|
@@ -7152,10 +7179,13 @@
|
|
|
7152
7179
|
object.serviceName = message.serviceName;
|
|
7153
7180
|
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7154
7181
|
object.procedureName = message.procedureName;
|
|
7155
|
-
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7182
|
+
if (message.ack != null && message.hasOwnProperty("ack")) {
|
|
7156
7183
|
object.ack = message.ack;
|
|
7184
|
+
if (options.oneofs)
|
|
7185
|
+
object._ack = "ack";
|
|
7186
|
+
}
|
|
7157
7187
|
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7158
|
-
object.payload =
|
|
7188
|
+
object.payload = $root.google.protobuf.Value.toObject(message.payload, options);
|
|
7159
7189
|
return object;
|
|
7160
7190
|
};
|
|
7161
7191
|
|
|
@@ -47180,6 +47210,7 @@
|
|
|
47180
47210
|
* @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
|
|
47181
47211
|
* @property {string|null} [publicDir] DeploymentConfig publicDir
|
|
47182
47212
|
* @property {Array.<replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule>|null} [rewrites] DeploymentConfig rewrites
|
|
47213
|
+
* @property {Array.<replit.goval.api.DeploymentConfig.Header|replit.goval.api.DeploymentConfig.IHeader>|null} [responseHeaders] DeploymentConfig responseHeaders
|
|
47183
47214
|
*/
|
|
47184
47215
|
|
|
47185
47216
|
/**
|
|
@@ -47191,6 +47222,7 @@
|
|
|
47191
47222
|
*/
|
|
47192
47223
|
function DeploymentConfig(properties) {
|
|
47193
47224
|
this.rewrites = [];
|
|
47225
|
+
this.responseHeaders = [];
|
|
47194
47226
|
if (properties)
|
|
47195
47227
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47196
47228
|
if (properties[keys[i]] != null)
|
|
@@ -47245,6 +47277,14 @@
|
|
|
47245
47277
|
*/
|
|
47246
47278
|
DeploymentConfig.prototype.rewrites = $util.emptyArray;
|
|
47247
47279
|
|
|
47280
|
+
/**
|
|
47281
|
+
* DeploymentConfig responseHeaders.
|
|
47282
|
+
* @member {Array.<replit.goval.api.DeploymentConfig.Header>} responseHeaders
|
|
47283
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47284
|
+
* @instance
|
|
47285
|
+
*/
|
|
47286
|
+
DeploymentConfig.prototype.responseHeaders = $util.emptyArray;
|
|
47287
|
+
|
|
47248
47288
|
/**
|
|
47249
47289
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
47250
47290
|
* @function create
|
|
@@ -47282,6 +47322,9 @@
|
|
|
47282
47322
|
if (message.rewrites != null && message.rewrites.length)
|
|
47283
47323
|
for (var i = 0; i < message.rewrites.length; ++i)
|
|
47284
47324
|
$root.replit.goval.api.DeploymentConfig.RewriteRule.encode(message.rewrites[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
47325
|
+
if (message.responseHeaders != null && message.responseHeaders.length)
|
|
47326
|
+
for (var i = 0; i < message.responseHeaders.length; ++i)
|
|
47327
|
+
$root.replit.goval.api.DeploymentConfig.Header.encode(message.responseHeaders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
47285
47328
|
return writer;
|
|
47286
47329
|
};
|
|
47287
47330
|
|
|
@@ -47342,6 +47385,12 @@
|
|
|
47342
47385
|
message.rewrites.push($root.replit.goval.api.DeploymentConfig.RewriteRule.decode(reader, reader.uint32()));
|
|
47343
47386
|
break;
|
|
47344
47387
|
}
|
|
47388
|
+
case 7: {
|
|
47389
|
+
if (!(message.responseHeaders && message.responseHeaders.length))
|
|
47390
|
+
message.responseHeaders = [];
|
|
47391
|
+
message.responseHeaders.push($root.replit.goval.api.DeploymentConfig.Header.decode(reader, reader.uint32()));
|
|
47392
|
+
break;
|
|
47393
|
+
}
|
|
47345
47394
|
default:
|
|
47346
47395
|
reader.skipType(tag & 7);
|
|
47347
47396
|
break;
|
|
@@ -47411,6 +47460,15 @@
|
|
|
47411
47460
|
return "rewrites." + error;
|
|
47412
47461
|
}
|
|
47413
47462
|
}
|
|
47463
|
+
if (message.responseHeaders != null && message.hasOwnProperty("responseHeaders")) {
|
|
47464
|
+
if (!Array.isArray(message.responseHeaders))
|
|
47465
|
+
return "responseHeaders: array expected";
|
|
47466
|
+
for (var i = 0; i < message.responseHeaders.length; ++i) {
|
|
47467
|
+
var error = $root.replit.goval.api.DeploymentConfig.Header.verify(message.responseHeaders[i]);
|
|
47468
|
+
if (error)
|
|
47469
|
+
return "responseHeaders." + error;
|
|
47470
|
+
}
|
|
47471
|
+
}
|
|
47414
47472
|
return null;
|
|
47415
47473
|
};
|
|
47416
47474
|
|
|
@@ -47470,6 +47528,16 @@
|
|
|
47470
47528
|
message.rewrites[i] = $root.replit.goval.api.DeploymentConfig.RewriteRule.fromObject(object.rewrites[i]);
|
|
47471
47529
|
}
|
|
47472
47530
|
}
|
|
47531
|
+
if (object.responseHeaders) {
|
|
47532
|
+
if (!Array.isArray(object.responseHeaders))
|
|
47533
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.responseHeaders: array expected");
|
|
47534
|
+
message.responseHeaders = [];
|
|
47535
|
+
for (var i = 0; i < object.responseHeaders.length; ++i) {
|
|
47536
|
+
if (typeof object.responseHeaders[i] !== "object")
|
|
47537
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.responseHeaders: object expected");
|
|
47538
|
+
message.responseHeaders[i] = $root.replit.goval.api.DeploymentConfig.Header.fromObject(object.responseHeaders[i]);
|
|
47539
|
+
}
|
|
47540
|
+
}
|
|
47473
47541
|
return message;
|
|
47474
47542
|
};
|
|
47475
47543
|
|
|
@@ -47486,8 +47554,10 @@
|
|
|
47486
47554
|
if (!options)
|
|
47487
47555
|
options = {};
|
|
47488
47556
|
var object = {};
|
|
47489
|
-
if (options.arrays || options.defaults)
|
|
47557
|
+
if (options.arrays || options.defaults) {
|
|
47490
47558
|
object.rewrites = [];
|
|
47559
|
+
object.responseHeaders = [];
|
|
47560
|
+
}
|
|
47491
47561
|
if (options.defaults) {
|
|
47492
47562
|
object.run = null;
|
|
47493
47563
|
object.build = null;
|
|
@@ -47510,6 +47580,11 @@
|
|
|
47510
47580
|
for (var j = 0; j < message.rewrites.length; ++j)
|
|
47511
47581
|
object.rewrites[j] = $root.replit.goval.api.DeploymentConfig.RewriteRule.toObject(message.rewrites[j], options);
|
|
47512
47582
|
}
|
|
47583
|
+
if (message.responseHeaders && message.responseHeaders.length) {
|
|
47584
|
+
object.responseHeaders = [];
|
|
47585
|
+
for (var j = 0; j < message.responseHeaders.length; ++j)
|
|
47586
|
+
object.responseHeaders[j] = $root.replit.goval.api.DeploymentConfig.Header.toObject(message.responseHeaders[j], options);
|
|
47587
|
+
}
|
|
47513
47588
|
return object;
|
|
47514
47589
|
};
|
|
47515
47590
|
|
|
@@ -47781,6 +47856,255 @@
|
|
|
47781
47856
|
return RewriteRule;
|
|
47782
47857
|
})();
|
|
47783
47858
|
|
|
47859
|
+
DeploymentConfig.Header = (function() {
|
|
47860
|
+
|
|
47861
|
+
/**
|
|
47862
|
+
* Properties of a Header.
|
|
47863
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47864
|
+
* @interface IHeader
|
|
47865
|
+
* @property {string|null} [path] Header path
|
|
47866
|
+
* @property {string|null} [name] Header name
|
|
47867
|
+
* @property {string|null} [value] Header value
|
|
47868
|
+
*/
|
|
47869
|
+
|
|
47870
|
+
/**
|
|
47871
|
+
* Constructs a new Header.
|
|
47872
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47873
|
+
* @classdesc Represents a Header.
|
|
47874
|
+
* @constructor
|
|
47875
|
+
* @param {replit.goval.api.DeploymentConfig.IHeader=} [properties] Properties to set
|
|
47876
|
+
*/
|
|
47877
|
+
function Header(properties) {
|
|
47878
|
+
if (properties)
|
|
47879
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47880
|
+
if (properties[keys[i]] != null)
|
|
47881
|
+
this[keys[i]] = properties[keys[i]];
|
|
47882
|
+
}
|
|
47883
|
+
|
|
47884
|
+
/**
|
|
47885
|
+
* Header path.
|
|
47886
|
+
* @member {string} path
|
|
47887
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47888
|
+
* @instance
|
|
47889
|
+
*/
|
|
47890
|
+
Header.prototype.path = "";
|
|
47891
|
+
|
|
47892
|
+
/**
|
|
47893
|
+
* Header name.
|
|
47894
|
+
* @member {string} name
|
|
47895
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47896
|
+
* @instance
|
|
47897
|
+
*/
|
|
47898
|
+
Header.prototype.name = "";
|
|
47899
|
+
|
|
47900
|
+
/**
|
|
47901
|
+
* Header value.
|
|
47902
|
+
* @member {string} value
|
|
47903
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47904
|
+
* @instance
|
|
47905
|
+
*/
|
|
47906
|
+
Header.prototype.value = "";
|
|
47907
|
+
|
|
47908
|
+
/**
|
|
47909
|
+
* Creates a new Header instance using the specified properties.
|
|
47910
|
+
* @function create
|
|
47911
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47912
|
+
* @static
|
|
47913
|
+
* @param {replit.goval.api.DeploymentConfig.IHeader=} [properties] Properties to set
|
|
47914
|
+
* @returns {replit.goval.api.DeploymentConfig.Header} Header instance
|
|
47915
|
+
*/
|
|
47916
|
+
Header.create = function create(properties) {
|
|
47917
|
+
return Header.fromObject(properties);
|
|
47918
|
+
};
|
|
47919
|
+
|
|
47920
|
+
/**
|
|
47921
|
+
* Encodes the specified Header message. Does not implicitly {@link replit.goval.api.DeploymentConfig.Header.verify|verify} messages.
|
|
47922
|
+
* @function encode
|
|
47923
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47924
|
+
* @static
|
|
47925
|
+
* @param {replit.goval.api.DeploymentConfig.Header} message Header message or plain object to encode
|
|
47926
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47927
|
+
* @returns {$protobuf.Writer} Writer
|
|
47928
|
+
*/
|
|
47929
|
+
Header.encode = function encode(message, writer) {
|
|
47930
|
+
if (!writer)
|
|
47931
|
+
writer = $Writer.create();
|
|
47932
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
47933
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
47934
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
47935
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
47936
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
47937
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.value);
|
|
47938
|
+
return writer;
|
|
47939
|
+
};
|
|
47940
|
+
|
|
47941
|
+
/**
|
|
47942
|
+
* Encodes the specified Header message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.Header.verify|verify} messages.
|
|
47943
|
+
* @function encodeDelimited
|
|
47944
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47945
|
+
* @static
|
|
47946
|
+
* @param {replit.goval.api.DeploymentConfig.Header} message Header message or plain object to encode
|
|
47947
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47948
|
+
* @returns {$protobuf.Writer} Writer
|
|
47949
|
+
*/
|
|
47950
|
+
Header.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47951
|
+
return this.encode(message, writer).ldelim();
|
|
47952
|
+
};
|
|
47953
|
+
|
|
47954
|
+
/**
|
|
47955
|
+
* Decodes a Header message from the specified reader or buffer.
|
|
47956
|
+
* @function decode
|
|
47957
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47958
|
+
* @static
|
|
47959
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47960
|
+
* @param {number} [length] Message length if known beforehand
|
|
47961
|
+
* @returns {replit.goval.api.DeploymentConfig.Header} Header
|
|
47962
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47963
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47964
|
+
*/
|
|
47965
|
+
Header.decode = function decode(reader, length) {
|
|
47966
|
+
if (!(reader instanceof $Reader))
|
|
47967
|
+
reader = $Reader.create(reader);
|
|
47968
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.DeploymentConfig.Header();
|
|
47969
|
+
while (reader.pos < end) {
|
|
47970
|
+
var tag = reader.uint32();
|
|
47971
|
+
switch (tag >>> 3) {
|
|
47972
|
+
case 1: {
|
|
47973
|
+
message.path = reader.string();
|
|
47974
|
+
break;
|
|
47975
|
+
}
|
|
47976
|
+
case 2: {
|
|
47977
|
+
message.name = reader.string();
|
|
47978
|
+
break;
|
|
47979
|
+
}
|
|
47980
|
+
case 3: {
|
|
47981
|
+
message.value = reader.string();
|
|
47982
|
+
break;
|
|
47983
|
+
}
|
|
47984
|
+
default:
|
|
47985
|
+
reader.skipType(tag & 7);
|
|
47986
|
+
break;
|
|
47987
|
+
}
|
|
47988
|
+
}
|
|
47989
|
+
return message;
|
|
47990
|
+
};
|
|
47991
|
+
|
|
47992
|
+
/**
|
|
47993
|
+
* Decodes a Header message from the specified reader or buffer, length delimited.
|
|
47994
|
+
* @function decodeDelimited
|
|
47995
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
47996
|
+
* @static
|
|
47997
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47998
|
+
* @returns {replit.goval.api.DeploymentConfig.Header} Header
|
|
47999
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48000
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48001
|
+
*/
|
|
48002
|
+
Header.decodeDelimited = function decodeDelimited(reader) {
|
|
48003
|
+
if (!(reader instanceof $Reader))
|
|
48004
|
+
reader = new $Reader(reader);
|
|
48005
|
+
return this.decode(reader, reader.uint32());
|
|
48006
|
+
};
|
|
48007
|
+
|
|
48008
|
+
/**
|
|
48009
|
+
* Verifies a Header message.
|
|
48010
|
+
* @function verify
|
|
48011
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
48012
|
+
* @static
|
|
48013
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
48014
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48015
|
+
*/
|
|
48016
|
+
Header.verify = function verify(message) {
|
|
48017
|
+
if (typeof message !== "object" || message === null)
|
|
48018
|
+
return "object expected";
|
|
48019
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
48020
|
+
if (!$util.isString(message.path))
|
|
48021
|
+
return "path: string expected";
|
|
48022
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
48023
|
+
if (!$util.isString(message.name))
|
|
48024
|
+
return "name: string expected";
|
|
48025
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
48026
|
+
if (!$util.isString(message.value))
|
|
48027
|
+
return "value: string expected";
|
|
48028
|
+
return null;
|
|
48029
|
+
};
|
|
48030
|
+
|
|
48031
|
+
/**
|
|
48032
|
+
* Creates a Header message from a plain object. Also converts values to their respective internal types.
|
|
48033
|
+
* @function fromObject
|
|
48034
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
48035
|
+
* @static
|
|
48036
|
+
* @param {Object.<string,*>} object Plain object
|
|
48037
|
+
* @returns {replit.goval.api.DeploymentConfig.Header} Header
|
|
48038
|
+
*/
|
|
48039
|
+
Header.fromObject = function fromObject(object) {
|
|
48040
|
+
if (object instanceof $root.replit.goval.api.DeploymentConfig.Header)
|
|
48041
|
+
return object;
|
|
48042
|
+
var message = new $root.replit.goval.api.DeploymentConfig.Header();
|
|
48043
|
+
if (object.path != null)
|
|
48044
|
+
message.path = String(object.path);
|
|
48045
|
+
if (object.name != null)
|
|
48046
|
+
message.name = String(object.name);
|
|
48047
|
+
if (object.value != null)
|
|
48048
|
+
message.value = String(object.value);
|
|
48049
|
+
return message;
|
|
48050
|
+
};
|
|
48051
|
+
|
|
48052
|
+
/**
|
|
48053
|
+
* Creates a plain object from a Header message. Also converts values to other types if specified.
|
|
48054
|
+
* @function toObject
|
|
48055
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
48056
|
+
* @static
|
|
48057
|
+
* @param {replit.goval.api.DeploymentConfig.Header} message Header
|
|
48058
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48059
|
+
* @returns {Object.<string,*>} Plain object
|
|
48060
|
+
*/
|
|
48061
|
+
Header.toObject = function toObject(message, options) {
|
|
48062
|
+
if (!options)
|
|
48063
|
+
options = {};
|
|
48064
|
+
var object = {};
|
|
48065
|
+
if (options.defaults) {
|
|
48066
|
+
object.path = "";
|
|
48067
|
+
object.name = "";
|
|
48068
|
+
object.value = "";
|
|
48069
|
+
}
|
|
48070
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
48071
|
+
object.path = message.path;
|
|
48072
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
48073
|
+
object.name = message.name;
|
|
48074
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
48075
|
+
object.value = message.value;
|
|
48076
|
+
return object;
|
|
48077
|
+
};
|
|
48078
|
+
|
|
48079
|
+
/**
|
|
48080
|
+
* Converts this Header to JSON.
|
|
48081
|
+
* @function toJSON
|
|
48082
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
48083
|
+
* @instance
|
|
48084
|
+
* @returns {Object.<string,*>} JSON object
|
|
48085
|
+
*/
|
|
48086
|
+
Header.prototype.toJSON = function toJSON() {
|
|
48087
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48088
|
+
};
|
|
48089
|
+
|
|
48090
|
+
/**
|
|
48091
|
+
* Gets the default type url for Header
|
|
48092
|
+
* @function getTypeUrl
|
|
48093
|
+
* @memberof replit.goval.api.DeploymentConfig.Header
|
|
48094
|
+
* @static
|
|
48095
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48096
|
+
* @returns {string} The default type url
|
|
48097
|
+
*/
|
|
48098
|
+
Header.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
48099
|
+
if (typeUrlPrefix === undefined) {
|
|
48100
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
48101
|
+
}
|
|
48102
|
+
return typeUrlPrefix + "/replit.goval.api.DeploymentConfig.Header";
|
|
48103
|
+
};
|
|
48104
|
+
|
|
48105
|
+
return Header;
|
|
48106
|
+
})();
|
|
48107
|
+
|
|
47784
48108
|
return DeploymentConfig;
|
|
47785
48109
|
})();
|
|
47786
48110
|
|
package/main/index.js.flow
CHANGED
|
@@ -3088,7 +3088,7 @@ declare type replit$goval$api$IRiverMessage = {|
|
|
|
3088
3088
|
/**
|
|
3089
3089
|
* RiverMessage payload
|
|
3090
3090
|
*/
|
|
3091
|
-
payload?:
|
|
3091
|
+
payload?: google$protobuf$Value | google$protobuf$IValue | null,
|
|
3092
3092
|
|};
|
|
3093
3093
|
|
|
3094
3094
|
/**
|
|
@@ -3109,7 +3109,7 @@ declare class replit$goval$api$RiverMessage {
|
|
|
3109
3109
|
/**
|
|
3110
3110
|
* RiverMessage replyTo.
|
|
3111
3111
|
*/
|
|
3112
|
-
replyTo
|
|
3112
|
+
replyTo?: string | null;
|
|
3113
3113
|
|
|
3114
3114
|
/**
|
|
3115
3115
|
* RiverMessage from.
|
|
@@ -3134,12 +3134,22 @@ declare class replit$goval$api$RiverMessage {
|
|
|
3134
3134
|
/**
|
|
3135
3135
|
* RiverMessage ack.
|
|
3136
3136
|
*/
|
|
3137
|
-
ack
|
|
3137
|
+
ack?: string | null;
|
|
3138
3138
|
|
|
3139
3139
|
/**
|
|
3140
3140
|
* RiverMessage payload.
|
|
3141
3141
|
*/
|
|
3142
|
-
payload
|
|
3142
|
+
payload?: google$protobuf$Value | null;
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* RiverMessage _replyTo.
|
|
3146
|
+
*/
|
|
3147
|
+
_replyTo?: "replyTo";
|
|
3148
|
+
|
|
3149
|
+
/**
|
|
3150
|
+
* RiverMessage _ack.
|
|
3151
|
+
*/
|
|
3152
|
+
_ack?: "ack";
|
|
3143
3153
|
|
|
3144
3154
|
/**
|
|
3145
3155
|
* Creates a new RiverMessage instance using the specified properties.
|
|
@@ -26272,6 +26282,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
|
|
|
26272
26282
|
| replit$goval$api$DeploymentConfig$IRewriteRule
|
|
26273
26283
|
)[]
|
|
26274
26284
|
| null,
|
|
26285
|
+
|
|
26286
|
+
/**
|
|
26287
|
+
* DeploymentConfig responseHeaders
|
|
26288
|
+
*/
|
|
26289
|
+
responseHeaders?:
|
|
26290
|
+
| (
|
|
26291
|
+
| replit$goval$api$DeploymentConfig$Header
|
|
26292
|
+
| replit$goval$api$DeploymentConfig$IHeader
|
|
26293
|
+
)[]
|
|
26294
|
+
| null,
|
|
26275
26295
|
|};
|
|
26276
26296
|
|
|
26277
26297
|
/**
|
|
@@ -26314,6 +26334,11 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
26314
26334
|
*/
|
|
26315
26335
|
rewrites: replit$goval$api$DeploymentConfig$RewriteRule[];
|
|
26316
26336
|
|
|
26337
|
+
/**
|
|
26338
|
+
* DeploymentConfig responseHeaders.
|
|
26339
|
+
*/
|
|
26340
|
+
responseHeaders: replit$goval$api$DeploymentConfig$Header[];
|
|
26341
|
+
|
|
26317
26342
|
/**
|
|
26318
26343
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
26319
26344
|
* @param [properties] Properties to set
|
|
@@ -26416,7 +26441,9 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
26416
26441
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
26417
26442
|
static Target: typeof replit$goval$api$DeploymentConfig$Target;
|
|
26418
26443
|
static IRewriteRule: Class<replit$goval$api$DeploymentConfig$IRewriteRule>;
|
|
26444
|
+
static IHeader: Class<replit$goval$api$DeploymentConfig$IHeader>;
|
|
26419
26445
|
static RewriteRule: typeof replit$goval$api$DeploymentConfig$RewriteRule;
|
|
26446
|
+
static Header: typeof replit$goval$api$DeploymentConfig$Header;
|
|
26420
26447
|
}
|
|
26421
26448
|
|
|
26422
26449
|
/**
|
|
@@ -26568,6 +26595,153 @@ declare class replit$goval$api$DeploymentConfig$RewriteRule {
|
|
|
26568
26595
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
26569
26596
|
}
|
|
26570
26597
|
|
|
26598
|
+
/**
|
|
26599
|
+
* Properties of a Header.
|
|
26600
|
+
*/
|
|
26601
|
+
declare type replit$goval$api$DeploymentConfig$IHeader = {|
|
|
26602
|
+
/**
|
|
26603
|
+
* Header path
|
|
26604
|
+
*/
|
|
26605
|
+
path?: string | null,
|
|
26606
|
+
|
|
26607
|
+
/**
|
|
26608
|
+
* Header name
|
|
26609
|
+
*/
|
|
26610
|
+
name?: string | null,
|
|
26611
|
+
|
|
26612
|
+
/**
|
|
26613
|
+
* Header value
|
|
26614
|
+
*/
|
|
26615
|
+
value?: string | null,
|
|
26616
|
+
|};
|
|
26617
|
+
|
|
26618
|
+
/**
|
|
26619
|
+
* Represents a Header.
|
|
26620
|
+
*/
|
|
26621
|
+
declare class replit$goval$api$DeploymentConfig$Header {
|
|
26622
|
+
/**
|
|
26623
|
+
* Constructs a new Header.
|
|
26624
|
+
* @param [properties] Properties to set
|
|
26625
|
+
*/
|
|
26626
|
+
constructor(properties?: replit$goval$api$DeploymentConfig$IHeader): this;
|
|
26627
|
+
|
|
26628
|
+
/**
|
|
26629
|
+
* Header path.
|
|
26630
|
+
*/
|
|
26631
|
+
path: string;
|
|
26632
|
+
|
|
26633
|
+
/**
|
|
26634
|
+
* Header name.
|
|
26635
|
+
*/
|
|
26636
|
+
name: string;
|
|
26637
|
+
|
|
26638
|
+
/**
|
|
26639
|
+
* Header value.
|
|
26640
|
+
*/
|
|
26641
|
+
value: string;
|
|
26642
|
+
|
|
26643
|
+
/**
|
|
26644
|
+
* Creates a new Header instance using the specified properties.
|
|
26645
|
+
* @param [properties] Properties to set
|
|
26646
|
+
* @returns Header instance
|
|
26647
|
+
*/
|
|
26648
|
+
static create(
|
|
26649
|
+
properties?: replit$goval$api$DeploymentConfig$IHeader
|
|
26650
|
+
): replit$goval$api$DeploymentConfig$Header;
|
|
26651
|
+
|
|
26652
|
+
/**
|
|
26653
|
+
* [object Object],[object Object],[object Object]
|
|
26654
|
+
* @param message Header message or plain object to encode
|
|
26655
|
+
* @param [writer] Writer to encode to
|
|
26656
|
+
* @returns Writer
|
|
26657
|
+
*/
|
|
26658
|
+
static encode(
|
|
26659
|
+
message: replit$goval$api$DeploymentConfig$Header,
|
|
26660
|
+
writer?: $protobuf.Writer
|
|
26661
|
+
): $protobuf.Writer;
|
|
26662
|
+
|
|
26663
|
+
/**
|
|
26664
|
+
* [object Object],[object Object],[object Object]
|
|
26665
|
+
* @param message Header message or plain object to encode
|
|
26666
|
+
* @param [writer] Writer to encode to
|
|
26667
|
+
* @returns Writer
|
|
26668
|
+
*/
|
|
26669
|
+
static encodeDelimited(
|
|
26670
|
+
message: replit$goval$api$DeploymentConfig$Header,
|
|
26671
|
+
writer?: $protobuf.Writer
|
|
26672
|
+
): $protobuf.Writer;
|
|
26673
|
+
|
|
26674
|
+
/**
|
|
26675
|
+
* Decodes a Header message from the specified reader or buffer.
|
|
26676
|
+
* @param reader Reader or buffer to decode from
|
|
26677
|
+
* @param [length] Message length if known beforehand
|
|
26678
|
+
* @returns Header
|
|
26679
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26680
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26681
|
+
*/
|
|
26682
|
+
static decode(
|
|
26683
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
26684
|
+
length?: number
|
|
26685
|
+
): replit$goval$api$DeploymentConfig$Header;
|
|
26686
|
+
|
|
26687
|
+
/**
|
|
26688
|
+
* Decodes a Header message from the specified reader or buffer, length delimited.
|
|
26689
|
+
* @param reader Reader or buffer to decode from
|
|
26690
|
+
* @returns Header
|
|
26691
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26692
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26693
|
+
*/
|
|
26694
|
+
static decodeDelimited(
|
|
26695
|
+
reader: $protobuf.Reader | Uint8Array
|
|
26696
|
+
): replit$goval$api$DeploymentConfig$Header;
|
|
26697
|
+
|
|
26698
|
+
/**
|
|
26699
|
+
* Verifies a Header message.
|
|
26700
|
+
* @param message Plain object to verify
|
|
26701
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
26702
|
+
*/
|
|
26703
|
+
static verify(message: {|
|
|
26704
|
+
[k: string]: any,
|
|
26705
|
+
|}): string | null;
|
|
26706
|
+
|
|
26707
|
+
/**
|
|
26708
|
+
* Creates a Header message from a plain object. Also converts values to their respective internal types.
|
|
26709
|
+
* @param object Plain object
|
|
26710
|
+
* @returns Header
|
|
26711
|
+
*/
|
|
26712
|
+
static fromObject(object: {|
|
|
26713
|
+
[k: string]: any,
|
|
26714
|
+
|}): replit$goval$api$DeploymentConfig$Header;
|
|
26715
|
+
|
|
26716
|
+
/**
|
|
26717
|
+
* Creates a plain object from a Header message. Also converts values to other types if specified.
|
|
26718
|
+
* @param message Header
|
|
26719
|
+
* @param [options] Conversion options
|
|
26720
|
+
* @returns Plain object
|
|
26721
|
+
*/
|
|
26722
|
+
static toObject(
|
|
26723
|
+
message: replit$goval$api$DeploymentConfig$Header,
|
|
26724
|
+
options?: $protobuf.IConversionOptions
|
|
26725
|
+
): {|
|
|
26726
|
+
[k: string]: any,
|
|
26727
|
+
|};
|
|
26728
|
+
|
|
26729
|
+
/**
|
|
26730
|
+
* Converts this Header to JSON.
|
|
26731
|
+
* @returns JSON object
|
|
26732
|
+
*/
|
|
26733
|
+
toJSON(): {|
|
|
26734
|
+
[k: string]: any,
|
|
26735
|
+
|};
|
|
26736
|
+
|
|
26737
|
+
/**
|
|
26738
|
+
* Gets the default type url for Header
|
|
26739
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
26740
|
+
* @returns The default type url
|
|
26741
|
+
*/
|
|
26742
|
+
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
26743
|
+
}
|
|
26744
|
+
|
|
26571
26745
|
/**
|
|
26572
26746
|
* Properties of an ExtensionConfig.
|
|
26573
26747
|
*/
|