Skip to content

Commit

Permalink
export events type defs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasassisrosa committed Oct 9, 2024
1 parent 79a287c commit 5ea897c
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0-alpha.6
2.0.0-alpha.7
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
102 changes: 102 additions & 0 deletions types/Events.d.ts
Original file line number Diff line number Diff line change
@@ -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'];
}
}
}
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
///<reference path='./lib.d.ts' />
///<reference path='./TelnyxAPI.d.ts' />
///<reference path='./Webhooks.d.ts' />
///<reference path='./Events.d.ts' />
///<reference path='./Errors.d.ts' />

// Resources imports
Expand Down

0 comments on commit 5ea897c

Please sign in to comment.