Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore: use synthetic values in examples and fixtures
Yudhi Armyndharis9ed5d1b97d46
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f103eba08..db5fb8ff8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- The channel and status pane heading truncates with an ellipsis and carries its full text in a tooltip. A long title previously ran past the panel edge, cut mid-glyph with nothing to signal it.- The Chats page shows one pane at a time from 769px to 888px with the navigation expanded, where two panes left the room narrower than the composer and pushed the send button out of the panel. The message field now keeps a floor rather than shrinking to nothing.- The reply banner's quoted name truncates with an ellipsis, and a location message's map preview is bounded by its bubble. Both previously painted outside the chat panel when the room was narrow.+- API examples and test fixtures use synthetic identifiers throughout, so the published schema and the specs no longer carry values copied from a live account.## [0.23.0] - 2026-08-20diff --git a/dashboard/src/utils/instanceForm.test.ts b/dashboard/src/utils/instanceForm.test.tsindex 0863b6a10..f72f9cdd1 100644--- a/dashboard/src/utils/instanceForm.test.ts+++ b/dashboard/src/utils/instanceForm.test.ts@@ -16,7 +16,7 @@ test('isValidInstanceSecret: blank → auto-generate, short → rejected, >=16assert.equal(isValidInstanceSecret('too-short'), false);assert.equal(isValidInstanceSecret('x'.repeat(15)), false);assert.equal(isValidInstanceSecret('x'.repeat(16)), true);- assert.equal(isValidInstanceSecret(' 5t7oive8SuXwrnVgLEQs88gm '), true); // padded real secret trims to valid+ assert.equal(isValidInstanceSecret(' 0123456789abcdef01234567 '), true); // padded value trims to a valid length});test('parseInstanceConfig: blank → undefined, object → parsed, invalid → not ok', () => {diff --git a/openapi.json b/openapi.jsonindex 9bf4b4361..101318684 100644--- a/openapi.json+++ b/openapi.json@@ -14774,12 +14774,12 @@"inviteCode": {"type": "string","description": "The invite code on its own.",- "example": "GTvX9c8H8l718ewOH22Zk5"+ "example": "EXAMPLEINVITECODE12345"},"inviteLink": {"type": "string","description": "The same code as a joinable link.",- "example": "https://chat.whatsapp.com/GTvX9c8H8l718ewOH22Zk5"+ "example": "https://chat.whatsapp.com/EXAMPLEINVITECODE12345"}},"required": [@@ -14793,12 +14793,12 @@"inviteCode": {"type": "string","description": "The invite code on its own.",- "example": "GTvX9c8H8l718ewOH22Zk5"+ "example": "EXAMPLEINVITECODE12345"},"inviteLink": {"type": "string","description": "The same code as a joinable link.",- "example": "https://chat.whatsapp.com/GTvX9c8H8l718ewOH22Zk5"+ "example": "https://chat.whatsapp.com/EXAMPLEINVITECODE12345"},"message": {"type": "string",diff --git a/scripts/patch-wwebjs-block.js b/scripts/patch-wwebjs-block.jsindex 8d8521bf2..cafa3ab70 100644--- a/scripts/patch-wwebjs-block.js+++ b/scripts/patch-wwebjs-block.js@@ -18,7 +18,7 @@* `[blocklist] trying to block a pn contact without a chat`. Blocking requires an identity that* owns a chat.* 3. Individual chats are keyed by LID now, while whatsapp-web.js folds every identity back to a- * phone number: `getContactById('148004841455867@lid')` answers `id: [email protected]`. So the+ * phone number: `getContactById('100000000000000@lid')` answers `id: [email protected]`. So the* id `Contact.block()` had in hand was precisely the one WhatsApp refuses.** The fix therefore resolves the contact to the identity that actually owns the chat, and calls thediff --git a/src/engine/adapters/baileys-catalog.ts b/src/engine/adapters/baileys-catalog.tsindex 2ade4042a..c9ba27c14 100644--- a/src/engine/adapters/baileys-catalog.ts+++ b/src/engine/adapters/baileys-catalog.ts@@ -98,9 +98,9 @@ export class BaileysCatalog {}/**- * ponytail: walks the whole cursor chain on every call (no cursor cache), so page N costs the- * full catalog. WhatsApp caps catalogs at ~500 products; if profiling shows the walk matters,- * cache pages keyed by cursor and serve offsets from the cache.+ * Walks the whole cursor chain on every call (no cursor cache), so page N costs the full+ * catalog. WhatsApp caps catalogs at ~500 products; if profiling shows the walk matters, cache+ * pages keyed by cursor and serve offsets from the cache.** The budget is computed once and shared by every page: a per-query deadline would multiply by* the page count, making a ten-page walk slower than the 60s stall it replaces.diff --git a/src/modules/group/dto/group-response.dto.ts b/src/modules/group/dto/group-response.dto.tsindex b8ed4b455..edb083f06 100644--- a/src/modules/group/dto/group-response.dto.ts+++ b/src/modules/group/dto/group-response.dto.ts@@ -224,12 +224,12 @@ export class GroupPictureResponseDto {}export class GroupInviteCodeResponseDto {- @ApiProperty({ description: 'The invite code on its own.', example: 'GTvX9c8H8l718ewOH22Zk5' })+ @ApiProperty({ description: 'The invite code on its own.', example: 'EXAMPLEINVITECODE12345' })inviteCode!: string;@ApiProperty({description: 'The same code as a joinable link.',- example: 'https://chat.whatsapp.com/GTvX9c8H8l718ewOH22Zk5',+ example: 'https://chat.whatsapp.com/EXAMPLEINVITECODE12345',})inviteLink!: string;}diff --git a/src/modules/message/dto/send-message.dto.spec.ts b/src/modules/message/dto/send-message.dto.spec.tsindex 2f4309ac8..a84f4a6ac 100644--- a/src/modules/message/dto/send-message.dto.spec.ts+++ b/src/modules/message/dto/send-message.dto.spec.ts@@ -171,7 +171,7 @@ describe('mentions WID shape', () => {const accepted: Array<[string, string]> = [['phone @c.us (the documented form)', '[email protected]'],['raw protocol @s.whatsapp.net (the #156 workaround)', '[email protected]'],- ['privacy id @lid (phone genuinely unknown)', '148004841455867@lid'],+ ['privacy id @lid (phone genuinely unknown)', '100000000000000@lid'],['multi-device suffix', '628123456789:[email protected]'],];