Skip to content

Commit 8cd0a0a

Browse files
committed
Added info
1 parent 5d4f419 commit 8cd0a0a

File tree

15 files changed

+62
-22
lines changed

15 files changed

+62
-22
lines changed

contract-typespec/api/acls.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "@typespec/openapi";
22

3+
namespace Api;
4+
35
using TypeSpec.Http;
46
using OpenAPI;
57

contract-typespec/api/auth.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "@typespec/openapi";
22

3+
namespace Api;
4+
35
using TypeSpec.Http;
46
using OpenAPI;
57

contract-typespec/api/brokers.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "@typespec/openapi";
22

3+
namespace Api;
4+
35
using TypeSpec.Http;
46
using OpenAPI;
57

@@ -111,4 +113,4 @@ model TopicPartitionLogdir {
111113
partition?: int32;
112114
size?: int64;
113115
offsetLag?: int64;
114-
}
116+
}

contract-typespec/api/clusters.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

@@ -92,4 +94,4 @@ model BrokerDiskUsage {
9294
brokerId: int32;
9395
segmentSize: int64;
9496
segmentCount: int32;
95-
}
97+
}

contract-typespec/api/config.tsp

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

@@ -81,10 +83,10 @@ model ApplicationConfig {
8183
jwkSetUri?: string;
8284
userNameAttribute?: string;
8385
scope?: string[];
84-
customParams?: Record<string>;
86+
customParams?: Record<string>;
8587
}>;
8688
resourceServer?: {
87-
jwt?: {
89+
jwt?: {
8890
jwkSetUri?: string;
8991
jwsAlgorithms?: string[];
9092
issuerUri?: string;
@@ -93,15 +95,15 @@ model ApplicationConfig {
9395
authorityPrefix?: string;
9496
authoritiesClaimDelimiter?: string;
9597
authoritiesClaimName?: string;
96-
principalClaimName?: string;
98+
principalClaimName?: string;
9799
};
98100
opaquetoken?: {
99101
clientId?: string;
100102
clientSecret?: string;
101-
introspectionUri?: string;
102-
};
103-
};
104-
};
103+
introspectionUri?: string;
104+
};
105+
};
106+
};
105107
};
106108
rbac: {
107109
roles: {
@@ -116,7 +118,7 @@ model ApplicationConfig {
116118
permissions: {
117119
resource: ResourceType;
118120
value: string;
119-
actions: Action[];
121+
actions: Action[];
120122
}[];
121123
}[];
122124
};
@@ -129,7 +131,7 @@ model ApplicationConfig {
129131
pollTimeoutMs: int32;
130132
maxPageSize: int32;
131133
defaultPageSize: int32;
132-
responseTimeoutMs: int32;
134+
responseTimeoutMs: int32;
133135
};
134136
adminClientTimeout?: int32;
135137
internalTopicPrefix: string;
@@ -139,7 +141,7 @@ model ApplicationConfig {
139141
ssl?: {
140142
truststoreLocation?: string;
141143
truststorePassword?: string;
142-
verifySsl: boolean = true;
144+
verifySsl: boolean = true;
143145
};
144146
schemaRegistry?: string;
145147
schemaRegistryAuth?: {
@@ -148,24 +150,24 @@ model ApplicationConfig {
148150
};
149151
schemaRegistrySsl?: {
150152
keystoreLocation: string;
151-
keystorePassword: string;
153+
keystorePassword: string;
152154
};
153155
ksqldbServer?: string;
154156
ksqldbServerSsl?: {
155157
keystoreLocation: string;
156-
keystorePassword: string;
158+
keystorePassword: string;
157159
};
158160
ksqldbServerAuth?: {
159161
username: string;
160-
password: string;
162+
password: string;
161163
};
162164
kafkaConnect?: {
163165
name: string;
164166
address: string;
165167
username?: string;
166168
password?: string;
167169
keystoreLocation?: string;
168-
keystorePassword?: string;
170+
keystorePassword?: string;
169171
}[];
170172
metrics?: KafkaMetricsConfig;
171173
properties?: Record<unknown>;
@@ -177,9 +179,9 @@ model ApplicationConfig {
177179
defaultValueSerde?: string;
178180
masking?: MaskingConfig[];
179181
pollingThrottleRate?: int64;
180-
audit?: KafkaAuditConfig;
182+
audit?: KafkaAuditConfig;
181183
}[];
182-
};
184+
};
183185
};
184186
}
185187

@@ -262,7 +264,7 @@ enum AuthType {
262264
}
263265

264266
model AppAuthenticationSettings {
265-
authType?: global.AuthType;
267+
authType?: Api.AuthType;
266268
oAuthProviders?: OAuthProvider[];
267269
}
268270

@@ -308,4 +310,4 @@ enum ResourceType {
308310
ACL,
309311
AUDIT,
310312
CLIENT_QUOTAS,
311-
}
313+
}

contract-typespec/api/consumer-groups.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

contract-typespec/api/kafka-connect.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

contract-typespec/api/ksql.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

@@ -67,4 +69,4 @@ model KsqlTableResponse {
6769

6870
model KsqlResponse {
6971
table?: KsqlTableResponse;
70-
}
72+
}

contract-typespec/api/main.tsp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ import "./acls.tsp";
1111
import "./quotas.tsp";
1212
import "./auth.tsp";
1313
import "./config.tsp";
14+
import "@typespec/openapi";
15+
16+
using TypeSpec.OpenAPI;
17+
18+
@service(#{ title: "Kafbat UI Api Service" })
19+
@info(#{
20+
contact: #{ name: "API Support", email: "support@kafbat.io" },
21+
license: #{ name: "Apache 2.0", url: "https://www.apache.org/licenses/LICENSE-2.0.html" },
22+
version: "0.2.0"
23+
})
24+
namespace Api;
25+

contract-typespec/api/messages.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import "@typespec/openapi";
22
import "./models.tsp";
33
import "./responses.tsp";
44

5+
namespace Api;
6+
57
using TypeSpec.Http;
68
using OpenAPI;
79

contract-typespec/api/models.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
namespace Api;
2+
13
model Metric {
24
name?: string;
35
labels?: Record<string>;

contract-typespec/api/quotas.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import "@typespec/openapi";
22
import "./models.tsp";
33
import "./responses.tsp";
44

5+
namespace Api;
6+
57
using TypeSpec.Http;
68
using OpenAPI;
79

contract-typespec/api/responses.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/http";
22
import "@typespec/http/streams";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using TypeSpec.Streams;
68

contract-typespec/api/schemas.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

@@ -157,4 +159,4 @@ model CompatibilityCheckResponse {
157159
model SchemaSubjectsResponse {
158160
pageCount?: int32;
159161
schemas?: SchemaSubject[];
160-
}
162+
}

contract-typespec/api/topics.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import "@typespec/openapi";
22
import "./responses.tsp";
33

4+
namespace Api;
5+
46
using TypeSpec.Http;
57
using OpenAPI;
68

0 commit comments

Comments
 (0)