@vinzsocket/baileys 3.1.1 → 3.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +115 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # Harps-Baileys
2
+
3
+ `Harps-Baileys` adalah package JavaScript/TypeScript berbasis ESM untuk berinteraksi dengan WhatsApp Web melalui WebSocket.
4
+ Dari isi zip ini, terlihat bahwa proyek ini adalah **hasil build/distribusi** dari library `@vinzsocket/baileys` versi `3.1.9`, bukan source mentahnya.
5
+
6
+ ## Isi utama paket
7
+
8
+ Di dalam arsip ini ada beberapa bagian penting:
9
+
10
+ - `package.json` — metadata package, dependency, engine Node, dan script build.
11
+ - `engine-requirements.js` — pengecekan versi/runtime Node saat instalasi.
12
+ - `CHANGELOG.md` — riwayat perubahan versi.
13
+ - `WAProto/` — definisi protobuf WhatsApp dan file helper yang di-generate.
14
+ - `lib/` — inti library yang siap dipakai oleh aplikasi.
15
+
16
+ ## Struktur folder
17
+
18
+ ### `WAProto/`
19
+ Folder ini berisi komponen protobuf WhatsApp:
20
+
21
+ - `WAProto.proto` — definisi struktur data protobuf.
22
+ - `index.js` dan `index.d.ts` — entry point untuk ekspor protokol.
23
+ - `GenerateStatics.sh` — script untuk generate file statis protobuf.
24
+ - `fix-imports.js` — helper untuk merapikan import hasil generate.
25
+
26
+ ### `lib/`
27
+ Ini adalah inti library yang sudah dikompilasi. Isinya didominasi file `.js`, `.d.ts`, dan `.map`.
28
+
29
+ #### `lib/Defaults/`
30
+ Berisi nilai default dan konfigurasi awal yang dipakai library.
31
+
32
+ #### `lib/Signal/`
33
+ Berisi implementasi mekanisme Signal / enkripsi, termasuk logika grup dan key management.
34
+
35
+ Subfolder penting di dalamnya:
36
+
37
+ - `Group/` — logic untuk pesan grup, sender key, dan distribusi key.
38
+ - file seperti `libsignal.d.ts` dan `lid-mapping.d.ts` — tipe dan helper terkait identitas/enkripsi.
39
+
40
+ #### `lib/Socket/`
41
+ Bagian socket adalah inti koneksi ke WhatsApp Web.
42
+
43
+ Isi yang terlihat mencakup:
44
+
45
+ - `Client/` — client layer dan tipe websocket.
46
+ - file bisnis dan socket utama untuk membangun koneksi, handle event, dan komunikasi real-time.
47
+
48
+ #### `lib/Types/`
49
+ Kumpulan type definitions untuk struktur data library, misalnya auth, chat, message, business, dan tipe internal lain.
50
+
51
+ #### `lib/Utils/`
52
+ Kumpulan helper/pemrosesan pendukung, misalnya:
53
+
54
+ - auth utils
55
+ - browser utils
56
+ - message utils
57
+ - file / media / link helper
58
+ - fungsi-fungsi kecil yang dipakai lintas modul
59
+
60
+ #### `lib/WABinary/`
61
+ Berisi encoder/decoder dan konstanta untuk format binary WhatsApp.
62
+
63
+ #### `lib/WAM/`
64
+ Berisi konstanta dan helper untuk model/protokol WhatsApp Message.
65
+
66
+ #### `lib/WAUSync/`
67
+ Berisi protokol sinkronisasi data WhatsApp, termasuk:
68
+
69
+ - contact sync
70
+ - device sync
71
+ - chat/message sync
72
+ - state synchronization
73
+
74
+ ## Gambaran isi file di root package
75
+
76
+ File penting di root package:
77
+
78
+ - `lib/index.js` — entry point utama library.
79
+ - `lib/index.d.ts` — tipe TypeScript utama.
80
+ - `package.json` — informasi package dan entry point.
81
+ - `CHANGELOG.md` — catatan perubahan.
82
+ - `engine-requirements.js` — validasi lingkungan runtime.
83
+
84
+ ## Cara memakai
85
+
86
+ Contoh dasar pemakaian:
87
+
88
+ ```js
89
+ import makeWASocket from '@vinzsocket/baileys'
90
+
91
+ const conn = makeWASocket({
92
+ // konfigurasi koneksi
93
+ })
94
+
95
+ console.log('Socket siap dipakai')
96
+ ```
97
+
98
+ ## Catatan teknis
99
+
100
+ - Package ini memakai `"type": "module"`, jadi format utamanya **ESM**.
101
+ - Entry point utama ada di `lib/index.js`.
102
+ - Target Node di `package.json` adalah `>=20.0.0`.
103
+ - Isi arsip ini lebih cocok disebut **build output** daripada source project lengkap.
104
+
105
+ ## Ringkasan singkat
106
+
107
+ Kalau disederhanakan, isi zip ini adalah:
108
+
109
+ 1. metadata package,
110
+ 2. definisi protobuf WhatsApp,
111
+ 3. modul socket utama,
112
+ 4. modul enkripsi dan binary protocol,
113
+ 5. tipe data dan utility pendukung,
114
+ 6. hasil build siap pakai untuk library WhatsApp Web socket.
115
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinzsocket/baileys",
3
3
  "type": "module",
4
- "version": "3.1.1",
4
+ "version": "3.1.9",
5
5
  "description": "A WebSockets library for interacting with WhatsApp Web",
6
6
  "keywords": [
7
7
  "whatsapp",
@@ -136,4 +136,4 @@
136
136
  "engines": {
137
137
  "node": ">=20.0.0"
138
138
  }
139
- }
139
+ }