@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.
- package/dist-cjs/WilmaCopilotSessions.js +14 -4
- package/dist-cjs/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +6 -6
- package/dist-cjs/commands/EnrichCommand.js +20 -0
- package/dist-cjs/commands/GetSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/ListSessionsCommand.js +20 -0
- package/dist-cjs/commands/OpenCommand.js +20 -0
- package/dist-cjs/commands/ResolveCommand.js +20 -0
- package/dist-cjs/commands/{StreamCopilotSessionEventsCommand.js → StreamSessionEventsCommand.js} +6 -6
- package/dist-cjs/commands/index.js +7 -2
- package/dist-cjs/models/enums.js +22 -3
- package/dist-cjs/schemas/schemas_0.js +187 -33
- package/dist-es/WilmaCopilotSessions.js +14 -4
- package/dist-es/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +5 -5
- package/dist-es/commands/{StreamCopilotSessionEventsCommand.js → EnrichCommand.js} +5 -5
- package/dist-es/commands/GetSessionEventsCommand.js +16 -0
- package/dist-es/commands/ListSessionsCommand.js +16 -0
- package/dist-es/commands/OpenCommand.js +16 -0
- package/dist-es/commands/ResolveCommand.js +16 -0
- package/dist-es/commands/StreamSessionEventsCommand.js +16 -0
- package/dist-es/commands/index.js +7 -2
- package/dist-es/models/enums.js +21 -2
- package/dist-es/schemas/schemas_0.js +185 -32
- package/dist-types/WilmaCopilotSessions.d.ts +53 -10
- package/dist-types/WilmaCopilotSessionsClient.d.ts +15 -4
- package/dist-types/commands/AskCommand.d.ts +87 -0
- package/dist-types/commands/EnrichCommand.d.ts +116 -0
- package/dist-types/commands/{GetCopilotSessionEventsCommand.d.ts → GetSessionEventsCommand.d.ts} +38 -24
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/OpenCommand.d.ts +117 -0
- package/dist-types/commands/ResolveCommand.d.ts +110 -0
- package/dist-types/commands/{StreamCopilotSessionEventsCommand.d.ts → StreamSessionEventsCommand.d.ts} +23 -23
- package/dist-types/commands/index.d.ts +7 -2
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/enums.d.ts +79 -6
- package/dist-types/models/models_0.d.ts +369 -9
- package/dist-types/schemas/schemas_0.d.ts +28 -6
- package/package.json +1 -1
|
@@ -1,34 +1,52 @@
|
|
|
1
|
+
const _A = "Ask";
|
|
1
2
|
const _AE = "ActionElement";
|
|
2
3
|
const _AEL = "ActionsElementsList";
|
|
4
|
+
const _AI = "AskInput";
|
|
5
|
+
const _AO = "AskOutput";
|
|
3
6
|
const _BAH = "ButtonActionHandler";
|
|
4
7
|
const _BE = "ButtonElement";
|
|
5
8
|
const _BH = "ButtonHandler";
|
|
6
9
|
const _BLH = "ButtonLinkHandler";
|
|
7
10
|
const _BRH = "ButtonReplyHandler";
|
|
8
|
-
const _CAE = "
|
|
9
|
-
const _CAEo = "
|
|
11
|
+
const _CAE = "CopilotAskEvent";
|
|
12
|
+
const _CAEo = "CopilotAssetEvent";
|
|
13
|
+
const _CAEop = "CopilotAssistantEvent";
|
|
10
14
|
const _CALTE = "CallAnalyticsLiveTranscriptionEvent";
|
|
11
15
|
const _CALTEh = "ChatAnalyticsLiveTranscriptionEvent";
|
|
12
16
|
const _CALTEo = "ConferenceAnalyticsLiveTranscriptionEvent";
|
|
17
|
+
const _CCC = "CopilotContextConversation";
|
|
18
|
+
const _CCE = "CopilotContextEntity";
|
|
19
|
+
const _CCEL = "CopilotContextEntityList";
|
|
20
|
+
const _CCL = "CopilotContextLookup";
|
|
13
21
|
const _CEE = "CopilotEvaluationEvent";
|
|
14
22
|
const _CIE = "CopilotIntentEvent";
|
|
23
|
+
const _CIS = "CopilotIngestedSession";
|
|
15
24
|
const _CLE = "CopilotLifecycleEvent";
|
|
16
25
|
const _CP = "CallParticipant";
|
|
17
26
|
const _CPo = "ConferenceParticipant";
|
|
27
|
+
const _CRE = "CopilotRelationshipEvent";
|
|
18
28
|
const _CSE = "CopilotSessionEvents";
|
|
19
29
|
const _CSESB = "CopilotSessionEventStreamBody";
|
|
20
30
|
const _CSEo = "CopilotSessionEvent";
|
|
31
|
+
const _CSS = "CopilotSessionSummary";
|
|
32
|
+
const _CSSL = "CopilotSessionSummaryList";
|
|
21
33
|
const _CT = "Content-Type";
|
|
22
34
|
const _CTC = "CallTranscriptionChunk";
|
|
23
35
|
const _CTCo = "ConferenceTranscriptionChunk";
|
|
24
36
|
const _CTD = "CopilotTranscriptionData";
|
|
25
37
|
const _CTE = "CopilotTranscriptionEvent";
|
|
26
38
|
const _E = "Element";
|
|
39
|
+
const _EI = "EnrichInput";
|
|
27
40
|
const _EL = "ElementsList";
|
|
41
|
+
const _EO = "EnrichOutput";
|
|
42
|
+
const _En = "Enrich";
|
|
28
43
|
const _FE = "ForbiddenException";
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
44
|
+
const _GSE = "GetSessionEvents";
|
|
45
|
+
const _GSEI = "GetSessionEventsInput";
|
|
46
|
+
const _GSEO = "GetSessionEventsOutput";
|
|
47
|
+
const _LS = "ListSessions";
|
|
48
|
+
const _LSI = "ListSessionsInput";
|
|
49
|
+
const _LSO = "ListSessionsOutput";
|
|
32
50
|
const _LTP = "ListTemplateParameter";
|
|
33
51
|
const _M = "Message";
|
|
34
52
|
const _MA = "MessageAttachment";
|
|
@@ -38,21 +56,30 @@ const _MG = "MessageGiphy";
|
|
|
38
56
|
const _MQ = "MessageQuote";
|
|
39
57
|
const _MTC = "MessageTemplateConfig";
|
|
40
58
|
const _NFE = "NotFoundException";
|
|
59
|
+
const _O = "Open";
|
|
60
|
+
const _OI = "OpenInput";
|
|
61
|
+
const _OO = "OpenOutput";
|
|
41
62
|
const _R = "Reaction";
|
|
63
|
+
const _RI = "ResolveInput";
|
|
42
64
|
const _RL = "ReactionList";
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
65
|
+
const _RO = "ResolveOutput";
|
|
66
|
+
const _Re = "Resolve";
|
|
67
|
+
const _SSE = "StreamSessionEvents";
|
|
68
|
+
const _SSEI = "StreamSessionEventsInput";
|
|
69
|
+
const _SSEO = "StreamSessionEventsOutput";
|
|
46
70
|
const _TP = "TemplateParameter";
|
|
47
71
|
const _TWP = "TemplateWithParameters";
|
|
48
72
|
const _U = "User";
|
|
49
73
|
const _UL = "UsersList";
|
|
50
74
|
const _VE = "ValidationException";
|
|
51
|
-
const _a = "
|
|
75
|
+
const _a = "attributes";
|
|
76
|
+
const _aT = "accessToken";
|
|
52
77
|
const _ac = "action";
|
|
53
78
|
const _act = "actions";
|
|
54
79
|
const _as = "asset";
|
|
80
|
+
const _ask = "ask";
|
|
55
81
|
const _ass = "assistant";
|
|
82
|
+
const _at = "attachments";
|
|
56
83
|
const _b = "bot";
|
|
57
84
|
const _bu = "button";
|
|
58
85
|
const _c = "client";
|
|
@@ -69,6 +96,8 @@ const _co = "company";
|
|
|
69
96
|
const _con = "confidence";
|
|
70
97
|
const _conf = "conference";
|
|
71
98
|
const _cont = "content";
|
|
99
|
+
const _conv = "conversation";
|
|
100
|
+
const _cu = "cursor";
|
|
72
101
|
const _d = "department";
|
|
73
102
|
const _da = "data";
|
|
74
103
|
const _di = "disabled";
|
|
@@ -76,7 +105,9 @@ const _e = "error";
|
|
|
76
105
|
const _ed = "edit";
|
|
77
106
|
const _el = "elements";
|
|
78
107
|
const _em = "email";
|
|
108
|
+
const _ema = "emails";
|
|
79
109
|
const _en = "end";
|
|
110
|
+
const _ent = "entities";
|
|
80
111
|
const _ev = "event";
|
|
81
112
|
const _eva = "evaluation";
|
|
82
113
|
const _eve = "events";
|
|
@@ -103,7 +134,9 @@ const _ic = "icon";
|
|
|
103
134
|
const _in = "index";
|
|
104
135
|
const _int = "intent";
|
|
105
136
|
const _j = "jid";
|
|
137
|
+
const _k = "kind";
|
|
106
138
|
const _l = "licenses";
|
|
139
|
+
const _lAA = "lastActivityAt";
|
|
107
140
|
const _lR = "latestReactions";
|
|
108
141
|
const _la = "language";
|
|
109
142
|
const _li = "license";
|
|
@@ -112,12 +145,14 @@ const _lim = "limit";
|
|
|
112
145
|
const _lin = "link";
|
|
113
146
|
const _lo = "location";
|
|
114
147
|
const _loc = "locale";
|
|
148
|
+
const _loo = "lookup";
|
|
115
149
|
const _m = "message";
|
|
116
150
|
const _mI = "messageId";
|
|
117
151
|
const _ma = "markdown";
|
|
118
152
|
const _me = "mentions";
|
|
119
153
|
const _mi = "mime";
|
|
120
154
|
const _n = "name";
|
|
155
|
+
const _nC = "nextCursor";
|
|
121
156
|
const _nSI = "nextStartIndex";
|
|
122
157
|
const _p = "parameters";
|
|
123
158
|
const _pA = "publicAddress";
|
|
@@ -131,17 +166,25 @@ const _pUI = "pbxUserId";
|
|
|
131
166
|
const _pa = "participant";
|
|
132
167
|
const _pb = "pbx";
|
|
133
168
|
const _ph = "phone";
|
|
169
|
+
const _pho = "phones";
|
|
134
170
|
const _pi = "picture";
|
|
135
171
|
const _q = "quote";
|
|
136
172
|
const _r = "role";
|
|
137
173
|
const _rC = "reactionCounts";
|
|
138
|
-
const
|
|
174
|
+
const _rI = "relationshipId";
|
|
175
|
+
const _re = "reason";
|
|
176
|
+
const _rel = "related";
|
|
177
|
+
const _rela = "relationship";
|
|
178
|
+
const _rep = "reply";
|
|
139
179
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
|
|
180
|
+
const _sA = "startedAt";
|
|
140
181
|
const _sCI = "sipCallId";
|
|
141
182
|
const _sI = "sessionId";
|
|
142
183
|
const _sIt = "startIndex";
|
|
143
184
|
const _sS = "smsStatus";
|
|
144
185
|
const _se = "sentiment";
|
|
186
|
+
const _ses = "sessions";
|
|
187
|
+
const _sess = "session";
|
|
145
188
|
const _si = "silent";
|
|
146
189
|
const _siz = "size";
|
|
147
190
|
const _sm = "sms";
|
|
@@ -161,18 +204,19 @@ const _th = "thumbnail";
|
|
|
161
204
|
const _ti = "timestamp";
|
|
162
205
|
const _tr = "transcript";
|
|
163
206
|
const _ty = "type";
|
|
164
|
-
const _u = "
|
|
207
|
+
const _u = "user";
|
|
165
208
|
const _uA = "userAgent";
|
|
166
209
|
const _uAp = "updatedAt";
|
|
167
210
|
const _uD = "userDepartment";
|
|
168
211
|
const _uDs = "userDevice";
|
|
169
212
|
const _uE = "userExtension";
|
|
170
213
|
const _uI = "userId";
|
|
171
|
-
const
|
|
214
|
+
const _ur = "url";
|
|
172
215
|
const _v = "value";
|
|
173
216
|
const _va = "variant";
|
|
174
217
|
const _w = "whatsapp";
|
|
175
218
|
const _wS = "whatsappStatus";
|
|
219
|
+
const _wSI = "wilmaSessionId";
|
|
176
220
|
const _wi = "width";
|
|
177
221
|
const _xI = "xbsId";
|
|
178
222
|
const n0 = "smithy.framework";
|
|
@@ -255,21 +299,56 @@ export var ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
|
|
|
255
299
|
[_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
|
|
256
300
|
[0, 1, 0, 0, 2, 1, 1, 0, 0], 7
|
|
257
301
|
];
|
|
258
|
-
export var
|
|
302
|
+
export var AskInput$ = [3, n1, _AI,
|
|
303
|
+
0,
|
|
304
|
+
[_sI, _wSI, _co, _aT],
|
|
305
|
+
[[0, 1], 0, 0, 0], 2
|
|
306
|
+
];
|
|
307
|
+
export var AskOutput$ = [3, n1, _AO,
|
|
308
|
+
0,
|
|
309
|
+
[_in],
|
|
310
|
+
[1], 1
|
|
311
|
+
];
|
|
312
|
+
export var CopilotAskEvent$ = [3, n1, _CAE,
|
|
313
|
+
0,
|
|
314
|
+
[_in, _ti, _uI, _wSI, _aT],
|
|
315
|
+
[1, 0, 0, 0, 0], 4
|
|
316
|
+
];
|
|
317
|
+
export var CopilotAssetEvent$ = [3, n1, _CAEo,
|
|
259
318
|
0,
|
|
260
319
|
[_in, _ti, _i, _stat, _ic, _sty, _sti, _cont],
|
|
261
320
|
[1, 0, 0, 15, 0, 0, 2, 0], 4
|
|
262
321
|
];
|
|
263
|
-
export var CopilotAssistantEvent$ = [3, n1,
|
|
322
|
+
export var CopilotAssistantEvent$ = [3, n1, _CAEop,
|
|
264
323
|
0,
|
|
265
324
|
[_in, _ti, _i, _stat],
|
|
266
325
|
[1, 0, 0, 15], 4
|
|
267
326
|
];
|
|
327
|
+
export var CopilotContextConversation$ = [3, n1, _CCC,
|
|
328
|
+
0,
|
|
329
|
+
[_i, _k],
|
|
330
|
+
[0, 0], 2
|
|
331
|
+
];
|
|
332
|
+
export var CopilotContextEntity$ = [3, n1, _CCE,
|
|
333
|
+
0,
|
|
334
|
+
[_i, _ty],
|
|
335
|
+
[0, 0], 2
|
|
336
|
+
];
|
|
337
|
+
export var CopilotContextLookup$ = [3, n1, _CCL,
|
|
338
|
+
0,
|
|
339
|
+
[_ema, _pho, _ent, _a],
|
|
340
|
+
[64 | 0, 64 | 0, () => CopilotContextEntityList, 128 | 0]
|
|
341
|
+
];
|
|
268
342
|
export var CopilotEvaluationEvent$ = [3, n1, _CEE,
|
|
269
343
|
0,
|
|
270
344
|
[_in, _ti, _i, _stat],
|
|
271
345
|
[1, 0, 0, 15], 4
|
|
272
346
|
];
|
|
347
|
+
export var CopilotIngestedSession$ = [3, n1, _CIS,
|
|
348
|
+
0,
|
|
349
|
+
[_i, _stat],
|
|
350
|
+
[0, 0], 2
|
|
351
|
+
];
|
|
273
352
|
export var CopilotIntentEvent$ = [3, n1, _CIE,
|
|
274
353
|
0,
|
|
275
354
|
[_in, _ti, _i, _stat],
|
|
@@ -277,30 +356,80 @@ export var CopilotIntentEvent$ = [3, n1, _CIE,
|
|
|
277
356
|
];
|
|
278
357
|
export var CopilotLifecycleEvent$ = [3, n1, _CLE,
|
|
279
358
|
0,
|
|
280
|
-
[_in, _ti, _sI, _statu],
|
|
281
|
-
[1, 0, 0, 0], 4
|
|
359
|
+
[_in, _ti, _sI, _statu, _re],
|
|
360
|
+
[1, 0, 0, 0, 0], 4
|
|
361
|
+
];
|
|
362
|
+
export var CopilotRelationshipEvent$ = [3, n1, _CRE,
|
|
363
|
+
0,
|
|
364
|
+
[_in, _ti, _rI, _sI],
|
|
365
|
+
[1, 0, 0, 0], 3
|
|
366
|
+
];
|
|
367
|
+
export var CopilotSessionSummary$ = [3, n1, _CSS,
|
|
368
|
+
0,
|
|
369
|
+
[_i, _statu, _conv, _sA, _lAA],
|
|
370
|
+
[0, 0, () => CopilotContextConversation$, 0, 0], 3
|
|
282
371
|
];
|
|
283
372
|
export var CopilotTranscriptionEvent$ = [3, n1, _CTE,
|
|
284
373
|
0,
|
|
285
374
|
[_in, _ti, _da],
|
|
286
375
|
[1, 0, () => CopilotTranscriptionData$], 3
|
|
287
376
|
];
|
|
288
|
-
export var
|
|
377
|
+
export var EnrichInput$ = [3, n1, _EI,
|
|
378
|
+
0,
|
|
379
|
+
[_rI, _loo, _co],
|
|
380
|
+
[0, () => CopilotContextLookup$, 0], 2
|
|
381
|
+
];
|
|
382
|
+
export var EnrichOutput$ = [3, n1, _EO,
|
|
383
|
+
0,
|
|
384
|
+
[_rI, _rel],
|
|
385
|
+
[0, () => CopilotSessionSummaryList], 2
|
|
386
|
+
];
|
|
387
|
+
export var GetSessionEventsInput$ = [3, n1, _GSEI,
|
|
289
388
|
0,
|
|
290
389
|
[_sI, _co, _sIt, _lim],
|
|
291
390
|
[[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
|
|
292
391
|
];
|
|
293
|
-
export var
|
|
392
|
+
export var GetSessionEventsOutput$ = [3, n1, _GSEO,
|
|
294
393
|
0,
|
|
295
394
|
[_eve, _nSI],
|
|
296
395
|
[() => CopilotSessionEvents, 1], 1
|
|
297
396
|
];
|
|
298
|
-
export var
|
|
397
|
+
export var ListSessionsInput$ = [3, n1, _LSI,
|
|
398
|
+
0,
|
|
399
|
+
[_co, _u, _lim, _cu],
|
|
400
|
+
[[0, { [_hQ]: _co }], [0, { [_hQ]: _u }], [1, { [_hQ]: _lim }], [0, { [_hQ]: _cu }]]
|
|
401
|
+
];
|
|
402
|
+
export var ListSessionsOutput$ = [3, n1, _LSO,
|
|
403
|
+
0,
|
|
404
|
+
[_ses, _nC],
|
|
405
|
+
[() => CopilotSessionSummaryList, 0], 1
|
|
406
|
+
];
|
|
407
|
+
export var OpenInput$ = [3, n1, _OI,
|
|
408
|
+
0,
|
|
409
|
+
[_co, _loo],
|
|
410
|
+
[0, () => CopilotContextLookup$]
|
|
411
|
+
];
|
|
412
|
+
export var OpenOutput$ = [3, n1, _OO,
|
|
413
|
+
0,
|
|
414
|
+
[_rI, _sess, _rel],
|
|
415
|
+
[0, () => CopilotIngestedSession$, () => CopilotSessionSummaryList], 3
|
|
416
|
+
];
|
|
417
|
+
export var ResolveInput$ = [3, n1, _RI,
|
|
418
|
+
0,
|
|
419
|
+
[_loo, _co],
|
|
420
|
+
[() => CopilotContextLookup$, 0], 1
|
|
421
|
+
];
|
|
422
|
+
export var ResolveOutput$ = [3, n1, _RO,
|
|
423
|
+
0,
|
|
424
|
+
[_ses, _rI],
|
|
425
|
+
[() => CopilotSessionSummaryList, 0], 1
|
|
426
|
+
];
|
|
427
|
+
export var StreamSessionEventsInput$ = [3, n1, _SSEI,
|
|
299
428
|
0,
|
|
300
429
|
[_sI, _co, _sIt],
|
|
301
430
|
[[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }]], 1
|
|
302
431
|
];
|
|
303
|
-
export var
|
|
432
|
+
export var StreamSessionEventsOutput$ = [3, n1, _SSEO,
|
|
304
433
|
0,
|
|
305
434
|
[_eve, _cT],
|
|
306
435
|
[[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
|
|
@@ -317,7 +446,7 @@ export var ButtonElement$ = [3, n4, _BE,
|
|
|
317
446
|
];
|
|
318
447
|
export var ButtonLinkHandler$ = [3, n4, _BLH,
|
|
319
448
|
0,
|
|
320
|
-
[
|
|
449
|
+
[_ur],
|
|
321
450
|
[0], 1
|
|
322
451
|
];
|
|
323
452
|
export var ButtonReplyHandler$ = [3, n4, _BRH,
|
|
@@ -327,7 +456,7 @@ export var ButtonReplyHandler$ = [3, n4, _BRH,
|
|
|
327
456
|
];
|
|
328
457
|
export var Message$ = [3, n4, _M,
|
|
329
458
|
0,
|
|
330
|
-
[_ty, _mI, _cIh,
|
|
459
|
+
[_ty, _mI, _cIh, _u, _cA, _te, _el, _at, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
|
|
331
460
|
[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
|
|
332
461
|
];
|
|
333
462
|
export var MessageAttachment$ = [3, n4, _MA,
|
|
@@ -342,12 +471,12 @@ export var MessageForward$ = [3, n4, _MF,
|
|
|
342
471
|
];
|
|
343
472
|
export var MessageGiphy$ = [3, n4, _MG,
|
|
344
473
|
0,
|
|
345
|
-
[_i, _siz,
|
|
474
|
+
[_i, _siz, _ur, _he, _wi],
|
|
346
475
|
[0, 0, 0, 0, 0], 5
|
|
347
476
|
];
|
|
348
477
|
export var MessageQuote$ = [3, n4, _MQ,
|
|
349
478
|
0,
|
|
350
|
-
[_mI, _cIh,
|
|
479
|
+
[_mI, _cIh, _u, _cA, _te, _at, _f, _me, _g, _uAp],
|
|
351
480
|
[0, 0, () => User$, 0, 0, () => MessageAttachmentList, () => MessageForward$, () => UsersList, () => MessageGiphy$, 0], 4
|
|
352
481
|
];
|
|
353
482
|
export var MessageTemplateConfig$ = [3, n4, _MTC,
|
|
@@ -357,7 +486,7 @@ export var MessageTemplateConfig$ = [3, n4, _MTC,
|
|
|
357
486
|
];
|
|
358
487
|
export var Reaction$ = [3, n4, _R,
|
|
359
488
|
0,
|
|
360
|
-
[_ty, _uI, _mI,
|
|
489
|
+
[_ty, _uI, _mI, _u],
|
|
361
490
|
[0, 0, 0, () => User$]
|
|
362
491
|
];
|
|
363
492
|
export var User$ = [3, n4, _U,
|
|
@@ -369,9 +498,17 @@ var ListTemplateParameter = [1, n2, _LTP,
|
|
|
369
498
|
0, () => TemplateParameter$
|
|
370
499
|
];
|
|
371
500
|
var LicensesList = 64 | 0;
|
|
501
|
+
var CopilotContextEmailList = 64 | 0;
|
|
502
|
+
var CopilotContextEntityList = [1, n1, _CCEL,
|
|
503
|
+
0, () => CopilotContextEntity$
|
|
504
|
+
];
|
|
505
|
+
var CopilotContextPhoneList = 64 | 0;
|
|
372
506
|
var CopilotSessionEvents = [1, n1, _CSE,
|
|
373
507
|
0, () => CopilotSessionEvent$
|
|
374
508
|
];
|
|
509
|
+
var CopilotSessionSummaryList = [1, n1, _CSSL,
|
|
510
|
+
0, () => CopilotSessionSummary$
|
|
511
|
+
];
|
|
375
512
|
var ActionsElementsList = [1, n4, _AEL,
|
|
376
513
|
0, () => ActionElement$
|
|
377
514
|
];
|
|
@@ -387,11 +524,12 @@ var ReactionList = [1, n4, _RL,
|
|
|
387
524
|
var UsersList = [1, n4, _UL,
|
|
388
525
|
0, () => User$
|
|
389
526
|
];
|
|
527
|
+
var CopilotContextAttributes = 128 | 0;
|
|
390
528
|
var ReactionCounts = 128 | 1;
|
|
391
529
|
export var CopilotSessionEvent$ = [4, n1, _CSEo,
|
|
392
530
|
0,
|
|
393
|
-
[_lif, _tr, _int, _eva, _as, _ass],
|
|
394
|
-
[() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$]
|
|
531
|
+
[_lif, _tr, _int, _eva, _as, _ass, _rela, _ask],
|
|
532
|
+
[() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$, () => CopilotRelationshipEvent$, () => CopilotAskEvent$]
|
|
395
533
|
];
|
|
396
534
|
export var CopilotTranscriptionData$ = [4, n1, _CTD,
|
|
397
535
|
0,
|
|
@@ -405,7 +543,7 @@ export var ActionElement$ = [4, n4, _AE,
|
|
|
405
543
|
];
|
|
406
544
|
export var ButtonHandler$ = [4, n4, _BH,
|
|
407
545
|
0,
|
|
408
|
-
[_lin,
|
|
546
|
+
[_lin, _rep, _ac],
|
|
409
547
|
[() => ButtonLinkHandler$, () => ButtonReplyHandler$, () => ButtonActionHandler$]
|
|
410
548
|
];
|
|
411
549
|
export var Element$ = [4, n4, _E,
|
|
@@ -413,9 +551,24 @@ export var Element$ = [4, n4, _E,
|
|
|
413
551
|
[_tem, _act],
|
|
414
552
|
[() => MessageTemplateConfig$, () => ActionsElementsList]
|
|
415
553
|
];
|
|
416
|
-
export var
|
|
417
|
-
{ [_ht]: ["
|
|
554
|
+
export var Ask$ = [9, n1, _A,
|
|
555
|
+
{ [_ht]: ["POST", "/v2/copilot/sessions/{sessionId}/ask", 200] }, () => AskInput$, () => AskOutput$
|
|
556
|
+
];
|
|
557
|
+
export var Enrich$ = [9, n1, _En,
|
|
558
|
+
{ [_ht]: ["POST", "/v2/copilot/enrich", 200] }, () => EnrichInput$, () => EnrichOutput$
|
|
559
|
+
];
|
|
560
|
+
export var GetSessionEvents$ = [9, n1, _GSE,
|
|
561
|
+
{ [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => GetSessionEventsInput$, () => GetSessionEventsOutput$
|
|
562
|
+
];
|
|
563
|
+
export var ListSessions$ = [9, n1, _LS,
|
|
564
|
+
{ [_ht]: ["GET", "/v2/copilot/sessions", 200] }, () => ListSessionsInput$, () => ListSessionsOutput$
|
|
565
|
+
];
|
|
566
|
+
export var Open$ = [9, n1, _O,
|
|
567
|
+
{ [_ht]: ["POST", "/v2/copilot/open", 200] }, () => OpenInput$, () => OpenOutput$
|
|
568
|
+
];
|
|
569
|
+
export var Resolve$ = [9, n1, _Re,
|
|
570
|
+
{ [_ht]: ["POST", "/v2/copilot/lookup", 200] }, () => ResolveInput$, () => ResolveOutput$
|
|
418
571
|
];
|
|
419
|
-
export var
|
|
420
|
-
{ [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () =>
|
|
572
|
+
export var StreamSessionEvents$ = [9, n1, _SSE,
|
|
573
|
+
{ [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => StreamSessionEventsInput$, () => StreamSessionEventsOutput$
|
|
421
574
|
];
|
|
@@ -1,20 +1,57 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type AskCommandInput, type AskCommandOutput } from "./commands/AskCommand";
|
|
3
|
+
import { type EnrichCommandInput, type EnrichCommandOutput } from "./commands/EnrichCommand";
|
|
4
|
+
import { type GetSessionEventsCommandInput, type GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
|
|
5
|
+
import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
6
|
+
import { type OpenCommandInput, type OpenCommandOutput } from "./commands/OpenCommand";
|
|
7
|
+
import { type ResolveCommandInput, type ResolveCommandOutput } from "./commands/ResolveCommand";
|
|
8
|
+
import { type StreamSessionEventsCommandInput, type StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
|
|
4
9
|
import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
|
|
5
10
|
export interface WilmaCopilotSessions {
|
|
6
11
|
/**
|
|
7
|
-
* @see {@link
|
|
12
|
+
* @see {@link AskCommand}
|
|
8
13
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
ask(args: AskCommandInput, options?: __HttpHandlerOptions): Promise<AskCommandOutput>;
|
|
15
|
+
ask(args: AskCommandInput, cb: (err: any, data?: AskCommandOutput) => void): void;
|
|
16
|
+
ask(args: AskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AskCommandOutput) => void): void;
|
|
12
17
|
/**
|
|
13
|
-
* @see {@link
|
|
18
|
+
* @see {@link EnrichCommand}
|
|
14
19
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
enrich(args: EnrichCommandInput, options?: __HttpHandlerOptions): Promise<EnrichCommandOutput>;
|
|
21
|
+
enrich(args: EnrichCommandInput, cb: (err: any, data?: EnrichCommandOutput) => void): void;
|
|
22
|
+
enrich(args: EnrichCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnrichCommandOutput) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link GetSessionEventsCommand}
|
|
25
|
+
*/
|
|
26
|
+
getSessionEvents(args: GetSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionEventsCommandOutput>;
|
|
27
|
+
getSessionEvents(args: GetSessionEventsCommandInput, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
|
|
28
|
+
getSessionEvents(args: GetSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link ListSessionsCommand}
|
|
31
|
+
*/
|
|
32
|
+
listSessions(): Promise<ListSessionsCommandOutput>;
|
|
33
|
+
listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
|
|
34
|
+
listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
35
|
+
listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link OpenCommand}
|
|
38
|
+
*/
|
|
39
|
+
open(): Promise<OpenCommandOutput>;
|
|
40
|
+
open(args: OpenCommandInput, options?: __HttpHandlerOptions): Promise<OpenCommandOutput>;
|
|
41
|
+
open(args: OpenCommandInput, cb: (err: any, data?: OpenCommandOutput) => void): void;
|
|
42
|
+
open(args: OpenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OpenCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link ResolveCommand}
|
|
45
|
+
*/
|
|
46
|
+
resolve(args: ResolveCommandInput, options?: __HttpHandlerOptions): Promise<ResolveCommandOutput>;
|
|
47
|
+
resolve(args: ResolveCommandInput, cb: (err: any, data?: ResolveCommandOutput) => void): void;
|
|
48
|
+
resolve(args: ResolveCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResolveCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link StreamSessionEventsCommand}
|
|
51
|
+
*/
|
|
52
|
+
streamSessionEvents(args: StreamSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<StreamSessionEventsCommandOutput>;
|
|
53
|
+
streamSessionEvents(args: StreamSessionEventsCommandInput, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
|
|
54
|
+
streamSessionEvents(args: StreamSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StreamSessionEventsCommandOutput) => void): void;
|
|
18
55
|
}
|
|
19
56
|
/**
|
|
20
57
|
* Runtime for Wilma Copilot: copilot assisting live conversations. A session is created
|
|
@@ -27,6 +64,12 @@ export interface WilmaCopilotSessions {
|
|
|
27
64
|
* live events over SSE to reconstruct session state. Profile and library-resource configuration
|
|
28
65
|
* lives in the companion wilma-copilot service; this service applies the published profile
|
|
29
66
|
* versions and streams what copilot detects and shows.
|
|
67
|
+
*
|
|
68
|
+
* Client surfaces additionally push context events (Open): emails, phones and
|
|
69
|
+
* typed entity references resolved into a relationship — the durable cross-channel view of one
|
|
70
|
+
* customer. Sessions never close: they idle when the conversation ends or goes quiet, archive to
|
|
71
|
+
* cold storage later, and revive on any new event. A new conversation gets a new session linked
|
|
72
|
+
* to the same relationship; the ingest response returns the sessions already associated with it.
|
|
30
73
|
* @public
|
|
31
74
|
*/
|
|
32
75
|
export declare class WilmaCopilotSessions extends WilmaCopilotSessionsClient implements WilmaCopilotSessions {
|
|
@@ -5,19 +5,24 @@ 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 {
|
|
9
|
-
import type {
|
|
8
|
+
import type { AskCommandInput, AskCommandOutput } from "./commands/AskCommand";
|
|
9
|
+
import type { EnrichCommandInput, EnrichCommandOutput } from "./commands/EnrichCommand";
|
|
10
|
+
import type { GetSessionEventsCommandInput, GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
|
|
11
|
+
import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
12
|
+
import type { OpenCommandInput, OpenCommandOutput } from "./commands/OpenCommand";
|
|
13
|
+
import type { ResolveCommandInput, ResolveCommandOutput } from "./commands/ResolveCommand";
|
|
14
|
+
import type { StreamSessionEventsCommandInput, StreamSessionEventsCommandOutput } from "./commands/StreamSessionEventsCommand";
|
|
10
15
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
11
16
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
12
17
|
export { __Client };
|
|
13
18
|
/**
|
|
14
19
|
* @public
|
|
15
20
|
*/
|
|
16
|
-
export type ServiceInputTypes =
|
|
21
|
+
export type ServiceInputTypes = AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput;
|
|
17
22
|
/**
|
|
18
23
|
* @public
|
|
19
24
|
*/
|
|
20
|
-
export type ServiceOutputTypes =
|
|
25
|
+
export type ServiceOutputTypes = AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput;
|
|
21
26
|
/**
|
|
22
27
|
* @public
|
|
23
28
|
*/
|
|
@@ -161,6 +166,12 @@ export interface WilmaCopilotSessionsClientResolvedConfig extends WilmaCopilotSe
|
|
|
161
166
|
* live events over SSE to reconstruct session state. Profile and library-resource configuration
|
|
162
167
|
* lives in the companion wilma-copilot service; this service applies the published profile
|
|
163
168
|
* versions and streams what copilot detects and shows.
|
|
169
|
+
*
|
|
170
|
+
* Client surfaces additionally push context events (Open): emails, phones and
|
|
171
|
+
* typed entity references resolved into a relationship — the durable cross-channel view of one
|
|
172
|
+
* customer. Sessions never close: they idle when the conversation ends or goes quiet, archive to
|
|
173
|
+
* cold storage later, and revive on any new event. A new conversation gets a new session linked
|
|
174
|
+
* to the same relationship; the ingest response returns the sessions already associated with it.
|
|
164
175
|
* @public
|
|
165
176
|
*/
|
|
166
177
|
export declare class WilmaCopilotSessionsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WilmaCopilotSessionsClientResolvedConfig> {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { AskInput, AskOutput } 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 AskCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AskCommandInput extends AskInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AskCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AskCommandOutput extends AskOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AskCommand_base: {
|
|
25
|
+
new (input: AskCommandInput): import("@smithy/core/client").CommandImpl<AskCommandInput, AskCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AskCommandInput): import("@smithy/core/client").CommandImpl<AskCommandInput, AskCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Records an ask in a copilot session and publishes it as an `ask` event on the session
|
|
31
|
+
* stream. The ask itself runs as a regular Wilma session (wilma-assistant): `wilmaSessionId`
|
|
32
|
+
* points at it and `accessToken` is a read-only, session-scoped token other agents present to
|
|
33
|
+
* wilma-assistant to render the ask output — copilot sessions are shared within the tenant, so
|
|
34
|
+
* any agent watching the stream may view it.
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { WilmaCopilotSessionsClient, AskCommand } from "@wildix/wilma-copilot-sessions-client"; // ES Modules import
|
|
39
|
+
* // const { WilmaCopilotSessionsClient, AskCommand } = 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 = { // AskInput
|
|
44
|
+
* sessionId: "STRING_VALUE", // required
|
|
45
|
+
* company: "STRING_VALUE",
|
|
46
|
+
* wilmaSessionId: "STRING_VALUE", // required
|
|
47
|
+
* accessToken: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new AskCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // AskOutput
|
|
52
|
+
* // index: Number("int"), // required
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param AskCommandInput - {@link AskCommandInput}
|
|
58
|
+
* @returns {@link AskCommandOutput}
|
|
59
|
+
* @see {@link AskCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link AskCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link WilmaCopilotSessionsClientResolvedConfig | config} for WilmaCopilotSessionsClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link NotFoundException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link WilmaCopilotSessionsServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from WilmaCopilotSessions service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class AskCommand extends AskCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: AskInput;
|
|
80
|
+
output: AskOutput;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: AskCommandInput;
|
|
84
|
+
output: AskCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|