feat(session): filter v2 session list by parent (#35037)

Co-authored-by: Dax <mail@thdxr.com>
This commit is contained in:
opencode-agent[bot]
2026-07-02 19:48:49 -04:00
committed by GitHub
co-authored by Dax
parent 7ebd344fa2
commit 6555df912a
17 changed files with 180 additions and 21 deletions
@@ -14,7 +14,12 @@ export const createQuerySerializer = <T = unknown>({ parameters = {}, ...args }:
for (const name in queryParams) {
const value = queryParams[name]
if (value === undefined || value === null) {
if (value === undefined) {
continue
}
if (value === null) {
search.push(`${name}=null`)
continue
}
+2
View File
@@ -5742,6 +5742,7 @@ export class Session3 extends HeyApiClient {
limit?: string | null
order?: "asc" | "desc" | null
search?: string | null
parentID?: string | "null" | null
directory?: string | null
project?: string | null
subpath?: string | null
@@ -5758,6 +5759,7 @@ export class Session3 extends HeyApiClient {
{ in: "query", key: "limit" },
{ in: "query", key: "order" },
{ in: "query", key: "search" },
{ in: "query", key: "parentID" },
{ in: "query", key: "directory" },
{ in: "query", key: "project" },
{ in: "query", key: "subpath" },
+1
View File
@@ -12540,6 +12540,7 @@ export type V2SessionListData = {
*/
order?: "asc" | "desc" | null
search?: string | null
parentID?: string | "null" | null
directory?: string | null
project?: string | null
subpath?: string | null