@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
@@ -0,0 +1,22 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = { "ref": "endpoint" };
3
+ const _data = {
4
+ conditions: [
5
+ ["isSet", [a]],
6
+ ["stringEquals", [{ ref: "env" }, "prod"]]
7
+ ],
8
+ results: [
9
+ [-1],
10
+ [a, {}],
11
+ ["https://wda.wildix.com", {}],
12
+ ["https://wda-{env}.wildix.com", {}]
13
+ ]
14
+ };
15
+ const root = 2;
16
+ const r = 100_000_000;
17
+ const nodes = new Int32Array([
18
+ -1, 1, -1,
19
+ 0, r + 1, 3,
20
+ 1, r + 2, r + 3,
21
+ ]);
22
+ 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
+ };
package/dist-es/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  export * from "./WdaHistoryClient";
2
2
  export * from "./WdaHistory";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./schemas/schemas_0";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
7
+ export * from "./models/models_0";
5
8
  export { WdaHistoryServiceException } from "./models/WdaHistoryServiceException";
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class WdaHistoryServiceException extends __ServiceException {
4
4
  constructor(options) {
@@ -0,0 +1,201 @@
1
+ export const CallDirection = {
2
+ INBOUND: "INBOUND",
3
+ INTERNAL: "INTERNAL",
4
+ OUTBOUND: "OUTBOUND",
5
+ UNDEFINED: "UNDEFINED",
6
+ };
7
+ export const ConversationStatus = {
8
+ COMPLETED: "COMPLETED",
9
+ MISSED: "MISSED",
10
+ };
11
+ export const AnnotationSourceType = {
12
+ CHATBOT: "chatbot",
13
+ SYSTEM: "system",
14
+ USER: "user",
15
+ VOICEBOT: "voicebot",
16
+ };
17
+ export const License = {
18
+ UC: "uc",
19
+ XBEES: "x-bees",
20
+ };
21
+ export const RecordType = {
22
+ CALL: "call",
23
+ CALL_ANNOTATIONS: "call_annotations",
24
+ CALL_TRANSCRIPTION: "call_transcription",
25
+ CHAT: "chat",
26
+ CHAT_ANNOTATIONS: "chat_annotations",
27
+ CHAT_TRANSCRIPTION: "chat_transcription",
28
+ CONFERENCE: "conference",
29
+ CONFERENCE_ANNOTATIONS: "conference_annotations",
30
+ CONFERENCE_TRANSCRIPTION: "conference_transcription",
31
+ };
32
+ export const AnnotationsStatus = {
33
+ AVAILABLE: "AVAILABLE",
34
+ UNAVAILABLE: "UNAVAILABLE",
35
+ };
36
+ export const CallRecordOwner = {
37
+ CALLEE: "callee",
38
+ CALLER: "caller",
39
+ SYSTEM: "system",
40
+ };
41
+ export const CallFlowAttachmentStatus = {
42
+ ERROR: "error",
43
+ OK: "ok",
44
+ };
45
+ export const CallRecordPauseReason = {
46
+ HOLD: "hold",
47
+ PAUSE: "pause",
48
+ };
49
+ export const CallFlowAttachmentType = {
50
+ FAX: "FAX",
51
+ VOICEMAIL: "VOICEMAIL",
52
+ };
53
+ export const CallParticipantRole = {
54
+ AGENT: "AGENT",
55
+ CLIENT: "CLIENT",
56
+ };
57
+ export const CallParticipantType = {
58
+ LOCAL: "LOCAL",
59
+ REMOTE: "REMOTE",
60
+ };
61
+ export const CallDevice = {
62
+ COLLABORATION7_ANDROID: "COLLABORATION7_ANDROID",
63
+ COLLABORATION7_IOS: "COLLABORATION7_IOS",
64
+ COLLABORATION7_WEB: "COLLABORATION7_WEB",
65
+ COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
66
+ COLLABORATION_IOS: "COLLABORATION_IOS",
67
+ COLLABORATION_WEB: "COLLABORATION_WEB",
68
+ TEAMS4WILDIX: "TEAMS4WILDIX",
69
+ UNKNOWN: "UNKNOWN",
70
+ VOICEBOT: "VOICEBOT",
71
+ WILDIX_DEVICE: "WILDIX_DEVICE",
72
+ WILDIX_PHONE: "WILDIX_PHONE",
73
+ XBEES_ANDROID: "XBEES_ANDROID",
74
+ XBEES_IOS: "XBEES_IOS",
75
+ XBEES_WEB: "XBEES_WEB",
76
+ XHOPPERS_ANDROID: "XHOPPERS_ANDROID",
77
+ XHOPPERS_IOS: "XHOPPERS_IOS",
78
+ XHOPPERS_WEB: "XHOPPERS_WEB",
79
+ };
80
+ export const CallFlowTranscriptionStatus = {
81
+ AVAILABLE: "AVAILABLE",
82
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
83
+ UNAVAILABLE: "UNAVAILABLE",
84
+ };
85
+ export const CallTranscriptionSpeaker = {
86
+ CALLEE: "callee",
87
+ CALLER: "caller",
88
+ };
89
+ export const TranscriptionSentiment = {
90
+ MIXED: "MIXED",
91
+ NEGATIVE: "NEGATIVE",
92
+ NEUTRAL: "NEUTRAL",
93
+ POSITIVE: "POSITIVE",
94
+ };
95
+ export const ChannelAccess = {
96
+ PRIVATE: "private",
97
+ PUBLIC: "public",
98
+ };
99
+ export const ChannelType = {
100
+ DIRECT: "direct",
101
+ GROUP: "group",
102
+ };
103
+ export const ChannelContextEventAttendeeStatus = {
104
+ ACCEPTED: "accepted",
105
+ DECLINED: "declined",
106
+ NONE: "none",
107
+ TENTATIVE: "tentative",
108
+ };
109
+ export const ChannelContextSource = {
110
+ KITE: "kite",
111
+ };
112
+ export const ChannelWhatsAppStatus = {
113
+ CHANNEL_CLOSED: "24h_channel_closed",
114
+ };
115
+ export const ChatDirection = {
116
+ INBOUND: "INBOUND",
117
+ INTERNAL: "INTERNAL",
118
+ OUTBOUND: "OUTBOUND",
119
+ };
120
+ export const ChatParticipantRole = {
121
+ AGENT: "AGENT",
122
+ CLIENT: "CLIENT",
123
+ };
124
+ export const ChatParticipantType = {
125
+ LOCAL: "LOCAL",
126
+ REMOTE: "REMOTE",
127
+ };
128
+ export const ChatStatus = {
129
+ COMPLETED: "COMPLETED",
130
+ MISSED: "MISSED",
131
+ WAITFIRSTREPLY: "WAITFIRSTREPLY",
132
+ WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
133
+ WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
134
+ };
135
+ export const ChatTag = {
136
+ SMS: "sms",
137
+ TELEPHONY: "telephony",
138
+ WHATSAPP: "whatsapp",
139
+ };
140
+ export const ButtonVariant = {
141
+ CONTAINED: "contained",
142
+ OUTLINED: "outlined",
143
+ };
144
+ export const MessageSmsStatus = {
145
+ DELIVERED: "delivered",
146
+ ERROR: "error",
147
+ SENT: "sent",
148
+ TRYING: "trying",
149
+ };
150
+ export const MessageType = {
151
+ DELETED: "deleted",
152
+ REGULAR: "regular",
153
+ SYSTEM: "system",
154
+ };
155
+ export const MessageWhatsAppStatus = {
156
+ DELIVERED: "delivered",
157
+ ERROR: "error",
158
+ SENT: "sent",
159
+ TRYING: "trying",
160
+ };
161
+ export const ConferenceDirection = {
162
+ INBOUND: "INBOUND",
163
+ INTERNAL: "INTERNAL",
164
+ OUTBOUND: "OUTBOUND",
165
+ };
166
+ export const PbxLicenseType = {
167
+ BASIC: "basic",
168
+ BUSINESS: "business",
169
+ ESSENTIAL: "essential",
170
+ PREMIUM: "premium",
171
+ WIZYCONF: "wizyconf",
172
+ };
173
+ export const ConferenceParticipantRole = {
174
+ AGENT: "AGENT",
175
+ CLIENT: "CLIENT",
176
+ };
177
+ export const ConferenceParticipantType = {
178
+ EXTERNAL: "EXTERNAL",
179
+ EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
180
+ PBX: "PBX",
181
+ PBX_SIP: "PBX_SIP",
182
+ XBS: "XBS",
183
+ };
184
+ export const ConferenceTranscriptionStatus = {
185
+ AVAILABLE: "AVAILABLE",
186
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
187
+ UNAVAILABLE: "UNAVAILABLE",
188
+ };
189
+ export const ConversationDirection = {
190
+ INBOUND: "INBOUND",
191
+ INTERNAL: "INTERNAL",
192
+ OUTBOUND: "OUTBOUND",
193
+ };
194
+ export const ConversationFlag = {
195
+ FAX: "FAX",
196
+ VOICEMAIL: "VOICEMAIL",
197
+ };
198
+ export const ConversationUserDirection = {
199
+ INCOMING: "INCOMING",
200
+ OUTGOING: "OUTGOING",
201
+ };
@@ -0,0 +1,133 @@
1
+ import { WdaHistoryServiceException as __BaseException } from "./WdaHistoryServiceException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ForbiddenException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
+ }
13
+ }
14
+ export class ValidationException extends __BaseException {
15
+ name = "ValidationException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ValidationException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
+ }
25
+ }
26
+ export class CallAnnotationsNotFoundException extends __BaseException {
27
+ name = "CallAnnotationsNotFoundException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "CallAnnotationsNotFoundException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, CallAnnotationsNotFoundException.prototype);
36
+ }
37
+ }
38
+ export class CallNotFoundException extends __BaseException {
39
+ name = "CallNotFoundException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "CallNotFoundException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, CallNotFoundException.prototype);
48
+ }
49
+ }
50
+ export class CallTranscriptionNotFoundException extends __BaseException {
51
+ name = "CallTranscriptionNotFoundException";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "CallTranscriptionNotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, CallTranscriptionNotFoundException.prototype);
60
+ }
61
+ }
62
+ export class ChatAnnotationsNotFoundException extends __BaseException {
63
+ name = "ChatAnnotationsNotFoundException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "ChatAnnotationsNotFoundException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, ChatAnnotationsNotFoundException.prototype);
72
+ }
73
+ }
74
+ export class ChatNotFoundException extends __BaseException {
75
+ name = "ChatNotFoundException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "ChatNotFoundException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, ChatNotFoundException.prototype);
84
+ }
85
+ }
86
+ export class ChatTranscriptionNotFoundException extends __BaseException {
87
+ name = "ChatTranscriptionNotFoundException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "ChatTranscriptionNotFoundException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, ChatTranscriptionNotFoundException.prototype);
96
+ }
97
+ }
98
+ export class ConferenceAnnotationsNotFoundException extends __BaseException {
99
+ name = "ConferenceAnnotationsNotFoundException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "ConferenceAnnotationsNotFoundException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, ConferenceAnnotationsNotFoundException.prototype);
108
+ }
109
+ }
110
+ export class ConferenceNotFoundException extends __BaseException {
111
+ name = "ConferenceNotFoundException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "ConferenceNotFoundException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, ConferenceNotFoundException.prototype);
120
+ }
121
+ }
122
+ export class ConferenceTranscriptionNotFoundException extends __BaseException {
123
+ name = "ConferenceTranscriptionNotFoundException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "ConferenceTranscriptionNotFoundException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, ConferenceTranscriptionNotFoundException.prototype);
132
+ }
133
+ }