@webex/contact-center 3.10.0 → 3.11.0

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 (139) hide show
  1. package/dist/cc.js +42 -31
  2. package/dist/cc.js.map +1 -1
  3. package/dist/config.js.map +1 -1
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.js +17 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/logger-proxy.js.map +1 -1
  8. package/dist/metrics/MetricsManager.js +2 -1
  9. package/dist/metrics/MetricsManager.js.map +1 -1
  10. package/dist/metrics/behavioral-events.js +12 -0
  11. package/dist/metrics/behavioral-events.js.map +1 -1
  12. package/dist/metrics/constants.js +4 -0
  13. package/dist/metrics/constants.js.map +1 -1
  14. package/dist/services/AddressBook.js +2 -3
  15. package/dist/services/AddressBook.js.map +1 -1
  16. package/dist/services/EntryPoint.js +2 -3
  17. package/dist/services/EntryPoint.js.map +1 -1
  18. package/dist/services/Queue.js +2 -3
  19. package/dist/services/Queue.js.map +1 -1
  20. package/dist/services/WebCallingService.js +1 -1
  21. package/dist/services/WebCallingService.js.map +1 -1
  22. package/dist/services/agent/index.js +1 -2
  23. package/dist/services/agent/index.js.map +1 -1
  24. package/dist/services/agent/types.js +10 -0
  25. package/dist/services/agent/types.js.map +1 -1
  26. package/dist/services/config/Util.js.map +1 -1
  27. package/dist/services/config/constants.js.map +1 -1
  28. package/dist/services/config/index.js +1 -1
  29. package/dist/services/config/index.js.map +1 -1
  30. package/dist/services/config/types.js +2 -2
  31. package/dist/services/config/types.js.map +1 -1
  32. package/dist/services/constants.js.map +1 -1
  33. package/dist/services/core/Err.js.map +1 -1
  34. package/dist/services/core/GlobalTypes.js.map +1 -1
  35. package/dist/services/core/Utils.js +92 -74
  36. package/dist/services/core/Utils.js.map +1 -1
  37. package/dist/services/core/WebexRequest.js +1 -2
  38. package/dist/services/core/WebexRequest.js.map +1 -1
  39. package/dist/services/core/aqm-reqs.js +2 -3
  40. package/dist/services/core/aqm-reqs.js.map +1 -1
  41. package/dist/services/core/constants.js +17 -1
  42. package/dist/services/core/constants.js.map +1 -1
  43. package/dist/services/core/types.js.map +1 -1
  44. package/dist/services/core/websocket/WebSocketManager.js +11 -3
  45. package/dist/services/core/websocket/WebSocketManager.js.map +1 -1
  46. package/dist/services/core/websocket/connection-service.js +1 -1
  47. package/dist/services/core/websocket/connection-service.js.map +1 -1
  48. package/dist/services/core/websocket/keepalive.worker.js.map +1 -1
  49. package/dist/services/core/websocket/types.js.map +1 -1
  50. package/dist/services/index.js +1 -1
  51. package/dist/services/index.js.map +1 -1
  52. package/dist/services/task/AutoWrapup.js +1 -1
  53. package/dist/services/task/AutoWrapup.js.map +1 -1
  54. package/dist/services/task/TaskManager.js +177 -56
  55. package/dist/services/task/TaskManager.js.map +1 -1
  56. package/dist/services/task/TaskUtils.js +122 -5
  57. package/dist/services/task/TaskUtils.js.map +1 -1
  58. package/dist/services/task/constants.js +3 -1
  59. package/dist/services/task/constants.js.map +1 -1
  60. package/dist/services/task/contact.js +0 -2
  61. package/dist/services/task/contact.js.map +1 -1
  62. package/dist/services/task/dialer.js.map +1 -1
  63. package/dist/services/task/index.js +78 -51
  64. package/dist/services/task/index.js.map +1 -1
  65. package/dist/services/task/types.js +377 -4
  66. package/dist/services/task/types.js.map +1 -1
  67. package/dist/types.js +5 -0
  68. package/dist/types.js.map +1 -1
  69. package/dist/utils/PageCache.js +1 -1
  70. package/dist/utils/PageCache.js.map +1 -1
  71. package/dist/webex-config.js.map +1 -1
  72. package/dist/webex.js +2 -2
  73. package/dist/webex.js.map +1 -1
  74. package/package.json +9 -9
  75. package/src/cc.ts +50 -41
  76. package/src/index.ts +1 -0
  77. package/src/metrics/behavioral-events.ts +12 -0
  78. package/src/metrics/constants.ts +4 -0
  79. package/src/services/config/types.ts +2 -2
  80. package/src/services/core/Utils.ts +101 -85
  81. package/src/services/core/constants.ts +16 -0
  82. package/src/services/core/websocket/WebSocketManager.ts +10 -1
  83. package/src/services/task/TaskManager.ts +204 -36
  84. package/src/services/task/TaskUtils.ts +145 -5
  85. package/src/services/task/constants.ts +2 -0
  86. package/src/services/task/index.ts +88 -74
  87. package/src/services/task/types.ts +72 -15
  88. package/test/unit/spec/cc.ts +1 -0
  89. package/test/unit/spec/metrics/behavioral-events.ts +14 -0
  90. package/test/unit/spec/services/core/Utils.ts +262 -31
  91. package/test/unit/spec/services/core/websocket/WebSocketManager.ts +20 -0
  92. package/test/unit/spec/services/task/TaskManager.ts +748 -5
  93. package/test/unit/spec/services/task/TaskUtils.ts +311 -9
  94. package/test/unit/spec/services/task/index.ts +440 -68
  95. package/umd/contact-center.min.js +2 -2
  96. package/umd/contact-center.min.js.map +1 -1
  97. package/dist/types/cc.d.ts +0 -756
  98. package/dist/types/config.d.ts +0 -66
  99. package/dist/types/constants.d.ts +0 -46
  100. package/dist/types/index.d.ts +0 -183
  101. package/dist/types/logger-proxy.d.ts +0 -71
  102. package/dist/types/metrics/MetricsManager.d.ts +0 -223
  103. package/dist/types/metrics/behavioral-events.d.ts +0 -29
  104. package/dist/types/metrics/constants.d.ts +0 -151
  105. package/dist/types/services/AddressBook.d.ts +0 -74
  106. package/dist/types/services/EntryPoint.d.ts +0 -67
  107. package/dist/types/services/Queue.d.ts +0 -76
  108. package/dist/types/services/WebCallingService.d.ts +0 -1
  109. package/dist/types/services/agent/index.d.ts +0 -46
  110. package/dist/types/services/agent/types.d.ts +0 -413
  111. package/dist/types/services/config/Util.d.ts +0 -19
  112. package/dist/types/services/config/constants.d.ts +0 -237
  113. package/dist/types/services/config/index.d.ts +0 -168
  114. package/dist/types/services/config/types.d.ts +0 -1134
  115. package/dist/types/services/constants.d.ts +0 -97
  116. package/dist/types/services/core/Err.d.ts +0 -119
  117. package/dist/types/services/core/GlobalTypes.d.ts +0 -58
  118. package/dist/types/services/core/Utils.d.ts +0 -75
  119. package/dist/types/services/core/WebexRequest.d.ts +0 -22
  120. package/dist/types/services/core/aqm-reqs.d.ts +0 -16
  121. package/dist/types/services/core/constants.d.ts +0 -85
  122. package/dist/types/services/core/types.d.ts +0 -47
  123. package/dist/types/services/core/websocket/WebSocketManager.d.ts +0 -34
  124. package/dist/types/services/core/websocket/connection-service.d.ts +0 -27
  125. package/dist/types/services/core/websocket/keepalive.worker.d.ts +0 -2
  126. package/dist/types/services/core/websocket/types.d.ts +0 -37
  127. package/dist/types/services/index.d.ts +0 -52
  128. package/dist/types/services/task/AutoWrapup.d.ts +0 -40
  129. package/dist/types/services/task/TaskManager.d.ts +0 -1
  130. package/dist/types/services/task/TaskUtils.d.ts +0 -28
  131. package/dist/types/services/task/constants.d.ts +0 -69
  132. package/dist/types/services/task/contact.d.ts +0 -69
  133. package/dist/types/services/task/dialer.d.ts +0 -28
  134. package/dist/types/services/task/index.d.ts +0 -632
  135. package/dist/types/services/task/types.d.ts +0 -1243
  136. package/dist/types/types.d.ts +0 -614
  137. package/dist/types/utils/PageCache.d.ts +0 -173
  138. package/dist/types/webex-config.d.ts +0 -53
  139. package/dist/types/webex.d.ts +0 -7
@@ -1,614 +0,0 @@
1
- import { CallingClientConfig } from '@webex/calling';
2
- import * as Agent from './services/agent/types';
3
- import { Profile } from './services/config/types';
4
- import { PaginatedResponse, BaseSearchParams } from './utils/PageCache';
5
- /**
6
- * HTTP methods supported by WebexRequest.
7
- * @enum {string}
8
- * @public
9
- * @example
10
- * const method: HTTP_METHODS = HTTP_METHODS.GET;
11
- * @ignore
12
- */
13
- export declare const HTTP_METHODS: {
14
- /** HTTP GET method for retrieving data */
15
- readonly GET: "GET";
16
- /** HTTP POST method for creating resources */
17
- readonly POST: "POST";
18
- /** HTTP PATCH method for partial updates */
19
- readonly PATCH: "PATCH";
20
- /** HTTP PUT method for complete updates */
21
- readonly PUT: "PUT";
22
- /** HTTP DELETE method for removing resources */
23
- readonly DELETE: "DELETE";
24
- };
25
- /**
26
- * Union type of HTTP methods.
27
- * @public
28
- * @example
29
- * function makeRequest(method: HTTP_METHODS) { ... }
30
- * @ignore
31
- */
32
- export type HTTP_METHODS = Enum<typeof HTTP_METHODS>;
33
- /**
34
- * Payload for making requests to Webex APIs.
35
- * @public
36
- * @example
37
- * const payload: WebexRequestPayload = {
38
- * service: 'identity',
39
- * resource: '/users',
40
- * method: HTTP_METHODS.GET
41
- * };
42
- * @ignore
43
- */
44
- export type WebexRequestPayload = {
45
- /** Service name to target */
46
- service?: string;
47
- /** Resource path within the service */
48
- resource?: string;
49
- /** HTTP method to use */
50
- method?: HTTP_METHODS;
51
- /** Full URI if not using service/resource pattern */
52
- uri?: string;
53
- /** Whether to add authorization header */
54
- addAuthHeader?: boolean;
55
- /** Custom headers to include in request */
56
- headers?: {
57
- [key: string]: string | null;
58
- };
59
- /** Request body data */
60
- body?: object;
61
- /** Expected response status code */
62
- statusCode?: number;
63
- /** Whether to parse response as JSON */
64
- json?: boolean;
65
- };
66
- /**
67
- * Configuration options for the Contact Center Plugin.
68
- * @interface CCPluginConfig
69
- * @public
70
- * @example
71
- * const config: CCPluginConfig = {
72
- * allowMultiLogin: true,
73
- * allowAutomatedRelogin: false,
74
- * clientType: 'browser',
75
- * isKeepAliveEnabled: true,
76
- * force: false,
77
- * metrics: { clientName: 'myClient', clientType: 'browser' },
78
- * logging: { enable: true, verboseEvents: false },
79
- * callingClientConfig: { ... }
80
- * };
81
- */
82
- export interface CCPluginConfig {
83
- /** Whether to allow multiple logins from different devices */
84
- allowMultiLogin: boolean;
85
- /** Whether to automatically attempt relogin on connection loss */
86
- allowAutomatedRelogin: boolean;
87
- /** The type of client making the connection */
88
- clientType: string;
89
- /** Whether to enable keep-alive messages */
90
- isKeepAliveEnabled: boolean;
91
- /** Whether to force registration */
92
- force: boolean;
93
- /** Metrics configuration */
94
- metrics: {
95
- /** Name of the client for metrics */
96
- clientName: string;
97
- /** Type of client for metrics */
98
- clientType: string;
99
- };
100
- /** Logging configuration */
101
- logging: {
102
- /** Whether to enable logging */
103
- enable: boolean;
104
- /** Whether to log verbose events */
105
- verboseEvents: boolean;
106
- };
107
- /** Configuration for the calling client */
108
- callingClientConfig: CallingClientConfig;
109
- }
110
- /**
111
- * Logger interface for standardized logging throughout the plugin.
112
- * @public
113
- * @example
114
- * logger.log('This is a log message');
115
- * logger.error('This is an error message');
116
- * @ignore
117
- */
118
- export type Logger = {
119
- /** Log general messages */
120
- log: (payload: string) => void;
121
- /** Log error messages */
122
- error: (payload: string) => void;
123
- /** Log warning messages */
124
- warn: (payload: string) => void;
125
- /** Log informational messages */
126
- info: (payload: string) => void;
127
- /** Log detailed trace messages */
128
- trace: (payload: string) => void;
129
- /** Log debug messages */
130
- debug: (payload: string) => void;
131
- };
132
- /**
133
- * Contextual information for log entries.
134
- * @public
135
- * @ignore
136
- */
137
- export interface LogContext {
138
- /** Module name where the log originated */
139
- module?: string;
140
- /** Method name where the log originated */
141
- method?: string;
142
- interactionId?: string;
143
- trackingId?: string;
144
- /** Additional structured data to include in logs */
145
- data?: Record<string, any>;
146
- /** Error object to include in logs */
147
- error?: Error | unknown;
148
- }
149
- /**
150
- * Available logging severity levels.
151
- * @enum {string}
152
- * @public
153
- * @example
154
- * const level: LOGGING_LEVEL = LOGGING_LEVEL.error;
155
- * @ignore
156
- */
157
- export declare enum LOGGING_LEVEL {
158
- /** Critical failures that require immediate attention */
159
- error = "ERROR",
160
- /** Important issues that don't prevent the system from working */
161
- warn = "WARN",
162
- /** General informational logs */
163
- log = "LOG",
164
- /** Detailed information about system operation */
165
- info = "INFO",
166
- /** Highly detailed diagnostic information */
167
- trace = "TRACE"
168
- }
169
- /**
170
- * Metadata for log uploads.
171
- * @public
172
- * @example
173
- * const meta: LogsMetaData = { feedbackId: 'fb123', correlationId: 'corr456' };
174
- * @ignore
175
- */
176
- export type LogsMetaData = {
177
- /** Optional feedback ID to associate with logs */
178
- feedbackId?: string;
179
- /** Optional correlation ID to track related operations */
180
- correlationId?: string;
181
- };
182
- /**
183
- * Response from uploading logs to the server.
184
- * @public
185
- * @example
186
- * const response: UploadLogsResponse = { trackingid: 'track123', url: 'https://...', userId: 'user1' };
187
- */
188
- export type UploadLogsResponse = {
189
- /** Tracking ID for the upload request */
190
- trackingid?: string;
191
- /** URL where the logs can be accessed */
192
- url?: string;
193
- /** ID of the user who uploaded logs */
194
- userId?: string;
195
- /** Feedback ID associated with the logs */
196
- feedbackId?: string;
197
- /** Correlation ID for tracking related operations */
198
- correlationId?: string;
199
- };
200
- /**
201
- * Interface representing the WebexSDK core functionality.
202
- * @interface WebexSDK
203
- * @public
204
- * @example
205
- * const sdk: WebexSDK = ...;
206
- * sdk.request({ service: 'identity', resource: '/users', method: HTTP_METHODS.GET });
207
- * @ignore
208
- */
209
- export interface WebexSDK {
210
- /** Version of the WebexSDK */
211
- version: string;
212
- /** Whether the SDK can authorize requests */
213
- canAuthorize: boolean;
214
- /** Credentials management */
215
- credentials: {
216
- /** Get the user token for authentication */
217
- getUserToken: () => Promise<string>;
218
- /** Get the organization ID */
219
- getOrgId: () => string;
220
- };
221
- /** Whether the SDK is ready for use */
222
- ready: boolean;
223
- /** Make a request to the Webex APIs */
224
- request: <T>(payload: WebexRequestPayload) => Promise<T>;
225
- /** Register a one-time event handler */
226
- once: (event: string, callBack: () => void) => void;
227
- /** Internal plugins and services */
228
- internal: IWebexInternal;
229
- /** Logger instance */
230
- logger: Logger;
231
- }
232
- /**
233
- * An interface for the `ContactCenter` class.
234
- * The `ContactCenter` package is designed to provide a set of APIs to perform various operations for the Agent flow within Webex Contact Center.
235
- * @public
236
- * @example
237
- * const cc: IContactCenter = ...;
238
- * cc.register().then(profile => { ... });
239
- * @ignore
240
- */
241
- export interface IContactCenter {
242
- /**
243
- * Initialize the CC SDK by setting up the contact center mercury connection.
244
- * This establishes WebSocket connectivity for real-time communication.
245
- *
246
- * @returns A Promise that resolves to the agent's profile upon successful registration
247
- * @public
248
- * @example
249
- * cc.register().then(profile => { ... });
250
- */
251
- register(): Promise<Profile>;
252
- }
253
- /**
254
- * Generic HTTP response structure.
255
- * @public
256
- * @example
257
- * const response: IHttpResponse = { body: {}, statusCode: 200, method: 'GET', headers: {}, url: '...' };
258
- * @ignore
259
- */
260
- export interface IHttpResponse {
261
- /** Response body content */
262
- body: any;
263
- /** HTTP status code */
264
- statusCode: number;
265
- /** HTTP method used for the request */
266
- method: string;
267
- /** Response headers */
268
- headers: Headers;
269
- /** Request URL */
270
- url: string;
271
- }
272
- /**
273
- * Supported login options for agent authentication.
274
- * @public
275
- * @example
276
- * const option: LoginOption = LoginOption.AGENT_DN;
277
- * @ignore
278
- */
279
- export declare const LoginOption: {
280
- /** Login using agent's direct number */
281
- readonly AGENT_DN: "AGENT_DN";
282
- /** Login using an extension number */
283
- readonly EXTENSION: "EXTENSION";
284
- /** Login using browser WebRTC capabilities */
285
- readonly BROWSER: "BROWSER";
286
- };
287
- /**
288
- * Union type of login options.
289
- * @public
290
- * @example
291
- * function login(option: LoginOption) { ... }
292
- * @ignore
293
- */
294
- export type LoginOption = Enum<typeof LoginOption>;
295
- /**
296
- * Request payload for subscribing to the contact center websocket.
297
- * @public
298
- * @example
299
- * const req: SubscribeRequest = { force: true, isKeepAliveEnabled: true, clientType: 'browser', allowMultiLogin: false };
300
- * @ignore
301
- */
302
- export type SubscribeRequest = {
303
- /** Whether to force connection even if another exists */
304
- force: boolean;
305
- /** Whether to send keepalive messages */
306
- isKeepAliveEnabled: boolean;
307
- /** Type of client connecting */
308
- clientType: string;
309
- /** Whether to allow login from multiple devices */
310
- allowMultiLogin: boolean;
311
- };
312
- /**
313
- * Represents the response from getListOfTeams method.
314
- * Teams are groups of agents that can be managed together.
315
- * @public
316
- * @example
317
- * const team: Team = { id: 'team1', name: 'Support', desktopLayoutId: 'layout1' };
318
- * @ignore
319
- */
320
- export type Team = {
321
- /**
322
- * Unique identifier of the team.
323
- */
324
- id: string;
325
- /**
326
- * Display name of the team.
327
- */
328
- name: string;
329
- /**
330
- * Associated desktop layout ID for the team.
331
- * Controls how the agent desktop is displayed for team members.
332
- */
333
- desktopLayoutId?: string;
334
- };
335
- /**
336
- * Represents the request to perform agent login.
337
- * @public
338
- * @example
339
- * const login: AgentLogin = { dialNumber: '1234', teamId: 'team1', loginOption: LoginOption.AGENT_DN };
340
- */
341
- export type AgentLogin = {
342
- /**
343
- * A dialNumber field contains the number to dial such as a route point or extension.
344
- * Required for AGENT_DN and EXTENSION login options.
345
- */
346
- dialNumber?: string;
347
- /**
348
- * The unique ID representing a team of users.
349
- * The agent must belong to this team.
350
- */
351
- teamId: string;
352
- /**
353
- * The loginOption field specifies the type of login method.
354
- * Controls how calls are delivered to the agent.
355
- */
356
- loginOption: LoginOption;
357
- };
358
- /**
359
- * Represents the request to update agent profile settings.
360
- * @public
361
- * @example
362
- * const update: AgentProfileUpdate = { loginOption: LoginOption.BROWSER, dialNumber: '5678' };
363
- */
364
- export type AgentProfileUpdate = Pick<AgentLogin, 'loginOption' | 'dialNumber' | 'teamId'>;
365
- /**
366
- * Represents the options to fetch buddy agents for the logged in agent.
367
- * Buddy agents are other agents who can be consulted or transfered to.
368
- * @public
369
- * @example
370
- * const opts: BuddyAgents = { mediaType: 'telephony', state: 'Available' };
371
- * @ignore
372
- */
373
- export type BuddyAgents = {
374
- /**
375
- * The media type channel to filter buddy agents.
376
- * Determines which channel capability the returned agents must have.
377
- */
378
- mediaType: 'telephony' | 'chat' | 'social' | 'email';
379
- /**
380
- * Optional filter for agent state.
381
- * If specified, returns only agents in that state.
382
- * If omitted, returns both available and idle agents.
383
- */
384
- state?: 'Available' | 'Idle';
385
- };
386
- /**
387
- * Generic error structure for Contact Center SDK errors.
388
- * Contains detailed information about the error context.
389
- * @public
390
- * @example
391
- * const err: GenericError = new Error('Failed');
392
- * err.details = { type: 'ERR', orgId: 'org1', trackingId: 'track1', data: {} };
393
- * @ignore
394
- */
395
- export interface GenericError extends Error {
396
- /** Structured details about the error */
397
- details: {
398
- /** Error type identifier */
399
- type: string;
400
- /** Organization ID where the error occurred */
401
- orgId: string;
402
- /** Unique tracking ID for the error */
403
- trackingId: string;
404
- /** Additional error context data */
405
- data: Record<string, any>;
406
- };
407
- }
408
- /**
409
- * Response type for station login operations.
410
- * Either a success response with agent details or an error.
411
- * @public
412
- * @example
413
- * function handleLogin(resp: StationLoginResponse) { ... }
414
- */
415
- export type StationLoginResponse = Agent.StationLoginSuccessResponse | Error;
416
- /**
417
- * Response type for station logout operations.
418
- * Either a success response with logout details or an error.
419
- * @public
420
- * @example
421
- * function handleLogout(resp: StationLogoutResponse) { ... }
422
- */
423
- export type StationLogoutResponse = Agent.LogoutSuccess | Error;
424
- /**
425
- * Response type for station relogin operations.
426
- * Either a success response with relogin details or an error.
427
- * @public
428
- * @example
429
- * function handleReLogin(resp: StationReLoginResponse) { ... }
430
- * @ignore
431
- */
432
- export type StationReLoginResponse = Agent.ReloginSuccess | Error;
433
- /**
434
- * Response type for agent state change operations.
435
- * Either a success response with state change details or an error.
436
- * @public
437
- * @example
438
- * function handleStateChange(resp: SetStateResponse) { ... }
439
- * @ignore
440
- */
441
- export type SetStateResponse = Agent.StateChangeSuccess | Error;
442
- /**
443
- * AddressBook types
444
- */
445
- export interface AddressBookEntry {
446
- id: string;
447
- organizationId?: string;
448
- version?: number;
449
- name: string;
450
- number: string;
451
- createdTime?: number;
452
- lastUpdatedTime?: number;
453
- }
454
- export type AddressBookEntriesResponse = PaginatedResponse<AddressBookEntry>;
455
- export interface AddressBookEntrySearchParams extends BaseSearchParams {
456
- addressBookId?: string;
457
- }
458
- /**
459
- * EntryPointRecord types
460
- */
461
- export interface EntryPointRecord {
462
- id: string;
463
- name: string;
464
- description?: string;
465
- type: string;
466
- isActive: boolean;
467
- orgId: string;
468
- createdAt?: string;
469
- updatedAt?: string;
470
- settings?: Record<string, any>;
471
- }
472
- export type EntryPointListResponse = PaginatedResponse<EntryPointRecord>;
473
- export type EntryPointSearchParams = BaseSearchParams;
474
- /**
475
- * Queue types
476
- */
477
- export interface QueueSkillRequirement {
478
- organizationId?: string;
479
- id?: string;
480
- version?: number;
481
- skillId: string;
482
- skillName?: string;
483
- skillType?: string;
484
- condition: string;
485
- skillValue: string;
486
- createdTime?: number;
487
- lastUpdatedTime?: number;
488
- }
489
- export interface QueueAgent {
490
- id: string;
491
- ciUserId?: string;
492
- }
493
- export interface AgentGroup {
494
- teamId: string;
495
- }
496
- export interface CallDistributionGroup {
497
- agentGroups: AgentGroup[];
498
- order: number;
499
- duration?: number;
500
- }
501
- export interface AssistantSkillMapping {
502
- assistantSkillId?: string;
503
- assistantSkillUpdatedTime?: number;
504
- }
505
- /**
506
- * Configuration for a contact service queue
507
- * @public
508
- */
509
- export interface ContactServiceQueue {
510
- /** Organization ID */
511
- organizationId?: string;
512
- /** Unique identifier for the queue */
513
- id?: string;
514
- /** Version of the queue */
515
- version?: number;
516
- /** Name of the Contact Service Queue */
517
- name: string;
518
- /** Description of the queue */
519
- description?: string;
520
- /** Queue type (INBOUND, OUTBOUND) */
521
- queueType: 'INBOUND' | 'OUTBOUND';
522
- /** Whether to check agent availability */
523
- checkAgentAvailability: boolean;
524
- /** Channel type (TELEPHONY, EMAIL, SOCIAL_CHANNEL, CHAT, etc.) */
525
- channelType: 'TELEPHONY' | 'EMAIL' | 'FAX' | 'CHAT' | 'VIDEO' | 'OTHERS' | 'SOCIAL_CHANNEL';
526
- /** Social channel type for SOCIAL_CHANNEL channelType */
527
- socialChannelType?: 'MESSAGEBIRD' | 'MESSENGER' | 'WHATSAPP' | 'APPLE_BUSINESS_CHAT' | 'GOOGLE_BUSINESS_MESSAGES';
528
- /** Service level threshold in seconds */
529
- serviceLevelThreshold: number;
530
- /** Maximum number of simultaneous contacts */
531
- maxActiveContacts: number;
532
- /** Maximum time in queue in seconds */
533
- maxTimeInQueue: number;
534
- /** Default music in queue media file ID */
535
- defaultMusicInQueueMediaFileId: string;
536
- /** Timezone for routing strategies */
537
- timezone?: string;
538
- /** Whether the queue is active */
539
- active: boolean;
540
- /** Whether outdial campaign is enabled */
541
- outdialCampaignEnabled?: boolean;
542
- /** Whether monitoring is permitted */
543
- monitoringPermitted: boolean;
544
- /** Whether parking is permitted */
545
- parkingPermitted: boolean;
546
- /** Whether recording is permitted */
547
- recordingPermitted: boolean;
548
- /** Whether recording all calls is permitted */
549
- recordingAllCallsPermitted: boolean;
550
- /** Whether pausing recording is permitted */
551
- pauseRecordingPermitted: boolean;
552
- /** Recording pause duration in seconds */
553
- recordingPauseDuration?: number;
554
- /** Control flow script URL */
555
- controlFlowScriptUrl: string;
556
- /** IVR requeue URL */
557
- ivrRequeueUrl: string;
558
- /** Overflow number for telephony */
559
- overflowNumber?: string;
560
- /** Vendor ID */
561
- vendorId?: string;
562
- /** Routing type */
563
- routingType: 'LONGEST_AVAILABLE_AGENT' | 'SKILLS_BASED' | 'CIRCULAR' | 'LINEAR';
564
- /** Skills-based routing type */
565
- skillBasedRoutingType?: 'LONGEST_AVAILABLE_AGENT' | 'BEST_AVAILABLE_AGENT';
566
- /** Queue routing type */
567
- queueRoutingType: 'TEAM_BASED' | 'SKILL_BASED' | 'AGENT_BASED';
568
- /** Queue skill requirements */
569
- queueSkillRequirements?: QueueSkillRequirement[];
570
- /** List of agents for agent-based queue */
571
- agents?: QueueAgent[];
572
- /** Call distribution groups */
573
- callDistributionGroups: CallDistributionGroup[];
574
- /** XSP version */
575
- xspVersion?: string;
576
- /** Subscription ID */
577
- subscriptionId?: string;
578
- /** Assistant skill mapping */
579
- assistantSkill?: AssistantSkillMapping;
580
- /** Whether this is a system default queue */
581
- systemDefault?: boolean;
582
- /** User who last updated agents list */
583
- agentsLastUpdatedByUserName?: string;
584
- /** Email of user who last updated agents list */
585
- agentsLastUpdatedByUserEmailPrefix?: string;
586
- /** When agents list was last updated */
587
- agentsLastUpdatedTime?: number;
588
- /** Creation timestamp in epoch millis */
589
- createdTime?: number;
590
- /** Last updated timestamp in epoch millis */
591
- lastUpdatedTime?: number;
592
- }
593
- export type ContactServiceQueuesResponse = PaginatedResponse<ContactServiceQueue>;
594
- export interface ContactServiceQueueSearchParams extends BaseSearchParams {
595
- desktopProfileFilter?: boolean;
596
- provisioningView?: boolean;
597
- singleObjectResponse?: boolean;
598
- }
599
- /**
600
- * Response type for buddy agents query operations.
601
- * Either a success response with list of buddy agents or an error.
602
- * @public
603
- * @example
604
- * function handleBuddyAgents(resp: BuddyAgentsResponse) { ... }
605
- */
606
- export type BuddyAgentsResponse = Agent.BuddyAgentsSuccess | Error;
607
- /**
608
- * Response type for device type update operations.
609
- * Either a success response with update confirmation or an error.
610
- * @public
611
- * @example
612
- * function handleUpdateDeviceType(resp: UpdateDeviceTypeResponse) { ... }
613
- */
614
- export type UpdateDeviceTypeResponse = Agent.DeviceTypeUpdateSuccess | Error;