@wildix/wda-stream-client 1.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 (52) hide show
  1. package/dist-cjs/WdaStream.js +17 -0
  2. package/dist-cjs/WdaStreamClient.js +35 -0
  3. package/dist-cjs/commands/ConsumeEventCommand.js +41 -0
  4. package/dist-cjs/commands/DescribeEventCommand.js +41 -0
  5. package/dist-cjs/commands/GetOngoingConversationsCommand.js +41 -0
  6. package/dist-cjs/commands/index.js +6 -0
  7. package/dist-cjs/extensionConfiguration.js +2 -0
  8. package/dist-cjs/index.js +10 -0
  9. package/dist-cjs/models/WdaStreamServiceException.js +12 -0
  10. package/dist-cjs/models/index.js +4 -0
  11. package/dist-cjs/models/models_0.js +170 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +262 -0
  13. package/dist-cjs/runtimeConfig.browser.js +28 -0
  14. package/dist-cjs/runtimeConfig.js +32 -0
  15. package/dist-cjs/runtimeConfig.native.js +15 -0
  16. package/dist-cjs/runtimeConfig.shared.js +19 -0
  17. package/dist-cjs/runtimeExtensions.js +19 -0
  18. package/dist-es/WdaStream.js +13 -0
  19. package/dist-es/WdaStreamClient.js +31 -0
  20. package/dist-es/commands/ConsumeEventCommand.js +37 -0
  21. package/dist-es/commands/DescribeEventCommand.js +37 -0
  22. package/dist-es/commands/GetOngoingConversationsCommand.js +37 -0
  23. package/dist-es/commands/index.js +3 -0
  24. package/dist-es/extensionConfiguration.js +1 -0
  25. package/dist-es/index.js +5 -0
  26. package/dist-es/models/WdaStreamServiceException.js +8 -0
  27. package/dist-es/models/index.js +1 -0
  28. package/dist-es/models/models_0.js +165 -0
  29. package/dist-es/protocols/Aws_restJson1.js +253 -0
  30. package/dist-es/runtimeConfig.browser.js +24 -0
  31. package/dist-es/runtimeConfig.js +28 -0
  32. package/dist-es/runtimeConfig.native.js +11 -0
  33. package/dist-es/runtimeConfig.shared.js +15 -0
  34. package/dist-es/runtimeExtensions.js +15 -0
  35. package/dist-types/WdaStream.d.ts +30 -0
  36. package/dist-types/WdaStreamClient.d.ts +139 -0
  37. package/dist-types/commands/ConsumeEventCommand.d.ts +219 -0
  38. package/dist-types/commands/DescribeEventCommand.d.ts +327 -0
  39. package/dist-types/commands/GetOngoingConversationsCommand.d.ts +275 -0
  40. package/dist-types/commands/index.d.ts +3 -0
  41. package/dist-types/extensionConfiguration.d.ts +7 -0
  42. package/dist-types/index.d.ts +5 -0
  43. package/dist-types/models/WdaStreamServiceException.d.ts +13 -0
  44. package/dist-types/models/index.d.ts +1 -0
  45. package/dist-types/models/models_0.d.ts +857 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
  47. package/dist-types/runtimeConfig.browser.d.ts +29 -0
  48. package/dist-types/runtimeConfig.d.ts +29 -0
  49. package/dist-types/runtimeConfig.native.d.ts +28 -0
  50. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  51. package/dist-types/runtimeExtensions.d.ts +17 -0
  52. package/package.json +77 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
5
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
6
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
7
+ const util_retry_1 = require("@smithy/util-retry");
8
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
9
+ const smithy_client_1 = require("@smithy/smithy-client");
10
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
11
+ const getRuntimeConfig = (config) => {
12
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
13
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
14
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
15
+ return {
16
+ ...clientSharedValues,
17
+ ...config,
18
+ runtime: "browser",
19
+ defaultsMode,
20
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
21
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
22
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
23
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
24
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
25
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
26
+ };
27
+ };
28
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const hash_node_1 = require("@smithy/hash-node");
5
+ const middleware_retry_1 = require("@smithy/middleware-retry");
6
+ const node_config_provider_1 = require("@smithy/node-config-provider");
7
+ const node_http_handler_1 = require("@smithy/node-http-handler");
8
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
9
+ const util_retry_1 = require("@smithy/util-retry");
10
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
11
+ const smithy_client_1 = require("@smithy/smithy-client");
12
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
13
+ const smithy_client_2 = require("@smithy/smithy-client");
14
+ const getRuntimeConfig = (config) => {
15
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
16
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
17
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
19
+ return {
20
+ ...clientSharedValues,
21
+ ...config,
22
+ runtime: "node",
23
+ defaultsMode,
24
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
25
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
26
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
27
+ 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, }),
28
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
29
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
30
+ };
31
+ };
32
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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");
8
+ const getRuntimeConfig = (config) => ({
9
+ apiVersion: "v2",
10
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
11
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
12
+ disableHostPrefix: config?.disableHostPrefix ?? false,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
16
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
17
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
18
+ });
19
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const asPartial = (t) => t;
7
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
8
+ const extensionConfiguration = {
9
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
11
+ };
12
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
13
+ return {
14
+ ...runtimeConfig,
15
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
17
+ };
18
+ };
19
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,13 @@
1
+ import { WdaStreamClient, } from "./WdaStreamClient";
2
+ import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
+ import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
+ import { GetOngoingConversationsCommand, } from "./commands/GetOngoingConversationsCommand";
5
+ import { createAggregatedClient } from "@smithy/smithy-client";
6
+ const commands = {
7
+ ConsumeEventCommand,
8
+ DescribeEventCommand,
9
+ GetOngoingConversationsCommand,
10
+ };
11
+ export class WdaStream extends WdaStreamClient {
12
+ }
13
+ createAggregatedClient(commands, WdaStream);
@@ -0,0 +1,31 @@
1
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
+ import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
+ import { Client as __Client, } from "@smithy/smithy-client";
4
+ import { authorizationMiddleware } from '@wildix/smithy-utils';
5
+ export { __Client };
6
+ export class WdaStreamClient extends __Client {
7
+ constructor(...[configuration]) {
8
+ let _config_0 = __getRuntimeConfig(configuration || {});
9
+ let _config_1 = resolveRuntimeExtensions(_config_0, configuration?.extensions || []);
10
+ super(_config_1);
11
+ this.config = _config_1;
12
+ const endpoint = () => {
13
+ return {
14
+ hostname: configuration.env === 'prod' || !configuration.env ? 'wda.wildix.com' : configuration.env === 'stable' ? 'wda-stable.wildix.com' : 'wda-stage.wildix.com',
15
+ protocol: "https",
16
+ port: '443',
17
+ path: ''
18
+ };
19
+ };
20
+ const config = {
21
+ ..._config_1,
22
+ endpoint,
23
+ };
24
+ super(config);
25
+ this.config = config;
26
+ this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
27
+ }
28
+ destroy() {
29
+ super.destroy();
30
+ }
31
+ }
@@ -0,0 +1,37 @@
1
+ import { de_ConsumeEventCommand, se_ConsumeEventCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class ConsumeEventCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaStreamClient";
16
+ const commandName = "ConsumeEventCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaStream",
25
+ operation: "ConsumeEvent",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_ConsumeEventCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_ConsumeEventCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_DescribeEventCommand, se_DescribeEventCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class DescribeEventCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaStreamClient";
16
+ const commandName = "DescribeEventCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaStream",
25
+ operation: "DescribeEvent",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_DescribeEventCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_DescribeEventCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_GetOngoingConversationsCommand, se_GetOngoingConversationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class GetOngoingConversationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaStreamClient";
16
+ const commandName = "GetOngoingConversationsCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaStream",
25
+ operation: "GetOngoingConversations",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_GetOngoingConversationsCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_GetOngoingConversationsCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./ConsumeEventCommand";
2
+ export * from "./DescribeEventCommand";
3
+ export * from "./GetOngoingConversationsCommand";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./WdaStreamClient";
2
+ export * from "./WdaStream";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { WdaStreamServiceException } from "./models/WdaStreamServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class WdaStreamServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, WdaStreamServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,165 @@
1
+ import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
+ export class ForbiddenException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ForbiddenException",
6
+ $fault: "client",
7
+ ...opts
8
+ });
9
+ this.name = "ForbiddenException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
+ }
13
+ }
14
+ export class ValidationException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "ValidationException",
18
+ $fault: "client",
19
+ ...opts
20
+ });
21
+ this.name = "ValidationException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
+ }
25
+ }
26
+ export const LiveEventType = {
27
+ CALL: "call",
28
+ CALL_COMPLETE: "call_complete",
29
+ CALL_INTERRUPTED: "call_interrupted",
30
+ CALL_TRANSCRIPTION: "call_transcription",
31
+ CALL_TRANSCRIPTION_COMPLETE: "call_transcription_complete",
32
+ CHAT: "chat",
33
+ CHAT_COMPLETE: "chat_complete",
34
+ CHAT_INTERRUPTED: "chat_interrupted",
35
+ CHAT_MISSED: "chat_missed",
36
+ CONFERENCE: "conference",
37
+ CONFERENCE_COMPLETE: "conference_complete",
38
+ CONFERENCE_INTERRUPTED: "conference_interrupted",
39
+ CONFERENCE_TRANSCRIPTION: "conference_transcription",
40
+ CONFERENCE_TRANSCRIPTION_COMPLETE: "conference_transcription_complete",
41
+ };
42
+ export const License = {
43
+ XBEES: "x-bees",
44
+ };
45
+ export const CallFlowAttachmentType = {
46
+ FAX: "FAX",
47
+ VOICEMAIL: "VOICEMAIL",
48
+ };
49
+ export const CallParticipantRole = {
50
+ AGENT: "AGENT",
51
+ CLIENT: "CLIENT",
52
+ };
53
+ export const CallParticipantType = {
54
+ LOCAL: "LOCAL",
55
+ REMOTE: "REMOTE",
56
+ };
57
+ export const CallDevice = {
58
+ COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
59
+ COLLABORATION_IOS: "COLLABORATION_IOS",
60
+ COLLABORATION_WEB: "COLLABORATION_WEB",
61
+ UNKNOWN: "UNKNOWN",
62
+ WILDIX_DEVICE: "WILDIX_DEVICE",
63
+ WILDIX_PHONE: "WILDIX_PHONE",
64
+ XBEES_ANDROID: "XBEES_ANDROID",
65
+ XBEES_IOS: "XBEES_IOS",
66
+ XBEES_WEB: "XBEES_WEB",
67
+ };
68
+ export const ConversationStatus = {
69
+ COMPLETED: "COMPLETED",
70
+ MISSED: "MISSED",
71
+ };
72
+ export const CallDirection = {
73
+ INBOUND: "INBOUND",
74
+ INTERNAL: "INTERNAL",
75
+ OUTBOUND: "OUTBOUND",
76
+ UNDEFINED: "UNDEFINED",
77
+ };
78
+ export const CallFlowStatus = {
79
+ CONNECTING: "CONNECTING",
80
+ HOLD: "HOLD",
81
+ TALKING: "TALKING",
82
+ };
83
+ export const CallFlowTranscriptionStatus = {
84
+ AVAILABLE: "AVAILABLE",
85
+ UNAVAILABLE: "UNAVAILABLE",
86
+ };
87
+ export const CallTranscriptionSpeaker = {
88
+ CALLEE: "callee",
89
+ CALLER: "caller",
90
+ };
91
+ export const ChannelType = {
92
+ DIRECT: "direct",
93
+ GROUP: "group",
94
+ };
95
+ export const ChatDirection = {
96
+ INBOUND: "INBOUND",
97
+ INTERNAL: "INTERNAL",
98
+ OUTBOUND: "OUTBOUND",
99
+ };
100
+ export const ChatParticipantRole = {
101
+ AGENT: "AGENT",
102
+ CLIENT: "CLIENT",
103
+ };
104
+ export const ChatParticipantType = {
105
+ LOCAL: "LOCAL",
106
+ REMOTE: "REMOTE",
107
+ };
108
+ export const ChatStatus = {
109
+ COMPLETED: "COMPLETED",
110
+ MISSED: "MISSED",
111
+ WAITFIRSTREPLY: "WAITFIRSTREPLY",
112
+ WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
113
+ WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
114
+ };
115
+ export const ChatTag = {
116
+ SMS: "sms",
117
+ TELEPHONY: "telephony",
118
+ };
119
+ export const ChatConsumeEventType = {
120
+ CHAT_NEW: "CHAT.NEW",
121
+ CHAT_UPDATE: "CHAT.UPDATE",
122
+ };
123
+ export const ConferenceParticipantRole = {
124
+ AGENT: "AGENT",
125
+ CLIENT: "CLIENT",
126
+ };
127
+ export const ConferenceParticipantType = {
128
+ EXTERNAL: "EXTERNAL",
129
+ EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
130
+ PBX: "PBX",
131
+ PBX_SIP: "PBX_SIP",
132
+ XBS: "XBS",
133
+ };
134
+ export const ConferenceTranscriptionStatus = {
135
+ AVAILABLE: "AVAILABLE",
136
+ UNAVAILABLE: "UNAVAILABLE",
137
+ };
138
+ export const SmsConsumeEventType = {
139
+ SMS_INBOUND: "SMS.INBOUND",
140
+ SMS_STATUS: "SMS.STATUS",
141
+ };
142
+ export const SmsChannelType = {
143
+ ONE_WAY: "1-way-sms",
144
+ TWO_WAY: "2-way-sms",
145
+ };
146
+ export const SmsStatus = {
147
+ DELIVERED: "delivered",
148
+ ERROR: "error",
149
+ SENT: "sent",
150
+ TRYING: "trying",
151
+ };
152
+ export var ConsumeEventInputEvent;
153
+ (function (ConsumeEventInputEvent) {
154
+ ConsumeEventInputEvent.visit = (value, visitor) => {
155
+ if (value.chatNew !== undefined)
156
+ return visitor.chatNew(value.chatNew);
157
+ if (value.chatUpdate !== undefined)
158
+ return visitor.chatUpdate(value.chatUpdate);
159
+ if (value.smsInbound !== undefined)
160
+ return visitor.smsInbound(value.smsInbound);
161
+ if (value.smsStatus !== undefined)
162
+ return visitor.smsStatus(value.smsStatus);
163
+ return visitor._(value.$unknown[0], value.$unknown[1]);
164
+ };
165
+ })(ConsumeEventInputEvent || (ConsumeEventInputEvent = {}));