UNPKG

@vreden/meta

Version:

Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.

1,147 lines (917 loc) 251 kB
import * as $protobuf from "protobufjs"; import Long = require("long"); /** Namespace BotMetadata. */ export namespace BotMetadata { /** Properties of a BotMetadata. */ interface IBotMetadata { /** BotMetadata avatarMetadata */ avatarMetadata?: (BotMetadata.IBotAvatarMetadata|null); /** BotMetadata personaId */ personaId?: (string|null); /** BotMetadata pluginMetadata */ pluginMetadata?: (BotMetadata.IBotPluginMetadata|null); /** BotMetadata suggestedPromptMetadata */ suggestedPromptMetadata?: (BotMetadata.IBotSuggestedPromptMetadata|null); /** BotMetadata invokerJid */ invokerJid?: (string|null); /** BotMetadata sessionMetadata */ sessionMetadata?: (BotMetadata.IBotSessionMetadata|null); /** BotMetadata memuMetadata */ memuMetadata?: (BotMetadata.IBotMemuMetadata|null); /** BotMetadata timezone */ timezone?: (string|null); /** BotMetadata reminderMetadata */ reminderMetadata?: (BotMetadata.IBotReminderMetadata|null); /** BotMetadata modelMetadata */ modelMetadata?: (BotMetadata.IBotModelMetadata|null); /** BotMetadata messageDisclaimerText */ messageDisclaimerText?: (string|null); /** BotMetadata progressIndicatorMetadata */ progressIndicatorMetadata?: (BotMetadata.IBotProgressIndicatorMetadata|null); /** BotMetadata capabilityMetadata */ capabilityMetadata?: (BotMetadata.IBotCapabilityMetadata|null); /** BotMetadata imagineMetadata */ imagineMetadata?: (BotMetadata.IBotImagineMetadata|null); /** BotMetadata memoryMetadata */ memoryMetadata?: (BotMetadata.IBotMemoryMetadata|null); /** BotMetadata renderingMetadata */ renderingMetadata?: (BotMetadata.IBotRenderingMetadata|null); /** BotMetadata botMetricsMetadata */ botMetricsMetadata?: (BotMetadata.IBotMetricsMetadata|null); /** BotMetadata botLinkedAccountsMetadata */ botLinkedAccountsMetadata?: (BotMetadata.IBotLinkedAccountsMetadata|null); /** BotMetadata richResponseSourcesMetadata */ richResponseSourcesMetadata?: (BotMetadata.IBotSourcesMetadata|null); /** BotMetadata aiConversationContext */ aiConversationContext?: (Uint8Array|null); /** BotMetadata botPromotionMessageMetadata */ botPromotionMessageMetadata?: (BotMetadata.IBotPromotionMessageMetadata|null); /** BotMetadata botModeSelectionMetadata */ botModeSelectionMetadata?: (BotMetadata.IBotModeSelectionMetadata|null); /** BotMetadata botQuotaMetadata */ botQuotaMetadata?: (BotMetadata.IBotQuotaMetadata|null); /** BotMetadata botAgeCollectionMetadata */ botAgeCollectionMetadata?: (BotMetadata.IBotAgeCollectionMetadata|null); /** BotMetadata conversationStarterPromptId */ conversationStarterPromptId?: (string|null); /** BotMetadata botResponseId */ botResponseId?: (string|null); /** BotMetadata verificationMetadata */ verificationMetadata?: (BotMetadata.IBotSignatureVerificationMetadata|null); /** BotMetadata unifiedResponseMutation */ unifiedResponseMutation?: (BotMetadata.IBotUnifiedResponseMutation|null); /** BotMetadata botMessageOriginMetadata */ botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null); /** BotMetadata inThreadSurveyMetadata */ inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null); /** BotMetadata botThreadInfo */ botThreadInfo?: (BotMetadata.IAIThreadInfo|null); } /** Represents a BotMetadata. */ class BotMetadata implements IBotMetadata { /** * Constructs a new BotMetadata. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IBotMetadata); /** BotMetadata avatarMetadata. */ public avatarMetadata?: (BotMetadata.IBotAvatarMetadata|null); /** BotMetadata personaId. */ public personaId: string; /** BotMetadata pluginMetadata. */ public pluginMetadata?: (BotMetadata.IBotPluginMetadata|null); /** BotMetadata suggestedPromptMetadata. */ public suggestedPromptMetadata?: (BotMetadata.IBotSuggestedPromptMetadata|null); /** BotMetadata invokerJid. */ public invokerJid: string; /** BotMetadata sessionMetadata. */ public sessionMetadata?: (BotMetadata.IBotSessionMetadata|null); /** BotMetadata memuMetadata. */ public memuMetadata?: (BotMetadata.IBotMemuMetadata|null); /** BotMetadata timezone. */ public timezone: string; /** BotMetadata reminderMetadata. */ public reminderMetadata?: (BotMetadata.IBotReminderMetadata|null); /** BotMetadata modelMetadata. */ public modelMetadata?: (BotMetadata.IBotModelMetadata|null); /** BotMetadata messageDisclaimerText. */ public messageDisclaimerText: string; /** BotMetadata progressIndicatorMetadata. */ public progressIndicatorMetadata?: (BotMetadata.IBotProgressIndicatorMetadata|null); /** BotMetadata capabilityMetadata. */ public capabilityMetadata?: (BotMetadata.IBotCapabilityMetadata|null); /** BotMetadata imagineMetadata. */ public imagineMetadata?: (BotMetadata.IBotImagineMetadata|null); /** BotMetadata memoryMetadata. */ public memoryMetadata?: (BotMetadata.IBotMemoryMetadata|null); /** BotMetadata renderingMetadata. */ public renderingMetadata?: (BotMetadata.IBotRenderingMetadata|null); /** BotMetadata botMetricsMetadata. */ public botMetricsMetadata?: (BotMetadata.IBotMetricsMetadata|null); /** BotMetadata botLinkedAccountsMetadata. */ public botLinkedAccountsMetadata?: (BotMetadata.IBotLinkedAccountsMetadata|null); /** BotMetadata richResponseSourcesMetadata. */ public richResponseSourcesMetadata?: (BotMetadata.IBotSourcesMetadata|null); /** BotMetadata aiConversationContext. */ public aiConversationContext: Uint8Array; /** BotMetadata botPromotionMessageMetadata. */ public botPromotionMessageMetadata?: (BotMetadata.IBotPromotionMessageMetadata|null); /** BotMetadata botModeSelectionMetadata. */ public botModeSelectionMetadata?: (BotMetadata.IBotModeSelectionMetadata|null); /** BotMetadata botQuotaMetadata. */ public botQuotaMetadata?: (BotMetadata.IBotQuotaMetadata|null); /** BotMetadata botAgeCollectionMetadata. */ public botAgeCollectionMetadata?: (BotMetadata.IBotAgeCollectionMetadata|null); /** BotMetadata conversationStarterPromptId. */ public conversationStarterPromptId: string; /** BotMetadata botResponseId. */ public botResponseId: string; /** BotMetadata verificationMetadata. */ public verificationMetadata?: (BotMetadata.IBotSignatureVerificationMetadata|null); /** BotMetadata unifiedResponseMutation. */ public unifiedResponseMutation?: (BotMetadata.IBotUnifiedResponseMutation|null); /** BotMetadata botMessageOriginMetadata. */ public botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null); /** BotMetadata inThreadSurveyMetadata. */ public inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null); /** BotMetadata botThreadInfo. */ public botThreadInfo?: (BotMetadata.IAIThreadInfo|null); /** * Creates a new BotMetadata instance using the specified properties. * @param [properties] Properties to set * @returns BotMetadata instance */ public static create(properties?: BotMetadata.IBotMetadata): BotMetadata.BotMetadata; /** * Encodes the specified BotMetadata message. Does not implicitly {@link BotMetadata.BotMetadata.verify|verify} messages. * @param message BotMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IBotMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BotMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotMetadata.verify|verify} messages. * @param message BotMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IBotMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BotMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BotMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.BotMetadata; /** * Decodes a BotMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BotMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.BotMetadata; /** * Verifies a BotMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BotMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BotMetadata */ public static fromObject(object: { [k: string]: any }): BotMetadata.BotMetadata; /** * Creates a plain object from a BotMetadata message. Also converts values to other types if specified. * @param message BotMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.BotMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BotMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BotMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a AIThreadInfo. */ interface IAIThreadInfo { /** AIThreadInfo serverInfo */ serverInfo?: (BotMetadata.AIThreadInfo.IAIThreadServerInfo|null); /** AIThreadInfo clientInfo */ clientInfo?: (BotMetadata.AIThreadInfo.IAIThreadClientInfo|null); } /** Represents a AIThreadInfo. */ class AIThreadInfo implements IAIThreadInfo { /** * Constructs a new AIThreadInfo. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IAIThreadInfo); /** AIThreadInfo serverInfo. */ public serverInfo?: (BotMetadata.AIThreadInfo.IAIThreadServerInfo|null); /** AIThreadInfo clientInfo. */ public clientInfo?: (BotMetadata.AIThreadInfo.IAIThreadClientInfo|null); /** * Creates a new AIThreadInfo instance using the specified properties. * @param [properties] Properties to set * @returns AIThreadInfo instance */ public static create(properties?: BotMetadata.IAIThreadInfo): BotMetadata.AIThreadInfo; /** * Encodes the specified AIThreadInfo message. Does not implicitly {@link BotMetadata.AIThreadInfo.verify|verify} messages. * @param message AIThreadInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IAIThreadInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AIThreadInfo message, length delimited. Does not implicitly {@link BotMetadata.AIThreadInfo.verify|verify} messages. * @param message AIThreadInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IAIThreadInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a AIThreadInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AIThreadInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.AIThreadInfo; /** * Decodes a AIThreadInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AIThreadInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.AIThreadInfo; /** * Verifies a AIThreadInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a AIThreadInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AIThreadInfo */ public static fromObject(object: { [k: string]: any }): BotMetadata.AIThreadInfo; /** * Creates a plain object from a AIThreadInfo message. Also converts values to other types if specified. * @param message AIThreadInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.AIThreadInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AIThreadInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AIThreadInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIThreadInfo { /** Properties of a AIThreadClientInfo. */ interface IAIThreadClientInfo { /** AIThreadClientInfo type */ type?: (BotMetadata.AIThreadInfo.AIThreadClientInfo.AIThreadType|null); } /** Represents a AIThreadClientInfo. */ class AIThreadClientInfo implements IAIThreadClientInfo { /** * Constructs a new AIThreadClientInfo. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.AIThreadInfo.IAIThreadClientInfo); /** AIThreadClientInfo type. */ public type: BotMetadata.AIThreadInfo.AIThreadClientInfo.AIThreadType; /** * Creates a new AIThreadClientInfo instance using the specified properties. * @param [properties] Properties to set * @returns AIThreadClientInfo instance */ public static create(properties?: BotMetadata.AIThreadInfo.IAIThreadClientInfo): BotMetadata.AIThreadInfo.AIThreadClientInfo; /** * Encodes the specified AIThreadClientInfo message. Does not implicitly {@link BotMetadata.AIThreadInfo.AIThreadClientInfo.verify|verify} messages. * @param message AIThreadClientInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.AIThreadInfo.IAIThreadClientInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AIThreadClientInfo message, length delimited. Does not implicitly {@link BotMetadata.AIThreadInfo.AIThreadClientInfo.verify|verify} messages. * @param message AIThreadClientInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.AIThreadInfo.IAIThreadClientInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a AIThreadClientInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AIThreadClientInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.AIThreadInfo.AIThreadClientInfo; /** * Decodes a AIThreadClientInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AIThreadClientInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.AIThreadInfo.AIThreadClientInfo; /** * Verifies a AIThreadClientInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a AIThreadClientInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AIThreadClientInfo */ public static fromObject(object: { [k: string]: any }): BotMetadata.AIThreadInfo.AIThreadClientInfo; /** * Creates a plain object from a AIThreadClientInfo message. Also converts values to other types if specified. * @param message AIThreadClientInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.AIThreadInfo.AIThreadClientInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AIThreadClientInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AIThreadClientInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AIThreadClientInfo { /** AIThreadType enum. */ enum AIThreadType { UNKNOWN = 0, DEFAULT = 1, INCOGNITO = 2 } } /** Properties of a AIThreadServerInfo. */ interface IAIThreadServerInfo { /** AIThreadServerInfo title */ title?: (string|null); } /** Represents a AIThreadServerInfo. */ class AIThreadServerInfo implements IAIThreadServerInfo { /** * Constructs a new AIThreadServerInfo. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.AIThreadInfo.IAIThreadServerInfo); /** AIThreadServerInfo title. */ public title: string; /** * Creates a new AIThreadServerInfo instance using the specified properties. * @param [properties] Properties to set * @returns AIThreadServerInfo instance */ public static create(properties?: BotMetadata.AIThreadInfo.IAIThreadServerInfo): BotMetadata.AIThreadInfo.AIThreadServerInfo; /** * Encodes the specified AIThreadServerInfo message. Does not implicitly {@link BotMetadata.AIThreadInfo.AIThreadServerInfo.verify|verify} messages. * @param message AIThreadServerInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.AIThreadInfo.IAIThreadServerInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AIThreadServerInfo message, length delimited. Does not implicitly {@link BotMetadata.AIThreadInfo.AIThreadServerInfo.verify|verify} messages. * @param message AIThreadServerInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.AIThreadInfo.IAIThreadServerInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a AIThreadServerInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AIThreadServerInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.AIThreadInfo.AIThreadServerInfo; /** * Decodes a AIThreadServerInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AIThreadServerInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.AIThreadInfo.AIThreadServerInfo; /** * Verifies a AIThreadServerInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a AIThreadServerInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AIThreadServerInfo */ public static fromObject(object: { [k: string]: any }): BotMetadata.AIThreadInfo.AIThreadServerInfo; /** * Creates a plain object from a AIThreadServerInfo message. Also converts values to other types if specified. * @param message AIThreadServerInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.AIThreadInfo.AIThreadServerInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AIThreadServerInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AIThreadServerInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Properties of a BotUnifiedResponseMutation. */ interface IBotUnifiedResponseMutation { /** BotUnifiedResponseMutation sbsMetadata */ sbsMetadata?: (BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata|null); } /** Represents a BotUnifiedResponseMutation. */ class BotUnifiedResponseMutation implements IBotUnifiedResponseMutation { /** * Constructs a new BotUnifiedResponseMutation. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IBotUnifiedResponseMutation); /** BotUnifiedResponseMutation sbsMetadata. */ public sbsMetadata?: (BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata|null); /** * Creates a new BotUnifiedResponseMutation instance using the specified properties. * @param [properties] Properties to set * @returns BotUnifiedResponseMutation instance */ public static create(properties?: BotMetadata.IBotUnifiedResponseMutation): BotMetadata.BotUnifiedResponseMutation; /** * Encodes the specified BotUnifiedResponseMutation message. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.verify|verify} messages. * @param message BotUnifiedResponseMutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IBotUnifiedResponseMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BotUnifiedResponseMutation message, length delimited. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.verify|verify} messages. * @param message BotUnifiedResponseMutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IBotUnifiedResponseMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BotUnifiedResponseMutation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BotUnifiedResponseMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.BotUnifiedResponseMutation; /** * Decodes a BotUnifiedResponseMutation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BotUnifiedResponseMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.BotUnifiedResponseMutation; /** * Verifies a BotUnifiedResponseMutation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BotUnifiedResponseMutation message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BotUnifiedResponseMutation */ public static fromObject(object: { [k: string]: any }): BotMetadata.BotUnifiedResponseMutation; /** * Creates a plain object from a BotUnifiedResponseMutation message. Also converts values to other types if specified. * @param message BotUnifiedResponseMutation * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.BotUnifiedResponseMutation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BotUnifiedResponseMutation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BotUnifiedResponseMutation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotUnifiedResponseMutation { /** Properties of a SideBySideMetadata. */ interface ISideBySideMetadata { /** SideBySideMetadata primaryResponseId */ primaryResponseId?: (string|null); } /** Represents a SideBySideMetadata. */ class SideBySideMetadata implements ISideBySideMetadata { /** * Constructs a new SideBySideMetadata. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata); /** SideBySideMetadata primaryResponseId. */ public primaryResponseId: string; /** * Creates a new SideBySideMetadata instance using the specified properties. * @param [properties] Properties to set * @returns SideBySideMetadata instance */ public static create(properties?: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata; /** * Encodes the specified SideBySideMetadata message. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata.verify|verify} messages. * @param message SideBySideMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SideBySideMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata.verify|verify} messages. * @param message SideBySideMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.BotUnifiedResponseMutation.ISideBySideMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SideBySideMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SideBySideMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata; /** * Decodes a SideBySideMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SideBySideMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata; /** * Verifies a SideBySideMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SideBySideMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SideBySideMetadata */ public static fromObject(object: { [k: string]: any }): BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata; /** * Creates a plain object from a SideBySideMetadata message. Also converts values to other types if specified. * @param message SideBySideMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.BotUnifiedResponseMutation.SideBySideMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SideBySideMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SideBySideMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Properties of a BotMessageOrigin. */ interface IBotMessageOrigin { /** BotMessageOrigin type */ type?: (BotMetadata.BotMessageOrigin.BotMessageOriginType|null); } /** Represents a BotMessageOrigin. */ class BotMessageOrigin implements IBotMessageOrigin { /** * Constructs a new BotMessageOrigin. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IBotMessageOrigin); /** BotMessageOrigin type. */ public type: BotMetadata.BotMessageOrigin.BotMessageOriginType; /** * Creates a new BotMessageOrigin instance using the specified properties. * @param [properties] Properties to set * @returns BotMessageOrigin instance */ public static create(properties?: BotMetadata.IBotMessageOrigin): BotMetadata.BotMessageOrigin; /** * Encodes the specified BotMessageOrigin message. Does not implicitly {@link BotMetadata.BotMessageOrigin.verify|verify} messages. * @param message BotMessageOrigin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IBotMessageOrigin, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BotMessageOrigin message, length delimited. Does not implicitly {@link BotMetadata.BotMessageOrigin.verify|verify} messages. * @param message BotMessageOrigin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IBotMessageOrigin, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BotMessageOrigin message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BotMessageOrigin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.BotMessageOrigin; /** * Decodes a BotMessageOrigin message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BotMessageOrigin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.BotMessageOrigin; /** * Verifies a BotMessageOrigin message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BotMessageOrigin message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BotMessageOrigin */ public static fromObject(object: { [k: string]: any }): BotMetadata.BotMessageOrigin; /** * Creates a plain object from a BotMessageOrigin message. Also converts values to other types if specified. * @param message BotMessageOrigin * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.BotMessageOrigin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BotMessageOrigin to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BotMessageOrigin * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BotMessageOrigin { /** BotMessageOriginType enum. */ enum BotMessageOriginType { BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0 } } /** Properties of a BotMessageOriginMetadata. */ interface IBotMessageOriginMetadata { /** BotMessageOriginMetadata origins */ origins?: (BotMetadata.IBotMessageOrigin[]|null); } /** Represents a BotMessageOriginMetadata. */ class BotMessageOriginMetadata implements IBotMessageOriginMetadata { /** * Constructs a new BotMessageOriginMetadata. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IBotMessageOriginMetadata); /** BotMessageOriginMetadata origins. */ public origins: BotMetadata.IBotMessageOrigin[]; /** * Creates a new BotMessageOriginMetadata instance using the specified properties. * @param [properties] Properties to set * @returns BotMessageOriginMetadata instance */ public static create(properties?: BotMetadata.IBotMessageOriginMetadata): BotMetadata.BotMessageOriginMetadata; /** * Encodes the specified BotMessageOriginMetadata message. Does not implicitly {@link BotMetadata.BotMessageOriginMetadata.verify|verify} messages. * @param message BotMessageOriginMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IBotMessageOriginMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BotMessageOriginMetadata message, length delimited. Does not implicitly {@link BotMetadata.BotMessageOriginMetadata.verify|verify} messages. * @param message BotMessageOriginMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IBotMessageOriginMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BotMessageOriginMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BotMessageOriginMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.BotMessageOriginMetadata; /** * Decodes a BotMessageOriginMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BotMessageOriginMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.BotMessageOriginMetadata; /** * Verifies a BotMessageOriginMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BotMessageOriginMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BotMessageOriginMetadata */ public static fromObject(object: { [k: string]: any }): BotMetadata.BotMessageOriginMetadata; /** * Creates a plain object from a BotMessageOriginMetadata message. Also converts values to other types if specified. * @param message BotMessageOriginMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: BotMetadata.BotMessageOriginMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BotMessageOriginMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BotMessageOriginMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an InThreadSurveyMetadata. */ interface IInThreadSurveyMetadata { /** InThreadSurveyMetadata tessaSessionId */ tessaSessionId?: (string|null); /** InThreadSurveyMetadata simonSessionId */ simonSessionId?: (string|null); /** InThreadSurveyMetadata simonSurveyId */ simonSurveyId?: (string|null); /** InThreadSurveyMetadata tessaRootId */ tessaRootId?: (string|null); /** InThreadSurveyMetadata requestId */ requestId?: (string|null); /** InThreadSurveyMetadata tessaEvent */ tessaEvent?: (string|null); /** InThreadSurveyMetadata invitationHeaderText */ invitationHeaderText?: (string|null); /** InThreadSurveyMetadata invitationBodyText */ invitationBodyText?: (string|null); /** InThreadSurveyMetadata invitationCtaText */ invitationCtaText?: (string|null); /** InThreadSurveyMetadata invitationCtaUrl */ invitationCtaUrl?: (string|null); /** InThreadSurveyMetadata surveyTitle */ surveyTitle?: (string|null); /** InThreadSurveyMetadata questions */ questions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null); /** InThreadSurveyMetadata surveyContinueButtonText */ surveyContinueButtonText?: (string|null); /** InThreadSurveyMetadata surveySubmitButtonText */ surveySubmitButtonText?: (string|null); /** InThreadSurveyMetadata privacyStatementFull */ privacyStatementFull?: (string|null); /** InThreadSurveyMetadata privacyStatementParts */ privacyStatementParts?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null); /** InThreadSurveyMetadata feedbackToastText */ feedbackToastText?: (string|null); } /** Represents an InThreadSurveyMetadata. */ class InThreadSurveyMetadata implements IInThreadSurveyMetadata { /** * Constructs a new InThreadSurveyMetadata. * @param [properties] Properties to set */ constructor(properties?: BotMetadata.IInThreadSurveyMetadata); /** InThreadSurveyMetadata tessaSessionId. */ public tessaSessionId: string; /** InThreadSurveyMetadata simonSessionId. */ public simonSessionId: string; /** InThreadSurveyMetadata simonSurveyId. */ public simonSurveyId: string; /** InThreadSurveyMetadata tessaRootId. */ public tessaRootId: string; /** InThreadSurveyMetadata requestId. */ public requestId: string; /** InThreadSurveyMetadata tessaEvent. */ public tessaEvent: string; /** InThreadSurveyMetadata invitationHeaderText. */ public invitationHeaderText: string; /** InThreadSurveyMetadata invitationBodyText. */ public invitationBodyText: string; /** InThreadSurveyMetadata invitationCtaText. */ public invitationCtaText: string; /** InThreadSurveyMetadata invitationCtaUrl. */ public invitationCtaUrl: string; /** InThreadSurveyMetadata surveyTitle. */ public surveyTitle: string; /** InThreadSurveyMetadata questions. */ public questions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]; /** InThreadSurveyMetadata surveyContinueButtonText. */ public surveyContinueButtonText: string; /** InThreadSurveyMetadata surveySubmitButtonText. */ public surveySubmitButtonText: string; /** InThreadSurveyMetadata privacyStatementFull. */ public privacyStatementFull: string; /** InThreadSurveyMetadata privacyStatementParts. */ public privacyStatementParts: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]; /** InThreadSurveyMetadata feedbackToastText. */ public feedbackToastText: string; /** * Creates a new InThreadSurveyMetadata instance using the specified properties. * @param [properties] Properties to set * @returns InThreadSurveyMetadata instance */ public static create(properties?: BotMetadata.IInThreadSurveyMetadata): BotMetadata.InThreadSurveyMetadata; /** * Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages. * @param message InThreadSurveyMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages. * @param message InThreadSurveyMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an InThreadSurveyMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns InThreadSurveyMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata; /** * Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns InThreadSurveyMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public