Skip to content

Commit

Permalink
Update modality API
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Nov 7, 2023
1 parent 38d757d commit e298ed1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions vscode/generated/src/modality-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> &
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...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
Expand Down Expand Up @@ -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"];
Expand Down
4 changes: 2 additions & 2 deletions vscode/src/modality-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -33,7 +33,7 @@
],
"responses": {
"200": {
"description": "Retrieve Events Summary Successfully",
"description": "Retrieved Events Summary Successfully",
"content": {
"application/json": {
"schema": {
Expand Down
2 changes: 1 addition & 1 deletion vscode/src/modalityApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class EventsClient {
constructor(private readonly client: InternalClient) {}

async eventsSummaryForTimeline(timelineId: string): Promise<EventsSummary> {
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);
Expand Down

0 comments on commit e298ed1

Please sign in to comment.