Skip to content

Commit f084c8a

Browse files
authored
feat(serverless): add token description (#98)
1 parent bb56f30 commit f084c8a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

packages/clients/src/api/container/v1beta1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const unmarshalToken = (data: unknown) => {
163163

164164
return {
165165
containerId: data.container_id,
166+
description: data.description,
166167
expiresAt: unmarshalDate(data.expires_at),
167168
id: data.id,
168169
namespaceId: data.namespace_id,
@@ -319,6 +320,7 @@ export const marshalCreateTokenRequest = (
319320
request: CreateTokenRequest,
320321
defaults: DefaultValues,
321322
): Record<string, unknown> => ({
323+
description: request.description,
322324
expires_at: request.expiresAt,
323325
...resolveOneOf([
324326
{

packages/clients/src/api/container/v1beta1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export interface Token {
213213
id: string
214214
status: TokenStatus
215215
expiresAt?: Date
216+
description?: string
216217
}
217218

218219
export type ListNamespacesRequest = {
@@ -434,6 +435,7 @@ export type CreateTokenRequest = {
434435
/** One-of ('scope'): at most one of 'containerId', 'namespaceId' could be set. */
435436
namespaceId?: string
436437
expiresAt?: Date
438+
description?: string
437439
}
438440

439441
export type GetTokenRequest = {

packages/clients/src/api/function/v1beta1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export const unmarshalToken = (data: unknown) => {
185185
}
186186

187187
return {
188+
description: data.description,
188189
expiresAt: unmarshalDate(data.expires_at),
189190
functionId: data.function_id,
190191
id: data.id,
@@ -373,6 +374,7 @@ export const marshalCreateTokenRequest = (
373374
request: CreateTokenRequest,
374375
defaults: DefaultValues,
375376
): Record<string, unknown> => ({
377+
description: request.description,
376378
expires_at: request.expiresAt,
377379
...resolveOneOf([
378380
{

packages/clients/src/api/function/v1beta1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export interface Token {
260260
id: string
261261
status: TokenStatus
262262
expiresAt?: Date
263+
description?: string
263264
}
264265

265266
/** Upload url */
@@ -501,6 +502,7 @@ export type CreateTokenRequest = {
501502
/** One-of ('scope'): at most one of 'functionId', 'namespaceId' could be set. */
502503
namespaceId?: string
503504
expiresAt?: Date
505+
description?: string
504506
}
505507

506508
export type GetTokenRequest = {

0 commit comments

Comments
 (0)