77import com .vapi .api .core .Suppliers ;
88import com .vapi .api .resources .analytics .AnalyticsClient ;
99import com .vapi .api .resources .assistants .AssistantsClient ;
10- import com .vapi .api .resources .blocks .BlocksClient ;
1110import com .vapi .api .resources .calls .CallsClient ;
1211import com .vapi .api .resources .files .FilesClient ;
1312import com .vapi .api .resources .knowledgebases .KnowledgeBasesClient ;
1817import com .vapi .api .resources .testsuites .TestSuitesClient ;
1918import com .vapi .api .resources .testsuitetests .TestSuiteTestsClient ;
2019import com .vapi .api .resources .tools .ToolsClient ;
20+ import com .vapi .api .resources .workflow .WorkflowClient ;
2121import java .util .function .Supplier ;
2222
2323public class Vapi {
@@ -29,41 +29,41 @@ public class Vapi {
2929
3030 protected final Supplier <PhoneNumbersClient > phoneNumbersClient ;
3131
32- protected final Supplier <SquadsClient > squadsClient ;
33-
34- protected final Supplier <KnowledgeBasesClient > knowledgeBasesClient ;
35-
36- protected final Supplier <BlocksClient > blocksClient ;
37-
3832 protected final Supplier <ToolsClient > toolsClient ;
3933
4034 protected final Supplier <FilesClient > filesClient ;
4135
42- protected final Supplier <AnalyticsClient > analyticsClient ;
36+ protected final Supplier <KnowledgeBasesClient > knowledgeBasesClient ;
4337
44- protected final Supplier <LogsClient > logsClient ;
38+ protected final Supplier <WorkflowClient > workflowClient ;
39+
40+ protected final Supplier <SquadsClient > squadsClient ;
4541
4642 protected final Supplier <TestSuitesClient > testSuitesClient ;
4743
4844 protected final Supplier <TestSuiteTestsClient > testSuiteTestsClient ;
4945
5046 protected final Supplier <TestSuiteRunsClient > testSuiteRunsClient ;
5147
48+ protected final Supplier <AnalyticsClient > analyticsClient ;
49+
50+ protected final Supplier <LogsClient > logsClient ;
51+
5252 public Vapi (ClientOptions clientOptions ) {
5353 this .clientOptions = clientOptions ;
5454 this .callsClient = Suppliers .memoize (() -> new CallsClient (clientOptions ));
5555 this .assistantsClient = Suppliers .memoize (() -> new AssistantsClient (clientOptions ));
5656 this .phoneNumbersClient = Suppliers .memoize (() -> new PhoneNumbersClient (clientOptions ));
57- this .squadsClient = Suppliers .memoize (() -> new SquadsClient (clientOptions ));
58- this .knowledgeBasesClient = Suppliers .memoize (() -> new KnowledgeBasesClient (clientOptions ));
59- this .blocksClient = Suppliers .memoize (() -> new BlocksClient (clientOptions ));
6057 this .toolsClient = Suppliers .memoize (() -> new ToolsClient (clientOptions ));
6158 this .filesClient = Suppliers .memoize (() -> new FilesClient (clientOptions ));
62- this .analyticsClient = Suppliers .memoize (() -> new AnalyticsClient (clientOptions ));
63- this .logsClient = Suppliers .memoize (() -> new LogsClient (clientOptions ));
59+ this .knowledgeBasesClient = Suppliers .memoize (() -> new KnowledgeBasesClient (clientOptions ));
60+ this .workflowClient = Suppliers .memoize (() -> new WorkflowClient (clientOptions ));
61+ this .squadsClient = Suppliers .memoize (() -> new SquadsClient (clientOptions ));
6462 this .testSuitesClient = Suppliers .memoize (() -> new TestSuitesClient (clientOptions ));
6563 this .testSuiteTestsClient = Suppliers .memoize (() -> new TestSuiteTestsClient (clientOptions ));
6664 this .testSuiteRunsClient = Suppliers .memoize (() -> new TestSuiteRunsClient (clientOptions ));
65+ this .analyticsClient = Suppliers .memoize (() -> new AnalyticsClient (clientOptions ));
66+ this .logsClient = Suppliers .memoize (() -> new LogsClient (clientOptions ));
6767 }
6868
6969 public CallsClient calls () {
@@ -78,18 +78,6 @@ public PhoneNumbersClient phoneNumbers() {
7878 return this .phoneNumbersClient .get ();
7979 }
8080
81- public SquadsClient squads () {
82- return this .squadsClient .get ();
83- }
84-
85- public KnowledgeBasesClient knowledgeBases () {
86- return this .knowledgeBasesClient .get ();
87- }
88-
89- public BlocksClient blocks () {
90- return this .blocksClient .get ();
91- }
92-
9381 public ToolsClient tools () {
9482 return this .toolsClient .get ();
9583 }
@@ -98,12 +86,16 @@ public FilesClient files() {
9886 return this .filesClient .get ();
9987 }
10088
101- public AnalyticsClient analytics () {
102- return this .analyticsClient .get ();
89+ public KnowledgeBasesClient knowledgeBases () {
90+ return this .knowledgeBasesClient .get ();
10391 }
10492
105- public LogsClient logs () {
106- return this .logsClient .get ();
93+ public WorkflowClient workflow () {
94+ return this .workflowClient .get ();
95+ }
96+
97+ public SquadsClient squads () {
98+ return this .squadsClient .get ();
10799 }
108100
109101 public TestSuitesClient testSuites () {
@@ -118,6 +110,14 @@ public TestSuiteRunsClient testSuiteRuns() {
118110 return this .testSuiteRunsClient .get ();
119111 }
120112
113+ public AnalyticsClient analytics () {
114+ return this .analyticsClient .get ();
115+ }
116+
117+ public LogsClient logs () {
118+ return this .logsClient .get ();
119+ }
120+
121121 public static VapiBuilder builder () {
122122 return new VapiBuilder ();
123123 }
0 commit comments