chore: update proto/version to v2.3000.1033647198 (#193)
Co-authored-by: rsalcara <rsalcara@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4e0a4a1dd2
commit
05807993ee
+18
-1
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package proto;
|
||||
|
||||
/// WhatsApp Version: 2.3000.1033598431
|
||||
/// WhatsApp Version: 2.3000.1033647198
|
||||
|
||||
message ADVDeviceIdentity {
|
||||
optional uint32 rawId = 1;
|
||||
@@ -342,6 +342,14 @@ message BotAgeCollectionMetadata {
|
||||
}
|
||||
}
|
||||
|
||||
message BotAvatarMetadata {
|
||||
optional uint32 sentiment = 1;
|
||||
optional string behaviorGraph = 2;
|
||||
optional uint32 action = 3;
|
||||
optional uint32 intensity = 4;
|
||||
optional uint32 wordCount = 5;
|
||||
}
|
||||
|
||||
message BotCapabilityMetadata {
|
||||
repeated BotCapabilityType capabilities = 1;
|
||||
enum BotCapabilityType {
|
||||
@@ -600,6 +608,7 @@ message BotMessageSharingInfo {
|
||||
}
|
||||
|
||||
message BotMetadata {
|
||||
optional BotAvatarMetadata avatarMetadata = 1;
|
||||
optional string personaId = 2;
|
||||
optional BotPluginMetadata pluginMetadata = 3;
|
||||
optional BotSuggestedPromptMetadata suggestedPromptMetadata = 4;
|
||||
@@ -1382,6 +1391,7 @@ message ContextInfo {
|
||||
optional bool isSpoiler = 73;
|
||||
optional MediaDomainInfo mediaDomainInfo = 74;
|
||||
optional PartiallySelectedContent partiallySelectedContent = 75;
|
||||
optional uint32 afterReadDurationMs = 76;
|
||||
message AdReplyInfo {
|
||||
optional string advertiserName = 1;
|
||||
optional MediaType mediaType = 2;
|
||||
@@ -3532,10 +3542,15 @@ message Message {
|
||||
|
||||
message RequestWelcomeMessageMetadata {
|
||||
optional LocalChatState localChatState = 1;
|
||||
optional WelcomeTrigger welcomeTrigger = 2;
|
||||
enum LocalChatState {
|
||||
EMPTY = 0;
|
||||
NON_EMPTY = 1;
|
||||
}
|
||||
enum WelcomeTrigger {
|
||||
CHAT_OPEN = 0;
|
||||
COMPANION_PAIRING = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message ScheduledCallCreationMessage {
|
||||
@@ -3676,6 +3691,7 @@ message Message {
|
||||
optional string accessibilityLabel = 4;
|
||||
optional bool isLottie = 5;
|
||||
optional string mimetype = 6;
|
||||
optional int32 premium = 7;
|
||||
}
|
||||
|
||||
enum StickerPackOrigin {
|
||||
@@ -4572,6 +4588,7 @@ message StatusAttribution {
|
||||
AI_CREATED = 7;
|
||||
LAYOUTS = 8;
|
||||
NEWSLETTER_STATUS = 9;
|
||||
STATUS_CLOSE_SHARING = 10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+39
-1
@@ -976,6 +976,30 @@ export namespace proto {
|
||||
}
|
||||
}
|
||||
|
||||
interface IBotAvatarMetadata {
|
||||
sentiment?: (number|null);
|
||||
behaviorGraph?: (string|null);
|
||||
action?: (number|null);
|
||||
intensity?: (number|null);
|
||||
wordCount?: (number|null);
|
||||
}
|
||||
|
||||
class BotAvatarMetadata implements IBotAvatarMetadata {
|
||||
constructor(p?: proto.IBotAvatarMetadata);
|
||||
public sentiment?: (number|null);
|
||||
public behaviorGraph?: (string|null);
|
||||
public action?: (number|null);
|
||||
public intensity?: (number|null);
|
||||
public wordCount?: (number|null);
|
||||
public static create(properties?: proto.IBotAvatarMetadata): proto.BotAvatarMetadata;
|
||||
public static encode(m: proto.IBotAvatarMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotAvatarMetadata;
|
||||
public static fromObject(d: { [k: string]: any }): proto.BotAvatarMetadata;
|
||||
public static toObject(m: proto.BotAvatarMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
public static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
interface IBotCapabilityMetadata {
|
||||
capabilities?: (proto.BotCapabilityMetadata.BotCapabilityType[]|null);
|
||||
}
|
||||
@@ -1603,6 +1627,7 @@ export namespace proto {
|
||||
}
|
||||
|
||||
interface IBotMetadata {
|
||||
avatarMetadata?: (proto.IBotAvatarMetadata|null);
|
||||
personaId?: (string|null);
|
||||
pluginMetadata?: (proto.IBotPluginMetadata|null);
|
||||
suggestedPromptMetadata?: (proto.IBotSuggestedPromptMetadata|null);
|
||||
@@ -1645,6 +1670,7 @@ export namespace proto {
|
||||
|
||||
class BotMetadata implements IBotMetadata {
|
||||
constructor(p?: proto.IBotMetadata);
|
||||
public avatarMetadata?: (proto.IBotAvatarMetadata|null);
|
||||
public personaId?: (string|null);
|
||||
public pluginMetadata?: (proto.IBotPluginMetadata|null);
|
||||
public suggestedPromptMetadata?: (proto.IBotSuggestedPromptMetadata|null);
|
||||
@@ -3339,6 +3365,7 @@ export namespace proto {
|
||||
isSpoiler?: (boolean|null);
|
||||
mediaDomainInfo?: (proto.IMediaDomainInfo|null);
|
||||
partiallySelectedContent?: (proto.ContextInfo.IPartiallySelectedContent|null);
|
||||
afterReadDurationMs?: (number|null);
|
||||
}
|
||||
|
||||
class ContextInfo implements IContextInfo {
|
||||
@@ -3401,6 +3428,7 @@ export namespace proto {
|
||||
public isSpoiler?: (boolean|null);
|
||||
public mediaDomainInfo?: (proto.IMediaDomainInfo|null);
|
||||
public partiallySelectedContent?: (proto.ContextInfo.IPartiallySelectedContent|null);
|
||||
public afterReadDurationMs?: (number|null);
|
||||
public static create(properties?: proto.IContextInfo): proto.ContextInfo;
|
||||
public static encode(m: proto.IContextInfo, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo;
|
||||
@@ -9098,11 +9126,13 @@ export namespace proto {
|
||||
|
||||
interface IRequestWelcomeMessageMetadata {
|
||||
localChatState?: (proto.Message.RequestWelcomeMessageMetadata.LocalChatState|null);
|
||||
welcomeTrigger?: (proto.Message.RequestWelcomeMessageMetadata.WelcomeTrigger|null);
|
||||
}
|
||||
|
||||
class RequestWelcomeMessageMetadata implements IRequestWelcomeMessageMetadata {
|
||||
constructor(p?: proto.Message.IRequestWelcomeMessageMetadata);
|
||||
public localChatState?: (proto.Message.RequestWelcomeMessageMetadata.LocalChatState|null);
|
||||
public welcomeTrigger?: (proto.Message.RequestWelcomeMessageMetadata.WelcomeTrigger|null);
|
||||
public static create(properties?: proto.Message.IRequestWelcomeMessageMetadata): proto.Message.RequestWelcomeMessageMetadata;
|
||||
public static encode(m: proto.Message.IRequestWelcomeMessageMetadata, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.RequestWelcomeMessageMetadata;
|
||||
@@ -9118,6 +9148,11 @@ export namespace proto {
|
||||
EMPTY = 0,
|
||||
NON_EMPTY = 1
|
||||
}
|
||||
|
||||
enum WelcomeTrigger {
|
||||
CHAT_OPEN = 0,
|
||||
COMPANION_PAIRING = 1
|
||||
}
|
||||
}
|
||||
|
||||
interface IScheduledCallCreationMessage {
|
||||
@@ -9478,6 +9513,7 @@ export namespace proto {
|
||||
accessibilityLabel?: (string|null);
|
||||
isLottie?: (boolean|null);
|
||||
mimetype?: (string|null);
|
||||
premium?: (number|null);
|
||||
}
|
||||
|
||||
class Sticker implements ISticker {
|
||||
@@ -9488,6 +9524,7 @@ export namespace proto {
|
||||
public accessibilityLabel?: (string|null);
|
||||
public isLottie?: (boolean|null);
|
||||
public mimetype?: (string|null);
|
||||
public premium?: (number|null);
|
||||
public static create(properties?: proto.Message.StickerPackMessage.ISticker): proto.Message.StickerPackMessage.Sticker;
|
||||
public static encode(m: proto.Message.StickerPackMessage.ISticker, w?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.StickerPackMessage.Sticker;
|
||||
@@ -11700,7 +11737,8 @@ export namespace proto {
|
||||
RL_ATTRIBUTION = 6,
|
||||
AI_CREATED = 7,
|
||||
LAYOUTS = 8,
|
||||
NEWSLETTER_STATUS = 9
|
||||
NEWSLETTER_STATUS = 9,
|
||||
STATUS_CLOSE_SHARING = 10
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6357,6 +6357,178 @@ export const proto = $root.proto = (() => {
|
||||
return BotAgeCollectionMetadata;
|
||||
})();
|
||||
|
||||
proto.BotAvatarMetadata = (function() {
|
||||
|
||||
function BotAvatarMetadata(p) {
|
||||
if (p)
|
||||
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
||||
if (p[ks[i]] != null)
|
||||
this[ks[i]] = p[ks[i]];
|
||||
}
|
||||
|
||||
BotAvatarMetadata.prototype.sentiment = null;
|
||||
BotAvatarMetadata.prototype.behaviorGraph = null;
|
||||
BotAvatarMetadata.prototype.action = null;
|
||||
BotAvatarMetadata.prototype.intensity = null;
|
||||
BotAvatarMetadata.prototype.wordCount = null;
|
||||
|
||||
let $oneOfFields;
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotAvatarMetadata.prototype, "_sentiment", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["sentiment"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotAvatarMetadata.prototype, "_behaviorGraph", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["behaviorGraph"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotAvatarMetadata.prototype, "_action", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["action"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotAvatarMetadata.prototype, "_intensity", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["intensity"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotAvatarMetadata.prototype, "_wordCount", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["wordCount"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
BotAvatarMetadata.create = function create(properties) {
|
||||
return new BotAvatarMetadata(properties);
|
||||
};
|
||||
|
||||
BotAvatarMetadata.encode = function encode(m, w) {
|
||||
if (!w)
|
||||
w = $Writer.create();
|
||||
if (m.sentiment != null && Object.hasOwnProperty.call(m, "sentiment"))
|
||||
w.uint32(8).uint32(m.sentiment);
|
||||
if (m.behaviorGraph != null && Object.hasOwnProperty.call(m, "behaviorGraph"))
|
||||
w.uint32(18).string(m.behaviorGraph);
|
||||
if (m.action != null && Object.hasOwnProperty.call(m, "action"))
|
||||
w.uint32(24).uint32(m.action);
|
||||
if (m.intensity != null && Object.hasOwnProperty.call(m, "intensity"))
|
||||
w.uint32(32).uint32(m.intensity);
|
||||
if (m.wordCount != null && Object.hasOwnProperty.call(m, "wordCount"))
|
||||
w.uint32(40).uint32(m.wordCount);
|
||||
return w;
|
||||
};
|
||||
|
||||
BotAvatarMetadata.decode = function decode(r, l, e) {
|
||||
if (!(r instanceof $Reader))
|
||||
r = $Reader.create(r);
|
||||
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotAvatarMetadata();
|
||||
while (r.pos < c) {
|
||||
var t = r.uint32();
|
||||
if (t === e)
|
||||
break;
|
||||
switch (t >>> 3) {
|
||||
case 1: {
|
||||
m.sentiment = r.uint32();
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
m.behaviorGraph = r.string();
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
m.action = r.uint32();
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
m.intensity = r.uint32();
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
m.wordCount = r.uint32();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
r.skipType(t & 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return m;
|
||||
};
|
||||
|
||||
BotAvatarMetadata.fromObject = function fromObject(d) {
|
||||
if (d instanceof $root.proto.BotAvatarMetadata)
|
||||
return d;
|
||||
var m = new $root.proto.BotAvatarMetadata();
|
||||
if (d.sentiment != null) {
|
||||
m.sentiment = d.sentiment >>> 0;
|
||||
}
|
||||
if (d.behaviorGraph != null) {
|
||||
m.behaviorGraph = String(d.behaviorGraph);
|
||||
}
|
||||
if (d.action != null) {
|
||||
m.action = d.action >>> 0;
|
||||
}
|
||||
if (d.intensity != null) {
|
||||
m.intensity = d.intensity >>> 0;
|
||||
}
|
||||
if (d.wordCount != null) {
|
||||
m.wordCount = d.wordCount >>> 0;
|
||||
}
|
||||
return m;
|
||||
};
|
||||
|
||||
BotAvatarMetadata.toObject = function toObject(m, o) {
|
||||
if (!o)
|
||||
o = {};
|
||||
var d = {};
|
||||
if (m.sentiment != null && m.hasOwnProperty("sentiment")) {
|
||||
d.sentiment = m.sentiment;
|
||||
if (o.oneofs)
|
||||
d._sentiment = "sentiment";
|
||||
}
|
||||
if (m.behaviorGraph != null && m.hasOwnProperty("behaviorGraph")) {
|
||||
d.behaviorGraph = m.behaviorGraph;
|
||||
if (o.oneofs)
|
||||
d._behaviorGraph = "behaviorGraph";
|
||||
}
|
||||
if (m.action != null && m.hasOwnProperty("action")) {
|
||||
d.action = m.action;
|
||||
if (o.oneofs)
|
||||
d._action = "action";
|
||||
}
|
||||
if (m.intensity != null && m.hasOwnProperty("intensity")) {
|
||||
d.intensity = m.intensity;
|
||||
if (o.oneofs)
|
||||
d._intensity = "intensity";
|
||||
}
|
||||
if (m.wordCount != null && m.hasOwnProperty("wordCount")) {
|
||||
d.wordCount = m.wordCount;
|
||||
if (o.oneofs)
|
||||
d._wordCount = "wordCount";
|
||||
}
|
||||
return d;
|
||||
};
|
||||
|
||||
BotAvatarMetadata.prototype.toJSON = function toJSON() {
|
||||
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||
};
|
||||
|
||||
BotAvatarMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||
if (typeUrlPrefix === undefined) {
|
||||
typeUrlPrefix = "type.googleapis.com";
|
||||
}
|
||||
return typeUrlPrefix + "/proto.BotAvatarMetadata";
|
||||
};
|
||||
|
||||
return BotAvatarMetadata;
|
||||
})();
|
||||
|
||||
proto.BotCapabilityMetadata = (function() {
|
||||
|
||||
function BotCapabilityMetadata(p) {
|
||||
@@ -10176,6 +10348,7 @@ export const proto = $root.proto = (() => {
|
||||
this[ks[i]] = p[ks[i]];
|
||||
}
|
||||
|
||||
BotMetadata.prototype.avatarMetadata = null;
|
||||
BotMetadata.prototype.personaId = null;
|
||||
BotMetadata.prototype.pluginMetadata = null;
|
||||
BotMetadata.prototype.suggestedPromptMetadata = null;
|
||||
@@ -10217,6 +10390,12 @@ export const proto = $root.proto = (() => {
|
||||
|
||||
let $oneOfFields;
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotMetadata.prototype, "_avatarMetadata", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["avatarMetadata"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(BotMetadata.prototype, "_personaId", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["personaId"]),
|
||||
@@ -10452,6 +10631,8 @@ export const proto = $root.proto = (() => {
|
||||
BotMetadata.encode = function encode(m, w) {
|
||||
if (!w)
|
||||
w = $Writer.create();
|
||||
if (m.avatarMetadata != null && Object.hasOwnProperty.call(m, "avatarMetadata"))
|
||||
$root.proto.BotAvatarMetadata.encode(m.avatarMetadata, w.uint32(10).fork()).ldelim();
|
||||
if (m.personaId != null && Object.hasOwnProperty.call(m, "personaId"))
|
||||
w.uint32(18).string(m.personaId);
|
||||
if (m.pluginMetadata != null && Object.hasOwnProperty.call(m, "pluginMetadata"))
|
||||
@@ -10540,6 +10721,10 @@ export const proto = $root.proto = (() => {
|
||||
if (t === e)
|
||||
break;
|
||||
switch (t >>> 3) {
|
||||
case 1: {
|
||||
m.avatarMetadata = $root.proto.BotAvatarMetadata.decode(r, r.uint32());
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
m.personaId = r.string();
|
||||
break;
|
||||
@@ -10704,6 +10889,11 @@ export const proto = $root.proto = (() => {
|
||||
if (d instanceof $root.proto.BotMetadata)
|
||||
return d;
|
||||
var m = new $root.proto.BotMetadata();
|
||||
if (d.avatarMetadata != null) {
|
||||
if (typeof d.avatarMetadata !== "object")
|
||||
throw TypeError(".proto.BotMetadata.avatarMetadata: object expected");
|
||||
m.avatarMetadata = $root.proto.BotAvatarMetadata.fromObject(d.avatarMetadata);
|
||||
}
|
||||
if (d.personaId != null) {
|
||||
m.personaId = String(d.personaId);
|
||||
}
|
||||
@@ -10891,6 +11081,11 @@ export const proto = $root.proto = (() => {
|
||||
if (!o)
|
||||
o = {};
|
||||
var d = {};
|
||||
if (m.avatarMetadata != null && m.hasOwnProperty("avatarMetadata")) {
|
||||
d.avatarMetadata = $root.proto.BotAvatarMetadata.toObject(m.avatarMetadata, o);
|
||||
if (o.oneofs)
|
||||
d._avatarMetadata = "avatarMetadata";
|
||||
}
|
||||
if (m.personaId != null && m.hasOwnProperty("personaId")) {
|
||||
d.personaId = m.personaId;
|
||||
if (o.oneofs)
|
||||
@@ -21580,6 +21775,7 @@ export const proto = $root.proto = (() => {
|
||||
ContextInfo.prototype.isSpoiler = null;
|
||||
ContextInfo.prototype.mediaDomainInfo = null;
|
||||
ContextInfo.prototype.partiallySelectedContent = null;
|
||||
ContextInfo.prototype.afterReadDurationMs = null;
|
||||
|
||||
let $oneOfFields;
|
||||
|
||||
@@ -21913,6 +22109,12 @@ export const proto = $root.proto = (() => {
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(ContextInfo.prototype, "_afterReadDurationMs", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["afterReadDurationMs"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
ContextInfo.create = function create(properties) {
|
||||
return new ContextInfo(properties);
|
||||
};
|
||||
@@ -22042,6 +22244,8 @@ export const proto = $root.proto = (() => {
|
||||
$root.proto.MediaDomainInfo.encode(m.mediaDomainInfo, w.uint32(594).fork()).ldelim();
|
||||
if (m.partiallySelectedContent != null && Object.hasOwnProperty.call(m, "partiallySelectedContent"))
|
||||
$root.proto.ContextInfo.PartiallySelectedContent.encode(m.partiallySelectedContent, w.uint32(602).fork()).ldelim();
|
||||
if (m.afterReadDurationMs != null && Object.hasOwnProperty.call(m, "afterReadDurationMs"))
|
||||
w.uint32(608).uint32(m.afterReadDurationMs);
|
||||
return w;
|
||||
};
|
||||
|
||||
@@ -22292,6 +22496,10 @@ export const proto = $root.proto = (() => {
|
||||
m.partiallySelectedContent = $root.proto.ContextInfo.PartiallySelectedContent.decode(r, r.uint32());
|
||||
break;
|
||||
}
|
||||
case 76: {
|
||||
m.afterReadDurationMs = r.uint32();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
r.skipType(t & 7);
|
||||
break;
|
||||
@@ -22688,6 +22896,9 @@ export const proto = $root.proto = (() => {
|
||||
throw TypeError(".proto.ContextInfo.partiallySelectedContent: object expected");
|
||||
m.partiallySelectedContent = $root.proto.ContextInfo.PartiallySelectedContent.fromObject(d.partiallySelectedContent);
|
||||
}
|
||||
if (d.afterReadDurationMs != null) {
|
||||
m.afterReadDurationMs = d.afterReadDurationMs >>> 0;
|
||||
}
|
||||
return m;
|
||||
};
|
||||
|
||||
@@ -22996,6 +23207,11 @@ export const proto = $root.proto = (() => {
|
||||
if (o.oneofs)
|
||||
d._partiallySelectedContent = "partiallySelectedContent";
|
||||
}
|
||||
if (m.afterReadDurationMs != null && m.hasOwnProperty("afterReadDurationMs")) {
|
||||
d.afterReadDurationMs = m.afterReadDurationMs;
|
||||
if (o.oneofs)
|
||||
d._afterReadDurationMs = "afterReadDurationMs";
|
||||
}
|
||||
return d;
|
||||
};
|
||||
|
||||
@@ -63762,6 +63978,7 @@ export const proto = $root.proto = (() => {
|
||||
}
|
||||
|
||||
RequestWelcomeMessageMetadata.prototype.localChatState = null;
|
||||
RequestWelcomeMessageMetadata.prototype.welcomeTrigger = null;
|
||||
|
||||
let $oneOfFields;
|
||||
|
||||
@@ -63771,6 +63988,12 @@ export const proto = $root.proto = (() => {
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(RequestWelcomeMessageMetadata.prototype, "_welcomeTrigger", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["welcomeTrigger"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
RequestWelcomeMessageMetadata.create = function create(properties) {
|
||||
return new RequestWelcomeMessageMetadata(properties);
|
||||
};
|
||||
@@ -63780,6 +64003,8 @@ export const proto = $root.proto = (() => {
|
||||
w = $Writer.create();
|
||||
if (m.localChatState != null && Object.hasOwnProperty.call(m, "localChatState"))
|
||||
w.uint32(8).int32(m.localChatState);
|
||||
if (m.welcomeTrigger != null && Object.hasOwnProperty.call(m, "welcomeTrigger"))
|
||||
w.uint32(16).int32(m.welcomeTrigger);
|
||||
return w;
|
||||
};
|
||||
|
||||
@@ -63796,6 +64021,10 @@ export const proto = $root.proto = (() => {
|
||||
m.localChatState = r.int32();
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
m.welcomeTrigger = r.int32();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
r.skipType(t & 7);
|
||||
break;
|
||||
@@ -63824,6 +64053,22 @@ export const proto = $root.proto = (() => {
|
||||
m.localChatState = 1;
|
||||
break;
|
||||
}
|
||||
switch (d.welcomeTrigger) {
|
||||
default:
|
||||
if (typeof d.welcomeTrigger === "number") {
|
||||
m.welcomeTrigger = d.welcomeTrigger;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "CHAT_OPEN":
|
||||
case 0:
|
||||
m.welcomeTrigger = 0;
|
||||
break;
|
||||
case "COMPANION_PAIRING":
|
||||
case 1:
|
||||
m.welcomeTrigger = 1;
|
||||
break;
|
||||
}
|
||||
return m;
|
||||
};
|
||||
|
||||
@@ -63836,6 +64081,11 @@ export const proto = $root.proto = (() => {
|
||||
if (o.oneofs)
|
||||
d._localChatState = "localChatState";
|
||||
}
|
||||
if (m.welcomeTrigger != null && m.hasOwnProperty("welcomeTrigger")) {
|
||||
d.welcomeTrigger = o.enums === String ? $root.proto.Message.RequestWelcomeMessageMetadata.WelcomeTrigger[m.welcomeTrigger] === undefined ? m.welcomeTrigger : $root.proto.Message.RequestWelcomeMessageMetadata.WelcomeTrigger[m.welcomeTrigger] : m.welcomeTrigger;
|
||||
if (o.oneofs)
|
||||
d._welcomeTrigger = "welcomeTrigger";
|
||||
}
|
||||
return d;
|
||||
};
|
||||
|
||||
@@ -63857,6 +64107,13 @@ export const proto = $root.proto = (() => {
|
||||
return values;
|
||||
})();
|
||||
|
||||
RequestWelcomeMessageMetadata.WelcomeTrigger = (function() {
|
||||
const valuesById = {}, values = Object.create(valuesById);
|
||||
values[valuesById[0] = "CHAT_OPEN"] = 0;
|
||||
values[valuesById[1] = "COMPANION_PAIRING"] = 1;
|
||||
return values;
|
||||
})();
|
||||
|
||||
return RequestWelcomeMessageMetadata;
|
||||
})();
|
||||
|
||||
@@ -66409,6 +66666,7 @@ export const proto = $root.proto = (() => {
|
||||
Sticker.prototype.accessibilityLabel = null;
|
||||
Sticker.prototype.isLottie = null;
|
||||
Sticker.prototype.mimetype = null;
|
||||
Sticker.prototype.premium = null;
|
||||
|
||||
let $oneOfFields;
|
||||
|
||||
@@ -66442,6 +66700,12 @@ export const proto = $root.proto = (() => {
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
// Virtual OneOf for proto3 optional field
|
||||
Object.defineProperty(Sticker.prototype, "_premium", {
|
||||
get: $util.oneOfGetter($oneOfFields = ["premium"]),
|
||||
set: $util.oneOfSetter($oneOfFields)
|
||||
});
|
||||
|
||||
Sticker.create = function create(properties) {
|
||||
return new Sticker(properties);
|
||||
};
|
||||
@@ -66463,6 +66727,8 @@ export const proto = $root.proto = (() => {
|
||||
w.uint32(40).bool(m.isLottie);
|
||||
if (m.mimetype != null && Object.hasOwnProperty.call(m, "mimetype"))
|
||||
w.uint32(50).string(m.mimetype);
|
||||
if (m.premium != null && Object.hasOwnProperty.call(m, "premium"))
|
||||
w.uint32(56).int32(m.premium);
|
||||
return w;
|
||||
};
|
||||
|
||||
@@ -66501,6 +66767,10 @@ export const proto = $root.proto = (() => {
|
||||
m.mimetype = r.string();
|
||||
break;
|
||||
}
|
||||
case 7: {
|
||||
m.premium = r.int32();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
r.skipType(t & 7);
|
||||
break;
|
||||
@@ -66536,6 +66806,9 @@ export const proto = $root.proto = (() => {
|
||||
if (d.mimetype != null) {
|
||||
m.mimetype = String(d.mimetype);
|
||||
}
|
||||
if (d.premium != null) {
|
||||
m.premium = d.premium | 0;
|
||||
}
|
||||
return m;
|
||||
};
|
||||
|
||||
@@ -66577,6 +66850,11 @@ export const proto = $root.proto = (() => {
|
||||
if (o.oneofs)
|
||||
d._mimetype = "mimetype";
|
||||
}
|
||||
if (m.premium != null && m.hasOwnProperty("premium")) {
|
||||
d.premium = m.premium;
|
||||
if (o.oneofs)
|
||||
d._premium = "premium";
|
||||
}
|
||||
return d;
|
||||
};
|
||||
|
||||
@@ -80390,6 +80668,10 @@ export const proto = $root.proto = (() => {
|
||||
case 9:
|
||||
m.type = 9;
|
||||
break;
|
||||
case "STATUS_CLOSE_SHARING":
|
||||
case 10:
|
||||
m.type = 10;
|
||||
break;
|
||||
}
|
||||
if (d.actionUrl != null) {
|
||||
m.actionUrl = String(d.actionUrl);
|
||||
@@ -81517,6 +81799,7 @@ export const proto = $root.proto = (() => {
|
||||
values[valuesById[7] = "AI_CREATED"] = 7;
|
||||
values[valuesById[8] = "LAYOUTS"] = 8;
|
||||
values[valuesById[9] = "NEWSLETTER_STATUS"] = 9;
|
||||
values[valuesById[10] = "STATUS_CLOSE_SHARING"] = 10;
|
||||
return values;
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user