Commit Graph

29 Commits

Author SHA1 Message Date
Hein
a3ff2dc497 feat(swagger): add Swagger UI for API documentation
Some checks failed
CI / Test (1.23) (push) Failing after -20m40s
CI / Test (1.22) (push) Failing after -20m58s
CI / Build (push) Failing after -21m33s
CI / Lint (push) Failing after -20m51s
* Create index.html for Swagger UI integration
* Link to Swagger UI CSS and JS from CDN
* Configure Swagger UI to load API specification from api.json
2026-02-20 17:41:20 +02:00
Hein
5b3aaba198 fix(serverembed): correct embed directive for assets
Some checks failed
CI / Test (1.22) (push) Failing after -22m32s
CI / Test (1.23) (push) Failing after -22m26s
CI / Lint (push) Failing after -22m40s
CI / Build (push) Failing after -22m44s
2026-02-20 16:46:44 +02:00
Hein
5ca375fd58 feat(serverembed): add initial HTML and SVG assets
Some checks failed
CI / Test (1.23) (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Test (1.22) (push) Has been cancelled
* Create index.html for the web application entry point
* Add vite.svg as a favicon
* Update frontend.go to embed all files in the dist directory
* Modify vite.config.ts to set output directory for builds
2026-02-20 16:45:30 +02:00
Hein
7d6f99b3b3 feat(serverembed): add server embed functionality and readme
Some checks failed
CI / Test (1.22) (push) Failing after -22m28s
CI / Test (1.23) (push) Failing after -22m28s
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
2026-02-20 16:39:43 +02:00
Hein
3b6d0f81d2 feat(models): add new models for public API, event log, hook, session, user, and whatsapp account
Some checks failed
CI / Test (1.23) (push) Failing after -22m31s
CI / Test (1.22) (push) Failing after -22m34s
CI / Build (push) Failing after -22m43s
CI / Lint (push) Failing after -22m27s
* Introduced ModelPublicAPIKey, ModelPublicEventLog, ModelPublicHook, ModelPublicSession, ModelPublicUser, and ModelPublicWhatsappAccount
* Removed deprecated ModelPublicUsers
* Updated database schema definitions to reflect new model structure
* Adjusted seed data to use correct types for timestamps
2026-02-20 16:19:49 +02:00
Hein
524bc4179b fix(models): update models to use public schema and correct types
Some checks failed
CI / Test (1.22) (push) Failing after -23m2s
CI / Test (1.23) (push) Failing after -22m58s
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
* Rename models to plural form for consistency
* Change table names to include 'public' schema
* Update timestamp types to SqlTimeStamp for consistency
* Adjust relationships to use pluralized user models
2026-02-20 16:11:23 +02:00
Hein
3fb65e0285 feat(hook): add AllowInsecure option for TLS verification
Some checks failed
CI / Test (1.23) (push) Failing after -20m40s
CI / Test (1.22) (push) Failing after -20m33s
CI / Build (push) Failing after -23m2s
CI / Lint (push) Failing after -22m34s
* Introduced AllowInsecure field in Hook configuration to skip TLS certificate verification.
* Updated database schema and models to support the new field.
* Modified HTTP client behavior based on AllowInsecure setting.
2026-02-20 15:33:53 +02:00
Hein
35a548e7e2 refactor(UI): 🏗️ Ui changes and API changes
Some checks failed
CI / Test (1.23) (push) Failing after -22m40s
CI / Test (1.22) (push) Failing after -22m36s
CI / Build (push) Failing after -23m32s
CI / Lint (push) Failing after -23m7s
2026-02-06 17:03:28 +02:00
Hein
8b1eed6c42 feat(ui): 🎉 More ui work
Some checks failed
CI / Test (1.23) (push) Failing after -22m35s
CI / Test (1.22) (push) Failing after -22m33s
CI / Build (push) Failing after -23m42s
CI / Lint (push) Failing after -23m17s
* Implement EventLogsPage for viewing system activity logs with search and filter capabilities.
* Create HooksPage for managing webhook configurations with create, edit, and delete functionalities.
* Develop LoginPage for user authentication with error handling and loading states.
* Add UsersPage for managing system users, including role assignment and status toggling.
* Introduce authStore for managing user authentication state and actions.
* Define TypeScript types for User, Hook, EventLog, and other entities.
* Set up TypeScript configuration for the project.
* Configure Vite for development with proxy settings for API calls.
* Update dependencies for improved functionality and security.
2026-02-05 19:41:49 +02:00
Hein
f9773bd07f refactor(API): Relspect integration
Some checks failed
CI / Test (1.23) (push) Failing after -22m46s
CI / Test (1.22) (push) Failing after -22m32s
CI / Build (push) Failing after -23m30s
CI / Lint (push) Failing after -23m12s
2026-02-05 13:39:43 +02:00
Hein
71f26c214f feat(static): Add terms of service page and update routes
Some checks failed
CI / Test (1.22) (push) Failing after -24m33s
CI / Test (1.23) (push) Failing after -24m32s
CI / Build (push) Successful in -26m46s
CI / Lint (push) Successful in -26m38s
* Implement ServeTermsOfService handler to serve the terms of service page.
* Update index.html and privacy-policy.html to include links to the terms of service.
* Add logo1024.png for branding.
2026-02-04 19:41:11 +02:00
Hein
6d7687a311 feat(static): Add privacy policy page and route
Some checks failed
CI / Test (1.22) (push) Failing after -24m9s
CI / Test (1.23) (push) Failing after -24m10s
CI / Build (push) Successful in -26m43s
CI / Lint (push) Successful in -26m29s
- Implement ServePrivacyPolicy handler to serve the privacy policy.
- Update index.html to include a link to the privacy policy.
- Add privacy-policy.html file with content outlining data handling practices.
2026-02-04 19:19:35 +02:00
Hein
592ed24204 Refactor port again
Some checks failed
CI / Test (1.22) (push) Failing after -24m17s
CI / Test (1.23) (push) Failing after -24m17s
CI / Build (push) Successful in -26m37s
CI / Lint (push) Successful in -26m23s
2026-02-04 14:22:12 +02:00
Hein
45cf7c55f4 fix(config): 🐛 Update server host to 0.0.0.0
Some checks failed
CI / Test (1.22) (push) Failing after -24m27s
CI / Test (1.23) (push) Failing after -24m21s
CI / Build (push) Successful in -26m43s
CI / Lint (push) Successful in -26m33s
2026-02-04 14:07:23 +02:00
Hein
c1dbff318d feat(docker): 🚀 Update server port to 8025
Some checks failed
CI / Test (1.22) (push) Failing after -24m19s
CI / Test (1.23) (push) Failing after -24m15s
CI / Lint (push) Successful in -26m35s
CI / Build (push) Successful in -26m34s
- Change default server port from 8080 to 8025 across all configurations.
- Update Dockerfile, docker-compose.yml, and related documentation.
- Ensure all CLI commands and API endpoints reflect the new port.
- Adjust example configurations and health check URLs accordingly.
2026-02-04 13:37:38 +02:00
Hein
947761313b style(catalog): Format JSON struct for consistency
Some checks failed
CI / Test (1.22) (push) Failing after -24m37s
CI / Test (1.23) (push) Failing after -24m30s
CI / Build (push) Successful in -26m46s
CI / Lint (push) Successful in -26m34s
2026-02-04 11:18:50 +02:00
Hein
ecd5525430 feat(api): 🎉 Add business profile and catalog management
Some checks failed
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Test (1.23) (push) Has been cancelled
CI / Test (1.22) (push) Has been cancelled
* Implement endpoints for managing business profiles:
  - Get business profile
  - Update business profile

* Add catalog management features:
  - List catalogs
  - List products in a catalog
  - Send catalog messages
  - Send single product messages
  - Send product list messages

* Introduce media upload functionality for sending media files.

* Add flow management capabilities:
  - Deprecate flows

* Update API documentation to reflect new endpoints and features.
2026-02-04 11:17:40 +02:00
Hein
a7a5831911 feat(whatsapp): 🎉 Add extended sending and template management
Some checks failed
CI / Test (1.23) (push) Failing after -24m15s
CI / Test (1.22) (push) Failing after -24m12s
CI / Build (push) Successful in -26m47s
CI / Lint (push) Successful in -26m36s
* Implemented new endpoints for sending various message types:
  - Audio
  - Sticker
  - Location
  - Contacts
  - Interactive messages
  - Template messages
  - Flow messages
  - Reactions
  - Marking messages as read

* Added template management endpoints:
  - List templates
  - Upload templates
  - Delete templates

* Introduced flow management endpoints:
  - List flows
  - Create flows
  - Get flow details
  - Upload flow assets
  - Publish flows
  - Delete flows

* Added phone number management endpoints:
  - List phone numbers
  - Request verification code
  - Verify code

* Enhanced media management with delete media endpoint.

* Updated dependencies.
2026-02-03 18:07:42 +02:00
Hein
c5e121de4a chore: 🔧 clean up code structure and remove unused files
Some checks failed
CI / Test (1.22) (push) Failing after -24m45s
CI / Test (1.23) (push) Failing after -24m42s
CI / Build (push) Successful in -26m57s
CI / Lint (push) Successful in -26m48s
* Refactored several modules for better readability
* Removed deprecated functions and variables
* Improved overall project organization
2026-01-30 16:59:22 +02:00
Hein
c4d974d6ce feat(cache): 🎉 add message caching functionality
Some checks failed
CI / Test (1.23) (push) Failing after -27m1s
CI / Lint (push) Successful in -26m31s
CI / Build (push) Successful in -27m3s
CI / Test (1.22) (push) Failing after -24m58s
* Implement MessageCache to store events when no webhooks are available.
* Add configuration options for enabling cache, setting data path, max age, and max events.
* Create API endpoints for managing cached events, including listing, replaying, and deleting.
* Integrate caching into the hooks manager to store events when no active webhooks are found.
* Enhance logging for better traceability of cached events and operations.
2026-01-30 16:00:34 +02:00
Hein
3901bbb668 feat(whatsapp): Enhance webhook message handling
Some checks failed
CI / Test (1.22) (push) Failing after -24m5s
CI / Test (1.23) (push) Failing after -23m59s
CI / Build (push) Successful in -24m25s
CI / Lint (push) Failing after -24m11s
* Add support for new message types: audio, sticker, location, contacts, interactive, button, reaction, order, system, and unknown.
* Implement logging for various webhook events for better visibility.
* Update WebhookMessage struct to include new fields for enhanced message processing.
2026-01-30 11:30:10 +02:00
147dac9b60 Whatsapp Business enhancements
Some checks failed
CI / Test (1.22) (push) Failing after -22m39s
CI / Test (1.23) (push) Failing after -22m40s
CI / Build (push) Successful in -25m42s
CI / Lint (push) Failing after -25m28s
2025-12-30 11:35:10 +02:00
d80a6433b9 Fixed mqtt bug where phone number is not formatted
Some checks failed
CI / Test (1.23) (push) Failing after -22m52s
CI / Test (1.22) (push) Failing after -22m44s
CI / Build (push) Successful in -25m59s
CI / Lint (push) Successful in -25m47s
2025-12-30 01:00:42 +02:00
7b2390cbf6 Mqtt logging
Some checks failed
CI / Test (1.22) (push) Failing after -23m38s
CI / Test (1.23) (push) Failing after -23m28s
CI / Build (push) Successful in -25m46s
CI / Lint (push) Successful in -25m30s
2025-12-30 00:19:49 +02:00
ea1209c84c mqtt
Some checks failed
CI / Test (1.22) (push) Failing after -23m51s
CI / Test (1.23) (push) Failing after -23m51s
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
Release / Build and Release (push) Successful in -18m25s
2025-12-29 23:36:22 +02:00
fd2527219e Server qr fixes.
Some checks failed
CI / Test (1.23) (push) Failing after -25m23s
CI / Test (1.22) (push) Failing after -25m21s
CI / Build (push) Failing after -25m59s
CI / Lint (push) Successful in -25m51s
2025-12-29 22:44:10 +02:00
94fc899bab Updated qr code events and tls server
Some checks failed
CI / Test (1.22) (push) Failing after -25m23s
CI / Test (1.23) (push) Failing after -25m25s
CI / Build (push) Failing after -25m51s
CI / Lint (push) Failing after -25m40s
2025-12-29 17:22:06 +02:00
a3eca09502 Lint fixes and testing workflow actions
Some checks failed
CI / Lint (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Test (1.23) (push) Has been cancelled
CI / Test (1.22) (push) Has been cancelled
2025-12-29 10:24:18 +02:00
767a9e211f Major refactor to library 2025-12-29 09:51:16 +02:00