@wildix/wilma-copilot-sessions-client 1.0.7 → 1.0.8
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/WilmaCopilotSessions.js +4 -0
- package/dist-cjs/commands/ActCommand.js +20 -0
- package/dist-cjs/commands/TrackCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/enums.js +6 -1
- package/dist-cjs/schemas/schemas_0.js +113 -36
- package/dist-es/WilmaCopilotSessions.js +4 -0
- package/dist-es/commands/ActCommand.js +16 -0
- package/dist-es/commands/TrackCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +5 -0
- package/dist-es/schemas/schemas_0.js +111 -34
- package/dist-types/WilmaCopilotSessions.d.ts +14 -0
- package/dist-types/WilmaCopilotSessionsClient.d.ts +4 -2
- package/dist-types/commands/ActCommand.d.ts +96 -0
- package/dist-types/commands/GetSessionEventsCommand.d.ts +10 -0
- package/dist-types/commands/TrackCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +16 -0
- package/dist-types/models/models_0.d.ts +212 -2
- package/dist-types/schemas/schemas_0.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
const _A = "
|
|
1
|
+
const _A = "Act";
|
|
2
2
|
const _AE = "ActionElement";
|
|
3
3
|
const _AEL = "ActionsElementsList";
|
|
4
|
-
const _AI = "
|
|
5
|
-
const
|
|
4
|
+
const _AI = "ActInput";
|
|
5
|
+
const _AIs = "AskInput";
|
|
6
|
+
const _AO = "ActOutput";
|
|
7
|
+
const _AOs = "AskOutput";
|
|
8
|
+
const _As = "Ask";
|
|
6
9
|
const _BAH = "ButtonActionHandler";
|
|
7
10
|
const _BE = "ButtonElement";
|
|
8
11
|
const _BH = "ButtonHandler";
|
|
9
12
|
const _BLH = "ButtonLinkHandler";
|
|
10
13
|
const _BRH = "ButtonReplyHandler";
|
|
11
|
-
const _CAE = "
|
|
12
|
-
const _CAEo = "
|
|
13
|
-
const _CAEop = "
|
|
14
|
+
const _CAE = "CopilotActionEvent";
|
|
15
|
+
const _CAEo = "CopilotAskEvent";
|
|
16
|
+
const _CAEop = "CopilotAssetEvent";
|
|
17
|
+
const _CAEopi = "CopilotAssistantEvent";
|
|
14
18
|
const _CALTE = "CallAnalyticsLiveTranscriptionEvent";
|
|
15
19
|
const _CALTEh = "ChatAnalyticsLiveTranscriptionEvent";
|
|
16
20
|
const _CALTEo = "ConferenceAnalyticsLiveTranscriptionEvent";
|
|
21
|
+
const _CAV = "CopilotAssetView";
|
|
22
|
+
const _CAVo = "CopilotAssetViews";
|
|
23
|
+
const _CCA = "CopilotClientAction";
|
|
17
24
|
const _CCC = "CopilotContextConversation";
|
|
18
25
|
const _CCE = "CopilotContextEntity";
|
|
19
26
|
const _CCEL = "CopilotContextEntityList";
|
|
@@ -44,6 +51,7 @@ const _FE = "ForbiddenException";
|
|
|
44
51
|
const _GSE = "GetSessionEvents";
|
|
45
52
|
const _GSEI = "GetSessionEventsInput";
|
|
46
53
|
const _GSEO = "GetSessionEventsOutput";
|
|
54
|
+
const _KSCA = "KnowledgeSearchClientAction";
|
|
47
55
|
const _LS = "ListSessions";
|
|
48
56
|
const _LSI = "ListSessionsInput";
|
|
49
57
|
const _LSO = "ListSessionsOutput";
|
|
@@ -64,22 +72,30 @@ const _RI = "ResolveInput";
|
|
|
64
72
|
const _RL = "ReactionList";
|
|
65
73
|
const _RO = "ResolveOutput";
|
|
66
74
|
const _Re = "Resolve";
|
|
75
|
+
const _SACA = "SmartActionClientAction";
|
|
67
76
|
const _SSE = "StreamSessionEvents";
|
|
68
77
|
const _SSEI = "StreamSessionEventsInput";
|
|
69
78
|
const _SSEO = "StreamSessionEventsOutput";
|
|
79
|
+
const _T = "Track";
|
|
80
|
+
const _TI = "TrackInput";
|
|
81
|
+
const _TO = "TrackOutput";
|
|
70
82
|
const _TP = "TemplateParameter";
|
|
71
83
|
const _TWP = "TemplateWithParameters";
|
|
72
84
|
const _U = "User";
|
|
73
85
|
const _UL = "UsersList";
|
|
74
86
|
const _VE = "ValidationException";
|
|
75
|
-
const _a = "
|
|
87
|
+
const _a = "action";
|
|
88
|
+
const _aI = "assetId";
|
|
89
|
+
const _aIc = "actionId";
|
|
76
90
|
const _aT = "accessToken";
|
|
77
|
-
const _ac = "
|
|
91
|
+
const _ac = "accepted";
|
|
78
92
|
const _act = "actions";
|
|
79
93
|
const _as = "asset";
|
|
80
94
|
const _ask = "ask";
|
|
81
95
|
const _ass = "assistant";
|
|
82
|
-
const _at = "
|
|
96
|
+
const _at = "at";
|
|
97
|
+
const _att = "attributes";
|
|
98
|
+
const _atta = "attachments";
|
|
83
99
|
const _b = "bot";
|
|
84
100
|
const _bu = "button";
|
|
85
101
|
const _c = "client";
|
|
@@ -135,6 +151,7 @@ const _in = "index";
|
|
|
135
151
|
const _int = "intent";
|
|
136
152
|
const _j = "jid";
|
|
137
153
|
const _k = "kind";
|
|
154
|
+
const _kS = "knowledgeSearch";
|
|
138
155
|
const _l = "licenses";
|
|
139
156
|
const _lAA = "lastActivityAt";
|
|
140
157
|
const _lR = "latestReactions";
|
|
@@ -168,16 +185,20 @@ const _pb = "pbx";
|
|
|
168
185
|
const _ph = "phone";
|
|
169
186
|
const _pho = "phones";
|
|
170
187
|
const _pi = "picture";
|
|
171
|
-
const _q = "
|
|
188
|
+
const _q = "question";
|
|
189
|
+
const _qI = "questionId";
|
|
190
|
+
const _qu = "quote";
|
|
172
191
|
const _r = "role";
|
|
173
192
|
const _rC = "reactionCounts";
|
|
174
193
|
const _rI = "relationshipId";
|
|
175
|
-
const _re = "
|
|
194
|
+
const _re = "result";
|
|
195
|
+
const _rea = "reason";
|
|
176
196
|
const _rel = "related";
|
|
177
197
|
const _rela = "relationship";
|
|
178
198
|
const _rep = "reply";
|
|
179
199
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
|
|
180
200
|
const _sA = "startedAt";
|
|
201
|
+
const _sAm = "smartAction";
|
|
181
202
|
const _sCI = "sipCallId";
|
|
182
203
|
const _sI = "sessionId";
|
|
183
204
|
const _sIt = "startIndex";
|
|
@@ -191,8 +212,8 @@ const _sm = "sms";
|
|
|
191
212
|
const _sp = "speaker";
|
|
192
213
|
const _st = "streaming";
|
|
193
214
|
const _sta = "start";
|
|
194
|
-
const _stat = "
|
|
195
|
-
const
|
|
215
|
+
const _stat = "status";
|
|
216
|
+
const _state = "state";
|
|
196
217
|
const _sti = "sticky";
|
|
197
218
|
const _sty = "styling";
|
|
198
219
|
const _t = "time";
|
|
@@ -213,7 +234,9 @@ const _uE = "userExtension";
|
|
|
213
234
|
const _uI = "userId";
|
|
214
235
|
const _ur = "url";
|
|
215
236
|
const _v = "value";
|
|
216
|
-
const _va = "
|
|
237
|
+
const _va = "variables";
|
|
238
|
+
const _var = "variant";
|
|
239
|
+
const _vi = "views";
|
|
217
240
|
const _w = "whatsapp";
|
|
218
241
|
const _wS = "whatsappStatus";
|
|
219
242
|
const _wSI = "wilmaSessionId";
|
|
@@ -299,29 +322,49 @@ export var ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
|
|
|
299
322
|
[_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
|
|
300
323
|
[0, 1, 0, 0, 2, 1, 1, 0, 0], 7
|
|
301
324
|
];
|
|
302
|
-
export var
|
|
325
|
+
export var ActInput$ = [3, n1, _AI,
|
|
326
|
+
0,
|
|
327
|
+
[_sI, _a, _co],
|
|
328
|
+
[[0, 1], () => CopilotClientAction$, [0, { [_hQ]: _co }]], 2
|
|
329
|
+
];
|
|
330
|
+
export var ActOutput$ = [3, n1, _AO,
|
|
331
|
+
0,
|
|
332
|
+
[_ac],
|
|
333
|
+
[2], 1
|
|
334
|
+
];
|
|
335
|
+
export var AskInput$ = [3, n1, _AIs,
|
|
303
336
|
0,
|
|
304
337
|
[_sI, _wSI, _co, _aT],
|
|
305
338
|
[[0, 1], 0, 0, 0], 2
|
|
306
339
|
];
|
|
307
|
-
export var AskOutput$ = [3, n1,
|
|
340
|
+
export var AskOutput$ = [3, n1, _AOs,
|
|
308
341
|
0,
|
|
309
342
|
[_in],
|
|
310
343
|
[1], 1
|
|
311
344
|
];
|
|
312
|
-
export var
|
|
345
|
+
export var CopilotActionEvent$ = [3, n1, _CAE,
|
|
346
|
+
0,
|
|
347
|
+
[_in, _ti, _i, _k, _stat, _uI, _re, _e],
|
|
348
|
+
[1, 0, 0, 0, 0, 0, 15, 0], 5
|
|
349
|
+
];
|
|
350
|
+
export var CopilotAskEvent$ = [3, n1, _CAEo,
|
|
313
351
|
0,
|
|
314
352
|
[_in, _ti, _uI, _wSI, _aT],
|
|
315
353
|
[1, 0, 0, 0, 0], 4
|
|
316
354
|
];
|
|
317
|
-
export var CopilotAssetEvent$ = [3, n1,
|
|
355
|
+
export var CopilotAssetEvent$ = [3, n1, _CAEop,
|
|
318
356
|
0,
|
|
319
|
-
[_in, _ti, _i,
|
|
357
|
+
[_in, _ti, _i, _state, _ic, _sty, _sti, _cont],
|
|
320
358
|
[1, 0, 0, 15, 0, 0, 2, 0], 4
|
|
321
359
|
];
|
|
322
|
-
export var
|
|
360
|
+
export var CopilotAssetView$ = [3, n1, _CAV,
|
|
323
361
|
0,
|
|
324
|
-
[
|
|
362
|
+
[_aI, _at],
|
|
363
|
+
[0, 0], 1
|
|
364
|
+
];
|
|
365
|
+
export var CopilotAssistantEvent$ = [3, n1, _CAEopi,
|
|
366
|
+
0,
|
|
367
|
+
[_in, _ti, _i, _state],
|
|
325
368
|
[1, 0, 0, 15], 4
|
|
326
369
|
];
|
|
327
370
|
export var CopilotContextConversation$ = [3, n1, _CCC,
|
|
@@ -336,27 +379,27 @@ export var CopilotContextEntity$ = [3, n1, _CCE,
|
|
|
336
379
|
];
|
|
337
380
|
export var CopilotContextLookup$ = [3, n1, _CCL,
|
|
338
381
|
0,
|
|
339
|
-
[_ema, _pho, _ent,
|
|
382
|
+
[_ema, _pho, _ent, _att],
|
|
340
383
|
[64 | 0, 64 | 0, () => CopilotContextEntityList, 128 | 0]
|
|
341
384
|
];
|
|
342
385
|
export var CopilotEvaluationEvent$ = [3, n1, _CEE,
|
|
343
386
|
0,
|
|
344
|
-
[_in, _ti, _i,
|
|
387
|
+
[_in, _ti, _i, _state],
|
|
345
388
|
[1, 0, 0, 15], 4
|
|
346
389
|
];
|
|
347
390
|
export var CopilotIngestedSession$ = [3, n1, _CIS,
|
|
348
391
|
0,
|
|
349
|
-
[_i,
|
|
392
|
+
[_i, _state],
|
|
350
393
|
[0, 0], 2
|
|
351
394
|
];
|
|
352
395
|
export var CopilotIntentEvent$ = [3, n1, _CIE,
|
|
353
396
|
0,
|
|
354
|
-
[_in, _ti, _i,
|
|
397
|
+
[_in, _ti, _i, _state],
|
|
355
398
|
[1, 0, 0, 15], 4
|
|
356
399
|
];
|
|
357
400
|
export var CopilotLifecycleEvent$ = [3, n1, _CLE,
|
|
358
401
|
0,
|
|
359
|
-
[_in, _ti, _sI,
|
|
402
|
+
[_in, _ti, _sI, _stat, _rea],
|
|
360
403
|
[1, 0, 0, 0, 0], 4
|
|
361
404
|
];
|
|
362
405
|
export var CopilotRelationshipEvent$ = [3, n1, _CRE,
|
|
@@ -366,7 +409,7 @@ export var CopilotRelationshipEvent$ = [3, n1, _CRE,
|
|
|
366
409
|
];
|
|
367
410
|
export var CopilotSessionSummary$ = [3, n1, _CSS,
|
|
368
411
|
0,
|
|
369
|
-
[_i,
|
|
412
|
+
[_i, _stat, _conv, _sA, _lAA],
|
|
370
413
|
[0, 0, () => CopilotContextConversation$, 0, 0], 3
|
|
371
414
|
];
|
|
372
415
|
export var CopilotTranscriptionEvent$ = [3, n1, _CTE,
|
|
@@ -394,6 +437,11 @@ export var GetSessionEventsOutput$ = [3, n1, _GSEO,
|
|
|
394
437
|
[_eve, _nSI],
|
|
395
438
|
[() => CopilotSessionEvents, 1], 1
|
|
396
439
|
];
|
|
440
|
+
export var KnowledgeSearchClientAction$ = [3, n1, _KSCA,
|
|
441
|
+
0,
|
|
442
|
+
[_qI, _q],
|
|
443
|
+
[0, 0], 1
|
|
444
|
+
];
|
|
397
445
|
export var ListSessionsInput$ = [3, n1, _LSI,
|
|
398
446
|
0,
|
|
399
447
|
[_co, _u, _lim, _cu],
|
|
@@ -424,6 +472,11 @@ export var ResolveOutput$ = [3, n1, _RO,
|
|
|
424
472
|
[_ses, _rI],
|
|
425
473
|
[() => CopilotSessionSummaryList, 0], 1
|
|
426
474
|
];
|
|
475
|
+
export var SmartActionClientAction$ = [3, n1, _SACA,
|
|
476
|
+
0,
|
|
477
|
+
[_aI, _aIc, _va],
|
|
478
|
+
[0, 0, 15], 2
|
|
479
|
+
];
|
|
427
480
|
export var StreamSessionEventsInput$ = [3, n1, _SSEI,
|
|
428
481
|
0,
|
|
429
482
|
[_sI, _co, _sIt],
|
|
@@ -434,6 +487,16 @@ export var StreamSessionEventsOutput$ = [3, n1, _SSEO,
|
|
|
434
487
|
[_eve, _cT],
|
|
435
488
|
[[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
|
|
436
489
|
];
|
|
490
|
+
export var TrackInput$ = [3, n1, _TI,
|
|
491
|
+
0,
|
|
492
|
+
[_sI, _vi, _co],
|
|
493
|
+
[[0, 1], () => CopilotAssetViews, [0, { [_hQ]: _co }]], 2
|
|
494
|
+
];
|
|
495
|
+
export var TrackOutput$ = [3, n1, _TO,
|
|
496
|
+
0,
|
|
497
|
+
[_ac],
|
|
498
|
+
[2], 1
|
|
499
|
+
];
|
|
437
500
|
export var ButtonActionHandler$ = [3, n4, _BAH,
|
|
438
501
|
0,
|
|
439
502
|
[_i],
|
|
@@ -441,7 +504,7 @@ export var ButtonActionHandler$ = [3, n4, _BAH,
|
|
|
441
504
|
];
|
|
442
505
|
export var ButtonElement$ = [3, n4, _BE,
|
|
443
506
|
0,
|
|
444
|
-
[_te, _h,
|
|
507
|
+
[_te, _h, _var, _di],
|
|
445
508
|
[0, () => ButtonHandler$, 0, 2], 2
|
|
446
509
|
];
|
|
447
510
|
export var ButtonLinkHandler$ = [3, n4, _BLH,
|
|
@@ -456,7 +519,7 @@ export var ButtonReplyHandler$ = [3, n4, _BRH,
|
|
|
456
519
|
];
|
|
457
520
|
export var Message$ = [3, n4, _M,
|
|
458
521
|
0,
|
|
459
|
-
[_ty, _mI, _cIh, _u, _cA, _te, _el,
|
|
522
|
+
[_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
|
|
460
523
|
[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
|
|
461
524
|
];
|
|
462
525
|
export var MessageAttachment$ = [3, n4, _MA,
|
|
@@ -476,7 +539,7 @@ export var MessageGiphy$ = [3, n4, _MG,
|
|
|
476
539
|
];
|
|
477
540
|
export var MessageQuote$ = [3, n4, _MQ,
|
|
478
541
|
0,
|
|
479
|
-
[_mI, _cIh, _u, _cA, _te,
|
|
542
|
+
[_mI, _cIh, _u, _cA, _te, _atta, _f, _me, _g, _uAp],
|
|
480
543
|
[0, 0, () => User$, 0, 0, () => MessageAttachmentList, () => MessageForward$, () => UsersList, () => MessageGiphy$, 0], 4
|
|
481
544
|
];
|
|
482
545
|
export var MessageTemplateConfig$ = [3, n4, _MTC,
|
|
@@ -498,6 +561,9 @@ var ListTemplateParameter = [1, n2, _LTP,
|
|
|
498
561
|
0, () => TemplateParameter$
|
|
499
562
|
];
|
|
500
563
|
var LicensesList = 64 | 0;
|
|
564
|
+
var CopilotAssetViews = [1, n1, _CAVo,
|
|
565
|
+
0, () => CopilotAssetView$
|
|
566
|
+
];
|
|
501
567
|
var CopilotContextEmailList = 64 | 0;
|
|
502
568
|
var CopilotContextEntityList = [1, n1, _CCEL,
|
|
503
569
|
0, () => CopilotContextEntity$
|
|
@@ -526,10 +592,15 @@ var UsersList = [1, n4, _UL,
|
|
|
526
592
|
];
|
|
527
593
|
var CopilotContextAttributes = 128 | 0;
|
|
528
594
|
var ReactionCounts = 128 | 1;
|
|
595
|
+
export var CopilotClientAction$ = [4, n1, _CCA,
|
|
596
|
+
0,
|
|
597
|
+
[_kS, _sAm],
|
|
598
|
+
[() => KnowledgeSearchClientAction$, () => SmartActionClientAction$]
|
|
599
|
+
];
|
|
529
600
|
export var CopilotSessionEvent$ = [4, n1, _CSEo,
|
|
530
601
|
0,
|
|
531
|
-
[_lif, _tr, _int, _eva, _as, _ass, _rela, _ask],
|
|
532
|
-
[() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$, () => CopilotRelationshipEvent$, () => CopilotAskEvent$]
|
|
602
|
+
[_lif, _tr, _int, _eva, _as, _ass, _rela, _ask, _a],
|
|
603
|
+
[() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$, () => CopilotRelationshipEvent$, () => CopilotAskEvent$, () => CopilotActionEvent$]
|
|
533
604
|
];
|
|
534
605
|
export var CopilotTranscriptionData$ = [4, n1, _CTD,
|
|
535
606
|
0,
|
|
@@ -543,7 +614,7 @@ export var ActionElement$ = [4, n4, _AE,
|
|
|
543
614
|
];
|
|
544
615
|
export var ButtonHandler$ = [4, n4, _BH,
|
|
545
616
|
0,
|
|
546
|
-
[_lin, _rep,
|
|
617
|
+
[_lin, _rep, _a],
|
|
547
618
|
[() => ButtonLinkHandler$, () => ButtonReplyHandler$, () => ButtonActionHandler$]
|
|
548
619
|
];
|
|
549
620
|
export var Element$ = [4, n4, _E,
|
|
@@ -551,7 +622,10 @@ export var Element$ = [4, n4, _E,
|
|
|
551
622
|
[_tem, _act],
|
|
552
623
|
[() => MessageTemplateConfig$, () => ActionsElementsList]
|
|
553
624
|
];
|
|
554
|
-
export var
|
|
625
|
+
export var Act$ = [9, n1, _A,
|
|
626
|
+
{ [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/actions", 202] }, () => ActInput$, () => ActOutput$
|
|
627
|
+
];
|
|
628
|
+
export var Ask$ = [9, n1, _As,
|
|
555
629
|
{ [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/ask", 200] }, () => AskInput$, () => AskOutput$
|
|
556
630
|
];
|
|
557
631
|
export var Enrich$ = [9, n1, _En,
|
|
@@ -572,3 +646,6 @@ export var Resolve$ = [9, n1, _Re,
|
|
|
572
646
|
export var StreamSessionEvents$ = [9, n1, _SSE,
|
|
573
647
|
{ [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => StreamSessionEventsInput$, () => StreamSessionEventsOutput$
|
|
574
648
|
];
|
|
649
|
+
export var Track$ = [9, n1, _T,
|
|
650
|
+
{ [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/views", 202] }, () => TrackInput$, () => TrackOutput$
|
|
651
|
+
];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { type ActCommandInput, type ActCommandOutput } from "./commands/ActCommand";
|
|
2
3
|
import { type AskCommandInput, type AskCommandOutput } from "./commands/AskCommand";
|
|
3
4
|
import { type EnrichCommandInput, type EnrichCommandOutput } from "./commands/EnrichCommand";
|
|
4
5
|
import { type GetSessionEventsCommandInput, type GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
|
|
@@ -6,8 +7,15 @@ import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from ".
|
|
|
6
7
|
import { type OpenCommandInput, type OpenCommandOutput } from "./commands/OpenCommand";
|
|
7
8
|
import { type ResolveCommandInput, type ResolveCommandOutput } from "./commands/ResolveCommand";
|
|
8
9
|
import { type StreamSessionEventsCommandInput, type StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
|
|
10
|
+
import { type TrackCommandInput, type TrackCommandOutput } from "./commands/TrackCommand";
|
|
9
11
|
import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
|
|
10
12
|
export interface WilmaCopilotSessions {
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link ActCommand}
|
|
15
|
+
*/
|
|
16
|
+
act(args: ActCommandInput, options?: __HttpHandlerOptions): Promise<ActCommandOutput>;
|
|
17
|
+
act(args: ActCommandInput, cb: (err: any, data?: ActCommandOutput) => void): void;
|
|
18
|
+
act(args: ActCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ActCommandOutput) => void): void;
|
|
11
19
|
/**
|
|
12
20
|
* @see {@link AskCommand}
|
|
13
21
|
*/
|
|
@@ -52,6 +60,12 @@ export interface WilmaCopilotSessions {
|
|
|
52
60
|
streamSessionEvents(args: StreamSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<StreamSessionEventsCommandOutput>;
|
|
53
61
|
streamSessionEvents(args: StreamSessionEventsCommandInput, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
|
|
54
62
|
streamSessionEvents(args: StreamSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link TrackCommand}
|
|
65
|
+
*/
|
|
66
|
+
track(args: TrackCommandInput, options?: __HttpHandlerOptions): Promise<TrackCommandOutput>;
|
|
67
|
+
track(args: TrackCommandInput, cb: (err: any, data?: TrackCommandOutput) => void): void;
|
|
68
|
+
track(args: TrackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TrackCommandOutput) => void): void;
|
|
55
69
|
}
|
|
56
70
|
/**
|
|
57
71
|
* Runtime for Wilma Copilot: copilot assisting live conversations. A session is created
|
|
@@ -5,6 +5,7 @@ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/cor
|
|
|
5
5
|
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
6
6
|
import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
7
7
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import type { ActCommandInput, ActCommandOutput } from "./commands/ActCommand";
|
|
8
9
|
import type { AskCommandInput, AskCommandOutput } from "./commands/AskCommand";
|
|
9
10
|
import type { EnrichCommandInput, EnrichCommandOutput } from "./commands/EnrichCommand";
|
|
10
11
|
import type { GetSessionEventsCommandInput, GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
|
|
@@ -12,17 +13,18 @@ import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./comm
|
|
|
12
13
|
import type { OpenCommandInput, OpenCommandOutput } from "./commands/OpenCommand";
|
|
13
14
|
import type { ResolveCommandInput, ResolveCommandOutput } from "./commands/ResolveCommand";
|
|
14
15
|
import type { StreamSessionEventsCommandInput, StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
|
|
16
|
+
import type { TrackCommandInput, TrackCommandOutput } from "./commands/TrackCommand";
|
|
15
17
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
16
18
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
17
19
|
export { __Client };
|
|
18
20
|
/**
|
|
19
21
|
* @public
|
|
20
22
|
*/
|
|
21
|
-
export type ServiceInputTypes = AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput;
|
|
23
|
+
export type ServiceInputTypes = ActCommandInput | AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput | TrackCommandInput;
|
|
22
24
|
/**
|
|
23
25
|
* @public
|
|
24
26
|
*/
|
|
25
|
-
export type ServiceOutputTypes = AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput;
|
|
27
|
+
export type ServiceOutputTypes = ActCommandOutput | AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput | TrackCommandOutput;
|
|
26
28
|
/**
|
|
27
29
|
* @public
|
|
28
30
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ActInput, ActOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotSessionsClientResolvedConfig } from "../WilmaCopilotSessionsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ActCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ActCommandInput extends ActInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ActCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ActCommandOutput extends ActOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ActCommand_base: {
|
|
25
|
+
new (input: ActCommandInput): import("@smithy/core/client").CommandImpl<ActCommandInput, ActCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ActCommandInput): import("@smithy/core/client").CommandImpl<ActCommandInput, ActCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Submits one user interaction with copilot output — a knowledge-search suggestion click or a
|
|
31
|
+
* smart-action invocation. The action is appended to the session's input mailbox and processed
|
|
32
|
+
* asynchronously by the session worker; outcomes surface in the event log as `action` events and
|
|
33
|
+
* asset updates. Clicks also feed the per-resource usage statistics in the wilma-copilot config
|
|
34
|
+
* API.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { WilmaCopilotSessionsClient, ActCommand } from "@wildix/wilma-copilot-sessions-client"; // ES Modules import
|
|
39
|
+
* // const { WilmaCopilotSessionsClient, ActCommand } = require("@wildix/wilma-copilot-sessions-client"); // CommonJS import
|
|
40
|
+
* // import type { WilmaCopilotSessionsClientConfig } from "@wildix/wilma-copilot-sessions-client";
|
|
41
|
+
* const config = {}; // type is WilmaCopilotSessionsClientConfig
|
|
42
|
+
* const client = new WilmaCopilotSessionsClient(config);
|
|
43
|
+
* const input = { // ActInput
|
|
44
|
+
* sessionId: "STRING_VALUE", // required
|
|
45
|
+
* company: "STRING_VALUE",
|
|
46
|
+
* action: { // CopilotClientAction Union: only one key present
|
|
47
|
+
* knowledgeSearch: { // KnowledgeSearchClientAction
|
|
48
|
+
* questionId: "STRING_VALUE", // required
|
|
49
|
+
* question: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* smartAction: { // SmartActionClientAction
|
|
52
|
+
* assetId: "STRING_VALUE", // required
|
|
53
|
+
* actionId: "STRING_VALUE", // required
|
|
54
|
+
* variables: "DOCUMENT_VALUE",
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* };
|
|
58
|
+
* const command = new ActCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // ActOutput
|
|
61
|
+
* // accepted: true || false, // required
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ActCommandInput - {@link ActCommandInput}
|
|
67
|
+
* @returns {@link ActCommandOutput}
|
|
68
|
+
* @see {@link ActCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ActCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link WilmaCopilotSessionsClientResolvedConfig | config} for WilmaCopilotSessionsClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link NotFoundException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link WilmaCopilotSessionsServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from WilmaCopilotSessions service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class ActCommand extends ActCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: ActInput;
|
|
89
|
+
output: ActOutput;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: ActCommandInput;
|
|
93
|
+
output: ActCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -354,6 +354,16 @@ declare const GetSessionEventsCommand_base: {
|
|
|
354
354
|
* // wilmaSessionId: "STRING_VALUE", // required
|
|
355
355
|
* // accessToken: "STRING_VALUE",
|
|
356
356
|
* // },
|
|
357
|
+
* // action: { // CopilotActionEvent
|
|
358
|
+
* // index: Number("int"), // required
|
|
359
|
+
* // timestamp: "STRING_VALUE", // required
|
|
360
|
+
* // id: "STRING_VALUE", // required
|
|
361
|
+
* // kind: "STRING_VALUE", // required
|
|
362
|
+
* // status: "launched" || "completed" || "failed", // required
|
|
363
|
+
* // userId: "STRING_VALUE",
|
|
364
|
+
* // result: "DOCUMENT_VALUE",
|
|
365
|
+
* // error: "STRING_VALUE",
|
|
366
|
+
* // },
|
|
357
367
|
* // },
|
|
358
368
|
* // ],
|
|
359
369
|
* // nextStartIndex: Number("int"),
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { TrackInput, TrackOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotSessionsClientResolvedConfig } from "../WilmaCopilotSessionsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link TrackCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TrackCommandInput extends TrackInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TrackCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TrackCommandOutput extends TrackOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const TrackCommand_base: {
|
|
25
|
+
new (input: TrackCommandInput): import("@smithy/core/client").CommandImpl<TrackCommandInput, TrackCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: TrackCommandInput): import("@smithy/core/client").CommandImpl<TrackCommandInput, TrackCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Reports which copilot assets the user actually saw rendered (impressions). Copilot may emit
|
|
31
|
+
* assets nobody sees — the panel can be closed — so emitted counts alone overstate reach. Views
|
|
32
|
+
* reported here feed the per-resource emitted / seen / clicked statistics administrators read
|
|
33
|
+
* from the wilma-copilot config API. Batch-friendly: report visible assets when they render,
|
|
34
|
+
* deduplicated per session by the server.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { WilmaCopilotSessionsClient, TrackCommand } from "@wildix/wilma-copilot-sessions-client"; // ES Modules import
|
|
39
|
+
* // const { WilmaCopilotSessionsClient, TrackCommand } = require("@wildix/wilma-copilot-sessions-client"); // CommonJS import
|
|
40
|
+
* // import type { WilmaCopilotSessionsClientConfig } from "@wildix/wilma-copilot-sessions-client";
|
|
41
|
+
* const config = {}; // type is WilmaCopilotSessionsClientConfig
|
|
42
|
+
* const client = new WilmaCopilotSessionsClient(config);
|
|
43
|
+
* const input = { // TrackInput
|
|
44
|
+
* sessionId: "STRING_VALUE", // required
|
|
45
|
+
* company: "STRING_VALUE",
|
|
46
|
+
* views: [ // CopilotAssetViews // required
|
|
47
|
+
* { // CopilotAssetView
|
|
48
|
+
* assetId: "STRING_VALUE", // required
|
|
49
|
+
* at: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* };
|
|
53
|
+
* const command = new TrackCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // TrackOutput
|
|
56
|
+
* // accepted: true || false, // required
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param TrackCommandInput - {@link TrackCommandInput}
|
|
62
|
+
* @returns {@link TrackCommandOutput}
|
|
63
|
+
* @see {@link TrackCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link TrackCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link WilmaCopilotSessionsClientResolvedConfig | config} for WilmaCopilotSessionsClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link NotFoundException} (client fault)
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link WilmaCopilotSessionsServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from WilmaCopilotSessions service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class TrackCommand extends TrackCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: TrackInput;
|
|
84
|
+
output: TrackOutput;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: TrackCommandInput;
|
|
88
|
+
output: TrackCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ActCommand";
|
|
1
2
|
export * from "./AskCommand";
|
|
2
3
|
export * from "./EnrichCommand";
|
|
3
4
|
export * from "./GetSessionEventsCommand";
|
|
@@ -5,3 +6,4 @@ export * from "./ListSessionsCommand";
|
|
|
5
6
|
export * from "./OpenCommand";
|
|
6
7
|
export * from "./ResolveCommand";
|
|
7
8
|
export * from "./StreamSessionEventsCommand";
|
|
9
|
+
export * from "./TrackCommand";
|
|
@@ -247,6 +247,22 @@ export declare const AssetSeverity: {
|
|
|
247
247
|
* @public
|
|
248
248
|
*/
|
|
249
249
|
export type AssetSeverity = (typeof AssetSeverity)[keyof typeof AssetSeverity];
|
|
250
|
+
/**
|
|
251
|
+
* @public
|
|
252
|
+
* @enum
|
|
253
|
+
*/
|
|
254
|
+
export declare const CopilotActionStatus: {
|
|
255
|
+
readonly COMPLETED: "completed";
|
|
256
|
+
readonly FAILED: "failed";
|
|
257
|
+
/**
|
|
258
|
+
* The action was accepted and its execution started.
|
|
259
|
+
*/
|
|
260
|
+
readonly LAUNCHED: "launched";
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* @public
|
|
264
|
+
*/
|
|
265
|
+
export type CopilotActionStatus = (typeof CopilotActionStatus)[keyof typeof CopilotActionStatus];
|
|
250
266
|
/**
|
|
251
267
|
* @public
|
|
252
268
|
* @enum
|