From eaa2d4f41278b6de111d716ca07d7098b637aa4c Mon Sep 17 00:00:00 2001 From: Matt Carey Date: Fri, 17 Apr 2026 15:12:45 +0100 Subject: [PATCH 1/2] fix(artifacts): remove tokenExpiresAt from ArtifactsCreateRepoResult The token itself encodes its expiry as `art_v1_?expires=`, making the separate `tokenExpiresAt` field redundant. --- types/defines/artifacts.d.ts | 4 +--- types/generated-snapshot/experimental/index.d.ts | 5 +---- types/generated-snapshot/experimental/index.ts | 5 +---- types/generated-snapshot/latest/index.d.ts | 5 +---- types/generated-snapshot/latest/index.ts | 5 +---- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/types/defines/artifacts.d.ts b/types/defines/artifacts.d.ts index 9d6188ab77b..d0dc9f8c99e 100644 --- a/types/defines/artifacts.d.ts +++ b/types/defines/artifacts.d.ts @@ -45,10 +45,8 @@ interface ArtifactsCreateRepoResult { defaultBranch: string; /** HTTPS git remote URL. */ remote: string; - /** Plaintext access token (only returned at creation time). */ + /** Plaintext access token (only returned at creation time). The token encodes its expiry as `art_v1_?expires=`. */ token: string; - /** ISO 8601 token expiry timestamp. */ - tokenExpiresAt: string; } /** Paginated list of repositories. */ diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index d6041a98d47..53b33ffa34b 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -11786,10 +11786,8 @@ interface ArtifactsCreateRepoResult { defaultBranch: string; /** HTTPS git remote URL. */ remote: string; - /** Plaintext access token (only returned at creation time). */ + /** Plaintext access token (only returned at creation time). The token encodes its expiry as `art_v1_?expires=`. */ token: string; - /** ISO 8601 token expiry timestamp. */ - tokenExpiresAt: string; } /** Paginated list of repositories. */ interface ArtifactsRepoListResult { @@ -11808,7 +11806,6 @@ interface ArtifactsCreateTokenResult { plaintext: string; /** Token scope: "read" or "write". */ scope: "read" | "write"; - /** ISO 8601 token expiry timestamp. */ expiresAt: string; } /** Token metadata (no plaintext). */ diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index 839270e6b0e..14de825ff65 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -11798,10 +11798,8 @@ export interface ArtifactsCreateRepoResult { defaultBranch: string; /** HTTPS git remote URL. */ remote: string; - /** Plaintext access token (only returned at creation time). */ + /** Plaintext access token (only returned at creation time). The token encodes its expiry as `art_v1_?expires=`. */ token: string; - /** ISO 8601 token expiry timestamp. */ - tokenExpiresAt: string; } /** Paginated list of repositories. */ export interface ArtifactsRepoListResult { @@ -11820,7 +11818,6 @@ export interface ArtifactsCreateTokenResult { plaintext: string; /** Token scope: "read" or "write". */ scope: "read" | "write"; - /** ISO 8601 token expiry timestamp. */ expiresAt: string; } /** Token metadata (no plaintext). */ diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index d02c58a4575..b2bdc5ec474 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -11126,10 +11126,8 @@ interface ArtifactsCreateRepoResult { defaultBranch: string; /** HTTPS git remote URL. */ remote: string; - /** Plaintext access token (only returned at creation time). */ + /** Plaintext access token (only returned at creation time). The token encodes its expiry as `art_v1_?expires=`. */ token: string; - /** ISO 8601 token expiry timestamp. */ - tokenExpiresAt: string; } /** Paginated list of repositories. */ interface ArtifactsRepoListResult { @@ -11148,7 +11146,6 @@ interface ArtifactsCreateTokenResult { plaintext: string; /** Token scope: "read" or "write". */ scope: "read" | "write"; - /** ISO 8601 token expiry timestamp. */ expiresAt: string; } /** Token metadata (no plaintext). */ diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index 43fd6a6536e..7d1b49f6d52 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -11138,10 +11138,8 @@ export interface ArtifactsCreateRepoResult { defaultBranch: string; /** HTTPS git remote URL. */ remote: string; - /** Plaintext access token (only returned at creation time). */ + /** Plaintext access token (only returned at creation time). The token encodes its expiry as `art_v1_?expires=`. */ token: string; - /** ISO 8601 token expiry timestamp. */ - tokenExpiresAt: string; } /** Paginated list of repositories. */ export interface ArtifactsRepoListResult { @@ -11160,7 +11158,6 @@ export interface ArtifactsCreateTokenResult { plaintext: string; /** Token scope: "read" or "write". */ scope: "read" | "write"; - /** ISO 8601 token expiry timestamp. */ expiresAt: string; } /** Token metadata (no plaintext). */ From d7e5c88cb9df0c9c5107b694466dd1a381c2b1f5 Mon Sep 17 00:00:00 2001 From: Matt Carey Date: Mon, 20 Apr 2026 17:24:49 +0100 Subject: [PATCH 2/2] fix(artifacts): include remote field in listRepos response ArtifactsRepoListResult now returns full ArtifactsRepoInfo[] instead of Omit[], matching the backend change in artifacts MR !106. --- types/defines/artifacts.d.ts | 4 ++-- types/generated-snapshot/experimental/index.d.ts | 4 ++-- types/generated-snapshot/experimental/index.ts | 4 ++-- types/generated-snapshot/latest/index.d.ts | 4 ++-- types/generated-snapshot/latest/index.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/types/defines/artifacts.d.ts b/types/defines/artifacts.d.ts index d0dc9f8c99e..e6604640fb9 100644 --- a/types/defines/artifacts.d.ts +++ b/types/defines/artifacts.d.ts @@ -51,8 +51,8 @@ interface ArtifactsCreateRepoResult { /** Paginated list of repositories. */ interface ArtifactsRepoListResult { - /** Repositories in this page (without the `remote` field). */ - repos: Omit[]; + /** Repositories in this page. */ + repos: ArtifactsRepoInfo[]; /** Total number of repositories in the namespace. */ total: number; /** Cursor for the next page, if there are more results. */ diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index 53b33ffa34b..948a85c3a71 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -11791,8 +11791,8 @@ interface ArtifactsCreateRepoResult { } /** Paginated list of repositories. */ interface ArtifactsRepoListResult { - /** Repositories in this page (without the `remote` field). */ - repos: Omit[]; + /** Repositories in this page. */ + repos: ArtifactsRepoInfo[]; /** Total number of repositories in the namespace. */ total: number; /** Cursor for the next page, if there are more results. */ diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index 14de825ff65..9ba6dc950ee 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -11803,8 +11803,8 @@ export interface ArtifactsCreateRepoResult { } /** Paginated list of repositories. */ export interface ArtifactsRepoListResult { - /** Repositories in this page (without the `remote` field). */ - repos: Omit[]; + /** Repositories in this page. */ + repos: ArtifactsRepoInfo[]; /** Total number of repositories in the namespace. */ total: number; /** Cursor for the next page, if there are more results. */ diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index b2bdc5ec474..8babfd7476a 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -11131,8 +11131,8 @@ interface ArtifactsCreateRepoResult { } /** Paginated list of repositories. */ interface ArtifactsRepoListResult { - /** Repositories in this page (without the `remote` field). */ - repos: Omit[]; + /** Repositories in this page. */ + repos: ArtifactsRepoInfo[]; /** Total number of repositories in the namespace. */ total: number; /** Cursor for the next page, if there are more results. */ diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index 7d1b49f6d52..d9da2d94c02 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -11143,8 +11143,8 @@ export interface ArtifactsCreateRepoResult { } /** Paginated list of repositories. */ export interface ArtifactsRepoListResult { - /** Repositories in this page (without the `remote` field). */ - repos: Omit[]; + /** Repositories in this page. */ + repos: ArtifactsRepoInfo[]; /** Total number of repositories in the namespace. */ total: number; /** Cursor for the next page, if there are more results. */