Skip to content

Commit b62bebe

Browse files
feat(api): api update
1 parent e37cb5d commit b62bebe

25 files changed

Lines changed: 1344 additions & 502 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-7ecb40b6650ff002eed02efd1b59c630abe1fb9eb70c9c916c15b115260e5003.yml
3-
openapi_spec_hash: 2e5c04d1a50afcd0bdbd9737cec227c9
4-
config_hash: 01e6bd1df0d14c729087edec4e6b6650
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-6ff494eafa2c154892716407682bb2296cff4f18c45765c5fb16bdf36f452ae1.yml
3+
openapi_spec_hash: 63dde2481a7d51042a241bfba232b0b0
4+
config_hash: bf64816643634a621cd0ffd93d9c4347

arcade-java-core/src/main/kotlin/dev/arcade/models/admin/authproviders/AuthProviderResponse.kt

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,6 @@ private constructor(
18971897
private val binding: JsonField<Binding>,
18981898
private val editable: JsonField<Boolean>,
18991899
private val exists: JsonField<Boolean>,
1900-
private val hint: JsonField<String>,
19011900
private val value: JsonField<String>,
19021901
private val additionalProperties: MutableMap<String, JsonValue>,
19031902
) {
@@ -1913,9 +1912,8 @@ private constructor(
19131912
@JsonProperty("exists")
19141913
@ExcludeMissing
19151914
exists: JsonField<Boolean> = JsonMissing.of(),
1916-
@JsonProperty("hint") @ExcludeMissing hint: JsonField<String> = JsonMissing.of(),
19171915
@JsonProperty("value") @ExcludeMissing value: JsonField<String> = JsonMissing.of(),
1918-
) : this(binding, editable, exists, hint, value, mutableMapOf())
1916+
) : this(binding, editable, exists, value, mutableMapOf())
19191917

19201918
/**
19211919
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if
@@ -1935,12 +1933,6 @@ private constructor(
19351933
*/
19361934
fun exists(): Optional<Boolean> = exists.getOptional("exists")
19371935

1938-
/**
1939-
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if
1940-
* the server responded with an unexpected value).
1941-
*/
1942-
fun hint(): Optional<String> = hint.getOptional("hint")
1943-
19441936
/**
19451937
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if
19461938
* the server responded with an unexpected value).
@@ -1969,13 +1961,6 @@ private constructor(
19691961
*/
19701962
@JsonProperty("exists") @ExcludeMissing fun _exists(): JsonField<Boolean> = exists
19711963

1972-
/**
1973-
* Returns the raw JSON value of [hint].
1974-
*
1975-
* Unlike [hint], this method doesn't throw if the JSON field has an unexpected type.
1976-
*/
1977-
@JsonProperty("hint") @ExcludeMissing fun _hint(): JsonField<String> = hint
1978-
19791964
/**
19801965
* Returns the raw JSON value of [value].
19811966
*
@@ -2007,7 +1992,6 @@ private constructor(
20071992
private var binding: JsonField<Binding> = JsonMissing.of()
20081993
private var editable: JsonField<Boolean> = JsonMissing.of()
20091994
private var exists: JsonField<Boolean> = JsonMissing.of()
2010-
private var hint: JsonField<String> = JsonMissing.of()
20111995
private var value: JsonField<String> = JsonMissing.of()
20121996
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
20131997

@@ -2016,7 +2000,6 @@ private constructor(
20162000
binding = clientSecret.binding
20172001
editable = clientSecret.editable
20182002
exists = clientSecret.exists
2019-
hint = clientSecret.hint
20202003
value = clientSecret.value
20212004
additionalProperties = clientSecret.additionalProperties.toMutableMap()
20222005
}
@@ -2054,17 +2037,6 @@ private constructor(
20542037
*/
20552038
fun exists(exists: JsonField<Boolean>) = apply { this.exists = exists }
20562039

2057-
fun hint(hint: String) = hint(JsonField.of(hint))
2058-
2059-
/**
2060-
* Sets [Builder.hint] to an arbitrary JSON value.
2061-
*
2062-
* You should usually call [Builder.hint] with a well-typed [String] value instead.
2063-
* This method is primarily for setting the field to an undocumented or not yet
2064-
* supported value.
2065-
*/
2066-
fun hint(hint: JsonField<String>) = apply { this.hint = hint }
2067-
20682040
fun value(value: String) = value(JsonField.of(value))
20692041

20702042
/**
@@ -2108,7 +2080,6 @@ private constructor(
21082080
binding,
21092081
editable,
21102082
exists,
2111-
hint,
21122083
value,
21132084
additionalProperties.toMutableMap(),
21142085
)
@@ -2124,7 +2095,6 @@ private constructor(
21242095
binding().ifPresent { it.validate() }
21252096
editable()
21262097
exists()
2127-
hint()
21282098
value()
21292099
validated = true
21302100
}
@@ -2148,7 +2118,6 @@ private constructor(
21482118
(binding.asKnown().getOrNull()?.validity() ?: 0) +
21492119
(if (editable.asKnown().isPresent) 1 else 0) +
21502120
(if (exists.asKnown().isPresent) 1 else 0) +
2151-
(if (hint.asKnown().isPresent) 1 else 0) +
21522121
(if (value.asKnown().isPresent) 1 else 0)
21532122

21542123
class Binding @JsonCreator private constructor(private val value: JsonField<String>) :
@@ -2303,19 +2272,18 @@ private constructor(
23032272
binding == other.binding &&
23042273
editable == other.editable &&
23052274
exists == other.exists &&
2306-
hint == other.hint &&
23072275
value == other.value &&
23082276
additionalProperties == other.additionalProperties
23092277
}
23102278

23112279
private val hashCode: Int by lazy {
2312-
Objects.hash(binding, editable, exists, hint, value, additionalProperties)
2280+
Objects.hash(binding, editable, exists, value, additionalProperties)
23132281
}
23142282

23152283
override fun hashCode(): Int = hashCode
23162284

23172285
override fun toString() =
2318-
"ClientSecret{binding=$binding, editable=$editable, exists=$exists, hint=$hint, value=$value, additionalProperties=$additionalProperties}"
2286+
"ClientSecret{binding=$binding, editable=$editable, exists=$exists, value=$value, additionalProperties=$additionalProperties}"
23192287
}
23202288

23212289
class Pkce

arcade-java-core/src/main/kotlin/dev/arcade/models/admin/secrets/SecretResponse.kt

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ private constructor(
2424
private val binding: JsonField<Binding>,
2525
private val createdAt: JsonField<String>,
2626
private val description: JsonField<String>,
27-
private val hint: JsonField<String>,
2827
private val key: JsonField<String>,
2928
private val lastAccessedAt: JsonField<String>,
3029
private val updatedAt: JsonField<String>,
@@ -39,23 +38,12 @@ private constructor(
3938
@JsonProperty("description")
4039
@ExcludeMissing
4140
description: JsonField<String> = JsonMissing.of(),
42-
@JsonProperty("hint") @ExcludeMissing hint: JsonField<String> = JsonMissing.of(),
4341
@JsonProperty("key") @ExcludeMissing key: JsonField<String> = JsonMissing.of(),
4442
@JsonProperty("last_accessed_at")
4543
@ExcludeMissing
4644
lastAccessedAt: JsonField<String> = JsonMissing.of(),
4745
@JsonProperty("updated_at") @ExcludeMissing updatedAt: JsonField<String> = JsonMissing.of(),
48-
) : this(
49-
id,
50-
binding,
51-
createdAt,
52-
description,
53-
hint,
54-
key,
55-
lastAccessedAt,
56-
updatedAt,
57-
mutableMapOf(),
58-
)
46+
) : this(id, binding, createdAt, description, key, lastAccessedAt, updatedAt, mutableMapOf())
5947

6048
/**
6149
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if the
@@ -81,12 +69,6 @@ private constructor(
8169
*/
8270
fun description(): Optional<String> = description.getOptional("description")
8371

84-
/**
85-
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if the
86-
* server responded with an unexpected value).
87-
*/
88-
fun hint(): Optional<String> = hint.getOptional("hint")
89-
9072
/**
9173
* @throws ArcadeInvalidDataException if the JSON field has an unexpected type (e.g. if the
9274
* server responded with an unexpected value).
@@ -133,13 +115,6 @@ private constructor(
133115
*/
134116
@JsonProperty("description") @ExcludeMissing fun _description(): JsonField<String> = description
135117

136-
/**
137-
* Returns the raw JSON value of [hint].
138-
*
139-
* Unlike [hint], this method doesn't throw if the JSON field has an unexpected type.
140-
*/
141-
@JsonProperty("hint") @ExcludeMissing fun _hint(): JsonField<String> = hint
142-
143118
/**
144119
* Returns the raw JSON value of [key].
145120
*
@@ -188,7 +163,6 @@ private constructor(
188163
private var binding: JsonField<Binding> = JsonMissing.of()
189164
private var createdAt: JsonField<String> = JsonMissing.of()
190165
private var description: JsonField<String> = JsonMissing.of()
191-
private var hint: JsonField<String> = JsonMissing.of()
192166
private var key: JsonField<String> = JsonMissing.of()
193167
private var lastAccessedAt: JsonField<String> = JsonMissing.of()
194168
private var updatedAt: JsonField<String> = JsonMissing.of()
@@ -200,7 +174,6 @@ private constructor(
200174
binding = secretResponse.binding
201175
createdAt = secretResponse.createdAt
202176
description = secretResponse.description
203-
hint = secretResponse.hint
204177
key = secretResponse.key
205178
lastAccessedAt = secretResponse.lastAccessedAt
206179
updatedAt = secretResponse.updatedAt
@@ -249,16 +222,6 @@ private constructor(
249222
*/
250223
fun description(description: JsonField<String>) = apply { this.description = description }
251224

252-
fun hint(hint: String) = hint(JsonField.of(hint))
253-
254-
/**
255-
* Sets [Builder.hint] to an arbitrary JSON value.
256-
*
257-
* You should usually call [Builder.hint] with a well-typed [String] value instead. This
258-
* method is primarily for setting the field to an undocumented or not yet supported value.
259-
*/
260-
fun hint(hint: JsonField<String>) = apply { this.hint = hint }
261-
262225
fun key(key: String) = key(JsonField.of(key))
263226

264227
/**
@@ -323,7 +286,6 @@ private constructor(
323286
binding,
324287
createdAt,
325288
description,
326-
hint,
327289
key,
328290
lastAccessedAt,
329291
updatedAt,
@@ -342,7 +304,6 @@ private constructor(
342304
binding().ifPresent { it.validate() }
343305
createdAt()
344306
description()
345-
hint()
346307
key()
347308
lastAccessedAt()
348309
updatedAt()
@@ -368,7 +329,6 @@ private constructor(
368329
(binding.asKnown().getOrNull()?.validity() ?: 0) +
369330
(if (createdAt.asKnown().isPresent) 1 else 0) +
370331
(if (description.asKnown().isPresent) 1 else 0) +
371-
(if (hint.asKnown().isPresent) 1 else 0) +
372332
(if (key.asKnown().isPresent) 1 else 0) +
373333
(if (lastAccessedAt.asKnown().isPresent) 1 else 0) +
374334
(if (updatedAt.asKnown().isPresent) 1 else 0)
@@ -692,7 +652,6 @@ private constructor(
692652
binding == other.binding &&
693653
createdAt == other.createdAt &&
694654
description == other.description &&
695-
hint == other.hint &&
696655
key == other.key &&
697656
lastAccessedAt == other.lastAccessedAt &&
698657
updatedAt == other.updatedAt &&
@@ -705,7 +664,6 @@ private constructor(
705664
binding,
706665
createdAt,
707666
description,
708-
hint,
709667
key,
710668
lastAccessedAt,
711669
updatedAt,
@@ -716,5 +674,5 @@ private constructor(
716674
override fun hashCode(): Int = hashCode
717675

718676
override fun toString() =
719-
"SecretResponse{id=$id, binding=$binding, createdAt=$createdAt, description=$description, hint=$hint, key=$key, lastAccessedAt=$lastAccessedAt, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
677+
"SecretResponse{id=$id, binding=$binding, createdAt=$createdAt, description=$description, key=$key, lastAccessedAt=$lastAccessedAt, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
720678
}

0 commit comments

Comments
 (0)