Commit Graph

6 Commits

Author SHA1 Message Date
VaalaCat
40de0deb41 feat: change repo name 2025-02-12 13:22:09 +00:00
floodwm
e095df5325 run_id string Optional (#855)
Filter messages by the run ID that generated them.

Co-authored-by: wappi <support@wappi.pro>
2024-09-20 21:54:25 +01:00
Yamagami ken-ichi
6d021190f0 feat: Support Delete Message API (#799)
* feat: Add DeleteMessage function to API client

* fix: linter

nolint : Deprecated method
split function: cognitive complexity 21

* rename func name for unit-test
2024-08-22 15:27:44 +01:00
Quest Henkart
187f4169f8 [BREAKING_CHANGES] Fix update message payload (#699)
* add custom marshaller, documentation and isolate tests

* fix linter

* wrap payload as expected from the API and update test

* modify input to accept map[string]string only
2024-04-09 12:22:31 +04:00
Albert Putra Purnama
a130cfee26 Add missing response fields for pagination (#584) 2023-11-18 11:01:06 +04:00
Urjit Singh Bhatia
b7cac703ac Feat/messages api (#546)
* fix test server setup:
- go map access is not deterministic
- this can lead to a route: /foo/bar/1 matching /foo/bar before matching /foo/bar/1 if the map iteration go through /foo/bar first since the regex match wasn't bound to start and end anchors
- registering handlers now converts * in routes to .* for proper regex matching
- test server route handling now tries to fully match the handler route

* add missing /v1 prefix to fine-tuning job cancel test server handler

* add create message call

* add messages list call

* add get message call

* add modify message call, fix return types for other message calls

* add message file retrieve call

* add list message files call

* code style fixes

* add test for list messages with pagination options

* add beta header to msg calls now that #545 is merged

* Update messages.go

Co-authored-by: Simone Vellei <henomis@gmail.com>

* Update messages.go

Co-authored-by: Simone Vellei <henomis@gmail.com>

* add missing object details for message, fix tests

* fix merge formatting

* minor style fixes

---------

Co-authored-by: Simone Vellei <henomis@gmail.com>
2023-11-13 18:33:26 +04:00