@webex/cc-store 1.28.0-next.4 → 1.28.0-next.41

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.
@@ -6,6 +6,10 @@
6
6
  * Copyright (c) 2015-2024 Cisco Systems, Inc. See LICENSE file.
7
7
  */
8
8
 
9
+ /*!
10
+ * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
11
+ */
12
+
9
13
  /*!
10
14
  * Platform.js v1.3.6
11
15
  * Copyright 2014-2020 Benjamin Tan
@@ -1,13 +1,3 @@
1
- export declare const TASK_STATE_CONSULT = "consult";
2
- export declare const TASK_STATE_CONSULTING = "consulting";
3
- export declare const TASK_STATE_CONSULT_COMPLETED = "consultCompleted";
4
- export declare const INTERACTION_STATE_WRAPUP = "wrapUp";
5
- export declare const INTERACTION_STATE_POST_CALL = "post_call";
6
- export declare const INTERACTION_STATE_CONNECTED = "connected";
7
- export declare const INTERACTION_STATE_CONFERENCE = "conference";
8
- export declare const CONSULT_STATE_INITIATED = "consultInitiated";
9
- export declare const CONSULT_STATE_COMPLETED = "consultCompleted";
10
- export declare const CONSULT_STATE_CONFERENCING = "conferencing";
11
1
  export declare const RELATIONSHIP_TYPE_CONSULT = "consult";
12
2
  export declare const AGENT = "Agent";
13
3
  export declare const CUSTOMER = "Customer";
@@ -23,3 +13,7 @@ export declare const VVA = "VVA";
23
13
  */
24
14
  export declare const EXCLUDED_PARTICIPANT_TYPES: string[];
25
15
  export declare const MEDIA_TYPE_CONSULT = "consult";
16
+ export declare const AI_FEATURE_SUGGESTED_RESPONSES_KEY = "isSuggestedResponsesEnabled";
17
+ export declare const AI_FEATURE_WELLNESS_BREAK_KEY = "isWellnessBreakEnabled";
18
+ export declare const TASK_MULTI_LOGIN_HYDRATE = "task:multiLoginHydrate";
19
+ export declare const SUGGESTED_RESPONSE_EVENT = "SUGGESTED_RESPONSE";
@@ -1,5 +1,5 @@
1
1
  import { ITask } from '@webex/contact-center';
2
- import { IContactCenter, Team, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile, WithWebex } from './store.types';
2
+ import { IContactCenter, Team, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile, WithWebex, RealTimeTranscriptionData, RealTimeAssistPayload, OfferActionErrorDisplay, WellnessBreakState } from './store.types';
3
3
  declare class Store implements IStore {
4
4
  private static instance;
5
5
  teams: Team[];
@@ -21,6 +21,10 @@ declare class Store implements IStore {
21
21
  isQueueConsultInProgress: boolean;
22
22
  isDeclineButtonEnabled: boolean;
23
23
  currentConsultQueueId: string;
24
+ lastConsultDestination: {
25
+ to: string;
26
+ destinationType: string;
27
+ } | null;
24
28
  consultStartTimeStamp: any;
25
29
  lastStateChangeTimestamp?: number;
26
30
  lastIdleCodeChangeTimestamp?: number;
@@ -34,9 +38,34 @@ declare class Store implements IStore {
34
38
  allowConsultToQueue: boolean;
35
39
  agentProfile: AgentLoginProfile;
36
40
  isMuted: boolean;
41
+ /**
42
+ * Host init flag `enableWxBetterTogether` — set at `webexConfig.cc.enableWxBetterTogether`
43
+ * (or `webex.config.cc.enableWxBetterTogether`) before `store.init()`. Gates wxApp Mute/Keypad
44
+ * visibility and wxApp mute seed; SDK routes mute/DTMF APIs.
45
+ */
46
+ enableWxBetterTogether: boolean;
47
+ isDigitalChannelsInitialized: boolean;
48
+ dataCenter: string;
49
+ realtimeTranscriptionData: Partial<RealTimeTranscriptionData>[];
50
+ acceptedCampaignIds: Set<string>;
51
+ showE911Modal: boolean;
52
+ isEmergencyModalAlreadyDisplayed: boolean;
53
+ realTimeAssist: Record<string, RealTimeAssistPayload[]>;
54
+ aiSummaries: IStore['aiSummaries'];
55
+ offerActionErrors: Record<string, OfferActionErrorDisplay>;
56
+ isWellnessBreakEnabled: boolean;
57
+ wellnessAgentSessionId: string;
58
+ wellbeingBreakIdleCode?: IdleCode;
59
+ wellnessIdleCodeLookupPending: boolean;
60
+ wellnessBreakState: WellnessBreakState;
61
+ wellnessEventSequence: number;
62
+ legacyAgentState: string;
63
+ legacyAuxCodeId: string;
64
+ private wellnessIdleCodeRequestGeneration;
37
65
  constructor();
38
66
  static getInstance(): Store;
39
67
  registerCC(webex?: WithWebex['webex']): Promise<void>;
68
+ loadWellbeingBreakIdleCode(): Promise<void>;
40
69
  init(options: InitParams, setupEventListeners: any): Promise<void>;
41
70
  }
42
71
  export default Store;
@@ -1,6 +1,8 @@
1
- import { AgentLogin, Profile, BuddyDetails, ContactServiceQueue, ITask, BuddyAgents, BuddyAgentsResponse, StateChange, Logout, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, AddressBook } from '@webex/contact-center';
1
+ import { AgentLogin, Profile, BuddyDetails, ContactServiceQueue, ITask, BuddyAgents, BuddyAgentsResponse, StateChange, Logout, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, AddressBook, TASK_EVENTS, TaskUIControls, TaskUIControlState, InteractionUIControls, TaskUILeg, getDefaultUIControls, TaskResponse, WELLNESS_BREAK_NOTIFICATION_ACTIONS, WELLNESS_BREAK_USER_ACTIONS, WellnessBreakNotificationAction, WellnessBreakUserAction, WellnessBreakEvent, RespondToWellnessBreakParams, VOICE_CONNECTION_EVENTS, VOICE_CONNECTION_STATUS, VoiceLineStatus, VoiceMobiusSocketStatus, VoiceConnectionState } from '@webex/contact-center';
2
+ import type { AISummary, ApiAIAssistant, AISummaryAction, AISummaryFeedback, AISummaryResponse, AISummarySections, WebexSDK } from '@webex/contact-center';
3
+ import type { RealTimeAssistanceParams } from 'node_modules/@webex/contact-center/dist/types/types';
2
4
  import { OutdialAniEntriesResponse, OutdialAniParams } from 'node_modules/@webex/contact-center/dist/types/services/config/types';
3
- import { DestinationType } from 'node_modules/@webex/contact-center/dist/types/services/task/types';
5
+ import { DestinationType, PreviewContactPayload } from 'node_modules/@webex/contact-center/dist/types/services/task/types';
4
6
  import { AgentProfileUpdate, LogContext, SetStateResponse, StationLoginResponse, StationLogoutResponse, Team, UpdateDeviceTypeResponse } from 'node_modules/@webex/contact-center/dist/types/types';
5
7
  interface IContactCenter {
6
8
  on: (event: string, callback: (data: any) => void) => void;
@@ -11,6 +13,7 @@ interface IContactCenter {
11
13
  stationLogout(data: Logout): Promise<StationLogoutResponse>;
12
14
  LoggerProxy: ILogger;
13
15
  register(): Promise<Profile>;
16
+ getVoiceConnectionState(): VoiceConnectionState;
14
17
  taskManager: {
15
18
  getAllTasks: () => Record<string, ITask>;
16
19
  };
@@ -24,7 +27,89 @@ interface IContactCenter {
24
27
  outdialANIId: string;
25
28
  };
26
29
  setAgentState(data: StateChange): Promise<SetStateResponse>;
30
+ /** Returns the system-owned `WellbeingBreak` idle code for the active registration. */
31
+ getWellbeingBreakIdleCode(): Promise<IdleCode>;
27
32
  getOutdialAniEntries(params: OutdialAniParams): Promise<OutdialAniEntriesResponse>;
33
+ getAccessToken(): Promise<string>;
34
+ startOutdial(destination: string, origin?: string): Promise<TaskResponse>;
35
+ acceptPreviewContact(payload: PreviewContactPayload): Promise<TaskResponse>;
36
+ skipPreviewContact(payload: PreviewContactPayload): Promise<TaskResponse>;
37
+ removePreviewContact(payload: PreviewContactPayload): Promise<TaskResponse>;
38
+ userPreference?: IUserPreferenceService;
39
+ apiAIAssistant?: {
40
+ sendEvent?: ApiAIAssistant['sendEvent'];
41
+ getRealTimeAssistance(params: RealTimeAssistRequestParams & {
42
+ actionTimeStamp?: number;
43
+ }): Promise<unknown>;
44
+ sendRealTimeAssistanceUserAction(params: RealTimeAssistUserActionParams): Promise<unknown>;
45
+ requestWellnessBreak(): Promise<void>;
46
+ respondToWellnessBreak(params: RespondToWellnessBreakParams): Promise<void>;
47
+ };
48
+ /** SDK-owned transport for widgets behavioral metrics. */
49
+ webex?: {
50
+ internal?: {
51
+ newMetrics?: {
52
+ submitBehavioralEvent: (event: {
53
+ product: 'wxcc-widgets';
54
+ agent: WidgetsBehavioralMetricAgent;
55
+ target: string;
56
+ verb: WidgetsBehavioralMetricVerb;
57
+ payload?: Record<string, string | number | boolean>;
58
+ }) => void;
59
+ };
60
+ };
61
+ };
62
+ }
63
+ type WidgetsBehavioralMetricVerb = 'accept' | 'display' | 'dismiss' | 'end' | 'error' | 'expire' | 'fail' | 'fire' | 'ignore' | 'load' | 'receive' | 'reject' | 'request' | 'retry' | 'start';
64
+ type WidgetsBehavioralMetricAgent = 'browser' | 'service' | 'system' | 'user';
65
+ interface WidgetsBehavioralMetric {
66
+ name: string;
67
+ agent: WidgetsBehavioralMetricAgent;
68
+ target: string;
69
+ verb: WidgetsBehavioralMetricVerb;
70
+ properties?: Record<string, string | number | boolean>;
71
+ }
72
+ type RealTimeAssistRequestParams = RealTimeAssistanceParams;
73
+ type RealTimeAssistUserActionId = string;
74
+ type RealTimeAssistUserActionParams = {
75
+ agentId: string;
76
+ interactionId: string;
77
+ adaptiveCardId: string;
78
+ actionId: RealTimeAssistUserActionId;
79
+ languageCode?: string;
80
+ };
81
+ type RealTimeAssistPayload = {
82
+ agentId?: string;
83
+ data: {
84
+ adaptiveCard: unknown;
85
+ adaptiveCardId?: string;
86
+ title?: string;
87
+ suggestion?: string;
88
+ conversationId?: string;
89
+ trackingId?: string;
90
+ publishTimestamp?: number | string;
91
+ [key: string]: unknown;
92
+ };
93
+ notifDetails?: {
94
+ actionEvent?: string;
95
+ };
96
+ notifType?: string;
97
+ orgId?: string;
98
+ };
99
+ /** Public Agent Wellness Break lifecycle exposed by the widget package. */
100
+ type WellnessBreakPhase = 'idle' | 'offer-pending' | 'request-pending' | 'changing-to-break' | 'waiting-for-safe-state' | 'starting' | 'playing' | 'ending' | 'restoring' | 'error';
101
+ /** Stable, non-PII failure categories emitted to widget hosts. */
102
+ type WellnessBreakErrorCode = 'FEATURE_DISABLED' | 'SESSION_UNAVAILABLE' | 'SYSTEM_CODE_UNAVAILABLE' | 'ACTION_REQUEST_FAILED' | 'STATE_CHANGE_FAILED' | 'RESTORE_FAILED' | 'INVALID_EVENT' | 'MEDIA_UNAVAILABLE';
103
+ interface WellnessBreakError {
104
+ code: WellnessBreakErrorCode;
105
+ phase: WellnessBreakPhase;
106
+ recoverable: boolean;
107
+ }
108
+ interface WellnessBreakState {
109
+ phase: WellnessBreakPhase;
110
+ event?: WellnessBreakEvent;
111
+ responseDeadline?: number;
112
+ errorCode?: WellnessBreakErrorCode;
28
113
  }
29
114
  type IWebex = {
30
115
  cc: IContactCenter;
@@ -41,19 +126,57 @@ type WithWebex = {
41
126
  webex: {
42
127
  cc: IContactCenter;
43
128
  logger: ILogger;
129
+ config?: {
130
+ cc?: WebexCcInitConfig;
131
+ };
132
+ credentials?: Pick<WebexSDK['credentials'], 'getOrgId'>;
44
133
  };
45
134
  };
135
+ /** Host init config read from `webexConfig.cc` before `store.init()`. */
136
+ type WebexCcInitConfig = {
137
+ enableWxBetterTogether?: boolean;
138
+ };
46
139
  type WithWebexConfig = {
47
- webexConfig: any;
140
+ webexConfig: {
141
+ cc?: WebexCcInitConfig;
142
+ [key: string]: unknown;
143
+ };
48
144
  access_token: string;
49
145
  };
50
146
  type InitParams = WithWebex | WithWebexConfig;
147
+ type OfferActionErrorDisplay = {
148
+ message: string;
149
+ isWxAppTelephonyError?: boolean;
150
+ trackingId?: string;
151
+ status?: number | string;
152
+ };
51
153
  type IdleCode = {
52
154
  name: string;
53
155
  id: string;
54
156
  isSystem: boolean;
55
157
  isDefault: boolean;
56
158
  };
159
+ type RealTimeTranscriptionData = {
160
+ content: string;
161
+ conversationId: string;
162
+ isFinal: boolean;
163
+ languageCode?: string;
164
+ messageId: string;
165
+ orgId: string;
166
+ publishTimestamp: number | string;
167
+ role: string;
168
+ trackingId: string;
169
+ utteranceId: string;
170
+ };
171
+ type RealTimeTranscriptionEventPayload = {
172
+ agentId: string;
173
+ data: RealTimeTranscriptionData;
174
+ notifDetails: {
175
+ actionEvent?: string;
176
+ };
177
+ notifType: string;
178
+ orgId: string;
179
+ };
57
180
  interface IStore {
58
181
  featureFlags: {
59
182
  [key: string]: boolean;
@@ -80,23 +203,50 @@ interface IStore {
80
203
  isQueueConsultInProgress: boolean;
81
204
  isDeclineButtonEnabled: boolean;
82
205
  currentConsultQueueId: string;
206
+ lastConsultDestination: {
207
+ to: string;
208
+ destinationType: DestinationType;
209
+ } | null;
83
210
  consultStartTimeStamp?: number;
84
211
  callControlAudio: MediaStream | null;
85
212
  isEndConsultEnabled: boolean;
86
213
  allowConsultToQueue: boolean;
87
214
  agentProfile: AgentLoginProfile;
88
215
  isMuted: boolean;
216
+ /** Read-only host init flag — set at `webexConfig.cc.enableWxBetterTogether` before init. */
217
+ enableWxBetterTogether: boolean;
89
218
  isAddressBookEnabled: boolean;
219
+ isDigitalChannelsInitialized: boolean;
220
+ dataCenter: string;
221
+ realtimeTranscriptionData: Partial<RealTimeTranscriptionData>[];
222
+ acceptedCampaignIds: Set<string>;
223
+ showE911Modal: boolean;
224
+ isEmergencyModalAlreadyDisplayed: boolean;
225
+ realTimeAssist: Record<string, RealTimeAssistPayload[]>;
226
+ /** Widget-owned AI summary state; SDK payloads retain their original identity. */
227
+ aiSummaries: Record<string, Partial<Record<AISummaryRole, AISummaryEntry>>>;
228
+ offerActionErrors: Record<string, OfferActionErrorDisplay>;
229
+ isWellnessBreakEnabled: boolean;
230
+ wellnessAgentSessionId: string;
231
+ wellbeingBreakIdleCode?: IdleCode;
232
+ wellnessIdleCodeLookupPending: boolean;
233
+ wellnessBreakState: WellnessBreakState;
234
+ wellnessEventSequence: number;
235
+ legacyAgentState: string;
236
+ legacyAuxCodeId: string;
90
237
  init(params: InitParams, callback: (ccSDK: IContactCenter) => void): Promise<void>;
91
238
  registerCC(webex?: WithWebex['webex']): Promise<void>;
239
+ loadWellbeingBreakIdleCode(): Promise<void>;
92
240
  }
93
241
  interface IStoreWrapper extends IStore {
94
242
  store: IStore;
95
243
  onErrorCallback?: (widgetName: string, error: Error) => void;
96
244
  setCurrentTask(task: ITask): void;
97
245
  refreshTaskList(): void;
246
+ getBuddyAgents(action: 'Consult' | 'Transfer'): Promise<BuddyDetails[]>;
98
247
  getBuddyAgents(mediaType?: string): Promise<BuddyDetails[]>;
99
- getQueues(mediaType?: string, params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
248
+ getQueues(params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
249
+ getQueues(mediaType: string | undefined, params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
100
250
  getEntryPoints(params?: EntryPointSearchParams): Promise<EntryPointListResponse>;
101
251
  getAddressBookEntries(params?: AddressBookEntrySearchParams): Promise<AddressBookEntriesResponse>;
102
252
  setDeviceType(option: string): void;
@@ -114,53 +264,38 @@ interface IStoreWrapper extends IStore {
114
264
  setTeamId(id: string): void;
115
265
  setIsMuted(value: boolean): void;
116
266
  setIsDeclineButtonEnabled(value: boolean): void;
267
+ setDigitalChannelsInitialized(value: boolean): void;
117
268
  setOnError(callback: (widgetName: string, error: Error) => void): void;
269
+ setDataCenter(value: string): void;
270
+ getAccessToken(): Promise<string>;
271
+ addAcceptedCampaign(interactionId: string): void;
272
+ removeAcceptedCampaign(interactionId: string): void;
273
+ setShowE911Modal(value: boolean): void;
274
+ setIsEmergencyModalAlreadyDisplayed(value: boolean): void;
275
+ fetchUserPreferences(): Promise<void>;
276
+ updateEmergencyModalAcknowledgment(): Promise<void>;
277
+ clearRealTimeAssist(interactionId: string): void;
278
+ setOfferActionError(interactionId: string, error: OfferActionErrorDisplay | null): void;
279
+ clearOfferActionError(interactionId: string): void;
280
+ pruneOfferActionErrors(activeInteractionIds: Set<string>): void;
281
+ loadWellbeingBreakIdleCode(): Promise<void>;
282
+ setWellnessBreakState(state: WellnessBreakState): void;
283
+ submitBehavioralMetric(metric: WidgetsBehavioralMetric): void;
284
+ resetWellnessSession(): void;
285
+ requestMidCallSummary(action: AISummaryAction, task?: ITask): Promise<AISummary | undefined>;
286
+ requestPostCallSummary(task?: ITask): Promise<AISummary | undefined>;
287
+ editAISummary(role: Exclude<AISummaryRole, 'receiver'>, key: keyof AISummarySections | 'summaryText', value: string, expectedSummary: AISummary | undefined, task?: ITask): boolean;
288
+ recordAISummaryCopied(role: AISummaryRole, expectedSummary: AISummary | undefined, task?: ITask): boolean;
289
+ setAISummaryFeedback(role: Exclude<AISummaryRole, 'receiver'>, feedback: AISummaryFeedback, expectedSummary: AISummary | undefined, task?: ITask): boolean;
290
+ setReceiverSummaryFeedback(feedback: AISummaryFeedback, expectedSummary: AISummary, task?: ITask): Promise<void>;
291
+ setAISummaryExcluded(excluded: boolean, expectedSummary: AISummary | undefined, task?: ITask): boolean;
292
+ sendMidCallSummaryResponse(action: AISummaryAction, task?: ITask, state?: AISummaryResponse['state']): Promise<AISummaryResponseSubmissionResult>;
293
+ sendPostCallSummaryResponse(wrapUpCode: string, task: ITask): Promise<AISummaryResponseSubmissionResult>;
118
294
  }
119
295
  interface IWrapupCode {
120
296
  id: string;
121
297
  name: string;
122
298
  }
123
- declare enum TASK_EVENTS {
124
- TASK_INCOMING = "task:incoming",
125
- TASK_ASSIGNED = "task:assigned",
126
- TASK_MEDIA = "task:media",
127
- TASK_HOLD = "task:hold",
128
- TASK_UNHOLD = "task:unhold",
129
- TASK_CONSULT = "task:consult",
130
- TASK_CONSULT_END = "task:consultEnd",
131
- TASK_CONSULT_ACCEPTED = "task:consultAccepted",
132
- TASK_PAUSE = "task:pause",
133
- TASK_RESUME = "task:resume",
134
- TASK_END = "task:end",
135
- TASK_WRAPUP = "task:wrapup",
136
- TASK_REJECT = "task:rejected",
137
- TASK_HYDRATE = "task:hydrate",
138
- TASK_CONSULTING = "task:consulting",
139
- TASK_CONSULT_QUEUE_CANCELLED = "task:consultQueueCancelled",
140
- AGENT_CONTACT_ASSIGNED = "AgentContactAssigned",
141
- CONTACT_RECORDING_PAUSED = "ContactRecordingPaused",
142
- CONTACT_RECORDING_RESUMED = "ContactRecordingResumed",
143
- AGENT_WRAPPEDUP = "AgentWrappedUp",
144
- AGENT_OFFER_CONTACT = "AgentOfferContact",
145
- AGENT_CONSULT_CREATED = "AgentConsultCreated",
146
- TASK_RECORDING_PAUSED = "task:recordingPaused",
147
- TASK_RECORDING_RESUMED = "task:recordingResumed",
148
- TASK_OFFER_CONSULT = "task:offerConsult",
149
- TASK_AUTO_ANSWERED = "task:autoAnswered",
150
- TASK_CONFERENCE_ESTABLISHING = "task:conferenceEstablishing",
151
- TASK_CONFERENCE_STARTED = "task:conferenceStarted",
152
- TASK_CONFERENCE_FAILED = "task:conferenceFailed",
153
- TASK_CONFERENCE_ENDED = "task:conferenceEnded",
154
- TASK_PARTICIPANT_JOINED = "task:participantJoined",
155
- TASK_PARTICIPANT_LEFT = "task:participantLeft",
156
- TASK_CONFERENCE_TRANSFERRED = "task:conferenceTransferred",
157
- TASK_CONFERENCE_TRANSFER_FAILED = "task:conferenceTransferFailed",
158
- TASK_CONFERENCE_END_FAILED = "task:conferenceEndFailed",
159
- TASK_PARTICIPANT_LEFT_FAILED = "task:participantLeftFailed",
160
- TASK_MERGED = "task:merged",
161
- TASK_POST_CALL_ACTIVITY = "task:postCallActivity",
162
- TASK_OUTDIAL_FAILED = "task:outdialFailed"
163
- }
164
299
  declare enum CC_EVENTS {
165
300
  AGENT_DN_REGISTERED = "agent:dnRegistered",
166
301
  AGENT_LOGOUT_SUCCESS = "agent:logoutSuccess",
@@ -168,7 +303,9 @@ declare enum CC_EVENTS {
168
303
  AGENT_MULTI_LOGIN = "agent:multiLogin",
169
304
  AGENT_STATE_CHANGE = "agent:stateChange",
170
305
  AGENT_RELOGIN_SUCCESS = "agent:reloginSuccess",
171
- AGENT_OFFER_CONSULT = "AgentOfferConsult"
306
+ AGENT_OFFER_CONSULT = "AgentOfferConsult",
307
+ REAL_TIME_TRANSCRIPTION = "REAL_TIME_TRANSCRIPTION",
308
+ WELLNESS_BREAK = "WellnessBreak"
172
309
  }
173
310
  interface ICustomStateSet {
174
311
  name: string;
@@ -180,6 +317,8 @@ interface ICustomStateReset {
180
317
  type ICustomState = ICustomStateSet | ICustomStateReset;
181
318
  declare const ENGAGED_LABEL = "ENGAGED";
182
319
  declare const ENGAGED_USERNAME = "Engaged";
320
+ declare const RESERVED_LABEL = "RESERVED";
321
+ declare const RESERVED_USERNAME = "Reserved";
183
322
  type AgentLoginProfile = {
184
323
  agentName?: string;
185
324
  orgId?: string;
@@ -192,6 +331,12 @@ type AgentLoginProfile = {
192
331
  social: number;
193
332
  telephony: number;
194
333
  };
334
+ agentProfileID?: string;
335
+ isTimeoutDesktopInactivityEnabled?: boolean;
336
+ timeoutDesktopInactivityMins?: number;
337
+ agentSessionId?: string;
338
+ auxCodeId?: string;
339
+ subStatus?: string;
195
340
  };
196
341
  type PaginatedListParams = {
197
342
  page: number;
@@ -224,20 +369,125 @@ declare const ERROR_TRIGGERING_IDLE_CODES: {
224
369
  CHANNEL_FAILURE: string;
225
370
  RONA: string;
226
371
  };
227
- export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, IWebex, PaginatedListParams, FetchPaginatedList, TransformPaginatedData, };
228
- export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, DIAL_NUMBER, EXTENSION, DESKTOP, MEDIA_TYPE_TELEPHONY_LOWER, MEDIA_TYPE_TELEPHONY_UPPER, DEVICE_TYPE_BROWSER, AGENT_STATE_AVAILABLE, LoginOptions, ERROR_TRIGGERING_IDLE_CODES, };
229
- export declare enum ConsultStatus {
230
- NO_CONSULTATION_IN_PROGRESS = "No consultation in progress",
231
- BEING_CONSULTED = "beingConsulted",
232
- CONSULT_INITIATED = "consultInitiated",
233
- BEING_CONSULTED_ACCEPTED = "beingConsultedAccepted",
234
- CONSULT_ACCEPTED = "consultAccepted",
235
- CONNECTED = "connected",
236
- CONFERENCE = "conference",
237
- CONSULT_COMPLETED = "consultCompleted"
238
- }
372
+ export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, WebexCcInitConfig, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, IWebex, PaginatedListParams, FetchPaginatedList, TransformPaginatedData, TaskUIControls, TaskUIControlState, InteractionUIControls, TaskUILeg, RealTimeTranscriptionData, RealTimeTranscriptionEventPayload, RealTimeAssistPayload, RealTimeAssistRequestParams, RealTimeAssistUserActionId, RealTimeAssistUserActionParams, OfferActionErrorDisplay, WellnessBreakNotificationAction, WellnessBreakUserAction, WellnessBreakEvent, RespondToWellnessBreakParams, VoiceConnectionState, WellnessBreakPhase, WellnessBreakErrorCode, WellnessBreakError, WellnessBreakState, WidgetsBehavioralMetric, WidgetsBehavioralMetricAgent, WidgetsBehavioralMetricVerb, AISummaryAction, AISummaryFeedback, AISummaryResponse, AISummarySections, };
373
+ export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, RESERVED_LABEL, RESERVED_USERNAME, DIAL_NUMBER, EXTENSION, DESKTOP, MEDIA_TYPE_TELEPHONY_LOWER, MEDIA_TYPE_TELEPHONY_UPPER, DEVICE_TYPE_BROWSER, AGENT_STATE_AVAILABLE, LoginOptions, ERROR_TRIGGERING_IDLE_CODES, getDefaultUIControls, WELLNESS_BREAK_NOTIFICATION_ACTIONS, WELLNESS_BREAK_USER_ACTIONS, VOICE_CONNECTION_EVENTS, VOICE_CONNECTION_STATUS, VoiceLineStatus, VoiceMobiusSocketStatus, };
239
374
  export type Participant = {
240
375
  id: string;
241
376
  pType: 'Customer' | 'Agent' | string;
242
377
  name?: string;
243
378
  };
379
+ export type ConferenceParticipantDropType = 'Customer' | 'Agent' | 'EP-DN' | 'Supervisor';
380
+ /**
381
+ * Display and authorization data for one participant-drop roster row.
382
+ * `dropTargetId` is passed to the SDK only when `isReadOnly` is false.
383
+ */
384
+ export type ConferenceParticipantDropTarget = {
385
+ participantType: ConferenceParticipantDropType;
386
+ displayName: string;
387
+ dropTargetId: string;
388
+ isPrimary: boolean;
389
+ isReadOnly: boolean;
390
+ /** Target is visible with an action, but the conference Drop request is not valid yet. */
391
+ isDropDisabled: boolean;
392
+ requiresConfirmation: boolean;
393
+ };
394
+ /**
395
+ * Participant-drop roster derived from the authoritative main-call media leg.
396
+ */
397
+ export type ConferenceParticipantDropRoster = {
398
+ customer: ConferenceParticipantDropTarget | null;
399
+ participants: ConferenceParticipantDropTarget[];
400
+ isDropDisabled: boolean;
401
+ };
402
+ /**
403
+ * Desktop preference data structure containing E911 modal acknowledgment.
404
+ * @public
405
+ */
406
+ export type DesktopPreference = {
407
+ isEmergencyModalAlreadyDisplayed?: boolean;
408
+ };
409
+ /**
410
+ * User preference response from the SDK.
411
+ * @public
412
+ */
413
+ export type UserPreferenceResponse = {
414
+ id: string;
415
+ organizationId: string;
416
+ userId: string;
417
+ preferences?: {
418
+ desktopPreference?: string;
419
+ };
420
+ createdTime?: number;
421
+ lastUpdatedTime?: number;
422
+ };
423
+ /**
424
+ * Request payload for creating user preferences.
425
+ * @public
426
+ */
427
+ export type CreateUserPreferenceRequest = {
428
+ userId: string;
429
+ desktopPreference: string;
430
+ };
431
+ /**
432
+ * Request payload for updating user preferences.
433
+ * @public
434
+ */
435
+ export type UpdateUserPreferenceRequest = {
436
+ desktopPreference: string;
437
+ };
438
+ /**
439
+ * Query parameters for fetching user preferences.
440
+ * @public
441
+ */
442
+ export type GetUserPreferenceParams = {
443
+ userId?: string;
444
+ page?: number;
445
+ pageSize?: number;
446
+ };
447
+ /**
448
+ * User Preference service interface.
449
+ * TODO: Remove once SDK exposes this interface - CAI-7906
450
+ * @public
451
+ */
452
+ export interface IUserPreferenceService {
453
+ getUserPreference(params?: GetUserPreferenceParams): Promise<UserPreferenceResponse>;
454
+ createUserPreference(data: CreateUserPreferenceRequest): Promise<UserPreferenceResponse>;
455
+ updateUserPreference(userId: string, data: UpdateUserPreferenceRequest): Promise<UserPreferenceResponse>;
456
+ }
457
+ /** Outbound type values that identify a campaign preview task. */
458
+ export declare const CAMPAIGN_PREVIEW_OUTBOUND_TYPES: string[];
459
+ /** Campaign type values (from callProcessingDetails) that identify a campaign preview task. */
460
+ export declare const CAMPAIGN_PREVIEW_CAMPAIGN_TYPES: string[];
461
+ /** The consult/transfer initiator's summary, the receiving agent's summary, or the wrap-up summary. */
462
+ export type AISummaryRole = 'initiator' | 'receiver' | 'post-call';
463
+ /** Editable structured fields declared by the SDK; the separate resolution is read-only. */
464
+ export declare const AI_SUMMARY_EDITABLE_SECTION_KEYS: readonly ["initialContactReason", "additionalContactReasons", "additionalContext", "keyActionsTaken", "nextSteps", "reasonForTransferOrConsult"];
465
+ /** Latest summary and optional incoming history, stored at `Store.aiSummaries[interactionId][role]`. */
466
+ export type AISummaryEntry = {
467
+ /** Lifecycle of the latest request, or of the pushed receiver summary. */
468
+ status: 'loading' | 'ready' | 'error';
469
+ /**
470
+ * The unchanged SDK summary, retained while a newer request loads or after it fails.
471
+ */
472
+ content?: AISummary;
473
+ /** Earlier incoming summaries for this interaction in the current agent session. */
474
+ history?: AISummary[];
475
+ /** Independent feedback for each retained receiver adaptive card. */
476
+ cardFeedback?: Array<{
477
+ content: AISummary;
478
+ feedback: AISummaryFeedback;
479
+ pending: boolean;
480
+ }>;
481
+ /** SDK submission record; edits, copy counts and feedback are updated through store actions. */
482
+ response: AISummaryResponse;
483
+ /** Orders local request promise settlements; SDK transport correlation remains SDK-owned. */
484
+ requestGeneration?: number;
485
+ /** The receiving agent's feedback response is being sent. */
486
+ feedbackPending?: boolean;
487
+ /** The initiator opted out of sending this summary in the current consult/transfer picker. */
488
+ excluded?: boolean;
489
+ /** The consult or transfer a mid-call summary was generated for. */
490
+ action?: AISummaryAction;
491
+ };
492
+ /** Outcome of sending a mid-call or post-call summary response through the SDK. */
493
+ export type AISummaryResponseSubmissionResult = 'submitted' | 'response-failed' | 'not-applicable';