Skip to content

Commit

Permalink
[OpenAPI] Spec updates for vercel-api-js (#402)
Browse files Browse the repository at this point in the history
Co-authored-by: SferaDev <2181866+SferaDev@users.noreply.github.com>
  • Loading branch information
SferaDev and SferaDev authored May 24, 2024
1 parent ed056ad commit b8e920d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/e0wgnf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vercel-api-js": patch
---

Add undeletedAt field to deployment response
10 changes: 10 additions & 0 deletions packages/vercel-api-js/src/api/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2990,6 +2990,7 @@ export const getDeployment = (variables: GetDeploymentVariables, signal?: AbortS
regions: string[];
source?: 'api-trigger-git-deploy' | 'cli' | 'clone/repo' | 'git' | 'import' | 'import/repo';
target?: 'staging' | 'production' | null;
undeletedAt?: number;
url: string;
oidcTokenClaims?: {
[key: string]: string;
Expand Down Expand Up @@ -3424,6 +3425,7 @@ export const getDeployment = (variables: GetDeploymentVariables, signal?: AbortS
regions: string[];
source?: 'api-trigger-git-deploy' | 'cli' | 'clone/repo' | 'git' | 'import' | 'import/repo';
target?: 'staging' | 'production' | null;
undeletedAt?: number;
url: string;
oidcTokenClaims?: {
[key: string]: string;
Expand Down Expand Up @@ -3826,6 +3828,7 @@ export type CreateDeploymentResponse = {
* Since June 2023 Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - PROMOTED: has seen production traffic
*/
readySubstate?: 'STAGED' | 'PROMOTED';
undeletedAt?: number;
url: string;
oidcTokenClaims?: {
[key: string]: string;
Expand Down Expand Up @@ -4644,6 +4647,7 @@ export type CancelDeploymentResponse = {
source?: 'api-trigger-git-deploy' | 'cli' | 'clone/repo' | 'git' | 'import' | 'import/repo';
target?: 'production' | 'staging' | null;
type: 'LAMBDAS';
undeletedAt?: number;
url: string;
version: 2;
oidcTokenClaims?: {
Expand Down Expand Up @@ -18871,6 +18875,12 @@ export type GetDeploymentsResponse = {
* @example 1609492210000
*/
deleted?: number;
/**
* Timestamp of when the deployment was undeleted.
*
* @example 1609492210000
*/
undeleted?: number;
/**
* The source of the deployment.
*
Expand Down

0 comments on commit b8e920d

Please sign in to comment.