@wildix/wda-history-client 1.2.29 → 4.0.1

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 (108) hide show
  1. package/dist-cjs/WdaHistory.js +3 -3
  2. package/dist-cjs/WdaHistoryClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/GetCallAnnotationsCommand.js +10 -11
  6. package/dist-cjs/commands/GetCallCommand.js +10 -11
  7. package/dist-cjs/commands/GetCallTranscriptionCommand.js +10 -11
  8. package/dist-cjs/commands/GetCallTranscriptionTextCommand.js +10 -11
  9. package/dist-cjs/commands/GetChatAnnotationsCommand.js +10 -11
  10. package/dist-cjs/commands/GetChatCommand.js +10 -11
  11. package/dist-cjs/commands/GetChatTranscriptionCommand.js +10 -11
  12. package/dist-cjs/commands/GetChatTranscriptionTextCommand.js +10 -11
  13. package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +10 -11
  14. package/dist-cjs/commands/GetConferenceCommand.js +10 -11
  15. package/dist-cjs/commands/GetConferenceTranscriptionCommand.js +10 -11
  16. package/dist-cjs/commands/GetConferenceTranscriptionTextCommand.js +10 -11
  17. package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
  18. package/dist-cjs/commands/QueryUserCallsCommand.js +10 -11
  19. package/dist-cjs/commands/UpdateCallCommand.js +10 -11
  20. package/dist-cjs/commands/index.js +3 -3
  21. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  22. package/dist-cjs/endpoint/bdd.js +25 -0
  23. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  24. package/dist-cjs/index.js +4 -1
  25. package/dist-cjs/models/WdaHistoryServiceException.js +3 -3
  26. package/dist-cjs/models/enums.js +204 -0
  27. package/dist-cjs/models/errors.js +147 -0
  28. package/dist-cjs/models/models_0.js +0 -413
  29. package/dist-cjs/runtimeConfig.browser.js +11 -11
  30. package/dist-cjs/runtimeConfig.js +22 -18
  31. package/dist-cjs/runtimeConfig.shared.js +30 -10
  32. package/dist-cjs/runtimeExtensions.js +6 -5
  33. package/dist-cjs/schemas/schemas_0.js +1047 -0
  34. package/dist-es/WdaHistory.js +4 -4
  35. package/dist-es/WdaHistoryClient.js +30 -22
  36. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  37. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  38. package/dist-es/commands/GetCallAnnotationsCommand.js +9 -10
  39. package/dist-es/commands/GetCallCommand.js +9 -10
  40. package/dist-es/commands/GetCallTranscriptionCommand.js +9 -10
  41. package/dist-es/commands/GetCallTranscriptionTextCommand.js +9 -10
  42. package/dist-es/commands/GetChatAnnotationsCommand.js +9 -10
  43. package/dist-es/commands/GetChatCommand.js +9 -10
  44. package/dist-es/commands/GetChatTranscriptionCommand.js +9 -10
  45. package/dist-es/commands/GetChatTranscriptionTextCommand.js +9 -10
  46. package/dist-es/commands/GetConferenceAnnotationsCommand.js +9 -10
  47. package/dist-es/commands/GetConferenceCommand.js +9 -10
  48. package/dist-es/commands/GetConferenceTranscriptionCommand.js +9 -10
  49. package/dist-es/commands/GetConferenceTranscriptionTextCommand.js +9 -10
  50. package/dist-es/commands/QueryConversationsCommand.js +9 -10
  51. package/dist-es/commands/QueryUserCallsCommand.js +9 -10
  52. package/dist-es/commands/UpdateCallCommand.js +9 -10
  53. package/dist-es/commands/index.js +3 -3
  54. package/dist-es/endpoint/EndpointParameters.js +12 -0
  55. package/dist-es/endpoint/bdd.js +22 -0
  56. package/dist-es/endpoint/endpointResolver.js +12 -0
  57. package/dist-es/index.js +4 -1
  58. package/dist-es/models/WdaHistoryServiceException.js +1 -1
  59. package/dist-es/models/enums.js +201 -0
  60. package/dist-es/models/errors.js +133 -0
  61. package/dist-es/models/models_0.js +1 -400
  62. package/dist-es/runtimeConfig.browser.js +7 -7
  63. package/dist-es/runtimeConfig.js +17 -13
  64. package/dist-es/runtimeConfig.shared.js +24 -4
  65. package/dist-es/runtimeExtensions.js +6 -5
  66. package/dist-es/schemas/schemas_0.js +1042 -0
  67. package/dist-types/WdaHistory.d.ts +16 -16
  68. package/dist-types/WdaHistoryClient.d.ts +45 -27
  69. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  70. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  71. package/dist-types/commands/GetCallAnnotationsCommand.d.ts +11 -7
  72. package/dist-types/commands/GetCallCommand.d.ts +11 -7
  73. package/dist-types/commands/GetCallTranscriptionCommand.d.ts +11 -7
  74. package/dist-types/commands/GetCallTranscriptionTextCommand.d.ts +11 -7
  75. package/dist-types/commands/GetChatAnnotationsCommand.d.ts +11 -7
  76. package/dist-types/commands/GetChatCommand.d.ts +11 -7
  77. package/dist-types/commands/GetChatTranscriptionCommand.d.ts +11 -7
  78. package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +11 -7
  79. package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +11 -7
  80. package/dist-types/commands/GetConferenceCommand.d.ts +11 -7
  81. package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +11 -7
  82. package/dist-types/commands/GetConferenceTranscriptionTextCommand.d.ts +11 -7
  83. package/dist-types/commands/QueryConversationsCommand.d.ts +11 -7
  84. package/dist-types/commands/QueryUserCallsCommand.d.ts +11 -7
  85. package/dist-types/commands/UpdateCallCommand.d.ts +11 -7
  86. package/dist-types/commands/index.d.ts +3 -3
  87. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  88. package/dist-types/endpoint/bdd.d.ts +2 -0
  89. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  90. package/dist-types/extensionConfiguration.d.ts +4 -3
  91. package/dist-types/index.d.ts +5 -1
  92. package/dist-types/models/WdaHistoryServiceException.d.ts +1 -1
  93. package/dist-types/models/enums.d.ts +505 -0
  94. package/dist-types/models/errors.d.ts +123 -0
  95. package/dist-types/models/models_0.d.ts +83 -692
  96. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  97. package/dist-types/runtimeConfig.d.ts +34 -15
  98. package/dist-types/runtimeConfig.native.d.ts +36 -17
  99. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  100. package/dist-types/runtimeExtensions.d.ts +1 -1
  101. package/dist-types/schemas/schemas_0.d.ts +127 -0
  102. package/package.json +14 -40
  103. package/dist-cjs/models/index.js +0 -4
  104. package/dist-cjs/protocols/Aws_restJson1.js +0 -868
  105. package/dist-es/models/index.js +0 -1
  106. package/dist-es/protocols/Aws_restJson1.js +0 -835
  107. package/dist-types/models/index.d.ts +0 -1
  108. package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
@@ -1,415 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.ConferenceAnnotationsNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.ChatAnnotationsNotFoundException = exports.TranscriptionSentiment = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.AnnotationsStatus = exports.CallNotFoundException = exports.RecordType = exports.License = exports.AnnotationSourceType = exports.AnnotationPayload = exports.CallAnnotationsNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
- exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = void 0;
5
- const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
6
- class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
7
- name = "ForbiddenException";
8
- $fault = "client";
9
- constructor(opts) {
10
- super({
11
- name: "ForbiddenException",
12
- $fault: "client",
13
- ...opts
14
- });
15
- Object.setPrototypeOf(this, ForbiddenException.prototype);
16
- }
17
- }
18
- exports.ForbiddenException = ForbiddenException;
19
- class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
20
- name = "ValidationException";
21
- $fault = "client";
22
- constructor(opts) {
23
- super({
24
- name: "ValidationException",
25
- $fault: "client",
26
- ...opts
27
- });
28
- Object.setPrototypeOf(this, ValidationException.prototype);
29
- }
30
- }
31
- exports.ValidationException = ValidationException;
32
- exports.CallDirection = {
33
- INBOUND: "INBOUND",
34
- INTERNAL: "INTERNAL",
35
- OUTBOUND: "OUTBOUND",
36
- UNDEFINED: "UNDEFINED",
37
- };
38
- exports.ConversationStatus = {
39
- COMPLETED: "COMPLETED",
40
- MISSED: "MISSED",
41
- };
42
- class CallAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
43
- name = "CallAnnotationsNotFoundException";
44
- $fault = "client";
45
- constructor(opts) {
46
- super({
47
- name: "CallAnnotationsNotFoundException",
48
- $fault: "client",
49
- ...opts
50
- });
51
- Object.setPrototypeOf(this, CallAnnotationsNotFoundException.prototype);
52
- }
53
- }
54
- exports.CallAnnotationsNotFoundException = CallAnnotationsNotFoundException;
55
- var AnnotationPayload;
56
- (function (AnnotationPayload) {
57
- AnnotationPayload.visit = (value, visitor) => {
58
- if (value.tag !== undefined)
59
- return visitor.tag(value.tag);
60
- if (value.text !== undefined)
61
- return visitor.text(value.text);
62
- if (value.variables !== undefined)
63
- return visitor.variables(value.variables);
64
- if (value.result !== undefined)
65
- return visitor.result(value.result);
66
- return visitor._(value.$unknown[0], value.$unknown[1]);
67
- };
68
- })(AnnotationPayload || (exports.AnnotationPayload = AnnotationPayload = {}));
69
- exports.AnnotationSourceType = {
70
- CHATBOT: "chatbot",
71
- SYSTEM: "system",
72
- USER: "user",
73
- VOICEBOT: "voicebot",
74
- };
75
- exports.License = {
76
- UC: "uc",
77
- XBEES: "x-bees",
78
- };
79
- exports.RecordType = {
80
- CALL: "call",
81
- CALL_ANNOTATIONS: "call_annotations",
82
- CALL_TRANSCRIPTION: "call_transcription",
83
- CHAT: "chat",
84
- CHAT_ANNOTATIONS: "chat_annotations",
85
- CHAT_TRANSCRIPTION: "chat_transcription",
86
- CONFERENCE: "conference",
87
- CONFERENCE_ANNOTATIONS: "conference_annotations",
88
- CONFERENCE_TRANSCRIPTION: "conference_transcription",
89
- };
90
- class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
91
- name = "CallNotFoundException";
92
- $fault = "client";
93
- constructor(opts) {
94
- super({
95
- name: "CallNotFoundException",
96
- $fault: "client",
97
- ...opts
98
- });
99
- Object.setPrototypeOf(this, CallNotFoundException.prototype);
100
- }
101
- }
102
- exports.CallNotFoundException = CallNotFoundException;
103
- exports.AnnotationsStatus = {
104
- AVAILABLE: "AVAILABLE",
105
- UNAVAILABLE: "UNAVAILABLE",
106
- };
107
- exports.CallRecordOwner = {
108
- CALLEE: "callee",
109
- CALLER: "caller",
110
- SYSTEM: "system",
111
- };
112
- exports.CallFlowAttachmentStatus = {
113
- ERROR: "error",
114
- OK: "ok",
115
- };
116
- exports.CallRecordPauseReason = {
117
- HOLD: "hold",
118
- PAUSE: "pause",
119
- };
120
- var CallFlowAttachment;
121
- (function (CallFlowAttachment) {
122
- CallFlowAttachment.visit = (value, visitor) => {
123
- if (value.recording !== undefined)
124
- return visitor.recording(value.recording);
125
- if (value.fax !== undefined)
126
- return visitor.fax(value.fax);
127
- if (value.voicemail !== undefined)
128
- return visitor.voicemail(value.voicemail);
129
- return visitor._(value.$unknown[0], value.$unknown[1]);
130
- };
131
- })(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
132
- exports.CallFlowAttachmentType = {
133
- FAX: "FAX",
134
- VOICEMAIL: "VOICEMAIL",
135
- };
136
- exports.CallParticipantRole = {
137
- AGENT: "AGENT",
138
- CLIENT: "CLIENT",
139
- };
140
- exports.CallParticipantType = {
141
- LOCAL: "LOCAL",
142
- REMOTE: "REMOTE",
143
- };
144
- exports.CallDevice = {
145
- COLLABORATION7_ANDROID: "COLLABORATION7_ANDROID",
146
- COLLABORATION7_IOS: "COLLABORATION7_IOS",
147
- COLLABORATION7_WEB: "COLLABORATION7_WEB",
148
- COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
149
- COLLABORATION_IOS: "COLLABORATION_IOS",
150
- COLLABORATION_WEB: "COLLABORATION_WEB",
151
- TEAMS4WILDIX: "TEAMS4WILDIX",
152
- UNKNOWN: "UNKNOWN",
153
- VOICEBOT: "VOICEBOT",
154
- WILDIX_DEVICE: "WILDIX_DEVICE",
155
- WILDIX_PHONE: "WILDIX_PHONE",
156
- XBEES_ANDROID: "XBEES_ANDROID",
157
- XBEES_IOS: "XBEES_IOS",
158
- XBEES_WEB: "XBEES_WEB",
159
- XHOPPERS_ANDROID: "XHOPPERS_ANDROID",
160
- XHOPPERS_IOS: "XHOPPERS_IOS",
161
- XHOPPERS_WEB: "XHOPPERS_WEB",
162
- };
163
- exports.CallFlowTranscriptionStatus = {
164
- AVAILABLE: "AVAILABLE",
165
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
166
- UNAVAILABLE: "UNAVAILABLE",
167
- };
168
- exports.CallTranscriptionSpeaker = {
169
- CALLEE: "callee",
170
- CALLER: "caller",
171
- };
172
- class CallTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
173
- name = "CallTranscriptionNotFoundException";
174
- $fault = "client";
175
- constructor(opts) {
176
- super({
177
- name: "CallTranscriptionNotFoundException",
178
- $fault: "client",
179
- ...opts
180
- });
181
- Object.setPrototypeOf(this, CallTranscriptionNotFoundException.prototype);
182
- }
183
- }
184
- exports.CallTranscriptionNotFoundException = CallTranscriptionNotFoundException;
185
- exports.TranscriptionSentiment = {
186
- MIXED: "MIXED",
187
- NEGATIVE: "NEGATIVE",
188
- NEUTRAL: "NEUTRAL",
189
- POSITIVE: "POSITIVE",
190
- };
191
- class ChatAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
192
- name = "ChatAnnotationsNotFoundException";
193
- $fault = "client";
194
- constructor(opts) {
195
- super({
196
- name: "ChatAnnotationsNotFoundException",
197
- $fault: "client",
198
- ...opts
199
- });
200
- Object.setPrototypeOf(this, ChatAnnotationsNotFoundException.prototype);
201
- }
202
- }
203
- exports.ChatAnnotationsNotFoundException = ChatAnnotationsNotFoundException;
204
- class ChatNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
205
- name = "ChatNotFoundException";
206
- $fault = "client";
207
- constructor(opts) {
208
- super({
209
- name: "ChatNotFoundException",
210
- $fault: "client",
211
- ...opts
212
- });
213
- Object.setPrototypeOf(this, ChatNotFoundException.prototype);
214
- }
215
- }
216
- exports.ChatNotFoundException = ChatNotFoundException;
217
- exports.ChannelAccess = {
218
- PRIVATE: "private",
219
- PUBLIC: "public",
220
- };
221
- exports.ChannelType = {
222
- DIRECT: "direct",
223
- GROUP: "group",
224
- };
225
- exports.ChannelContextEventAttendeeStatus = {
226
- ACCEPTED: "accepted",
227
- DECLINED: "declined",
228
- NONE: "none",
229
- TENTATIVE: "tentative",
230
- };
231
- exports.ChannelContextSource = {
232
- KITE: "kite",
233
- };
234
- exports.ChannelWhatsAppStatus = {
235
- CHANNEL_CLOSED: "24h_channel_closed",
236
- };
237
- exports.ChatDirection = {
238
- INBOUND: "INBOUND",
239
- INTERNAL: "INTERNAL",
240
- OUTBOUND: "OUTBOUND",
241
- };
242
- exports.ChatParticipantRole = {
243
- AGENT: "AGENT",
244
- CLIENT: "CLIENT",
245
- };
246
- exports.ChatParticipantType = {
247
- LOCAL: "LOCAL",
248
- REMOTE: "REMOTE",
249
- };
250
- exports.ChatStatus = {
251
- COMPLETED: "COMPLETED",
252
- MISSED: "MISSED",
253
- WAITFIRSTREPLY: "WAITFIRSTREPLY",
254
- WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
255
- WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
256
- };
257
- exports.ChatTag = {
258
- SMS: "sms",
259
- TELEPHONY: "telephony",
260
- WHATSAPP: "whatsapp",
261
- };
262
- class ChatTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
263
- name = "ChatTranscriptionNotFoundException";
264
- $fault = "client";
265
- constructor(opts) {
266
- super({
267
- name: "ChatTranscriptionNotFoundException",
268
- $fault: "client",
269
- ...opts
270
- });
271
- Object.setPrototypeOf(this, ChatTranscriptionNotFoundException.prototype);
272
- }
273
- }
274
- exports.ChatTranscriptionNotFoundException = ChatTranscriptionNotFoundException;
275
- var ButtonHandler;
276
- (function (ButtonHandler) {
277
- ButtonHandler.visit = (value, visitor) => {
278
- if (value.link !== undefined)
279
- return visitor.link(value.link);
280
- if (value.reply !== undefined)
281
- return visitor.reply(value.reply);
282
- if (value.action !== undefined)
283
- return visitor.action(value.action);
284
- return visitor._(value.$unknown[0], value.$unknown[1]);
285
- };
286
- })(ButtonHandler || (exports.ButtonHandler = ButtonHandler = {}));
287
- exports.ButtonVariant = {
288
- CONTAINED: "contained",
289
- OUTLINED: "outlined",
290
- };
291
- var ActionElement;
292
- (function (ActionElement) {
293
- ActionElement.visit = (value, visitor) => {
294
- if (value.button !== undefined)
295
- return visitor.button(value.button);
296
- return visitor._(value.$unknown[0], value.$unknown[1]);
297
- };
298
- })(ActionElement || (exports.ActionElement = ActionElement = {}));
299
- var Element;
300
- (function (Element) {
301
- Element.visit = (value, visitor) => {
302
- if (value.template !== undefined)
303
- return visitor.template(value.template);
304
- if (value.actions !== undefined)
305
- return visitor.actions(value.actions);
306
- return visitor._(value.$unknown[0], value.$unknown[1]);
307
- };
308
- })(Element || (exports.Element = Element = {}));
309
- exports.MessageSmsStatus = {
310
- DELIVERED: "delivered",
311
- ERROR: "error",
312
- SENT: "sent",
313
- TRYING: "trying",
314
- };
315
- exports.MessageType = {
316
- DELETED: "deleted",
317
- REGULAR: "regular",
318
- SYSTEM: "system",
319
- };
320
- exports.MessageWhatsAppStatus = {
321
- DELIVERED: "delivered",
322
- ERROR: "error",
323
- SENT: "sent",
324
- TRYING: "trying",
325
- };
326
- class ConferenceAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
327
- name = "ConferenceAnnotationsNotFoundException";
328
- $fault = "client";
329
- constructor(opts) {
330
- super({
331
- name: "ConferenceAnnotationsNotFoundException",
332
- $fault: "client",
333
- ...opts
334
- });
335
- Object.setPrototypeOf(this, ConferenceAnnotationsNotFoundException.prototype);
336
- }
337
- }
338
- exports.ConferenceAnnotationsNotFoundException = ConferenceAnnotationsNotFoundException;
339
- class ConferenceNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
340
- name = "ConferenceNotFoundException";
341
- $fault = "client";
342
- constructor(opts) {
343
- super({
344
- name: "ConferenceNotFoundException",
345
- $fault: "client",
346
- ...opts
347
- });
348
- Object.setPrototypeOf(this, ConferenceNotFoundException.prototype);
349
- }
350
- }
351
- exports.ConferenceNotFoundException = ConferenceNotFoundException;
352
- exports.ConferenceDirection = {
353
- INBOUND: "INBOUND",
354
- INTERNAL: "INTERNAL",
355
- OUTBOUND: "OUTBOUND",
356
- };
357
- exports.PbxLicenseType = {
358
- BASIC: "basic",
359
- BUSINESS: "business",
360
- ESSENTIAL: "essential",
361
- PREMIUM: "premium",
362
- WIZYCONF: "wizyconf",
363
- };
364
- exports.ConferenceParticipantRole = {
365
- AGENT: "AGENT",
366
- CLIENT: "CLIENT",
367
- };
368
- exports.ConferenceParticipantType = {
369
- EXTERNAL: "EXTERNAL",
370
- EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
371
- PBX: "PBX",
372
- PBX_SIP: "PBX_SIP",
373
- XBS: "XBS",
374
- };
375
- exports.ConferenceTranscriptionStatus = {
376
- AVAILABLE: "AVAILABLE",
377
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
378
- UNAVAILABLE: "UNAVAILABLE",
379
- };
380
- class ConferenceTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
381
- name = "ConferenceTranscriptionNotFoundException";
382
- $fault = "client";
383
- constructor(opts) {
384
- super({
385
- name: "ConferenceTranscriptionNotFoundException",
386
- $fault: "client",
387
- ...opts
388
- });
389
- Object.setPrototypeOf(this, ConferenceTranscriptionNotFoundException.prototype);
390
- }
391
- }
392
- exports.ConferenceTranscriptionNotFoundException = ConferenceTranscriptionNotFoundException;
393
- var Conversation;
394
- (function (Conversation) {
395
- Conversation.visit = (value, visitor) => {
396
- if (value.call !== undefined)
397
- return visitor.call(value.call);
398
- if (value.conference !== undefined)
399
- return visitor.conference(value.conference);
400
- return visitor._(value.$unknown[0], value.$unknown[1]);
401
- };
402
- })(Conversation || (exports.Conversation = Conversation = {}));
403
- exports.ConversationDirection = {
404
- INBOUND: "INBOUND",
405
- INTERNAL: "INTERNAL",
406
- OUTBOUND: "OUTBOUND",
407
- };
408
- exports.ConversationFlag = {
409
- FAX: "FAX",
410
- VOICEMAIL: "VOICEMAIL",
411
- };
412
- exports.ConversationUserDirection = {
413
- INCOMING: "INCOMING",
414
- OUTGOING: "OUTGOING",
415
- };
@@ -4,27 +4,27 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
7
+ const client_1 = require("@aws-sdk/core/client");
8
+ const client_2 = require("@smithy/core/client");
9
+ const config_1 = require("@smithy/core/config");
10
+ const retry_1 = require("@smithy/core/retry");
11
+ const serde_1 = require("@smithy/core/serde");
8
12
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
9
- const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
10
- const util_retry_1 = require("@smithy/util-retry");
11
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
12
- const smithy_client_1 = require("@smithy/smithy-client");
13
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
14
14
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
15
+ const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
17
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
18
18
  return {
19
19
  ...clientSharedValues,
20
20
  ...config,
21
21
  runtime: "browser",
22
22
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
25
- maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
23
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
25
+ maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
26
26
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
27
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
28
28
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
29
29
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
30
30
  };
@@ -3,35 +3,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
7
- const hash_node_1 = require("@smithy/hash-node");
8
- const middleware_retry_1 = require("@smithy/middleware-retry");
9
- const node_config_provider_1 = require("@smithy/node-config-provider");
6
+ const client_1 = require("@aws-sdk/core/client");
7
+ const client_2 = require("@smithy/core/client");
8
+ const config_1 = require("@smithy/core/config");
9
+ const retry_1 = require("@smithy/core/retry");
10
+ const serde_1 = require("@smithy/core/serde");
10
11
  const node_http_handler_1 = require("@smithy/node-http-handler");
11
- const util_body_length_node_1 = require("@smithy/util-body-length-node");
12
- const util_retry_1 = require("@smithy/util-retry");
13
12
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
- const smithy_client_1 = require("@smithy/smithy-client");
15
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
16
- const smithy_client_2 = require("@smithy/smithy-client");
17
13
  const getRuntimeConfig = (config) => {
18
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
19
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
20
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
14
+ (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
15
+ const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
21
17
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
18
+ const loaderConfig = {
19
+ profile: config?.profile,
20
+ logger: clientSharedValues.logger,
21
+ };
22
22
  return {
23
23
  ...clientSharedValues,
24
24
  ...config,
25
25
  runtime: "node",
26
26
  defaultsMode,
27
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
28
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
29
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
30
30
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
31
- retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }, config),
32
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
31
+ retryMode: config?.retryMode ??
32
+ (0, config_1.loadConfig)({
33
+ ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
34
+ default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
35
+ }, config),
36
+ sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
33
37
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
34
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, { profile: 'wildix' }),
38
+ userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
35
39
  };
36
40
  };
37
41
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,21 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const url_parser_1 = require("@smithy/url-parser");
6
- const util_base64_1 = require("@smithy/util-base64");
7
- const util_utf8_1 = require("@smithy/util-utf8");
4
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
+ const core_1 = require("@smithy/core");
6
+ const client_1 = require("@smithy/core/client");
7
+ const protocols_2 = require("@smithy/core/protocols");
8
+ const serde_1 = require("@smithy/core/serde");
9
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
11
+ const schemas_0_1 = require("./schemas/schemas_0");
8
12
  const getRuntimeConfig = (config) => {
9
13
  return {
10
14
  apiVersion: "v2",
11
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
15
+ base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
+ base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
13
17
  disableHostPrefix: config?.disableHostPrefix ?? false,
18
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
14
19
  extensions: config?.extensions ?? [],
15
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
17
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
18
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
20
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultWdaHistoryHttpAuthSchemeProvider,
21
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
22
+ {
23
+ schemeId: "smithy.api#httpBearerAuth",
24
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
25
+ signer: new core_1.HttpBearerAuthSigner(),
26
+ },
27
+ ],
28
+ logger: config?.logger ?? new client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "wildix.wda.history",
32
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
+ version: "v2",
34
+ serviceTarget: "WdaHistory",
35
+ },
36
+ urlParser: config?.urlParser ?? protocols_2.parseUrl,
37
+ utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
19
39
  };
20
40
  };
21
41
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
5
- const smithy_client_1 = require("@smithy/smithy-client");
4
+ const client_1 = require("@smithy/core/client");
5
+ const protocols_1 = require("@smithy/core/protocols");
6
+ const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
6
7
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig));
8
- extensions.forEach(extension => extension.configure(extensionConfiguration));
9
- return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration));
8
+ const extensionConfiguration = Object.assign((0, client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocols_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
9
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
10
+ return Object.assign(runtimeConfig, (0, client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocols_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
10
11
  };
11
12
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;