@signalapp/mock-server
Version:
Mock Signal Server for writing tests
1,337 lines • 307 kB
TypeScript
type $Oneof<Variants extends Record<string, unknown>> = {
[Key in keyof Variants]: {
[RequiredKey in Key]: Variants[RequiredKey]
} & {
/** @deprecated */
[PartialKey in Exclude<keyof Variants, Key>]?: never;
};
}[keyof Variants];
export namespace signalservice {
export namespace CDSClientRequest {
export function decode(
data: Uint8Array<ArrayBuffer>,
): CDSClientRequest;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
aciUakPairs: Uint8Array<ArrayBuffer> | null;
prevE164s: Uint8Array<ArrayBuffer> | null;
newE164s: Uint8Array<ArrayBuffer> | null;
discardE164s: Uint8Array<ArrayBuffer> | null;
hasMore: boolean | null;
token: Uint8Array<ArrayBuffer> | null;
tokenAck: boolean | null;
returnAcisWithoutUaks: boolean | null;
};
}
export type CDSClientRequest = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
aciUakPairs: Uint8Array<ArrayBuffer> | null;
prevE164s: Uint8Array<ArrayBuffer> | null;
newE164s: Uint8Array<ArrayBuffer> | null;
discardE164s: Uint8Array<ArrayBuffer> | null;
hasMore: boolean | null;
token: Uint8Array<ArrayBuffer> | null;
tokenAck: boolean | null;
returnAcisWithoutUaks: boolean | null;
};
export namespace CDSClientResponse {
export function decode(
data: Uint8Array<ArrayBuffer>,
): CDSClientResponse;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
e164PniAciTriples: Uint8Array<ArrayBuffer> | null;
token: Uint8Array<ArrayBuffer> | null;
};
}
export type CDSClientResponse = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
e164PniAciTriples: Uint8Array<ArrayBuffer> | null;
token: Uint8Array<ArrayBuffer> | null;
};
}
export namespace signalservice {
export namespace CrashReport {
export function decode(
data: Uint8Array<ArrayBuffer>,
): CrashReport;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
filename: string | null;
content: Uint8Array<ArrayBuffer> | null;
};
}
export type CrashReport = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
filename: string;
content: Uint8Array<ArrayBuffer>;
};
export namespace CrashReportList {
export function decode(
data: Uint8Array<ArrayBuffer>,
): CrashReportList;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
reports: Array<signalservice.CrashReport.Params> | null;
};
}
export type CrashReportList = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
reports: Array<signalservice.CrashReport>;
};
}
export namespace signalservice {
export namespace ProvisioningAddress {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ProvisioningAddress;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
address: string | null;
};
}
export type ProvisioningAddress = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
address: string | null;
};
export namespace ProvisionEnvelope {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ProvisionEnvelope;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
publicKey: Uint8Array<ArrayBuffer> | null;
body: Uint8Array<ArrayBuffer> | null;
};
}
export type ProvisionEnvelope = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
publicKey: Uint8Array<ArrayBuffer> | null;
body: Uint8Array<ArrayBuffer> | null;
};
export namespace ProvisionMessage {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ProvisionMessage;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
aciIdentityKeyPublic: Uint8Array<ArrayBuffer> | null;
aciIdentityKeyPrivate: Uint8Array<ArrayBuffer> | null;
pniIdentityKeyPublic: Uint8Array<ArrayBuffer> | null;
pniIdentityKeyPrivate: Uint8Array<ArrayBuffer> | null;
number: string | null;
provisioningCode: string | null;
userAgent: string | null;
profileKey: Uint8Array<ArrayBuffer> | null;
readReceipts: boolean | null;
provisioningVersion: number | null;
masterKey: Uint8Array<ArrayBuffer> | null;
ephemeralBackupKey: Uint8Array<ArrayBuffer> | null;
accountEntropyPool: string | null;
mediaRootBackupKey: Uint8Array<ArrayBuffer> | null;
aciBinary: Uint8Array<ArrayBuffer> | null;
pniBinary: Uint8Array<ArrayBuffer> | null;
};
}
export type ProvisionMessage = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
aciIdentityKeyPublic: Uint8Array<ArrayBuffer> | null;
aciIdentityKeyPrivate: Uint8Array<ArrayBuffer> | null;
pniIdentityKeyPublic: Uint8Array<ArrayBuffer> | null;
pniIdentityKeyPrivate: Uint8Array<ArrayBuffer> | null;
number: string | null;
provisioningCode: string | null;
userAgent: string | null;
profileKey: Uint8Array<ArrayBuffer> | null;
readReceipts: boolean | null;
provisioningVersion: number | null;
masterKey: Uint8Array<ArrayBuffer> | null;
ephemeralBackupKey: Uint8Array<ArrayBuffer> | null;
accountEntropyPool: string | null;
mediaRootBackupKey: Uint8Array<ArrayBuffer> | null;
aciBinary: Uint8Array<ArrayBuffer> | null;
pniBinary: Uint8Array<ArrayBuffer> | null;
};
export enum ProvisioningVersion {
INITIAL = 0,
TABLET_SUPPORT = 1,
CURRENT = 1,
}
export type $NullableProvisioningVersion =
| ProvisioningVersion
| (number & { $signalservice_ProvisioningVersion: never });
}
export namespace signalservice {
export namespace DeviceName {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeviceName;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
ephemeralPublic: Uint8Array<ArrayBuffer> | null;
syntheticIv: Uint8Array<ArrayBuffer> | null;
ciphertext: Uint8Array<ArrayBuffer> | null;
};
}
export type DeviceName = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
ephemeralPublic: Uint8Array<ArrayBuffer> | null;
syntheticIv: Uint8Array<ArrayBuffer> | null;
ciphertext: Uint8Array<ArrayBuffer> | null;
};
}
export namespace signalservice {
export namespace AvatarUploadAttributes {
export function decode(
data: Uint8Array<ArrayBuffer>,
): AvatarUploadAttributes;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
key: string | null;
credential: string | null;
acl: string | null;
algorithm: string | null;
date: string | null;
policy: string | null;
signature: string | null;
};
}
export type AvatarUploadAttributes = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
key: string;
credential: string;
acl: string;
algorithm: string;
date: string;
policy: string;
signature: string;
};
export namespace Member {
export enum Role {
UNKNOWN = 0,
DEFAULT = 1,
ADMINISTRATOR = 2,
}
export type $NullableRole =
| Role
| (number & { $signalservice_Member_Role: never });
export function decode(
data: Uint8Array<ArrayBuffer>,
): Member;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
role: signalservice.Member.$NullableRole | null;
profileKey: Uint8Array<ArrayBuffer> | null;
presentation: Uint8Array<ArrayBuffer> | null;
joinedAtVersion: number | null;
labelEmoji: Uint8Array<ArrayBuffer> | null;
labelString: Uint8Array<ArrayBuffer> | null;
};
}
export type Member = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
role: signalservice.Member.$NullableRole;
profileKey: Uint8Array<ArrayBuffer>;
presentation: Uint8Array<ArrayBuffer>;
joinedAtVersion: number;
labelEmoji: Uint8Array<ArrayBuffer>;
labelString: Uint8Array<ArrayBuffer>;
};
export namespace MemberPendingProfileKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): MemberPendingProfileKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
member: signalservice.Member.Params | null;
addedByUserId: Uint8Array<ArrayBuffer> | null;
timestamp: bigint | null;
};
}
export type MemberPendingProfileKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
member: signalservice.Member | null;
addedByUserId: Uint8Array<ArrayBuffer>;
timestamp: bigint;
};
export namespace MemberPendingAdminApproval {
export function decode(
data: Uint8Array<ArrayBuffer>,
): MemberPendingAdminApproval;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
profileKey: Uint8Array<ArrayBuffer> | null;
presentation: Uint8Array<ArrayBuffer> | null;
timestamp: bigint | null;
};
}
export type MemberPendingAdminApproval = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
profileKey: Uint8Array<ArrayBuffer>;
presentation: Uint8Array<ArrayBuffer>;
timestamp: bigint;
};
export namespace MemberBanned {
export function decode(
data: Uint8Array<ArrayBuffer>,
): MemberBanned;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
timestamp: bigint | null;
};
}
export type MemberBanned = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
timestamp: bigint;
};
export namespace AccessControl {
export enum AccessRequired {
UNKNOWN = 0,
ANY = 1,
MEMBER = 2,
ADMINISTRATOR = 3,
UNSATISFIABLE = 4,
}
export type $NullableAccessRequired =
| AccessRequired
| (number & { $signalservice_AccessControl_AccessRequired: never });
export function decode(
data: Uint8Array<ArrayBuffer>,
): AccessControl;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
attributes: signalservice.AccessControl.$NullableAccessRequired | null;
members: signalservice.AccessControl.$NullableAccessRequired | null;
addFromInviteLink: signalservice.AccessControl.$NullableAccessRequired | null;
memberLabel: signalservice.AccessControl.$NullableAccessRequired | null;
};
}
export type AccessControl = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
attributes: signalservice.AccessControl.$NullableAccessRequired;
members: signalservice.AccessControl.$NullableAccessRequired;
addFromInviteLink: signalservice.AccessControl.$NullableAccessRequired;
memberLabel: signalservice.AccessControl.$NullableAccessRequired;
};
export namespace Group {
export function decode(
data: Uint8Array<ArrayBuffer>,
): Group;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
publicKey: Uint8Array<ArrayBuffer> | null;
title: Uint8Array<ArrayBuffer> | null;
description: Uint8Array<ArrayBuffer> | null;
avatarUrl: string | null;
disappearingMessagesTimer: Uint8Array<ArrayBuffer> | null;
accessControl: signalservice.AccessControl.Params | null;
version: number | null;
members: Array<signalservice.Member.Params> | null;
membersPendingProfileKey: Array<signalservice.MemberPendingProfileKey.Params> | null;
membersPendingAdminApproval: Array<signalservice.MemberPendingAdminApproval.Params> | null;
inviteLinkPassword: Uint8Array<ArrayBuffer> | null;
announcementsOnly: boolean | null;
membersBanned: Array<signalservice.MemberBanned.Params> | null;
terminated: boolean | null;
};
}
export type Group = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
publicKey: Uint8Array<ArrayBuffer>;
title: Uint8Array<ArrayBuffer>;
description: Uint8Array<ArrayBuffer>;
avatarUrl: string;
disappearingMessagesTimer: Uint8Array<ArrayBuffer>;
accessControl: signalservice.AccessControl | null;
version: number;
members: Array<signalservice.Member>;
membersPendingProfileKey: Array<signalservice.MemberPendingProfileKey>;
membersPendingAdminApproval: Array<signalservice.MemberPendingAdminApproval>;
inviteLinkPassword: Uint8Array<ArrayBuffer>;
announcementsOnly: boolean;
membersBanned: Array<signalservice.MemberBanned>;
terminated: boolean;
};
export namespace GroupAttributeBlob {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupAttributeBlob;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
content: null | $Oneof<{title: string; avatar: Uint8Array<ArrayBuffer>; disappearingMessagesDuration: number; descriptionText: string;}>;
};
}
export type GroupAttributeBlob = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
content: null | $Oneof<{title: string; avatar: Uint8Array<ArrayBuffer>; disappearingMessagesDuration: number; descriptionText: string;}>;
};
export namespace GroupInviteLink {
export namespace GroupInviteLinkContentsV1 {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupInviteLinkContentsV1;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupMasterKey: Uint8Array<ArrayBuffer> | null;
inviteLinkPassword: Uint8Array<ArrayBuffer> | null;
};
}
export type GroupInviteLinkContentsV1 = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupMasterKey: Uint8Array<ArrayBuffer>;
inviteLinkPassword: Uint8Array<ArrayBuffer>;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupInviteLink;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
contents: null | $Oneof<{contentsV1: signalservice.GroupInviteLink.GroupInviteLinkContentsV1.Params;}>;
};
}
export type GroupInviteLink = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
contents: null | $Oneof<{contentsV1: signalservice.GroupInviteLink.GroupInviteLinkContentsV1;}>;
};
export namespace GroupJoinInfo {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupJoinInfo;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
publicKey: Uint8Array<ArrayBuffer> | null;
title: Uint8Array<ArrayBuffer> | null;
description: Uint8Array<ArrayBuffer> | null;
avatar: string | null;
memberCount: number | null;
addFromInviteLink: signalservice.AccessControl.$NullableAccessRequired | null;
version: number | null;
pendingAdminApproval: boolean | null;
pendingAdminApprovalFull: boolean | null;
};
}
export type GroupJoinInfo = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
publicKey: Uint8Array<ArrayBuffer>;
title: Uint8Array<ArrayBuffer>;
description: Uint8Array<ArrayBuffer>;
avatar: string;
memberCount: number;
addFromInviteLink: signalservice.AccessControl.$NullableAccessRequired;
version: number;
pendingAdminApproval: boolean;
pendingAdminApprovalFull: boolean;
};
export namespace GroupChange {
export namespace Actions {
export namespace AddMemberAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): AddMemberAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
added: signalservice.Member.Params | null;
joinFromInviteLink: boolean | null;
};
}
export type AddMemberAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
added: signalservice.Member | null;
joinFromInviteLink: boolean;
};
export namespace DeleteMemberAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeleteMemberAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
deletedUserId: Uint8Array<ArrayBuffer> | null;
};
}
export type DeleteMemberAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
deletedUserId: Uint8Array<ArrayBuffer>;
};
export namespace ModifyMemberRoleAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyMemberRoleAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
role: signalservice.Member.$NullableRole | null;
};
}
export type ModifyMemberRoleAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
role: signalservice.Member.$NullableRole;
};
export namespace ModifyMemberLabelAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyMemberLabelAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
labelEmoji: Uint8Array<ArrayBuffer> | null;
labelString: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyMemberLabelAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
labelEmoji: Uint8Array<ArrayBuffer>;
labelString: Uint8Array<ArrayBuffer>;
};
export namespace ModifyMemberProfileKeyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyMemberProfileKeyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
presentation: Uint8Array<ArrayBuffer> | null;
userId: Uint8Array<ArrayBuffer> | null;
profileKey: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyMemberProfileKeyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
presentation: Uint8Array<ArrayBuffer>;
userId: Uint8Array<ArrayBuffer>;
profileKey: Uint8Array<ArrayBuffer>;
};
export namespace AddMemberPendingProfileKeyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): AddMemberPendingProfileKeyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
added: signalservice.MemberPendingProfileKey.Params | null;
};
}
export type AddMemberPendingProfileKeyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
added: signalservice.MemberPendingProfileKey | null;
};
export namespace DeleteMemberPendingProfileKeyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeleteMemberPendingProfileKeyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
deletedUserId: Uint8Array<ArrayBuffer> | null;
};
}
export type DeleteMemberPendingProfileKeyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
deletedUserId: Uint8Array<ArrayBuffer>;
};
export namespace PromoteMemberPendingProfileKeyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): PromoteMemberPendingProfileKeyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
presentation: Uint8Array<ArrayBuffer> | null;
userId: Uint8Array<ArrayBuffer> | null;
profileKey: Uint8Array<ArrayBuffer> | null;
};
}
export type PromoteMemberPendingProfileKeyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
presentation: Uint8Array<ArrayBuffer>;
userId: Uint8Array<ArrayBuffer>;
profileKey: Uint8Array<ArrayBuffer>;
};
export namespace PromoteMemberPendingPniAciProfileKeyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): PromoteMemberPendingPniAciProfileKeyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
presentation: Uint8Array<ArrayBuffer> | null;
userId: Uint8Array<ArrayBuffer> | null;
pni: Uint8Array<ArrayBuffer> | null;
profileKey: Uint8Array<ArrayBuffer> | null;
};
}
export type PromoteMemberPendingPniAciProfileKeyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
presentation: Uint8Array<ArrayBuffer>;
userId: Uint8Array<ArrayBuffer>;
pni: Uint8Array<ArrayBuffer>;
profileKey: Uint8Array<ArrayBuffer>;
};
export namespace AddMemberPendingAdminApprovalAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): AddMemberPendingAdminApprovalAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
added: signalservice.MemberPendingAdminApproval.Params | null;
};
}
export type AddMemberPendingAdminApprovalAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
added: signalservice.MemberPendingAdminApproval | null;
};
export namespace DeleteMemberPendingAdminApprovalAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeleteMemberPendingAdminApprovalAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
deletedUserId: Uint8Array<ArrayBuffer> | null;
};
}
export type DeleteMemberPendingAdminApprovalAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
deletedUserId: Uint8Array<ArrayBuffer>;
};
export namespace PromoteMemberPendingAdminApprovalAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): PromoteMemberPendingAdminApprovalAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
userId: Uint8Array<ArrayBuffer> | null;
role: signalservice.Member.$NullableRole | null;
};
}
export type PromoteMemberPendingAdminApprovalAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
userId: Uint8Array<ArrayBuffer>;
role: signalservice.Member.$NullableRole;
};
export namespace AddMemberBannedAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): AddMemberBannedAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
added: signalservice.MemberBanned.Params | null;
};
}
export type AddMemberBannedAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
added: signalservice.MemberBanned | null;
};
export namespace DeleteMemberBannedAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeleteMemberBannedAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
deletedUserId: Uint8Array<ArrayBuffer> | null;
};
}
export type DeleteMemberBannedAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
deletedUserId: Uint8Array<ArrayBuffer>;
};
export namespace ModifyTitleAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyTitleAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
title: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyTitleAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
title: Uint8Array<ArrayBuffer>;
};
export namespace ModifyDescriptionAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyDescriptionAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
description: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyDescriptionAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
description: Uint8Array<ArrayBuffer>;
};
export namespace ModifyAvatarAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyAvatarAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
avatar: string | null;
};
}
export type ModifyAvatarAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
avatar: string;
};
export namespace ModifyDisappearingMessageTimerAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyDisappearingMessageTimerAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
timer: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyDisappearingMessageTimerAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
timer: Uint8Array<ArrayBuffer>;
};
export namespace ModifyAttributesAccessControlAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyAttributesAccessControlAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
attributesAccess: signalservice.AccessControl.$NullableAccessRequired | null;
};
}
export type ModifyAttributesAccessControlAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
attributesAccess: signalservice.AccessControl.$NullableAccessRequired;
};
export namespace ModifyMembersAccessControlAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyMembersAccessControlAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
membersAccess: signalservice.AccessControl.$NullableAccessRequired | null;
};
}
export type ModifyMembersAccessControlAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
membersAccess: signalservice.AccessControl.$NullableAccessRequired;
};
export namespace ModifyAddFromInviteLinkAccessControlAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyAddFromInviteLinkAccessControlAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
addFromInviteLinkAccess: signalservice.AccessControl.$NullableAccessRequired | null;
};
}
export type ModifyAddFromInviteLinkAccessControlAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
addFromInviteLinkAccess: signalservice.AccessControl.$NullableAccessRequired;
};
export namespace ModifyMemberLabelAccessControlAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyMemberLabelAccessControlAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
memberLabelAccess: signalservice.AccessControl.$NullableAccessRequired | null;
};
}
export type ModifyMemberLabelAccessControlAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
memberLabelAccess: signalservice.AccessControl.$NullableAccessRequired;
};
export namespace ModifyInviteLinkPasswordAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyInviteLinkPasswordAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
inviteLinkPassword: Uint8Array<ArrayBuffer> | null;
};
}
export type ModifyInviteLinkPasswordAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
inviteLinkPassword: Uint8Array<ArrayBuffer>;
};
export namespace ModifyAnnouncementsOnlyAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ModifyAnnouncementsOnlyAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
announcementsOnly: boolean | null;
};
}
export type ModifyAnnouncementsOnlyAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
announcementsOnly: boolean;
};
export namespace TerminateGroupAction {
export function decode(
data: Uint8Array<ArrayBuffer>,
): TerminateGroupAction;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
};
}
export type TerminateGroupAction = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): Actions;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
sourceUserId: Uint8Array<ArrayBuffer> | null;
groupId: Uint8Array<ArrayBuffer> | null;
version: number | null;
addMembers: Array<signalservice.GroupChange.Actions.AddMemberAction.Params> | null;
deleteMembers: Array<signalservice.GroupChange.Actions.DeleteMemberAction.Params> | null;
modifyMemberRoles: Array<signalservice.GroupChange.Actions.ModifyMemberRoleAction.Params> | null;
modifyMemberLabels: Array<signalservice.GroupChange.Actions.ModifyMemberLabelAction.Params> | null;
modifyMemberProfileKeys: Array<signalservice.GroupChange.Actions.ModifyMemberProfileKeyAction.Params> | null;
addMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.AddMemberPendingProfileKeyAction.Params> | null;
deleteMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.DeleteMemberPendingProfileKeyAction.Params> | null;
promoteMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.PromoteMemberPendingProfileKeyAction.Params> | null;
modifyTitle: signalservice.GroupChange.Actions.ModifyTitleAction.Params | null;
modifyAvatar: signalservice.GroupChange.Actions.ModifyAvatarAction.Params | null;
modifyDisappearingMessageTimer: signalservice.GroupChange.Actions.ModifyDisappearingMessageTimerAction.Params | null;
modifyAttributesAccess: signalservice.GroupChange.Actions.ModifyAttributesAccessControlAction.Params | null;
modifyMemberAccess: signalservice.GroupChange.Actions.ModifyMembersAccessControlAction.Params | null;
modifyAddFromInviteLinkAccess: signalservice.GroupChange.Actions.ModifyAddFromInviteLinkAccessControlAction.Params | null;
modifyMemberLabelAccess: signalservice.GroupChange.Actions.ModifyMemberLabelAccessControlAction.Params | null;
addMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.AddMemberPendingAdminApprovalAction.Params> | null;
deleteMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.DeleteMemberPendingAdminApprovalAction.Params> | null;
promoteMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.PromoteMemberPendingAdminApprovalAction.Params> | null;
modifyInviteLinkPassword: signalservice.GroupChange.Actions.ModifyInviteLinkPasswordAction.Params | null;
modifyDescription: signalservice.GroupChange.Actions.ModifyDescriptionAction.Params | null;
modifyAnnouncementsOnly: signalservice.GroupChange.Actions.ModifyAnnouncementsOnlyAction.Params | null;
addMembersBanned: Array<signalservice.GroupChange.Actions.AddMemberBannedAction.Params> | null;
deleteMembersBanned: Array<signalservice.GroupChange.Actions.DeleteMemberBannedAction.Params> | null;
promoteMembersPendingPniAciProfileKey: Array<signalservice.GroupChange.Actions.PromoteMemberPendingPniAciProfileKeyAction.Params> | null;
terminateGroup: signalservice.GroupChange.Actions.TerminateGroupAction.Params | null;
};
}
export type Actions = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
sourceUserId: Uint8Array<ArrayBuffer>;
groupId: Uint8Array<ArrayBuffer>;
version: number;
addMembers: Array<signalservice.GroupChange.Actions.AddMemberAction>;
deleteMembers: Array<signalservice.GroupChange.Actions.DeleteMemberAction>;
modifyMemberRoles: Array<signalservice.GroupChange.Actions.ModifyMemberRoleAction>;
modifyMemberLabels: Array<signalservice.GroupChange.Actions.ModifyMemberLabelAction>;
modifyMemberProfileKeys: Array<signalservice.GroupChange.Actions.ModifyMemberProfileKeyAction>;
addMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.AddMemberPendingProfileKeyAction>;
deleteMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.DeleteMemberPendingProfileKeyAction>;
promoteMembersPendingProfileKey: Array<signalservice.GroupChange.Actions.PromoteMemberPendingProfileKeyAction>;
modifyTitle: signalservice.GroupChange.Actions.ModifyTitleAction | null;
modifyAvatar: signalservice.GroupChange.Actions.ModifyAvatarAction | null;
modifyDisappearingMessageTimer: signalservice.GroupChange.Actions.ModifyDisappearingMessageTimerAction | null;
modifyAttributesAccess: signalservice.GroupChange.Actions.ModifyAttributesAccessControlAction | null;
modifyMemberAccess: signalservice.GroupChange.Actions.ModifyMembersAccessControlAction | null;
modifyAddFromInviteLinkAccess: signalservice.GroupChange.Actions.ModifyAddFromInviteLinkAccessControlAction | null;
modifyMemberLabelAccess: signalservice.GroupChange.Actions.ModifyMemberLabelAccessControlAction | null;
addMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.AddMemberPendingAdminApprovalAction>;
deleteMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.DeleteMemberPendingAdminApprovalAction>;
promoteMembersPendingAdminApproval: Array<signalservice.GroupChange.Actions.PromoteMemberPendingAdminApprovalAction>;
modifyInviteLinkPassword: signalservice.GroupChange.Actions.ModifyInviteLinkPasswordAction | null;
modifyDescription: signalservice.GroupChange.Actions.ModifyDescriptionAction | null;
modifyAnnouncementsOnly: signalservice.GroupChange.Actions.ModifyAnnouncementsOnlyAction | null;
addMembersBanned: Array<signalservice.GroupChange.Actions.AddMemberBannedAction>;
deleteMembersBanned: Array<signalservice.GroupChange.Actions.DeleteMemberBannedAction>;
promoteMembersPendingPniAciProfileKey: Array<signalservice.GroupChange.Actions.PromoteMemberPendingPniAciProfileKeyAction>;
terminateGroup: signalservice.GroupChange.Actions.TerminateGroupAction | null;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupChange;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
actions: Uint8Array<ArrayBuffer> | null;
serverSignature: Uint8Array<ArrayBuffer> | null;
changeEpoch: number | null;
};
}
export type GroupChange = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
actions: Uint8Array<ArrayBuffer>;
serverSignature: Uint8Array<ArrayBuffer>;
changeEpoch: number;
};
export namespace ExternalGroupCredential {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ExternalGroupCredential;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
token: string | null;
};
}
export type ExternalGroupCredential = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
token: string;
};
export namespace GroupResponse {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupResponse;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
group: signalservice.Group.Params | null;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer> | null;
};
}
export type GroupResponse = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
group: signalservice.Group | null;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer>;
};
export namespace GroupChanges {
export namespace GroupChangeState {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupChangeState;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupChange: signalservice.GroupChange.Params | null;
groupState: signalservice.Group.Params | null;
};
}
export type GroupChangeState = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupChange: signalservice.GroupChange | null;
groupState: signalservice.Group | null;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupChanges;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupChanges: Array<signalservice.GroupChanges.GroupChangeState.Params> | null;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer> | null;
};
}
export type GroupChanges = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupChanges: Array<signalservice.GroupChanges.GroupChangeState>;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer>;
};
export namespace GroupChangeResponse {
export function decode(
data: Uint8Array<ArrayBuffer>,
): GroupChangeResponse;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupChange: signalservice.GroupChange.Params | null;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer> | null;
};
}
export type GroupChangeResponse = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupChange: signalservice.GroupChange | null;
groupSendEndorsementsResponse: Uint8Array<ArrayBuffer>;
};
}
export namespace signal {
export namespace proto {
export namespace storage {
export namespace SessionStructure {
export namespace Chain {
export namespace ChainKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): ChainKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
index: number | null;
key: Uint8Array<ArrayBuffer> | null;
};
}
export type ChainKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
index: number;
key: Uint8Array<ArrayBuffer>;
};
export namespace MessageKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): MessageKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
index: number | null;
cipherKey: Uint8Array<ArrayBuffer> | null;
macKey: Uint8Array<ArrayBuffer> | null;
iv: Uint8Array<ArrayBuffer> | null;
};
}
export type MessageKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
index: number;
cipherKey: Uint8Array<ArrayBuffer>;
macKey: Uint8Array<ArrayBuffer>;
iv: Uint8Array<ArrayBuffer>;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): Chain;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
senderRatchetKey: Uint8Array<ArrayBuffer> | null;
senderRatchetKeyPrivate: Uint8Array<ArrayBuffer> | null;
chainKey: signal.proto.storage.SessionStructure.Chain.ChainKey.Params | null;
messageKeys: Array<signal.proto.storage.SessionStructure.Chain.MessageKey.Params> | null;
};
}
export type Chain = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
senderRatchetKey: Uint8Array<ArrayBuffer>;
senderRatchetKeyPrivate: Uint8Array<ArrayBuffer>;
chainKey: signal.proto.storage.SessionStructure.Chain.ChainKey | null;
messageKeys: Array<signal.proto.storage.SessionStructure.Chain.MessageKey>;
};
export namespace PendingPreKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): PendingPreKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
preKeyId: number | null;
signedPreKeyId: number | null;
baseKey: Uint8Array<ArrayBuffer> | null;
};
}
export type PendingPreKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
preKeyId: number;
signedPreKeyId: number;
baseKey: Uint8Array<ArrayBuffer>;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): SessionStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
sessionVersion: number | null;
localIdentityPublic: Uint8Array<ArrayBuffer> | null;
remoteIdentityPublic: Uint8Array<ArrayBuffer> | null;
rootKey: Uint8Array<ArrayBuffer> | null;
previousCounter: number | null;
senderChain: signal.proto.storage.SessionStructure.Chain.Params | null;
receiverChains: Array<signal.proto.storage.SessionStructure.Chain.Params> | null;
pendingPreKey: signal.proto.storage.SessionStructure.PendingPreKey.Params | null;
remoteRegistrationId: number | null;
localRegistrationId: number | null;
needsRefresh: boolean | null;
aliceBaseKey: Uint8Array<ArrayBuffer> | null;
};
}
export type SessionStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
sessionVersion: number;
localIdentityPublic: Uint8Array<ArrayBuffer>;
remoteIdentityPublic: Uint8Array<ArrayBuffer>;
rootKey: Uint8Array<ArrayBuffer>;
previousCounter: number;
senderChain: signal.proto.storage.SessionStructure.Chain | null;
receiverChains: Array<signal.proto.storage.SessionStructure.Chain>;
pendingPreKey: signal.proto.storage.SessionStructure.PendingPreKey | null;
remoteRegistrationId: number;
localRegistrationId: number;
needsRefresh: boolean;
aliceBaseKey: Uint8Array<ArrayBuffer>;
};
export namespace RecordStructure {
export function decode(
data: Uint8Array<ArrayBuffer>,
): RecordStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
currentSession: signal.proto.storage.SessionStructure.Params | null;
previousSessions: Array<signal.proto.storage.SessionStructure.Params> | null;
};
}
export type RecordStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
currentSession: signal.proto.storage.SessionStructure | null;
previousSessions: Array<signal.proto.storage.SessionStructure>;
};
export namespace PreKeyRecordStructure {
export function decode(
data: Uint8Array<ArrayBuffer>,
): PreKeyRecordStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
id: number | null;
publicKey: Uint8Array<ArrayBuffer> | null;
privateKey: Uint8Array<ArrayBuffer> | null;
};
}
export type PreKeyRecordStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
id: number;
publicKey: Uint8Array<ArrayBuffer>;
privateKey: Uint8Array<ArrayBuffer>;
};
export namespace SignedPreKeyRecordStructure {
export function decode(
data: Uint8Array<ArrayBuffer>,
): SignedPreKeyRecordStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
id: number | null;
publicKey: Uint8Array<ArrayBuffer> | null;
privateKey: Uint8Array<ArrayBuffer> | null;
signature: Uint8Array<ArrayBuffer> | null;
timestamp: bigint | null;
};
}
export type SignedPreKeyRecordStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
id: number;
publicKey: Uint8Array<ArrayBuffer>;
privateKey: Uint8Array<ArrayBuffer>;
signature: Uint8Array<ArrayBuffer>;
timestamp: bigint;
};
export namespace IdentityKeyPairStructure {
export function decode(
data: Uint8Array<ArrayBuffer>,
): IdentityKeyPairStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
publicKey: Uint8Array<ArrayBuffer> | null;
privateKey: Uint8Array<ArrayBuffer> | null;
};
}
export type IdentityKeyPairStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
publicKey: Uint8Array<ArrayBuffer>;
privateKey: Uint8Array<ArrayBuffer>;
};
export namespace SenderKeyStateStructure {
export namespace SenderChainKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): SenderChainKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
iteration: number | null;
seed: Uint8Array<ArrayBuffer> | null;
};
}
export type SenderChainKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
iteration: number;
seed: Uint8Array<ArrayBuffer>;
};
export namespace SenderMessageKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): SenderMessageKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
iteration: number | null;
seed: Uint8Array<ArrayBuffer> | null;
};
}
export type SenderMessageKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
iteration: number;
seed: Uint8Array<ArrayBuffer>;
};
export namespace SenderSigningKey {
export function decode(
data: Uint8Array<ArrayBuffer>,
): SenderSigningKey;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
public: Uint8Array<ArrayBuffer> | null;
private: Uint8Array<ArrayBuffer> | null;
};
}
export type SenderSigningKey = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
public: Uint8Array<ArrayBuffer>;
private: Uint8Array<ArrayBuffer>;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): SenderKeyStateStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
senderKeyId: number | null;
senderChainKey: signal.proto.storage.SenderKeyStateStructure.SenderChainKey.Params | null;
senderSigningKey: signal.proto.storage.SenderKeyStateStructure.SenderSigningKey.Params | null;
senderMessageKeys: Array<signal.proto.storage.SenderKeyStateStructure.SenderMessageKey.Params> | null;
};
}
export type SenderKeyStateStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
senderKeyId: number;
senderChainKey: signal.proto.storage.SenderKeyStateStructure.SenderChainKey | null;
senderSigningKey: signal.proto.storage.SenderKeyStateStructure.SenderSigningKey | null;
senderMessageKeys: Array<signal.proto.storage.SenderKeyStateStructure.SenderMessageKey>;
};
export namespace SenderKeyRecordStructure {
export function decode(
data: Uint8Array<ArrayBuffer>,
): SenderKeyRecordStructure;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
senderKeyStates: Array<signal.proto.storage.SenderKeyStateStructure.Params> | null;
};
}
export type SenderKeyRecordStructure = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
senderKeyStates: Array<signal.proto.storage.SenderKeyStateStructure>;
};
}
}
}
export namespace signaling {
export namespace DeviceToDevice {
export function decode(
data: Uint8Array<ArrayBuffer>,
): DeviceToDevice;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupId: Uint8Array<ArrayBuffer> | null;
};
}
export type DeviceToDevice = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupId: Uint8Array<ArrayBuffer> | null;
};
export namespace CallMessage {
export namespace RingIntention {
export enum Type {
RING = 0,
CANCELLED = 1,
}
export type $NullableType =
| Type
| (number & { $signaling_CallMessage_RingIntention_Type: never });
export function decode(
data: Uint8Array<ArrayBuffer>,
): RingIntention;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupId: Uint8Array<ArrayBuffer> | null;
type: signaling.CallMessage.RingIntention.$NullableType | null;
ringId: bigint | null;
};
}
export type RingIntention = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupId: Uint8Array<ArrayBuffer> | null;
type: signaling.CallMessage.RingIntention.$NullableType | null;
ringId: bigint | null;
};
export function decode(
data: Uint8Array<ArrayBuffer>,
): CallMessage;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
groupCallMessage: signaling.DeviceToDevice.Params | null;
ringIntention: signaling.CallMessage.RingIntention.Params | null;
};
}
export type CallMessage = {
$unknown: Array<Uint8Array<ArrayBuffer>>;
groupCallMessage: signaling.DeviceToDevice | null | null;
ringIntention: signaling.CallMessage.RingIntention | null | null;
};
}
export namespace signalservice {
export namespace Envelope {
export enum Type {
UNKNOWN = 0,
DOUBLE_RATCHET = 1,
PREKEY_MESSAGE = 3,
SERVER_DELIVERY_RECEIPT = 5,
UNIDENTIFIED_SENDER = 6,
PLAINTEXT_CONTENT = 8,
}
export type $NullableType =
| Type
| (number & { $signalservice_Envelope_Type: never });
export function decode(
data: Uint8Array<ArrayBuffer>,
): Envelope;
export function encode(data: Params): Uint8Array<ArrayBuffer>;
export type Params = {
$unknown?: Array<Uint8Array<ArrayBuffer>> | null;
type: signalservice.Envelope.$NullableType | null;
sourceServiceId: string | null;
sourceDeviceId: number | null;
destinationServiceId: string | null;
clie