Skip to content

Commit 8074f15

Browse files
committed
Release 0.4.0
1 parent af2bd58 commit 8074f15

File tree

55 files changed

+6043
-837
lines changed

Some content is hidden

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

55 files changed

+6043
-837
lines changed

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.3.0'
47+
version = '0.4.0'
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.3.0'
74+
version = '0.4.0'
7575
from components.java
7676
pom {
7777
licenses {

src/main/java/com/vapi/api/core/ClientOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private ClientOptions(
3333
{
3434
put("X-Fern-Language", "JAVA");
3535
put("X-Fern-SDK-Name", "com.vapi.fern:api-sdk");
36-
put("X-Fern-SDK-Version", "0.3.0");
36+
put("X-Fern-SDK-Version", "0.4.0");
3737
}
3838
});
3939
this.headerSuppliers = headerSuppliers;

src/main/java/com/vapi/api/resources/logs/LogsClient.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public SyncPagingIterable<Log> get(LogsGetRequest request, RequestOptions reques
4141
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
4242
.newBuilder()
4343
.addPathSegments("logs");
44-
if (request.getOrgId().isPresent()) {
45-
httpUrl.addQueryParameter("orgId", request.getOrgId().get());
46-
}
4744
if (request.getType().isPresent()) {
4845
httpUrl.addQueryParameter("type", request.getType().get().toString());
4946
}
@@ -154,8 +151,8 @@ public void loggingControllerLogsDeleteQuery(
154151
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
155152
.newBuilder()
156153
.addPathSegments("logs");
157-
if (request.getOrgId().isPresent()) {
158-
httpUrl.addQueryParameter("orgId", request.getOrgId().get());
154+
if (request.getType().isPresent()) {
155+
httpUrl.addQueryParameter("type", request.getType().get().toString());
159156
}
160157
if (request.getAssistantId().isPresent()) {
161158
httpUrl.addQueryParameter("assistantId", request.getAssistantId().get());

src/main/java/com/vapi/api/resources/logs/requests/LoggingControllerLogsDeleteQueryRequest.java

+18-20
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.fasterxml.jackson.annotation.Nulls;
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.vapi.api.core.ObjectMappers;
15+
import com.vapi.api.resources.logs.types.LoggingControllerLogsDeleteQueryRequestType;
1516
import java.util.HashMap;
1617
import java.util.Map;
1718
import java.util.Objects;
@@ -20,7 +21,7 @@
2021
@JsonInclude(JsonInclude.Include.NON_ABSENT)
2122
@JsonDeserialize(builder = LoggingControllerLogsDeleteQueryRequest.Builder.class)
2223
public final class LoggingControllerLogsDeleteQueryRequest {
23-
private final Optional<String> orgId;
24+
private final Optional<LoggingControllerLogsDeleteQueryRequestType> type;
2425

2526
private final Optional<String> assistantId;
2627

@@ -35,14 +36,14 @@ public final class LoggingControllerLogsDeleteQueryRequest {
3536
private final Map<String, Object> additionalProperties;
3637

3738
private LoggingControllerLogsDeleteQueryRequest(
38-
Optional<String> orgId,
39+
Optional<LoggingControllerLogsDeleteQueryRequestType> type,
3940
Optional<String> assistantId,
4041
Optional<String> phoneNumberId,
4142
Optional<String> customerId,
4243
Optional<String> squadId,
4344
Optional<String> callId,
4445
Map<String, Object> additionalProperties) {
45-
this.orgId = orgId;
46+
this.type = type;
4647
this.assistantId = assistantId;
4748
this.phoneNumberId = phoneNumberId;
4849
this.customerId = customerId;
@@ -52,16 +53,13 @@ private LoggingControllerLogsDeleteQueryRequest(
5253
}
5354

5455
/**
55-
* @return This is the unique identifier for the org that this log belongs to.
56+
* @return This is the type of the log.
5657
*/
57-
@JsonProperty("orgId")
58-
public Optional<String> getOrgId() {
59-
return orgId;
58+
@JsonProperty("type")
59+
public Optional<LoggingControllerLogsDeleteQueryRequestType> getType() {
60+
return type;
6061
}
6162

62-
/**
63-
* @return This is the ID of the assistant.
64-
*/
6563
@JsonProperty("assistantId")
6664
public Optional<String> getAssistantId() {
6765
return assistantId;
@@ -112,7 +110,7 @@ public Map<String, Object> getAdditionalProperties() {
112110
}
113111

114112
private boolean equalTo(LoggingControllerLogsDeleteQueryRequest other) {
115-
return orgId.equals(other.orgId)
113+
return type.equals(other.type)
116114
&& assistantId.equals(other.assistantId)
117115
&& phoneNumberId.equals(other.phoneNumberId)
118116
&& customerId.equals(other.customerId)
@@ -123,7 +121,7 @@ private boolean equalTo(LoggingControllerLogsDeleteQueryRequest other) {
123121
@java.lang.Override
124122
public int hashCode() {
125123
return Objects.hash(
126-
this.orgId, this.assistantId, this.phoneNumberId, this.customerId, this.squadId, this.callId);
124+
this.type, this.assistantId, this.phoneNumberId, this.customerId, this.squadId, this.callId);
127125
}
128126

129127
@java.lang.Override
@@ -137,7 +135,7 @@ public static Builder builder() {
137135

138136
@JsonIgnoreProperties(ignoreUnknown = true)
139137
public static final class Builder {
140-
private Optional<String> orgId = Optional.empty();
138+
private Optional<LoggingControllerLogsDeleteQueryRequestType> type = Optional.empty();
141139

142140
private Optional<String> assistantId = Optional.empty();
143141

@@ -155,7 +153,7 @@ public static final class Builder {
155153
private Builder() {}
156154

157155
public Builder from(LoggingControllerLogsDeleteQueryRequest other) {
158-
orgId(other.getOrgId());
156+
type(other.getType());
159157
assistantId(other.getAssistantId());
160158
phoneNumberId(other.getPhoneNumberId());
161159
customerId(other.getCustomerId());
@@ -164,14 +162,14 @@ public Builder from(LoggingControllerLogsDeleteQueryRequest other) {
164162
return this;
165163
}
166164

167-
@JsonSetter(value = "orgId", nulls = Nulls.SKIP)
168-
public Builder orgId(Optional<String> orgId) {
169-
this.orgId = orgId;
165+
@JsonSetter(value = "type", nulls = Nulls.SKIP)
166+
public Builder type(Optional<LoggingControllerLogsDeleteQueryRequestType> type) {
167+
this.type = type;
170168
return this;
171169
}
172170

173-
public Builder orgId(String orgId) {
174-
this.orgId = Optional.ofNullable(orgId);
171+
public Builder type(LoggingControllerLogsDeleteQueryRequestType type) {
172+
this.type = Optional.ofNullable(type);
175173
return this;
176174
}
177175

@@ -232,7 +230,7 @@ public Builder callId(String callId) {
232230

233231
public LoggingControllerLogsDeleteQueryRequest build() {
234232
return new LoggingControllerLogsDeleteQueryRequest(
235-
orgId, assistantId, phoneNumberId, customerId, squadId, callId, additionalProperties);
233+
type, assistantId, phoneNumberId, customerId, squadId, callId, additionalProperties);
236234
}
237235
}
238236
}

src/main/java/com/vapi/api/resources/logs/requests/LogsGetRequest.java

+1-30
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
@JsonInclude(JsonInclude.Include.NON_ABSENT)
2424
@JsonDeserialize(builder = LogsGetRequest.Builder.class)
2525
public final class LogsGetRequest {
26-
private final Optional<String> orgId;
27-
2826
private final Optional<LogsGetRequestType> type;
2927

3028
private final Optional<String> webhookType;
@@ -64,7 +62,6 @@ public final class LogsGetRequest {
6462
private final Map<String, Object> additionalProperties;
6563

6664
private LogsGetRequest(
67-
Optional<String> orgId,
6865
Optional<LogsGetRequestType> type,
6966
Optional<String> webhookType,
7067
Optional<String> assistantId,
@@ -84,7 +81,6 @@ private LogsGetRequest(
8481
Optional<OffsetDateTime> updatedAtGe,
8582
Optional<OffsetDateTime> updatedAtLe,
8683
Map<String, Object> additionalProperties) {
87-
this.orgId = orgId;
8884
this.type = type;
8985
this.webhookType = webhookType;
9086
this.assistantId = assistantId;
@@ -106,14 +102,6 @@ private LogsGetRequest(
106102
this.additionalProperties = additionalProperties;
107103
}
108104

109-
/**
110-
* @return This is the unique identifier for the org that this log belongs to.
111-
*/
112-
@JsonProperty("orgId")
113-
public Optional<String> getOrgId() {
114-
return orgId;
115-
}
116-
117105
/**
118106
* @return This is the type of the log.
119107
*/
@@ -270,8 +258,7 @@ public Map<String, Object> getAdditionalProperties() {
270258
}
271259

272260
private boolean equalTo(LogsGetRequest other) {
273-
return orgId.equals(other.orgId)
274-
&& type.equals(other.type)
261+
return type.equals(other.type)
275262
&& webhookType.equals(other.webhookType)
276263
&& assistantId.equals(other.assistantId)
277264
&& phoneNumberId.equals(other.phoneNumberId)
@@ -294,7 +281,6 @@ private boolean equalTo(LogsGetRequest other) {
294281
@java.lang.Override
295282
public int hashCode() {
296283
return Objects.hash(
297-
this.orgId,
298284
this.type,
299285
this.webhookType,
300286
this.assistantId,
@@ -326,8 +312,6 @@ public static Builder builder() {
326312

327313
@JsonIgnoreProperties(ignoreUnknown = true)
328314
public static final class Builder {
329-
private Optional<String> orgId = Optional.empty();
330-
331315
private Optional<LogsGetRequestType> type = Optional.empty();
332316

333317
private Optional<String> webhookType = Optional.empty();
@@ -370,7 +354,6 @@ public static final class Builder {
370354
private Builder() {}
371355

372356
public Builder from(LogsGetRequest other) {
373-
orgId(other.getOrgId());
374357
type(other.getType());
375358
webhookType(other.getWebhookType());
376359
assistantId(other.getAssistantId());
@@ -392,17 +375,6 @@ public Builder from(LogsGetRequest other) {
392375
return this;
393376
}
394377

395-
@JsonSetter(value = "orgId", nulls = Nulls.SKIP)
396-
public Builder orgId(Optional<String> orgId) {
397-
this.orgId = orgId;
398-
return this;
399-
}
400-
401-
public Builder orgId(String orgId) {
402-
this.orgId = Optional.ofNullable(orgId);
403-
return this;
404-
}
405-
406378
@JsonSetter(value = "type", nulls = Nulls.SKIP)
407379
public Builder type(Optional<LogsGetRequestType> type) {
408380
this.type = type;
@@ -603,7 +575,6 @@ public Builder updatedAtLe(OffsetDateTime updatedAtLe) {
603575

604576
public LogsGetRequest build() {
605577
return new LogsGetRequest(
606-
orgId,
607578
type,
608579
webhookType,
609580
assistantId,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.vapi.api.resources.logs.types;
5+
6+
import com.fasterxml.jackson.annotation.JsonValue;
7+
8+
public enum LoggingControllerLogsDeleteQueryRequestType {
9+
API("API"),
10+
11+
WEBHOOK("Webhook"),
12+
13+
CALL("Call"),
14+
15+
PROVIDER("Provider");
16+
17+
private final String value;
18+
19+
LoggingControllerLogsDeleteQueryRequestType(String value) {
20+
this.value = value;
21+
}
22+
23+
@JsonValue
24+
@java.lang.Override
25+
public String toString() {
26+
return this.value;
27+
}
28+
}

src/main/java/com/vapi/api/types/AzureCredentialRegion.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
public enum AzureCredentialRegion {
99
AUSTRALIA("australia"),
1010

11-
CANADA("canada"),
11+
CANADAEAST("canadaeast"),
12+
13+
CANADACENTRAL("canadacentral"),
1214

1315
EASTUS_2("eastus2"),
1416

@@ -18,7 +20,9 @@ public enum AzureCredentialRegion {
1820

1921
INDIA("india"),
2022

21-
JAPAN("japan"),
23+
JAPANEAST("japaneast"),
24+
25+
JAPANWEST("japanwest"),
2226

2327
UAENORTH("uaenorth"),
2428

src/main/java/com/vapi/api/types/AzureOpenAiCredentialRegion.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
public enum AzureOpenAiCredentialRegion {
99
AUSTRALIA("australia"),
1010

11-
CANADA("canada"),
11+
CANADAEAST("canadaeast"),
12+
13+
CANADACENTRAL("canadacentral"),
1214

1315
EASTUS_2("eastus2"),
1416

@@ -18,7 +20,9 @@ public enum AzureOpenAiCredentialRegion {
1820

1921
INDIA("india"),
2022

21-
JAPAN("japan"),
23+
JAPANEAST("japaneast"),
24+
25+
JAPANWEST("japanwest"),
2226

2327
UAENORTH("uaenorth"),
2428

0 commit comments

Comments
 (0)