Skip to content

Commit 0bb7733

Browse files
committed
Release v0.5.1
1 parent b277e20 commit 0bb7733

File tree

416 files changed

+58160
-12718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

416 files changed

+58160
-12718
lines changed

Diff for: build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ java {
4444

4545
group = 'dev.vapi'
4646

47-
version = '0.5.0'
47+
version = 'v0.5.1'
4848

4949
jar {
5050
dependsOn(":generatePomFileForMavenPublication")
@@ -71,7 +71,7 @@ publishing {
7171
maven(MavenPublication) {
7272
groupId = 'dev.vapi'
7373
artifactId = 'server-sdk'
74-
version = '0.5.0'
74+
version = 'v0.5.1'
7575
from components.java
7676
pom {
7777
licenses {

Diff for: src/main/java/com/vapi/api/Vapi.java

+30-30
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.vapi.api.core.Suppliers;
88
import com.vapi.api.resources.analytics.AnalyticsClient;
99
import com.vapi.api.resources.assistants.AssistantsClient;
10-
import com.vapi.api.resources.blocks.BlocksClient;
1110
import com.vapi.api.resources.calls.CallsClient;
1211
import com.vapi.api.resources.files.FilesClient;
1312
import com.vapi.api.resources.knowledgebases.KnowledgeBasesClient;
@@ -18,6 +17,7 @@
1817
import com.vapi.api.resources.testsuites.TestSuitesClient;
1918
import com.vapi.api.resources.testsuitetests.TestSuiteTestsClient;
2019
import com.vapi.api.resources.tools.ToolsClient;
20+
import com.vapi.api.resources.workflow.WorkflowClient;
2121
import java.util.function.Supplier;
2222

2323
public 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
}

Diff for: src/main/java/com/vapi/api/core/ClientOptions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ private ClientOptions(
3131
this.headers.putAll(headers);
3232
this.headers.putAll(new HashMap<String, String>() {
3333
{
34-
put("User-Agent", "dev.vapi:server-sdk/0.5.0");
34+
put("User-Agent", "dev.vapi:server-sdk/v0.5.1");
3535
put("X-Fern-Language", "JAVA");
3636
put("X-Fern-SDK-Name", "com.vapi.fern:api-sdk");
37-
put("X-Fern-SDK-Version", "0.5.0");
37+
put("X-Fern-SDK-Version", "v0.5.1");
3838
}
3939
});
4040
this.headerSuppliers = headerSuppliers;

0 commit comments

Comments
 (0)