@signalapp/mock-server
Version:
Mock Signal Server for writing tests
1,262 lines (1,023 loc) • 951 kB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace signalservice. */
export namespace signalservice {
/** Properties of a CDSClientRequest. */
interface ICDSClientRequest {
/** CDSClientRequest aciUakPairs */
aciUakPairs?: (Uint8Array|null);
/** CDSClientRequest prevE164s */
prevE164s?: (Uint8Array|null);
/** CDSClientRequest newE164s */
newE164s?: (Uint8Array|null);
/** CDSClientRequest discardE164s */
discardE164s?: (Uint8Array|null);
/** CDSClientRequest hasMore */
hasMore?: (boolean|null);
/** CDSClientRequest token */
token?: (Uint8Array|null);
/** CDSClientRequest tokenAck */
tokenAck?: (boolean|null);
/** CDSClientRequest returnAcisWithoutUaks */
returnAcisWithoutUaks?: (boolean|null);
}
/** Represents a CDSClientRequest. */
class CDSClientRequest implements ICDSClientRequest {
/**
* Constructs a new CDSClientRequest.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.ICDSClientRequest);
/** CDSClientRequest aciUakPairs. */
public aciUakPairs: Uint8Array;
/** CDSClientRequest prevE164s. */
public prevE164s: Uint8Array;
/** CDSClientRequest newE164s. */
public newE164s: Uint8Array;
/** CDSClientRequest discardE164s. */
public discardE164s: Uint8Array;
/** CDSClientRequest hasMore. */
public hasMore: boolean;
/** CDSClientRequest token. */
public token: Uint8Array;
/** CDSClientRequest tokenAck. */
public tokenAck: boolean;
/** CDSClientRequest returnAcisWithoutUaks. */
public returnAcisWithoutUaks: boolean;
/**
* Creates a new CDSClientRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CDSClientRequest instance
*/
public static create(properties?: signalservice.ICDSClientRequest): signalservice.CDSClientRequest;
/**
* Encodes the specified CDSClientRequest message. Does not implicitly {@link signalservice.CDSClientRequest.verify|verify} messages.
* @param message CDSClientRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.ICDSClientRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CDSClientRequest message, length delimited. Does not implicitly {@link signalservice.CDSClientRequest.verify|verify} messages.
* @param message CDSClientRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.ICDSClientRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CDSClientRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CDSClientRequest
* @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): signalservice.CDSClientRequest;
/**
* Decodes a CDSClientRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CDSClientRequest
* @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)): signalservice.CDSClientRequest;
/**
* Verifies a CDSClientRequest 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 CDSClientRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CDSClientRequest
*/
public static fromObject(object: { [k: string]: any }): signalservice.CDSClientRequest;
/**
* Creates a plain object from a CDSClientRequest message. Also converts values to other types if specified.
* @param message CDSClientRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.CDSClientRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CDSClientRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CDSClientRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CDSClientResponse. */
interface ICDSClientResponse {
/** CDSClientResponse e164PniAciTriples */
e164PniAciTriples?: (Uint8Array|null);
/** CDSClientResponse token */
token?: (Uint8Array|null);
}
/** Represents a CDSClientResponse. */
class CDSClientResponse implements ICDSClientResponse {
/**
* Constructs a new CDSClientResponse.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.ICDSClientResponse);
/** CDSClientResponse e164PniAciTriples. */
public e164PniAciTriples: Uint8Array;
/** CDSClientResponse token. */
public token: Uint8Array;
/**
* Creates a new CDSClientResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns CDSClientResponse instance
*/
public static create(properties?: signalservice.ICDSClientResponse): signalservice.CDSClientResponse;
/**
* Encodes the specified CDSClientResponse message. Does not implicitly {@link signalservice.CDSClientResponse.verify|verify} messages.
* @param message CDSClientResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.ICDSClientResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CDSClientResponse message, length delimited. Does not implicitly {@link signalservice.CDSClientResponse.verify|verify} messages.
* @param message CDSClientResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.ICDSClientResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CDSClientResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CDSClientResponse
* @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): signalservice.CDSClientResponse;
/**
* Decodes a CDSClientResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CDSClientResponse
* @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)): signalservice.CDSClientResponse;
/**
* Verifies a CDSClientResponse 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 CDSClientResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CDSClientResponse
*/
public static fromObject(object: { [k: string]: any }): signalservice.CDSClientResponse;
/**
* Creates a plain object from a CDSClientResponse message. Also converts values to other types if specified.
* @param message CDSClientResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.CDSClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CDSClientResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CDSClientResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CrashReport. */
interface ICrashReport {
/** CrashReport filename */
filename?: (string|null);
/** CrashReport content */
content?: (Uint8Array|null);
}
/** Represents a CrashReport. */
class CrashReport implements ICrashReport {
/**
* Constructs a new CrashReport.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.ICrashReport);
/** CrashReport filename. */
public filename: string;
/** CrashReport content. */
public content: Uint8Array;
/**
* Creates a new CrashReport instance using the specified properties.
* @param [properties] Properties to set
* @returns CrashReport instance
*/
public static create(properties?: signalservice.ICrashReport): signalservice.CrashReport;
/**
* Encodes the specified CrashReport message. Does not implicitly {@link signalservice.CrashReport.verify|verify} messages.
* @param message CrashReport message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.ICrashReport, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CrashReport message, length delimited. Does not implicitly {@link signalservice.CrashReport.verify|verify} messages.
* @param message CrashReport message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.ICrashReport, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CrashReport message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CrashReport
* @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): signalservice.CrashReport;
/**
* Decodes a CrashReport message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CrashReport
* @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)): signalservice.CrashReport;
/**
* Verifies a CrashReport 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 CrashReport message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CrashReport
*/
public static fromObject(object: { [k: string]: any }): signalservice.CrashReport;
/**
* Creates a plain object from a CrashReport message. Also converts values to other types if specified.
* @param message CrashReport
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.CrashReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CrashReport to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CrashReport
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CrashReportList. */
interface ICrashReportList {
/** CrashReportList reports */
reports?: (signalservice.ICrashReport[]|null);
}
/** Represents a CrashReportList. */
class CrashReportList implements ICrashReportList {
/**
* Constructs a new CrashReportList.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.ICrashReportList);
/** CrashReportList reports. */
public reports: signalservice.ICrashReport[];
/**
* Creates a new CrashReportList instance using the specified properties.
* @param [properties] Properties to set
* @returns CrashReportList instance
*/
public static create(properties?: signalservice.ICrashReportList): signalservice.CrashReportList;
/**
* Encodes the specified CrashReportList message. Does not implicitly {@link signalservice.CrashReportList.verify|verify} messages.
* @param message CrashReportList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.ICrashReportList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CrashReportList message, length delimited. Does not implicitly {@link signalservice.CrashReportList.verify|verify} messages.
* @param message CrashReportList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.ICrashReportList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CrashReportList message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CrashReportList
* @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): signalservice.CrashReportList;
/**
* Decodes a CrashReportList message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CrashReportList
* @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)): signalservice.CrashReportList;
/**
* Verifies a CrashReportList 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 CrashReportList message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CrashReportList
*/
public static fromObject(object: { [k: string]: any }): signalservice.CrashReportList;
/**
* Creates a plain object from a CrashReportList message. Also converts values to other types if specified.
* @param message CrashReportList
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.CrashReportList, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CrashReportList to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CrashReportList
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ProvisioningUuid. */
interface IProvisioningUuid {
/** ProvisioningUuid uuid */
uuid?: (string|null);
}
/** Represents a ProvisioningUuid. */
class ProvisioningUuid implements IProvisioningUuid {
/**
* Constructs a new ProvisioningUuid.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IProvisioningUuid);
/** ProvisioningUuid uuid. */
public uuid: string;
/**
* Creates a new ProvisioningUuid instance using the specified properties.
* @param [properties] Properties to set
* @returns ProvisioningUuid instance
*/
public static create(properties?: signalservice.IProvisioningUuid): signalservice.ProvisioningUuid;
/**
* Encodes the specified ProvisioningUuid message. Does not implicitly {@link signalservice.ProvisioningUuid.verify|verify} messages.
* @param message ProvisioningUuid message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IProvisioningUuid, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProvisioningUuid message, length delimited. Does not implicitly {@link signalservice.ProvisioningUuid.verify|verify} messages.
* @param message ProvisioningUuid message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IProvisioningUuid, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProvisioningUuid message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProvisioningUuid
* @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): signalservice.ProvisioningUuid;
/**
* Decodes a ProvisioningUuid message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProvisioningUuid
* @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)): signalservice.ProvisioningUuid;
/**
* Verifies a ProvisioningUuid 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 ProvisioningUuid message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProvisioningUuid
*/
public static fromObject(object: { [k: string]: any }): signalservice.ProvisioningUuid;
/**
* Creates a plain object from a ProvisioningUuid message. Also converts values to other types if specified.
* @param message ProvisioningUuid
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.ProvisioningUuid, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProvisioningUuid to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProvisioningUuid
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ProvisionEnvelope. */
interface IProvisionEnvelope {
/** ProvisionEnvelope publicKey */
publicKey?: (Uint8Array|null);
/** ProvisionEnvelope body */
body?: (Uint8Array|null);
}
/** Represents a ProvisionEnvelope. */
class ProvisionEnvelope implements IProvisionEnvelope {
/**
* Constructs a new ProvisionEnvelope.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IProvisionEnvelope);
/** ProvisionEnvelope publicKey. */
public publicKey: Uint8Array;
/** ProvisionEnvelope body. */
public body: Uint8Array;
/**
* Creates a new ProvisionEnvelope instance using the specified properties.
* @param [properties] Properties to set
* @returns ProvisionEnvelope instance
*/
public static create(properties?: signalservice.IProvisionEnvelope): signalservice.ProvisionEnvelope;
/**
* Encodes the specified ProvisionEnvelope message. Does not implicitly {@link signalservice.ProvisionEnvelope.verify|verify} messages.
* @param message ProvisionEnvelope message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IProvisionEnvelope, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProvisionEnvelope message, length delimited. Does not implicitly {@link signalservice.ProvisionEnvelope.verify|verify} messages.
* @param message ProvisionEnvelope message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IProvisionEnvelope, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProvisionEnvelope message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProvisionEnvelope
* @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): signalservice.ProvisionEnvelope;
/**
* Decodes a ProvisionEnvelope message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProvisionEnvelope
* @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)): signalservice.ProvisionEnvelope;
/**
* Verifies a ProvisionEnvelope 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 ProvisionEnvelope message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProvisionEnvelope
*/
public static fromObject(object: { [k: string]: any }): signalservice.ProvisionEnvelope;
/**
* Creates a plain object from a ProvisionEnvelope message. Also converts values to other types if specified.
* @param message ProvisionEnvelope
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.ProvisionEnvelope, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProvisionEnvelope to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProvisionEnvelope
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ProvisionMessage. */
interface IProvisionMessage {
/** ProvisionMessage aciIdentityKeyPublic */
aciIdentityKeyPublic?: (Uint8Array|null);
/** ProvisionMessage aciIdentityKeyPrivate */
aciIdentityKeyPrivate?: (Uint8Array|null);
/** ProvisionMessage pniIdentityKeyPublic */
pniIdentityKeyPublic?: (Uint8Array|null);
/** ProvisionMessage pniIdentityKeyPrivate */
pniIdentityKeyPrivate?: (Uint8Array|null);
/** ProvisionMessage aci */
aci?: (string|null);
/** ProvisionMessage pni */
pni?: (string|null);
/** ProvisionMessage number */
number?: (string|null);
/** ProvisionMessage provisioningCode */
provisioningCode?: (string|null);
/** ProvisionMessage userAgent */
userAgent?: (string|null);
/** ProvisionMessage profileKey */
profileKey?: (Uint8Array|null);
/** ProvisionMessage readReceipts */
readReceipts?: (boolean|null);
/** ProvisionMessage ProvisioningVersion */
ProvisioningVersion?: (number|null);
/** ProvisionMessage masterKey */
masterKey?: (Uint8Array|null);
/** ProvisionMessage ephemeralBackupKey */
ephemeralBackupKey?: (Uint8Array|null);
/** ProvisionMessage accountEntropyPool */
accountEntropyPool?: (string|null);
/** ProvisionMessage mediaRootBackupKey */
mediaRootBackupKey?: (Uint8Array|null);
}
/** Represents a ProvisionMessage. */
class ProvisionMessage implements IProvisionMessage {
/**
* Constructs a new ProvisionMessage.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IProvisionMessage);
/** ProvisionMessage aciIdentityKeyPublic. */
public aciIdentityKeyPublic: Uint8Array;
/** ProvisionMessage aciIdentityKeyPrivate. */
public aciIdentityKeyPrivate: Uint8Array;
/** ProvisionMessage pniIdentityKeyPublic. */
public pniIdentityKeyPublic: Uint8Array;
/** ProvisionMessage pniIdentityKeyPrivate. */
public pniIdentityKeyPrivate: Uint8Array;
/** ProvisionMessage aci. */
public aci: string;
/** ProvisionMessage pni. */
public pni: string;
/** ProvisionMessage number. */
public number: string;
/** ProvisionMessage provisioningCode. */
public provisioningCode: string;
/** ProvisionMessage userAgent. */
public userAgent: string;
/** ProvisionMessage profileKey. */
public profileKey: Uint8Array;
/** ProvisionMessage readReceipts. */
public readReceipts: boolean;
/** ProvisionMessage ProvisioningVersion. */
public ProvisioningVersion: number;
/** ProvisionMessage masterKey. */
public masterKey: Uint8Array;
/** ProvisionMessage ephemeralBackupKey. */
public ephemeralBackupKey: Uint8Array;
/** ProvisionMessage accountEntropyPool. */
public accountEntropyPool: string;
/** ProvisionMessage mediaRootBackupKey. */
public mediaRootBackupKey: Uint8Array;
/**
* Creates a new ProvisionMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns ProvisionMessage instance
*/
public static create(properties?: signalservice.IProvisionMessage): signalservice.ProvisionMessage;
/**
* Encodes the specified ProvisionMessage message. Does not implicitly {@link signalservice.ProvisionMessage.verify|verify} messages.
* @param message ProvisionMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IProvisionMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProvisionMessage message, length delimited. Does not implicitly {@link signalservice.ProvisionMessage.verify|verify} messages.
* @param message ProvisionMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IProvisionMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProvisionMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProvisionMessage
* @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): signalservice.ProvisionMessage;
/**
* Decodes a ProvisionMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProvisionMessage
* @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)): signalservice.ProvisionMessage;
/**
* Verifies a ProvisionMessage 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 ProvisionMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProvisionMessage
*/
public static fromObject(object: { [k: string]: any }): signalservice.ProvisionMessage;
/**
* Creates a plain object from a ProvisionMessage message. Also converts values to other types if specified.
* @param message ProvisionMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.ProvisionMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProvisionMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProvisionMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** ProvisioningVersion enum. */
enum ProvisioningVersion {
INITIAL = 0,
TABLET_SUPPORT = 1,
CURRENT = 1
}
/** Properties of a DeviceName. */
interface IDeviceName {
/** DeviceName ephemeralPublic */
ephemeralPublic?: (Uint8Array|null);
/** DeviceName syntheticIv */
syntheticIv?: (Uint8Array|null);
/** DeviceName ciphertext */
ciphertext?: (Uint8Array|null);
}
/** Represents a DeviceName. */
class DeviceName implements IDeviceName {
/**
* Constructs a new DeviceName.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IDeviceName);
/** DeviceName ephemeralPublic. */
public ephemeralPublic: Uint8Array;
/** DeviceName syntheticIv. */
public syntheticIv: Uint8Array;
/** DeviceName ciphertext. */
public ciphertext: Uint8Array;
/**
* Creates a new DeviceName instance using the specified properties.
* @param [properties] Properties to set
* @returns DeviceName instance
*/
public static create(properties?: signalservice.IDeviceName): signalservice.DeviceName;
/**
* Encodes the specified DeviceName message. Does not implicitly {@link signalservice.DeviceName.verify|verify} messages.
* @param message DeviceName message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IDeviceName, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DeviceName message, length delimited. Does not implicitly {@link signalservice.DeviceName.verify|verify} messages.
* @param message DeviceName message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IDeviceName, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DeviceName message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DeviceName
* @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): signalservice.DeviceName;
/**
* Decodes a DeviceName message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DeviceName
* @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)): signalservice.DeviceName;
/**
* Verifies a DeviceName 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 DeviceName message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DeviceName
*/
public static fromObject(object: { [k: string]: any }): signalservice.DeviceName;
/**
* Creates a plain object from a DeviceName message. Also converts values to other types if specified.
* @param message DeviceName
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.DeviceName, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DeviceName to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DeviceName
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an AvatarUploadAttributes. */
interface IAvatarUploadAttributes {
/** AvatarUploadAttributes key */
key?: (string|null);
/** AvatarUploadAttributes credential */
credential?: (string|null);
/** AvatarUploadAttributes acl */
acl?: (string|null);
/** AvatarUploadAttributes algorithm */
algorithm?: (string|null);
/** AvatarUploadAttributes date */
date?: (string|null);
/** AvatarUploadAttributes policy */
policy?: (string|null);
/** AvatarUploadAttributes signature */
signature?: (string|null);
}
/** Represents an AvatarUploadAttributes. */
class AvatarUploadAttributes implements IAvatarUploadAttributes {
/**
* Constructs a new AvatarUploadAttributes.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IAvatarUploadAttributes);
/** AvatarUploadAttributes key. */
public key: string;
/** AvatarUploadAttributes credential. */
public credential: string;
/** AvatarUploadAttributes acl. */
public acl: string;
/** AvatarUploadAttributes algorithm. */
public algorithm: string;
/** AvatarUploadAttributes date. */
public date: string;
/** AvatarUploadAttributes policy. */
public policy: string;
/** AvatarUploadAttributes signature. */
public signature: string;
/**
* Creates a new AvatarUploadAttributes instance using the specified properties.
* @param [properties] Properties to set
* @returns AvatarUploadAttributes instance
*/
public static create(properties?: signalservice.IAvatarUploadAttributes): signalservice.AvatarUploadAttributes;
/**
* Encodes the specified AvatarUploadAttributes message. Does not implicitly {@link signalservice.AvatarUploadAttributes.verify|verify} messages.
* @param message AvatarUploadAttributes message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IAvatarUploadAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AvatarUploadAttributes message, length delimited. Does not implicitly {@link signalservice.AvatarUploadAttributes.verify|verify} messages.
* @param message AvatarUploadAttributes message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IAvatarUploadAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AvatarUploadAttributes message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AvatarUploadAttributes
* @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): signalservice.AvatarUploadAttributes;
/**
* Decodes an AvatarUploadAttributes message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AvatarUploadAttributes
* @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)): signalservice.AvatarUploadAttributes;
/**
* Verifies an AvatarUploadAttributes 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 an AvatarUploadAttributes message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AvatarUploadAttributes
*/
public static fromObject(object: { [k: string]: any }): signalservice.AvatarUploadAttributes;
/**
* Creates a plain object from an AvatarUploadAttributes message. Also converts values to other types if specified.
* @param message AvatarUploadAttributes
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.AvatarUploadAttributes, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AvatarUploadAttributes to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AvatarUploadAttributes
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Member. */
interface IMember {
/** Member userId */
userId?: (Uint8Array|null);
/** Member role */
role?: (signalservice.Member.Role|null);
/** Member profileKey */
profileKey?: (Uint8Array|null);
/** Member presentation */
presentation?: (Uint8Array|null);
/** Member joinedAtVersion */
joinedAtVersion?: (number|null);
}
/** Represents a Member. */
class Member implements IMember {
/**
* Constructs a new Member.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IMember);
/** Member userId. */
public userId: Uint8Array;
/** Member role. */
public role: signalservice.Member.Role;
/** Member profileKey. */
public profileKey: Uint8Array;
/** Member presentation. */
public presentation: Uint8Array;
/** Member joinedAtVersion. */
public joinedAtVersion: number;
/**
* Creates a new Member instance using the specified properties.
* @param [properties] Properties to set
* @returns Member instance
*/
public static create(properties?: signalservice.IMember): signalservice.Member;
/**
* Encodes the specified Member message. Does not implicitly {@link signalservice.Member.verify|verify} messages.
* @param message Member message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IMember, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Member message, length delimited. Does not implicitly {@link signalservice.Member.verify|verify} messages.
* @param message Member message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: signalservice.IMember, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Member message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Member
* @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): signalservice.Member;
/**
* Decodes a Member message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Member
* @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)): signalservice.Member;
/**
* Verifies a Member 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 Member message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Member
*/
public static fromObject(object: { [k: string]: any }): signalservice.Member;
/**
* Creates a plain object from a Member message. Also converts values to other types if specified.
* @param message Member
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: signalservice.Member, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Member to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Member
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace Member {
/** Role enum. */
enum Role {
UNKNOWN = 0,
DEFAULT = 1,
ADMINISTRATOR = 2
}
}
/** Properties of a MemberPendingProfileKey. */
interface IMemberPendingProfileKey {
/** MemberPendingProfileKey member */
member?: (signalservice.IMember|null);
/** MemberPendingProfileKey addedByUserId */
addedByUserId?: (Uint8Array|null);
/** MemberPendingProfileKey timestamp */
timestamp?: (Long|null);
}
/** Represents a MemberPendingProfileKey. */
class MemberPendingProfileKey implements IMemberPendingProfileKey {
/**
* Constructs a new MemberPendingProfileKey.
* @param [properties] Properties to set
*/
constructor(properties?: signalservice.IMemberPendingProfileKey);
/** MemberPendingProfileKey member. */
public member?: (signalservice.IMember|null);
/** MemberPendingProfileKey addedByUserId. */
public addedByUserId: Uint8Array;
/** MemberPendingProfileKey timestamp. */
public timestamp: Long;
/**
* Creates a new MemberPendingProfileKey instance using the specified properties.
* @param [properties] Properties to set
* @returns MemberPendingProfileKey instance
*/
public static create(properties?: signalservice.IMemberPendingProfileKey): signalservice.MemberPendingProfileKey;
/**
* Encodes the specified MemberPendingProfileKey message. Does not implicitly {@link signalservice.MemberPendingProfileKey.verify|verify} messages.
* @param message MemberPendingProfileKey message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: signalservice.IMemberPendingProfileKey, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MemberPend