Skip to content

Commit 7d387c3

Browse files
committed
feat: update generated APIs
1 parent 5a8f85e commit 7d387c3

File tree

12 files changed

+1348
-37
lines changed

12 files changed

+1348
-37
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
VolumeType,
3131
} from './types.gen'
3232

33-
export const unmarshalReference = (data: unknown): Reference => {
33+
const unmarshalReference = (data: unknown): Reference => {
3434
if (!isJSONObject(data)) {
3535
throw new TypeError(
3636
`Unmarshalling the type 'Reference' failed as data isn't a dictionary.`,

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/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'

0 commit comments

Comments
 (0)