VapiAI / client-sdk-web

This package lets you start Vapi calls directly in your webapp.
79 stars 49 forks source link

Type Mismatch callControlCreateWebCall #64

Open mckmadeline opened 1 month ago

mckmadeline commented 1 month ago
vapi.ts:152:27 - error TS2551: Property 'callControllerCreateWebCall' does not exist on type '{ callControllerCreate: (data: CreateCallDTO, params?: RequestParams) => Promise<HttpResponse<Call, any>>; callControllerFindAll: (query?: { ...; } | undefined, params?: RequestParams) => Promise<...>; callControllerFindOne: (id: string, params?: RequestParams) => Promise<...>; callControllerUpdate: (id: string, dat...'. Did you mean 'callControllerCreate'?

152         await client.call.callControllerCreateWebCall({
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  api.ts:10434:5
    10434     callControllerCreate: (data: CreateCallDTO, params: RequestParams = {}) =>
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    10435       this.request<Call, any>({
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ...
    10442         ...params,
          ~~~~~~~~~~~~~~~~~~
    10443       }),
          ~~~~~~~~
    'callControllerCreate' is declared here.

Found 1 error in vapi.ts:152
aliciachen10 commented 1 month ago

I'm having the same issue - thanks for posting this

I can see the reference to callControllerCreateWebCall here but it doesn't seem to be in the main branch - https://github.com/VapiAI/web/blob/2d8415d7856f4295ae0b1e49c55d37a11cd4d434/api.ts#L7891 did it get removed by accident or is there a new way I should call this?

sagar-vapi commented 1 month ago

@mckmadeline / @aliciachen10 Are you both on the latest version 2.1.4? If not could you upgrade to this version.

aliciachen10 commented 1 month ago

Hi @sagar-vapi I'm on 2.1.4; I just checked

HamChowderr commented 2 weeks ago

Just booted up and the error occurs.