Skip to content

Commit 78e7c1d

Browse files
release: 0.15.0 (#21)
* codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * feat(api): api update * release: 0.15.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 5e5bf0a commit 78e7c1d

23 files changed

+1452
-1367
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.14.0"
2+
".": "0.15.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-5dc1981aa33b7d68052db07daa5cebe74c5529c2fd24e68d3a8985cfd47626ff.yml
3-
openapi_spec_hash: c6cb3fad43be2bf8ac0165b201c09e76
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-a9080c0de1cdfd5f5b355e5267265eba790649d0b002cc98347b6b76e3e8f075.yml
3+
openapi_spec_hash: ea95e4b3ebf37227b1b556f208968f62
44
config_hash: 405ade725d72d542c60de821a127411b

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.15.0 (2026-04-07)
4+
5+
Full Changelog: [v0.14.0...v0.15.0](https://github.com/sentdm/sent-dm-java/compare/v0.14.0...v0.15.0)
6+
7+
### Features
8+
9+
* **api:** api update ([06eaa70](https://github.com/sentdm/sent-dm-java/commit/06eaa708e268bbd60942f1d455d4a6fe049227eb))
10+
311
## 0.14.0 (2026-03-31)
412

513
Full Changelog: [v0.13.0...v0.14.0](https://github.com/sentdm/sent-dm-java/compare/v0.13.0...v0.14.0)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/dm.sent/sent-java)](https://central.sonatype.com/artifact/dm.sent/sent-java/0.14.0)
6-
[![javadoc](https://javadoc.io/badge2/dm.sent/sent-java/0.14.0/javadoc.svg)](https://javadoc.io/doc/dm.sent/sent-java/0.14.0)
5+
[![Maven Central](https://img.shields.io/maven-central/v/dm.sent/sent-java)](https://central.sonatype.com/artifact/dm.sent/sent-java/0.15.0)
6+
[![javadoc](https://javadoc.io/badge2/dm.sent/sent-java/0.15.0/javadoc.svg)](https://javadoc.io/doc/dm.sent/sent-java/0.15.0)
77

88
<!-- x-release-please-end -->
99

@@ -22,7 +22,7 @@ Use the Sent MCP Server to enable AI assistants to interact with this API, allow
2222
2323
<!-- x-release-please-start-version -->
2424

25-
The REST API documentation can be found on [docs.sent.dm](https://docs.sent.dm). Javadocs are available on [javadoc.io](https://javadoc.io/doc/dm.sent/sent-java/0.14.0).
25+
The REST API documentation can be found on [docs.sent.dm](https://docs.sent.dm). Javadocs are available on [javadoc.io](https://javadoc.io/doc/dm.sent/sent-java/0.15.0).
2626

2727
<!-- x-release-please-end -->
2828

@@ -33,7 +33,7 @@ The REST API documentation can be found on [docs.sent.dm](https://docs.sent.dm).
3333
### Gradle
3434

3535
```kotlin
36-
implementation("dm.sent:sent-java:0.14.0")
36+
implementation("dm.sent:sent-java:0.15.0")
3737
```
3838

3939
### Maven
@@ -42,7 +42,7 @@ implementation("dm.sent:sent-java:0.14.0")
4242
<dependency>
4343
<groupId>dm.sent</groupId>
4444
<artifactId>sent-java</artifactId>
45-
<version>0.14.0</version>
45+
<version>0.15.0</version>
4646
</dependency>
4747
```
4848

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88

99
allprojects {
1010
group = "dm.sent"
11-
version = "0.14.0" // x-release-please-version
11+
version = "0.15.0" // x-release-please-version
1212
}
1313

1414
subprojects {

sent-java-core/src/main/kotlin/dm/sent/models/templates/SentDmServicesCommonContractsPocOsTemplateButton.kt

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import dm.sent.core.ExcludeMissing
1010
import dm.sent.core.JsonField
1111
import dm.sent.core.JsonMissing
1212
import dm.sent.core.JsonValue
13+
import dm.sent.core.checkRequired
1314
import dm.sent.errors.SentInvalidDataException
1415
import java.util.Collections
1516
import java.util.Objects
@@ -20,52 +21,44 @@ import kotlin.jvm.optionals.getOrNull
2021
class SentDmServicesCommonContractsPocOsTemplateButton
2122
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2223
private constructor(
23-
private val id: JsonField<Int>,
2424
private val props: JsonField<SentDmServicesCommonContractsPocOsTemplateButtonProps>,
2525
private val type: JsonField<String>,
26+
private val id: JsonField<Int>,
2627
private val additionalProperties: MutableMap<String, JsonValue>,
2728
) {
2829

2930
@JsonCreator
3031
private constructor(
31-
@JsonProperty("id") @ExcludeMissing id: JsonField<Int> = JsonMissing.of(),
3232
@JsonProperty("props")
3333
@ExcludeMissing
3434
props: JsonField<SentDmServicesCommonContractsPocOsTemplateButtonProps> = JsonMissing.of(),
3535
@JsonProperty("type") @ExcludeMissing type: JsonField<String> = JsonMissing.of(),
36-
) : this(id, props, type, mutableMapOf())
37-
38-
/**
39-
* The unique identifier of the button (1-based index)
40-
*
41-
* @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
42-
* responded with an unexpected value).
43-
*/
44-
fun id(): Optional<Int> = id.getOptional("id")
36+
@JsonProperty("id") @ExcludeMissing id: JsonField<Int> = JsonMissing.of(),
37+
) : this(props, type, id, mutableMapOf())
4538

4639
/**
4740
* Properties specific to the button type
4841
*
49-
* @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
50-
* responded with an unexpected value).
42+
* @throws SentInvalidDataException if the JSON field has an unexpected type or is unexpectedly
43+
* missing or null (e.g. if the server responded with an unexpected value).
5144
*/
52-
fun props(): Optional<SentDmServicesCommonContractsPocOsTemplateButtonProps> =
53-
props.getOptional("props")
45+
fun props(): SentDmServicesCommonContractsPocOsTemplateButtonProps = props.getRequired("props")
5446

5547
/**
5648
* The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
5749
*
58-
* @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
59-
* responded with an unexpected value).
50+
* @throws SentInvalidDataException if the JSON field has an unexpected type or is unexpectedly
51+
* missing or null (e.g. if the server responded with an unexpected value).
6052
*/
61-
fun type(): Optional<String> = type.getOptional("type")
53+
fun type(): String = type.getRequired("type")
6254

6355
/**
64-
* Returns the raw JSON value of [id].
56+
* The unique identifier of the button (1-based index)
6557
*
66-
* Unlike [id], this method doesn't throw if the JSON field has an unexpected type.
58+
* @throws SentInvalidDataException if the JSON field has an unexpected type (e.g. if the server
59+
* responded with an unexpected value).
6760
*/
68-
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<Int> = id
61+
fun id(): Optional<Int> = id.getOptional("id")
6962

7063
/**
7164
* Returns the raw JSON value of [props].
@@ -83,6 +76,13 @@ private constructor(
8376
*/
8477
@JsonProperty("type") @ExcludeMissing fun _type(): JsonField<String> = type
8578

79+
/**
80+
* Returns the raw JSON value of [id].
81+
*
82+
* Unlike [id], this method doesn't throw if the JSON field has an unexpected type.
83+
*/
84+
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<Int> = id
85+
8686
@JsonAnySetter
8787
private fun putAdditionalProperty(key: String, value: JsonValue) {
8888
additionalProperties.put(key, value)
@@ -100,42 +100,36 @@ private constructor(
100100
/**
101101
* Returns a mutable builder for constructing an instance of
102102
* [SentDmServicesCommonContractsPocOsTemplateButton].
103+
*
104+
* The following fields are required:
105+
* ```java
106+
* .props()
107+
* .type()
108+
* ```
103109
*/
104110
@JvmStatic fun builder() = Builder()
105111
}
106112

107113
/** A builder for [SentDmServicesCommonContractsPocOsTemplateButton]. */
108114
class Builder internal constructor() {
109115

116+
private var props: JsonField<SentDmServicesCommonContractsPocOsTemplateButtonProps>? = null
117+
private var type: JsonField<String>? = null
110118
private var id: JsonField<Int> = JsonMissing.of()
111-
private var props: JsonField<SentDmServicesCommonContractsPocOsTemplateButtonProps> =
112-
JsonMissing.of()
113-
private var type: JsonField<String> = JsonMissing.of()
114119
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
115120

116121
@JvmSynthetic
117122
internal fun from(
118123
sentDmServicesCommonContractsPocOsTemplateButton:
119124
SentDmServicesCommonContractsPocOsTemplateButton
120125
) = apply {
121-
id = sentDmServicesCommonContractsPocOsTemplateButton.id
122126
props = sentDmServicesCommonContractsPocOsTemplateButton.props
123127
type = sentDmServicesCommonContractsPocOsTemplateButton.type
128+
id = sentDmServicesCommonContractsPocOsTemplateButton.id
124129
additionalProperties =
125130
sentDmServicesCommonContractsPocOsTemplateButton.additionalProperties.toMutableMap()
126131
}
127132

128-
/** The unique identifier of the button (1-based index) */
129-
fun id(id: Int) = id(JsonField.of(id))
130-
131-
/**
132-
* Sets [Builder.id] to an arbitrary JSON value.
133-
*
134-
* You should usually call [Builder.id] with a well-typed [Int] value instead. This method
135-
* is primarily for setting the field to an undocumented or not yet supported value.
136-
*/
137-
fun id(id: JsonField<Int>) = apply { this.id = id }
138-
139133
/** Properties specific to the button type */
140134
fun props(props: SentDmServicesCommonContractsPocOsTemplateButtonProps) =
141135
props(JsonField.of(props))
@@ -162,6 +156,17 @@ private constructor(
162156
*/
163157
fun type(type: JsonField<String>) = apply { this.type = type }
164158

159+
/** The unique identifier of the button (1-based index) */
160+
fun id(id: Int) = id(JsonField.of(id))
161+
162+
/**
163+
* Sets [Builder.id] to an arbitrary JSON value.
164+
*
165+
* You should usually call [Builder.id] with a well-typed [Int] value instead. This method
166+
* is primarily for setting the field to an undocumented or not yet supported value.
167+
*/
168+
fun id(id: JsonField<Int>) = apply { this.id = id }
169+
165170
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
166171
this.additionalProperties.clear()
167172
putAllAdditionalProperties(additionalProperties)
@@ -185,12 +190,20 @@ private constructor(
185190
* Returns an immutable instance of [SentDmServicesCommonContractsPocOsTemplateButton].
186191
*
187192
* Further updates to this [Builder] will not mutate the returned instance.
193+
*
194+
* The following fields are required:
195+
* ```java
196+
* .props()
197+
* .type()
198+
* ```
199+
*
200+
* @throws IllegalStateException if any required field is unset.
188201
*/
189202
fun build(): SentDmServicesCommonContractsPocOsTemplateButton =
190203
SentDmServicesCommonContractsPocOsTemplateButton(
204+
checkRequired("props", props),
205+
checkRequired("type", type),
191206
id,
192-
props,
193-
type,
194207
additionalProperties.toMutableMap(),
195208
)
196209
}
@@ -202,9 +215,9 @@ private constructor(
202215
return@apply
203216
}
204217

205-
id()
206-
props().ifPresent { it.validate() }
218+
props().validate()
207219
type()
220+
id()
208221
validated = true
209222
}
210223

@@ -223,26 +236,26 @@ private constructor(
223236
*/
224237
@JvmSynthetic
225238
internal fun validity(): Int =
226-
(if (id.asKnown().isPresent) 1 else 0) +
227-
(props.asKnown().getOrNull()?.validity() ?: 0) +
228-
(if (type.asKnown().isPresent) 1 else 0)
239+
(props.asKnown().getOrNull()?.validity() ?: 0) +
240+
(if (type.asKnown().isPresent) 1 else 0) +
241+
(if (id.asKnown().isPresent) 1 else 0)
229242

230243
override fun equals(other: Any?): Boolean {
231244
if (this === other) {
232245
return true
233246
}
234247

235248
return other is SentDmServicesCommonContractsPocOsTemplateButton &&
236-
id == other.id &&
237249
props == other.props &&
238250
type == other.type &&
251+
id == other.id &&
239252
additionalProperties == other.additionalProperties
240253
}
241254

242-
private val hashCode: Int by lazy { Objects.hash(id, props, type, additionalProperties) }
255+
private val hashCode: Int by lazy { Objects.hash(props, type, id, additionalProperties) }
243256

244257
override fun hashCode(): Int = hashCode
245258

246259
override fun toString() =
247-
"SentDmServicesCommonContractsPocOsTemplateButton{id=$id, props=$props, type=$type, additionalProperties=$additionalProperties}"
260+
"SentDmServicesCommonContractsPocOsTemplateButton{props=$props, type=$type, id=$id, additionalProperties=$additionalProperties}"
248261
}

0 commit comments

Comments
 (0)