@redonvn/messaging-viber-bot 0.0.0-stage → 1.0.0
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.
- package/README.md +47 -2
- package/USAGE.md +120 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +19 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/provider.interface.d.ts +41 -0
- package/dist/common/provider.interface.d.ts.map +1 -0
- package/dist/common/provider.interface.js +3 -0
- package/dist/common/provider.interface.js.map +1 -0
- package/dist/common/types.d.ts +150 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +25 -0
- package/dist/common/types.js.map +1 -0
- package/dist/core/crypto.d.ts +29 -0
- package/dist/core/crypto.d.ts.map +1 -0
- package/dist/core/crypto.js +63 -0
- package/dist/core/crypto.js.map +1 -0
- package/dist/core/errors.d.ts +25 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +57 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/hooks.d.ts +37 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +49 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/http.d.ts +19 -0
- package/dist/core/http.d.ts.map +1 -0
- package/dist/core/http.js +105 -0
- package/dist/core/http.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +22 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/retries.d.ts +12 -0
- package/dist/core/retries.d.ts.map +1 -0
- package/dist/core/retries.js +22 -0
- package/dist/core/retries.js.map +1 -0
- package/dist/hooks/hooks.d.ts +2 -0
- package/dist/hooks/hooks.d.ts.map +1 -0
- package/dist/hooks/hooks.js +6 -0
- package/dist/hooks/hooks.js.map +1 -0
- package/dist/hooks/types.d.ts +2 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks/types.js +3 -0
- package/dist/hooks/types.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/config.d.ts +25 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +15 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/crypto.d.ts +2 -0
- package/dist/lib/crypto.d.ts.map +1 -0
- package/dist/lib/crypto.js +18 -0
- package/dist/lib/crypto.js.map +1 -0
- package/dist/lib/errors.d.ts +2 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +18 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/http.d.ts +7 -0
- package/dist/lib/http.d.ts.map +1 -0
- package/dist/lib/http.js +45 -0
- package/dist/lib/http.js.map +1 -0
- package/dist/lib/json.d.ts +3 -0
- package/dist/lib/json.d.ts.map +1 -0
- package/dist/lib/json.js +13 -0
- package/dist/lib/json.js.map +1 -0
- package/dist/lib/retries.d.ts +2 -0
- package/dist/lib/retries.d.ts.map +1 -0
- package/dist/lib/retries.js +6 -0
- package/dist/lib/retries.js.map +1 -0
- package/dist/lib/security.d.ts +29 -0
- package/dist/lib/security.d.ts.map +1 -0
- package/dist/lib/security.js +65 -0
- package/dist/lib/security.js.map +1 -0
- package/dist/sdk/account.d.ts +24 -0
- package/dist/sdk/account.d.ts.map +1 -0
- package/dist/sdk/account.js +31 -0
- package/dist/sdk/account.js.map +1 -0
- package/dist/sdk/chat-extensions.d.ts +10 -0
- package/dist/sdk/chat-extensions.d.ts.map +1 -0
- package/dist/sdk/chat-extensions.js +15 -0
- package/dist/sdk/chat-extensions.js.map +1 -0
- package/dist/sdk/conversations.d.ts +6 -0
- package/dist/sdk/conversations.d.ts.map +1 -0
- package/dist/sdk/conversations.js +6 -0
- package/dist/sdk/conversations.js.map +1 -0
- package/dist/sdk/messages.d.ts +94 -0
- package/dist/sdk/messages.d.ts.map +1 -0
- package/dist/sdk/messages.js +240 -0
- package/dist/sdk/messages.js.map +1 -0
- package/dist/sdk/subscriptions.d.ts +39 -0
- package/dist/sdk/subscriptions.d.ts.map +1 -0
- package/dist/sdk/subscriptions.js +40 -0
- package/dist/sdk/subscriptions.js.map +1 -0
- package/dist/sdk/users.d.ts +43 -0
- package/dist/sdk/users.d.ts.map +1 -0
- package/dist/sdk/users.js +70 -0
- package/dist/sdk/users.js.map +1 -0
- package/dist/sdk/viber.d.ts +54 -0
- package/dist/sdk/viber.d.ts.map +1 -0
- package/dist/sdk/viber.js +176 -0
- package/dist/sdk/viber.js.map +1 -0
- package/dist/sdk/webhook.d.ts +48 -0
- package/dist/sdk/webhook.d.ts.map +1 -0
- package/dist/sdk/webhook.js +84 -0
- package/dist/sdk/webhook.js.map +1 -0
- package/dist/viber.mapper.d.ts +17 -0
- package/dist/viber.mapper.d.ts.map +1 -0
- package/dist/viber.mapper.js +165 -0
- package/dist/viber.mapper.js.map +1 -0
- package/dist/viber.types.d.ts +255 -0
- package/dist/viber.types.d.ts.map +1 -0
- package/dist/viber.types.js +6 -0
- package/dist/viber.types.js.map +1 -0
- package/docs/API_COVERAGE.md +25 -0
- package/docs/README.md +19 -0
- package/docs/deep-links.md +260 -0
- package/docs/keyboards.md +273 -0
- package/docs/models/models.md +59 -0
- package/docs/rest-bot-api.md +1689 -0
- package/docs/sdks/account/README.md +16 -0
- package/docs/sdks/messages/README.md +19 -0
- package/docs/sdks/subscriptions/README.md +13 -0
- package/docs/sdks/users/README.md +21 -0
- package/docs/sdks/webhook/README.md +17 -0
- package/docs/sticker-ids.md +92 -0
- package/docs/text-formatting.md +42 -0
- package/package.json +40 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Sub-SDK `client.account` (`ViberAccountResource`)
|
|
2
|
+
|
|
3
|
+
Truy vấn thông tin cấu hình của tài khoản Viber Bot hoặc Channel.
|
|
4
|
+
|
|
5
|
+
## Phương thức
|
|
6
|
+
|
|
7
|
+
### `getAccountInfo()` (`POST /pa/get_account_info`)
|
|
8
|
+
Trả về `ViberAccountInfoResponse` gồm:
|
|
9
|
+
- `id`: Định danh tài khoản Public Account / Bot (VD: `pa:554433221100998877`).
|
|
10
|
+
- `name`: Tên hiển thị của Bot.
|
|
11
|
+
- `uri`: Định danh URI dùng để tạo Deep Link `viber://pa?chatURI=<uri>&context=<ctx>`.
|
|
12
|
+
- `icon`, `background`, `category`, `subcategory`, `country`.
|
|
13
|
+
- `webhook`: URL Webhook đang được cấu hình.
|
|
14
|
+
- `event_types`: Danh sách các sự kiện Webhook đang bật.
|
|
15
|
+
- `subscribers_count`: Tổng số người đăng ký hiện tại.
|
|
16
|
+
- `members`: Danh sách quản trị viên (`id`, `name`, `role`), dùng trường `members[i].id` làm tham số `fromAdminId` khi gọi `client.messages.postToPublicChannel(...)`.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Sub-SDK `client.messages` (`ViberMessagesResource`)
|
|
2
|
+
|
|
3
|
+
Quản lý toàn bộ nghiệp vụ gửi tin nhắn đơn lẻ, tin nhắn tương tác (Keyboard & Rich Media Carousel), gửi hàng loạt (Broadcast), đăng bài Channel và tạo Welcome Message đồng bộ.
|
|
4
|
+
|
|
5
|
+
## Danh sách 13 phương thức
|
|
6
|
+
|
|
7
|
+
1. **`sendRaw(payload)`**: Gửi trực tiếp `ViberSendMessageRequest` tới `POST /pa/send_message`.
|
|
8
|
+
2. **`sendText(receiverId, text, options?)`**: Gửi văn bản (tối đa 7.000 ký tự), đính kèm `keyboard`, `trackingData`, `sender`.
|
|
9
|
+
3. **`sendPicture(receiverId, imageUrl, options?)`**: Gửi ảnh kèm `text` (caption) và `thumbnailUrl`.
|
|
10
|
+
4. **`sendVideo(receiverId, videoUrl, sizeBytes, options?)`**: Gửi video MP4 kèm dung lượng `sizeBytes`, `durationSeconds`, `thumbnailUrl`, `text`.
|
|
11
|
+
5. **`sendFile(receiverId, fileUrl, sizeBytes, fileName, options?)`**: Gửi tệp đính kèm kèm dung lượng và tên tệp.
|
|
12
|
+
6. **`sendContact(receiverId, contactName, phoneNumber, options?)`**: Gửi danh thiếp liên hệ.
|
|
13
|
+
7. **`sendLocation(receiverId, lat, lon, options?)`**: Gửi tọa độ GPS.
|
|
14
|
+
8. **`sendUrl(receiverId, url, options?)`**: Gửi URL website.
|
|
15
|
+
9. **`sendSticker(receiverId, stickerId, options?)`**: Gửi nhãn dán Viber.
|
|
16
|
+
10. **`sendRichMediaCarousel(receiverId, richMedia, options?)`**: Gửi Carousel trượt ngang trên lưới `6x7`.
|
|
17
|
+
11. **`broadcast(broadcastList, payload, options?)`**: Gửi tin nhắn hàng loạt (`POST /pa/broadcast_message`) cho tối đa 300 `user_id` mỗi lần gọi.
|
|
18
|
+
12. **`postToPublicChannel(fromAdminId, payload)`**: Đăng tin lên Viber Channel (`POST /pa/post`) với `fromAdminId` lấy từ `client.account.getAccountInfo()`.
|
|
19
|
+
13. **`buildWelcomeMessageResponse(payload)`**: Tạo JSON Welcome Message trả về trực tiếp trong HTTP 200 Response của Webhook khi nhận sự kiện `conversation_started`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Sub-SDK `client.subscriptions` (`ViberSubscriptionsResource`)
|
|
2
|
+
|
|
3
|
+
Quản lý đăng ký và gỡ bỏ Webhook cho tài khoản Viber Bot.
|
|
4
|
+
|
|
5
|
+
## Phương thức
|
|
6
|
+
|
|
7
|
+
1. **`setWebhook(url: string, options?: ViberSetWebhookOptions)`** (`POST /pa/set_webhook`):
|
|
8
|
+
- `url`: URL HTTPS hợp lệ nhận sự kiện từ Viber (Không hỗ trợ HTTP hoặc chứng chỉ SSL tự ký).
|
|
9
|
+
- `options.eventTypes`: Mảng các sự kiện muốn đăng ký (`['delivered', 'seen', 'failed', 'subscribed', 'unsubscribed', 'conversation_started']`). Lưu ý sự kiện `message` luôn được Viber gửi mặc định.
|
|
10
|
+
- `options.sendName`: `true` để Viber luôn đính kèm tên người dùng trong payload Webhook.
|
|
11
|
+
- `options.sendPhoto`: `true` để Viber luôn đính kèm URL avatar người dùng trong payload Webhook.
|
|
12
|
+
2. **`removeWebhook()`** (`POST /pa/set_webhook` với `{ url: "" }`):
|
|
13
|
+
- Hủy đăng ký Webhook hiện tại của Bot.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Sub-SDK `client.users` (`ViberUsersResource`)
|
|
2
|
+
|
|
3
|
+
Tra cứu hồ sơ chi tiết và trạng thái trực tuyến của người dùng Viber đã tương tác với Bot.
|
|
4
|
+
|
|
5
|
+
## Danh sách phương thức
|
|
6
|
+
|
|
7
|
+
1. **`getUserDetails(userId: string)`** (`POST /pa/get_user_details`):
|
|
8
|
+
- Trả về `ViberUserDetailsResponse` chứa `user: { id, name, avatar, country, language, primary_device_os, api_version, viber_version, mcc, mnc, device_type }`.
|
|
9
|
+
- **Lưu ý Rate Limit**: Viber giới hạn tối đa **20 requests / phút** cho endpoint này. Backend RedAI nên cache thông tin user trong bảng `omnichat_contacts` ngay từ sự kiện Webhook `message` / `conversation_started`.
|
|
10
|
+
2. **`getProfile(userId: string)`**:
|
|
11
|
+
- Helper trả về trực tiếp đối tượng `ViberUserProfile | undefined`.
|
|
12
|
+
3. **`getOnlineStatus(userIds: string[])`** (`POST /pa/get_online`):
|
|
13
|
+
- Kiểm tra trạng thái trực tuyến của tối đa **100 Viber User IDs** trong 1 lần gọi.
|
|
14
|
+
- Mã `online_status`:
|
|
15
|
+
- `0`: Online
|
|
16
|
+
- `1`: Offline (kèm `last_online` timestamp ms)
|
|
17
|
+
- `2`: Undisclosed
|
|
18
|
+
- `3`: Try later
|
|
19
|
+
- `4`: Unavailable
|
|
20
|
+
4. **`getSingleUserOnlineStatus(userId: string)`**:
|
|
21
|
+
- Kiểm tra nhanh trạng thái trực tuyến của 1 người dùng.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Sub-SDK `client.webhook` (`ViberWebhookResource`)
|
|
2
|
+
|
|
3
|
+
Xác thực chữ ký số HMAC-SHA256 (`X-Viber-Content-Signature`) và phân tích toàn bộ 8 loại sự kiện Webhook của Viber.
|
|
4
|
+
|
|
5
|
+
## Phương thức
|
|
6
|
+
|
|
7
|
+
1. **`verifySignature(rawBody, signatureOrHeaders)`**:
|
|
8
|
+
- Kiểm tra chữ ký HMAC-SHA256 tính bằng `authToken` trên `rawBody`. Ném `SignatureValidationError` nếu thiếu chữ ký hoặc chữ ký không khớp.
|
|
9
|
+
2. **`isValidSignature(rawBody, signatureOrHeaders)`**:
|
|
10
|
+
- Trả về `true` / `false`, không ném ngoại lệ.
|
|
11
|
+
3. **`verifyAndParseEvent(rawBody, signatureOrHeaders)`**:
|
|
12
|
+
- Xác thực chữ ký và trả về `ViberParsedWebhookEvent` (bảo toàn chính xác 100% số nguyên 64-bit `messageToken` dưới dạng `string`).
|
|
13
|
+
- Hỗ trợ đầy đủ 8 sự kiện: `webhook`, `message`, `conversation_started`, `subscribed`, `unsubscribed`, `delivered`, `seen`, `failed`.
|
|
14
|
+
4. **`verifyAndParse(rawBody, signatureOrHeaders)`**:
|
|
15
|
+
- Xác thực chữ ký và chuyển đổi sang `WebhookMessageEventResult` dùng chung cho `OmnichannelMessagingHub`.
|
|
16
|
+
5. **`buildWelcomeResponse(payload)`**:
|
|
17
|
+
- Trả về payload JSON chuẩn để phản hồi trực tiếp trong HTTP `200 OK` cho sự kiện `conversation_started`.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<!-- Source: https://developers.viber.com/docs/tools/sticker-ids/ | Retrieved: 2026-11-24T14:07:06+07:00 -->
|
|
2
|
+
|
|
3
|
+
<a id="sticker-ids"></a>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# Sticker IDs
|
|
7
|
+
|
|
8
|
+
The following chart shows basic sticker examples and their sticker IDs, for sending to user as a sticker message.
|
|
9
|
+
|
|
10
|
+
You can find even more stickers by chatting with [sticker bot!](viber://pa?chatURI=stickersfordev)
|
|
11
|
+
|
|
12
|
+
| Image | Sticker ID |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
|  | 40133 |
|
|
15
|
+
|  | 40132 |
|
|
16
|
+
|  | 40131 |
|
|
17
|
+
|  | 40130 |
|
|
18
|
+
|  | 40129 |
|
|
19
|
+
|  | 40128 |
|
|
20
|
+
|  | 40127 |
|
|
21
|
+
|  | 40126 |
|
|
22
|
+
|  | 40125 |
|
|
23
|
+
|  | 40124 |
|
|
24
|
+
|  | 40123 |
|
|
25
|
+
|  | 40122 |
|
|
26
|
+
|  | 40121 |
|
|
27
|
+
|  | 40120 |
|
|
28
|
+
|  | 40119 |
|
|
29
|
+
|  | 40118 |
|
|
30
|
+
|  | 40117 |
|
|
31
|
+
|  | 40116 |
|
|
32
|
+
|  | 40115 |
|
|
33
|
+
|  | 40114 |
|
|
34
|
+
|  | 40113 |
|
|
35
|
+
|  | 40112 |
|
|
36
|
+
|  | 40111 |
|
|
37
|
+
|  | 40110 |
|
|
38
|
+
|  | 40109 |
|
|
39
|
+
|  | 40108 |
|
|
40
|
+
|  | 40107 |
|
|
41
|
+
|  | 40106 |
|
|
42
|
+
|  | 40105 |
|
|
43
|
+
|  | 40104 |
|
|
44
|
+
|  | 40103 |
|
|
45
|
+
|  | 40102 |
|
|
46
|
+
|  | 40101 |
|
|
47
|
+
|  | 40100 |
|
|
48
|
+
|  | 40151 |
|
|
49
|
+
|  | 40146 |
|
|
50
|
+
|  | 40145 |
|
|
51
|
+
|  | 40141 |
|
|
52
|
+
|  | 40140 |
|
|
53
|
+
|  | 40138 |
|
|
54
|
+
|  | 40137 |
|
|
55
|
+
|  | 40136 |
|
|
56
|
+
|  | 40134 |
|
|
57
|
+
|  | 114400 |
|
|
58
|
+
|  | 114434 |
|
|
59
|
+
|  | 114435 |
|
|
60
|
+
|  | 114401 |
|
|
61
|
+
|  | 114402 |
|
|
62
|
+
|  | 114403 |
|
|
63
|
+
|  | 114405 |
|
|
64
|
+
|  | 114406 |
|
|
65
|
+
|  | 114404 |
|
|
66
|
+
|  | 114407 |
|
|
67
|
+
|  | 114408 |
|
|
68
|
+
|  | 114409 |
|
|
69
|
+
|  | 114410 |
|
|
70
|
+
|  | 114411 |
|
|
71
|
+
|  | 114412 |
|
|
72
|
+
|  | 114413 |
|
|
73
|
+
|  | 114414 |
|
|
74
|
+
|  | 114415 |
|
|
75
|
+
|  | 114416 |
|
|
76
|
+
|  | 114417 |
|
|
77
|
+
|  | 114418 |
|
|
78
|
+
|  | 114419 |
|
|
79
|
+
|  | 114420 |
|
|
80
|
+
|  | 114421 |
|
|
81
|
+
|  | 114422 |
|
|
82
|
+
|  | 114423 |
|
|
83
|
+
|  | 114424 |
|
|
84
|
+
|  | 114425 |
|
|
85
|
+
|  | 114426 |
|
|
86
|
+
|  | 114427 |
|
|
87
|
+
|  | 114428 |
|
|
88
|
+
|  | 114429 |
|
|
89
|
+
|  | 114430 |
|
|
90
|
+
|  | 114432 |
|
|
91
|
+
|  | 114431 |
|
|
92
|
+
|  | 114433 |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- Source: https://developers.viber.com/docs/tools/text-formatting/ | Retrieved: 2026-11-24T14:07:06+07:00 -->
|
|
2
|
+
|
|
3
|
+
<a id="text-formatting"></a>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# Text Formatting
|
|
7
|
+
|
|
8
|
+
Just like in any Viber chat, you can use text formatting in messages sent from bots.
|
|
9
|
+
|
|
10
|
+
You can format your message by adding specific markdown characters to any text string using the following markdown guidelines:
|
|
11
|
+
|
|
12
|
+
| Format | Markdown | String to be sent | Appearance on message |
|
|
13
|
+
| --- | --- | --- | --- |
|
|
14
|
+
| Bold | One asterisk at each end of the text: \* | \*This text will be bold\* | **This text will be bold** |
|
|
15
|
+
| Italics | One underscore at each end of the text: \_ | \_This text will be in italics\_ | *This text will be in italics* |
|
|
16
|
+
| Monospace | Three backticks at each end of the text: | ```This text will be in monospace``` | `This text will be in monospace` |
|
|
17
|
+
| Strikethrough | One tilde at each end of the text: ~ | ~This text will have a strikethrough ~ | ~~This text will have a strikethrough~~ |
|
|
18
|
+
|
|
19
|
+
There must be a space between the last markdown symbol and the next word for the formatting to work. For example:
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
● \*Viber\*bots will be \*Viber\*bots
|
|
23
|
+
|
|
24
|
+
● \*Viber\* bots will be **Viber** bots
|
|
25
|
+
|
|
26
|
+
If you want to send a message which uses markdown symbols, add a space after the first symbol or before the last symbol to avoid formatting the text. For example:
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
● \*Viber\* will be **Viber**
|
|
30
|
+
|
|
31
|
+
● \* Viber\* will be \* Viber\*
|
|
32
|
+
|
|
33
|
+
Users can send formatted messages back to the bot. Such messages will be displayed with the markdown symbols in the callback text parameter. For example:
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
● User sent: **Viber**
|
|
37
|
+
|
|
38
|
+
● Callback text will be: \*Viber\*
|
|
39
|
+
|
|
40
|
+
**Compatibility**: Only users with Viber version 14.6 and above will be able to see and send formatting in messages; users with older versions will see the markdowns instead.
|
|
41
|
+
|
|
42
|
+
**Limitations**: Markdowns can’t be used in bot keyboards and carousel content messages (rich media messages). If you need to format your text please use HTML tags as described in our [Keyboards documentation](keyboards.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@redonvn/messaging-viber-bot",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Official Viber Bot and Public Account REST API SDK for RedAI",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
10
|
+
"test": "node --test test/*.test.cjs",
|
|
11
|
+
"prepack": "npm run typecheck && npm run build && npm test"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@types/node": "^20.11.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"tsx": "^4.19.2",
|
|
18
|
+
"typescript": "^5.5.0"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"require": "./dist/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public",
|
|
29
|
+
"registry": "https://registry.npmjs.org/"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": "\u003e=18"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"README.md",
|
|
37
|
+
"USAGE.md",
|
|
38
|
+
"docs"
|
|
39
|
+
]
|
|
40
|
+
}
|