@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.
- package/dist-cjs/WilmaCopilotSessions.js +15 -0
- package/dist-cjs/WilmaCopilotSessionsClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/GetCopilotSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/StreamCopilotSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +13 -0
- package/dist-cjs/models/WilmaCopilotSessionsServiceException.js +12 -0
- package/dist-cjs/models/enums.js +130 -0
- package/dist-cjs/models/errors.js +43 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +42 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +424 -0
- package/dist-es/WilmaCopilotSessions.js +11 -0
- package/dist-es/WilmaCopilotSessionsClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/GetCopilotSessionEventsCommand.js +16 -0
- package/dist-es/commands/StreamCopilotSessionEventsCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/WilmaCopilotSessionsServiceException.js +8 -0
- package/dist-es/models/enums.js +127 -0
- package/dist-es/models/errors.js +37 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +38 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +421 -0
- package/dist-types/WilmaCopilotSessions.d.ts +33 -0
- package/dist-types/WilmaCopilotSessionsClient.d.ts +178 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/GetCopilotSessionEventsCommand.d.ts +379 -0
- package/dist-types/commands/StreamCopilotSessionEventsCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/WilmaCopilotSessionsServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +275 -0
- package/dist-types/models/errors.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +757 -0
- package/dist-types/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/runtimeConfig.d.ts +56 -0
- package/dist-types/runtimeConfig.native.d.ts +55 -0
- package/dist-types/runtimeConfig.shared.d.ts +33 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +50 -0
- package/package.json +57 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamCopilotSessionEvents$ = exports.GetCopilotSessionEvents$ = exports.Element$ = exports.ButtonHandler$ = exports.ActionElement$ = exports.CopilotTranscriptionData$ = exports.CopilotSessionEvent$ = exports.User$ = exports.Reaction$ = exports.MessageTemplateConfig$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForward$ = exports.MessageAttachment$ = exports.Message$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.StreamCopilotSessionEventsOutput$ = exports.StreamCopilotSessionEventsInput$ = exports.GetCopilotSessionEventsOutput$ = exports.GetCopilotSessionEventsInput$ = exports.CopilotTranscriptionEvent$ = exports.CopilotLifecycleEvent$ = exports.CopilotIntentEvent$ = exports.CopilotEvaluationEvent$ = exports.CopilotAssistantEvent$ = exports.CopilotAssetEvent$ = exports.ConferenceTranscriptionChunk$ = exports.ConferenceParticipant$ = exports.ConferenceAnalyticsLiveTranscriptionEvent$ = exports.ChatAnalyticsLiveTranscriptionEvent$ = exports.CallTranscriptionChunk$ = exports.CallParticipant$ = exports.CallAnalyticsLiveTranscriptionEvent$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaCopilotSessionsServiceException$ = void 0;
|
|
4
|
+
const _AE = "ActionElement";
|
|
5
|
+
const _AEL = "ActionsElementsList";
|
|
6
|
+
const _BAH = "ButtonActionHandler";
|
|
7
|
+
const _BE = "ButtonElement";
|
|
8
|
+
const _BH = "ButtonHandler";
|
|
9
|
+
const _BLH = "ButtonLinkHandler";
|
|
10
|
+
const _BRH = "ButtonReplyHandler";
|
|
11
|
+
const _CAE = "CopilotAssetEvent";
|
|
12
|
+
const _CAEo = "CopilotAssistantEvent";
|
|
13
|
+
const _CALTE = "CallAnalyticsLiveTranscriptionEvent";
|
|
14
|
+
const _CALTEh = "ChatAnalyticsLiveTranscriptionEvent";
|
|
15
|
+
const _CALTEo = "ConferenceAnalyticsLiveTranscriptionEvent";
|
|
16
|
+
const _CEE = "CopilotEvaluationEvent";
|
|
17
|
+
const _CIE = "CopilotIntentEvent";
|
|
18
|
+
const _CLE = "CopilotLifecycleEvent";
|
|
19
|
+
const _CP = "CallParticipant";
|
|
20
|
+
const _CPo = "ConferenceParticipant";
|
|
21
|
+
const _CSE = "CopilotSessionEvents";
|
|
22
|
+
const _CSESB = "CopilotSessionEventStreamBody";
|
|
23
|
+
const _CSEo = "CopilotSessionEvent";
|
|
24
|
+
const _CT = "Content-Type";
|
|
25
|
+
const _CTC = "CallTranscriptionChunk";
|
|
26
|
+
const _CTCo = "ConferenceTranscriptionChunk";
|
|
27
|
+
const _CTD = "CopilotTranscriptionData";
|
|
28
|
+
const _CTE = "CopilotTranscriptionEvent";
|
|
29
|
+
const _E = "Element";
|
|
30
|
+
const _EL = "ElementsList";
|
|
31
|
+
const _FE = "ForbiddenException";
|
|
32
|
+
const _GCSE = "GetCopilotSessionEvents";
|
|
33
|
+
const _GCSEI = "GetCopilotSessionEventsInput";
|
|
34
|
+
const _GCSEO = "GetCopilotSessionEventsOutput";
|
|
35
|
+
const _LTP = "ListTemplateParameter";
|
|
36
|
+
const _M = "Message";
|
|
37
|
+
const _MA = "MessageAttachment";
|
|
38
|
+
const _MAL = "MessageAttachmentList";
|
|
39
|
+
const _MF = "MessageForward";
|
|
40
|
+
const _MG = "MessageGiphy";
|
|
41
|
+
const _MQ = "MessageQuote";
|
|
42
|
+
const _MTC = "MessageTemplateConfig";
|
|
43
|
+
const _NFE = "NotFoundException";
|
|
44
|
+
const _R = "Reaction";
|
|
45
|
+
const _RL = "ReactionList";
|
|
46
|
+
const _SCSE = "StreamCopilotSessionEvents";
|
|
47
|
+
const _SCSEI = "StreamCopilotSessionEventsInput";
|
|
48
|
+
const _SCSEO = "StreamCopilotSessionEventsOutput";
|
|
49
|
+
const _TP = "TemplateParameter";
|
|
50
|
+
const _TWP = "TemplateWithParameters";
|
|
51
|
+
const _U = "User";
|
|
52
|
+
const _UL = "UsersList";
|
|
53
|
+
const _VE = "ValidationException";
|
|
54
|
+
const _a = "attachments";
|
|
55
|
+
const _ac = "action";
|
|
56
|
+
const _act = "actions";
|
|
57
|
+
const _as = "asset";
|
|
58
|
+
const _ass = "assistant";
|
|
59
|
+
const _b = "bot";
|
|
60
|
+
const _bu = "button";
|
|
61
|
+
const _c = "client";
|
|
62
|
+
const _cA = "createdAt";
|
|
63
|
+
const _cI = "chatId";
|
|
64
|
+
const _cIh = "channelId";
|
|
65
|
+
const _cST = "callStartTime";
|
|
66
|
+
const _cSTo = "conferenceStartTime";
|
|
67
|
+
const _cT = "contentType";
|
|
68
|
+
const _ca = "call";
|
|
69
|
+
const _ch = "chunk";
|
|
70
|
+
const _cha = "chat";
|
|
71
|
+
const _co = "company";
|
|
72
|
+
const _con = "confidence";
|
|
73
|
+
const _conf = "conference";
|
|
74
|
+
const _cont = "content";
|
|
75
|
+
const _d = "department";
|
|
76
|
+
const _da = "data";
|
|
77
|
+
const _di = "disabled";
|
|
78
|
+
const _e = "error";
|
|
79
|
+
const _ed = "edit";
|
|
80
|
+
const _el = "elements";
|
|
81
|
+
const _em = "email";
|
|
82
|
+
const _en = "end";
|
|
83
|
+
const _ev = "event";
|
|
84
|
+
const _eva = "evaluation";
|
|
85
|
+
const _eve = "events";
|
|
86
|
+
const _f = "forward";
|
|
87
|
+
const _fC = "forwardCompany";
|
|
88
|
+
const _fD = "forwardDate";
|
|
89
|
+
const _fE = "forwardEmail";
|
|
90
|
+
const _fI = "flowIndex";
|
|
91
|
+
const _fIs = "fsId";
|
|
92
|
+
const _fN = "forwardName";
|
|
93
|
+
const _fST = "flowStartTime";
|
|
94
|
+
const _g = "giphy";
|
|
95
|
+
const _gI = "groupId";
|
|
96
|
+
const _gN = "groupName";
|
|
97
|
+
const _h = "handler";
|
|
98
|
+
const _hE = "httpError";
|
|
99
|
+
const _hH = "httpHeader";
|
|
100
|
+
const _hQ = "httpQuery";
|
|
101
|
+
const _he = "height";
|
|
102
|
+
const _ht = "http";
|
|
103
|
+
const _i = "id";
|
|
104
|
+
const _iF = "isFinal";
|
|
105
|
+
const _ic = "icon";
|
|
106
|
+
const _in = "index";
|
|
107
|
+
const _int = "intent";
|
|
108
|
+
const _j = "jid";
|
|
109
|
+
const _l = "licenses";
|
|
110
|
+
const _lR = "latestReactions";
|
|
111
|
+
const _la = "language";
|
|
112
|
+
const _li = "license";
|
|
113
|
+
const _lif = "lifecycle";
|
|
114
|
+
const _lim = "limit";
|
|
115
|
+
const _lin = "link";
|
|
116
|
+
const _lo = "location";
|
|
117
|
+
const _loc = "locale";
|
|
118
|
+
const _m = "message";
|
|
119
|
+
const _mI = "messageId";
|
|
120
|
+
const _ma = "markdown";
|
|
121
|
+
const _me = "mentions";
|
|
122
|
+
const _mi = "mime";
|
|
123
|
+
const _n = "name";
|
|
124
|
+
const _nSI = "nextStartIndex";
|
|
125
|
+
const _p = "parameters";
|
|
126
|
+
const _pA = "publicAddress";
|
|
127
|
+
const _pAr = "privateAddress";
|
|
128
|
+
const _pD = "pbxDomain";
|
|
129
|
+
const _pE = "pbxExtension";
|
|
130
|
+
const _pGI = "pbxGroupId";
|
|
131
|
+
const _pP = "pbxPort";
|
|
132
|
+
const _pS = "pbxSerial";
|
|
133
|
+
const _pUI = "pbxUserId";
|
|
134
|
+
const _pa = "participant";
|
|
135
|
+
const _pb = "pbx";
|
|
136
|
+
const _ph = "phone";
|
|
137
|
+
const _pi = "picture";
|
|
138
|
+
const _q = "quote";
|
|
139
|
+
const _r = "role";
|
|
140
|
+
const _rC = "reactionCounts";
|
|
141
|
+
const _re = "reply";
|
|
142
|
+
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.copilot.sessions";
|
|
143
|
+
const _sCI = "sipCallId";
|
|
144
|
+
const _sI = "sessionId";
|
|
145
|
+
const _sIt = "startIndex";
|
|
146
|
+
const _sS = "smsStatus";
|
|
147
|
+
const _se = "sentiment";
|
|
148
|
+
const _si = "silent";
|
|
149
|
+
const _siz = "size";
|
|
150
|
+
const _sm = "sms";
|
|
151
|
+
const _sp = "speaker";
|
|
152
|
+
const _st = "streaming";
|
|
153
|
+
const _sta = "start";
|
|
154
|
+
const _stat = "state";
|
|
155
|
+
const _statu = "status";
|
|
156
|
+
const _sti = "sticky";
|
|
157
|
+
const _sty = "styling";
|
|
158
|
+
const _t = "time";
|
|
159
|
+
const _tST = "transcriptionStartTime";
|
|
160
|
+
const _tZ = "timeZone";
|
|
161
|
+
const _te = "text";
|
|
162
|
+
const _tem = "template";
|
|
163
|
+
const _th = "thumbnail";
|
|
164
|
+
const _ti = "timestamp";
|
|
165
|
+
const _tr = "transcript";
|
|
166
|
+
const _ty = "type";
|
|
167
|
+
const _u = "url";
|
|
168
|
+
const _uA = "userAgent";
|
|
169
|
+
const _uAp = "updatedAt";
|
|
170
|
+
const _uD = "userDepartment";
|
|
171
|
+
const _uDs = "userDevice";
|
|
172
|
+
const _uE = "userExtension";
|
|
173
|
+
const _uI = "userId";
|
|
174
|
+
const _us = "user";
|
|
175
|
+
const _v = "value";
|
|
176
|
+
const _va = "variant";
|
|
177
|
+
const _w = "whatsapp";
|
|
178
|
+
const _wS = "whatsappStatus";
|
|
179
|
+
const _wi = "width";
|
|
180
|
+
const _xI = "xbsId";
|
|
181
|
+
const n0 = "smithy.framework";
|
|
182
|
+
const n1 = "wildix.wilma.copilot.sessions";
|
|
183
|
+
const n2 = "wildix.classound";
|
|
184
|
+
const n3 = "wildix.wda.stream";
|
|
185
|
+
const n4 = "wildix.xbees.conversations";
|
|
186
|
+
const schema_1 = require("@smithy/core/schema");
|
|
187
|
+
const errors_1 = require("../models/errors");
|
|
188
|
+
const WilmaCopilotSessionsServiceException_1 = require("../models/WilmaCopilotSessionsServiceException");
|
|
189
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
190
|
+
exports.WilmaCopilotSessionsServiceException$ = [-3, _s, "WilmaCopilotSessionsServiceException", 0, [], []];
|
|
191
|
+
_s_registry.registerError(exports.WilmaCopilotSessionsServiceException$, WilmaCopilotSessionsServiceException_1.WilmaCopilotSessionsServiceException);
|
|
192
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
193
|
+
exports.ForbiddenException$ = [-3, n0, _FE,
|
|
194
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
195
|
+
[_m],
|
|
196
|
+
[0], 1
|
|
197
|
+
];
|
|
198
|
+
n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
|
|
199
|
+
exports.NotFoundException$ = [-3, n0, _NFE,
|
|
200
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
201
|
+
[_m],
|
|
202
|
+
[0], 1
|
|
203
|
+
];
|
|
204
|
+
n0_registry.registerError(exports.NotFoundException$, errors_1.NotFoundException);
|
|
205
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
206
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
207
|
+
[_m],
|
|
208
|
+
[0], 1
|
|
209
|
+
];
|
|
210
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
211
|
+
exports.errorTypeRegistries = [
|
|
212
|
+
_s_registry,
|
|
213
|
+
n0_registry,
|
|
214
|
+
];
|
|
215
|
+
var CopilotSessionEventStreamBody = [0, n1, _CSESB, { [_st]: 1 }, 42];
|
|
216
|
+
exports.TemplateParameter$ = [3, n2, _TP,
|
|
217
|
+
0,
|
|
218
|
+
[_n, _v],
|
|
219
|
+
[0, 0], 2
|
|
220
|
+
];
|
|
221
|
+
exports.TemplateWithParameters$ = [3, n2, _TWP,
|
|
222
|
+
0,
|
|
223
|
+
[_n, _p],
|
|
224
|
+
[0, () => ListTemplateParameter], 1
|
|
225
|
+
];
|
|
226
|
+
exports.CallAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTE,
|
|
227
|
+
0,
|
|
228
|
+
[_i, _pb, _t, _co, _l, _ev, _fI, _fST, _cST, _ch, _pa],
|
|
229
|
+
[0, 0, 1, 0, 64 | 0, 0, 1, 1, 1, () => exports.CallTranscriptionChunk$, () => exports.CallParticipant$], 10
|
|
230
|
+
];
|
|
231
|
+
exports.CallParticipant$ = [3, n3, _CP,
|
|
232
|
+
0,
|
|
233
|
+
[_ty, _r, _ph, _n, _co, _em, _uI, _uE, _uD, _gI, _gN, _uA, _uDs, _li, _sCI, _pA, _pAr, _lo],
|
|
234
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
|
|
235
|
+
];
|
|
236
|
+
exports.CallTranscriptionChunk$ = [3, n3, _CTC,
|
|
237
|
+
0,
|
|
238
|
+
[_i, _t, _sp, _te, _iF, _sta, _en, _la, _con, _se],
|
|
239
|
+
[0, 1, 0, 0, 2, 1, 1, 0, 1, 0], 7
|
|
240
|
+
];
|
|
241
|
+
exports.ChatAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTEh,
|
|
242
|
+
0,
|
|
243
|
+
[_t, _co, _ev, _m, _i, _cI],
|
|
244
|
+
[1, 0, 0, () => exports.Message$, 0, 0], 4
|
|
245
|
+
];
|
|
246
|
+
exports.ConferenceAnalyticsLiveTranscriptionEvent$ = [3, n3, _CALTEo,
|
|
247
|
+
0,
|
|
248
|
+
[_i, _t, _co, _ev, _cSTo, _tST, _ch, _pa],
|
|
249
|
+
[0, 1, 0, 0, 1, 1, () => exports.ConferenceTranscriptionChunk$, () => exports.ConferenceParticipant$], 7
|
|
250
|
+
];
|
|
251
|
+
exports.ConferenceParticipant$ = [3, n3, _CPo,
|
|
252
|
+
0,
|
|
253
|
+
[_ty, _r, _j, _n, _em, _ph, _d, _co, _pS, _pE, _pGI, _xI, _li],
|
|
254
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 1
|
|
255
|
+
];
|
|
256
|
+
exports.ConferenceTranscriptionChunk$ = [3, n3, _CTCo,
|
|
257
|
+
0,
|
|
258
|
+
[_i, _t, _j, _te, _iF, _sta, _en, _la, _se],
|
|
259
|
+
[0, 1, 0, 0, 2, 1, 1, 0, 0], 7
|
|
260
|
+
];
|
|
261
|
+
exports.CopilotAssetEvent$ = [3, n1, _CAE,
|
|
262
|
+
0,
|
|
263
|
+
[_in, _ti, _i, _stat, _ic, _sty, _sti, _cont],
|
|
264
|
+
[1, 0, 0, 15, 0, 0, 2, 0], 4
|
|
265
|
+
];
|
|
266
|
+
exports.CopilotAssistantEvent$ = [3, n1, _CAEo,
|
|
267
|
+
0,
|
|
268
|
+
[_in, _ti, _i, _stat],
|
|
269
|
+
[1, 0, 0, 15], 4
|
|
270
|
+
];
|
|
271
|
+
exports.CopilotEvaluationEvent$ = [3, n1, _CEE,
|
|
272
|
+
0,
|
|
273
|
+
[_in, _ti, _i, _stat],
|
|
274
|
+
[1, 0, 0, 15], 4
|
|
275
|
+
];
|
|
276
|
+
exports.CopilotIntentEvent$ = [3, n1, _CIE,
|
|
277
|
+
0,
|
|
278
|
+
[_in, _ti, _i, _stat],
|
|
279
|
+
[1, 0, 0, 15], 4
|
|
280
|
+
];
|
|
281
|
+
exports.CopilotLifecycleEvent$ = [3, n1, _CLE,
|
|
282
|
+
0,
|
|
283
|
+
[_in, _ti, _sI, _statu],
|
|
284
|
+
[1, 0, 0, 0], 4
|
|
285
|
+
];
|
|
286
|
+
exports.CopilotTranscriptionEvent$ = [3, n1, _CTE,
|
|
287
|
+
0,
|
|
288
|
+
[_in, _ti, _da],
|
|
289
|
+
[1, 0, () => exports.CopilotTranscriptionData$], 3
|
|
290
|
+
];
|
|
291
|
+
exports.GetCopilotSessionEventsInput$ = [3, n1, _GCSEI,
|
|
292
|
+
0,
|
|
293
|
+
[_sI, _sIt, _lim],
|
|
294
|
+
[[0, 1], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
|
|
295
|
+
];
|
|
296
|
+
exports.GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
|
|
297
|
+
0,
|
|
298
|
+
[_eve, _nSI],
|
|
299
|
+
[() => CopilotSessionEvents, 1], 1
|
|
300
|
+
];
|
|
301
|
+
exports.StreamCopilotSessionEventsInput$ = [3, n1, _SCSEI,
|
|
302
|
+
0,
|
|
303
|
+
[_sI, _sIt],
|
|
304
|
+
[[0, 1], [1, { [_hQ]: _sIt }]], 1
|
|
305
|
+
];
|
|
306
|
+
exports.StreamCopilotSessionEventsOutput$ = [3, n1, _SCSEO,
|
|
307
|
+
0,
|
|
308
|
+
[_eve, _cT],
|
|
309
|
+
[[() => CopilotSessionEventStreamBody, 16], [0, { [_hH]: _CT }]], 2
|
|
310
|
+
];
|
|
311
|
+
exports.ButtonActionHandler$ = [3, n4, _BAH,
|
|
312
|
+
0,
|
|
313
|
+
[_i],
|
|
314
|
+
[0], 1
|
|
315
|
+
];
|
|
316
|
+
exports.ButtonElement$ = [3, n4, _BE,
|
|
317
|
+
0,
|
|
318
|
+
[_te, _h, _va, _di],
|
|
319
|
+
[0, () => exports.ButtonHandler$, 0, 2], 2
|
|
320
|
+
];
|
|
321
|
+
exports.ButtonLinkHandler$ = [3, n4, _BLH,
|
|
322
|
+
0,
|
|
323
|
+
[_u],
|
|
324
|
+
[0], 1
|
|
325
|
+
];
|
|
326
|
+
exports.ButtonReplyHandler$ = [3, n4, _BRH,
|
|
327
|
+
0,
|
|
328
|
+
[_te],
|
|
329
|
+
[0]
|
|
330
|
+
];
|
|
331
|
+
exports.Message$ = [3, n4, _M,
|
|
332
|
+
0,
|
|
333
|
+
[_ty, _mI, _cIh, _us, _cA, _te, _el, _a, _q, _f, _w, _wS, _sm, _sS, _ma, _g, _si, _ev, _ed, _me, _lR, _rC, _uAp],
|
|
334
|
+
[0, 0, 0, () => exports.User$, 0, 0, () => ElementsList, () => MessageAttachmentList, () => exports.MessageQuote$, () => exports.MessageForward$, 2, 0, 2, 0, 2, () => exports.MessageGiphy$, 2, 0, 2, () => UsersList, () => ReactionList, 128 | 1, 0], 5
|
|
335
|
+
];
|
|
336
|
+
exports.MessageAttachment$ = [3, n4, _MA,
|
|
337
|
+
0,
|
|
338
|
+
[_i, _fIs, _n, _siz, _mi, _wi, _he, _th],
|
|
339
|
+
[0, 0, 0, 1, 0, 1, 1, 0], 4
|
|
340
|
+
];
|
|
341
|
+
exports.MessageForward$ = [3, n4, _MF,
|
|
342
|
+
0,
|
|
343
|
+
[_fD, _mI, _cIh, _fC, _fE, _fN],
|
|
344
|
+
[0, 0, 0, 0, 0, 0], 3
|
|
345
|
+
];
|
|
346
|
+
exports.MessageGiphy$ = [3, n4, _MG,
|
|
347
|
+
0,
|
|
348
|
+
[_i, _siz, _u, _he, _wi],
|
|
349
|
+
[0, 0, 0, 0, 0], 5
|
|
350
|
+
];
|
|
351
|
+
exports.MessageQuote$ = [3, n4, _MQ,
|
|
352
|
+
0,
|
|
353
|
+
[_mI, _cIh, _us, _cA, _te, _a, _f, _me, _g, _uAp],
|
|
354
|
+
[0, 0, () => exports.User$, 0, 0, () => MessageAttachmentList, () => exports.MessageForward$, () => UsersList, () => exports.MessageGiphy$, 0], 4
|
|
355
|
+
];
|
|
356
|
+
exports.MessageTemplateConfig$ = [3, n4, _MTC,
|
|
357
|
+
0,
|
|
358
|
+
[_w],
|
|
359
|
+
[() => exports.TemplateWithParameters$]
|
|
360
|
+
];
|
|
361
|
+
exports.Reaction$ = [3, n4, _R,
|
|
362
|
+
0,
|
|
363
|
+
[_ty, _uI, _mI, _us],
|
|
364
|
+
[0, 0, 0, () => exports.User$]
|
|
365
|
+
];
|
|
366
|
+
exports.User$ = [3, n4, _U,
|
|
367
|
+
0,
|
|
368
|
+
[_i, _n, _em, _ph, _pi, _loc, _tZ, _co, _b, _pD, _pP, _pE, _pS, _pUI, _pGI, _cA, _uAp],
|
|
369
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], 1
|
|
370
|
+
];
|
|
371
|
+
var ListTemplateParameter = [1, n2, _LTP,
|
|
372
|
+
0, () => exports.TemplateParameter$
|
|
373
|
+
];
|
|
374
|
+
var LicensesList = 64 | 0;
|
|
375
|
+
var CopilotSessionEvents = [1, n1, _CSE,
|
|
376
|
+
0, () => exports.CopilotSessionEvent$
|
|
377
|
+
];
|
|
378
|
+
var ActionsElementsList = [1, n4, _AEL,
|
|
379
|
+
0, () => exports.ActionElement$
|
|
380
|
+
];
|
|
381
|
+
var ElementsList = [1, n4, _EL,
|
|
382
|
+
0, () => exports.Element$
|
|
383
|
+
];
|
|
384
|
+
var MessageAttachmentList = [1, n4, _MAL,
|
|
385
|
+
0, () => exports.MessageAttachment$
|
|
386
|
+
];
|
|
387
|
+
var ReactionList = [1, n4, _RL,
|
|
388
|
+
0, () => exports.Reaction$
|
|
389
|
+
];
|
|
390
|
+
var UsersList = [1, n4, _UL,
|
|
391
|
+
0, () => exports.User$
|
|
392
|
+
];
|
|
393
|
+
var ReactionCounts = 128 | 1;
|
|
394
|
+
exports.CopilotSessionEvent$ = [4, n1, _CSEo,
|
|
395
|
+
0,
|
|
396
|
+
[_lif, _tr, _int, _eva, _as, _ass],
|
|
397
|
+
[() => exports.CopilotLifecycleEvent$, () => exports.CopilotTranscriptionEvent$, () => exports.CopilotIntentEvent$, () => exports.CopilotEvaluationEvent$, () => exports.CopilotAssetEvent$, () => exports.CopilotAssistantEvent$]
|
|
398
|
+
];
|
|
399
|
+
exports.CopilotTranscriptionData$ = [4, n1, _CTD,
|
|
400
|
+
0,
|
|
401
|
+
[_ca, _cha, _conf],
|
|
402
|
+
[() => exports.CallAnalyticsLiveTranscriptionEvent$, () => exports.ChatAnalyticsLiveTranscriptionEvent$, () => exports.ConferenceAnalyticsLiveTranscriptionEvent$]
|
|
403
|
+
];
|
|
404
|
+
exports.ActionElement$ = [4, n4, _AE,
|
|
405
|
+
0,
|
|
406
|
+
[_bu],
|
|
407
|
+
[() => exports.ButtonElement$]
|
|
408
|
+
];
|
|
409
|
+
exports.ButtonHandler$ = [4, n4, _BH,
|
|
410
|
+
0,
|
|
411
|
+
[_lin, _re, _ac],
|
|
412
|
+
[() => exports.ButtonLinkHandler$, () => exports.ButtonReplyHandler$, () => exports.ButtonActionHandler$]
|
|
413
|
+
];
|
|
414
|
+
exports.Element$ = [4, n4, _E,
|
|
415
|
+
0,
|
|
416
|
+
[_tem, _act],
|
|
417
|
+
[() => exports.MessageTemplateConfig$, () => ActionsElementsList]
|
|
418
|
+
];
|
|
419
|
+
exports.GetCopilotSessionEvents$ = [9, n1, _GCSE,
|
|
420
|
+
{ [_ht]: ["GET", "/v1/sessions/{sessionId}/events", 200] }, () => exports.GetCopilotSessionEventsInput$, () => exports.GetCopilotSessionEventsOutput$
|
|
421
|
+
];
|
|
422
|
+
exports.StreamCopilotSessionEvents$ = [9, n1, _SCSE,
|
|
423
|
+
{ [_ht]: ["GET", "/v1/sessions/{sessionId}/events/stream", 200] }, () => exports.StreamCopilotSessionEventsInput$, () => exports.StreamCopilotSessionEventsOutput$
|
|
424
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { GetCopilotSessionEventsCommand, } from "./commands/GetCopilotSessionEventsCommand";
|
|
3
|
+
import { StreamCopilotSessionEventsCommand, } from "./commands/StreamCopilotSessionEventsCommand";
|
|
4
|
+
import { WilmaCopilotSessionsClient } from "./WilmaCopilotSessionsClient";
|
|
5
|
+
const commands = {
|
|
6
|
+
GetCopilotSessionEventsCommand,
|
|
7
|
+
StreamCopilotSessionEventsCommand,
|
|
8
|
+
};
|
|
9
|
+
export class WilmaCopilotSessions extends WilmaCopilotSessionsClient {
|
|
10
|
+
}
|
|
11
|
+
createAggregatedClient(commands, WilmaCopilotSessions);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
12
|
+
export { __Client };
|
|
13
|
+
export class WilmaCopilotSessionsClient extends __Client {
|
|
14
|
+
config;
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
|
+
super(_config_0);
|
|
18
|
+
this.initConfig = _config_0;
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveEndpointConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
35
|
+
httpAuthSchemeParametersProvider: defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider,
|
|
36
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
}),
|
|
39
|
+
}));
|
|
40
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
41
|
+
}
|
|
42
|
+
destroy() {
|
|
43
|
+
super.destroy();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function createWildixAuthApiKeysHttpAuthOption(authParameters) {
|
|
14
|
+
return {
|
|
15
|
+
schemeId: "wildix.auth#apiKeys",
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
19
|
+
return {
|
|
20
|
+
schemeId: "wildix.auth#pbx",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
24
|
+
return {
|
|
25
|
+
schemeId: "wildix.auth#s2s",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
29
|
+
return {
|
|
30
|
+
schemeId: "wildix.auth#xbs",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export const defaultWilmaCopilotSessionsHttpAuthSchemeProvider = (authParameters) => {
|
|
34
|
+
const options = [];
|
|
35
|
+
switch (authParameters.operation) {
|
|
36
|
+
default: {
|
|
37
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
38
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
39
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
40
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
41
|
+
options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return options;
|
|
45
|
+
};
|
|
46
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
47
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
48
|
+
return Object.assign(config, {
|
|
49
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
50
|
+
token,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCopilotSessionEvents$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetCopilotSessionEventsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaCopilotSessions", "GetCopilotSessionEvents", {})
|
|
13
|
+
.n("WilmaCopilotSessionsClient", "GetCopilotSessionEventsCommand")
|
|
14
|
+
.sc(GetCopilotSessionEvents$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { StreamCopilotSessionEvents$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class StreamCopilotSessionEventsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaCopilotSessions", "StreamCopilotSessionEvents", {})
|
|
13
|
+
.n("WilmaCopilotSessionsClient", "StreamCopilotSessionEventsCommand")
|
|
14
|
+
.sc(StreamCopilotSessionEvents$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clientContextParamDefaults = {};
|
|
2
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
3
|
+
return Object.assign(options, {
|
|
4
|
+
env: options.env ?? "prod",
|
|
5
|
+
defaultSigningName: "",
|
|
6
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
env: { type: "clientContextParams", name: "env" },
|
|
11
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://api-stable.wilma.wildix.com", {}],
|
|
13
|
+
["https://api-stage.wilma.wildix.com", {}],
|
|
14
|
+
["https://api.wilma.wildix.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./WilmaCopilotSessionsClient";
|
|
2
|
+
export * from "./WilmaCopilotSessions";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export * from "./models/models_0";
|
|
8
|
+
export { WilmaCopilotSessionsServiceException } from "./models/WilmaCopilotSessionsServiceException";
|