5
5
import * as environments from "./environments" ;
6
6
import * as core from "./core" ;
7
7
import { Calls } from "./api/resources/calls/client/Client" ;
8
+ import { Chats } from "./api/resources/chats/client/Client" ;
9
+ import { Sessions } from "./api/resources/sessions/client/Client" ;
8
10
import { Assistants } from "./api/resources/assistants/client/Client" ;
9
11
import { PhoneNumbers } from "./api/resources/phoneNumbers/client/Client" ;
10
12
import { Tools } from "./api/resources/tools/client/Client" ;
@@ -41,6 +43,8 @@ export declare namespace VapiClient {
41
43
42
44
export class VapiClient {
43
45
protected _calls : Calls | undefined ;
46
+ protected _chats : Chats | undefined ;
47
+ protected _sessions : Sessions | undefined ;
44
48
protected _assistants : Assistants | undefined ;
45
49
protected _phoneNumbers : PhoneNumbers | undefined ;
46
50
protected _tools : Tools | undefined ;
@@ -60,6 +64,14 @@ export class VapiClient {
60
64
return ( this . _calls ??= new Calls ( this . _options ) ) ;
61
65
}
62
66
67
+ public get chats ( ) : Chats {
68
+ return ( this . _chats ??= new Chats ( this . _options ) ) ;
69
+ }
70
+
71
+ public get sessions ( ) : Sessions {
72
+ return ( this . _sessions ??= new Sessions ( this . _options ) ) ;
73
+ }
74
+
63
75
public get assistants ( ) : Assistants {
64
76
return ( this . _assistants ??= new Assistants ( this . _options ) ) ;
65
77
}
0 commit comments