@wildix/wilma-copilot-sessions-client 1.0.20 → 1.0.21
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.
- package/dist-cjs/models/enums.js +7 -1
- package/dist-cjs/schemas/schemas_0.js +6 -4
- package/dist-es/models/enums.js +6 -0
- package/dist-es/schemas/schemas_0.js +6 -4
- package/dist-types/commands/GetSessionEventsCommand.d.ts +2 -0
- package/dist-types/models/enums.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +19 -1
- package/package.json +1 -1
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CopilotSessionStatus = exports.CopilotLifecycleReason = exports.CopilotIngestedSessionState = exports.CopilotConversationKind = exports.CopilotActionStatus = exports.AssetSeverity = exports.AssetIcon = exports.LiveEventType = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ButtonVariant = exports.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.License = void 0;
|
|
3
|
+
exports.CopilotSessionStatus = exports.CopilotLifecycleReason = exports.CopilotIngestedSessionState = exports.CopilotConversationKind = exports.CopilotActionStatus = exports.AssetSeverity = exports.AssetIcon = exports.LiveEventType = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.MessageMessengerStatus = exports.ButtonVariant = exports.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.License = void 0;
|
|
4
4
|
exports.License = {
|
|
5
5
|
UC: "uc",
|
|
6
6
|
XBEES: "x-bees",
|
|
@@ -46,6 +46,12 @@ exports.ButtonVariant = {
|
|
|
46
46
|
CONTAINED: "contained",
|
|
47
47
|
OUTLINED: "outlined",
|
|
48
48
|
};
|
|
49
|
+
exports.MessageMessengerStatus = {
|
|
50
|
+
DELIVERED: "delivered",
|
|
51
|
+
ERROR: "error",
|
|
52
|
+
SENT: "sent",
|
|
53
|
+
TRYING: "trying",
|
|
54
|
+
};
|
|
49
55
|
exports.MessageSmsStatus = {
|
|
50
56
|
DELIVERED: "delivered",
|
|
51
57
|
ERROR: "error",
|
|
@@ -174,8 +174,10 @@ const _loc = "locale";
|
|
|
174
174
|
const _loo = "lookup";
|
|
175
175
|
const _m = "message";
|
|
176
176
|
const _mI = "messageId";
|
|
177
|
+
const _mS = "messengerStatus";
|
|
177
178
|
const _ma = "markdown";
|
|
178
|
-
const _me = "
|
|
179
|
+
const _me = "messenger";
|
|
180
|
+
const _men = "mentions";
|
|
179
181
|
const _mi = "mime";
|
|
180
182
|
const _n = "name";
|
|
181
183
|
const _nC = "nextCursor";
|
|
@@ -546,8 +548,8 @@ exports.ButtonReplyHandler$ = [3, n4, _BRH,
|
|
|
546
548
|
];
|
|
547
549
|
exports.Message$ = [3, n4, _M,
|
|
548
550
|
0,
|
|
549
|
-
[_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed,
|
|
550
|
-
[0, 0, 0, () => exports.User$, 0, 0, () => ElementsList, () => MessageAttachmentList, () => exports.MessageQuote$, () => exports.MessageForward$, 2, 0, 2, 0, 2, () => exports.MessageGiphy$, 2, 0, 2, () => UsersList, () => ReactionList, 128 | 1, 0], 5
|
|
551
|
+
[_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _me, _mS, _sm, _sS, _ma, _g, _si, _ev, _ed, _men, _lR, _rC, _uAp],
|
|
552
|
+
[0, 0, 0, () => exports.User$, 0, 0, () => ElementsList, () => MessageAttachmentList, () => exports.MessageQuote$, () => exports.MessageForward$, 2, 0, 2, 0, 2, 0, 2, () => exports.MessageGiphy$, 2, 0, 2, () => UsersList, () => ReactionList, 128 | 1, 0], 5
|
|
551
553
|
];
|
|
552
554
|
exports.MessageAttachment$ = [3, n4, _MA,
|
|
553
555
|
0,
|
|
@@ -566,7 +568,7 @@ exports.MessageGiphy$ = [3, n4, _MG,
|
|
|
566
568
|
];
|
|
567
569
|
exports.MessageQuote$ = [3, n4, _MQ,
|
|
568
570
|
0,
|
|
569
|
-
[_mI, _cIh, _u, _cA, _te, _atta, _f,
|
|
571
|
+
[_mI, _cIh, _u, _cA, _te, _atta, _f, _men, _g, _uAp],
|
|
570
572
|
[0, 0, () => exports.User$, 0, 0, () => MessageAttachmentList, () => exports.MessageForward$, () => UsersList, () => exports.MessageGiphy$, 0], 4
|
|
571
573
|
];
|
|
572
574
|
exports.MessageTemplateConfig$ = [3, n4, _MTC,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -43,6 +43,12 @@ export const ButtonVariant = {
|
|
|
43
43
|
CONTAINED: "contained",
|
|
44
44
|
OUTLINED: "outlined",
|
|
45
45
|
};
|
|
46
|
+
export const MessageMessengerStatus = {
|
|
47
|
+
DELIVERED: "delivered",
|
|
48
|
+
ERROR: "error",
|
|
49
|
+
SENT: "sent",
|
|
50
|
+
TRYING: "trying",
|
|
51
|
+
};
|
|
46
52
|
export const MessageSmsStatus = {
|
|
47
53
|
DELIVERED: "delivered",
|
|
48
54
|
ERROR: "error",
|
|
@@ -170,8 +170,10 @@ const _loc = "locale";
|
|
|
170
170
|
const _loo = "lookup";
|
|
171
171
|
const _m = "message";
|
|
172
172
|
const _mI = "messageId";
|
|
173
|
+
const _mS = "messengerStatus";
|
|
173
174
|
const _ma = "markdown";
|
|
174
|
-
const _me = "
|
|
175
|
+
const _me = "messenger";
|
|
176
|
+
const _men = "mentions";
|
|
175
177
|
const _mi = "mime";
|
|
176
178
|
const _n = "name";
|
|
177
179
|
const _nC = "nextCursor";
|
|
@@ -542,8 +544,8 @@ export var ButtonReplyHandler$ = [3, n4, _BRH,
|
|
|
542
544
|
];
|
|
543
545
|
export var Message$ = [3, n4, _M,
|
|
544
546
|
0,
|
|
545
|
-
[_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed,
|
|
546
|
-
[0, 0, 0, () => User$, 0, 0, () => ElementsList, () => MessageAttachmentList, () => MessageQuote$, () => MessageForward$, 2, 0, 2, 0, 2, () => MessageGiphy$, 2, 0, 2, () => UsersList, () => ReactionList, 128 | 1, 0], 5
|
|
547
|
+
[_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _me, _mS, _sm, _sS, _ma, _g, _si, _ev, _ed, _men, _lR, _rC, _uAp],
|
|
548
|
+
[0, 0, 0, () => User$, 0, 0, () => ElementsList, () => MessageAttachmentList, () => MessageQuote$, () => MessageForward$, 2, 0, 2, 0, 2, 0, 2, () => MessageGiphy$, 2, 0, 2, () => UsersList, () => ReactionList, 128 | 1, 0], 5
|
|
547
549
|
];
|
|
548
550
|
export var MessageAttachment$ = [3, n4, _MA,
|
|
549
551
|
0,
|
|
@@ -562,7 +564,7 @@ export var MessageGiphy$ = [3, n4, _MG,
|
|
|
562
564
|
];
|
|
563
565
|
export var MessageQuote$ = [3, n4, _MQ,
|
|
564
566
|
0,
|
|
565
|
-
[_mI, _cIh, _u, _cA, _te, _atta, _f,
|
|
567
|
+
[_mI, _cIh, _u, _cA, _te, _atta, _f, _men, _g, _uAp],
|
|
566
568
|
[0, 0, () => User$, 0, 0, () => MessageAttachmentList, () => MessageForward$, () => UsersList, () => MessageGiphy$, 0], 4
|
|
567
569
|
];
|
|
568
570
|
export var MessageTemplateConfig$ = [3, n4, _MTC,
|
|
@@ -243,6 +243,8 @@ declare const GetSessionEventsCommand_base: {
|
|
|
243
243
|
* // },
|
|
244
244
|
* // whatsapp: true || false,
|
|
245
245
|
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
246
|
+
* // messenger: true || false,
|
|
247
|
+
* // messengerStatus: "trying" || "sent" || "error" || "delivered",
|
|
246
248
|
* // sms: true || false,
|
|
247
249
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
248
250
|
* // markdown: true || false,
|
|
@@ -99,6 +99,20 @@ export declare const ButtonVariant: {
|
|
|
99
99
|
* @public
|
|
100
100
|
*/
|
|
101
101
|
export type ButtonVariant = (typeof ButtonVariant)[keyof typeof ButtonVariant];
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
* @enum
|
|
105
|
+
*/
|
|
106
|
+
export declare const MessageMessengerStatus: {
|
|
107
|
+
readonly DELIVERED: "delivered";
|
|
108
|
+
readonly ERROR: "error";
|
|
109
|
+
readonly SENT: "sent";
|
|
110
|
+
readonly TRYING: "trying";
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export type MessageMessengerStatus = (typeof MessageMessengerStatus)[keyof typeof MessageMessengerStatus];
|
|
102
116
|
/**
|
|
103
117
|
* @public
|
|
104
118
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { AssetIcon, AssetSeverity, ButtonVariant, CallDevice, CallParticipantRole, CallParticipantType, CallTranscriptionSpeaker, ConferenceParticipantRole, ConferenceParticipantType, CopilotActionStatus, CopilotConversationKind, CopilotIngestedSessionState, CopilotLifecycleReason, CopilotSessionStatus, License, LiveEventType, MessageSmsStatus, MessageType, MessageWhatsAppStatus, PbxLicenseType, TranscriptionSentiment } from "./enums";
|
|
2
|
+
import type { AssetIcon, AssetSeverity, ButtonVariant, CallDevice, CallParticipantRole, CallParticipantType, CallTranscriptionSpeaker, ConferenceParticipantRole, ConferenceParticipantType, CopilotActionStatus, CopilotConversationKind, CopilotIngestedSessionState, CopilotLifecycleReason, CopilotSessionStatus, License, LiveEventType, MessageMessengerStatus, MessageSmsStatus, MessageType, MessageWhatsAppStatus, PbxLicenseType, TranscriptionSentiment } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -271,6 +271,10 @@ export interface MessageForward {
|
|
|
271
271
|
forwardEmail?: string | undefined;
|
|
272
272
|
forwardName?: string | undefined;
|
|
273
273
|
messageId: string;
|
|
274
|
+
/**
|
|
275
|
+
* Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
274
278
|
channelId: string;
|
|
275
279
|
}
|
|
276
280
|
/**
|
|
@@ -297,6 +301,10 @@ export interface Reaction {
|
|
|
297
301
|
*/
|
|
298
302
|
export interface MessageQuote {
|
|
299
303
|
messageId: string;
|
|
304
|
+
/**
|
|
305
|
+
* Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
300
308
|
channelId: string;
|
|
301
309
|
user: User;
|
|
302
310
|
text?: string | undefined;
|
|
@@ -318,6 +326,12 @@ export interface Message {
|
|
|
318
326
|
forward?: MessageForward | undefined;
|
|
319
327
|
whatsapp?: boolean | undefined;
|
|
320
328
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
329
|
+
messenger?: boolean | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* The delivery state of a Facebook Messenger message an agent sent, the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the MESSENGER.STATUS stream event. A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
321
335
|
sms?: boolean | undefined;
|
|
322
336
|
smsStatus?: MessageSmsStatus | undefined;
|
|
323
337
|
markdown?: boolean | undefined;
|
|
@@ -326,6 +340,10 @@ export interface Message {
|
|
|
326
340
|
silent?: boolean | undefined;
|
|
327
341
|
event?: string | undefined;
|
|
328
342
|
messageId: string;
|
|
343
|
+
/**
|
|
344
|
+
* Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
329
347
|
channelId: string;
|
|
330
348
|
user: User;
|
|
331
349
|
edit?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-copilot-sessions-client",
|
|
3
3
|
"description": "@wildix/wilma-copilot-sessions-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.21",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|