Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: InputAction does not support mode #975

Closed
kboek opened this issue Dec 20, 2024 · 3 comments
Closed

[Bug]: InputAction does not support mode #975

kboek opened this issue Dec 20, 2024 · 3 comments
Assignees
Labels
bug A defect in the code types Some issue with the types from Typescript

Comments

@kboek
Copy link

kboek commented Dec 20, 2024

Node Version

20.x

Platform

Linux

SDK Version

3.x

Code Sample

import { NCCOActions } from '@vonage/voice'
import { ConnectAction, InputAction } from '@vonage/voice/dist/lib/types'

const inputAction:InputAction = {
  action: NCCOActions.INPUT,
  eventUrl: [ 'https://some.url/path' ],
  type: [ 'dtmf' ],
  mode: 'asynchronous'
}

Expected Behavior

When using with the Voice SDK, e.g. transferCallWithNCCO, the call should listen for DTMF tones and digits should be sent one at a time to the event webhook in real time

Actual Behavior

TypeScript build fails with this error: Object literal may only specify known properties, and 'mode' does not exist in type 'InputAction'

@kboek kboek added bug A defect in the code Triage Issue needs to be triaged labels Dec 20, 2024
@manchuck manchuck added types Some issue with the types from Typescript and removed Triage Issue needs to be triaged labels Jan 6, 2025
@manchuck
Copy link
Contributor

manchuck commented Jan 6, 2025

Can confirm working on fix

@manchuck
Copy link
Contributor

manchuck commented Jan 6, 2025

Fix added with #977

@manchuck
Copy link
Contributor

v3.19.3 has been pushed which has this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the code types Some issue with the types from Typescript
Projects
None yet
Development

No branches or pull requests

4 participants