Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions types/defines/artifacts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ 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_<secret>?expires=<unix_seconds>`. */
token: string;
/** ISO 8601 token expiry timestamp. */
tokenExpiresAt: string;
}

/** Paginated list of repositories. */
interface ArtifactsRepoListResult {
/** Repositories in this page (without the `remote` field). */
repos: Omit<ArtifactsRepoInfo, 'remote'>[];
/** 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. */
Expand Down
9 changes: 3 additions & 6 deletions types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11786,15 +11786,13 @@ 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_<secret>?expires=<unix_seconds>`. */
token: string;
/** ISO 8601 token expiry timestamp. */
tokenExpiresAt: string;
}
/** Paginated list of repositories. */
interface ArtifactsRepoListResult {
/** Repositories in this page (without the `remote` field). */
repos: Omit<ArtifactsRepoInfo, "remote">[];
/** 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. */
Expand All @@ -11808,7 +11806,6 @@ interface ArtifactsCreateTokenResult {
plaintext: string;
/** Token scope: "read" or "write". */
scope: "read" | "write";
/** ISO 8601 token expiry timestamp. */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these comments be deleted without removing the fields (more below)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. +1 for keeping these doc comments

expiresAt: string;
}
/** Token metadata (no plaintext). */
Expand Down
9 changes: 3 additions & 6 deletions types/generated-snapshot/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11798,15 +11798,13 @@ 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_<secret>?expires=<unix_seconds>`. */
token: string;
/** ISO 8601 token expiry timestamp. */
tokenExpiresAt: string;
}
/** Paginated list of repositories. */
export interface ArtifactsRepoListResult {
/** Repositories in this page (without the `remote` field). */
repos: Omit<ArtifactsRepoInfo, "remote">[];
/** 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. */
Expand All @@ -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). */
Expand Down
9 changes: 3 additions & 6 deletions types/generated-snapshot/latest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11126,15 +11126,13 @@ 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_<secret>?expires=<unix_seconds>`. */
token: string;
/** ISO 8601 token expiry timestamp. */
tokenExpiresAt: string;
}
/** Paginated list of repositories. */
interface ArtifactsRepoListResult {
/** Repositories in this page (without the `remote` field). */
repos: Omit<ArtifactsRepoInfo, "remote">[];
/** 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. */
Expand All @@ -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). */
Expand Down
9 changes: 3 additions & 6 deletions types/generated-snapshot/latest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11138,15 +11138,13 @@ 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_<secret>?expires=<unix_seconds>`. */
token: string;
/** ISO 8601 token expiry timestamp. */
tokenExpiresAt: string;
}
/** Paginated list of repositories. */
export interface ArtifactsRepoListResult {
/** Repositories in this page (without the `remote` field). */
repos: Omit<ArtifactsRepoInfo, "remote">[];
/** 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. */
Expand All @@ -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). */
Expand Down
Loading