kage-baileys 25.3.3 → 25.3.7
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/lib/Defaults/index.js
CHANGED
|
@@ -358,3 +358,6 @@ for (const name of ['WA_CERT_DETAILS', 'MEDIA_PATH_MAP', 'MEDIA_HKDF_KEY_MAPPING
|
|
|
358
358
|
}
|
|
359
359
|
exports.MEDIA_HKDF_KEY_MAPPING['product-catalog-image'] = 'Product Catalog Image';
|
|
360
360
|
exports.MEDIA_KEYS = [...new Set([...exports.MEDIA_KEYS, ...Object.keys(exports.MEDIA_PATH_MAP)])];
|
|
361
|
+
|
|
362
|
+
// Kage: AI bot JID used by AIRich forward/default target
|
|
363
|
+
exports.DEFAULT_AI_BOT_JID = process.env.KAGE_AI_BOT_JID || '13135550002@s.whatsapp.net';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal stub – full payment params builder may live in upstream forks.
|
|
4
|
+
* Keeps Builders/Button.js importable.
|
|
5
|
+
*/
|
|
6
|
+
function buildPaymentParams(spec = {}) {
|
|
7
|
+
if (typeof spec === "string") {
|
|
8
|
+
try { spec = JSON.parse(spec); } catch { spec = { reference_id: spec }; }
|
|
9
|
+
}
|
|
10
|
+
const params = {
|
|
11
|
+
reference_id: spec.reference_id || spec.referenceId || `pay_${Date.now()}`,
|
|
12
|
+
type: spec.type || "physical-goods",
|
|
13
|
+
payment_configuration: spec.payment_configuration || spec.paymentConfiguration || "merchant_account",
|
|
14
|
+
currency: spec.currency || "USD",
|
|
15
|
+
total_amount: spec.total_amount || spec.totalAmount || { value: 0, offset: 100 },
|
|
16
|
+
order: spec.order || undefined,
|
|
17
|
+
payment_method: spec.payment_method || spec.paymentMethod || undefined,
|
|
18
|
+
};
|
|
19
|
+
return JSON.stringify(params);
|
|
20
|
+
}
|
|
21
|
+
module.exports = { buildPaymentParams };
|
|
22
|
+
exports.buildPaymentParams = buildPaymentParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kage-baileys",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.7",
|
|
4
4
|
"description": "Kage Baileys full merge — Builders + mbuilder + Framework + advanced sticker packs + KAGE pairing + extended WAProto + full TypeScript defs (.d.ts + maps) from elray + path utils. Multi-device ready.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kage-baileys",
|