From e298ed1d5fb2aeb2fda2e709098705366ed74e38 Mon Sep 17 00:00:00 2001 From: Jon Lamb Date: Wed, 1 Nov 2023 09:03:36 -0700 Subject: [PATCH] Update modality API --- vscode/generated/src/modality-api.ts | 4 ++-- vscode/src/modality-api.json | 4 ++-- vscode/src/modalityApi.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vscode/generated/src/modality-api.ts b/vscode/generated/src/modality-api.ts index 18b7139..1c8b5e8 100644 --- a/vscode/generated/src/modality-api.ts +++ b/vscode/generated/src/modality-api.ts @@ -10,7 +10,7 @@ type XOR = (T | U) extends object ? (Without & U) | (Without & type OneOf = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR, ...Rest]> : never; export interface paths { - "/v2/events/{timeline_id}": { + "/v2/events/{timeline_id}/summary": { /** * Get an event summary for a single timeline * @description Get an event summary for a single timeline @@ -346,7 +346,7 @@ export interface operations { }; }; responses: { - /** @description Retrieve Events Summary Successfully */ + /** @description Retrieved Events Summary Successfully */ 200: { content: { "application/json": components["schemas"]["EventsSummary"]; diff --git a/vscode/src/modality-api.json b/vscode/src/modality-api.json index 38b0629..9fbe2c0 100644 --- a/vscode/src/modality-api.json +++ b/vscode/src/modality-api.json @@ -14,7 +14,7 @@ "version": "2.0" }, "paths": { - "/v2/events/{timeline_id}": { + "/v2/events/{timeline_id}/summary": { "get": { "tags": ["events"], "summary": "Get an event summary for a single timeline", @@ -33,7 +33,7 @@ ], "responses": { "200": { - "description": "Retrieve Events Summary Successfully", + "description": "Retrieved Events Summary Successfully", "content": { "application/json": { "schema": { diff --git a/vscode/src/modalityApi.ts b/vscode/src/modalityApi.ts index 876c98b..7bb6803 100644 --- a/vscode/src/modalityApi.ts +++ b/vscode/src/modalityApi.ts @@ -257,7 +257,7 @@ export class EventsClient { constructor(private readonly client: InternalClient) {} async eventsSummaryForTimeline(timelineId: string): Promise { - const res = await this.client.get("/v2/events/{timeline_id}", { + const res = await this.client.get("/v2/events/{timeline_id}/summary", { params: { path: { timeline_id: timelineId } }, }); return unwrapData(res);