feat(core): add session metadata support (#23068)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Shantur Rathore 2026-05-30 22:58:11 +01:00 committed by GitHub
commit ddc30cd151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1707 additions and 1 deletions

View file

@ -3100,6 +3100,9 @@ export class Session2 extends HeyApiClient {
providerID: string
variant?: string
}
metadata?: {
[key: string]: unknown
}
permission?: PermissionRuleset
workspaceID?: string
},
@ -3116,6 +3119,7 @@ export class Session2 extends HeyApiClient {
{ in: "body", key: "title" },
{ in: "body", key: "agent" },
{ in: "body", key: "model" },
{ in: "body", key: "metadata" },
{ in: "body", key: "permission" },
{ in: "body", key: "workspaceID" },
],
@ -3239,6 +3243,9 @@ export class Session2 extends HeyApiClient {
directory?: string
workspace?: string
title?: string
metadata?: {
[key: string]: unknown
}
permission?: PermissionRuleset
time?: {
archived?: number
@ -3255,6 +3262,7 @@ export class Session2 extends HeyApiClient {
{ in: "query", key: "directory" },
{ in: "query", key: "workspace" },
{ in: "body", key: "title" },
{ in: "body", key: "metadata" },
{ in: "body", key: "permission" },
{ in: "body", key: "time" },
],

View file

@ -780,6 +780,9 @@ export type Session = {
variant?: string
}
version: string
metadata?: {
[key: string]: unknown
}
time: {
created: number
updated: number
@ -1516,6 +1519,9 @@ export type GlobalSession = {
variant?: string
}
version: string
metadata?: {
[key: string]: unknown
}
time: {
created: number
updated: number
@ -2086,6 +2092,9 @@ export type SyncEventSessionUpdated = {
variant?: string
} | null
version?: string | null
metadata?: {
[key: string]: unknown
} | null
time?: {
created?: number | null
updated?: number | null
@ -6093,6 +6102,9 @@ export type SessionCreateData = {
providerID: string
variant?: string
}
metadata?: {
[key: string]: unknown
}
permission?: PermissionRuleset
workspaceID?: string
}
@ -6223,6 +6235,9 @@ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses]
export type SessionUpdateData = {
body?: {
title?: string
metadata?: {
[key: string]: unknown
}
permission?: PermissionRuleset
time?: {
archived?: number

View file

@ -5185,6 +5185,9 @@
"required": ["id", "providerID"],
"additionalProperties": false
},
"metadata": {
"type": "object"
},
"permission": {
"$ref": "#/components/schemas/PermissionRuleset"
},
@ -5509,6 +5512,9 @@
"title": {
"type": "string"
},
"metadata": {
"type": "object"
},
"permission": {
"$ref": "#/components/schemas/PermissionRuleset"
},
@ -12819,6 +12825,9 @@
"version": {
"type": "string"
},
"metadata": {
"type": "object"
},
"time": {
"type": "object",
"properties": {
@ -14912,6 +14921,9 @@
"version": {
"type": "string"
},
"metadata": {
"type": "object"
},
"time": {
"type": "object",
"properties": {
@ -16758,6 +16770,16 @@
}
]
},
"metadata": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
]
},
"time": {
"type": "object",
"properties": {