@wppconnect/wa-proto 1.1.1 → 1.1.2

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/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
 
@@ -77843,7 +78428,7 @@ $root.waproto = (function() {
77843
78428
  * @property {Array.<waproto.Message.PollCreationMessage.IOption>|null} [options] PollCreationMessage options
77844
78429
  * @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
77845
78430
  * @property {waproto.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
77846
- * @property {waproto.Message.PollType|null} [pollType] PollCreationMessage pollType
78431
+ * @property {waproto.Message.PollMediaType|null} [pollMediaType] PollCreationMessage pollMediaType
77847
78432
  */
77848
78433
 
77849
78434
  /**
@@ -77903,12 +78488,12 @@ $root.waproto = (function() {
77903
78488
  PollCreationMessage.prototype.contextInfo = null;
77904
78489
 
77905
78490
  /**
77906
- * PollCreationMessage pollType.
77907
- * @member {waproto.Message.PollType|null|undefined} pollType
78491
+ * PollCreationMessage pollMediaType.
78492
+ * @member {waproto.Message.PollMediaType|null|undefined} pollMediaType
77908
78493
  * @memberof waproto.Message.PollCreationMessage
77909
78494
  * @instance
77910
78495
  */
77911
- PollCreationMessage.prototype.pollType = null;
78496
+ PollCreationMessage.prototype.pollMediaType = null;
77912
78497
 
77913
78498
  // OneOf field names bound to virtual getters and setters
77914
78499
  var $oneOfFields;
@@ -77938,8 +78523,8 @@ $root.waproto = (function() {
77938
78523
  });
77939
78524
 
77940
78525
  // Virtual OneOf for proto3 optional field
77941
- Object.defineProperty(PollCreationMessage.prototype, "_pollType", {
77942
- get: $util.oneOfGetter($oneOfFields = ["pollType"]),
78526
+ Object.defineProperty(PollCreationMessage.prototype, "_pollMediaType", {
78527
+ get: $util.oneOfGetter($oneOfFields = ["pollMediaType"]),
77943
78528
  set: $util.oneOfSetter($oneOfFields)
77944
78529
  });
77945
78530
 
@@ -77978,8 +78563,8 @@ $root.waproto = (function() {
77978
78563
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.selectableOptionsCount);
77979
78564
  if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
77980
78565
  $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
77981
- if (message.pollType != null && Object.hasOwnProperty.call(message, "pollType"))
77982
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollType);
78566
+ if (message.pollMediaType != null && Object.hasOwnProperty.call(message, "pollMediaType"))
78567
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollMediaType);
77983
78568
  return writer;
77984
78569
  };
77985
78570
 
@@ -78037,7 +78622,7 @@ $root.waproto = (function() {
78037
78622
  break;
78038
78623
  }
78039
78624
  case 6: {
78040
- message.pollType = reader.int32();
78625
+ message.pollMediaType = reader.int32();
78041
78626
  break;
78042
78627
  }
78043
78628
  default:
@@ -78108,11 +78693,11 @@ $root.waproto = (function() {
78108
78693
  return "contextInfo." + error;
78109
78694
  }
78110
78695
  }
78111
- if (message.pollType != null && message.hasOwnProperty("pollType")) {
78112
- properties._pollType = 1;
78113
- switch (message.pollType) {
78696
+ if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
78697
+ properties._pollMediaType = 1;
78698
+ switch (message.pollMediaType) {
78114
78699
  default:
78115
- return "pollType: enum value expected";
78700
+ return "pollMediaType: enum value expected";
78116
78701
  case 1:
78117
78702
  case 2:
78118
78703
  break;
@@ -78157,20 +78742,20 @@ $root.waproto = (function() {
78157
78742
  throw TypeError(".waproto.Message.PollCreationMessage.contextInfo: object expected");
78158
78743
  message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
78159
78744
  }
78160
- switch (object.pollType) {
78745
+ switch (object.pollMediaType) {
78161
78746
  default:
78162
- if (typeof object.pollType === "number") {
78163
- message.pollType = object.pollType;
78747
+ if (typeof object.pollMediaType === "number") {
78748
+ message.pollMediaType = object.pollMediaType;
78164
78749
  break;
78165
78750
  }
78166
78751
  break;
78167
78752
  case "TEXT":
78168
78753
  case 1:
78169
- message.pollType = 1;
78754
+ message.pollMediaType = 1;
78170
78755
  break;
78171
78756
  case "IMAGE":
78172
78757
  case 2:
78173
- message.pollType = 2;
78758
+ message.pollMediaType = 2;
78174
78759
  break;
78175
78760
  }
78176
78761
  return message;
@@ -78216,10 +78801,10 @@ $root.waproto = (function() {
78216
78801
  if (options.oneofs)
78217
78802
  object._contextInfo = "contextInfo";
78218
78803
  }
78219
- if (message.pollType != null && message.hasOwnProperty("pollType")) {
78220
- object.pollType = options.enums === String ? $root.waproto.Message.PollType[message.pollType] === undefined ? message.pollType : $root.waproto.Message.PollType[message.pollType] : message.pollType;
78804
+ if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
78805
+ object.pollMediaType = options.enums === String ? $root.waproto.Message.PollMediaType[message.pollMediaType] === undefined ? message.pollMediaType : $root.waproto.Message.PollMediaType[message.pollMediaType] : message.pollMediaType;
78221
78806
  if (options.oneofs)
78222
- object._pollType = "pollType";
78807
+ object._pollMediaType = "pollMediaType";
78223
78808
  }
78224
78809
  return object;
78225
78810
  };
@@ -78757,6 +79342,20 @@ $root.waproto = (function() {
78757
79342
  return PollEncValue;
78758
79343
  })();
78759
79344
 
79345
+ /**
79346
+ * PollMediaType enum.
79347
+ * @name waproto.Message.PollMediaType
79348
+ * @enum {number}
79349
+ * @property {number} TEXT=1 TEXT value
79350
+ * @property {number} IMAGE=2 IMAGE value
79351
+ */
79352
+ Message.PollMediaType = (function() {
79353
+ var valuesById = {}, values = Object.create(valuesById);
79354
+ values[valuesById[1] = "TEXT"] = 1;
79355
+ values[valuesById[2] = "IMAGE"] = 2;
79356
+ return values;
79357
+ })();
79358
+
78760
79359
  Message.PollResultSnapshotMessage = (function() {
78761
79360
 
78762
79361
  /**
@@ -79316,20 +79915,6 @@ $root.waproto = (function() {
79316
79915
  return PollResultSnapshotMessage;
79317
79916
  })();
79318
79917
 
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
79918
  Message.PollUpdateMessage = (function() {
79334
79919
 
79335
79920
  /**
@@ -80771,6 +81356,7 @@ $root.waproto = (function() {
80771
81356
  * @property {number|null} [productImageCount] ProductSnapshot productImageCount
80772
81357
  * @property {string|null} [firstImageId] ProductSnapshot firstImageId
80773
81358
  * @property {number|Long|null} [salePriceAmount1000] ProductSnapshot salePriceAmount1000
81359
+ * @property {string|null} [signedUrl] ProductSnapshot signedUrl
80774
81360
  */
80775
81361
 
80776
81362
  /**
@@ -80876,6 +81462,14 @@ $root.waproto = (function() {
80876
81462
  */
80877
81463
  ProductSnapshot.prototype.salePriceAmount1000 = null;
80878
81464
 
81465
+ /**
81466
+ * ProductSnapshot signedUrl.
81467
+ * @member {string|null|undefined} signedUrl
81468
+ * @memberof waproto.Message.ProductMessage.ProductSnapshot
81469
+ * @instance
81470
+ */
81471
+ ProductSnapshot.prototype.signedUrl = null;
81472
+
80879
81473
  // OneOf field names bound to virtual getters and setters
80880
81474
  var $oneOfFields;
80881
81475
 
@@ -80945,6 +81539,12 @@ $root.waproto = (function() {
80945
81539
  set: $util.oneOfSetter($oneOfFields)
80946
81540
  });
80947
81541
 
81542
+ // Virtual OneOf for proto3 optional field
81543
+ Object.defineProperty(ProductSnapshot.prototype, "_signedUrl", {
81544
+ get: $util.oneOfGetter($oneOfFields = ["signedUrl"]),
81545
+ set: $util.oneOfSetter($oneOfFields)
81546
+ });
81547
+
80948
81548
  /**
80949
81549
  * Creates a new ProductSnapshot instance using the specified properties.
80950
81550
  * @function create
@@ -80991,6 +81591,8 @@ $root.waproto = (function() {
80991
81591
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.firstImageId);
80992
81592
  if (message.salePriceAmount1000 != null && Object.hasOwnProperty.call(message, "salePriceAmount1000"))
80993
81593
  writer.uint32(/* id 12, wireType 0 =*/96).int64(message.salePriceAmount1000);
81594
+ if (message.signedUrl != null && Object.hasOwnProperty.call(message, "signedUrl"))
81595
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.signedUrl);
80994
81596
  return writer;
80995
81597
  };
80996
81598
 
@@ -81069,6 +81671,10 @@ $root.waproto = (function() {
81069
81671
  message.salePriceAmount1000 = reader.int64();
81070
81672
  break;
81071
81673
  }
81674
+ case 13: {
81675
+ message.signedUrl = reader.string();
81676
+ break;
81677
+ }
81072
81678
  default:
81073
81679
  reader.skipType(tag & 7);
81074
81680
  break;
@@ -81163,6 +81769,11 @@ $root.waproto = (function() {
81163
81769
  if (!$util.isInteger(message.salePriceAmount1000) && !(message.salePriceAmount1000 && $util.isInteger(message.salePriceAmount1000.low) && $util.isInteger(message.salePriceAmount1000.high)))
81164
81770
  return "salePriceAmount1000: integer|Long expected";
81165
81771
  }
81772
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
81773
+ properties._signedUrl = 1;
81774
+ if (!$util.isString(message.signedUrl))
81775
+ return "signedUrl: string expected";
81776
+ }
81166
81777
  return null;
81167
81778
  };
81168
81779
 
@@ -81217,6 +81828,8 @@ $root.waproto = (function() {
81217
81828
  message.salePriceAmount1000 = object.salePriceAmount1000;
81218
81829
  else if (typeof object.salePriceAmount1000 === "object")
81219
81830
  message.salePriceAmount1000 = new $util.LongBits(object.salePriceAmount1000.low >>> 0, object.salePriceAmount1000.high >>> 0).toNumber();
81831
+ if (object.signedUrl != null)
81832
+ message.signedUrl = String(object.signedUrl);
81220
81833
  return message;
81221
81834
  };
81222
81835
 
@@ -81294,6 +81907,11 @@ $root.waproto = (function() {
81294
81907
  if (options.oneofs)
81295
81908
  object._salePriceAmount1000 = "salePriceAmount1000";
81296
81909
  }
81910
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
81911
+ object.signedUrl = message.signedUrl;
81912
+ if (options.oneofs)
81913
+ object._signedUrl = "signedUrl";
81914
+ }
81297
81915
  return object;
81298
81916
  };
81299
81917