From 3a27abc549e6b29e4198b4b44ea747c2de06c2cf Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 29 Feb 2024 16:57:28 +0100 Subject: [PATCH] chore(ts): update openapi ts models Signed-off-by: Maksim Sukharev --- .../openapi/openapi-backend-sipbridge.ts | 18 ++++++++++++++- src/types/openapi/openapi-federation.ts | 18 ++++++++++++++- src/types/openapi/openapi-full.ts | 22 ++++++++++++++++--- src/types/openapi/openapi.ts | 22 ++++++++++++++++--- 4 files changed, 72 insertions(+), 8 deletions(-) diff --git a/src/types/openapi/openapi-backend-sipbridge.ts b/src/types/openapi/openapi-backend-sipbridge.ts index 479a72bed52..bbdf239a724 100644 --- a/src/types/openapi/openapi-backend-sipbridge.ts +++ b/src/types/openapi/openapi-backend-sipbridge.ts @@ -167,7 +167,7 @@ export type components = { lastActivity: number; /** Format: int64 */ lastCommonReadMessage: number; - lastMessage: components["schemas"]["ChatMessage"] | unknown[]; + lastMessage: components["schemas"]["RoomLastMessage"] | unknown[]; /** Format: int64 */ lastPing: number; /** Format: int64 */ @@ -213,6 +213,22 @@ export type components = { /** Format: int64 */ unreadMessages: number; }; + RoomLastMessage: components["schemas"]["ChatMessage"] | components["schemas"]["RoomProxyMessage"]; + RoomProxyMessage: { + actorDisplayName: string; + actorId: string; + actorType: string; + /** Format: int64 */ + expirationTimestamp: number; + message: string; + messageParameters: { + [key: string]: { + [key: string]: Record; + }; + }; + messageType: string; + systemMessage: string; + }; }; responses: never; parameters: never; diff --git a/src/types/openapi/openapi-federation.ts b/src/types/openapi/openapi-federation.ts index ab6fcf1017d..c34cbe8f98b 100644 --- a/src/types/openapi/openapi-federation.ts +++ b/src/types/openapi/openapi-federation.ts @@ -180,7 +180,7 @@ export type components = { lastActivity: number; /** Format: int64 */ lastCommonReadMessage: number; - lastMessage: components["schemas"]["ChatMessage"] | unknown[]; + lastMessage: components["schemas"]["RoomLastMessage"] | unknown[]; /** Format: int64 */ lastPing: number; /** Format: int64 */ @@ -226,6 +226,22 @@ export type components = { /** Format: int64 */ unreadMessages: number; }; + RoomLastMessage: components["schemas"]["ChatMessage"] | components["schemas"]["RoomProxyMessage"]; + RoomProxyMessage: { + actorDisplayName: string; + actorId: string; + actorType: string; + /** Format: int64 */ + expirationTimestamp: number; + message: string; + messageParameters: { + [key: string]: { + [key: string]: Record; + }; + }; + messageType: string; + systemMessage: string; + }; }; responses: never; parameters: never; diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index cd0030fe1f5..711bce6fba2 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -784,7 +784,7 @@ export type components = { lastActivity: number; /** Format: int64 */ lastCommonReadMessage: number; - lastMessage: components["schemas"]["ChatMessage"] | unknown[]; + lastMessage: components["schemas"]["RoomLastMessage"] | unknown[]; /** Format: int64 */ lastPing: number; /** Format: int64 */ @@ -830,6 +830,22 @@ export type components = { /** Format: int64 */ unreadMessages: number; }; + RoomLastMessage: components["schemas"]["ChatMessage"] | components["schemas"]["RoomProxyMessage"]; + RoomProxyMessage: { + actorDisplayName: string; + actorId: string; + actorType: string; + /** Format: int64 */ + expirationTimestamp: number; + message: string; + messageParameters: { + [key: string]: { + [key: string]: Record; + }; + }; + messageType: string; + systemMessage: string; + }; SignalingSession: { /** Format: int64 */ inCall: number; @@ -2434,7 +2450,7 @@ export type operations = { "application/json": { ocs: { meta: components["schemas"]["OCSMeta"]; - data: unknown; + data: components["schemas"]["Room"]; }; }; }; @@ -2463,7 +2479,7 @@ export type operations = { "application/json": { ocs: { meta: components["schemas"]["OCSMeta"]; - data: unknown; + data: components["schemas"]["Room"]; }; }; }; diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index a5ccf8acb55..98e6ce34317 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -625,7 +625,7 @@ export type components = { lastActivity: number; /** Format: int64 */ lastCommonReadMessage: number; - lastMessage: components["schemas"]["ChatMessage"] | unknown[]; + lastMessage: components["schemas"]["RoomLastMessage"] | unknown[]; /** Format: int64 */ lastPing: number; /** Format: int64 */ @@ -671,6 +671,22 @@ export type components = { /** Format: int64 */ unreadMessages: number; }; + RoomLastMessage: components["schemas"]["ChatMessage"] | components["schemas"]["RoomProxyMessage"]; + RoomProxyMessage: { + actorDisplayName: string; + actorId: string; + actorType: string; + /** Format: int64 */ + expirationTimestamp: number; + message: string; + messageParameters: { + [key: string]: { + [key: string]: Record; + }; + }; + messageType: string; + systemMessage: string; + }; SignalingSession: { /** Format: int64 */ inCall: number; @@ -2275,7 +2291,7 @@ export type operations = { "application/json": { ocs: { meta: components["schemas"]["OCSMeta"]; - data: unknown; + data: components["schemas"]["Room"]; }; }; }; @@ -2304,7 +2320,7 @@ export type operations = { "application/json": { ocs: { meta: components["schemas"]["OCSMeta"]; - data: unknown; + data: components["schemas"]["Room"]; }; }; };