Skip to content

Commit

Permalink
[OpenAPI] Spec updates for vercel-api-js (#428)
Browse files Browse the repository at this point in the history
Co-authored-by: SferaDev <[email protected]>
  • Loading branch information
SferaDev and SferaDev authored Jun 11, 2024
1 parent 3b3e9c9 commit 23fbbe2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/2rv4cd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vercel-api-js": patch
---

[BREAKING] Add new 'firewall' source option to log drains
14 changes: 9 additions & 5 deletions packages/vercel-api-js/src/api/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,8 @@ export type GetDeploymentEventsResponse = (
vercelId?: string;
vercelCache?: 'MISS' | 'HIT' | 'STALE' | 'BYPASS' | 'PRERENDER' | 'REVALIDATED';
lambdaRegion?: string;
wafAction?: 'log' | 'challenge' | 'deny' | 'bypass' | 'rate_limit';
wafRuleId?: string;
};
requestId?: string;
serial: string;
Expand Down Expand Up @@ -2336,6 +2338,8 @@ export type GetDeploymentEventsResponse = (
vercelId?: string;
vercelCache?: 'MISS' | 'HIT' | 'STALE' | 'BYPASS' | 'PRERENDER' | 'REVALIDATED';
lambdaRegion?: string;
wafAction?: 'log' | 'challenge' | 'deny' | 'bypass' | 'rate_limit';
wafRuleId?: string;
};
};
}
Expand Down Expand Up @@ -8098,7 +8102,7 @@ export type GetIntegrationLogDrainsResponse = {
* @example build
* @example edge
*/
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external' | 'firewall')[];
/**
* Whether the log drain was created by an integration or by a user
*
Expand Down Expand Up @@ -8228,7 +8232,7 @@ export type CreateLogDrainResponse = {
* @example build
* @example edge
*/
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external' | 'firewall')[];
/**
* Whether the log drain was created by an integration or by a user
*
Expand Down Expand Up @@ -8508,7 +8512,7 @@ export type GetConfigurableLogDrainResponse = {
createdAt: number;
deletedAt: number | null;
updatedAt: number;
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external' | 'firewall')[];
headers?: {
[key: string]: string;
};
Expand Down Expand Up @@ -8607,7 +8611,7 @@ export type GetAllLogDrainsResponse = {
createdAt: number;
deletedAt: number | null;
updatedAt: number;
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external' | 'firewall')[];
headers?: {
[key: string]: string;
};
Expand Down Expand Up @@ -8668,7 +8672,7 @@ export type CreateConfigurableLogDrainResponse = {
createdAt: number;
deletedAt: number | null;
updatedAt: number;
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external' | 'firewall')[];
headers?: {
[key: string]: string;
};
Expand Down

0 comments on commit 23fbbe2

Please sign in to comment.