|
|
@@ -19,6 +19,8 @@ import type {
|
|
|
SessionDeleteResponses,
|
|
|
SessionGetData,
|
|
|
SessionGetResponses,
|
|
|
+ SessionUpdateData,
|
|
|
+ SessionUpdateResponses,
|
|
|
SessionInitData,
|
|
|
SessionInitResponses,
|
|
|
SessionAbortData,
|
|
|
@@ -224,6 +226,20 @@ class Session extends _HeyApiClient {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Update session properties
|
|
|
+ */
|
|
|
+ public update<ThrowOnError extends boolean = false>(options: Options<SessionUpdateData, ThrowOnError>) {
|
|
|
+ return (options.client ?? this._client).patch<SessionUpdateResponses, unknown, ThrowOnError>({
|
|
|
+ url: "/session/{id}",
|
|
|
+ ...options,
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ ...options.headers,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Analyze the app and create an AGENTS.md file
|
|
|
*/
|