@iveri/contracts 0.82.0 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import type { Nullable } from '../../type/nil.type.js';
|
|
|
3
3
|
import type { UUID } from '../../type/uuid.type.js';
|
|
4
4
|
import type { ChatAppConversationMode } from './chat-app-conversation-mode.enum.js';
|
|
5
5
|
import type { CHAT_SOCKET_TICKET_TYPE } from './chat-app.constant.js';
|
|
6
|
-
import type { OpenEmbeddedChatRequest } from './chat-embed.type.js';
|
|
6
|
+
import type { EmbeddedChatParticipant, OpenEmbeddedChatRequest } from './chat-embed.type.js';
|
|
7
7
|
import type { ChatMessageKind } from './chat-message-kind.enum.js';
|
|
8
8
|
import type { ChatPersonStatus } from './chat-person-status.enum.js';
|
|
9
9
|
/**
|
|
@@ -71,11 +71,17 @@ export interface ChatToken {
|
|
|
71
71
|
token: string;
|
|
72
72
|
expiresAt: IsoDateTime;
|
|
73
73
|
}
|
|
74
|
+
/** A participant as an app's server names them: by the app's own id for the person, 1 to 255 characters. */
|
|
75
|
+
export type ServerChatParticipant = Omit<EmbeddedChatParticipant, 'userId'> & {
|
|
76
|
+
userId: string;
|
|
77
|
+
};
|
|
74
78
|
/**
|
|
75
|
-
* `PUT /server/conversations`: the embed request, with each participant
|
|
76
|
-
*
|
|
79
|
+
* `PUT /server/conversations`: the embed request, with each participant named by the app's own id for them rather
|
|
80
|
+
* than a Baasi id.
|
|
77
81
|
*/
|
|
78
|
-
export type OpenServerChatRequest = OpenEmbeddedChatRequest
|
|
82
|
+
export type OpenServerChatRequest = Omit<OpenEmbeddedChatRequest, 'participants'> & {
|
|
83
|
+
participants: ServerChatParticipant[];
|
|
84
|
+
};
|
|
79
85
|
/** `GET /server/users/:userId/export`: everything Baasi holds about one user of an app. */
|
|
80
86
|
export interface ChatAppUserExport {
|
|
81
87
|
user: ChatAppUser;
|