From f342f97da9ae5b097db1de530ce397586d17fc09 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Tue, 24 May 2022 15:34:03 +0200 Subject: [PATCH] style(status-js): regenerate protso --- .../protos/application-metadata-message.ts | 14 +--- packages/status-js/protos/chat-identity.ts | 27 +++---- packages/status-js/protos/chat-message.ts | 39 ++++------ packages/status-js/protos/communities.ts | 77 ++++++++----------- packages/status-js/protos/emoji-reaction.ts | 25 ++---- packages/status-js/protos/enums.ts | 8 +- packages/status-js/protos/pin-message.ts | 20 ++--- packages/status-js/protos/status-update.ts | 15 +--- 8 files changed, 81 insertions(+), 144 deletions(-) diff --git a/packages/status-js/protos/application-metadata-message.ts b/packages/status-js/protos/application-metadata-message.ts index 2243c72..1ae6df3 100644 --- a/packages/status-js/protos/application-metadata-message.ts +++ b/packages/status-js/protos/application-metadata-message.ts @@ -1,13 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - enumeration, - encodeMessage, - decodeMessage, - message, - bytes, -} from 'protons-runtime' +import { enumeration, encodeMessage, decodeMessage, message, bytes } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface ApplicationMetadataMessage { @@ -51,7 +45,7 @@ export namespace ApplicationMetadataMessage { TYPE_STATUS_UPDATE = 'TYPE_STATUS_UPDATE', TYPE_DELETE_MESSAGE = 'TYPE_DELETE_MESSAGE', TYPE_SYNC_INSTALLATION_COMMUNITY = 'TYPE_SYNC_INSTALLATION_COMMUNITY', - TYPE_ANONYMOUS_METRIC_BATCH = 'TYPE_ANONYMOUS_METRIC_BATCH', + TYPE_ANONYMOUS_METRIC_BATCH = 'TYPE_ANONYMOUS_METRIC_BATCH' } enum __TypeValues { @@ -88,7 +82,7 @@ export namespace ApplicationMetadataMessage { TYPE_STATUS_UPDATE = 30, TYPE_DELETE_MESSAGE = 31, TYPE_SYNC_INSTALLATION_COMMUNITY = 32, - TYPE_ANONYMOUS_METRIC_BATCH = 33, + TYPE_ANONYMOUS_METRIC_BATCH = 33 } export namespace Type { @@ -101,7 +95,7 @@ export namespace ApplicationMetadataMessage { return message({ 1: { name: 'signature', codec: bytes }, 2: { name: 'payload', codec: bytes }, - 3: { name: 'type', codec: ApplicationMetadataMessage.Type.codec() }, + 3: { name: 'type', codec: ApplicationMetadataMessage.Type.codec() } }) } diff --git a/packages/status-js/protos/chat-identity.ts b/packages/status-js/protos/chat-identity.ts index 8696a67..4560a9f 100644 --- a/packages/status-js/protos/chat-identity.ts +++ b/packages/status-js/protos/chat-identity.ts @@ -1,16 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - encodeMessage, - decodeMessage, - message, - uint64, - string, - enumeration, - bytes, - bool, -} from 'protons-runtime' +import { encodeMessage, decodeMessage, message, uint64, string, enumeration, bytes, bool } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface ChatIdentity { @@ -32,7 +23,7 @@ export namespace ChatIdentity { 4: { name: 'displayName', codec: string }, 5: { name: 'description', codec: string }, 6: { name: 'color', codec: string }, - 7: { name: 'emoji', codec: string }, + 7: { name: 'emoji', codec: string } }) } @@ -57,13 +48,13 @@ export namespace IdentityImage { export enum SourceType { UNKNOWN_SOURCE_TYPE = 'UNKNOWN_SOURCE_TYPE', RAW_PAYLOAD = 'RAW_PAYLOAD', - ENS_AVATAR = 'ENS_AVATAR', + ENS_AVATAR = 'ENS_AVATAR' } enum __SourceTypeValues { UNKNOWN_SOURCE_TYPE = 0, RAW_PAYLOAD = 1, - ENS_AVATAR = 2, + ENS_AVATAR = 2 } export namespace SourceType { @@ -78,7 +69,7 @@ export namespace IdentityImage { 2: { name: 'sourceType', codec: IdentityImage.SourceType.codec() }, 3: { name: 'imageType', codec: ImageType.codec() }, 4: { name: 'encryptionKeys', codec: bytes, repeats: true }, - 5: { name: 'encrypted', codec: bool }, + 5: { name: 'encrypted', codec: bool } }) } @@ -98,7 +89,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -108,7 +99,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -121,7 +112,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -129,7 +120,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/chat-message.ts b/packages/status-js/protos/chat-message.ts index f854f41..45147a6 100644 --- a/packages/status-js/protos/chat-message.ts +++ b/packages/status-js/protos/chat-message.ts @@ -1,16 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - encodeMessage, - decodeMessage, - message, - string, - int32, - bytes, - enumeration, - uint64, -} from 'protons-runtime' +import { encodeMessage, decodeMessage, message, string, int32, bytes, enumeration, uint64 } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface StickerMessage { @@ -22,7 +13,7 @@ export namespace StickerMessage { export const codec = (): Codec => { return message({ 1: { name: 'hash', codec: string }, - 2: { name: 'pack', codec: int32 }, + 2: { name: 'pack', codec: int32 } }) } @@ -44,7 +35,7 @@ export namespace ImageMessage { export const codec = (): Codec => { return message({ 1: { name: 'payload', codec: bytes }, - 2: { name: 'type', codec: ImageType.codec() }, + 2: { name: 'type', codec: ImageType.codec() } }) } @@ -67,13 +58,13 @@ export namespace AudioMessage { export enum AudioType { UNKNOWN_AUDIO_TYPE = 'UNKNOWN_AUDIO_TYPE', AAC = 'AAC', - AMR = 'AMR', + AMR = 'AMR' } enum __AudioTypeValues { UNKNOWN_AUDIO_TYPE = 0, AAC = 1, - AMR = 2, + AMR = 2 } export namespace AudioType { @@ -86,7 +77,7 @@ export namespace AudioMessage { return message({ 1: { name: 'payload', codec: bytes }, 2: { name: 'type', codec: AudioMessage.AudioType.codec() }, - 3: { name: 'durationMs', codec: uint64 }, + 3: { name: 'durationMs', codec: uint64 } }) } @@ -116,7 +107,7 @@ export namespace EditMessage { 3: { name: 'chatId', codec: string }, 4: { name: 'messageId', codec: string }, 5: { name: 'grant', codec: bytes }, - 6: { name: 'messageType', codec: MessageType.codec() }, + 6: { name: 'messageType', codec: MessageType.codec() } }) } @@ -144,7 +135,7 @@ export namespace DeleteMessage { 2: { name: 'chatId', codec: string }, 3: { name: 'messageId', codec: string }, 4: { name: 'grant', codec: bytes }, - 5: { name: 'messageType', codec: MessageType.codec() }, + 5: { name: 'messageType', codec: MessageType.codec() } }) } @@ -186,7 +177,7 @@ export namespace ChatMessage { IMAGE = 'IMAGE', AUDIO = 'AUDIO', COMMUNITY = 'COMMUNITY', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __ContentTypeValues { @@ -200,7 +191,7 @@ export namespace ChatMessage { IMAGE = 7, AUDIO = 8, COMMUNITY = 9, - SYSTEM_MESSAGE_GAP = 10, + SYSTEM_MESSAGE_GAP = 10 } export namespace ContentType { @@ -224,7 +215,7 @@ export namespace ChatMessage { 11: { name: 'audio', codec: AudioMessage.codec() }, 12: { name: 'community', codec: bytes }, 13: { name: 'grant', codec: bytes }, - 14: { name: 'displayName', codec: string }, + 14: { name: 'displayName', codec: string } }) } @@ -244,7 +235,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -254,7 +245,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -267,7 +258,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -275,7 +266,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/communities.ts b/packages/status-js/protos/communities.ts index cd7510a..a857f4d 100644 --- a/packages/status-js/protos/communities.ts +++ b/packages/status-js/protos/communities.ts @@ -1,18 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - encodeMessage, - decodeMessage, - message, - bytes, - string, - uint64, - enumeration, - bool, - int32, - uint32, -} from 'protons-runtime' +import { encodeMessage, decodeMessage, message, bytes, string, uint64, enumeration, bool, int32, uint32 } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface Grant { @@ -28,7 +17,7 @@ export namespace Grant { 1: { name: 'communityId', codec: bytes }, 2: { name: 'memberId', codec: bytes }, 3: { name: 'chatId', codec: string }, - 4: { name: 'clock', codec: uint64 }, + 4: { name: 'clock', codec: uint64 } }) } @@ -49,13 +38,13 @@ export namespace CommunityMember { export enum Roles { UNKNOWN_ROLE = 'UNKNOWN_ROLE', ROLE_ALL = 'ROLE_ALL', - ROLE_MANAGE_USERS = 'ROLE_MANAGE_USERS', + ROLE_MANAGE_USERS = 'ROLE_MANAGE_USERS' } enum __RolesValues { UNKNOWN_ROLE = 0, ROLE_ALL = 1, - ROLE_MANAGE_USERS = 2, + ROLE_MANAGE_USERS = 2 } export namespace Roles { @@ -66,7 +55,7 @@ export namespace CommunityMember { export const codec = (): Codec => { return message({ - 1: { name: 'roles', codec: CommunityMember.Roles.codec(), repeats: true }, + 1: { name: 'roles', codec: CommunityMember.Roles.codec(), repeats: true } }) } @@ -90,14 +79,14 @@ export namespace CommunityPermissions { UNKNOWN_ACCESS = 'UNKNOWN_ACCESS', NO_MEMBERSHIP = 'NO_MEMBERSHIP', INVITATION_ONLY = 'INVITATION_ONLY', - ON_REQUEST = 'ON_REQUEST', + ON_REQUEST = 'ON_REQUEST' } enum __AccessValues { UNKNOWN_ACCESS = 0, NO_MEMBERSHIP = 1, INVITATION_ONLY = 2, - ON_REQUEST = 3, + ON_REQUEST = 3 } export namespace Access { @@ -110,7 +99,7 @@ export namespace CommunityPermissions { return message({ 1: { name: 'ensOnly', codec: bool }, 2: { name: 'private', codec: bool }, - 3: { name: 'access', codec: CommunityPermissions.Access.codec() }, + 3: { name: 'access', codec: CommunityPermissions.Access.codec() } }) } @@ -146,7 +135,7 @@ export namespace CommunityDescription { 7: { name: 'banList', codec: string, repeats: true }, 8: { name: 'categories', codec: CommunityCategory.codec() }, 9: { name: 'archiveMagnetlinkClock', codec: uint64 }, - 10: { name: 'adminSettings', codec: CommunityAdminSettings.codec() }, + 10: { name: 'adminSettings', codec: CommunityAdminSettings.codec() } }) } @@ -166,7 +155,7 @@ export interface CommunityAdminSettings { export namespace CommunityAdminSettings { export const codec = (): Codec => { return message({ - 1: { name: 'pinMessageAllMembersEnabled', codec: bool }, + 1: { name: 'pinMessageAllMembersEnabled', codec: bool } }) } @@ -194,7 +183,7 @@ export namespace CommunityChat { 2: { name: 'permissions', codec: CommunityPermissions.codec() }, 3: { name: 'identity', codec: ChatIdentity.codec() }, 4: { name: 'categoryId', codec: string }, - 5: { name: 'position', codec: int32 }, + 5: { name: 'position', codec: int32 } }) } @@ -218,7 +207,7 @@ export namespace CommunityCategory { return message({ 1: { name: 'categoryId', codec: string }, 2: { name: 'name', codec: string }, - 3: { name: 'position', codec: int32 }, + 3: { name: 'position', codec: int32 } }) } @@ -244,7 +233,7 @@ export namespace CommunityInvitation { 1: { name: 'communityDescription', codec: bytes }, 2: { name: 'grant', codec: bytes }, 3: { name: 'chatId', codec: string }, - 4: { name: 'publicKey', codec: bytes }, + 4: { name: 'publicKey', codec: bytes } }) } @@ -270,7 +259,7 @@ export namespace CommunityRequestToJoin { 1: { name: 'clock', codec: uint64 }, 2: { name: 'ensName', codec: string }, 3: { name: 'chatId', codec: string }, - 4: { name: 'communityId', codec: bytes }, + 4: { name: 'communityId', codec: bytes } }) } @@ -296,7 +285,7 @@ export namespace CommunityRequestToJoinResponse { 1: { name: 'clock', codec: uint64 }, 2: { name: 'community', codec: CommunityDescription.codec() }, 3: { name: 'accepted', codec: bool }, - 4: { name: 'grant', codec: bytes }, + 4: { name: 'grant', codec: bytes } }) } @@ -318,19 +307,15 @@ export namespace CommunityMessageArchiveMagnetlink { export const codec = (): Codec => { return message({ 1: { name: 'clock', codec: uint64 }, - 2: { name: 'magnetUri', codec: string }, + 2: { name: 'magnetUri', codec: string } }) } - export const encode = ( - obj: CommunityMessageArchiveMagnetlink - ): Uint8Array => { + export const encode = (obj: CommunityMessageArchiveMagnetlink): Uint8Array => { return encodeMessage(obj, CommunityMessageArchiveMagnetlink.codec()) } - export const decode = ( - buf: Uint8Array - ): CommunityMessageArchiveMagnetlink => { + export const decode = (buf: Uint8Array): CommunityMessageArchiveMagnetlink => { return decodeMessage(buf, CommunityMessageArchiveMagnetlink.codec()) } } @@ -352,7 +337,7 @@ export namespace WakuMessage { 3: { name: 'topic', codec: bytes }, 4: { name: 'payload', codec: bytes }, 5: { name: 'padding', codec: bytes }, - 6: { name: 'hash', codec: bytes }, + 6: { name: 'hash', codec: bytes } }) } @@ -378,7 +363,7 @@ export namespace WakuMessageArchiveMetadata { 1: { name: 'version', codec: uint32 }, 2: { name: 'from', codec: uint64 }, 3: { name: 'to', codec: uint64 }, - 4: { name: 'contentTopic', codec: bytes, repeats: true }, + 4: { name: 'contentTopic', codec: bytes, repeats: true } }) } @@ -402,7 +387,7 @@ export namespace WakuMessageArchive { return message({ 1: { name: 'version', codec: uint32 }, 2: { name: 'metadata', codec: WakuMessageArchiveMetadata.codec() }, - 3: { name: 'messages', codec: WakuMessage.codec(), repeats: true }, + 3: { name: 'messages', codec: WakuMessage.codec(), repeats: true } }) } @@ -430,7 +415,7 @@ export namespace WakuMessageArchiveIndexMetadata { 2: { name: 'metadata', codec: WakuMessageArchiveMetadata.codec() }, 3: { name: 'offset', codec: uint64 }, 4: { name: 'size', codec: uint64 }, - 5: { name: 'padding', codec: uint64 }, + 5: { name: 'padding', codec: uint64 } }) } @@ -450,7 +435,7 @@ export interface WakuMessageArchiveIndex { export namespace WakuMessageArchiveIndex { export const codec = (): Codec => { return message({ - 1: { name: 'archives', codec: WakuMessageArchiveIndexMetadata.codec() }, + 1: { name: 'archives', codec: WakuMessageArchiveIndexMetadata.codec() } }) } @@ -482,7 +467,7 @@ export namespace ChatIdentity { 4: { name: 'displayName', codec: string }, 5: { name: 'description', codec: string }, 6: { name: 'color', codec: string }, - 7: { name: 'emoji', codec: string }, + 7: { name: 'emoji', codec: string } }) } @@ -507,13 +492,13 @@ export namespace IdentityImage { export enum SourceType { UNKNOWN_SOURCE_TYPE = 'UNKNOWN_SOURCE_TYPE', RAW_PAYLOAD = 'RAW_PAYLOAD', - ENS_AVATAR = 'ENS_AVATAR', + ENS_AVATAR = 'ENS_AVATAR' } enum __SourceTypeValues { UNKNOWN_SOURCE_TYPE = 0, RAW_PAYLOAD = 1, - ENS_AVATAR = 2, + ENS_AVATAR = 2 } export namespace SourceType { @@ -528,7 +513,7 @@ export namespace IdentityImage { 2: { name: 'sourceType', codec: IdentityImage.SourceType.codec() }, 3: { name: 'imageType', codec: ImageType.codec() }, 4: { name: 'encryptionKeys', codec: bytes, repeats: true }, - 5: { name: 'encrypted', codec: bool }, + 5: { name: 'encrypted', codec: bool } }) } @@ -548,7 +533,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -558,7 +543,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -571,7 +556,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -579,7 +564,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/emoji-reaction.ts b/packages/status-js/protos/emoji-reaction.ts index b8c6980..635c39f 100644 --- a/packages/status-js/protos/emoji-reaction.ts +++ b/packages/status-js/protos/emoji-reaction.ts @@ -1,16 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - enumeration, - encodeMessage, - decodeMessage, - message, - uint64, - string, - bool, - bytes, -} from 'protons-runtime' +import { enumeration, encodeMessage, decodeMessage, message, uint64, string, bool, bytes } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface EmojiReaction { @@ -31,7 +22,7 @@ export namespace EmojiReaction { THUMBS_DOWN = 'THUMBS_DOWN', LAUGH = 'LAUGH', SAD = 'SAD', - ANGRY = 'ANGRY', + ANGRY = 'ANGRY' } enum __TypeValues { @@ -41,7 +32,7 @@ export namespace EmojiReaction { THUMBS_DOWN = 3, LAUGH = 4, SAD = 5, - ANGRY = 6, + ANGRY = 6 } export namespace Type { @@ -58,7 +49,7 @@ export namespace EmojiReaction { 4: { name: 'messageType', codec: MessageType.codec() }, 5: { name: 'type', codec: EmojiReaction.Type.codec() }, 6: { name: 'retracted', codec: bool }, - 7: { name: 'grant', codec: bytes }, + 7: { name: 'grant', codec: bytes } }) } @@ -78,7 +69,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -88,7 +79,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -101,7 +92,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -109,7 +100,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/enums.ts b/packages/status-js/protos/enums.ts index 3446b90..b06d2dc 100644 --- a/packages/status-js/protos/enums.ts +++ b/packages/status-js/protos/enums.ts @@ -10,7 +10,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -20,7 +20,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -33,7 +33,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -41,7 +41,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/pin-message.ts b/packages/status-js/protos/pin-message.ts index 14c0b32..1036690 100644 --- a/packages/status-js/protos/pin-message.ts +++ b/packages/status-js/protos/pin-message.ts @@ -1,15 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - encodeMessage, - decodeMessage, - message, - uint64, - string, - bool, - enumeration, -} from 'protons-runtime' +import { encodeMessage, decodeMessage, message, uint64, string, bool, enumeration } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface PinMessage { @@ -27,7 +19,7 @@ export namespace PinMessage { 2: { name: 'messageId', codec: string }, 3: { name: 'chatId', codec: string }, 4: { name: 'pinned', codec: bool }, - 5: { name: 'messageType', codec: MessageType.codec() }, + 5: { name: 'messageType', codec: MessageType.codec() } }) } @@ -47,7 +39,7 @@ export enum MessageType { PRIVATE_GROUP = 'PRIVATE_GROUP', SYSTEM_MESSAGE_PRIVATE_GROUP = 'SYSTEM_MESSAGE_PRIVATE_GROUP', COMMUNITY_CHAT = 'COMMUNITY_CHAT', - SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP', + SYSTEM_MESSAGE_GAP = 'SYSTEM_MESSAGE_GAP' } enum __MessageTypeValues { @@ -57,7 +49,7 @@ enum __MessageTypeValues { PRIVATE_GROUP = 3, SYSTEM_MESSAGE_PRIVATE_GROUP = 4, COMMUNITY_CHAT = 5, - SYSTEM_MESSAGE_GAP = 6, + SYSTEM_MESSAGE_GAP = 6 } export namespace MessageType { @@ -70,7 +62,7 @@ export enum ImageType { PNG = 'PNG', JPEG = 'JPEG', WEBP = 'WEBP', - GIF = 'GIF', + GIF = 'GIF' } enum __ImageTypeValues { @@ -78,7 +70,7 @@ enum __ImageTypeValues { PNG = 1, JPEG = 2, WEBP = 3, - GIF = 4, + GIF = 4 } export namespace ImageType { diff --git a/packages/status-js/protos/status-update.ts b/packages/status-js/protos/status-update.ts index ad86a27..c52a2f9 100644 --- a/packages/status-js/protos/status-update.ts +++ b/packages/status-js/protos/status-update.ts @@ -1,14 +1,7 @@ /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-namespace */ -import { - enumeration, - encodeMessage, - decodeMessage, - message, - uint64, - string, -} from 'protons-runtime' +import { enumeration, encodeMessage, decodeMessage, message, uint64, string } from 'protons-runtime' import type { Codec } from 'protons-runtime' export interface StatusUpdate { @@ -23,7 +16,7 @@ export namespace StatusUpdate { AUTOMATIC = 'AUTOMATIC', DO_NOT_DISTURB = 'DO_NOT_DISTURB', ALWAYS_ONLINE = 'ALWAYS_ONLINE', - INACTIVE = 'INACTIVE', + INACTIVE = 'INACTIVE' } enum __StatusTypeValues { @@ -31,7 +24,7 @@ export namespace StatusUpdate { AUTOMATIC = 1, DO_NOT_DISTURB = 2, ALWAYS_ONLINE = 3, - INACTIVE = 4, + INACTIVE = 4 } export namespace StatusType { @@ -44,7 +37,7 @@ export namespace StatusUpdate { return message({ 1: { name: 'clock', codec: uint64 }, 2: { name: 'statusType', codec: StatusUpdate.StatusType.codec() }, - 3: { name: 'customText', codec: string }, + 3: { name: 'customText', codec: string } }) }