Skip to content

Commit

Permalink
New spec, new code
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Jan 17, 2025
1 parent b992e8e commit c754fba
Show file tree
Hide file tree
Showing 97 changed files with 5,629 additions and 6,070 deletions.
34 changes: 34 additions & 0 deletions packages/core/src/definitions/AIInsights.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import type TranscriptInsightUnit from './TranscriptInsightUnit';
import type SummaryInsightUnit from './SummaryInsightUnit';
import type HighlightsInsightUnit from './HighlightsInsightUnit';
import type NextStepsInsightUnit from './NextStepsInsightUnit';
import type BulletedSummaryInsightUnit from './BulletedSummaryInsightUnit';
import type AIScoreInsightUnit from './AIScoreInsightUnit';

interface AIInsights {
/**
*/
Transcript?: TranscriptInsightUnit[];

/**
*/
Summary?: SummaryInsightUnit[];

/**
*/
Highlights?: HighlightsInsightUnit[];

/**
*/
NextSteps?: NextStepsInsightUnit[];

/**
*/
BulletedSummary?: BulletedSummaryInsightUnit[];

/**
*/
AIScore?: AIScoreInsightUnit[];
}

export default AIInsights;
10 changes: 10 additions & 0 deletions packages/core/src/definitions/AIScoreInsightUnit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
interface AIScoreInsightUnit {
/**
* Value of the score
* Required
* Example: 7
*/
value?: string;
}

export default AIScoreInsightUnit;
7 changes: 6 additions & 1 deletion packages/core/src/definitions/AccountPresenceEventBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface AccountPresenceEventBody {
extensionId?: string;

/**
* Telephony presence status. Returned if telephony status is changed.
* Telephony presence status. Returned if telephony status is changed
*/
telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall';

Expand All @@ -34,6 +34,11 @@ interface AccountPresenceEventBody {
*/
dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly';

/**
* Meetings presence status. Specifies if a user is on a meeting
*/
meetingStatus?: 'Connected' | 'Disconnected';

/**
* If `true` enables other extensions to see the extension presence status
*/
Expand Down
9 changes: 4 additions & 5 deletions packages/core/src/definitions/BaseCallLogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,13 @@ interface BaseCallLogRecord {

/**
* Call duration in seconds
* Required
* Format: int32
* Format: int64
*/
duration?: number;

/**
* Call duration in milliseconds
* Required
* Format: int32
* Format: int64
*/
durationMs?: number;

Expand Down Expand Up @@ -304,7 +302,8 @@ interface BaseCallLogRecord {
| 'Vma'
| 'LocalNumber'
| 'ImsOutgoing'
| 'ImsIncoming';
| 'ImsIncoming'
| 'Unknown';
}

export default BaseCallLogRecord;
2 changes: 1 addition & 1 deletion packages/core/src/definitions/BaseTokenRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface BaseTokenRequest {

/**
* Refresh token lifetime in seconds
* Maximum: 604800
* Maximum: 2592000
* Format: int32
* Default: 604800
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ interface BatchProvisionUsersRequestItem {
/**
*/
devices?: BatchProvisionUsersRequestItemDevices[];

/**
* Specifies if a welcome/activation email is sent to the new users (within extension status changing from
* 'Unassigned' to 'NotActivated/Disabled')
* Default: true
*/
sendWelcomeEmail?: boolean;
}

export default BatchProvisionUsersRequestItem;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type TransitionInfo from './TransitionInfo';

interface BatchProvisionUsersRequestItemContact {
/**
* Given name
Expand Down Expand Up @@ -30,6 +32,10 @@ interface BatchProvisionUsersRequestItemContact {
* Default: true
*/
emailAsLoginName?: boolean;

/**
*/
transition?: TransitionInfo;
}

export default BatchProvisionUsersRequestItemContact;
10 changes: 10 additions & 0 deletions packages/core/src/definitions/BulletedSummaryInsightUnit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
interface BulletedSummaryInsightUnit {
/**
* Value of the summary
* Required
* Example: conversational insights text
*/
value?: string;
}

export default BulletedSummaryInsightUnit;
9 changes: 4 additions & 5 deletions packages/core/src/definitions/CallLogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,13 @@ interface CallLogRecord {

/**
* Call duration in seconds
* Required
* Format: int32
* Format: int64
*/
duration?: number;

/**
* Call duration in milliseconds
* Required
* Format: int32
* Format: int64
*/
durationMs?: number;

Expand Down Expand Up @@ -305,7 +303,8 @@ interface CallLogRecord {
| 'Vma'
| 'LocalNumber'
| 'ImsOutgoing'
| 'ImsIncoming';
| 'ImsIncoming'
| 'Unknown';

/**
* Internal identifier of a call log record
Expand Down
13 changes: 7 additions & 6 deletions packages/core/src/definitions/CallLogRecordLegInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,13 @@ interface CallLogRecordLegInfo {

/**
* Call duration in seconds
* Required
* Format: int32
* Format: int64
*/
duration?: number;

/**
* Call duration in milliseconds
* Required
* Format: int32
* Format: int64
*/
durationMs?: number;

Expand Down Expand Up @@ -304,7 +302,8 @@ interface CallLogRecordLegInfo {
| 'Vma'
| 'LocalNumber'
| 'ImsOutgoing'
| 'ImsIncoming';
| 'ImsIncoming'
| 'Unknown';

/**
* Leg type
Expand Down Expand Up @@ -340,6 +339,7 @@ interface CallLogRecordLegInfo {
| 'Hunting'
| 'OutgoingFreeSpDl'
| 'ParkLocation'
| 'CallMeCallOut'
| 'ConferenceCall'
| 'MobileApp'
| 'MoveToConference'
Expand All @@ -350,7 +350,8 @@ interface CallLogRecordLegInfo {
| 'Pickup'
| 'ImsCall'
| 'JoinCall'
| 'TextRelay';
| 'TextRelay'
| 'IvaCall';

/**
* Returned for 'Detailed' call log. Specifies if the leg is master-leg
Expand Down
6 changes: 6 additions & 0 deletions packages/core/src/definitions/CallMonitoringGroup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type CallMonitoringGroupSite from './CallMonitoringGroupSite';

interface CallMonitoringGroup {
/**
* Link to a call monitoring group resource
Expand All @@ -14,6 +16,10 @@ interface CallMonitoringGroup {
* Name of a group
*/
name?: string;

/**
*/
site?: CallMonitoringGroupSite;
}

export default CallMonitoringGroup;
13 changes: 13 additions & 0 deletions packages/core/src/definitions/CallMonitoringGroupSite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
interface CallMonitoringGroupSite {
/**
* Identifier of a site
*/
id?: string;

/**
* Name of a site
*/
name?: string;
}

export default CallMonitoringGroupSite;
13 changes: 0 additions & 13 deletions packages/core/src/definitions/CallQueueResource.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/core/src/definitions/CallSessionStatusInfo.ts

This file was deleted.

28 changes: 22 additions & 6 deletions packages/core/src/definitions/CallStatusInfo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type PeerInfo from './PeerInfo';
import type MobilePickupData from './MobilePickupData';

/**
* Status data of a call session
Expand All @@ -21,11 +22,7 @@ interface CallStatusInfo {
| 'VoiceMailScreening';

/**
*/
peerId?: PeerInfo;

/**
* Reason for call termination. For 'Disconnected' code only
* Reason for a call status, might be specified for some codes
*/
reason?:
| 'Pickup'
Expand Down Expand Up @@ -56,12 +53,31 @@ interface CallStatusInfo {
| 'CallReplied'
| 'CallSwitch'
| 'CallFinished'
| 'CallDropped';
| 'CallDropped'
| 'Voicemail';

/**
* Optional message
*/
description?: string;

/**
* Call park data. Returned for calls in 'Parked' state
*/
parkData?: string;

/**
*/
peerId?: PeerInfo;

/**
*/
mobilePickupData?: MobilePickupData;

/**
* Specifies if it's a conference call
*/
rcc?: boolean;
}

export default CallStatusInfo;
26 changes: 0 additions & 26 deletions packages/core/src/definitions/ContactResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import type AccountResource from './AccountResource';
import type PhoneNumberResource from './PhoneNumberResource';
import type AccountDirectoryProfileImageResource from './AccountDirectoryProfileImageResource';
import type BusinessSiteResource from './BusinessSiteResource';
import type DirectoryRoleResource from './DirectoryRoleResource';
import type CallQueueResource from './CallQueueResource';
import type CustomFieldResource from './CustomFieldResource';
import type GroupResource from './GroupResource';
import type CostCenterResource from './CostCenterResource';
import type ExternalIntegrationResource from './ExternalIntegrationResource';

interface ContactResource {
Expand Down Expand Up @@ -107,35 +103,13 @@ interface ContactResource {
*/
hidden?: boolean;

/**
*/
role?: DirectoryRoleResource;

/**
*/
callQueues?: CallQueueResource[];

/**
*/
customFields?: CustomFieldResource[];

/**
*/
groups?: GroupResource[];

/**
*/
costCenter?: CostCenterResource;

/**
*/
integration?: ExternalIntegrationResource;

/**
* Extension subtype
* Example: Unknown
*/
subType?: 'Unknown' | 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Emergency';
}

export default ContactResource;
Loading

0 comments on commit c754fba

Please sign in to comment.