mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: expose skills and $ autocomplete (#92)
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
PushUnsubscribePayload,
|
||||
PushVapidPublicKeyResponse,
|
||||
SlashCommandsResponse,
|
||||
SkillsResponse,
|
||||
SpawnResponse,
|
||||
UploadFileResponse,
|
||||
VisibilityPayload,
|
||||
@@ -367,6 +368,12 @@ export class ApiClient {
|
||||
)
|
||||
}
|
||||
|
||||
async getSkills(sessionId: string): Promise<SkillsResponse> {
|
||||
return await this.request<SkillsResponse>(
|
||||
`/api/sessions/${encodeURIComponent(sessionId)}/skills`
|
||||
)
|
||||
}
|
||||
|
||||
async renameSession(sessionId: string, name: string): Promise<void> {
|
||||
await this.request(`/api/sessions/${encodeURIComponent(sessionId)}`, {
|
||||
method: 'PATCH',
|
||||
|
||||
Reference in New Issue
Block a user