@wildix/wilma-copilot-sessions-client 1.0.5 → 1.0.7

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.
Files changed (37) hide show
  1. package/dist-cjs/WilmaCopilotSessions.js +14 -4
  2. package/dist-cjs/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +6 -6
  3. package/dist-cjs/commands/EnrichCommand.js +20 -0
  4. package/dist-cjs/commands/GetSessionEventsCommand.js +20 -0
  5. package/dist-cjs/commands/ListSessionsCommand.js +20 -0
  6. package/dist-cjs/commands/OpenCommand.js +20 -0
  7. package/dist-cjs/commands/ResolveCommand.js +20 -0
  8. package/dist-cjs/commands/{StreamCopilotSessionEventsCommand.js → StreamSessionEventsCommand.js} +6 -6
  9. package/dist-cjs/commands/index.js +7 -2
  10. package/dist-cjs/models/enums.js +22 -3
  11. package/dist-cjs/schemas/schemas_0.js +187 -33
  12. package/dist-es/WilmaCopilotSessions.js +14 -4
  13. package/dist-es/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +5 -5
  14. package/dist-es/commands/{StreamCopilotSessionEventsCommand.js → EnrichCommand.js} +5 -5
  15. package/dist-es/commands/GetSessionEventsCommand.js +16 -0
  16. package/dist-es/commands/ListSessionsCommand.js +16 -0
  17. package/dist-es/commands/OpenCommand.js +16 -0
  18. package/dist-es/commands/ResolveCommand.js +16 -0
  19. package/dist-es/commands/StreamSessionEventsCommand.js +16 -0
  20. package/dist-es/commands/index.js +7 -2
  21. package/dist-es/models/enums.js +21 -2
  22. package/dist-es/schemas/schemas_0.js +185 -32
  23. package/dist-types/WilmaCopilotSessions.d.ts +53 -10
  24. package/dist-types/WilmaCopilotSessionsClient.d.ts +15 -4
  25. package/dist-types/commands/AskCommand.d.ts +87 -0
  26. package/dist-types/commands/EnrichCommand.d.ts +116 -0
  27. package/dist-types/commands/{GetCopilotSessionEventsCommand.d.ts → GetSessionEventsCommand.d.ts} +38 -24
  28. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  29. package/dist-types/commands/OpenCommand.d.ts +117 -0
  30. package/dist-types/commands/ResolveCommand.d.ts +110 -0
  31. package/dist-types/commands/{StreamCopilotSessionEventsCommand.d.ts → StreamSessionEventsCommand.d.ts} +23 -23
  32. package/dist-types/commands/index.d.ts +7 -2
  33. package/dist-types/index.d.ts +6 -0
  34. package/dist-types/models/enums.d.ts +79 -6
  35. package/dist-types/models/models_0.d.ts +369 -9
  36. package/dist-types/schemas/schemas_0.d.ts +28 -6
  37. package/package.json +1 -1
@@ -1,37 +1,56 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamCopilotSessionEvents$ = exports.GetCopilotSessionEvents$ = exports.Element$ = exports.ButtonHandler$ = exports.ActionElement$ = exports.CopilotTranscriptionData$ = exports.CopilotSessionEvent$ = exports.User$ = exports.Reaction$ = exports.MessageTemplateConfig$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForward$ = exports.MessageAttachment$ = exports.Message$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.StreamCopilotSessionEventsOutput$ = exports.StreamCopilotSessionEventsInput$ = exports.GetCopilotSessionEventsOutput$ = exports.GetCopilotSessionEventsInput$ = exports.CopilotTranscriptionEvent$ = exports.CopilotLifecycleEvent$ = exports.CopilotIntentEvent$ = exports.CopilotEvaluationEvent$ = exports.CopilotAssistantEvent$ = exports.CopilotAssetEvent$ = exports.ConferenceTranscriptionChunk$ = exports.ConferenceParticipant$ = exports.ConferenceAnalyticsLiveTranscriptionEvent$ = exports.ChatAnalyticsLiveTranscriptionEvent$ = exports.CallTranscriptionChunk$ = exports.CallParticipant$ = exports.CallAnalyticsLiveTranscriptionEvent$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaCopilotSessionsServiceException$ = void 0;
3
+ exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForward$ = exports.MessageAttachment$ = exports.Message$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.StreamSessionEventsOutput$ = exports.StreamSessionEventsInput$ = exports.ResolveOutput$ = exports.ResolveInput$ = exports.OpenOutput$ = exports.OpenInput$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.GetSessionEventsOutput$ = exports.GetSessionEventsInput$ = exports.EnrichOutput$ = exports.EnrichInput$ = exports.CopilotTranscriptionEvent$ = exports.CopilotSessionSummary$ = exports.CopilotRelationshipEvent$ = exports.CopilotLifecycleEvent$ = exports.CopilotIntentEvent$ = exports.CopilotIngestedSession$ = exports.CopilotEvaluationEvent$ = exports.CopilotContextLookup$ = exports.CopilotContextEntity$ = exports.CopilotContextConversation$ = exports.CopilotAssistantEvent$ = exports.CopilotAssetEvent$ = exports.CopilotAskEvent$ = exports.AskOutput$ = exports.AskInput$ = exports.ConferenceTranscriptionChunk$ = exports.ConferenceParticipant$ = exports.ConferenceAnalyticsLiveTranscriptionEvent$ = exports.ChatAnalyticsLiveTranscriptionEvent$ = exports.CallTranscriptionChunk$ = exports.CallParticipant$ = exports.CallAnalyticsLiveTranscriptionEvent$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaCopilotSessionsServiceException$ = void 0;
4
+ exports.StreamSessionEvents$ = exports.Resolve$ = exports.Open$ = exports.ListSessions$ = exports.GetSessionEvents$ = exports.Enrich$ = exports.Ask$ = exports.Element$ = exports.ButtonHandler$ = exports.ActionElement$ = exports.CopilotTranscriptionData$ = exports.CopilotSessionEvent$ = exports.User$ = exports.Reaction$ = exports.MessageTemplateConfig$ = void 0;
5
+ const _A = "Ask";
4
6
  const _AE = "ActionElement";
5
7
  const _AEL = "ActionsElementsList";
8
+ const _AI = "AskInput";
9
+ const _AO = "AskOutput";
6
10
  const _BAH = "ButtonActionHandler";
7
11
  const _BE = "ButtonElement";
8
12
  const _BH = "ButtonHandler";
9
13
  const _BLH = "ButtonLinkHandler";
10
14
  const _BRH = "ButtonReplyHandler";
11
- const _CAE = "CopilotAssetEvent";
12
- const _CAEo = "CopilotAssistantEvent";
15
+ const _CAE = "CopilotAskEvent";
16
+ const _CAEo = "CopilotAssetEvent";
17
+ const _CAEop = "CopilotAssistantEvent";
13
18
  const _CALTE = "CallAnalyticsLiveTranscriptionEvent";
14
19
  const _CALTEh = "ChatAnalyticsLiveTranscriptionEvent";
15
20
  const _CALTEo = "ConferenceAnalyticsLiveTranscriptionEvent";
21
+ const _CCC = "CopilotContextConversation";
22
+ const _CCE = "CopilotContextEntity";
23
+ const _CCEL = "CopilotContextEntityList";
24
+ const _CCL = "CopilotContextLookup";
16
25
  const _CEE = "CopilotEvaluationEvent";
17
26
  const _CIE = "CopilotIntentEvent";
27
+ const _CIS = "CopilotIngestedSession";
18
28
  const _CLE = "CopilotLifecycleEvent";
19
29
  const _CP = "CallParticipant";
20
30
  const _CPo = "ConferenceParticipant";
31
+ const _CRE = "CopilotRelationshipEvent";
21
32
  const _CSE = "CopilotSessionEvents";
22
33
  const _CSESB = "CopilotSessionEventStreamBody";
23
34
  const _CSEo = "CopilotSessionEvent";
35
+ const _CSS = "CopilotSessionSummary";
36
+ const _CSSL = "CopilotSessionSummaryList";
24
37
  const _CT = "Content-Type";
25
38
  const _CTC = "CallTranscriptionChunk";
26
39
  const _CTCo = "ConferenceTranscriptionChunk";
27
40
  const _CTD = "CopilotTranscriptionData";
28
41
  const _CTE = "CopilotTranscriptionEvent";
29
42
  const _E = "Element";
43
+ const _EI = "EnrichInput";
30
44
  const _EL = "ElementsList";
45
+ const _EO = "EnrichOutput";
46
+ const _En = "Enrich";
31
47
  const _FE = "ForbiddenException";
32
- const _GCSE = "GetCopilotSessionEvents";
33
- const _GCSEI = "GetCopilotSessionEventsInput";
34
- const _GCSEO = "GetCopilotSessionEventsOutput";
48
+ const _GSE = "GetSessionEvents";
49
+ const _GSEI = "GetSessionEventsInput";
50
+ const _GSEO = "GetSessionEventsOutput";
51
+ const _LS = "ListSessions";
52
+ const _LSI = "ListSessionsInput";
53
+ const _LSO = "ListSessionsOutput";
35
54
  const _LTP = "ListTemplateParameter";
36
55
  const _M = "Message";
37
56
  const _MA = "MessageAttachment";
@@ -41,21 +60,30 @@ const _MG = "MessageGiphy";
41
60
  const _MQ = "MessageQuote";
42
61
  const _MTC = "MessageTemplateConfig";
43
62
  const _NFE = "NotFoundException";
63
+ const _O = "Open";
64
+ const _OI = "OpenInput";
65
+ const _OO = "OpenOutput";
44
66
  const _R = "Reaction";
67
+ const _RI = "ResolveInput";
45
68
  const _RL = "ReactionList";
46
- const _SCSE = "StreamCopilotSessionEvents";
47
- const _SCSEI = "StreamCopilotSessionEventsInput";
48
- const _SCSEO = "StreamCopilotSessionEventsOutput";
69
+ const _RO = "ResolveOutput";
70
+ const _Re = "Resolve";
71
+ const _SSE = "StreamSessionEvents";
72
+ const _SSEI = "StreamSessionEventsInput";
73
+ const _SSEO = "StreamSessionEventsOutput";
49
74
  const _TP = "TemplateParameter";
50
75
  const _TWP = "TemplateWithParameters";
51
76
  const _U = "User";
52
77
  const _UL = "UsersList";
53
78
  const _VE = "ValidationException";
54
- const _a = "attachments";
79
+ const _a = "attributes";
80
+ const _aT = "accessToken";
55
81
  const _ac = "action";
56
82
  const _act = "actions";
57
83
  const _as = "asset";
84
+ const _ask = "ask";
58
85
  const _ass = "assistant";
86
+ const _at = "attachments";
59
87
  const _b = "bot";
60
88
  const _bu = "button";
61
89
  const _c = "client";
@@ -72,6 +100,8 @@ const _co = "company";
72
100
  const _con = "confidence";
73
101
  const _conf = "conference";
74
102
  const _cont = "content";
103
+ const _conv = "conversation";
104
+ const _cu = "cursor";
75
105
  const _d = "department";
76
106
  const _da = "data";
77
107
  const _di = "disabled";
@@ -79,7 +109,9 @@ const _e = "error";
79
109
  const _ed = "edit";
80
110
  const _el = "elements";
81
111
  const _em = "email";
112
+ const _ema = "emails";
82
113
  const _en = "end";
114
+ const _ent = "entities";
83
115
  const _ev = "event";
84
116
  const _eva = "evaluation";
85
117
  const _eve = "events";
@@ -106,7 +138,9 @@ const _ic = "icon";
106
138
  const _in = "index";
107
139
  const _int = "intent";
108
140
  const _j = "jid";
141
+ const _k = "kind";
109
142
  const _l = "licenses";
143
+ const _lAA = "lastActivityAt";
110
144
  const _lR = "latestReactions";
111
145
  const _la = "language";
112
146
  const _li = "license";
@@ -115,12 +149,14 @@ const _lim = "limit";
115
149
  const _lin = "link";
116
150
  const _lo = "location";
117
151
  const _loc = "locale";
152
+ const _loo = "lookup";
118
153
  const _m = "message";
119
154
  const _mI = "messageId";
120
155
  const _ma = "markdown";
121
156
  const _me = "mentions";
122
157
  const _mi = "mime";
123
158
  const _n = "name";
159
+ const _nC = "nextCursor";
124
160
  const _nSI = "nextStartIndex";
125
161
  const _p = "parameters";
126
162
  const _pA = "publicAddress";
@@ -134,17 +170,25 @@ const _pUI = "pbxUserId";
134
170
  const _pa = "participant";
135
171
  const _pb = "pbx";
136
172
  const _ph = "phone";
173
+ const _pho = "phones";
137
174
  const _pi = "picture";
138
175
  const _q = "quote";
139
176
  const _r = "role";
140
177
  const _rC = "reactionCounts";
141
- const _re = "reply";
178
+ const _rI = "relationshipId";
179
+ const _re = "reason";
180
+ const _rel = "related";
181
+ const _rela = "relationship";
182
+ const _rep = "reply";
142
183
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
184
+ const _sA = "startedAt";
143
185
  const _sCI = "sipCallId";
144
186
  const _sI = "sessionId";
145
187
  const _sIt = "startIndex";
146
188
  const _sS = "smsStatus";
147
189
  const _se = "sentiment";
190
+ const _ses = "sessions";
191
+ const _sess = "session";
148
192
  const _si = "silent";
149
193
  const _siz = "size";
150
194
  const _sm = "sms";
@@ -164,18 +208,19 @@ const _th = "thumbnail";
164
208
  const _ti = "timestamp";
165
209
  const _tr = "transcript";
166
210
  const _ty = "type";
167
- const _u = "url";
211
+ const _u = "user";
168
212
  const _uA = "userAgent";
169
213
  const _uAp = "updatedAt";
170
214
  const _uD = "userDepartment";
171
215
  const _uDs = "userDevice";
172
216
  const _uE = "userExtension";
173
217
  const _uI = "userId";
174
- const _us = "user";
218
+ const _ur = "url";
175
219
  const _v = "value";
176
220
  const _va = "variant";
177
221
  const _w = "whatsapp";
178
222
  const _wS = "whatsappStatus";
223
+ const _wSI = "wilmaSessionId";
179
224
  const _wi = "width";
180
225
  const _xI = "xbsId";
181
226
  const n0 = "smithy.framework";
@@ -258,21 +303,56 @@ exports.ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
258
303
  [_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
259
304
  [0, 1, 0, 0, 2, 1, 1, 0, 0], 7
260
305
  ];
261
- exports.CopilotAssetEvent$ = [3, n1, _CAE,
306
+ exports.AskInput$ = [3, n1, _AI,
307
+ 0,
308
+ [_sI, _wSI, _co, _aT],
309
+ [[0, 1], 0, 0, 0], 2
310
+ ];
311
+ exports.AskOutput$ = [3, n1, _AO,
312
+ 0,
313
+ [_in],
314
+ [1], 1
315
+ ];
316
+ exports.CopilotAskEvent$ = [3, n1, _CAE,
317
+ 0,
318
+ [_in, _ti, _uI, _wSI, _aT],
319
+ [1, 0, 0, 0, 0], 4
320
+ ];
321
+ exports.CopilotAssetEvent$ = [3, n1, _CAEo,
262
322
  0,
263
323
  [_in, _ti, _i, _stat, _ic, _sty, _sti, _cont],
264
324
  [1, 0, 0, 15, 0, 0, 2, 0], 4
265
325
  ];
266
- exports.CopilotAssistantEvent$ = [3, n1, _CAEo,
326
+ exports.CopilotAssistantEvent$ = [3, n1, _CAEop,
267
327
  0,
268
328
  [_in, _ti, _i, _stat],
269
329
  [1, 0, 0, 15], 4
270
330
  ];
331
+ exports.CopilotContextConversation$ = [3, n1, _CCC,
332
+ 0,
333
+ [_i, _k],
334
+ [0, 0], 2
335
+ ];
336
+ exports.CopilotContextEntity$ = [3, n1, _CCE,
337
+ 0,
338
+ [_i, _ty],
339
+ [0, 0], 2
340
+ ];
341
+ exports.CopilotContextLookup$ = [3, n1, _CCL,
342
+ 0,
343
+ [_ema, _pho, _ent, _a],
344
+ [64 | 0, 64 | 0, () => CopilotContextEntityList, 128 | 0]
345
+ ];
271
346
  exports.CopilotEvaluationEvent$ = [3, n1, _CEE,
272
347
  0,
273
348
  [_in, _ti, _i, _stat],
274
349
  [1, 0, 0, 15], 4
275
350
  ];
351
+ exports.CopilotIngestedSession$ = [3, n1, _CIS,
352
+ 0,
353
+ [_i, _stat],
354
+ [0, 0], 2
355
+ ];
276
356
  exports.CopilotIntentEvent$ = [3, n1, _CIE,
277
357
  0,
278
358
  [_in, _ti, _i, _stat],
@@ -280,30 +360,80 @@ exports.CopilotIntentEvent$ = [3, n1, _CIE,
280
360
  ];
281
361
  exports.CopilotLifecycleEvent$ = [3, n1, _CLE,
282
362
  0,
283
- [_in, _ti, _sI, _statu],
284
- [1, 0, 0, 0], 4
363
+ [_in, _ti, _sI, _statu, _re],
364
+ [1, 0, 0, 0, 0], 4
365
+ ];
366
+ exports.CopilotRelationshipEvent$ = [3, n1, _CRE,
367
+ 0,
368
+ [_in, _ti, _rI, _sI],
369
+ [1, 0, 0, 0], 3
370
+ ];
371
+ exports.CopilotSessionSummary$ = [3, n1, _CSS,
372
+ 0,
373
+ [_i, _statu, _conv, _sA, _lAA],
374
+ [0, 0, () => exports.CopilotContextConversation$, 0, 0], 3
285
375
  ];
286
376
  exports.CopilotTranscriptionEvent$ = [3, n1, _CTE,
287
377
  0,
288
378
  [_in, _ti, _da],
289
379
  [1, 0, () => exports.CopilotTranscriptionData$], 3
290
380
  ];
291
- exports.GetCopilotSessionEventsInput$ = [3, n1, _GCSEI,
381
+ exports.EnrichInput$ = [3, n1, _EI,
382
+ 0,
383
+ [_rI, _loo, _co],
384
+ [0, () => exports.CopilotContextLookup$, 0], 2
385
+ ];
386
+ exports.EnrichOutput$ = [3, n1, _EO,
387
+ 0,
388
+ [_rI, _rel],
389
+ [0, () => CopilotSessionSummaryList], 2
390
+ ];
391
+ exports.GetSessionEventsInput$ = [3, n1, _GSEI,
292
392
  0,
293
393
  [_sI, _co, _sIt, _lim],
294
394
  [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
295
395
  ];
296
- exports.GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
396
+ exports.GetSessionEventsOutput$ = [3, n1, _GSEO,
297
397
  0,
298
398
  [_eve, _nSI],
299
399
  [() => CopilotSessionEvents, 1], 1
300
400
  ];
301
- exports.StreamCopilotSessionEventsInput$ = [3, n1, _SCSEI,
401
+ exports.ListSessionsInput$ = [3, n1, _LSI,
402
+ 0,
403
+ [_co, _u, _lim, _cu],
404
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _u }], [1, { [_hQ]: _lim }], [0, { [_hQ]: _cu }]]
405
+ ];
406
+ exports.ListSessionsOutput$ = [3, n1, _LSO,
407
+ 0,
408
+ [_ses, _nC],
409
+ [() => CopilotSessionSummaryList, 0], 1
410
+ ];
411
+ exports.OpenInput$ = [3, n1, _OI,
412
+ 0,
413
+ [_co, _loo],
414
+ [0, () => exports.CopilotContextLookup$]
415
+ ];
416
+ exports.OpenOutput$ = [3, n1, _OO,
417
+ 0,
418
+ [_rI, _sess, _rel],
419
+ [0, () => exports.CopilotIngestedSession$, () => CopilotSessionSummaryList], 3
420
+ ];
421
+ exports.ResolveInput$ = [3, n1, _RI,
422
+ 0,
423
+ [_loo, _co],
424
+ [() => exports.CopilotContextLookup$, 0], 1
425
+ ];
426
+ exports.ResolveOutput$ = [3, n1, _RO,
427
+ 0,
428
+ [_ses, _rI],
429
+ [() => CopilotSessionSummaryList, 0], 1
430
+ ];
431
+ exports.StreamSessionEventsInput$ = [3, n1, _SSEI,
302
432
  0,
303
433
  [_sI, _co, _sIt],
304
434
  [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }]], 1
305
435
  ];
306
- exports.StreamCopilotSessionEventsOutput$ = [3, n1, _SCSEO,
436
+ exports.StreamSessionEventsOutput$ = [3, n1, _SSEO,
307
437
  0,
308
438
  [_eve, _cT],
309
439
  [[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
@@ -320,7 +450,7 @@ exports.ButtonElement$ = [3, n4, _BE,
320
450
  ];
321
451
  exports.ButtonLinkHandler$ = [3, n4, _BLH,
322
452
  0,
323
- [_u],
453
+ [_ur],
324
454
  [0], 1
325
455
  ];
326
456
  exports.ButtonReplyHandler$ = [3, n4, _BRH,
@@ -330,7 +460,7 @@ exports.ButtonReplyHandler$ = [3, n4, _BRH,
330
460
  ];
331
461
  exports.Message$ = [3, n4, _M,
332
462
  0,
333
- [_ty, _mI, _cIh, _us, _cA, _te, _el, _a, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
463
+ [_ty, _mI, _cIh, _u, _cA, _te, _el, _at, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
334
464
  [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
335
465
  ];
336
466
  exports.MessageAttachment$ = [3, n4, _MA,
@@ -345,12 +475,12 @@ exports.MessageForward$ = [3, n4, _MF,
345
475
  ];
346
476
  exports.MessageGiphy$ = [3, n4, _MG,
347
477
  0,
348
- [_i, _siz, _u, _he, _wi],
478
+ [_i, _siz, _ur, _he, _wi],
349
479
  [0, 0, 0, 0, 0], 5
350
480
  ];
351
481
  exports.MessageQuote$ = [3, n4, _MQ,
352
482
  0,
353
- [_mI, _cIh, _us, _cA, _te, _a, _f, _me, _g, _uAp],
483
+ [_mI, _cIh, _u, _cA, _te, _at, _f, _me, _g, _uAp],
354
484
  [0, 0, () => exports.User$, 0, 0, () => MessageAttachmentList, () => exports.MessageForward$, () => UsersList, () => exports.MessageGiphy$, 0], 4
355
485
  ];
356
486
  exports.MessageTemplateConfig$ = [3, n4, _MTC,
@@ -360,7 +490,7 @@ exports.MessageTemplateConfig$ = [3, n4, _MTC,
360
490
  ];
361
491
  exports.Reaction$ = [3, n4, _R,
362
492
  0,
363
- [_ty, _uI, _mI, _us],
493
+ [_ty, _uI, _mI, _u],
364
494
  [0, 0, 0, () => exports.User$]
365
495
  ];
366
496
  exports.User$ = [3, n4, _U,
@@ -372,9 +502,17 @@ var ListTemplateParameter = [1, n2, _LTP,
372
502
  0, () => exports.TemplateParameter$
373
503
  ];
374
504
  var LicensesList = 64 | 0;
505
+ var CopilotContextEmailList = 64 | 0;
506
+ var CopilotContextEntityList = [1, n1, _CCEL,
507
+ 0, () => exports.CopilotContextEntity$
508
+ ];
509
+ var CopilotContextPhoneList = 64 | 0;
375
510
  var CopilotSessionEvents = [1, n1, _CSE,
376
511
  0, () => exports.CopilotSessionEvent$
377
512
  ];
513
+ var CopilotSessionSummaryList = [1, n1, _CSSL,
514
+ 0, () => exports.CopilotSessionSummary$
515
+ ];
378
516
  var ActionsElementsList = [1, n4, _AEL,
379
517
  0, () => exports.ActionElement$
380
518
  ];
@@ -390,11 +528,12 @@ var ReactionList = [1, n4, _RL,
390
528
  var UsersList = [1, n4, _UL,
391
529
  0, () => exports.User$
392
530
  ];
531
+ var CopilotContextAttributes = 128 | 0;
393
532
  var ReactionCounts = 128 | 1;
394
533
  exports.CopilotSessionEvent$ = [4, n1, _CSEo,
395
534
  0,
396
- [_lif, _tr, _int, _eva, _as, _ass],
397
- [() => exports.CopilotLifecycleEvent$, () => exports.CopilotTranscriptionEvent$, () => exports.CopilotIntentEvent$, () => exports.CopilotEvaluationEvent$, () => exports.CopilotAssetEvent$, () => exports.CopilotAssistantEvent$]
535
+ [_lif, _tr, _int, _eva, _as, _ass, _rela, _ask],
536
+ [() => exports.CopilotLifecycleEvent$, () => exports.CopilotTranscriptionEvent$, () => exports.CopilotIntentEvent$, () => exports.CopilotEvaluationEvent$, () => exports.CopilotAssetEvent$, () => exports.CopilotAssistantEvent$, () => exports.CopilotRelationshipEvent$, () => exports.CopilotAskEvent$]
398
537
  ];
399
538
  exports.CopilotTranscriptionData$ = [4, n1, _CTD,
400
539
  0,
@@ -408,7 +547,7 @@ exports.ActionElement$ = [4, n4, _AE,
408
547
  ];
409
548
  exports.ButtonHandler$ = [4, n4, _BH,
410
549
  0,
411
- [_lin, _re, _ac],
550
+ [_lin, _rep, _ac],
412
551
  [() => exports.ButtonLinkHandler$, () => exports.ButtonReplyHandler$, () => exports.ButtonActionHandler$]
413
552
  ];
414
553
  exports.Element$ = [4, n4, _E,
@@ -416,9 +555,24 @@ exports.Element$ = [4, n4, _E,
416
555
  [_tem, _act],
417
556
  [() => exports.MessageTemplateConfig$, () => ActionsElementsList]
418
557
  ];
419
- exports.GetCopilotSessionEvents$ = [9, n1, _GCSE,
420
- { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => exports.GetCopilotSessionEventsInput$, () => exports.GetCopilotSessionEventsOutput$
558
+ exports.Ask$ = [9, n1, _A,
559
+ { [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/ask", 200] }, () => exports.AskInput$, () => exports.AskOutput$
560
+ ];
561
+ exports.Enrich$ = [9, n1, _En,
562
+ { [_ht]: ["POST", "/v2/copilot/enrich", 200] }, () => exports.EnrichInput$, () => exports.EnrichOutput$
563
+ ];
564
+ exports.GetSessionEvents$ = [9, n1, _GSE,
565
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => exports.GetSessionEventsInput$, () => exports.GetSessionEventsOutput$
566
+ ];
567
+ exports.ListSessions$ = [9, n1, _LS,
568
+ { [_ht]: ["GET", "/v2/copilot/sessions", 200] }, () => exports.ListSessionsInput$, () => exports.ListSessionsOutput$
569
+ ];
570
+ exports.Open$ = [9, n1, _O,
571
+ { [_ht]: ["POST", "/v2/copilot/open", 200] }, () => exports.OpenInput$, () => exports.OpenOutput$
572
+ ];
573
+ exports.Resolve$ = [9, n1, _Re,
574
+ { [_ht]: ["POST", "/v2/copilot/lookup", 200] }, () => exports.ResolveInput$, () => exports.ResolveOutput$
421
575
  ];
422
- exports.StreamCopilotSessionEvents$ = [9, n1, _SCSE,
423
- { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => exports.StreamCopilotSessionEventsInput$, () => exports.StreamCopilotSessionEventsOutput$
576
+ exports.StreamSessionEvents$ = [9, n1, _SSE,
577
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => exports.StreamSessionEventsInput$, () => exports.StreamSessionEventsOutput$
424
578
  ];
@@ -1,10 +1,20 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
- import { GetCopilotSessionEventsCommand, } from "./commands/GetCopilotSessionEventsCommand";
3
- import { StreamCopilotSessionEventsCommand, } from "./commands/StreamCopilotSessionEventsCommand";
2
+ import { AskCommand } from "./commands/AskCommand";
3
+ import { EnrichCommand } from "./commands/EnrichCommand";
4
+ import { GetSessionEventsCommand, } from "./commands/GetSessionEventsCommand";
5
+ import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
6
+ import { OpenCommand } from "./commands/OpenCommand";
7
+ import { ResolveCommand } from "./commands/ResolveCommand";
8
+ import { StreamSessionEventsCommand, } from "./commands/StreamSessionEventsCommand";
4
9
  import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
5
10
  const commands = {
6
- GetCopilotSessionEventsCommand,
7
- StreamCopilotSessionEventsCommand,
11
+ AskCommand,
12
+ EnrichCommand,
13
+ GetSessionEventsCommand,
14
+ ListSessionsCommand,
15
+ OpenCommand,
16
+ ResolveCommand,
17
+ StreamSessionEventsCommand,
8
18
  };
9
19
  export class WilmaCopilotSessions extends WilmaCopilotSessionsClient {
10
20
  }
@@ -1,16 +1,16 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetCopilotSessionEvents$ } from "../schemas/schemas_0";
4
+ import { Ask$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
- export class GetCopilotSessionEventsCommand extends $Command
6
+ export class AskCommand extends $Command
7
7
  .classBuilder()
8
8
  .ep(commonParams)
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
11
  })
12
- .s("WilmaCopilotSessions", "GetCopilotSessionEvents", {})
13
- .n("WilmaCopilotSessionsClient", "GetCopilotSessionEventsCommand")
14
- .sc(GetCopilotSessionEvents$)
12
+ .s("WilmaCopilotSessions", "Ask", {})
13
+ .n("WilmaCopilotSessionsClient", "AskCommand")
14
+ .sc(Ask$)
15
15
  .build() {
16
16
  }
@@ -1,16 +1,16 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StreamCopilotSessionEvents$ } from "../schemas/schemas_0";
4
+ import { Enrich$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
- export class StreamCopilotSessionEventsCommand extends $Command
6
+ export class EnrichCommand extends $Command
7
7
  .classBuilder()
8
8
  .ep(commonParams)
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
11
  })
12
- .s("WilmaCopilotSessions", "StreamCopilotSessionEvents", {})
13
- .n("WilmaCopilotSessionsClient", "StreamCopilotSessionEventsCommand")
14
- .sc(StreamCopilotSessionEvents$)
12
+ .s("WilmaCopilotSessions", "Enrich", {})
13
+ .n("WilmaCopilotSessionsClient", "EnrichCommand")
14
+ .sc(Enrich$)
15
15
  .build() {
16
16
  }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetSessionEvents$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetSessionEventsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "GetSessionEvents", {})
13
+ .n("WilmaCopilotSessionsClient", "GetSessionEventsCommand")
14
+ .sc(GetSessionEvents$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListSessions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSessionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "ListSessions", {})
13
+ .n("WilmaCopilotSessionsClient", "ListSessionsCommand")
14
+ .sc(ListSessions$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { Open$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class OpenCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "Open", {})
13
+ .n("WilmaCopilotSessionsClient", "OpenCommand")
14
+ .sc(Open$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { Resolve$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ResolveCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "Resolve", {})
13
+ .n("WilmaCopilotSessionsClient", "ResolveCommand")
14
+ .sc(Resolve$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { StreamSessionEvents$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StreamSessionEventsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "StreamSessionEvents", {})
13
+ .n("WilmaCopilotSessionsClient", "StreamSessionEventsCommand")
14
+ .sc(StreamSessionEvents$)
15
+ .build() {
16
+ }
@@ -1,2 +1,7 @@
1
- export * from "./GetCopilotSessionEventsCommand";
2
- export * from "./StreamCopilotSessionEventsCommand";
1
+ export * from "./AskCommand";
2
+ export * from "./EnrichCommand";
3
+ export * from "./GetSessionEventsCommand";
4
+ export * from "./ListSessionsCommand";
5
+ export * from "./OpenCommand";
6
+ export * from "./ResolveCommand";
7
+ export * from "./StreamSessionEventsCommand";
@@ -119,9 +119,28 @@ export const AssetSeverity = {
119
119
  SUCCESS: "success",
120
120
  WARNING: "warning",
121
121
  };
122
+ export const CopilotConversationKind = {
123
+ APP: "app",
124
+ CALL: "call",
125
+ CHAT: "chat",
126
+ CONFERENCE: "conference",
127
+ };
128
+ export const CopilotIngestedSessionState = {
129
+ CREATED: "created",
130
+ REUSED: "reused",
131
+ };
132
+ export const CopilotLifecycleReason = {
133
+ ARCHIVE_TIMER: "archive_timer",
134
+ CREATED: "created",
135
+ ENDED: "ended",
136
+ ERROR: "error",
137
+ INACTIVITY: "inactivity",
138
+ REVIVED: "revived",
139
+ STOPPED: "stopped",
140
+ };
122
141
  export const CopilotSessionStatus = {
123
142
  ACTIVE: "active",
124
- ENDED: "ended",
143
+ ARCHIVED: "archived",
125
144
  FAILED: "failed",
126
- STOPPED: "stopped",
145
+ IDLE: "idle",
127
146
  };