Skip to content

Commit 9cb4dfd

Browse files
committed
feat: update generated APIs
1 parent 5a8f85e commit 9cb4dfd

File tree

6 files changed

+90
-46
lines changed

6 files changed

+90
-46
lines changed

packages/clients/src/api/iam/v1alpha1/index.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export type {
88
Application,
99
BearerType,
1010
ClonePolicyRequest,
11+
Connection,
12+
ConnectionConnectedOrganization,
13+
ConnectionConnectedUser,
1114
CreateAPIKeyRequest,
1215
CreateApplicationRequest,
1316
CreateGroupRequest,
@@ -37,9 +40,6 @@ export type {
3740
GetSSHKeyRequest,
3841
GetUserConnectionsRequest,
3942
GetUserConnectionsResponse,
40-
GetUserConnectionsResponseConnection,
41-
GetUserConnectionsResponseConnectionConnectedOrganization,
42-
GetUserConnectionsResponseConnectionConnectedUser,
4343
GetUserRequest,
4444
GracePeriod,
4545
GracePeriodType,

packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import type {
1313
AddGroupMemberRequest,
1414
AddGroupMembersRequest,
1515
Application,
16+
Connection,
17+
ConnectionConnectedOrganization,
18+
ConnectionConnectedUser,
1619
CreateAPIKeyRequest,
1720
CreateApplicationRequest,
1821
CreateGroupRequest,
@@ -23,9 +26,6 @@ import type {
2326
CreateUserRequestMember,
2427
EncodedJWT,
2528
GetUserConnectionsResponse,
26-
GetUserConnectionsResponseConnection,
27-
GetUserConnectionsResponseConnectionConnectedOrganization,
28-
GetUserConnectionsResponseConnectionConnectedUser,
2929
GracePeriod,
3030
Group,
3131
JWT,
@@ -300,57 +300,51 @@ export const unmarshalEncodedJWT = (data: unknown): EncodedJWT => {
300300
} as EncodedJWT
301301
}
302302

303-
const unmarshalGetUserConnectionsResponseConnectionConnectedOrganization = (
303+
const unmarshalConnectionConnectedOrganization = (
304304
data: unknown,
305-
): GetUserConnectionsResponseConnectionConnectedOrganization => {
305+
): ConnectionConnectedOrganization => {
306306
if (!isJSONObject(data)) {
307307
throw new TypeError(
308-
`Unmarshalling the type 'GetUserConnectionsResponseConnectionConnectedOrganization' failed as data isn't a dictionary.`,
308+
`Unmarshalling the type 'ConnectionConnectedOrganization' failed as data isn't a dictionary.`,
309309
)
310310
}
311311

312312
return {
313313
id: data.id,
314314
locked: data.locked,
315315
name: data.name,
316-
} as GetUserConnectionsResponseConnectionConnectedOrganization
316+
} as ConnectionConnectedOrganization
317317
}
318318

319-
const unmarshalGetUserConnectionsResponseConnectionConnectedUser = (
319+
const unmarshalConnectionConnectedUser = (
320320
data: unknown,
321-
): GetUserConnectionsResponseConnectionConnectedUser => {
321+
): ConnectionConnectedUser => {
322322
if (!isJSONObject(data)) {
323323
throw new TypeError(
324-
`Unmarshalling the type 'GetUserConnectionsResponseConnectionConnectedUser' failed as data isn't a dictionary.`,
324+
`Unmarshalling the type 'ConnectionConnectedUser' failed as data isn't a dictionary.`,
325325
)
326326
}
327327

328328
return {
329329
id: data.id,
330330
type: data.type,
331331
username: data.username,
332-
} as GetUserConnectionsResponseConnectionConnectedUser
332+
} as ConnectionConnectedUser
333333
}
334334

335-
const unmarshalGetUserConnectionsResponseConnection = (
336-
data: unknown,
337-
): GetUserConnectionsResponseConnection => {
335+
const unmarshalConnection = (data: unknown): Connection => {
338336
if (!isJSONObject(data)) {
339337
throw new TypeError(
340-
`Unmarshalling the type 'GetUserConnectionsResponseConnection' failed as data isn't a dictionary.`,
338+
`Unmarshalling the type 'Connection' failed as data isn't a dictionary.`,
341339
)
342340
}
343341

344342
return {
345343
organization: data.organization
346-
? unmarshalGetUserConnectionsResponseConnectionConnectedOrganization(
347-
data.organization,
348-
)
349-
: undefined,
350-
user: data.user
351-
? unmarshalGetUserConnectionsResponseConnectionConnectedUser(data.user)
344+
? unmarshalConnectionConnectedOrganization(data.organization)
352345
: undefined,
353-
} as GetUserConnectionsResponseConnection
346+
user: data.user ? unmarshalConnectionConnectedUser(data.user) : undefined,
347+
} as Connection
354348
}
355349

356350
export const unmarshalGetUserConnectionsResponse = (
@@ -363,10 +357,7 @@ export const unmarshalGetUserConnectionsResponse = (
363357
}
364358

365359
return {
366-
connections: unmarshalArrayOfObject(
367-
data.connections,
368-
unmarshalGetUserConnectionsResponseConnection,
369-
),
360+
connections: unmarshalArrayOfObject(data.connections, unmarshalConnection),
370361
} as GetUserConnectionsResponse
371362
}
372363

packages/clients/src/api/iam/v1alpha1/types.gen.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ export type UserStatus = 'unknown_status' | 'invitation_pending' | 'activated'
9999

100100
export type UserType = 'unknown_type' | 'guest' | 'owner' | 'member'
101101

102-
export interface GetUserConnectionsResponseConnectionConnectedOrganization {
102+
export interface ConnectionConnectedOrganization {
103103
id: string
104104
name: string
105105
locked: boolean
106106
}
107107

108-
export interface GetUserConnectionsResponseConnectionConnectedUser {
108+
export interface ConnectionConnectedUser {
109109
id: string
110110
username: string
111111
type: UserType
@@ -203,11 +203,11 @@ export interface CreateUserRequestMember {
203203
password: string
204204
}
205205

206-
export interface GetUserConnectionsResponseConnection {
206+
export interface Connection {
207207
/** Information about the connected organization. */
208-
organization?: GetUserConnectionsResponseConnectionConnectedOrganization
208+
organization?: ConnectionConnectedOrganization
209209
/** Information about the connected user. */
210-
user?: GetUserConnectionsResponseConnectionConnectedUser
210+
user?: ConnectionConnectedUser
211211
}
212212

213213
export interface APIKey {
@@ -777,7 +777,7 @@ export type GetUserConnectionsRequest = {
777777

778778
export interface GetUserConnectionsResponse {
779779
/** List of connections. */
780-
connections: GetUserConnectionsResponseConnection[]
780+
connections: Connection[]
781781
}
782782

783783
export type GetUserRequest = {

packages/clients/src/api/iam/v1alpha1/validation-rules.gen.ts

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export const ListAPIKeysRequest = {
7878
maxLength: 200,
7979
},
8080
page: {
81-
greaterThan: 0,
81+
greaterThanOrEqual: 1,
82+
lessThanOrEqual: 10000,
8283
},
8384
pageSize: {
8485
greaterThanOrEqual: 1,
@@ -93,7 +94,8 @@ export const ListApplicationsRequest = {
9394
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
9495
},
9596
page: {
96-
greaterThan: 0,
97+
greaterThanOrEqual: 1,
98+
lessThanOrEqual: 10000,
9799
},
98100
pageSize: {
99101
greaterThanOrEqual: 1,
@@ -106,7 +108,8 @@ export const ListGroupsRequest = {
106108
minLength: 1,
107109
},
108110
page: {
109-
greaterThan: 0,
111+
greaterThanOrEqual: 1,
112+
lessThanOrEqual: 10000,
110113
},
111114
pageSize: {
112115
greaterThanOrEqual: 1,
@@ -116,7 +119,8 @@ export const ListGroupsRequest = {
116119

117120
export const ListJWTsRequest = {
118121
page: {
119-
greaterThan: 0,
122+
greaterThanOrEqual: 1,
123+
lessThanOrEqual: 10000,
120124
},
121125
pageSize: {
122126
greaterThanOrEqual: 1,
@@ -126,7 +130,8 @@ export const ListJWTsRequest = {
126130

127131
export const ListLogsRequest = {
128132
page: {
129-
greaterThan: 0,
133+
greaterThanOrEqual: 1,
134+
lessThanOrEqual: 10000,
130135
},
131136
pageSize: {
132137
greaterThanOrEqual: 1,
@@ -136,7 +141,8 @@ export const ListLogsRequest = {
136141

137142
export const ListPermissionSetsRequest = {
138143
page: {
139-
greaterThan: 0,
144+
greaterThanOrEqual: 1,
145+
lessThanOrEqual: 10000,
140146
},
141147
pageSize: {
142148
greaterThanOrEqual: 1,
@@ -146,7 +152,8 @@ export const ListPermissionSetsRequest = {
146152

147153
export const ListPoliciesRequest = {
148154
page: {
149-
greaterThan: 0,
155+
greaterThanOrEqual: 1,
156+
lessThanOrEqual: 10000,
150157
},
151158
pageSize: {
152159
greaterThanOrEqual: 1,
@@ -159,7 +166,8 @@ export const ListPoliciesRequest = {
159166

160167
export const ListQuotaRequest = {
161168
page: {
162-
greaterThan: 0,
169+
greaterThanOrEqual: 1,
170+
lessThanOrEqual: 10000,
163171
},
164172
pageSize: {
165173
greaterThanOrEqual: 1,
@@ -169,7 +177,8 @@ export const ListQuotaRequest = {
169177

170178
export const ListRulesRequest = {
171179
page: {
172-
greaterThan: 0,
180+
greaterThanOrEqual: 1,
181+
lessThanOrEqual: 10000,
173182
},
174183
pageSize: {
175184
greaterThanOrEqual: 1,
@@ -183,7 +192,8 @@ export const ListSSHKeysRequest = {
183192
minLength: 1,
184193
},
185194
page: {
186-
greaterThan: 0,
195+
greaterThanOrEqual: 1,
196+
lessThanOrEqual: 10000,
187197
},
188198
pageSize: {
189199
greaterThanOrEqual: 1,
@@ -193,7 +203,8 @@ export const ListSSHKeysRequest = {
193203

194204
export const ListUsersRequest = {
195205
page: {
196-
greaterThan: 0,
206+
greaterThanOrEqual: 1,
207+
lessThanOrEqual: 10000,
197208
},
198209
pageSize: {
199210
greaterThanOrEqual: 1,

packages/clients/src/api/inference/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
* EDIT HERE
44
*/
55

6+
export * as v1 from './v1/index.gen'
67
export * as v1beta1 from './v1beta1/index.gen'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export * from './content.gen'
5+
export type {
6+
CreateDeploymentRequest,
7+
CreateEndpointRequest,
8+
CreateModelRequest,
9+
DeleteDeploymentRequest,
10+
DeleteEndpointRequest,
11+
DeleteModelRequest,
12+
Deployment,
13+
DeploymentQuantization,
14+
DeploymentStatus,
15+
Endpoint,
16+
EndpointPrivateNetworkDetails,
17+
EndpointPublicNetworkDetails,
18+
EndpointSpec,
19+
GetDeploymentCertificateRequest,
20+
GetDeploymentRequest,
21+
GetModelRequest,
22+
ListDeploymentsRequest,
23+
ListDeploymentsRequestOrderBy,
24+
ListDeploymentsResponse,
25+
ListModelsRequest,
26+
ListModelsRequestOrderBy,
27+
ListModelsResponse,
28+
ListNodeTypesRequest,
29+
ListNodeTypesResponse,
30+
Model,
31+
ModelSource,
32+
ModelStatus,
33+
ModelSupportInfo,
34+
ModelSupportedNode,
35+
ModelSupportedQuantization,
36+
NodeType,
37+
NodeTypeStock,
38+
UpdateDeploymentRequest,
39+
UpdateEndpointRequest,
40+
} from './types.gen'
41+
export * as ValidationRules from './validation-rules.gen'

0 commit comments

Comments
 (0)