OverviewFilesCommitsIssuesDocsReleasesPeers

keet-cli / deobfuscated / packages / schema / local / index.js

15 lines · javascript ref:
const _0x59cd1f=(function(){let _0x3f7b4e=!![];return function(_0x10ec7b,_0x3e1d09){_0x10b1ee=_0x3f7b4e?function(){if(_0x3e1d09){const _0x155f6d=_0x3e1d09.apply(_0x10ec7b,arguments);return _0x3e1d09=null,_0x155f6d;}}:function(){};return _0x3f7b4e=![],_0x10b1ee;};}()),_0x35927b=_0x59cd1f(this,function(){_0x3527f0={_0x154207:0xef},_0x2027e6={_0x400617:0x1b5};return _0x35927b.toString().search("(((.+)+)+)+$").toString().constructor(_0x35927b).search("(((.+)+)+)+$");});
_0x35927b();
const generateKeetSchema=require('../contract');
module.exports=function generateHyperschema(_0x1a1caf){
  _0x3347a7={
    _0x23cf2d:0x1e6},_0x3c22fd=_0x1a1caf.namespace('local');
  generateKeetSchema(_0x1a1caf),_0x3c22fd.register({'name':"background-sync-room",'fields':[{'name':"discoveryPublicKey",'type':"@keet/room-discovery-key",'required':!![]},{'name':"timestamp",'type':"uint",'required':!![]},{'name':"lastSynced",'type':"uint"},{'name':"dirty",'type':"bool"}]}),_0x3c22fd.register({'name':'stats','fields':[{'name':'rooms','type':"uint",'required':!![]},{'name':"activeRooms",'type':"uint",'required':!![]}]}),_0x3c22fd.register({'name':"migration-status",'fields':[{'name':'version','type':'uint','required':!![]}]}),_0x3c22fd.register({'name':"v3-private-profile-migration",'fields':[{'name':"blockedMembers",'type':"@keet/member-key",'array':!![]}]}),_0x3c22fd.register({'name':"v3-room-migration",'fields':[{'name':"encryptionKey",'type':"@keet/encryption-key",'required':!![]},{'name':'seed','type':'fixed32','required':!![]},{'name':"capabilities",'type':"@keet/room-capabilities",'required':!![]},{'name':'initiator','type':"@keet/head",'required':!![]},{'name':"fastForwardTo",'type':"fixed32",'required':!![]},{'name':"privateProfile",'type':"@local/v3-private-profile-migration"}]}),_0x3c22fd.register({'name':"room-migration-stats",'fields':[{'name':'count','type':"uint",'require':!![]}]}),_0x3c22fd.register({'name':"room-migration",'fields':[{'name':'roomKey','type':"@keet/room-key",'required':!![]},{'name':"priority",'type':"uint",'required':!![]},{'name':'v3','type':"@local/v3-room-migration"},{'name':"errored",'type':"bool"},{'name':"timestamp",'type':"uint"}]}),_0x3c22fd.register({'name':"identity-status",'fields':[{'name':"isConfirmed",'type':"bool"}]}),_0x3c22fd.register({'name':"identity-swap",'fields':[{'name':"privateProfileKey",'type':"@keet/room-key",'required':!![]}]}),_0x3c22fd.register({'name':"identity-record",'fields':[{'name':"publicKey",'type':"@keet/public-key",'required':!![]},{'name':"privateProfileKey",'type':"@keet/room-key",'required':!![]},{'name':"deviceKeyPair",'type':"@keet/signing-keypair",'required':!![]},{'name':"deviceProof",'type':"buffer",'required':!![]},{'name':"status",'type':"@local/identity-status",'required':!![]},{'name':"entropy",'type':"buffer"},{'name':'swap','type':"@keet-private-id/identity-swap"},{'name':"swapV2",'type':"@keet-private-id/identity-swap-v2"}]}),_0x3c22fd.register({'name':"tasks",'enum':["RestoreIdentity",'CreateRoom','LeaveRoom',"ClearRoom","JoinRoomInvitation","JoinRoomKeys","JoinRoomResponse","SendContactRequest","TestFastTask","TestSlowTask","TestErrorTask"]});
  const _0x43247d=[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"encryptionKey",'type':"@keet/encryption-key",'required':!![]},{'name':"fastForwardTo",'type':"fixed32"},{'name':'initiator','type':"@keet/head"}];
  _0x3c22fd.register({'name':"room-keys",'fields':_0x43247d}),_0x3c22fd.register({'name':"join-room-invitation-task",'fields':[{'name':"invitation",'type':"@keet-private-id/pending-invitation",'required':!![]}]}),_0x3c22fd.register({'name':"join-room-response-task",'fields':[{'name':'mailbox','type':"@keet/public-key",'required':!![]},{'name':"keyPair",'type':"@keet/signing-keypair",'required':!![]},{'name':'response','type':'buffer','required':!![]}]}),_0x3c22fd.register({'name':"fast-forward-to",'fields':[{'name':"key",'type':"@keet/core-key",'required':!![]}]});
  const _0x27ccf7=[..._0x43247d,{'name':"mailbox",'type':"@keet/public-key"}];
  _0x3c22fd.register({'name':"add-room-fields",'fields':_0x27ccf7}),_0x3c22fd.register({'name':"join-room-keys-task",'fields':[{'name':'keys','type':"@local/add-room-fields",'required':!![]}]}),_0x3c22fd.register({'name':"create-room-task",'fields':[..._0x27ccf7,{'name':"keyPair",'type':"@keet/signing-keypair"},{'name':"genesis",'type':"@keet/genesis-operation"},{'name':"isPrivateProfile",'type':"bool"}]}),_0x3c22fd.register({'name':"leave-room-task",'fields':[{'name':'roomKey','type':"@keet/room-key",'required':!![]},{'name':"isGossiped",'type':'bool'}]}),_0x3c22fd.register({'name':"clear-room-task",'fields':[{'name':'roomKey','type':"@keet/room-key",'required':!![]}]}),_0x3c22fd.register({'name':"restore-identity-task",'fields':[{'name':"mnemonic",'type':"string",'required':!![]},{'name':"profileDiscoveryTimeout",'type':"uint"},{'name':'recover','type':"bool"}]}),_0x3c22fd.register({'name':"send-contact-request-task",'fields':[{'name':'roomKey','type':"@keet/room-key",'required':!![]},{'name':'memberKey','type':"@keet/member-key",'required':!![]},{'name':"message",'type':"string"},{'name':"contactInfo",'type':"@keet/member-contact-info"}]}),_0x3c22fd.register({'name':"migrate-v2-room-task",'fields':[{'name':"key",'type':"@keet/room-key",'required':!![]},{'name':"isPrivateProfile",'type':"bool"}]}),_0x3c22fd.register({'name':'task','fields':[{'name':"discoveryKey",'type':"@keet/room-discovery-key",'required':!![]},{'name':"priority",'type':"uint",'required':!![]},{'name':"timestamp",'type':'uint','required':!![]},{'name':"type",'type':"uint",'required':!![]},{'name':"restoreIdentity",'type':"@local/restore-identity-task"},{'name':"createRoom",'type':"@local/create-room-task"},{'name':'leaveRoom','type':"@local/leave-room-task"},{'name':"clearRoom",'type':"@local/clear-room-task"},{'name':"joinRoomInvitation",'type':"@local/join-room-invitation-task"},{'name':"joinRoomKeys",'type':"@local/join-room-keys-task"},{'name':"joinRoomResponse",'type':"@local/join-room-response-task"},{'name':"sendContactRequest",'type':"@local/send-contact-request-task"},{'name':"migrateV2Room",'type':"@local/migrate-v2-room-task"}]}),_0x3c22fd.register({'name':"shared-invitation",'fields':[{'name':"seed",'type':"buffer",'required':!![]},{'name':"invitation",'type':"@keet/invitation",'required':!![]}]}),_0x3c22fd.register({'name':"room-status",'fields':[{'name':"isWritable",'type':"bool"},{'name':"isReadable",'type':"bool"},{'name':"isPrivateProfile",'type':"bool"},{'name':'isRemoved','type':"bool"}]}),_0x3c22fd.register({'name':"room-timestamps",'fields':[{'name':"creation",'type':"uint",'required':!![]},{'name':'latestSync','type':'uint','required':!![]},{'name':"latestChatMessage",'type':'uint','required':!![]}]}),_0x3c22fd.register({'name':"room",'fields':[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"discoveryKey",'type':"@keet/room-discovery-key",'required':!![]},{'name':"encryptionKey",'type':"@keet/encryption-key",'required':!![]},{'name':"digest",'type':"@keet/system-digest",'required':!![]},{'name':"stats",'type':"@keet/stats",'required':!![]},{'name':"timestamps",'type':"@local/room-timestamps",'required':!![]},{'name':"fork",'type':"uint",'required':!![]},{'name':"length",'type':"uint",'required':!![]},{'name':'seed','type':"fixed32",'required':!![]},{'name':"capabilities",'type':"@keet/room-capabilities",'required':!![]},{'name':'status','type':"@local/room-status",'required':!![]},{'name':"selfDevice",'type':"@keet/device"},{'name':"selfMember",'type':"@keet/full-member"},{'name':"config",'type':"@keet/room-config"},{'name':"identity",'type':"@keet/room-identity"},{'name':"lastMessage",'type':"@keet/full-chat-message-record"},{'name':'dm','type':"@keet/member-key",'array':!![]},{'name':"readLengths",'type':"@keet/read-length",'array':!![]},{'name':'lastMember','type':"@keet/member"},{'name':"version",'type':"uint"},{'name':"preferences",'type':"@keet-private-id/room-status"}]}),_0x3c22fd.register({'name':"room-preferences",'fields':[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"status",'type':"@keet-private-id/room-status",'required':!![]}]}),_0x3c22fd.register({'name':"room-metadata",'fields':[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"repairs",'type':"uint"}]}),_0x3c22fd.register({'name':"writer",'fields':[{'name':"mailbox",'type':"@keet/public-key",'required':!![]},{'name':"key",'type':"@keet/core-key",'required':!![]},{'name':"roomKey",'type':"@keet/room-key"},{'name':"keyPair",'type':"@keet/signing-keypair"},{'name':"responseKeyPair",'type':"@keet/signing-keypair"}]}),_0x3c22fd.register({'name':"writer-append",'fields':[{'name':'key','type':"@keet/core-key",'required':!![]},{'name':"responsePublicKey",'type':"fixed32",'required':!![]}]}),_0x3c22fd.register({'name':"member",'fields':[{'name':'key','type':"@keet/member-key",'required':!![]},{'name':"profile",'type':"@keet/member-profile",'required':!![]}]}),_0x3c22fd.register({'name':"device",'fields':[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"device",'type':"@keet/device",'required':!![]}]}),_0x3c22fd.register({'name':'file','fields':[{'name':'file','type':'@keet/file','required':!![]},{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"encryptionKey",'type':"@keet/encryption-key"},{'name':'cleared','type':"bool"},{'name':"own",'type':"bool"}]}),_0x3c22fd.register({'name':"debug-flag",'fields':[{'name':"key",'type':'string'},{'name':"value",'type':"bool"},{'name':"description",'type':"string"}]});
  _0x3c22fd.register({'name':"debug",'fields':[{'name':'flags','type':"@local/debug-flag",'array':!![]}]}),_0x3c22fd.register({'name':"hyperdht-record",'fields':[{'name':"nodes",'type':"ipv4Address",'array':!![]},{'name':"concurrency",'type':"uint"},{'name':"maxWindow",'type':"uint"},{'name':"randomPunchInterval",'type':"uint"},{'name':"connectionKeepAlive",'type':"uint"}]}),_0x3c22fd.register({'name':'unread','fields':[{'name':"roomKey",'type':"@keet/room-key",'required':!![]},{'name':"count",'type':'uint','required':!![]}]}),_0x3c22fd.register({'name':"error-record-details",'fields':[{'name':"roomKey",'type':"@keet/room-key"},{'name':'coreKey','type':"@keet/core-key"}]}),_0x3c22fd.register({'name':"error-record",'fields':[{'name':"code",'type':"string",'required':!![]},{'name':'message','type':'string','required':!![]},{'name':"stack",'type':"string",'required':!![]},{'name':'timestamp','type':'uint','required':!![]},{'name':'details','type':"@local/error-record-details"}]}),_0x3c22fd.register({'name':'keet-state','enum':["RESUME","WAKEUP","PRESUSPEND","SUSPEND"]}),_0x3c22fd.register({'name':'file-stats','fields':[{'name':'roomKey','type':"@keet/room-key",'required':!![]},{'name':'total','type':"uint",'required':!![]}]});
}
;