Skip to content

Commit f114d44

Browse files
committed
Actualize typespec
1 parent d67068c commit f114d44

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

contract-typespec/api/acls.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ interface AclApi {
1616
@query resourceType?: KafkaAclResourceType,
1717
@query resourceName?: string,
1818
@query namePatternType?: KafkaAclNamePatternType,
19+
@query search?: string
1920
): KafkaAcl[];
2021

2122
@route("/csv")

contract-typespec/api/kafka-connect.tsp

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using OpenAPI;
1111
interface ConnectInstancesApi {
1212
@get
1313
@operationId("getConnects")
14-
getConnects(@path clusterName: string): Connect[];
14+
getConnects(@path clusterName: string, @query withStats: boolean): Connect[];
1515

1616
@get
1717
@route("/{connectName}/plugins")
@@ -144,6 +144,13 @@ interface KafkaConnectConnectorsApi {
144144
model Connect {
145145
name: string;
146146
address?: string;
147+
connectorsCount?: int32 | null;
148+
failedConnectorsCount?: int32 | null;
149+
tasksCount?: int32 | null;
150+
failedTasksCount?: int32 | null;
151+
version?: string | null;
152+
commit?: string | null;
153+
clusterId?: string | null;
147154
}
148155

149156
model ConnectorConfig is Record<unknown>;
@@ -156,7 +163,7 @@ model TaskId {
156163
model TaskStatus {
157164
id: int32;
158165
state: ConnectorTaskStatus;
159-
worker_id: string;
166+
workerId: string;
160167
trace?: string;
161168
}
162169

@@ -196,7 +203,7 @@ enum ConnectorState {
196203

197204
model ConnectorStatus {
198205
state: ConnectorState;
199-
worker_id?: string;
206+
workerId?: string;
200207
}
201208

202209
model Connector {
@@ -213,7 +220,7 @@ enum ConnectorAction {
213220
RESTART_FAILED_TASKS,
214221
PAUSE,
215222
RESUME,
216-
STOP,
223+
STOP
217224
}
218225

219226
enum TaskAction {
@@ -237,20 +244,20 @@ model ConnectorPluginConfigDefinition {
237244
| "SHORT"
238245
| "STRING";
239246
required?: boolean;
240-
default_value?: string;
247+
defaultValue?: string;
241248
importance?: "LOW" | "MEDIUM" | "HIGH";
242249
documentation?: string;
243250
group?: string;
244251
width?: "SHORT" | "MEDIUM" | "LONG" | "NONE";
245-
display_name?: string;
252+
displayName?: string;
246253
dependents?: string[];
247254
order?: int32;
248255
}
249256

250257
model ConnectorPluginConfigValue {
251258
name?: string;
252259
value?: string;
253-
recommended_values?: string[];
260+
recommendedValues?: string[];
254261
errors?: string[];
255262
visible?: boolean;
256263
}
@@ -262,20 +269,20 @@ model ConnectorPluginConfig {
262269

263270
model ConnectorPluginConfigValidationResponse {
264271
name?: string;
265-
error_count?: int32;
272+
errorCount?: int32;
266273
groups?: string[];
267274
configs?: ConnectorPluginConfig[];
268275
}
269276

270277
model FullConnectorInfo {
271278
connect: string;
272279
name: string;
273-
connector_class?: string;
280+
connectorClass?: string;
274281
type?: ConnectorType;
275282
topics?: string[];
276283
status: ConnectorStatus;
277-
tasks_count?: integer;
278-
failed_tasks_count?: integer;
284+
tasksCount?: integer;
285+
failedTasksCount?: integer;
279286
}
280287

281288
enum ConnectorColumnsToSort {

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,6 @@ google-oauth-client = { module = 'com.google.oauth-client:google-oauth-client',
140140

141141
modelcontextprotocol-spring-webflux = {module = 'io.modelcontextprotocol.sdk:mcp-spring-webflux', version = '0.10.0'}
142142
victools-jsonschema-generator = {module = 'com.github.victools:jsonschema-generator', version = '4.38.0'}
143+
144+
# CVE fixes
145+
reactor-netty-http = {module = 'io.projectreactor.netty:reactor-netty-http', version = '1.2.8'}

0 commit comments

Comments
 (0)