Skip to content

Commit 75e8b0e

Browse files
committed
Release 0.0.0-alpha6
1 parent bcffb9f commit 75e8b0e

File tree

5 files changed

+67
-27
lines changed

5 files changed

+67
-27
lines changed

build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ publishing {
4545
publications {
4646
maven(MavenPublication) {
4747
groupId = 'dev.vapi'
48-
artifactId = 'vapi-java-sdk'
49-
version = '0.0.0-alpha3'
48+
artifactId = 'server-sdk'
49+
version = '0.0.0-alpha6'
5050
from components.java
5151
pom {
5252
scm {
53-
connection = 'scm:git:git://github.com/fern-demo/vapi-java-sdk.git'
54-
developerConnection = 'scm:git:git://github.com/fern-demo/vapi-java-sdk.git'
55-
url = 'https://github.com/fern-demo/vapi-java-sdk'
53+
connection = 'scm:git:git://github.com/VapiAI/server-sdk-java.git'
54+
developerConnection = 'scm:git:git://github.com/VapiAI/server-sdk-java.git'
55+
url = 'https://github.com/VapiAI/server-sdk-java'
5656
}
5757
}
5858
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private ClientOptions(
3030
{
3131
put("X-Fern-Language", "JAVA");
3232
put("X-Fern-SDK-Name", "com.vapi.fern:api-sdk");
33-
put("X-Fern-SDK-Version", "0.0.0-alpha3");
33+
put("X-Fern-SDK-Version", "0.0.0-alpha6");
3434
}
3535
});
3636
this.headerSuppliers = headerSuppliers;

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public final class PlayHtVoice {
2424
private final Optional<Boolean> fillerInjectionEnabled;
2525

26-
private final PlayHtVoiceVoiceId voiceId;
26+
private final PlayHtVoiceId voiceId;
2727

2828
private final Optional<Double> speed;
2929

@@ -43,7 +43,7 @@ public final class PlayHtVoice {
4343

4444
private PlayHtVoice(
4545
Optional<Boolean> fillerInjectionEnabled,
46-
PlayHtVoiceVoiceId voiceId,
46+
PlayHtVoiceId voiceId,
4747
Optional<Double> speed,
4848
Optional<Double> temperature,
4949
Optional<PlayHtVoiceEmotion> emotion,
@@ -77,7 +77,7 @@ public Optional<Boolean> getFillerInjectionEnabled() {
7777
* @return This is the provider-specific ID that will be used.
7878
*/
7979
@JsonProperty("voiceId")
80-
public PlayHtVoiceVoiceId getVoiceId() {
80+
public PlayHtVoiceId getVoiceId() {
8181
return voiceId;
8282
}
8383

@@ -184,7 +184,7 @@ public static VoiceIdStage builder() {
184184
}
185185

186186
public interface VoiceIdStage {
187-
_FinalStage voiceId(@NotNull PlayHtVoiceVoiceId voiceId);
187+
_FinalStage voiceId(@NotNull PlayHtVoiceId voiceId);
188188

189189
Builder from(PlayHtVoice other);
190190
}
@@ -227,7 +227,7 @@ public interface _FinalStage {
227227

228228
@JsonIgnoreProperties(ignoreUnknown = true)
229229
public static final class Builder implements VoiceIdStage, _FinalStage {
230-
private PlayHtVoiceVoiceId voiceId;
230+
private PlayHtVoiceId voiceId;
231231

232232
private Optional<ChunkPlan> chunkPlan = Optional.empty();
233233

@@ -270,7 +270,7 @@ public Builder from(PlayHtVoice other) {
270270
*/
271271
@java.lang.Override
272272
@JsonSetter("voiceId")
273-
public _FinalStage voiceId(@NotNull PlayHtVoiceVoiceId voiceId) {
273+
public _FinalStage voiceId(@NotNull PlayHtVoiceId voiceId) {
274274
this.voiceId = Objects.requireNonNull(voiceId, "voiceId must not be null");
275275
return this;
276276
}

src/main/java/com/vapi/api/types/PlayHtVoiceVoiceId.java renamed to src/main/java/com/vapi/api/types/PlayHtVoiceId.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
import java.io.IOException;
1414
import java.util.Objects;
1515

16-
@JsonDeserialize(using = PlayHtVoiceVoiceId.Deserializer.class)
17-
public final class PlayHtVoiceVoiceId {
16+
@JsonDeserialize(using = PlayHtVoiceId.Deserializer.class)
17+
public final class PlayHtVoiceId {
1818
private final Object value;
1919

2020
private final int type;
2121

22-
private PlayHtVoiceVoiceId(Object value, int type) {
22+
private PlayHtVoiceId(Object value, int type) {
2323
this.value = value;
2424
this.type = type;
2525
}
@@ -31,7 +31,7 @@ public Object get() {
3131

3232
public <T> T visit(Visitor<T> visitor) {
3333
if (this.type == 0) {
34-
return visitor.visit((PlayHtVoiceVoiceId) this.value);
34+
return visitor.visit((PlayHtVoiceIdEnum) this.value);
3535
} else if (this.type == 1) {
3636
return visitor.visit((String) this.value);
3737
}
@@ -41,10 +41,10 @@ public <T> T visit(Visitor<T> visitor) {
4141
@java.lang.Override
4242
public boolean equals(Object other) {
4343
if (this == other) return true;
44-
return other instanceof PlayHtVoiceVoiceId && equalTo((PlayHtVoiceVoiceId) other);
44+
return other instanceof PlayHtVoiceId && equalTo((PlayHtVoiceId) other);
4545
}
4646

47-
private boolean equalTo(PlayHtVoiceVoiceId other) {
47+
private boolean equalTo(PlayHtVoiceId other) {
4848
return value.equals(other.value);
4949
}
5050

@@ -58,30 +58,30 @@ public String toString() {
5858
return this.value.toString();
5959
}
6060

61-
public static PlayHtVoiceVoiceId of(PlayHtVoiceVoiceId value) {
62-
return new PlayHtVoiceVoiceId(value, 0);
61+
public static PlayHtVoiceId of(PlayHtVoiceIdEnum value) {
62+
return new PlayHtVoiceId(value, 0);
6363
}
6464

65-
public static PlayHtVoiceVoiceId of(String value) {
66-
return new PlayHtVoiceVoiceId(value, 1);
65+
public static PlayHtVoiceId of(String value) {
66+
return new PlayHtVoiceId(value, 1);
6767
}
6868

6969
public interface Visitor<T> {
70-
T visit(PlayHtVoiceVoiceId value);
70+
T visit(PlayHtVoiceIdEnum value);
7171

7272
T visit(String value);
7373
}
7474

75-
static final class Deserializer extends StdDeserializer<PlayHtVoiceVoiceId> {
75+
static final class Deserializer extends StdDeserializer<PlayHtVoiceId> {
7676
Deserializer() {
77-
super(PlayHtVoiceVoiceId.class);
77+
super(PlayHtVoiceId.class);
7878
}
7979

8080
@java.lang.Override
81-
public PlayHtVoiceVoiceId deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
81+
public PlayHtVoiceId deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
8282
Object value = p.readValueAs(Object.class);
8383
try {
84-
return of(ObjectMappers.JSON_MAPPER.convertValue(value, PlayHtVoiceVoiceId.class));
84+
return of(ObjectMappers.JSON_MAPPER.convertValue(value, PlayHtVoiceIdEnum.class));
8585
} catch (IllegalArgumentException e) {
8686
}
8787
try {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.vapi.api.types;
5+
6+
import com.fasterxml.jackson.annotation.JsonValue;
7+
8+
public enum PlayHtVoiceIdEnum {
9+
JENNIFER("jennifer"),
10+
11+
MELISSA("melissa"),
12+
13+
WILL("will"),
14+
15+
CHRIS("chris"),
16+
17+
MATT("matt"),
18+
19+
JACK("jack"),
20+
21+
RUBY("ruby"),
22+
23+
DAVIS("davis"),
24+
25+
DONNA("donna"),
26+
27+
MICHAEL("michael");
28+
29+
private final String value;
30+
31+
PlayHtVoiceIdEnum(String value) {
32+
this.value = value;
33+
}
34+
35+
@JsonValue
36+
@java.lang.Override
37+
public String toString() {
38+
return this.value;
39+
}
40+
}

0 commit comments

Comments
 (0)