@wppconnect/wa-proto 1.1.1 → 1.1.3
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/CHANGELOG.md +8 -0
- package/WAProto.proto +21 -6
- package/dist/index.d.ts +241 -10
- package/dist/index.js +692 -35
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4323,6 +4323,7 @@ $root.waproto = (function() {
|
|
|
4323
4323
|
case 1:
|
|
4324
4324
|
case 2:
|
|
4325
4325
|
case 3:
|
|
4326
|
+
case 4:
|
|
4326
4327
|
case 10:
|
|
4327
4328
|
case 11:
|
|
4328
4329
|
case 12:
|
|
@@ -4367,6 +4368,10 @@ $root.waproto = (function() {
|
|
|
4367
4368
|
case 3:
|
|
4368
4369
|
message.capabilities[i] = 3;
|
|
4369
4370
|
break;
|
|
4371
|
+
case "AI_MEMORY":
|
|
4372
|
+
case 4:
|
|
4373
|
+
message.capabilities[i] = 4;
|
|
4374
|
+
break;
|
|
4370
4375
|
case "WA_IG_1P_PLUGIN_RANKING_CONTROL":
|
|
4371
4376
|
case 10:
|
|
4372
4377
|
message.capabilities[i] = 10;
|
|
@@ -4440,6 +4445,7 @@ $root.waproto = (function() {
|
|
|
4440
4445
|
* @property {number} PROGRESS_INDICATOR=1 PROGRESS_INDICATOR value
|
|
4441
4446
|
* @property {number} RICH_RESPONSE_HEADING=2 RICH_RESPONSE_HEADING value
|
|
4442
4447
|
* @property {number} RICH_RESPONSE_NESTED_LIST=3 RICH_RESPONSE_NESTED_LIST value
|
|
4448
|
+
* @property {number} AI_MEMORY=4 AI_MEMORY value
|
|
4443
4449
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_CONTROL=10 WA_IG_1P_PLUGIN_RANKING_CONTROL value
|
|
4444
4450
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11 WA_IG_1P_PLUGIN_RANKING_UPDATE_1 value
|
|
4445
4451
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12 WA_IG_1P_PLUGIN_RANKING_UPDATE_2 value
|
|
@@ -4449,6 +4455,7 @@ $root.waproto = (function() {
|
|
|
4449
4455
|
values[valuesById[1] = "PROGRESS_INDICATOR"] = 1;
|
|
4450
4456
|
values[valuesById[2] = "RICH_RESPONSE_HEADING"] = 2;
|
|
4451
4457
|
values[valuesById[3] = "RICH_RESPONSE_NESTED_LIST"] = 3;
|
|
4458
|
+
values[valuesById[4] = "AI_MEMORY"] = 4;
|
|
4452
4459
|
values[valuesById[10] = "WA_IG_1P_PLUGIN_RANKING_CONTROL"] = 10;
|
|
4453
4460
|
values[valuesById[11] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_1"] = 11;
|
|
4454
4461
|
values[valuesById[12] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_2"] = 12;
|
|
@@ -7047,6 +7054,7 @@ $root.waproto = (function() {
|
|
|
7047
7054
|
* @property {waproto.IMessageKey|null} [parentPluginMessageKey] BotPluginMetadata parentPluginMessageKey
|
|
7048
7055
|
* @property {waproto.BotPluginMetadata.PluginType|null} [deprecatedField] BotPluginMetadata deprecatedField
|
|
7049
7056
|
* @property {waproto.BotPluginMetadata.PluginType|null} [parentPluginType] BotPluginMetadata parentPluginType
|
|
7057
|
+
* @property {string|null} [faviconCdnUrl] BotPluginMetadata faviconCdnUrl
|
|
7050
7058
|
*/
|
|
7051
7059
|
|
|
7052
7060
|
/**
|
|
@@ -7152,6 +7160,14 @@ $root.waproto = (function() {
|
|
|
7152
7160
|
*/
|
|
7153
7161
|
BotPluginMetadata.prototype.parentPluginType = null;
|
|
7154
7162
|
|
|
7163
|
+
/**
|
|
7164
|
+
* BotPluginMetadata faviconCdnUrl.
|
|
7165
|
+
* @member {string|null|undefined} faviconCdnUrl
|
|
7166
|
+
* @memberof waproto.BotPluginMetadata
|
|
7167
|
+
* @instance
|
|
7168
|
+
*/
|
|
7169
|
+
BotPluginMetadata.prototype.faviconCdnUrl = null;
|
|
7170
|
+
|
|
7155
7171
|
// OneOf field names bound to virtual getters and setters
|
|
7156
7172
|
var $oneOfFields;
|
|
7157
7173
|
|
|
@@ -7221,6 +7237,12 @@ $root.waproto = (function() {
|
|
|
7221
7237
|
set: $util.oneOfSetter($oneOfFields)
|
|
7222
7238
|
});
|
|
7223
7239
|
|
|
7240
|
+
// Virtual OneOf for proto3 optional field
|
|
7241
|
+
Object.defineProperty(BotPluginMetadata.prototype, "_faviconCdnUrl", {
|
|
7242
|
+
get: $util.oneOfGetter($oneOfFields = ["faviconCdnUrl"]),
|
|
7243
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7244
|
+
});
|
|
7245
|
+
|
|
7224
7246
|
/**
|
|
7225
7247
|
* Creates a new BotPluginMetadata instance using the specified properties.
|
|
7226
7248
|
* @function create
|
|
@@ -7267,6 +7289,8 @@ $root.waproto = (function() {
|
|
|
7267
7289
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.deprecatedField);
|
|
7268
7290
|
if (message.parentPluginType != null && Object.hasOwnProperty.call(message, "parentPluginType"))
|
|
7269
7291
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.parentPluginType);
|
|
7292
|
+
if (message.faviconCdnUrl != null && Object.hasOwnProperty.call(message, "faviconCdnUrl"))
|
|
7293
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.faviconCdnUrl);
|
|
7270
7294
|
return writer;
|
|
7271
7295
|
};
|
|
7272
7296
|
|
|
@@ -7345,6 +7369,10 @@ $root.waproto = (function() {
|
|
|
7345
7369
|
message.parentPluginType = reader.int32();
|
|
7346
7370
|
break;
|
|
7347
7371
|
}
|
|
7372
|
+
case 13: {
|
|
7373
|
+
message.faviconCdnUrl = reader.string();
|
|
7374
|
+
break;
|
|
7375
|
+
}
|
|
7348
7376
|
default:
|
|
7349
7377
|
reader.skipType(tag & 7);
|
|
7350
7378
|
break;
|
|
@@ -7460,6 +7488,11 @@ $root.waproto = (function() {
|
|
|
7460
7488
|
break;
|
|
7461
7489
|
}
|
|
7462
7490
|
}
|
|
7491
|
+
if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
|
|
7492
|
+
properties._faviconCdnUrl = 1;
|
|
7493
|
+
if (!$util.isString(message.faviconCdnUrl))
|
|
7494
|
+
return "faviconCdnUrl: string expected";
|
|
7495
|
+
}
|
|
7463
7496
|
return null;
|
|
7464
7497
|
};
|
|
7465
7498
|
|
|
@@ -7560,6 +7593,8 @@ $root.waproto = (function() {
|
|
|
7560
7593
|
message.parentPluginType = 2;
|
|
7561
7594
|
break;
|
|
7562
7595
|
}
|
|
7596
|
+
if (object.faviconCdnUrl != null)
|
|
7597
|
+
message.faviconCdnUrl = String(object.faviconCdnUrl);
|
|
7563
7598
|
return message;
|
|
7564
7599
|
};
|
|
7565
7600
|
|
|
@@ -7631,6 +7666,11 @@ $root.waproto = (function() {
|
|
|
7631
7666
|
if (options.oneofs)
|
|
7632
7667
|
object._parentPluginType = "parentPluginType";
|
|
7633
7668
|
}
|
|
7669
|
+
if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
|
|
7670
|
+
object.faviconCdnUrl = message.faviconCdnUrl;
|
|
7671
|
+
if (options.oneofs)
|
|
7672
|
+
object._faviconCdnUrl = "faviconCdnUrl";
|
|
7673
|
+
}
|
|
7634
7674
|
return object;
|
|
7635
7675
|
};
|
|
7636
7676
|
|
|
@@ -7909,6 +7949,479 @@ $root.waproto = (function() {
|
|
|
7909
7949
|
return BotProgressIndicatorMetadata;
|
|
7910
7950
|
})();
|
|
7911
7951
|
|
|
7952
|
+
waproto.BotPromptSuggestion = (function() {
|
|
7953
|
+
|
|
7954
|
+
/**
|
|
7955
|
+
* Properties of a BotPromptSuggestion.
|
|
7956
|
+
* @memberof waproto
|
|
7957
|
+
* @interface IBotPromptSuggestion
|
|
7958
|
+
* @property {string|null} [prompt] BotPromptSuggestion prompt
|
|
7959
|
+
* @property {string|null} [promptId] BotPromptSuggestion promptId
|
|
7960
|
+
*/
|
|
7961
|
+
|
|
7962
|
+
/**
|
|
7963
|
+
* Constructs a new BotPromptSuggestion.
|
|
7964
|
+
* @memberof waproto
|
|
7965
|
+
* @classdesc Represents a BotPromptSuggestion.
|
|
7966
|
+
* @implements IBotPromptSuggestion
|
|
7967
|
+
* @constructor
|
|
7968
|
+
* @param {waproto.IBotPromptSuggestion=} [properties] Properties to set
|
|
7969
|
+
*/
|
|
7970
|
+
function BotPromptSuggestion(properties) {
|
|
7971
|
+
if (properties)
|
|
7972
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7973
|
+
if (properties[keys[i]] != null)
|
|
7974
|
+
this[keys[i]] = properties[keys[i]];
|
|
7975
|
+
}
|
|
7976
|
+
|
|
7977
|
+
/**
|
|
7978
|
+
* BotPromptSuggestion prompt.
|
|
7979
|
+
* @member {string|null|undefined} prompt
|
|
7980
|
+
* @memberof waproto.BotPromptSuggestion
|
|
7981
|
+
* @instance
|
|
7982
|
+
*/
|
|
7983
|
+
BotPromptSuggestion.prototype.prompt = null;
|
|
7984
|
+
|
|
7985
|
+
/**
|
|
7986
|
+
* BotPromptSuggestion promptId.
|
|
7987
|
+
* @member {string|null|undefined} promptId
|
|
7988
|
+
* @memberof waproto.BotPromptSuggestion
|
|
7989
|
+
* @instance
|
|
7990
|
+
*/
|
|
7991
|
+
BotPromptSuggestion.prototype.promptId = null;
|
|
7992
|
+
|
|
7993
|
+
// OneOf field names bound to virtual getters and setters
|
|
7994
|
+
var $oneOfFields;
|
|
7995
|
+
|
|
7996
|
+
// Virtual OneOf for proto3 optional field
|
|
7997
|
+
Object.defineProperty(BotPromptSuggestion.prototype, "_prompt", {
|
|
7998
|
+
get: $util.oneOfGetter($oneOfFields = ["prompt"]),
|
|
7999
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
8000
|
+
});
|
|
8001
|
+
|
|
8002
|
+
// Virtual OneOf for proto3 optional field
|
|
8003
|
+
Object.defineProperty(BotPromptSuggestion.prototype, "_promptId", {
|
|
8004
|
+
get: $util.oneOfGetter($oneOfFields = ["promptId"]),
|
|
8005
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
8006
|
+
});
|
|
8007
|
+
|
|
8008
|
+
/**
|
|
8009
|
+
* Creates a new BotPromptSuggestion instance using the specified properties.
|
|
8010
|
+
* @function create
|
|
8011
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8012
|
+
* @static
|
|
8013
|
+
* @param {waproto.IBotPromptSuggestion=} [properties] Properties to set
|
|
8014
|
+
* @returns {waproto.BotPromptSuggestion} BotPromptSuggestion instance
|
|
8015
|
+
*/
|
|
8016
|
+
BotPromptSuggestion.create = function create(properties) {
|
|
8017
|
+
return new BotPromptSuggestion(properties);
|
|
8018
|
+
};
|
|
8019
|
+
|
|
8020
|
+
/**
|
|
8021
|
+
* Encodes the specified BotPromptSuggestion message. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
|
|
8022
|
+
* @function encode
|
|
8023
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8024
|
+
* @static
|
|
8025
|
+
* @param {waproto.IBotPromptSuggestion} message BotPromptSuggestion message or plain object to encode
|
|
8026
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8027
|
+
* @returns {$protobuf.Writer} Writer
|
|
8028
|
+
*/
|
|
8029
|
+
BotPromptSuggestion.encode = function encode(message, writer) {
|
|
8030
|
+
if (!writer)
|
|
8031
|
+
writer = $Writer.create();
|
|
8032
|
+
if (message.prompt != null && Object.hasOwnProperty.call(message, "prompt"))
|
|
8033
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.prompt);
|
|
8034
|
+
if (message.promptId != null && Object.hasOwnProperty.call(message, "promptId"))
|
|
8035
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.promptId);
|
|
8036
|
+
return writer;
|
|
8037
|
+
};
|
|
8038
|
+
|
|
8039
|
+
/**
|
|
8040
|
+
* Encodes the specified BotPromptSuggestion message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
|
|
8041
|
+
* @function encodeDelimited
|
|
8042
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8043
|
+
* @static
|
|
8044
|
+
* @param {waproto.IBotPromptSuggestion} message BotPromptSuggestion message or plain object to encode
|
|
8045
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8046
|
+
* @returns {$protobuf.Writer} Writer
|
|
8047
|
+
*/
|
|
8048
|
+
BotPromptSuggestion.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8049
|
+
return this.encode(message, writer).ldelim();
|
|
8050
|
+
};
|
|
8051
|
+
|
|
8052
|
+
/**
|
|
8053
|
+
* Decodes a BotPromptSuggestion message from the specified reader or buffer.
|
|
8054
|
+
* @function decode
|
|
8055
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8056
|
+
* @static
|
|
8057
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8058
|
+
* @param {number} [length] Message length if known beforehand
|
|
8059
|
+
* @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
|
|
8060
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8061
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8062
|
+
*/
|
|
8063
|
+
BotPromptSuggestion.decode = function decode(reader, length) {
|
|
8064
|
+
if (!(reader instanceof $Reader))
|
|
8065
|
+
reader = $Reader.create(reader);
|
|
8066
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotPromptSuggestion();
|
|
8067
|
+
while (reader.pos < end) {
|
|
8068
|
+
var tag = reader.uint32();
|
|
8069
|
+
switch (tag >>> 3) {
|
|
8070
|
+
case 1: {
|
|
8071
|
+
message.prompt = reader.string();
|
|
8072
|
+
break;
|
|
8073
|
+
}
|
|
8074
|
+
case 2: {
|
|
8075
|
+
message.promptId = reader.string();
|
|
8076
|
+
break;
|
|
8077
|
+
}
|
|
8078
|
+
default:
|
|
8079
|
+
reader.skipType(tag & 7);
|
|
8080
|
+
break;
|
|
8081
|
+
}
|
|
8082
|
+
}
|
|
8083
|
+
return message;
|
|
8084
|
+
};
|
|
8085
|
+
|
|
8086
|
+
/**
|
|
8087
|
+
* Decodes a BotPromptSuggestion message from the specified reader or buffer, length delimited.
|
|
8088
|
+
* @function decodeDelimited
|
|
8089
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8090
|
+
* @static
|
|
8091
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8092
|
+
* @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
|
|
8093
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8094
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8095
|
+
*/
|
|
8096
|
+
BotPromptSuggestion.decodeDelimited = function decodeDelimited(reader) {
|
|
8097
|
+
if (!(reader instanceof $Reader))
|
|
8098
|
+
reader = new $Reader(reader);
|
|
8099
|
+
return this.decode(reader, reader.uint32());
|
|
8100
|
+
};
|
|
8101
|
+
|
|
8102
|
+
/**
|
|
8103
|
+
* Verifies a BotPromptSuggestion message.
|
|
8104
|
+
* @function verify
|
|
8105
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8106
|
+
* @static
|
|
8107
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8108
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8109
|
+
*/
|
|
8110
|
+
BotPromptSuggestion.verify = function verify(message) {
|
|
8111
|
+
if (typeof message !== "object" || message === null)
|
|
8112
|
+
return "object expected";
|
|
8113
|
+
var properties = {};
|
|
8114
|
+
if (message.prompt != null && message.hasOwnProperty("prompt")) {
|
|
8115
|
+
properties._prompt = 1;
|
|
8116
|
+
if (!$util.isString(message.prompt))
|
|
8117
|
+
return "prompt: string expected";
|
|
8118
|
+
}
|
|
8119
|
+
if (message.promptId != null && message.hasOwnProperty("promptId")) {
|
|
8120
|
+
properties._promptId = 1;
|
|
8121
|
+
if (!$util.isString(message.promptId))
|
|
8122
|
+
return "promptId: string expected";
|
|
8123
|
+
}
|
|
8124
|
+
return null;
|
|
8125
|
+
};
|
|
8126
|
+
|
|
8127
|
+
/**
|
|
8128
|
+
* Creates a BotPromptSuggestion message from a plain object. Also converts values to their respective internal types.
|
|
8129
|
+
* @function fromObject
|
|
8130
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8131
|
+
* @static
|
|
8132
|
+
* @param {Object.<string,*>} object Plain object
|
|
8133
|
+
* @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
|
|
8134
|
+
*/
|
|
8135
|
+
BotPromptSuggestion.fromObject = function fromObject(object) {
|
|
8136
|
+
if (object instanceof $root.waproto.BotPromptSuggestion)
|
|
8137
|
+
return object;
|
|
8138
|
+
var message = new $root.waproto.BotPromptSuggestion();
|
|
8139
|
+
if (object.prompt != null)
|
|
8140
|
+
message.prompt = String(object.prompt);
|
|
8141
|
+
if (object.promptId != null)
|
|
8142
|
+
message.promptId = String(object.promptId);
|
|
8143
|
+
return message;
|
|
8144
|
+
};
|
|
8145
|
+
|
|
8146
|
+
/**
|
|
8147
|
+
* Creates a plain object from a BotPromptSuggestion message. Also converts values to other types if specified.
|
|
8148
|
+
* @function toObject
|
|
8149
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8150
|
+
* @static
|
|
8151
|
+
* @param {waproto.BotPromptSuggestion} message BotPromptSuggestion
|
|
8152
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8153
|
+
* @returns {Object.<string,*>} Plain object
|
|
8154
|
+
*/
|
|
8155
|
+
BotPromptSuggestion.toObject = function toObject(message, options) {
|
|
8156
|
+
if (!options)
|
|
8157
|
+
options = {};
|
|
8158
|
+
var object = {};
|
|
8159
|
+
if (message.prompt != null && message.hasOwnProperty("prompt")) {
|
|
8160
|
+
object.prompt = message.prompt;
|
|
8161
|
+
if (options.oneofs)
|
|
8162
|
+
object._prompt = "prompt";
|
|
8163
|
+
}
|
|
8164
|
+
if (message.promptId != null && message.hasOwnProperty("promptId")) {
|
|
8165
|
+
object.promptId = message.promptId;
|
|
8166
|
+
if (options.oneofs)
|
|
8167
|
+
object._promptId = "promptId";
|
|
8168
|
+
}
|
|
8169
|
+
return object;
|
|
8170
|
+
};
|
|
8171
|
+
|
|
8172
|
+
/**
|
|
8173
|
+
* Converts this BotPromptSuggestion to JSON.
|
|
8174
|
+
* @function toJSON
|
|
8175
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8176
|
+
* @instance
|
|
8177
|
+
* @returns {Object.<string,*>} JSON object
|
|
8178
|
+
*/
|
|
8179
|
+
BotPromptSuggestion.prototype.toJSON = function toJSON() {
|
|
8180
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8181
|
+
};
|
|
8182
|
+
|
|
8183
|
+
/**
|
|
8184
|
+
* Gets the default type url for BotPromptSuggestion
|
|
8185
|
+
* @function getTypeUrl
|
|
8186
|
+
* @memberof waproto.BotPromptSuggestion
|
|
8187
|
+
* @static
|
|
8188
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8189
|
+
* @returns {string} The default type url
|
|
8190
|
+
*/
|
|
8191
|
+
BotPromptSuggestion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8192
|
+
if (typeUrlPrefix === undefined) {
|
|
8193
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8194
|
+
}
|
|
8195
|
+
return typeUrlPrefix + "/waproto.BotPromptSuggestion";
|
|
8196
|
+
};
|
|
8197
|
+
|
|
8198
|
+
return BotPromptSuggestion;
|
|
8199
|
+
})();
|
|
8200
|
+
|
|
8201
|
+
waproto.BotPromptSuggestions = (function() {
|
|
8202
|
+
|
|
8203
|
+
/**
|
|
8204
|
+
* Properties of a BotPromptSuggestions.
|
|
8205
|
+
* @memberof waproto
|
|
8206
|
+
* @interface IBotPromptSuggestions
|
|
8207
|
+
* @property {Array.<waproto.IBotPromptSuggestion>|null} [suggestions] BotPromptSuggestions suggestions
|
|
8208
|
+
*/
|
|
8209
|
+
|
|
8210
|
+
/**
|
|
8211
|
+
* Constructs a new BotPromptSuggestions.
|
|
8212
|
+
* @memberof waproto
|
|
8213
|
+
* @classdesc Represents a BotPromptSuggestions.
|
|
8214
|
+
* @implements IBotPromptSuggestions
|
|
8215
|
+
* @constructor
|
|
8216
|
+
* @param {waproto.IBotPromptSuggestions=} [properties] Properties to set
|
|
8217
|
+
*/
|
|
8218
|
+
function BotPromptSuggestions(properties) {
|
|
8219
|
+
this.suggestions = [];
|
|
8220
|
+
if (properties)
|
|
8221
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8222
|
+
if (properties[keys[i]] != null)
|
|
8223
|
+
this[keys[i]] = properties[keys[i]];
|
|
8224
|
+
}
|
|
8225
|
+
|
|
8226
|
+
/**
|
|
8227
|
+
* BotPromptSuggestions suggestions.
|
|
8228
|
+
* @member {Array.<waproto.IBotPromptSuggestion>} suggestions
|
|
8229
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8230
|
+
* @instance
|
|
8231
|
+
*/
|
|
8232
|
+
BotPromptSuggestions.prototype.suggestions = $util.emptyArray;
|
|
8233
|
+
|
|
8234
|
+
/**
|
|
8235
|
+
* Creates a new BotPromptSuggestions instance using the specified properties.
|
|
8236
|
+
* @function create
|
|
8237
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8238
|
+
* @static
|
|
8239
|
+
* @param {waproto.IBotPromptSuggestions=} [properties] Properties to set
|
|
8240
|
+
* @returns {waproto.BotPromptSuggestions} BotPromptSuggestions instance
|
|
8241
|
+
*/
|
|
8242
|
+
BotPromptSuggestions.create = function create(properties) {
|
|
8243
|
+
return new BotPromptSuggestions(properties);
|
|
8244
|
+
};
|
|
8245
|
+
|
|
8246
|
+
/**
|
|
8247
|
+
* Encodes the specified BotPromptSuggestions message. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
|
|
8248
|
+
* @function encode
|
|
8249
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8250
|
+
* @static
|
|
8251
|
+
* @param {waproto.IBotPromptSuggestions} message BotPromptSuggestions message or plain object to encode
|
|
8252
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8253
|
+
* @returns {$protobuf.Writer} Writer
|
|
8254
|
+
*/
|
|
8255
|
+
BotPromptSuggestions.encode = function encode(message, writer) {
|
|
8256
|
+
if (!writer)
|
|
8257
|
+
writer = $Writer.create();
|
|
8258
|
+
if (message.suggestions != null && message.suggestions.length)
|
|
8259
|
+
for (var i = 0; i < message.suggestions.length; ++i)
|
|
8260
|
+
$root.waproto.BotPromptSuggestion.encode(message.suggestions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8261
|
+
return writer;
|
|
8262
|
+
};
|
|
8263
|
+
|
|
8264
|
+
/**
|
|
8265
|
+
* Encodes the specified BotPromptSuggestions message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
|
|
8266
|
+
* @function encodeDelimited
|
|
8267
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8268
|
+
* @static
|
|
8269
|
+
* @param {waproto.IBotPromptSuggestions} message BotPromptSuggestions message or plain object to encode
|
|
8270
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8271
|
+
* @returns {$protobuf.Writer} Writer
|
|
8272
|
+
*/
|
|
8273
|
+
BotPromptSuggestions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8274
|
+
return this.encode(message, writer).ldelim();
|
|
8275
|
+
};
|
|
8276
|
+
|
|
8277
|
+
/**
|
|
8278
|
+
* Decodes a BotPromptSuggestions message from the specified reader or buffer.
|
|
8279
|
+
* @function decode
|
|
8280
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8281
|
+
* @static
|
|
8282
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8283
|
+
* @param {number} [length] Message length if known beforehand
|
|
8284
|
+
* @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
|
|
8285
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8286
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8287
|
+
*/
|
|
8288
|
+
BotPromptSuggestions.decode = function decode(reader, length) {
|
|
8289
|
+
if (!(reader instanceof $Reader))
|
|
8290
|
+
reader = $Reader.create(reader);
|
|
8291
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotPromptSuggestions();
|
|
8292
|
+
while (reader.pos < end) {
|
|
8293
|
+
var tag = reader.uint32();
|
|
8294
|
+
switch (tag >>> 3) {
|
|
8295
|
+
case 1: {
|
|
8296
|
+
if (!(message.suggestions && message.suggestions.length))
|
|
8297
|
+
message.suggestions = [];
|
|
8298
|
+
message.suggestions.push($root.waproto.BotPromptSuggestion.decode(reader, reader.uint32()));
|
|
8299
|
+
break;
|
|
8300
|
+
}
|
|
8301
|
+
default:
|
|
8302
|
+
reader.skipType(tag & 7);
|
|
8303
|
+
break;
|
|
8304
|
+
}
|
|
8305
|
+
}
|
|
8306
|
+
return message;
|
|
8307
|
+
};
|
|
8308
|
+
|
|
8309
|
+
/**
|
|
8310
|
+
* Decodes a BotPromptSuggestions message from the specified reader or buffer, length delimited.
|
|
8311
|
+
* @function decodeDelimited
|
|
8312
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8313
|
+
* @static
|
|
8314
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8315
|
+
* @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
|
|
8316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8318
|
+
*/
|
|
8319
|
+
BotPromptSuggestions.decodeDelimited = function decodeDelimited(reader) {
|
|
8320
|
+
if (!(reader instanceof $Reader))
|
|
8321
|
+
reader = new $Reader(reader);
|
|
8322
|
+
return this.decode(reader, reader.uint32());
|
|
8323
|
+
};
|
|
8324
|
+
|
|
8325
|
+
/**
|
|
8326
|
+
* Verifies a BotPromptSuggestions message.
|
|
8327
|
+
* @function verify
|
|
8328
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8329
|
+
* @static
|
|
8330
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8331
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8332
|
+
*/
|
|
8333
|
+
BotPromptSuggestions.verify = function verify(message) {
|
|
8334
|
+
if (typeof message !== "object" || message === null)
|
|
8335
|
+
return "object expected";
|
|
8336
|
+
if (message.suggestions != null && message.hasOwnProperty("suggestions")) {
|
|
8337
|
+
if (!Array.isArray(message.suggestions))
|
|
8338
|
+
return "suggestions: array expected";
|
|
8339
|
+
for (var i = 0; i < message.suggestions.length; ++i) {
|
|
8340
|
+
var error = $root.waproto.BotPromptSuggestion.verify(message.suggestions[i]);
|
|
8341
|
+
if (error)
|
|
8342
|
+
return "suggestions." + error;
|
|
8343
|
+
}
|
|
8344
|
+
}
|
|
8345
|
+
return null;
|
|
8346
|
+
};
|
|
8347
|
+
|
|
8348
|
+
/**
|
|
8349
|
+
* Creates a BotPromptSuggestions message from a plain object. Also converts values to their respective internal types.
|
|
8350
|
+
* @function fromObject
|
|
8351
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8352
|
+
* @static
|
|
8353
|
+
* @param {Object.<string,*>} object Plain object
|
|
8354
|
+
* @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
|
|
8355
|
+
*/
|
|
8356
|
+
BotPromptSuggestions.fromObject = function fromObject(object) {
|
|
8357
|
+
if (object instanceof $root.waproto.BotPromptSuggestions)
|
|
8358
|
+
return object;
|
|
8359
|
+
var message = new $root.waproto.BotPromptSuggestions();
|
|
8360
|
+
if (object.suggestions) {
|
|
8361
|
+
if (!Array.isArray(object.suggestions))
|
|
8362
|
+
throw TypeError(".waproto.BotPromptSuggestions.suggestions: array expected");
|
|
8363
|
+
message.suggestions = [];
|
|
8364
|
+
for (var i = 0; i < object.suggestions.length; ++i) {
|
|
8365
|
+
if (typeof object.suggestions[i] !== "object")
|
|
8366
|
+
throw TypeError(".waproto.BotPromptSuggestions.suggestions: object expected");
|
|
8367
|
+
message.suggestions[i] = $root.waproto.BotPromptSuggestion.fromObject(object.suggestions[i]);
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
return message;
|
|
8371
|
+
};
|
|
8372
|
+
|
|
8373
|
+
/**
|
|
8374
|
+
* Creates a plain object from a BotPromptSuggestions message. Also converts values to other types if specified.
|
|
8375
|
+
* @function toObject
|
|
8376
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8377
|
+
* @static
|
|
8378
|
+
* @param {waproto.BotPromptSuggestions} message BotPromptSuggestions
|
|
8379
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8380
|
+
* @returns {Object.<string,*>} Plain object
|
|
8381
|
+
*/
|
|
8382
|
+
BotPromptSuggestions.toObject = function toObject(message, options) {
|
|
8383
|
+
if (!options)
|
|
8384
|
+
options = {};
|
|
8385
|
+
var object = {};
|
|
8386
|
+
if (options.arrays || options.defaults)
|
|
8387
|
+
object.suggestions = [];
|
|
8388
|
+
if (message.suggestions && message.suggestions.length) {
|
|
8389
|
+
object.suggestions = [];
|
|
8390
|
+
for (var j = 0; j < message.suggestions.length; ++j)
|
|
8391
|
+
object.suggestions[j] = $root.waproto.BotPromptSuggestion.toObject(message.suggestions[j], options);
|
|
8392
|
+
}
|
|
8393
|
+
return object;
|
|
8394
|
+
};
|
|
8395
|
+
|
|
8396
|
+
/**
|
|
8397
|
+
* Converts this BotPromptSuggestions to JSON.
|
|
8398
|
+
* @function toJSON
|
|
8399
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8400
|
+
* @instance
|
|
8401
|
+
* @returns {Object.<string,*>} JSON object
|
|
8402
|
+
*/
|
|
8403
|
+
BotPromptSuggestions.prototype.toJSON = function toJSON() {
|
|
8404
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8405
|
+
};
|
|
8406
|
+
|
|
8407
|
+
/**
|
|
8408
|
+
* Gets the default type url for BotPromptSuggestions
|
|
8409
|
+
* @function getTypeUrl
|
|
8410
|
+
* @memberof waproto.BotPromptSuggestions
|
|
8411
|
+
* @static
|
|
8412
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8413
|
+
* @returns {string} The default type url
|
|
8414
|
+
*/
|
|
8415
|
+
BotPromptSuggestions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
8416
|
+
if (typeUrlPrefix === undefined) {
|
|
8417
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
8418
|
+
}
|
|
8419
|
+
return typeUrlPrefix + "/waproto.BotPromptSuggestions";
|
|
8420
|
+
};
|
|
8421
|
+
|
|
8422
|
+
return BotPromptSuggestions;
|
|
8423
|
+
})();
|
|
8424
|
+
|
|
7912
8425
|
waproto.BotReminderMetadata = (function() {
|
|
7913
8426
|
|
|
7914
8427
|
/**
|
|
@@ -8692,6 +9205,8 @@ $root.waproto = (function() {
|
|
|
8692
9205
|
* @interface IBotSuggestedPromptMetadata
|
|
8693
9206
|
* @property {Array.<string>|null} [suggestedPrompts] BotSuggestedPromptMetadata suggestedPrompts
|
|
8694
9207
|
* @property {number|null} [selectedPromptIndex] BotSuggestedPromptMetadata selectedPromptIndex
|
|
9208
|
+
* @property {waproto.IBotPromptSuggestions|null} [promptSuggestions] BotSuggestedPromptMetadata promptSuggestions
|
|
9209
|
+
* @property {string|null} [selectedPromptId] BotSuggestedPromptMetadata selectedPromptId
|
|
8695
9210
|
*/
|
|
8696
9211
|
|
|
8697
9212
|
/**
|
|
@@ -8726,6 +9241,22 @@ $root.waproto = (function() {
|
|
|
8726
9241
|
*/
|
|
8727
9242
|
BotSuggestedPromptMetadata.prototype.selectedPromptIndex = null;
|
|
8728
9243
|
|
|
9244
|
+
/**
|
|
9245
|
+
* BotSuggestedPromptMetadata promptSuggestions.
|
|
9246
|
+
* @member {waproto.IBotPromptSuggestions|null|undefined} promptSuggestions
|
|
9247
|
+
* @memberof waproto.BotSuggestedPromptMetadata
|
|
9248
|
+
* @instance
|
|
9249
|
+
*/
|
|
9250
|
+
BotSuggestedPromptMetadata.prototype.promptSuggestions = null;
|
|
9251
|
+
|
|
9252
|
+
/**
|
|
9253
|
+
* BotSuggestedPromptMetadata selectedPromptId.
|
|
9254
|
+
* @member {string|null|undefined} selectedPromptId
|
|
9255
|
+
* @memberof waproto.BotSuggestedPromptMetadata
|
|
9256
|
+
* @instance
|
|
9257
|
+
*/
|
|
9258
|
+
BotSuggestedPromptMetadata.prototype.selectedPromptId = null;
|
|
9259
|
+
|
|
8729
9260
|
// OneOf field names bound to virtual getters and setters
|
|
8730
9261
|
var $oneOfFields;
|
|
8731
9262
|
|
|
@@ -8735,6 +9266,18 @@ $root.waproto = (function() {
|
|
|
8735
9266
|
set: $util.oneOfSetter($oneOfFields)
|
|
8736
9267
|
});
|
|
8737
9268
|
|
|
9269
|
+
// Virtual OneOf for proto3 optional field
|
|
9270
|
+
Object.defineProperty(BotSuggestedPromptMetadata.prototype, "_promptSuggestions", {
|
|
9271
|
+
get: $util.oneOfGetter($oneOfFields = ["promptSuggestions"]),
|
|
9272
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
9273
|
+
});
|
|
9274
|
+
|
|
9275
|
+
// Virtual OneOf for proto3 optional field
|
|
9276
|
+
Object.defineProperty(BotSuggestedPromptMetadata.prototype, "_selectedPromptId", {
|
|
9277
|
+
get: $util.oneOfGetter($oneOfFields = ["selectedPromptId"]),
|
|
9278
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
9279
|
+
});
|
|
9280
|
+
|
|
8738
9281
|
/**
|
|
8739
9282
|
* Creates a new BotSuggestedPromptMetadata instance using the specified properties.
|
|
8740
9283
|
* @function create
|
|
@@ -8764,6 +9307,10 @@ $root.waproto = (function() {
|
|
|
8764
9307
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.suggestedPrompts[i]);
|
|
8765
9308
|
if (message.selectedPromptIndex != null && Object.hasOwnProperty.call(message, "selectedPromptIndex"))
|
|
8766
9309
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.selectedPromptIndex);
|
|
9310
|
+
if (message.promptSuggestions != null && Object.hasOwnProperty.call(message, "promptSuggestions"))
|
|
9311
|
+
$root.waproto.BotPromptSuggestions.encode(message.promptSuggestions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
9312
|
+
if (message.selectedPromptId != null && Object.hasOwnProperty.call(message, "selectedPromptId"))
|
|
9313
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.selectedPromptId);
|
|
8767
9314
|
return writer;
|
|
8768
9315
|
};
|
|
8769
9316
|
|
|
@@ -8808,6 +9355,14 @@ $root.waproto = (function() {
|
|
|
8808
9355
|
message.selectedPromptIndex = reader.uint32();
|
|
8809
9356
|
break;
|
|
8810
9357
|
}
|
|
9358
|
+
case 3: {
|
|
9359
|
+
message.promptSuggestions = $root.waproto.BotPromptSuggestions.decode(reader, reader.uint32());
|
|
9360
|
+
break;
|
|
9361
|
+
}
|
|
9362
|
+
case 4: {
|
|
9363
|
+
message.selectedPromptId = reader.string();
|
|
9364
|
+
break;
|
|
9365
|
+
}
|
|
8811
9366
|
default:
|
|
8812
9367
|
reader.skipType(tag & 7);
|
|
8813
9368
|
break;
|
|
@@ -8856,6 +9411,19 @@ $root.waproto = (function() {
|
|
|
8856
9411
|
if (!$util.isInteger(message.selectedPromptIndex))
|
|
8857
9412
|
return "selectedPromptIndex: integer expected";
|
|
8858
9413
|
}
|
|
9414
|
+
if (message.promptSuggestions != null && message.hasOwnProperty("promptSuggestions")) {
|
|
9415
|
+
properties._promptSuggestions = 1;
|
|
9416
|
+
{
|
|
9417
|
+
var error = $root.waproto.BotPromptSuggestions.verify(message.promptSuggestions);
|
|
9418
|
+
if (error)
|
|
9419
|
+
return "promptSuggestions." + error;
|
|
9420
|
+
}
|
|
9421
|
+
}
|
|
9422
|
+
if (message.selectedPromptId != null && message.hasOwnProperty("selectedPromptId")) {
|
|
9423
|
+
properties._selectedPromptId = 1;
|
|
9424
|
+
if (!$util.isString(message.selectedPromptId))
|
|
9425
|
+
return "selectedPromptId: string expected";
|
|
9426
|
+
}
|
|
8859
9427
|
return null;
|
|
8860
9428
|
};
|
|
8861
9429
|
|
|
@@ -8880,6 +9448,13 @@ $root.waproto = (function() {
|
|
|
8880
9448
|
}
|
|
8881
9449
|
if (object.selectedPromptIndex != null)
|
|
8882
9450
|
message.selectedPromptIndex = object.selectedPromptIndex >>> 0;
|
|
9451
|
+
if (object.promptSuggestions != null) {
|
|
9452
|
+
if (typeof object.promptSuggestions !== "object")
|
|
9453
|
+
throw TypeError(".waproto.BotSuggestedPromptMetadata.promptSuggestions: object expected");
|
|
9454
|
+
message.promptSuggestions = $root.waproto.BotPromptSuggestions.fromObject(object.promptSuggestions);
|
|
9455
|
+
}
|
|
9456
|
+
if (object.selectedPromptId != null)
|
|
9457
|
+
message.selectedPromptId = String(object.selectedPromptId);
|
|
8883
9458
|
return message;
|
|
8884
9459
|
};
|
|
8885
9460
|
|
|
@@ -8908,6 +9483,16 @@ $root.waproto = (function() {
|
|
|
8908
9483
|
if (options.oneofs)
|
|
8909
9484
|
object._selectedPromptIndex = "selectedPromptIndex";
|
|
8910
9485
|
}
|
|
9486
|
+
if (message.promptSuggestions != null && message.hasOwnProperty("promptSuggestions")) {
|
|
9487
|
+
object.promptSuggestions = $root.waproto.BotPromptSuggestions.toObject(message.promptSuggestions, options);
|
|
9488
|
+
if (options.oneofs)
|
|
9489
|
+
object._promptSuggestions = "promptSuggestions";
|
|
9490
|
+
}
|
|
9491
|
+
if (message.selectedPromptId != null && message.hasOwnProperty("selectedPromptId")) {
|
|
9492
|
+
object.selectedPromptId = message.selectedPromptId;
|
|
9493
|
+
if (options.oneofs)
|
|
9494
|
+
object._selectedPromptId = "selectedPromptId";
|
|
9495
|
+
}
|
|
8911
9496
|
return object;
|
|
8912
9497
|
};
|
|
8913
9498
|
|
|
@@ -40738,6 +41323,7 @@ $root.waproto = (function() {
|
|
|
40738
41323
|
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
|
|
40739
41324
|
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationOptionImageMessage] Message pollCreationOptionImageMessage
|
|
40740
41325
|
* @property {waproto.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
|
|
41326
|
+
* @property {waproto.Message.IFutureProofMessage|null} [groupStatusMentionMessage] Message groupStatusMentionMessage
|
|
40741
41327
|
*/
|
|
40742
41328
|
|
|
40743
41329
|
/**
|
|
@@ -41363,6 +41949,14 @@ $root.waproto = (function() {
|
|
|
41363
41949
|
*/
|
|
41364
41950
|
Message.prototype.associatedChildMessage = null;
|
|
41365
41951
|
|
|
41952
|
+
/**
|
|
41953
|
+
* Message groupStatusMentionMessage.
|
|
41954
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} groupStatusMentionMessage
|
|
41955
|
+
* @memberof waproto.Message
|
|
41956
|
+
* @instance
|
|
41957
|
+
*/
|
|
41958
|
+
Message.prototype.groupStatusMentionMessage = null;
|
|
41959
|
+
|
|
41366
41960
|
// OneOf field names bound to virtual getters and setters
|
|
41367
41961
|
var $oneOfFields;
|
|
41368
41962
|
|
|
@@ -41822,6 +42416,12 @@ $root.waproto = (function() {
|
|
|
41822
42416
|
set: $util.oneOfSetter($oneOfFields)
|
|
41823
42417
|
});
|
|
41824
42418
|
|
|
42419
|
+
// Virtual OneOf for proto3 optional field
|
|
42420
|
+
Object.defineProperty(Message.prototype, "_groupStatusMentionMessage", {
|
|
42421
|
+
get: $util.oneOfGetter($oneOfFields = ["groupStatusMentionMessage"]),
|
|
42422
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
42423
|
+
});
|
|
42424
|
+
|
|
41825
42425
|
/**
|
|
41826
42426
|
* Creates a new Message instance using the specified properties.
|
|
41827
42427
|
* @function create
|
|
@@ -41998,6 +42598,8 @@ $root.waproto = (function() {
|
|
|
41998
42598
|
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationOptionImageMessage, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
|
|
41999
42599
|
if (message.associatedChildMessage != null && Object.hasOwnProperty.call(message, "associatedChildMessage"))
|
|
42000
42600
|
$root.waproto.Message.FutureProofMessage.encode(message.associatedChildMessage, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
|
|
42601
|
+
if (message.groupStatusMentionMessage != null && Object.hasOwnProperty.call(message, "groupStatusMentionMessage"))
|
|
42602
|
+
$root.waproto.Message.FutureProofMessage.encode(message.groupStatusMentionMessage, writer.uint32(/* id 92, wireType 2 =*/738).fork()).ldelim();
|
|
42001
42603
|
return writer;
|
|
42002
42604
|
};
|
|
42003
42605
|
|
|
@@ -42336,6 +42938,10 @@ $root.waproto = (function() {
|
|
|
42336
42938
|
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42337
42939
|
break;
|
|
42338
42940
|
}
|
|
42941
|
+
case 92: {
|
|
42942
|
+
message.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42943
|
+
break;
|
|
42944
|
+
}
|
|
42339
42945
|
default:
|
|
42340
42946
|
reader.skipType(tag & 7);
|
|
42341
42947
|
break;
|
|
@@ -42977,6 +43583,14 @@ $root.waproto = (function() {
|
|
|
42977
43583
|
return "associatedChildMessage." + error;
|
|
42978
43584
|
}
|
|
42979
43585
|
}
|
|
43586
|
+
if (message.groupStatusMentionMessage != null && message.hasOwnProperty("groupStatusMentionMessage")) {
|
|
43587
|
+
properties._groupStatusMentionMessage = 1;
|
|
43588
|
+
{
|
|
43589
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.groupStatusMentionMessage);
|
|
43590
|
+
if (error)
|
|
43591
|
+
return "groupStatusMentionMessage." + error;
|
|
43592
|
+
}
|
|
43593
|
+
}
|
|
42980
43594
|
return null;
|
|
42981
43595
|
};
|
|
42982
43596
|
|
|
@@ -43369,6 +43983,11 @@ $root.waproto = (function() {
|
|
|
43369
43983
|
throw TypeError(".waproto.Message.associatedChildMessage: object expected");
|
|
43370
43984
|
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.associatedChildMessage);
|
|
43371
43985
|
}
|
|
43986
|
+
if (object.groupStatusMentionMessage != null) {
|
|
43987
|
+
if (typeof object.groupStatusMentionMessage !== "object")
|
|
43988
|
+
throw TypeError(".waproto.Message.groupStatusMentionMessage: object expected");
|
|
43989
|
+
message.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.groupStatusMentionMessage);
|
|
43990
|
+
}
|
|
43372
43991
|
return message;
|
|
43373
43992
|
};
|
|
43374
43993
|
|
|
@@ -43765,6 +44384,11 @@ $root.waproto = (function() {
|
|
|
43765
44384
|
if (options.oneofs)
|
|
43766
44385
|
object._associatedChildMessage = "associatedChildMessage";
|
|
43767
44386
|
}
|
|
44387
|
+
if (message.groupStatusMentionMessage != null && message.hasOwnProperty("groupStatusMentionMessage")) {
|
|
44388
|
+
object.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.toObject(message.groupStatusMentionMessage, options);
|
|
44389
|
+
if (options.oneofs)
|
|
44390
|
+
object._groupStatusMentionMessage = "groupStatusMentionMessage";
|
|
44391
|
+
}
|
|
43768
44392
|
return object;
|
|
43769
44393
|
};
|
|
43770
44394
|
|
|
@@ -77843,7 +78467,7 @@ $root.waproto = (function() {
|
|
|
77843
78467
|
* @property {Array.<waproto.Message.PollCreationMessage.IOption>|null} [options] PollCreationMessage options
|
|
77844
78468
|
* @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
|
|
77845
78469
|
* @property {waproto.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
|
|
77846
|
-
* @property {waproto.Message.
|
|
78470
|
+
* @property {waproto.Message.PollMediaType|null} [pollMediaType] PollCreationMessage pollMediaType
|
|
77847
78471
|
*/
|
|
77848
78472
|
|
|
77849
78473
|
/**
|
|
@@ -77903,12 +78527,12 @@ $root.waproto = (function() {
|
|
|
77903
78527
|
PollCreationMessage.prototype.contextInfo = null;
|
|
77904
78528
|
|
|
77905
78529
|
/**
|
|
77906
|
-
* PollCreationMessage
|
|
77907
|
-
* @member {waproto.Message.
|
|
78530
|
+
* PollCreationMessage pollMediaType.
|
|
78531
|
+
* @member {waproto.Message.PollMediaType|null|undefined} pollMediaType
|
|
77908
78532
|
* @memberof waproto.Message.PollCreationMessage
|
|
77909
78533
|
* @instance
|
|
77910
78534
|
*/
|
|
77911
|
-
PollCreationMessage.prototype.
|
|
78535
|
+
PollCreationMessage.prototype.pollMediaType = null;
|
|
77912
78536
|
|
|
77913
78537
|
// OneOf field names bound to virtual getters and setters
|
|
77914
78538
|
var $oneOfFields;
|
|
@@ -77938,8 +78562,8 @@ $root.waproto = (function() {
|
|
|
77938
78562
|
});
|
|
77939
78563
|
|
|
77940
78564
|
// Virtual OneOf for proto3 optional field
|
|
77941
|
-
Object.defineProperty(PollCreationMessage.prototype, "
|
|
77942
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
78565
|
+
Object.defineProperty(PollCreationMessage.prototype, "_pollMediaType", {
|
|
78566
|
+
get: $util.oneOfGetter($oneOfFields = ["pollMediaType"]),
|
|
77943
78567
|
set: $util.oneOfSetter($oneOfFields)
|
|
77944
78568
|
});
|
|
77945
78569
|
|
|
@@ -77978,8 +78602,8 @@ $root.waproto = (function() {
|
|
|
77978
78602
|
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.selectableOptionsCount);
|
|
77979
78603
|
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
|
77980
78604
|
$root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
77981
|
-
if (message.
|
|
77982
|
-
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.
|
|
78605
|
+
if (message.pollMediaType != null && Object.hasOwnProperty.call(message, "pollMediaType"))
|
|
78606
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollMediaType);
|
|
77983
78607
|
return writer;
|
|
77984
78608
|
};
|
|
77985
78609
|
|
|
@@ -78037,7 +78661,7 @@ $root.waproto = (function() {
|
|
|
78037
78661
|
break;
|
|
78038
78662
|
}
|
|
78039
78663
|
case 6: {
|
|
78040
|
-
message.
|
|
78664
|
+
message.pollMediaType = reader.int32();
|
|
78041
78665
|
break;
|
|
78042
78666
|
}
|
|
78043
78667
|
default:
|
|
@@ -78108,11 +78732,11 @@ $root.waproto = (function() {
|
|
|
78108
78732
|
return "contextInfo." + error;
|
|
78109
78733
|
}
|
|
78110
78734
|
}
|
|
78111
|
-
if (message.
|
|
78112
|
-
properties.
|
|
78113
|
-
switch (message.
|
|
78735
|
+
if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
|
|
78736
|
+
properties._pollMediaType = 1;
|
|
78737
|
+
switch (message.pollMediaType) {
|
|
78114
78738
|
default:
|
|
78115
|
-
return "
|
|
78739
|
+
return "pollMediaType: enum value expected";
|
|
78116
78740
|
case 1:
|
|
78117
78741
|
case 2:
|
|
78118
78742
|
break;
|
|
@@ -78157,20 +78781,20 @@ $root.waproto = (function() {
|
|
|
78157
78781
|
throw TypeError(".waproto.Message.PollCreationMessage.contextInfo: object expected");
|
|
78158
78782
|
message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
|
|
78159
78783
|
}
|
|
78160
|
-
switch (object.
|
|
78784
|
+
switch (object.pollMediaType) {
|
|
78161
78785
|
default:
|
|
78162
|
-
if (typeof object.
|
|
78163
|
-
message.
|
|
78786
|
+
if (typeof object.pollMediaType === "number") {
|
|
78787
|
+
message.pollMediaType = object.pollMediaType;
|
|
78164
78788
|
break;
|
|
78165
78789
|
}
|
|
78166
78790
|
break;
|
|
78167
78791
|
case "TEXT":
|
|
78168
78792
|
case 1:
|
|
78169
|
-
message.
|
|
78793
|
+
message.pollMediaType = 1;
|
|
78170
78794
|
break;
|
|
78171
78795
|
case "IMAGE":
|
|
78172
78796
|
case 2:
|
|
78173
|
-
message.
|
|
78797
|
+
message.pollMediaType = 2;
|
|
78174
78798
|
break;
|
|
78175
78799
|
}
|
|
78176
78800
|
return message;
|
|
@@ -78216,10 +78840,10 @@ $root.waproto = (function() {
|
|
|
78216
78840
|
if (options.oneofs)
|
|
78217
78841
|
object._contextInfo = "contextInfo";
|
|
78218
78842
|
}
|
|
78219
|
-
if (message.
|
|
78220
|
-
object.
|
|
78843
|
+
if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
|
|
78844
|
+
object.pollMediaType = options.enums === String ? $root.waproto.Message.PollMediaType[message.pollMediaType] === undefined ? message.pollMediaType : $root.waproto.Message.PollMediaType[message.pollMediaType] : message.pollMediaType;
|
|
78221
78845
|
if (options.oneofs)
|
|
78222
|
-
object.
|
|
78846
|
+
object._pollMediaType = "pollMediaType";
|
|
78223
78847
|
}
|
|
78224
78848
|
return object;
|
|
78225
78849
|
};
|
|
@@ -78757,6 +79381,20 @@ $root.waproto = (function() {
|
|
|
78757
79381
|
return PollEncValue;
|
|
78758
79382
|
})();
|
|
78759
79383
|
|
|
79384
|
+
/**
|
|
79385
|
+
* PollMediaType enum.
|
|
79386
|
+
* @name waproto.Message.PollMediaType
|
|
79387
|
+
* @enum {number}
|
|
79388
|
+
* @property {number} TEXT=1 TEXT value
|
|
79389
|
+
* @property {number} IMAGE=2 IMAGE value
|
|
79390
|
+
*/
|
|
79391
|
+
Message.PollMediaType = (function() {
|
|
79392
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
79393
|
+
values[valuesById[1] = "TEXT"] = 1;
|
|
79394
|
+
values[valuesById[2] = "IMAGE"] = 2;
|
|
79395
|
+
return values;
|
|
79396
|
+
})();
|
|
79397
|
+
|
|
78760
79398
|
Message.PollResultSnapshotMessage = (function() {
|
|
78761
79399
|
|
|
78762
79400
|
/**
|
|
@@ -79316,20 +79954,6 @@ $root.waproto = (function() {
|
|
|
79316
79954
|
return PollResultSnapshotMessage;
|
|
79317
79955
|
})();
|
|
79318
79956
|
|
|
79319
|
-
/**
|
|
79320
|
-
* PollType enum.
|
|
79321
|
-
* @name waproto.Message.PollType
|
|
79322
|
-
* @enum {number}
|
|
79323
|
-
* @property {number} TEXT=1 TEXT value
|
|
79324
|
-
* @property {number} IMAGE=2 IMAGE value
|
|
79325
|
-
*/
|
|
79326
|
-
Message.PollType = (function() {
|
|
79327
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
79328
|
-
values[valuesById[1] = "TEXT"] = 1;
|
|
79329
|
-
values[valuesById[2] = "IMAGE"] = 2;
|
|
79330
|
-
return values;
|
|
79331
|
-
})();
|
|
79332
|
-
|
|
79333
79957
|
Message.PollUpdateMessage = (function() {
|
|
79334
79958
|
|
|
79335
79959
|
/**
|
|
@@ -80771,6 +81395,7 @@ $root.waproto = (function() {
|
|
|
80771
81395
|
* @property {number|null} [productImageCount] ProductSnapshot productImageCount
|
|
80772
81396
|
* @property {string|null} [firstImageId] ProductSnapshot firstImageId
|
|
80773
81397
|
* @property {number|Long|null} [salePriceAmount1000] ProductSnapshot salePriceAmount1000
|
|
81398
|
+
* @property {string|null} [signedUrl] ProductSnapshot signedUrl
|
|
80774
81399
|
*/
|
|
80775
81400
|
|
|
80776
81401
|
/**
|
|
@@ -80876,6 +81501,14 @@ $root.waproto = (function() {
|
|
|
80876
81501
|
*/
|
|
80877
81502
|
ProductSnapshot.prototype.salePriceAmount1000 = null;
|
|
80878
81503
|
|
|
81504
|
+
/**
|
|
81505
|
+
* ProductSnapshot signedUrl.
|
|
81506
|
+
* @member {string|null|undefined} signedUrl
|
|
81507
|
+
* @memberof waproto.Message.ProductMessage.ProductSnapshot
|
|
81508
|
+
* @instance
|
|
81509
|
+
*/
|
|
81510
|
+
ProductSnapshot.prototype.signedUrl = null;
|
|
81511
|
+
|
|
80879
81512
|
// OneOf field names bound to virtual getters and setters
|
|
80880
81513
|
var $oneOfFields;
|
|
80881
81514
|
|
|
@@ -80945,6 +81578,12 @@ $root.waproto = (function() {
|
|
|
80945
81578
|
set: $util.oneOfSetter($oneOfFields)
|
|
80946
81579
|
});
|
|
80947
81580
|
|
|
81581
|
+
// Virtual OneOf for proto3 optional field
|
|
81582
|
+
Object.defineProperty(ProductSnapshot.prototype, "_signedUrl", {
|
|
81583
|
+
get: $util.oneOfGetter($oneOfFields = ["signedUrl"]),
|
|
81584
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81585
|
+
});
|
|
81586
|
+
|
|
80948
81587
|
/**
|
|
80949
81588
|
* Creates a new ProductSnapshot instance using the specified properties.
|
|
80950
81589
|
* @function create
|
|
@@ -80991,6 +81630,8 @@ $root.waproto = (function() {
|
|
|
80991
81630
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.firstImageId);
|
|
80992
81631
|
if (message.salePriceAmount1000 != null && Object.hasOwnProperty.call(message, "salePriceAmount1000"))
|
|
80993
81632
|
writer.uint32(/* id 12, wireType 0 =*/96).int64(message.salePriceAmount1000);
|
|
81633
|
+
if (message.signedUrl != null && Object.hasOwnProperty.call(message, "signedUrl"))
|
|
81634
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.signedUrl);
|
|
80994
81635
|
return writer;
|
|
80995
81636
|
};
|
|
80996
81637
|
|
|
@@ -81069,6 +81710,10 @@ $root.waproto = (function() {
|
|
|
81069
81710
|
message.salePriceAmount1000 = reader.int64();
|
|
81070
81711
|
break;
|
|
81071
81712
|
}
|
|
81713
|
+
case 13: {
|
|
81714
|
+
message.signedUrl = reader.string();
|
|
81715
|
+
break;
|
|
81716
|
+
}
|
|
81072
81717
|
default:
|
|
81073
81718
|
reader.skipType(tag & 7);
|
|
81074
81719
|
break;
|
|
@@ -81163,6 +81808,11 @@ $root.waproto = (function() {
|
|
|
81163
81808
|
if (!$util.isInteger(message.salePriceAmount1000) && !(message.salePriceAmount1000 && $util.isInteger(message.salePriceAmount1000.low) && $util.isInteger(message.salePriceAmount1000.high)))
|
|
81164
81809
|
return "salePriceAmount1000: integer|Long expected";
|
|
81165
81810
|
}
|
|
81811
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
|
|
81812
|
+
properties._signedUrl = 1;
|
|
81813
|
+
if (!$util.isString(message.signedUrl))
|
|
81814
|
+
return "signedUrl: string expected";
|
|
81815
|
+
}
|
|
81166
81816
|
return null;
|
|
81167
81817
|
};
|
|
81168
81818
|
|
|
@@ -81217,6 +81867,8 @@ $root.waproto = (function() {
|
|
|
81217
81867
|
message.salePriceAmount1000 = object.salePriceAmount1000;
|
|
81218
81868
|
else if (typeof object.salePriceAmount1000 === "object")
|
|
81219
81869
|
message.salePriceAmount1000 = new $util.LongBits(object.salePriceAmount1000.low >>> 0, object.salePriceAmount1000.high >>> 0).toNumber();
|
|
81870
|
+
if (object.signedUrl != null)
|
|
81871
|
+
message.signedUrl = String(object.signedUrl);
|
|
81220
81872
|
return message;
|
|
81221
81873
|
};
|
|
81222
81874
|
|
|
@@ -81294,6 +81946,11 @@ $root.waproto = (function() {
|
|
|
81294
81946
|
if (options.oneofs)
|
|
81295
81947
|
object._salePriceAmount1000 = "salePriceAmount1000";
|
|
81296
81948
|
}
|
|
81949
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
|
|
81950
|
+
object.signedUrl = message.signedUrl;
|
|
81951
|
+
if (options.oneofs)
|
|
81952
|
+
object._signedUrl = "signedUrl";
|
|
81953
|
+
}
|
|
81297
81954
|
return object;
|
|
81298
81955
|
};
|
|
81299
81956
|
|