diff --git a/CHANGELOG.md b/CHANGELOG.md index 418c3b4..0206dca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## v2 +### v2.0.0-alpha.7 + +- Export API callback `events` type definitions + ### v2.0.0-alpha.6 - Update optional types on `Webhooks` diff --git a/VERSION b/VERSION index e5e3d83..f6b05cc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0-alpha.6 +2.0.0-alpha.7 diff --git a/package-lock.json b/package-lock.json index d6d4427..72e78ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "telnyx", - "version": "2.0.0-alpha.6", + "version": "2.0.0-alpha.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "telnyx", - "version": "2.0.0-alpha.6", + "version": "2.0.0-alpha.7", "license": "MIT", "devDependencies": { "@eslint/js": "^9.10.0", diff --git a/package.json b/package.json index f26cbcc..d0b05ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telnyx", - "version": "2.0.0-alpha.6", + "version": "2.0.0-alpha.7", "description": "Telnyx API Node SDK", "keywords": [ "telnyx", diff --git a/types/Events.d.ts b/types/Events.d.ts new file mode 100644 index 0000000..1cbb325 --- /dev/null +++ b/types/Events.d.ts @@ -0,0 +1,102 @@ +import {components} from './TelnyxAPI.js'; + +declare module 'telnyx' { + namespace Telnyx { + namespace events { + type CallAIGatherEndedEvent = + components['schemas']['CallAIGatherEndedEvent']; + type CallAnsweredEvent = components['schemas']['CallAnsweredEvent']; + type CallBridgedEvent = components['schemas']['CallBridgedEvent']; + type CallDtmfReceivedEvent = + components['schemas']['CallDtmfReceivedEvent']; + type CallEnqueuedEvent = components['schemas']['CallEnqueuedEvent']; + type CallEvent = components['schemas']['CallEvent']; + type CallForkStartedEvent = components['schemas']['CallForkStartedEvent']; + type CallForkStoppedEvent = components['schemas']['CallForkStoppedEvent']; + type CallGatherEndedEvent = components['schemas']['CallGatherEndedEvent']; + type CallHangupEvent = components['schemas']['CallHangupEvent']; + type CallInitiatedEvent = components['schemas']['CallInitiatedEvent']; + type CallLeftQueueEvent = components['schemas']['CallLeftQueueEvent']; + type CallMachineDetectionEndedEvent = + components['schemas']['CallMachineDetectionEndedEvent']; + type CallMachineGreetingEndedEvent = + components['schemas']['CallMachineGreetingEndedEvent']; + type CallMachinePremiumDetectionEndedEvent = + components['schemas']['CallMachinePremiumDetectionEndedEvent']; + type CallMachinePremiumGreetingEndedEvent = + components['schemas']['CallMachinePremiumGreetingEndedEvent']; + type CallPlaybackEndedEvent = + components['schemas']['CallPlaybackEndedEvent']; + type CallPlaybackStartedEvent = + components['schemas']['CallPlaybackStartedEvent']; + type CallRecordingErrorEvent = + components['schemas']['callRecordingErrorEvent']; + type CallRecordingSavedEvent = + components['schemas']['CallRecordingSavedEvent']; + type CallReferCompletedEvent = + components['schemas']['CallReferCompletedEvent']; + type CallReferFailedEvent = components['schemas']['CallReferFailedEvent']; + type CallReferStartedEvent = + components['schemas']['CallReferStartedEvent']; + type CallSpeakEndedEvent = components['schemas']['CallSpeakEndedEvent']; + type CallSpeakStartedEvent = + components['schemas']['CallSpeakStartedEvent']; + type CallStreamingFailedEvent = + components['schemas']['CallStreamingFailedEvent']; + type CallStreamingStartedEvent = + components['schemas']['CallStreamingStartedEvent']; + type CallStreamingStoppedEvent = + components['schemas']['CallStreamingStoppedEvent']; + type CampaignStatusUpdateEvent = + components['schemas']['CampaignStatusUpdateEvent']; + type CompositionCompletedEvent = + components['schemas']['CompositionCompletedEvent']; + type ConferenceCreatedEvent = + components['schemas']['ConferenceCreatedEvent']; + type ConferenceEndedEvent = components['schemas']['ConferenceEndedEvent']; + type ConferenceFloorChangedEvent = + components['schemas']['ConferenceFloorChangedEvent']; + type ConferenceParticipantJoinedEvent = + components['schemas']['ConferenceParticipantJoinedEvent']; + type ConferenceParticipantLeftEvent = + components['schemas']['ConferenceParticipantLeftEvent']; + type ConferenceParticipantPlaybackEndedEvent = + components['schemas']['ConferenceParticipantPlaybackEndedEvent']; + type ConferenceParticipantPlaybackStartedEvent = + components['schemas']['ConferenceParticipantPlaybackStartedEvent']; + type ConferenceParticipantSpeakEndedEvent = + components['schemas']['ConferenceParticipantSpeakEndedEvent']; + type ConferenceParticipantSpeakStartedEvent = + components['schemas']['ConferenceParticipantSpeakStartedEvent']; + type ConferencePlaybackEndedEvent = + components['schemas']['ConferencePlaybackEndedEvent']; + type ConferencePlaybackStartedEvent = + components['schemas']['ConferencePlaybackStartedEvent']; + type ConferenceRecordingSavedEvent = + components['schemas']['ConferenceRecordingSavedEvent']; + type ConferenceSpeakEndedEvent = + components['schemas']['ConferenceSpeakEndedEvent']; + type ConferenceSpeakStartedEvent = + components['schemas']['ConferenceSpeakStartedEvent']; + type CustomerServiceRecordStatusChangedEvent = + components['schemas']['CustomerServiceRecordStatusChangedEvent']; + type InboundMessageEvent = components['schemas']['InboundMessageEvent']; + type NumberOrderBlockEvent = + components['schemas']['NumberOrderBlockEvent']; + type NumberOrderedEvent = components['schemas']['NumberOrderedEvent']; + type OutboundMessageEvent = components['schemas']['OutboundMessageEvent']; + type ParticipantJoinedEvent = + components['schemas']['ParticipantJoinedEvent']; + type ParticipantLeftEvent = components['schemas']['ParticipantLeftEvent']; + type RecordingCompletedEvent = + components['schemas']['RecordingCompletedEvent']; + type RecordingStartedEvent = + components['schemas']['RecordingStartedEvent']; + type ReplacedLinkClickEvent = + components['schemas']['ReplacedLinkClickEvent']; + type SessionEndedEvent = components['schemas']['SessionEndedEvent']; + type SessionStartedEvent = components['schemas']['SessionStartedEvent']; + type TranscriptionEvent = components['schemas']['TranscriptionEvent']; + } + } +} diff --git a/types/index.d.ts b/types/index.d.ts index 5336aa1..dfeb8f0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,6 +3,7 @@ /// /// /// +/// /// // Resources imports