7
7
import com .vapi .api .core .Suppliers ;
8
8
import com .vapi .api .resources .analytics .AnalyticsClient ;
9
9
import com .vapi .api .resources .assistants .AssistantsClient ;
10
- import com .vapi .api .resources .blocks .BlocksClient ;
11
10
import com .vapi .api .resources .calls .CallsClient ;
12
11
import com .vapi .api .resources .files .FilesClient ;
13
12
import com .vapi .api .resources .knowledgebases .KnowledgeBasesClient ;
18
17
import com .vapi .api .resources .testsuites .TestSuitesClient ;
19
18
import com .vapi .api .resources .testsuitetests .TestSuiteTestsClient ;
20
19
import com .vapi .api .resources .tools .ToolsClient ;
20
+ import com .vapi .api .resources .workflow .WorkflowClient ;
21
21
import java .util .function .Supplier ;
22
22
23
23
public class Vapi {
@@ -29,41 +29,41 @@ public class Vapi {
29
29
30
30
protected final Supplier <PhoneNumbersClient > phoneNumbersClient ;
31
31
32
- protected final Supplier <SquadsClient > squadsClient ;
33
-
34
- protected final Supplier <KnowledgeBasesClient > knowledgeBasesClient ;
35
-
36
- protected final Supplier <BlocksClient > blocksClient ;
37
-
38
32
protected final Supplier <ToolsClient > toolsClient ;
39
33
40
34
protected final Supplier <FilesClient > filesClient ;
41
35
42
- protected final Supplier <AnalyticsClient > analyticsClient ;
36
+ protected final Supplier <KnowledgeBasesClient > knowledgeBasesClient ;
43
37
44
- protected final Supplier <LogsClient > logsClient ;
38
+ protected final Supplier <WorkflowClient > workflowClient ;
39
+
40
+ protected final Supplier <SquadsClient > squadsClient ;
45
41
46
42
protected final Supplier <TestSuitesClient > testSuitesClient ;
47
43
48
44
protected final Supplier <TestSuiteTestsClient > testSuiteTestsClient ;
49
45
50
46
protected final Supplier <TestSuiteRunsClient > testSuiteRunsClient ;
51
47
48
+ protected final Supplier <AnalyticsClient > analyticsClient ;
49
+
50
+ protected final Supplier <LogsClient > logsClient ;
51
+
52
52
public Vapi (ClientOptions clientOptions ) {
53
53
this .clientOptions = clientOptions ;
54
54
this .callsClient = Suppliers .memoize (() -> new CallsClient (clientOptions ));
55
55
this .assistantsClient = Suppliers .memoize (() -> new AssistantsClient (clientOptions ));
56
56
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 ));
60
57
this .toolsClient = Suppliers .memoize (() -> new ToolsClient (clientOptions ));
61
58
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 ));
64
62
this .testSuitesClient = Suppliers .memoize (() -> new TestSuitesClient (clientOptions ));
65
63
this .testSuiteTestsClient = Suppliers .memoize (() -> new TestSuiteTestsClient (clientOptions ));
66
64
this .testSuiteRunsClient = Suppliers .memoize (() -> new TestSuiteRunsClient (clientOptions ));
65
+ this .analyticsClient = Suppliers .memoize (() -> new AnalyticsClient (clientOptions ));
66
+ this .logsClient = Suppliers .memoize (() -> new LogsClient (clientOptions ));
67
67
}
68
68
69
69
public CallsClient calls () {
@@ -78,18 +78,6 @@ public PhoneNumbersClient phoneNumbers() {
78
78
return this .phoneNumbersClient .get ();
79
79
}
80
80
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
-
93
81
public ToolsClient tools () {
94
82
return this .toolsClient .get ();
95
83
}
@@ -98,12 +86,16 @@ public FilesClient files() {
98
86
return this .filesClient .get ();
99
87
}
100
88
101
- public AnalyticsClient analytics () {
102
- return this .analyticsClient .get ();
89
+ public KnowledgeBasesClient knowledgeBases () {
90
+ return this .knowledgeBasesClient .get ();
103
91
}
104
92
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 ();
107
99
}
108
100
109
101
public TestSuitesClient testSuites () {
@@ -118,6 +110,14 @@ public TestSuiteRunsClient testSuiteRuns() {
118
110
return this .testSuiteRunsClient .get ();
119
111
}
120
112
113
+ public AnalyticsClient analytics () {
114
+ return this .analyticsClient .get ();
115
+ }
116
+
117
+ public LogsClient logs () {
118
+ return this .logsClient .get ();
119
+ }
120
+
121
121
public static VapiBuilder builder () {
122
122
return new VapiBuilder ();
123
123
}
0 commit comments