@wildix/wilma-copilot-sessions-client 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist-cjs/WilmaCopilotSessions.js +15 -0
  2. package/dist-cjs/WilmaCopilotSessionsClient.js +49 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/GetCopilotSessionEventsCommand.js +20 -0
  6. package/dist-cjs/commands/StreamCopilotSessionEventsCommand.js +20 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  9. package/dist-cjs/endpoint/bdd.js +28 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  11. package/dist-cjs/extensionConfiguration.js +2 -0
  12. package/dist-cjs/index.js +13 -0
  13. package/dist-cjs/models/WilmaCopilotSessionsServiceException.js +12 -0
  14. package/dist-cjs/models/enums.js +130 -0
  15. package/dist-cjs/models/errors.js +43 -0
  16. package/dist-cjs/models/models_0.js +2 -0
  17. package/dist-cjs/runtimeConfig.browser.js +32 -0
  18. package/dist-cjs/runtimeConfig.js +41 -0
  19. package/dist-cjs/runtimeConfig.native.js +15 -0
  20. package/dist-cjs/runtimeConfig.shared.js +42 -0
  21. package/dist-cjs/runtimeExtensions.js +12 -0
  22. package/dist-cjs/schemas/schemas_0.js +424 -0
  23. package/dist-es/WilmaCopilotSessions.js +11 -0
  24. package/dist-es/WilmaCopilotSessionsClient.js +45 -0
  25. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  26. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  27. package/dist-es/commands/GetCopilotSessionEventsCommand.js +16 -0
  28. package/dist-es/commands/StreamCopilotSessionEventsCommand.js +16 -0
  29. package/dist-es/commands/index.js +2 -0
  30. package/dist-es/endpoint/EndpointParameters.js +12 -0
  31. package/dist-es/endpoint/bdd.js +25 -0
  32. package/dist-es/endpoint/endpointResolver.js +12 -0
  33. package/dist-es/extensionConfiguration.js +1 -0
  34. package/dist-es/index.js +8 -0
  35. package/dist-es/models/WilmaCopilotSessionsServiceException.js +8 -0
  36. package/dist-es/models/enums.js +127 -0
  37. package/dist-es/models/errors.js +37 -0
  38. package/dist-es/models/models_0.js +1 -0
  39. package/dist-es/runtimeConfig.browser.js +27 -0
  40. package/dist-es/runtimeConfig.js +36 -0
  41. package/dist-es/runtimeConfig.native.js +11 -0
  42. package/dist-es/runtimeConfig.shared.js +38 -0
  43. package/dist-es/runtimeExtensions.js +8 -0
  44. package/dist-es/schemas/schemas_0.js +421 -0
  45. package/dist-types/WilmaCopilotSessions.d.ts +33 -0
  46. package/dist-types/WilmaCopilotSessionsClient.d.ts +178 -0
  47. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  48. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  49. package/dist-types/commands/GetCopilotSessionEventsCommand.d.ts +379 -0
  50. package/dist-types/commands/StreamCopilotSessionEventsCommand.d.ts +88 -0
  51. package/dist-types/commands/index.d.ts +2 -0
  52. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  53. package/dist-types/endpoint/bdd.d.ts +2 -0
  54. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  55. package/dist-types/extensionConfiguration.d.ts +8 -0
  56. package/dist-types/index.d.ts +25 -0
  57. package/dist-types/models/WilmaCopilotSessionsServiceException.d.ts +14 -0
  58. package/dist-types/models/enums.d.ts +275 -0
  59. package/dist-types/models/errors.d.ts +35 -0
  60. package/dist-types/models/models_0.d.ts +757 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  62. package/dist-types/runtimeConfig.d.ts +56 -0
  63. package/dist-types/runtimeConfig.native.d.ts +55 -0
  64. package/dist-types/runtimeConfig.shared.d.ts +33 -0
  65. package/dist-types/runtimeExtensions.d.ts +17 -0
  66. package/dist-types/schemas/schemas_0.d.ts +50 -0
  67. package/package.json +57 -0
@@ -0,0 +1,421 @@
1
+ const _AE = "ActionElement";
2
+ const _AEL = "ActionsElementsList";
3
+ const _BAH = "ButtonActionHandler";
4
+ const _BE = "ButtonElement";
5
+ const _BH = "ButtonHandler";
6
+ const _BLH = "ButtonLinkHandler";
7
+ const _BRH = "ButtonReplyHandler";
8
+ const _CAE = "CopilotAssetEvent";
9
+ const _CAEo = "CopilotAssistantEvent";
10
+ const _CALTE = "CallAnalyticsLiveTranscriptionEvent";
11
+ const _CALTEh = "ChatAnalyticsLiveTranscriptionEvent";
12
+ const _CALTEo = "ConferenceAnalyticsLiveTranscriptionEvent";
13
+ const _CEE = "CopilotEvaluationEvent";
14
+ const _CIE = "CopilotIntentEvent";
15
+ const _CLE = "CopilotLifecycleEvent";
16
+ const _CP = "CallParticipant";
17
+ const _CPo = "ConferenceParticipant";
18
+ const _CSE = "CopilotSessionEvents";
19
+ const _CSESB = "CopilotSessionEventStreamBody";
20
+ const _CSEo = "CopilotSessionEvent";
21
+ const _CT = "Content-Type";
22
+ const _CTC = "CallTranscriptionChunk";
23
+ const _CTCo = "ConferenceTranscriptionChunk";
24
+ const _CTD = "CopilotTranscriptionData";
25
+ const _CTE = "CopilotTranscriptionEvent";
26
+ const _E = "Element";
27
+ const _EL = "ElementsList";
28
+ const _FE = "ForbiddenException";
29
+ const _GCSE = "GetCopilotSessionEvents";
30
+ const _GCSEI = "GetCopilotSessionEventsInput";
31
+ const _GCSEO = "GetCopilotSessionEventsOutput";
32
+ const _LTP = "ListTemplateParameter";
33
+ const _M = "Message";
34
+ const _MA = "MessageAttachment";
35
+ const _MAL = "MessageAttachmentList";
36
+ const _MF = "MessageForward";
37
+ const _MG = "MessageGiphy";
38
+ const _MQ = "MessageQuote";
39
+ const _MTC = "MessageTemplateConfig";
40
+ const _NFE = "NotFoundException";
41
+ const _R = "Reaction";
42
+ const _RL = "ReactionList";
43
+ const _SCSE = "StreamCopilotSessionEvents";
44
+ const _SCSEI = "StreamCopilotSessionEventsInput";
45
+ const _SCSEO = "StreamCopilotSessionEventsOutput";
46
+ const _TP = "TemplateParameter";
47
+ const _TWP = "TemplateWithParameters";
48
+ const _U = "User";
49
+ const _UL = "UsersList";
50
+ const _VE = "ValidationException";
51
+ const _a = "attachments";
52
+ const _ac = "action";
53
+ const _act = "actions";
54
+ const _as = "asset";
55
+ const _ass = "assistant";
56
+ const _b = "bot";
57
+ const _bu = "button";
58
+ const _c = "client";
59
+ const _cA = "createdAt";
60
+ const _cI = "chatId";
61
+ const _cIh = "channelId";
62
+ const _cST = "callStartTime";
63
+ const _cSTo = "conferenceStartTime";
64
+ const _cT = "contentType";
65
+ const _ca = "call";
66
+ const _ch = "chunk";
67
+ const _cha = "chat";
68
+ const _co = "company";
69
+ const _con = "confidence";
70
+ const _conf = "conference";
71
+ const _cont = "content";
72
+ const _d = "department";
73
+ const _da = "data";
74
+ const _di = "disabled";
75
+ const _e = "error";
76
+ const _ed = "edit";
77
+ const _el = "elements";
78
+ const _em = "email";
79
+ const _en = "end";
80
+ const _ev = "event";
81
+ const _eva = "evaluation";
82
+ const _eve = "events";
83
+ const _f = "forward";
84
+ const _fC = "forwardCompany";
85
+ const _fD = "forwardDate";
86
+ const _fE = "forwardEmail";
87
+ const _fI = "flowIndex";
88
+ const _fIs = "fsId";
89
+ const _fN = "forwardName";
90
+ const _fST = "flowStartTime";
91
+ const _g = "giphy";
92
+ const _gI = "groupId";
93
+ const _gN = "groupName";
94
+ const _h = "handler";
95
+ const _hE = "httpError";
96
+ const _hH = "httpHeader";
97
+ const _hQ = "httpQuery";
98
+ const _he = "height";
99
+ const _ht = "http";
100
+ const _i = "id";
101
+ const _iF = "isFinal";
102
+ const _ic = "icon";
103
+ const _in = "index";
104
+ const _int = "intent";
105
+ const _j = "jid";
106
+ const _l = "licenses";
107
+ const _lR = "latestReactions";
108
+ const _la = "language";
109
+ const _li = "license";
110
+ const _lif = "lifecycle";
111
+ const _lim = "limit";
112
+ const _lin = "link";
113
+ const _lo = "location";
114
+ const _loc = "locale";
115
+ const _m = "message";
116
+ const _mI = "messageId";
117
+ const _ma = "markdown";
118
+ const _me = "mentions";
119
+ const _mi = "mime";
120
+ const _n = "name";
121
+ const _nSI = "nextStartIndex";
122
+ const _p = "parameters";
123
+ const _pA = "publicAddress";
124
+ const _pAr = "privateAddress";
125
+ const _pD = "pbxDomain";
126
+ const _pE = "pbxExtension";
127
+ const _pGI = "pbxGroupId";
128
+ const _pP = "pbxPort";
129
+ const _pS = "pbxSerial";
130
+ const _pUI = "pbxUserId";
131
+ const _pa = "participant";
132
+ const _pb = "pbx";
133
+ const _ph = "phone";
134
+ const _pi = "picture";
135
+ const _q = "quote";
136
+ const _r = "role";
137
+ const _rC = "reactionCounts";
138
+ const _re = "reply";
139
+ const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
140
+ const _sCI = "sipCallId";
141
+ const _sI = "sessionId";
142
+ const _sIt = "startIndex";
143
+ const _sS = "smsStatus";
144
+ const _se = "sentiment";
145
+ const _si = "silent";
146
+ const _siz = "size";
147
+ const _sm = "sms";
148
+ const _sp = "speaker";
149
+ const _st = "streaming";
150
+ const _sta = "start";
151
+ const _stat = "state";
152
+ const _statu = "status";
153
+ const _sti = "sticky";
154
+ const _sty = "styling";
155
+ const _t = "time";
156
+ const _tST = "transcriptionStartTime";
157
+ const _tZ = "timeZone";
158
+ const _te = "text";
159
+ const _tem = "template";
160
+ const _th = "thumbnail";
161
+ const _ti = "timestamp";
162
+ const _tr = "transcript";
163
+ const _ty = "type";
164
+ const _u = "url";
165
+ const _uA = "userAgent";
166
+ const _uAp = "updatedAt";
167
+ const _uD = "userDepartment";
168
+ const _uDs = "userDevice";
169
+ const _uE = "userExtension";
170
+ const _uI = "userId";
171
+ const _us = "user";
172
+ const _v = "value";
173
+ const _va = "variant";
174
+ const _w = "whatsapp";
175
+ const _wS = "whatsappStatus";
176
+ const _wi = "width";
177
+ const _xI = "xbsId";
178
+ const n0 = "smithy.framework";
179
+ const n1 = "wildix.wilma.copilot.sessions";
180
+ const n2 = "wildix.classound";
181
+ const n3 = "wildix.wda.stream";
182
+ const n4 = "wildix.xbees.conversations";
183
+ import { TypeRegistry } from "@smithy/core/schema";
184
+ import { ForbiddenException, NotFoundException, ValidationException } from "../models/errors";
185
+ import { WilmaCopilotSessionsServiceException } from "../models/WilmaCopilotSessionsServiceException";
186
+ const _s_registry = TypeRegistry.for(_s);
187
+ export var WilmaCopilotSessionsServiceException$ = [-3, _s, "WilmaCopilotSessionsServiceException", 0, [], []];
188
+ _s_registry.registerError(WilmaCopilotSessionsServiceException$, WilmaCopilotSessionsServiceException);
189
+ const n0_registry = TypeRegistry.for(n0);
190
+ export var ForbiddenException$ = [-3, n0, _FE,
191
+ { [_e]: _c, [_hE]: 403 },
192
+ [_m],
193
+ [0], 1
194
+ ];
195
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
196
+ export var NotFoundException$ = [-3, n0, _NFE,
197
+ { [_e]: _c, [_hE]: 404 },
198
+ [_m],
199
+ [0], 1
200
+ ];
201
+ n0_registry.registerError(NotFoundException$, NotFoundException);
202
+ export var ValidationException$ = [-3, n0, _VE,
203
+ { [_e]: _c, [_hE]: 400 },
204
+ [_m],
205
+ [0], 1
206
+ ];
207
+ n0_registry.registerError(ValidationException$, ValidationException);
208
+ export const errorTypeRegistries = [
209
+ _s_registry,
210
+ n0_registry,
211
+ ];
212
+ var CopilotSessionEventStreamBody = [0, n1, _CSESB, { [_st]: 1 }, 42];
213
+ export var TemplateParameter$ = [3, n2, _TP,
214
+ 0,
215
+ [_n, _v],
216
+ [0, 0], 2
217
+ ];
218
+ export var TemplateWithParameters$ = [3, n2, _TWP,
219
+ 0,
220
+ [_n, _p],
221
+ [0, () => ListTemplateParameter], 1
222
+ ];
223
+ export var CallAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTE,
224
+ 0,
225
+ [_i, _pb, _t, _co, _l, _ev, _fI, _fST, _cST, _ch, _pa],
226
+ [0, 0, 1, 0, 64 | 0, 0, 1, 1, 1, () => CallTranscriptionChunk$, () => CallParticipant$], 10
227
+ ];
228
+ export var CallParticipant$ = [3, n3, _CP,
229
+ 0,
230
+ [_ty, _r, _ph, _n, _co, _em, _uI, _uE, _uD, _gI, _gN, _uA, _uDs, _li, _sCI, _pA, _pAr, _lo],
231
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
232
+ ];
233
+ export var CallTranscriptionChunk$ = [3, n3, _CTC,
234
+ 0,
235
+ [_i, _t, _sp, _te, _iF, _sta, _en, _la, _con, _se],
236
+ [0, 1, 0, 0, 2, 1, 1, 0, 1, 0], 7
237
+ ];
238
+ export var ChatAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTEh,
239
+ 0,
240
+ [_t, _co, _ev, _m, _i, _cI],
241
+ [1, 0, 0, () => Message$, 0, 0], 4
242
+ ];
243
+ export var ConferenceAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTEo,
244
+ 0,
245
+ [_i, _t, _co, _ev, _cSTo, _tST, _ch, _pa],
246
+ [0, 1, 0, 0, 1, 1, () => ConferenceTranscriptionChunk$, () => ConferenceParticipant$], 7
247
+ ];
248
+ export var ConferenceParticipant$ = [3, n3, _CPo,
249
+ 0,
250
+ [_ty, _r, _j, _n, _em, _ph, _d, _co, _pS, _pE, _pGI, _xI, _li],
251
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 1
252
+ ];
253
+ export var ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
254
+ 0,
255
+ [_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
256
+ [0, 1, 0, 0, 2, 1, 1, 0, 0], 7
257
+ ];
258
+ export var CopilotAssetEvent$ = [3, n1, _CAE,
259
+ 0,
260
+ [_in, _ti, _i, _stat, _ic, _sty, _sti, _cont],
261
+ [1, 0, 0, 15, 0, 0, 2, 0], 4
262
+ ];
263
+ export var CopilotAssistantEvent$ = [3, n1, _CAEo,
264
+ 0,
265
+ [_in, _ti, _i, _stat],
266
+ [1, 0, 0, 15], 4
267
+ ];
268
+ export var CopilotEvaluationEvent$ = [3, n1, _CEE,
269
+ 0,
270
+ [_in, _ti, _i, _stat],
271
+ [1, 0, 0, 15], 4
272
+ ];
273
+ export var CopilotIntentEvent$ = [3, n1, _CIE,
274
+ 0,
275
+ [_in, _ti, _i, _stat],
276
+ [1, 0, 0, 15], 4
277
+ ];
278
+ export var CopilotLifecycleEvent$ = [3, n1, _CLE,
279
+ 0,
280
+ [_in, _ti, _sI, _statu],
281
+ [1, 0, 0, 0], 4
282
+ ];
283
+ export var CopilotTranscriptionEvent$ = [3, n1, _CTE,
284
+ 0,
285
+ [_in, _ti, _da],
286
+ [1, 0, () => CopilotTranscriptionData$], 3
287
+ ];
288
+ export var GetCopilotSessionEventsInput$ = [3, n1, _GCSEI,
289
+ 0,
290
+ [_sI, _sIt, _lim],
291
+ [[0, 1], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
292
+ ];
293
+ export var GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
294
+ 0,
295
+ [_eve, _nSI],
296
+ [() => CopilotSessionEvents, 1], 1
297
+ ];
298
+ export var StreamCopilotSessionEventsInput$ = [3, n1, _SCSEI,
299
+ 0,
300
+ [_sI, _sIt],
301
+ [[0, 1], [1, { [_hQ]: _sIt }]], 1
302
+ ];
303
+ export var StreamCopilotSessionEventsOutput$ = [3, n1, _SCSEO,
304
+ 0,
305
+ [_eve, _cT],
306
+ [[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
307
+ ];
308
+ export var ButtonActionHandler$ = [3, n4, _BAH,
309
+ 0,
310
+ [_i],
311
+ [0], 1
312
+ ];
313
+ export var ButtonElement$ = [3, n4, _BE,
314
+ 0,
315
+ [_te, _h, _va, _di],
316
+ [0, () => ButtonHandler$, 0, 2], 2
317
+ ];
318
+ export var ButtonLinkHandler$ = [3, n4, _BLH,
319
+ 0,
320
+ [_u],
321
+ [0], 1
322
+ ];
323
+ export var ButtonReplyHandler$ = [3, n4, _BRH,
324
+ 0,
325
+ [_te],
326
+ [0]
327
+ ];
328
+ export var Message$ = [3, n4, _M,
329
+ 0,
330
+ [_ty, _mI, _cIh, _us, _cA, _te, _el, _a, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
331
+ [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
+ ];
333
+ export var MessageAttachment$ = [3, n4, _MA,
334
+ 0,
335
+ [_i, _fIs, _n, _siz, _mi, _wi, _he, _th],
336
+ [0, 0, 0, 1, 0, 1, 1, 0], 4
337
+ ];
338
+ export var MessageForward$ = [3, n4, _MF,
339
+ 0,
340
+ [_fD, _mI, _cIh, _fC, _fE, _fN],
341
+ [0, 0, 0, 0, 0, 0], 3
342
+ ];
343
+ export var MessageGiphy$ = [3, n4, _MG,
344
+ 0,
345
+ [_i, _siz, _u, _he, _wi],
346
+ [0, 0, 0, 0, 0], 5
347
+ ];
348
+ export var MessageQuote$ = [3, n4, _MQ,
349
+ 0,
350
+ [_mI, _cIh, _us, _cA, _te, _a, _f, _me, _g, _uAp],
351
+ [0, 0, () => User$, 0, 0, () => MessageAttachmentList, () => MessageForward$, () => UsersList, () => MessageGiphy$, 0], 4
352
+ ];
353
+ export var MessageTemplateConfig$ = [3, n4, _MTC,
354
+ 0,
355
+ [_w],
356
+ [() => TemplateWithParameters$]
357
+ ];
358
+ export var Reaction$ = [3, n4, _R,
359
+ 0,
360
+ [_ty, _uI, _mI, _us],
361
+ [0, 0, 0, () => User$]
362
+ ];
363
+ export var User$ = [3, n4, _U,
364
+ 0,
365
+ [_i, _n, _em, _ph, _pi, _loc, _tZ, _co, _b, _pD, _pP, _pE, _pS, _pUI, _pGI, _cA, _uAp],
366
+ [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], 1
367
+ ];
368
+ var ListTemplateParameter = [1, n2, _LTP,
369
+ 0, () => TemplateParameter$
370
+ ];
371
+ var LicensesList = 64 | 0;
372
+ var CopilotSessionEvents = [1, n1, _CSE,
373
+ 0, () => CopilotSessionEvent$
374
+ ];
375
+ var ActionsElementsList = [1, n4, _AEL,
376
+ 0, () => ActionElement$
377
+ ];
378
+ var ElementsList = [1, n4, _EL,
379
+ 0, () => Element$
380
+ ];
381
+ var MessageAttachmentList = [1, n4, _MAL,
382
+ 0, () => MessageAttachment$
383
+ ];
384
+ var ReactionList = [1, n4, _RL,
385
+ 0, () => Reaction$
386
+ ];
387
+ var UsersList = [1, n4, _UL,
388
+ 0, () => User$
389
+ ];
390
+ var ReactionCounts = 128 | 1;
391
+ export var CopilotSessionEvent$ = [4, n1, _CSEo,
392
+ 0,
393
+ [_lif, _tr, _int, _eva, _as, _ass],
394
+ [() => CopilotLifecycleEvent$, () => CopilotTranscriptionEvent$, () => CopilotIntentEvent$, () => CopilotEvaluationEvent$, () => CopilotAssetEvent$, () => CopilotAssistantEvent$]
395
+ ];
396
+ export var CopilotTranscriptionData$ = [4, n1, _CTD,
397
+ 0,
398
+ [_ca, _cha, _conf],
399
+ [() => CallAnalyticsLiveTranscriptionEvent$, () => ChatAnalyticsLiveTranscriptionEvent$, () => ConferenceAnalyticsLiveTranscriptionEvent$]
400
+ ];
401
+ export var ActionElement$ = [4, n4, _AE,
402
+ 0,
403
+ [_bu],
404
+ [() => ButtonElement$]
405
+ ];
406
+ export var ButtonHandler$ = [4, n4, _BH,
407
+ 0,
408
+ [_lin, _re, _ac],
409
+ [() => ButtonLinkHandler$, () => ButtonReplyHandler$, () => ButtonActionHandler$]
410
+ ];
411
+ export var Element$ = [4, n4, _E,
412
+ 0,
413
+ [_tem, _act],
414
+ [() => MessageTemplateConfig$, () => ActionsElementsList]
415
+ ];
416
+ export var GetCopilotSessionEvents$ = [9, n1, _GCSE,
417
+ { [_ht]: ["GET", "/v1/sessions/{sessionId}/events", 200] }, () => GetCopilotSessionEventsInput$, () => GetCopilotSessionEventsOutput$
418
+ ];
419
+ export var StreamCopilotSessionEvents$ = [9, n1, _SCSE,
420
+ { [_ht]: ["GET", "/v1/sessions/{sessionId}/events/stream", 200] }, () => StreamCopilotSessionEventsInput$, () => StreamCopilotSessionEventsOutput$
421
+ ];
@@ -0,0 +1,33 @@
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { type GetCopilotSessionEventsCommandInput, type GetCopilotSessionEventsCommandOutput } from "./commands/GetCopilotSessionEventsCommand";
3
+ import { type StreamCopilotSessionEventsCommandInput, type StreamCopilotSessionEventsCommandOutput } from "./commands/StreamCopilotSessionEventsCommand";
4
+ import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
5
+ export interface WilmaCopilotSessions {
6
+ /**
7
+ * @see {@link GetCopilotSessionEventsCommand}
8
+ */
9
+ getCopilotSessionEvents(args: GetCopilotSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetCopilotSessionEventsCommandOutput>;
10
+ getCopilotSessionEvents(args: GetCopilotSessionEventsCommandInput, cb: (err: any, data?: GetCopilotSessionEventsCommandOutput) => void): void;
11
+ getCopilotSessionEvents(args: GetCopilotSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCopilotSessionEventsCommandOutput) => void): void;
12
+ /**
13
+ * @see {@link StreamCopilotSessionEventsCommand}
14
+ */
15
+ streamCopilotSessionEvents(args: StreamCopilotSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<StreamCopilotSessionEventsCommandOutput>;
16
+ streamCopilotSessionEvents(args: StreamCopilotSessionEventsCommandInput, cb: (err: any, data?: StreamCopilotSessionEventsCommandOutput) => void): void;
17
+ streamCopilotSessionEvents(args: StreamCopilotSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StreamCopilotSessionEventsCommandOutput) => void): void;
18
+ }
19
+ /**
20
+ * Runtime for Wilma Copilot: copilot assisting live conversations. A session is created
21
+ * automatically when a matching voice call or chat starts. Published profiles whose conditions
22
+ * match run in an event-driven pipeline — on each event it detects intents, runs evaluations,
23
+ * updates a mutable session state and, when conditions match, shows assets and triggers
24
+ * automations.
25
+ *
26
+ * Each session keeps a monotonic, replayable event log. Clients page recorded events and tail
27
+ * live events over SSE to reconstruct session state. Profile and library-resource configuration
28
+ * lives in the companion wilma-copilot service; this service applies the published profile
29
+ * versions and streams what copilot detects and shows.
30
+ * @public
31
+ */
32
+ export declare class WilmaCopilotSessions extends WilmaCopilotSessionsClient implements WilmaCopilotSessions {
33
+ }
@@ -0,0 +1,178 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
4
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
5
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
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
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
8
+ import type { GetCopilotSessionEventsCommandInput, GetCopilotSessionEventsCommandOutput } from "./commands/GetCopilotSessionEventsCommand";
9
+ import type { StreamCopilotSessionEventsCommandInput, StreamCopilotSessionEventsCommandOutput } from "./commands/StreamCopilotSessionEventsCommand";
10
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
11
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
12
+ export { __Client };
13
+ /**
14
+ * @public
15
+ */
16
+ export type ServiceInputTypes = GetCopilotSessionEventsCommandInput | StreamCopilotSessionEventsCommandInput;
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceOutputTypes = GetCopilotSessionEventsCommandOutput | StreamCopilotSessionEventsCommandOutput;
21
+ /**
22
+ * @public
23
+ */
24
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
25
+ /**
26
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
27
+ */
28
+ requestHandler?: __HttpHandlerUserInput;
29
+ /**
30
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
31
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
32
+ * @internal
33
+ */
34
+ sha256?: __ChecksumConstructor | __HashConstructor;
35
+ /**
36
+ * The function that will be used to convert strings into HTTP endpoints.
37
+ * @internal
38
+ */
39
+ urlParser?: __UrlParser;
40
+ /**
41
+ * A function that can calculate the length of a request body.
42
+ * @internal
43
+ */
44
+ bodyLengthChecker?: __BodyLengthCalculator;
45
+ /**
46
+ * A function that converts a stream into an array of bytes.
47
+ * @internal
48
+ */
49
+ streamCollector?: __StreamCollector;
50
+ /**
51
+ * The function that will be used to convert a base64-encoded string to a byte array.
52
+ * @internal
53
+ */
54
+ base64Decoder?: __Decoder;
55
+ /**
56
+ * The function that will be used to convert binary data to a base64-encoded string.
57
+ * @internal
58
+ */
59
+ base64Encoder?: __Encoder;
60
+ /**
61
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
62
+ * @internal
63
+ */
64
+ utf8Decoder?: __Decoder;
65
+ /**
66
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
67
+ * @internal
68
+ */
69
+ utf8Encoder?: __Encoder;
70
+ /**
71
+ * The runtime environment.
72
+ * @internal
73
+ */
74
+ runtime?: string;
75
+ /**
76
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
77
+ * trait of an operation.
78
+ */
79
+ disableHostPrefix?: boolean;
80
+ /**
81
+ * Setting a client profile is similar to setting a value for the
82
+ * AWS_PROFILE environment variable. Setting a profile on a client
83
+ * in code only affects the single client instance, unlike AWS_PROFILE.
84
+ *
85
+ * When set, and only for environments where an AWS configuration
86
+ * file exists, fields configurable by this file will be retrieved
87
+ * from the specified profile within that file.
88
+ * Conflicting code configuration and environment variables will
89
+ * still have higher priority.
90
+ *
91
+ * For client credential resolution that involves checking the AWS
92
+ * configuration file, the client's profile (this value) will be
93
+ * used unless a different profile is set in the credential
94
+ * provider options.
95
+ *
96
+ */
97
+ profile?: string;
98
+ /**
99
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
100
+ * @internal
101
+ */
102
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
103
+ /**
104
+ * Value for how many times a request will be made at most in case of retry.
105
+ */
106
+ maxAttempts?: number | __Provider<number>;
107
+ /**
108
+ * Specifies which retry algorithm to use.
109
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
110
+ *
111
+ */
112
+ retryMode?: string | __Provider<string>;
113
+ /**
114
+ * Optional logger for logging debug/info/warn/error.
115
+ */
116
+ logger?: __Logger;
117
+ /**
118
+ * Optional extensions
119
+ */
120
+ extensions?: RuntimeExtension[];
121
+ /**
122
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
123
+ */
124
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
125
+ /**
126
+ * The internal function that inject utilities to runtime-specific stream to help users consume the data
127
+ * @internal
128
+ */
129
+ sdkStreamMixin?: __SdkStreamMixinInjector;
130
+ }
131
+ /**
132
+ * @public
133
+ */
134
+ export type WilmaCopilotSessionsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
135
+ /**
136
+ * @public
137
+ *
138
+ * The configuration interface of WilmaCopilotSessionsClient class constructor that set the region, credentials and other options.
139
+ */
140
+ export interface WilmaCopilotSessionsClientConfig extends WilmaCopilotSessionsClientConfigType {
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ export type WilmaCopilotSessionsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
146
+ /**
147
+ * @public
148
+ *
149
+ * The resolved configuration interface of WilmaCopilotSessionsClient class. This is resolved and normalized from the {@link WilmaCopilotSessionsClientConfig | constructor configuration interface}.
150
+ */
151
+ export interface WilmaCopilotSessionsClientResolvedConfig extends WilmaCopilotSessionsClientResolvedConfigType {
152
+ }
153
+ /**
154
+ * Runtime for Wilma Copilot: copilot assisting live conversations. A session is created
155
+ * automatically when a matching voice call or chat starts. Published profiles whose conditions
156
+ * match run in an event-driven pipeline — on each event it detects intents, runs evaluations,
157
+ * updates a mutable session state and, when conditions match, shows assets and triggers
158
+ * automations.
159
+ *
160
+ * Each session keeps a monotonic, replayable event log. Clients page recorded events and tail
161
+ * live events over SSE to reconstruct session state. Profile and library-resource configuration
162
+ * lives in the companion wilma-copilot service; this service applies the published profile
163
+ * versions and streams what copilot detects and shows.
164
+ * @public
165
+ */
166
+ export declare class WilmaCopilotSessionsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WilmaCopilotSessionsClientResolvedConfig> {
167
+ /**
168
+ * The resolved configuration of WilmaCopilotSessionsClient class. This is resolved and normalized from the {@link WilmaCopilotSessionsClientConfig | constructor configuration interface}.
169
+ */
170
+ readonly config: WilmaCopilotSessionsClientResolvedConfig;
171
+ constructor(...[configuration]: __CheckOptionalClientConfig<WilmaCopilotSessionsClientConfig>);
172
+ /**
173
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
174
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
175
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
176
+ */
177
+ destroy(): void;
178
+ }
@@ -0,0 +1,29 @@
1
+ import { type HttpAuthScheme, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
+ import type { WilmaCopilotSessionsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: WilmaCopilotSessionsHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): WilmaCopilotSessionsHttpAuthSchemeProvider;
11
+ setToken(token: TokenIdentity | TokenIdentityProvider): void;
12
+ token(): TokenIdentity | TokenIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: WilmaCopilotSessionsHttpAuthSchemeProvider;
20
+ token: TokenIdentity | TokenIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;