forked from sorke/Baileys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf6ca6
commit e50c1cb
Showing
42 changed files
with
31,870 additions
and
4,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", // Specifies the ESLint parser | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: "module" // Allows for the use of imports | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/ban-types": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ test_pvt.js | |
media_decode_tests.js | ||
output.csv | ||
package-lock.json | ||
*/.DS_Store | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
semi: false, | ||
trailingComma: "all", | ||
singleQuote: true, | ||
printWidth: 120, | ||
tabWidth: 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
import { proto as Coding } from './WAMessage' | ||
|
||
export namespace WA { | ||
export const Tags = { | ||
LIST_EMPTY: 0, | ||
STREAM_END: 2, | ||
DICTIONARY_0: 236, | ||
DICTIONARY_1: 237, | ||
DICTIONARY_2: 238, | ||
DICTIONARY_3: 239, | ||
LIST_8: 248, | ||
LIST_16: 249, | ||
JID_PAIR: 250, | ||
HEX_8: 251, | ||
BINARY_8: 252, | ||
BINARY_20: 253, | ||
BINARY_32: 254, | ||
NIBBLE_8: 255, | ||
SINGLE_BYTE_MAX: 256, | ||
PACKED_MAX: 254, | ||
} | ||
export const DoubleByteTokens = [] | ||
export const SingleByteTokens = [ | ||
null, | ||
null, | ||
null, | ||
'200', | ||
'400', | ||
'404', | ||
'500', | ||
'501', | ||
'502', | ||
'action', | ||
'add', | ||
'after', | ||
'archive', | ||
'author', | ||
'available', | ||
'battery', | ||
'before', | ||
'body', | ||
'broadcast', | ||
'chat', | ||
'clear', | ||
'code', | ||
'composing', | ||
'contacts', | ||
'count', | ||
'create', | ||
'debug', | ||
'delete', | ||
'demote', | ||
'duplicate', | ||
'encoding', | ||
'error', | ||
'false', | ||
'filehash', | ||
'from', | ||
'g.us', | ||
'group', | ||
'groups_v2', | ||
'height', | ||
'id', | ||
'image', | ||
'in', | ||
'index', | ||
'invis', | ||
'item', | ||
'jid', | ||
'kind', | ||
'last', | ||
'leave', | ||
'live', | ||
'log', | ||
'media', | ||
'message', | ||
'mimetype', | ||
'missing', | ||
'modify', | ||
'name', | ||
'notification', | ||
'notify', | ||
'out', | ||
'owner', | ||
'participant', | ||
'paused', | ||
'picture', | ||
'played', | ||
'presence', | ||
'preview', | ||
'promote', | ||
'query', | ||
'raw', | ||
'read', | ||
'receipt', | ||
'received', | ||
'recipient', | ||
'recording', | ||
'relay', | ||
'remove', | ||
'response', | ||
'resume', | ||
'retry', | ||
's.whatsapp.net', | ||
'seconds', | ||
'set', | ||
'size', | ||
'status', | ||
'subject', | ||
'subscribe', | ||
't', | ||
'text', | ||
'to', | ||
'true', | ||
'type', | ||
'unarchive', | ||
'unavailable', | ||
'url', | ||
'user', | ||
'value', | ||
'web', | ||
'width', | ||
'mute', | ||
'read_only', | ||
'admin', | ||
'creator', | ||
'short', | ||
'update', | ||
'powersave', | ||
'checksum', | ||
'epoch', | ||
'block', | ||
'previous', | ||
'409', | ||
'replaced', | ||
'reason', | ||
'spam', | ||
'modify_tag', | ||
'message_info', | ||
'delivery', | ||
'emoji', | ||
'title', | ||
'description', | ||
'canonical-url', | ||
'matched-text', | ||
'star', | ||
'unstar', | ||
'media_key', | ||
'filename', | ||
'identity', | ||
'unread', | ||
'page', | ||
'page_count', | ||
'search', | ||
'media_message', | ||
'security', | ||
'call_log', | ||
'profile', | ||
'ciphertext', | ||
'invite', | ||
'gif', | ||
'vcard', | ||
'frequent', | ||
'privacy', | ||
'blacklist', | ||
'whitelist', | ||
'verify', | ||
'location', | ||
'document', | ||
'elapsed', | ||
'revoke_invite', | ||
'expiration', | ||
'unsubscribe', | ||
'disable', | ||
'vname', | ||
'old_jid', | ||
'new_jid', | ||
'announcement', | ||
'locked', | ||
'prop', | ||
'label', | ||
'color', | ||
'call', | ||
'offer', | ||
'call-id', | ||
'quick_reply', | ||
'sticker', | ||
'pay_t', | ||
'accept', | ||
'reject', | ||
'sticker_pack', | ||
'invalid', | ||
'canceled', | ||
'missed', | ||
'connected', | ||
'result', | ||
'audio', | ||
'video', | ||
'recent', | ||
] | ||
export const Message = Coding.WebMessageInfo | ||
export type NodeAttributes = Record<string, string> | string | null | ||
export type NodeData = Array<Node> | any | null | ||
export type Node = [string, NodeAttributes, NodeData] | ||
} |
Oops, something went wrong.