Danielle Maywood
d2d956edb1
fix: add archived query parameter to chat list endpoint ( #22562 )
...
Despite the SDK type having an `Archived` field for chats, this data was
never fetched from the database — the `GetChatsByOwnerID` query
hardcoded `AND archived = false`, and the `convertChat` function never
mapped the field.
This PR adds an optional `archived` query parameter to `GET
/api/experimental/chats`:
| Value | Behavior |
|-------|----------|
| *(not provided)* | Returns all chats (active and archived) |
| `archived=false` | Returns only non-archived chats |
| `archived=true` | Returns only archived chats |
This follows the same pattern used by template versions
(`sqlc.narg('archived')` nullable boolean).
Also fixes `convertChat` to populate the `Archived` field in API
responses, which was never being set despite existing on the SDK type.
2026-03-03 20:39:19 +00:00
..
2026-03-02 22:52:39 -05:00
2025-05-13 11:24:51 -05:00
2025-06-20 13:16:55 -06:00
2025-12-15 17:41:47 +00:00
2026-02-24 20:28:50 +02:00
2026-03-02 19:32:36 +11:00
2026-01-08 15:24:11 +04:00
2026-02-17 15:43:02 +01:00
2025-10-23 20:22:51 +03:00
2026-03-03 16:34:33 +03:00
2025-10-09 14:53:08 +02:00
2025-10-09 14:53:08 +02:00
2026-02-27 16:50:56 +00:00
2026-02-24 15:27:03 +00:00
2025-10-15 16:13:59 +00:00
2024-07-29 19:58:48 -05:00
2026-02-27 16:50:56 +00:00
2026-03-03 20:39:19 +00:00
2025-06-24 13:06:02 +02:00
2026-01-08 15:24:11 +04:00
2026-02-24 13:26:55 +04:00
2025-09-15 12:30:17 +10:00
2025-07-30 13:42:39 -07:00
2024-11-15 12:05:21 -06:00
2025-08-29 10:41:32 +02:00
2025-04-15 10:55:30 +02:00
2025-06-20 13:16:55 -06:00
2026-02-20 09:01:00 -06:00
2026-03-02 16:23:09 +00:00
2025-12-15 17:41:47 +00:00
2024-01-31 14:49:55 +01:00
2025-02-18 13:06:19 +01:00
2025-07-07 11:01:17 -06:00
2025-01-31 12:14:24 -07:00
2025-03-31 09:40:24 -03:00
2025-08-19 10:41:33 +02:00
2025-12-14 03:00:03 +00:00
2026-02-20 12:56:00 +11:00
2025-06-20 13:16:55 -06:00
2026-01-09 15:40:26 -07:00
2025-09-11 15:08:57 +02:00
2026-01-15 12:41:28 +03:00
2026-02-23 12:18:44 +01:00
2025-10-06 13:58:37 +02:00
2025-06-20 13:16:55 -06:00
2023-01-13 12:27:21 +01:00
2026-02-03 14:10:49 -06:00
2025-07-02 15:05:42 +00:00
2025-07-28 15:02:26 +01:00
2026-03-02 19:32:36 +11:00
2026-02-27 16:50:56 +00:00
2025-02-27 06:23:18 -05:00
2023-01-29 15:47:24 -06:00
2025-05-29 08:55:19 -05:00
2025-06-20 13:16:55 -06:00
2026-02-03 14:10:49 -06:00
2025-10-27 17:14:16 -06:00
2025-09-26 11:43:32 +02:00
2024-02-14 17:14:49 +00:00
2026-02-13 19:44:50 -05:00
2024-07-24 14:11:29 +10:00
2026-01-08 15:24:11 +04:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2022-08-25 19:10:42 +03:00
2023-01-29 15:47:24 -06:00
2024-09-10 20:55:50 +10:00
2026-03-03 12:00:50 +00:00
2024-12-19 00:51:30 +04:00
2024-12-19 00:51:30 +04:00
2025-06-16 16:15:59 -06:00
2026-02-06 15:52:54 +00:00
2026-03-02 19:32:36 +11:00
2025-09-10 11:01:54 -05:00
2026-02-17 15:11:04 +00:00
2025-06-20 13:16:55 -06:00
2022-11-08 17:12:06 +00:00
2026-01-08 15:24:11 +04:00
2026-02-19 13:04:53 -05:00
2026-01-14 09:47:50 -08:00