Free, Open Source, Self-Hosted WhatsApp API Gateway
This report presents the forensic synthetic code analysis of rmyndharis/OpenWA, a TypeScript project with 13,288 GitHub stars. SynthScan v2.0 examined 309,780 lines of code across 1467 source files, recording 717 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 4.2 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 717 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/webhooks.e2e-spec.ts | 131 | // ── CRUD over the REST surface ──────────────────────────────────── | COMMENT |
| MEDIUM | test/webhooks.e2e-spec.ts | 232 | // ── auth boundaries ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/webhooks.e2e-spec.ts | 250 | // ── registration validation ─────────────────────────────────────── | COMMENT |
| MEDIUM | test/webhooks.e2e-spec.ts | 286 | // ── dispatch over real HTTP ─────────────────────────────────────── | COMMENT |
| MEDIUM | test/webhooks.e2e-spec.ts | 404 | // ── payload bounds (per-session cap + inline-media shedding) ────── | COMMENT |
| MEDIUM | test/webhooks.e2e-spec.ts | 466 | // ── the test endpoint ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 392 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 394 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 401 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 403 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 419 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 421 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 443 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 445 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 457 | # =========================================== | COMMENT |
| MEDIUM | docs/10-devops-infrastructure.md | 459 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 470 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 472 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 478 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 480 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 487 | # =========================================== | COMMENT |
| MEDIUM⚡ | docs/10-devops-infrastructure.md | 489 | # =========================================== | COMMENT |
| MEDIUM | dashboard/src/utils/authLifecycle.test.ts | 63 | // ── App-level auth flow: exactly one /auth/validate per sign-in ────────────── | COMMENT |
| MEDIUM | dashboard/src/utils/sessionActions.test.ts | 99 | // ── replaceSession ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/utils/sessionActions.test.ts | 156 | // ── classifyUnlinkError ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 20 | // ── Query Keys ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 40 | // ── Session Queries ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 86 | // ── Webhook Queries ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 132 | // ── Template Queries ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 175 | // ── API Key Queries ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 221 | // ── Logs Queries ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 236 | // ── Infrastructure Queries ──────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 254 | // ── Plugin Queries ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/hooks/queries.ts | 330 | // ── Stats Queries ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 18 | // ── Fixtures + fetch stub ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 175 | // ── DOM helpers ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 196 | // ── Harness bootstrap ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 242 | // ── Smoke tests ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 351 | // ── The engine radio's seed source (#1082) ─────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 351 | // ── The engine radio's seed source (#1082) ─────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Infrastructure.test.ts | 513 | // ── Restart-flow timer cleanup on unmount ──────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Plugins.tsx | 386 | // ── Activation ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Plugins.tsx | 404 | // ── Per-session config override ─────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Sessions.test.ts | 22 | // ── Fixtures + fetch stub ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Sessions.test.ts | 172 | // ── Harness bootstrap ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Sessions.test.ts | 223 | // ── Smoke tests ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Sessions.test.ts | 354 | // ── Auto-reject toggle ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Chats.test.ts | 21 | // ── Fixtures + fetch stub ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Chats.test.ts | 218 | // ── Harness bootstrap ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | dashboard/src/pages/Chats.test.ts | 272 | // ── Smoke tests ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/go/types_misc.go | 3 | // ── Health ────────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/go/types_misc.go | 25 | // ── Auth ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/go/types_misc.go | 33 | // ── Template ─────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/go/types_misc.go | 67 | // ── Label (WhatsApp Business) ──────────────────────────────── | COMMENT |
| MEDIUM⚡ | sdk/python/tests/test_sdk.py | 16 | # ── Client core ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | sdk/python/tests/test_sdk.py | 147 | # ── Messages (the critical send-text fix) ────────────────────────── | COMMENT |
| MEDIUM⚡ | sdk/python/tests/test_sdk.py | 849 | # ── Search ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/python/tests/test_sdk.py | 311 | # ── Sessions ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sdk/python/tests/test_sdk.py | 366 | # ── Groups, Contacts, Webhooks, Chats, Health ────────────────────── | COMMENT |
| MEDIUM | sdk/python/openwa/client.py | 101 | # ── Resources ──────────────────────────────────────────────────── | COMMENT |
| 169 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dashboard/src/utils/importRefusal.ts | 24 | export function shouldOfferStopOrphansRetry( | CODE |
| LOW | dashboard/src/hooks/queries.ts | 143 | export function useCreateTemplateMutation() { | CODE |
| LOW | dashboard/src/hooks/queries.ts | 154 | export function useUpdateTemplateMutation() { | CODE |
| LOW | dashboard/src/hooks/queries.ts | 165 | export function useDeleteTemplateMutation() { | CODE |
| LOW⚡ | dashboard/src/hooks/queries.ts | 273 | export function useCreateInstanceMutation(pluginId: string) { | CODE |
| LOW⚡ | dashboard/src/hooks/queries.ts | 283 | export function useRegenerateInstanceSecretMutation(pluginId: string) { | CODE |
| LOW⚡ | dashboard/src/hooks/queries.ts | 293 | export function useUpdateInstanceMutation(pluginId: string) { | CODE |
| LOW | dashboard/src/hooks/queries.ts | 304 | export function useDeleteInstanceMutation(pluginId: string) { | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 20 | def test_requires_base_url_and_api_key(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 26 | def test_sends_api_key_header(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 33 | def test_default_headers_cannot_override_api_key(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 57 | def test_path_segments_are_encoded(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 65 | def test_raw_request_escape_hatch(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 71 | def test_treats_unfollowed_redirect_as_error(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 91 | def test_strips_trailing_slash(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 97 | def test_query_params_skip_none(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 104 | def test_build_url_omits_none_valued_params(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 141 | def test_exposes_all_resources(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 151 | def test_send_text_uses_send_text_path(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 157 | def test_send_text_forwards_mentions_verbatim(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 162 | def test_send_poll_uses_send_poll_path(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 201 | def test_send_template_accepts_template_name(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 206 | def test_list_returns_messages_total_wrapper(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 212 | def test_quoted_message_id_reaches_the_body_on_every_send(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 624 | def test_vote_poll_posts_option_texts(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 630 | def test_star_posts_the_boolean_through(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 636 | def test_pin_and_unpin_post_to_their_routes(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 646 | def test_message_media_fetches_archived_bytes(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 654 | def test_media_fetches_stored_status_bytes(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 728 | def test_chats_pin_reports_refusal(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 732 | def test_chats_mute_sends_epoch_milliseconds_unchanged(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 740 | def test_chats_mute_sends_explicit_null_to_unmute(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 843 | def test_client_exposes_all_resources(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 853 | def test_search_minimal_required_q(self): | CODE |
| LOW⚡ | sdk/python/tests/test_sdk.py | 862 | def test_search_forwards_all_optional_filters(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 186 | def test_send_location_contact_template(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 235 | def test_ordinary_send_carries_no_quote_key(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 265 | def test_history_and_reactions_path(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 276 | def test_history_boolean_query_serializes_lowercase(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 284 | def test_bulk_and_batch_status(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 399 | def test_subject_description_invite(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 425 | def test_group_settings_get_and_update(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 442 | def test_set_profile_name_and_status(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 466 | def test_delete_profile_picture(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 493 | def test_convert_video_with_url(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 546 | def test_list_blocked_gets_session_wide_route(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 557 | def test_profile_pictures_batch_resolves_ids_query(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 589 | def test_create_forwards_polymorphic_filter_values_verbatim(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 606 | def test_send_image_video_forward_nested_media_body(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 688 | def test_chats_clear_messages(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 706 | def test_contacts_addressbook(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 891 | def test_search_returns_hits_shape(self): | CODE |
| LOW | sdk/python/tests/test_sdk.py | 909 | def test_search_none_values_skipped_in_query(self): | CODE |
| LOW | sdk/python/openwa/resources/groups.py | 160 | def approve_membership_requests( | CODE |
| LOW | sdk/python/openwa/resources/groups.py | 176 | def reject_membership_requests( | CODE |
| LOW | sdk/php/tests/MessagesTest.php | 12 | public function testSendTextUsesSendTextPath(): void | CODE |
| LOW | sdk/php/tests/MessagesTest.php | 24 | public function testSendTextForwardsMentionsVerbatim(): void | CODE |
| LOW | sdk/php/tests/MessagesTest.php | 35 | public function testSendPollUsesSendPollPath(): void | CODE |
| LOW | sdk/php/tests/MessagesTest.php | 54 | public function testListReturnsMessagesPageEnvelope(): void | CODE |
| LOW | sdk/php/tests/MessagesTest.php | 86 | public function testMediaSegmentsUseCorrectPaths(string $method, string $segment): void | CODE |
| 111 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.dev.yml | 1 | # OpenWA - Local smoke / quick-start compose | COMMENT |
| LOW | docker-entrypoint.sh | 1 | #!/bin/sh | COMMENT |
| LOW | docker-compose.yml | 21 | # method gate for non-GET requests (haproxy.cfg: `deny unless METH_GET || env(POST)`). | COMMENT |
| LOW | docker-compose.yml | 81 | tmpfs: | COMMENT |
| LOW | docker-compose.yml | 101 | - NODE_ENV=${NODE_ENV:-production} | COMMENT |
| LOW | docker-compose.yml | 121 | - DATABASE_HOST=${DATABASE_HOST:-} | COMMENT |
| LOW | docker-compose.yml | 141 | - SESSION_DATA_PATH=${SESSION_DATA_PATH:-} | COMMENT |
| LOW | docker-compose.yml | 161 | - STATUS_SEED_ON_READY=${STATUS_SEED_ON_READY:-false} | COMMENT |
| LOW | test/setup-e2e.ts | 1 | // e2e boot environment. Set BEFORE AppModule is imported (setupFiles phase) so the | COMMENT |
| LOW | test/setup-e2e.ts | 21 | // Restoring parallelism means giving each worker its own data root, not just its own database. | COMMENT |
| LOW | test/mcp-auth.e2e-spec.ts | 161 | // Triggering it in e2e needs > 60 same-key tool calls in 60s, making the | COMMENT |
| LOW | charts/openwa/values.yaml | 1 | # replicaCount MUST stay 1. A session lease now stops two pods from launching the same | COMMENT |
| LOW | charts/openwa/values.yaml | 21 | # Any variable from .env.example is valid here — that file stays the canonical list. | COMMENT |
| LOW | charts/openwa/values.yaml | 41 | # container. Pod annotations are readable by anyone with `get pods`, which is a wider set | COMMENT |
| LOW | charts/openwa/templates/statefulset.yaml | 41 | containerPort: 2785 | COMMENT |
| LOW | docs/12-troubleshooting-faq.md | 681 | MEDIA_DOWNLOAD_MAX_BYTES=52428800 | COMMENT |
| LOW | docs/14-migration-guide.md | 681 | # upgrade.sh — same shape for a patch or a minor | COMMENT |
| LOW | docs/11-operational-runbooks.md | 541 | # - plugin-packages/ — installed plugin code from PLUGINS_DIR | COMMENT |
| LOW | docs/10-devops-infrastructure.md | 401 | # =========================================== | COMMENT |
| LOW | docs/10-devops-infrastructure.md | 421 | # =========================================== | COMMENT |
| LOW | docs/10-devops-infrastructure.md | 441 | # S3_SECRET_ACCESS_KEY=minioadmin | COMMENT |
| LOW | dashboard/src/a11y-controls.test.ts | 1 | import { test } from 'node:test'; | COMMENT |
| LOW | dashboard/src/a11y-controls.test.ts | 21 | // `className="toggle-switch toggle-switch-sm"` modifier fell out of the sweep; `accept="image/*"` | COMMENT |
| LOW | dashboard/src/utils/sessionActions.ts | 1 | // Which lifecycle actions a session card offers, extracted for direct unit testing (dashboard tests | COMMENT |
| LOW | dashboard/src/utils/sessionActions.ts | 21 | COMMENT | |
| LOW | dashboard/src/hooks/useWebSocket.ts | 141 | // Falls back to env var or localhost for development | COMMENT |
| LOW | dashboard/src/hooks/useInfraConfigForm.ts | 201 | })); | COMMENT |
| LOW | dashboard/src/test-helpers/register-hooks.ts | 1 | /// <reference types="node" /> | COMMENT |
| LOW | dashboard/src/i18n/lazy-locales-rtl.test.ts | 1 | // The first load of a non-English, right-to-left visitor — the path where the lazy split actually | COMMENT |
| LOW | dashboard/src/i18n/locales.test.ts | 221 | COMMENT | |
| LOW | dashboard/src/pages/Sessions.tsx | 161 | // The badge renders from the server projection (`session.restriction`), and a restriction can | COMMENT |
| LOW | dashboard/src/pages/Infrastructure.test.ts | 1 | // Render smoke test for the Infrastructure page under the bare `node --test` runner. Mirrors | COMMENT |
| LOW | dashboard/src/pages/Sessions.test.ts | 1 | // Render smoke test for the Sessions page under the bare `node --test` runner. Mirrors | COMMENT |
| LOW | dashboard/src/pages/Chats.test.ts | 1 | // Render smoke test for the Chats page under the bare `node --test` runner (no vitest/jest). | COMMENT |
| LOW | dashboard/src/services/api.ts | 1 | // API Service Layer for OpenWA Dashboard | COMMENT |
| LOW | sdk/go/transport.go | 21 | // of subclassing the client. | COMMENT |
| LOW | sdk/go/types.go | 1 | package openwa | COMMENT |
| LOW | sdk/go/client.go | 1 | // Package openwa is the official Go client for the OpenWA WhatsApp API Gateway. | COMMENT |
| LOW | sdk/go/types_group.go | 41 | AddedByID string `json:"addedById,omitempty"` | COMMENT |
| LOW | sdk/go/types_group.go | 101 | // JoinGroupRequest joins a group via an invite code (the token from a | COMMENT |
| LOW | sdk/go/types_message.go | 21 | // LinkPreview controls the URL preview. False suppresses it on both engines. Otherwise the | COMMENT |
| LOW | sdk/go/types_session.go | 221 | // SessionConfig is a session's effective runtime configuration. A nil MaxReconnectAttempts means | COMMENT |
| LOW | sdk/go/retry.go | 21 | } | COMMENT |
| LOW | sdk/go/retry.go | 61 | // which prove the server declined the request before acting on it. A | COMMENT |
| LOW | sdk/go/errors.go | 21 | // ErrBadRequest is returned for a 400 (invalid request payload). | COMMENT |
| LOW | sdk/go/errors.go | 41 | ErrServiceUnavailable = errors.New("openwa: service unavailable") | COMMENT |
| LOW | sdk/python/pyproject.toml | 41 | [tool.pytest.ini_options] | COMMENT |
| LOW | scripts/export-openapi.ts | 1 | // Generates the committed OpenAPI snapshot by bootstrapping the Nest app WITHOUT listening, | COMMENT |
| LOW | scripts/export-openapi.ts | 21 | // never calls init(), so onModuleInit / onApplicationBootstrap hooks — session autostart, the | COMMENT |
| LOW | scripts/export-openapi.ts | 41 | COMMENT | |
| LOW | scripts/smoke-test-backup-restore.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/patch-wwebjs-201832.js | 41 | // Every normalization site the backport must land, so a hunk that fails to apply can never pass | COMMENT |
| LOW | scripts/patch-wwebjs-201832.js | 241 | // whose hunks needed an offset or rejected — 328K of pre-patch source | COMMENT |
| LOW | scripts/restore.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/restore.sh | 21 | # explicit env path wins, otherwise the fixed ./data default. They are NOT | COMMENT |
| LOW | scripts/pg-uuid-smoke.js | 1 | /* eslint-disable */ | COMMENT |
| LOW | scripts/backup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/backup.sh | 21 | # MAIN_DATABASE_NAME auth/audit SQLite file (default: ./data/main.sqlite) | COMMENT |
| LOW | scripts/lib-env.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/postgres-init-schema.sh | 1 | #!/bin/bash | COMMENT |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | README.md | 280 | -H "X-API-Key: YOUR_API_KEY" \ | CODE |
| HIGH⚡ | README.md | 289 | -H "X-API-Key: YOUR_API_KEY" | CODE |
| HIGH⚡ | README.md | 293 | -H "X-API-Key: YOUR_API_KEY" | CODE |
| HIGH⚡ | README.md | 301 | -H "X-API-Key: YOUR_API_KEY" \ | CODE |
| HIGH | README.md | 313 | -H "X-API-Key: YOUR_API_KEY" \ | CODE |
| HIGH | README.md | 344 | "headers": { "Authorization": "Bearer YOUR_API_KEY" } | CODE |
| HIGH | docs/24-mcp-integration.md | 204 | "headers": { "Authorization": "Bearer YOUR_API_KEY" } | CODE |
| HIGH⚡ | docs/README.md | 138 | -H "X-API-Key: your-api-key" \ | CODE |
| HIGH⚡ | docs/README.md | 144 | -H "X-API-Key: your-api-key" | CODE |
| HIGH⚡ | docs/README.md | 148 | -H "X-API-Key: your-api-key" | CODE |
| HIGH⚡ | docs/README.md | 152 | -H "X-API-Key: your-api-key" \ | CODE |
| HIGH | docs/README.md | 163 | extraHeaders: { 'X-API-Key': 'your-api-key' }, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sdk/python/tests/conftest.py | 8 | CODE | |
| LOW | sdk/python/tests/test_sdk.py | 3 | CODE | |
| LOW | sdk/python/openwa/_http.py | 10 | CODE | |
| LOW | sdk/python/openwa/_http.py | 17 | CODE | |
| LOW | sdk/python/openwa/client.py | 24 | CODE | |
| LOW | sdk/python/openwa/client.py | 27 | CODE | |
| LOW | sdk/python/openwa/client.py | 33 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 23 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 25 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/__init__.py | 26 | CODE | |
| LOW | sdk/python/openwa/types.py | 11 | CODE | |
| LOW | sdk/python/openwa/types.py | 13 | CODE | |
| LOW | sdk/python/openwa/errors.py | 11 | CODE | |
| LOW | sdk/python/openwa/resources/catalog.py | 10 | CODE | |
| LOW | sdk/python/openwa/resources/catalog.py | 25 | CODE | |
| LOW | sdk/python/openwa/resources/labels.py | 8 | CODE | |
| LOW | sdk/python/openwa/resources/labels.py | 16 | CODE | |
| LOW | sdk/python/openwa/resources/sessions.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/sessions.py | 25 | CODE | |
| LOW | sdk/python/openwa/resources/media.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/media.py | 14 | CODE | |
| LOW | sdk/python/openwa/resources/contacts.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/contacts.py | 22 | CODE | |
| LOW | sdk/python/openwa/resources/health.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/health.py | 13 | CODE | |
| LOW | sdk/python/openwa/resources/profile.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/profile.py | 19 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 7 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 9 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 10 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 11 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 12 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 13 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 14 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 15 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 16 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 17 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 18 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 19 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 20 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 21 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 22 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 23 | CODE | |
| LOW | sdk/python/openwa/resources/__init__.py | 24 | CODE | |
| LOW | sdk/python/openwa/resources/groups.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/groups.py | 27 | CODE | |
| LOW | sdk/python/openwa/resources/templates.py | 6 | CODE | |
| LOW | sdk/python/openwa/resources/templates.py | 14 | CODE | |
| LOW | sdk/python/openwa/resources/messages.py | 7 | CODE | |
| LOW | sdk/python/openwa/resources/messages.py | 43 | CODE | |
| LOW | sdk/python/openwa/resources/search.py | 8 | CODE | |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openapi.json | 675 | "pushName": "John Doe", | CODE |
| LOW | openapi.json | 10014 | "example": "John Doe", | CODE |
| LOW | docs/06-api-specification.md | 1835 | { "chatId": "628123456789@c.us", "contactName": "John Doe", "contactNumber": "628987654321" } | CODE |
| LOW | docs/06-api-specification.md | 2182 | "name": "Jane Doe", | CODE |
| LOW | docs/06-api-specification.md | 2218 | "name": "Jane Doe", | CODE |
| LOW | docs/06-api-specification.md | 2294 | "name": "Jane Doe", | CODE |
| LOW | docs/07-api-collection.md | 478 | -d '{ "chatId": "628123456789@c.us", "contactName": "John Doe", "contactNumber": "628987654321" }' | CODE |
| LOW | dashboard/src/a11y-controls.test.ts | 371 | attr(node, 'placeholder') !== undefined || | CODE |
| LOW | dashboard/src/i18n/locales/tr.json | 262 | "placeholder": "ör. pazarlama-botu", | CODE |
| LOW | dashboard/src/i18n/locales/tr.json | 964 | "placeholder": "Mesajlarda ara…", | CODE |
| LOW | dashboard/src/i18n/locales/de.json | 262 | "placeholder": "z. B. marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/de.json | 964 | "placeholder": "Nachrichten durchsuchen…", | CODE |
| LOW | dashboard/src/i18n/locales/zh-CN.json | 262 | "placeholder": "例如:marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/zh-CN.json | 964 | "placeholder": "搜索消息…", | CODE |
| LOW | dashboard/src/i18n/locales/en.json | 262 | "placeholder": "e.g., marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/en.json | 635 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/en.json | 964 | "placeholder": "Search messages…", | CODE |
| LOW | dashboard/src/i18n/locales/zh-HK.json | 262 | "placeholder": "例如:marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/zh-HK.json | 964 | "placeholder": "搜尋訊息…", | CODE |
| LOW | dashboard/src/i18n/locales/it.json | 262 | "placeholder": "es., marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/it.json | 635 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/it.json | 964 | "placeholder": "Cerca messaggi…", | CODE |
| LOW | dashboard/src/i18n/locales/fr.json | 262 | "placeholder": "ex : marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/fr.json | 635 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/fr.json | 964 | "placeholder": "Rechercher des messages…", | CODE |
| LOW | dashboard/src/i18n/locales/pt-BR.json | 262 | "placeholder": "ex.: bot-marketing", | CODE |
| LOW | dashboard/src/i18n/locales/pt-BR.json | 589 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/pt-BR.json | 964 | "placeholder": "Pesquisar mensagens…", | CODE |
| LOW | dashboard/src/i18n/locales/ko.json | 262 | "placeholder": "예: marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/ko.json | 964 | "placeholder": "메시지 검색…", | CODE |
| LOW | dashboard/src/i18n/locales/he.json | 269 | "placeholder": "לדוגמה: marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/he.json | 973 | "placeholder": "חיפוש הודעות…", | CODE |
| LOW | dashboard/src/i18n/locales/te.json | 262 | "placeholder": "ఉదాహరణకు, marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/te.json | 635 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/te.json | 964 | "placeholder": "సందేశాలను శోధించండి…", | CODE |
| LOW | dashboard/src/i18n/locales/es.json | 262 | "placeholder": "ej., bot-marketing", | CODE |
| LOW | dashboard/src/i18n/locales/es.json | 589 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/es.json | 964 | "placeholder": "Buscar mensajes…", | CODE |
| LOW | dashboard/src/i18n/locales/ar.json | 273 | "placeholder": "مثال: marketing-bot", | CODE |
| LOW | dashboard/src/i18n/locales/ar.json | 650 | "contactNamePlaceholder": "Jane Doe", | CODE |
| LOW | dashboard/src/i18n/locales/ar.json | 979 | "placeholder": "ابحث في الرسائل…", | CODE |
| LOW⚡ | src/modules/message/message-send.service.spec.ts | 808 | contactName: 'John Doe', | CODE |
| LOW⚡ | src/modules/message/message-send.service.spec.ts | 815 | expect.objectContaining({ name: 'John Doe', number: '+628123456789' }), | CODE |
| LOW | src/modules/session/session.controller.ts | 293 | pushName: 'John Doe', | CODE |
| LOW | src/modules/session/dto/session-response.dto.ts | 50 | @ApiPropertyOptional({ type: String, example: 'John Doe', nullable: true }) | CODE |
| LOW | src/engine/adapters/baileys.adapter.spec.ts | 1288 | await adapter.sendContactMessage('628111@s.whatsapp.net', { name: 'John Doe', number: '+1 234-567' }); | CODE |
| LOW | src/engine/adapters/baileys.adapter.spec.ts | 1293 | expect(call.contacts.displayName).toBe('John Doe'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/14-migration-guide.md | 97 | # Step 1: Export all Data DB tables | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 101 | # Step 2: Change database configuration in .env or Dashboard | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 106 | # Step 3: Restart with new configuration | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 109 | # Step 4: Import data to new database | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 190 | # Step 1: Check current storage file count | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 195 | # Step 2: Export all files as tar.gz | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 202 | # Step 3: Change storage configuration | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 207 | # Step 4: Restart with new configuration | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 210 | # Step 5: Import files to new storage | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 263 | # Step 1: Check queue status via Bull Board | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 266 | # Step 2: Wait until the webhook and ingress queues are empty (Bull Board shows webhook-queue and ingress-queue; there i | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 272 | # Step 3: Change Redis configuration | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 275 | # Step 4: Restart application | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 496 | # Step 1: Stop OpenWA | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 499 | # Step 2: Backup current data (both databases + session auth + media) | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 502 | # Step 3: Setup PostgreSQL (if not exists) — the built-in service lives behind a compose profile | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 505 | # Step 4: Run the migration — save the "Migration Script (Legacy)" example above as | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 509 | # Step 5: Update environment | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 517 | # Step 6: Verify migration | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 521 | # Step 7: Start with PostgreSQL | COMMENT |
| LOW⚡ | docs/14-migration-guide.md | 524 | # Step 8: Verify functionality | COMMENT |
| LOW | dashboard/src/utils/messageFormatter.ts | 41 | // Step 1: peel off code segments, emit nodes between them. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | sdk/python/tests/test_sdk.py | 236 | # Known-negative control: without it an implementation that always emitted the key — as null, | COMMENT |
| HIGH | sdk/python/openwa/types.py | 1293 | # provider returns waMessageId/snippet as "" when absent (always str, never null); | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker-compose.yml | 28 | # datastore orchestration (Dashboard > Infrastructure built-in toggles), disable | COMMENT |
| MEDIUM | docker-compose.yml | 33 | # DockerService then reports Docker unavailable and orchestration degrades gracefully. | COMMENT |
| MEDIUM | docker-compose.yml | 507 | # Pin explicit volume names so the compose path and the Docker-API orchestration path (which uses | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/restore.sh | 9 | # Usage: | COMMENT |
| LOW | scripts/backup.sh | 18 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/engine/adapters/baileys-events.ts | 812 | // (Baileys integrity-checks content against the declared size, so this is a robust bound). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sdk/python/openwa/__init__.py | 39 | __all__ = [ | CODE |
| LOW | sdk/python/openwa/resources/__init__.py | 26 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dashboard/src/utils/messageFormatter.ts | 41 | // Step 1: peel off code segments, emit nodes between them. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sdk/python/openwa/client.py | 74 | except Exception: | CODE |