Skip to content

Commit 3cb7ec1

Browse files
authored
feat(secret): add isLatest field to SecretVersion (#582)
1 parent fd0be96 commit 3cb7ec1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const unmarshalSecretVersion = (data: unknown) => {
5151
return {
5252
createdAt: unmarshalDate(data.created_at),
5353
description: data.description,
54+
isLatest: data.is_latest,
5455
revision: data.revision,
5556
secretId: data.secret_id,
5657
status: data.status,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export interface SecretVersion {
109109
* deleted. It is not possible to recover it.
110110
*/
111111
status: SecretVersionStatus
112+
/** True if the version is the latest one. */
113+
isLatest: boolean
112114
/** Date and time of the version's creation. */
113115
createdAt?: Date
114116
/** Last update of the version. */

0 commit comments

Comments
 (0)