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

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.
@@ -1,19 +1,26 @@
1
- const _A = "Ask";
1
+ const _A = "Act";
2
2
  const _AE = "ActionElement";
3
3
  const _AEL = "ActionsElementsList";
4
- const _AI = "AskInput";
5
- const _AO = "AskOutput";
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 = "CopilotAskEvent";
12
- const _CAEo = "CopilotAssetEvent";
13
- const _CAEop = "CopilotAssistantEvent";
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,10 @@ const _FE = "ForbiddenException";
44
51
  const _GSE = "GetSessionEvents";
45
52
  const _GSEI = "GetSessionEventsInput";
46
53
  const _GSEO = "GetSessionEventsOutput";
54
+ const _KSCA = "KnowledgeSearchClientAction";
55
+ const _LRS = "ListRelationshipSessions";
56
+ const _LRSI = "ListRelationshipSessionsInput";
57
+ const _LRSO = "ListRelationshipSessionsOutput";
47
58
  const _LS = "ListSessions";
48
59
  const _LSI = "ListSessionsInput";
49
60
  const _LSO = "ListSessionsOutput";
@@ -64,22 +75,30 @@ const _RI = "ResolveInput";
64
75
  const _RL = "ReactionList";
65
76
  const _RO = "ResolveOutput";
66
77
  const _Re = "Resolve";
78
+ const _SACA = "SmartActionClientAction";
67
79
  const _SSE = "StreamSessionEvents";
68
80
  const _SSEI = "StreamSessionEventsInput";
69
81
  const _SSEO = "StreamSessionEventsOutput";
82
+ const _T = "Track";
83
+ const _TI = "TrackInput";
84
+ const _TO = "TrackOutput";
70
85
  const _TP = "TemplateParameter";
71
86
  const _TWP = "TemplateWithParameters";
72
87
  const _U = "User";
73
88
  const _UL = "UsersList";
74
89
  const _VE = "ValidationException";
75
- const _a = "attributes";
90
+ const _a = "action";
91
+ const _aI = "assetId";
92
+ const _aIc = "actionId";
76
93
  const _aT = "accessToken";
77
- const _ac = "action";
94
+ const _ac = "accepted";
78
95
  const _act = "actions";
79
96
  const _as = "asset";
80
97
  const _ask = "ask";
81
98
  const _ass = "assistant";
82
- const _at = "attachments";
99
+ const _at = "at";
100
+ const _att = "attributes";
101
+ const _atta = "attachments";
83
102
  const _b = "bot";
84
103
  const _bu = "button";
85
104
  const _c = "client";
@@ -135,6 +154,7 @@ const _in = "index";
135
154
  const _int = "intent";
136
155
  const _j = "jid";
137
156
  const _k = "kind";
157
+ const _kS = "knowledgeSearch";
138
158
  const _l = "licenses";
139
159
  const _lAA = "lastActivityAt";
140
160
  const _lR = "latestReactions";
@@ -168,16 +188,20 @@ const _pb = "pbx";
168
188
  const _ph = "phone";
169
189
  const _pho = "phones";
170
190
  const _pi = "picture";
171
- const _q = "quote";
191
+ const _q = "question";
192
+ const _qI = "questionId";
193
+ const _qu = "quote";
172
194
  const _r = "role";
173
195
  const _rC = "reactionCounts";
174
196
  const _rI = "relationshipId";
175
- const _re = "reason";
197
+ const _re = "result";
198
+ const _rea = "reason";
176
199
  const _rel = "related";
177
200
  const _rela = "relationship";
178
201
  const _rep = "reply";
179
202
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
180
203
  const _sA = "startedAt";
204
+ const _sAm = "smartAction";
181
205
  const _sCI = "sipCallId";
182
206
  const _sI = "sessionId";
183
207
  const _sIt = "startIndex";
@@ -191,8 +215,8 @@ const _sm = "sms";
191
215
  const _sp = "speaker";
192
216
  const _st = "streaming";
193
217
  const _sta = "start";
194
- const _stat = "state";
195
- const _statu = "status";
218
+ const _stat = "status";
219
+ const _state = "state";
196
220
  const _sti = "sticky";
197
221
  const _sty = "styling";
198
222
  const _t = "time";
@@ -213,7 +237,9 @@ const _uE = "userExtension";
213
237
  const _uI = "userId";
214
238
  const _ur = "url";
215
239
  const _v = "value";
216
- const _va = "variant";
240
+ const _va = "variables";
241
+ const _var = "variant";
242
+ const _vi = "views";
217
243
  const _w = "whatsapp";
218
244
  const _wS = "whatsappStatus";
219
245
  const _wSI = "wilmaSessionId";
@@ -299,29 +325,49 @@ export var ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
299
325
  [_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
300
326
  [0, 1, 0, 0, 2, 1, 1, 0, 0], 7
301
327
  ];
302
- export var AskInput$ = [3, n1, _AI,
328
+ export var ActInput$ = [3, n1, _AI,
329
+ 0,
330
+ [_sI, _a, _co],
331
+ [[0, 1], () => CopilotClientAction$, [0, { [_hQ]: _co }]], 2
332
+ ];
333
+ export var ActOutput$ = [3, n1, _AO,
334
+ 0,
335
+ [_ac],
336
+ [2], 1
337
+ ];
338
+ export var AskInput$ = [3, n1, _AIs,
303
339
  0,
304
340
  [_sI, _wSI, _co, _aT],
305
341
  [[0, 1], 0, 0, 0], 2
306
342
  ];
307
- export var AskOutput$ = [3, n1, _AO,
343
+ export var AskOutput$ = [3, n1, _AOs,
308
344
  0,
309
345
  [_in],
310
346
  [1], 1
311
347
  ];
312
- export var CopilotAskEvent$ = [3, n1, _CAE,
348
+ export var CopilotActionEvent$ = [3, n1, _CAE,
349
+ 0,
350
+ [_in, _ti, _i, _k, _stat, _uI, _re, _e],
351
+ [1, 0, 0, 0, 0, 0, 15, 0], 5
352
+ ];
353
+ export var CopilotAskEvent$ = [3, n1, _CAEo,
313
354
  0,
314
355
  [_in, _ti, _uI, _wSI, _aT],
315
356
  [1, 0, 0, 0, 0], 4
316
357
  ];
317
- export var CopilotAssetEvent$ = [3, n1, _CAEo,
358
+ export var CopilotAssetEvent$ = [3, n1, _CAEop,
318
359
  0,
319
- [_in, _ti, _i, _stat, _ic, _sty, _sti, _cont],
360
+ [_in, _ti, _i, _state, _ic, _sty, _sti, _cont],
320
361
  [1, 0, 0, 15, 0, 0, 2, 0], 4
321
362
  ];
322
- export var CopilotAssistantEvent$ = [3, n1, _CAEop,
363
+ export var CopilotAssetView$ = [3, n1, _CAV,
364
+ 0,
365
+ [_aI, _at],
366
+ [0, 0], 1
367
+ ];
368
+ export var CopilotAssistantEvent$ = [3, n1, _CAEopi,
323
369
  0,
324
- [_in, _ti, _i, _stat],
370
+ [_in, _ti, _i, _state],
325
371
  [1, 0, 0, 15], 4
326
372
  ];
327
373
  export var CopilotContextConversation$ = [3, n1, _CCC,
@@ -336,27 +382,27 @@ export var CopilotContextEntity$ = [3, n1, _CCE,
336
382
  ];
337
383
  export var CopilotContextLookup$ = [3, n1, _CCL,
338
384
  0,
339
- [_ema, _pho, _ent, _a],
385
+ [_ema, _pho, _ent, _att],
340
386
  [64 | 0, 64 | 0, () => CopilotContextEntityList, 128 | 0]
341
387
  ];
342
388
  export var CopilotEvaluationEvent$ = [3, n1, _CEE,
343
389
  0,
344
- [_in, _ti, _i, _stat],
390
+ [_in, _ti, _i, _state],
345
391
  [1, 0, 0, 15], 4
346
392
  ];
347
393
  export var CopilotIngestedSession$ = [3, n1, _CIS,
348
394
  0,
349
- [_i, _stat],
395
+ [_i, _state],
350
396
  [0, 0], 2
351
397
  ];
352
398
  export var CopilotIntentEvent$ = [3, n1, _CIE,
353
399
  0,
354
- [_in, _ti, _i, _stat],
400
+ [_in, _ti, _i, _state],
355
401
  [1, 0, 0, 15], 4
356
402
  ];
357
403
  export var CopilotLifecycleEvent$ = [3, n1, _CLE,
358
404
  0,
359
- [_in, _ti, _sI, _statu, _re],
405
+ [_in, _ti, _sI, _stat, _rea],
360
406
  [1, 0, 0, 0, 0], 4
361
407
  ];
362
408
  export var CopilotRelationshipEvent$ = [3, n1, _CRE,
@@ -366,7 +412,7 @@ export var CopilotRelationshipEvent$ = [3, n1, _CRE,
366
412
  ];
367
413
  export var CopilotSessionSummary$ = [3, n1, _CSS,
368
414
  0,
369
- [_i, _statu, _conv, _sA, _lAA],
415
+ [_i, _stat, _conv, _sA, _lAA],
370
416
  [0, 0, () => CopilotContextConversation$, 0, 0], 3
371
417
  ];
372
418
  export var CopilotTranscriptionEvent$ = [3, n1, _CTE,
@@ -394,6 +440,21 @@ export var GetSessionEventsOutput$ = [3, n1, _GSEO,
394
440
  [_eve, _nSI],
395
441
  [() => CopilotSessionEvents, 1], 1
396
442
  ];
443
+ export var KnowledgeSearchClientAction$ = [3, n1, _KSCA,
444
+ 0,
445
+ [_qI, _q],
446
+ [0, 0], 1
447
+ ];
448
+ export var ListRelationshipSessionsInput$ = [3, n1, _LRSI,
449
+ 0,
450
+ [_rI, _co, _lim, _cu],
451
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _lim }], [0, { [_hQ]: _cu }]], 1
452
+ ];
453
+ export var ListRelationshipSessionsOutput$ = [3, n1, _LRSO,
454
+ 0,
455
+ [_ses, _nC],
456
+ [() => CopilotSessionSummaryList, 0], 1
457
+ ];
397
458
  export var ListSessionsInput$ = [3, n1, _LSI,
398
459
  0,
399
460
  [_co, _u, _lim, _cu],
@@ -424,6 +485,11 @@ export var ResolveOutput$ = [3, n1, _RO,
424
485
  [_ses, _rI],
425
486
  [() => CopilotSessionSummaryList, 0], 1
426
487
  ];
488
+ export var SmartActionClientAction$ = [3, n1, _SACA,
489
+ 0,
490
+ [_aI, _aIc, _va],
491
+ [0, 0, 15], 2
492
+ ];
427
493
  export var StreamSessionEventsInput$ = [3, n1, _SSEI,
428
494
  0,
429
495
  [_sI, _co, _sIt],
@@ -434,6 +500,16 @@ export var StreamSessionEventsOutput$ = [3, n1, _SSEO,
434
500
  [_eve, _cT],
435
501
  [[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
436
502
  ];
503
+ export var TrackInput$ = [3, n1, _TI,
504
+ 0,
505
+ [_sI, _vi, _co],
506
+ [[0, 1], () => CopilotAssetViews, [0, { [_hQ]: _co }]], 2
507
+ ];
508
+ export var TrackOutput$ = [3, n1, _TO,
509
+ 0,
510
+ [_ac],
511
+ [2], 1
512
+ ];
437
513
  export var ButtonActionHandler$ = [3, n4, _BAH,
438
514
  0,
439
515
  [_i],
@@ -441,7 +517,7 @@ export var ButtonActionHandler$ = [3, n4, _BAH,
441
517
  ];
442
518
  export var ButtonElement$ = [3, n4, _BE,
443
519
  0,
444
- [_te, _h, _va, _di],
520
+ [_te, _h, _var, _di],
445
521
  [0, () => ButtonHandler$, 0, 2], 2
446
522
  ];
447
523
  export var ButtonLinkHandler$ = [3, n4, _BLH,
@@ -456,7 +532,7 @@ export var ButtonReplyHandler$ = [3, n4, _BRH,
456
532
  ];
457
533
  export var Message$ = [3, n4, _M,
458
534
  0,
459
- [_ty, _mI, _cIh, _u, _cA, _te, _el, _at, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
535
+ [_ty, _mI, _cIh, _u, _cA, _te, _el, _atta, _qu, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
460
536
  [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
537
  ];
462
538
  export var MessageAttachment$ = [3, n4, _MA,
@@ -476,7 +552,7 @@ export var MessageGiphy$ = [3, n4, _MG,
476
552
  ];
477
553
  export var MessageQuote$ = [3, n4, _MQ,
478
554
  0,
479
- [_mI, _cIh, _u, _cA, _te, _at, _f, _me, _g, _uAp],
555
+ [_mI, _cIh, _u, _cA, _te, _atta, _f, _me, _g, _uAp],
480
556
  [0, 0, () => User$, 0, 0, () => MessageAttachmentList, () => MessageForward$, () => UsersList, () => MessageGiphy$, 0], 4
481
557
  ];
482
558
  export var MessageTemplateConfig$ = [3, n4, _MTC,
@@ -498,6 +574,9 @@ var ListTemplateParameter = [1, n2, _LTP,
498
574
  0, () => TemplateParameter$
499
575
  ];
500
576
  var LicensesList = 64 | 0;
577
+ var CopilotAssetViews = [1, n1, _CAVo,
578
+ 0, () => CopilotAssetView$
579
+ ];
501
580
  var CopilotContextEmailList = 64 | 0;
502
581
  var CopilotContextEntityList = [1, n1, _CCEL,
503
582
  0, () => CopilotContextEntity$
@@ -526,10 +605,15 @@ var UsersList = [1, n4, _UL,
526
605
  ];
527
606
  var CopilotContextAttributes = 128 | 0;
528
607
  var ReactionCounts = 128 | 1;
608
+ export var CopilotClientAction$ = [4, n1, _CCA,
609
+ 0,
610
+ [_kS, _sAm],
611
+ [() => KnowledgeSearchClientAction$, () => SmartActionClientAction$]
612
+ ];
529
613
  export var CopilotSessionEvent$ = [4, n1, _CSEo,
530
614
  0,
531
- [_lif, _tr, _int, _eva, _as, _ass, _rela, _ask],
532
- [() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$, () => CopilotRelationshipEvent$, () => CopilotAskEvent$]
615
+ [_lif, _tr, _int, _eva, _as, _ass, _rela, _ask, _a],
616
+ [() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$, () => CopilotRelationshipEvent$, () => CopilotAskEvent$, () => CopilotActionEvent$]
533
617
  ];
534
618
  export var CopilotTranscriptionData$ = [4, n1, _CTD,
535
619
  0,
@@ -543,7 +627,7 @@ export var ActionElement$ = [4, n4, _AE,
543
627
  ];
544
628
  export var ButtonHandler$ = [4, n4, _BH,
545
629
  0,
546
- [_lin, _rep, _ac],
630
+ [_lin, _rep, _a],
547
631
  [() => ButtonLinkHandler$, () => ButtonReplyHandler$, () => ButtonActionHandler$]
548
632
  ];
549
633
  export var Element$ = [4, n4, _E,
@@ -551,7 +635,10 @@ export var Element$ = [4, n4, _E,
551
635
  [_tem, _act],
552
636
  [() => MessageTemplateConfig$, () => ActionsElementsList]
553
637
  ];
554
- export var Ask$ = [9, n1, _A,
638
+ export var Act$ = [9, n1, _A,
639
+ { [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/actions", 202] }, () => ActInput$, () => ActOutput$
640
+ ];
641
+ export var Ask$ = [9, n1, _As,
555
642
  { [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/ask", 200] }, () => AskInput$, () => AskOutput$
556
643
  ];
557
644
  export var Enrich$ = [9, n1, _En,
@@ -560,6 +647,9 @@ export var Enrich$ = [9, n1, _En,
560
647
  export var GetSessionEvents$ = [9, n1, _GSE,
561
648
  { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => GetSessionEventsInput$, () => GetSessionEventsOutput$
562
649
  ];
650
+ export var ListRelationshipSessions$ = [9, n1, _LRS,
651
+ { [_ht]: ["GET", "/v2/copilot/relationships/{relationshipId}/sessions", 200] }, () => ListRelationshipSessionsInput$, () => ListRelationshipSessionsOutput$
652
+ ];
563
653
  export var ListSessions$ = [9, n1, _LS,
564
654
  { [_ht]: ["GET", "/v2/copilot/sessions", 200] }, () => ListSessionsInput$, () => ListSessionsOutput$
565
655
  ];
@@ -572,3 +662,6 @@ export var Resolve$ = [9, n1, _Re,
572
662
  export var StreamSessionEvents$ = [9, n1, _SSE,
573
663
  { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => StreamSessionEventsInput$, () => StreamSessionEventsOutput$
574
664
  ];
665
+ export var Track$ = [9, n1, _T,
666
+ { [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/views", 202] }, () => TrackInput$, () => TrackOutput$
667
+ ];
@@ -1,13 +1,22 @@
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
+ import { type ListRelationshipSessionsCommandInput, type ListRelationshipSessionsCommandOutput } from "./commands/ListRelationshipSessionsCommand";
5
7
  import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
6
8
  import { type OpenCommandInput, type OpenCommandOutput } from "./commands/OpenCommand";
7
9
  import { type ResolveCommandInput, type ResolveCommandOutput } from "./commands/ResolveCommand";
8
10
  import { type StreamSessionEventsCommandInput, type StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
11
+ import { type TrackCommandInput, type TrackCommandOutput } from "./commands/TrackCommand";
9
12
  import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
10
13
  export interface WilmaCopilotSessions {
14
+ /**
15
+ * @see {@link ActCommand}
16
+ */
17
+ act(args: ActCommandInput, options?: __HttpHandlerOptions): Promise<ActCommandOutput>;
18
+ act(args: ActCommandInput, cb: (err: any, data?: ActCommandOutput) => void): void;
19
+ act(args: ActCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ActCommandOutput) => void): void;
11
20
  /**
12
21
  * @see {@link AskCommand}
13
22
  */
@@ -26,6 +35,12 @@ export interface WilmaCopilotSessions {
26
35
  getSessionEvents(args: GetSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionEventsCommandOutput>;
27
36
  getSessionEvents(args: GetSessionEventsCommandInput, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
28
37
  getSessionEvents(args: GetSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link ListRelationshipSessionsCommand}
40
+ */
41
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRelationshipSessionsCommandOutput>;
42
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, cb: (err: any, data?: ListRelationshipSessionsCommandOutput) => void): void;
43
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRelationshipSessionsCommandOutput) => void): void;
29
44
  /**
30
45
  * @see {@link ListSessionsCommand}
31
46
  */
@@ -52,6 +67,12 @@ export interface WilmaCopilotSessions {
52
67
  streamSessionEvents(args: StreamSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<StreamSessionEventsCommandOutput>;
53
68
  streamSessionEvents(args: StreamSessionEventsCommandInput, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
54
69
  streamSessionEvents(args: StreamSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link TrackCommand}
72
+ */
73
+ track(args: TrackCommandInput, options?: __HttpHandlerOptions): Promise<TrackCommandOutput>;
74
+ track(args: TrackCommandInput, cb: (err: any, data?: TrackCommandOutput) => void): void;
75
+ track(args: TrackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TrackCommandOutput) => void): void;
55
76
  }
56
77
  /**
57
78
  * Runtime for Wilma Copilot: copilot assisting live conversations. A session is created
@@ -5,24 +5,27 @@ 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
+ import type { ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput } from "./commands/ListRelationshipSessionsCommand";
11
13
  import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
12
14
  import type { OpenCommandInput, OpenCommandOutput } from "./commands/OpenCommand";
13
15
  import type { ResolveCommandInput, ResolveCommandOutput } from "./commands/ResolveCommand";
14
16
  import type { StreamSessionEventsCommandInput, StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
17
+ import type { TrackCommandInput, TrackCommandOutput } from "./commands/TrackCommand";
15
18
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
16
19
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
17
20
  export { __Client };
18
21
  /**
19
22
  * @public
20
23
  */
21
- export type ServiceInputTypes = AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput;
24
+ export type ServiceInputTypes = ActCommandInput | AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListRelationshipSessionsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput | TrackCommandInput;
22
25
  /**
23
26
  * @public
24
27
  */
25
- export type ServiceOutputTypes = AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput;
28
+ export type ServiceOutputTypes = ActCommandOutput | AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListRelationshipSessionsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput | TrackCommandOutput;
26
29
  /**
27
30
  * @public
28
31
  */
@@ -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,98 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListRelationshipSessionsInput, ListRelationshipSessionsOutput } 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 ListRelationshipSessionsCommand}.
14
+ */
15
+ export interface ListRelationshipSessionsCommandInput extends ListRelationshipSessionsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRelationshipSessionsCommand}.
21
+ */
22
+ export interface ListRelationshipSessionsCommandOutput extends ListRelationshipSessionsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListRelationshipSessionsCommand_base: {
25
+ new (input: ListRelationshipSessionsCommandInput): import("@smithy/core/client").CommandImpl<ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListRelationshipSessionsCommandInput): import("@smithy/core/client").CommandImpl<ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists the copilot sessions associated with a relationship, most recent first — the paginated,
31
+ * id-keyed form of the `related` / `sessions` lists Open, Enrich and Resolve return inline. Use it
32
+ * to render and page a customer's cross-channel history (calls, chats, conferences and the `app`
33
+ * session) in the copilot header, and to refresh after a `relationship` stream event announces a
34
+ * new session on the relationship. Sessions are company-owned and shared within the tenant; an
35
+ * unknown relationship in scope returns an empty list rather than an error.
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { WilmaCopilotSessionsClient, ListRelationshipSessionsCommand } from "@wildix/wilma-copilot-sessions-client"; // ES Modules import
40
+ * // const { WilmaCopilotSessionsClient, ListRelationshipSessionsCommand } = require("@wildix/wilma-copilot-sessions-client"); // CommonJS import
41
+ * // import type { WilmaCopilotSessionsClientConfig } from "@wildix/wilma-copilot-sessions-client";
42
+ * const config = {}; // type is WilmaCopilotSessionsClientConfig
43
+ * const client = new WilmaCopilotSessionsClient(config);
44
+ * const input = { // ListRelationshipSessionsInput
45
+ * relationshipId: "STRING_VALUE", // required
46
+ * company: "STRING_VALUE",
47
+ * limit: Number("int"),
48
+ * cursor: "STRING_VALUE",
49
+ * };
50
+ * const command = new ListRelationshipSessionsCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // ListRelationshipSessionsOutput
53
+ * // sessions: [ // CopilotSessionSummaryList // required
54
+ * // { // CopilotSessionSummary
55
+ * // id: "STRING_VALUE", // required
56
+ * // status: "active" || "idle" || "archived" || "failed", // required
57
+ * // conversation: { // CopilotContextConversation
58
+ * // id: "STRING_VALUE", // required
59
+ * // kind: "call" || "chat" || "conference" || "app", // required
60
+ * // },
61
+ * // startedAt: "STRING_VALUE",
62
+ * // lastActivityAt: "STRING_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // nextCursor: "STRING_VALUE",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param ListRelationshipSessionsCommandInput - {@link ListRelationshipSessionsCommandInput}
71
+ * @returns {@link ListRelationshipSessionsCommandOutput}
72
+ * @see {@link ListRelationshipSessionsCommandInput} for command's `input` shape.
73
+ * @see {@link ListRelationshipSessionsCommandOutput} for command's `response` shape.
74
+ * @see {@link WilmaCopilotSessionsClientResolvedConfig | config} for WilmaCopilotSessionsClient's `config` shape.
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ *
78
+ * @throws {@link ForbiddenException} (client fault)
79
+ *
80
+ * @throws {@link WilmaCopilotSessionsServiceException}
81
+ * <p>Base exception class for all service exceptions from WilmaCopilotSessions service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class ListRelationshipSessionsCommand extends ListRelationshipSessionsCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: ListRelationshipSessionsInput;
91
+ output: ListRelationshipSessionsOutput;
92
+ };
93
+ sdk: {
94
+ input: ListRelationshipSessionsCommandInput;
95
+ output: ListRelationshipSessionsCommandOutput;
96
+ };
97
+ };
98
+ }