(key: string, keyId: string, patch: Partial<ProductKey>)
| 214 | } |
| 215 | |
| 216 | export function patchAdminKey(key: string, keyId: string, patch: Partial<ProductKey>) { |
| 217 | return fetchJson<ProductKey>(`/admin/keys/${encodeURIComponent(keyId)}`, key, { |
| 218 | method: "PATCH", |
| 219 | body: JSON.stringify(patch), |
| 220 | }); |
| 221 | } |
| 222 | |
| 223 | export async function openSessionEventStream( |
| 224 | sessionId: string, |