vercel-api-js 0.6.4 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.6.4 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.7.0 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 4.4s
7
+ created dist/index.cjs, dist/index.mjs in 4.7s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 5.5s
10
+ created dist/index.d.ts in 5.2s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7d2d4b8: [BREAKING] Change endpoint URL for getting deployment events from v2 to v3
8
+
3
9
  ## 0.6.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -184,7 +184,7 @@ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-c
184
184
  /**
185
185
  * Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
186
186
  */
187
- const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
187
+ const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v3/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
188
188
  /**
189
189
  * Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user or team is an owner of the deployment.
190
190
  */
package/dist/index.d.ts CHANGED
@@ -2530,186 +2530,81 @@ type GetDeploymentEventsQueryParams = {
2530
2530
  };
2531
2531
  type GetDeploymentEventsError = ErrorWrapper<undefined>;
2532
2532
  type GetDeploymentEventsResponse = ({
2533
- type: 'command';
2534
2533
  created: number;
2535
- payload: {
2536
- deploymentId: string;
2537
- text?: string;
2538
- id: string;
2539
- date: number;
2540
- serial: string;
2541
- };
2542
- } | {
2543
- type: 'deployment-state';
2544
- created: number;
2545
- payload: {
2546
- deploymentId: string;
2547
- info: {
2548
- type: string;
2549
- name: string;
2550
- entrypoint?: string;
2551
- path?: string;
2552
- step?: string;
2553
- };
2554
- id: string;
2555
- date: number;
2556
- serial: string;
2557
- };
2558
- } | {
2559
- type: 'delimiter';
2560
- created: number;
2561
- payload: {
2562
- deploymentId: string;
2563
- info: {
2564
- type: string;
2565
- name: string;
2566
- entrypoint?: string;
2567
- path?: string;
2568
- step?: string;
2569
- };
2570
- id: string;
2571
- date: number;
2572
- serial: string;
2573
- };
2574
- } | {
2575
- type: 'exit';
2576
- created: number;
2577
- payload: {
2578
- date: number;
2579
- text?: string;
2580
- id: string;
2581
- deploymentId: string;
2582
- created: number;
2583
- serial: string;
2584
- };
2585
- } | {
2586
- type: 'middleware';
2587
- created: number;
2588
- payload: {
2589
- deploymentId: string;
2590
- info: {
2591
- type: string;
2592
- name: string;
2593
- entrypoint?: string;
2594
- path?: string;
2595
- step?: string;
2596
- };
2597
- text?: string;
2598
- id: string;
2599
- date: number;
2600
- serial: string;
2601
- requestId?: string;
2534
+ date: number;
2535
+ deploymentId: string;
2536
+ id: string;
2537
+ info: {
2538
+ type: string;
2539
+ name: string;
2540
+ entrypoint?: string;
2541
+ path?: string;
2542
+ step?: string;
2543
+ readyState?: string;
2602
2544
  };
2603
- } | {
2604
- type: 'delimiter' | 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2605
- created: number;
2606
- payload: {
2607
- deploymentId: string;
2608
- info: {
2609
- type: string;
2610
- name: string;
2611
- entrypoint?: string;
2612
- path?: string;
2613
- step?: string;
2614
- };
2615
- text?: string;
2616
- id: string;
2617
- date: number;
2618
- serial: string;
2545
+ proxy?: {
2546
+ timestamp: number;
2547
+ method: string;
2548
+ host: string;
2549
+ path: string;
2619
2550
  statusCode?: number;
2620
- requestId?: string;
2621
- };
2622
- } | (Record<string, any> | {
2623
- type: 'command';
2624
- created: number;
2625
- payload: {
2626
- deploymentId: string;
2627
- text?: string;
2628
- id: string;
2629
- date: number;
2630
- serial: string;
2551
+ userAgent: string[];
2552
+ referer: string;
2553
+ clientIp: string;
2554
+ region: string;
2555
+ scheme?: string;
2556
+ responseByteSize?: number;
2557
+ cacheId?: string;
2558
+ pathType?: string;
2559
+ vercelId?: string;
2560
+ vercelCache?: 'MISS' | 'HIT' | 'STALE' | 'BYPASS' | 'PRERENDER' | 'REVALIDATED';
2561
+ lambdaRegion?: string;
2631
2562
  };
2563
+ requestId?: string;
2564
+ serial: string;
2565
+ statusCode?: number;
2566
+ text?: string;
2567
+ type: 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'delimiter' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2632
2568
  } | {
2633
- type: 'deployment-state';
2569
+ type: 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'delimiter' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2634
2570
  created: number;
2635
2571
  payload: {
2636
2572
  deploymentId: string;
2637
- info: {
2638
- type: string;
2639
- name: string;
2640
- entrypoint?: string;
2641
- path?: string;
2642
- step?: string;
2643
- };
2644
- id: string;
2645
- date: number;
2646
- serial: string;
2647
- };
2648
- } | {
2649
- type: 'delimiter';
2650
- created: number;
2651
- payload: {
2652
- deploymentId: string;
2653
- info: {
2654
- type: string;
2655
- name: string;
2656
- entrypoint?: string;
2657
- path?: string;
2658
- step?: string;
2659
- };
2660
- id: string;
2661
- date: number;
2662
- serial: string;
2663
- };
2664
- } | {
2665
- type: 'exit';
2666
- created: number;
2667
- payload: {
2668
- date: number;
2669
- text?: string;
2670
- id: string;
2671
- deploymentId: string;
2672
- created: number;
2673
- serial: string;
2674
- };
2675
- } | {
2676
- type: 'middleware';
2677
- created: number;
2678
- payload: {
2679
- deploymentId: string;
2680
- info: {
2681
- type: string;
2682
- name: string;
2683
- entrypoint?: string;
2684
- path?: string;
2685
- step?: string;
2686
- };
2687
- text?: string;
2688
- id: string;
2689
- date: number;
2690
- serial: string;
2691
- requestId?: string;
2692
- };
2693
- } | {
2694
- type: 'delimiter' | 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2695
- created: number;
2696
- payload: {
2697
- deploymentId: string;
2698
- info: {
2573
+ info?: {
2699
2574
  type: string;
2700
2575
  name: string;
2701
2576
  entrypoint?: string;
2702
2577
  path?: string;
2703
2578
  step?: string;
2579
+ readyState?: string;
2704
2580
  };
2705
2581
  text?: string;
2706
2582
  id: string;
2707
2583
  date: number;
2708
2584
  serial: string;
2585
+ created?: number;
2709
2586
  statusCode?: number;
2710
2587
  requestId?: string;
2588
+ proxy?: {
2589
+ timestamp: number;
2590
+ method: string;
2591
+ host: string;
2592
+ path: string;
2593
+ statusCode?: number;
2594
+ userAgent: string[];
2595
+ referer: string;
2596
+ clientIp: string;
2597
+ region: string;
2598
+ scheme?: string;
2599
+ responseByteSize?: number;
2600
+ cacheId?: string;
2601
+ pathType?: string;
2602
+ vercelId?: string;
2603
+ vercelCache?: 'MISS' | 'HIT' | 'STALE' | 'BYPASS' | 'PRERENDER' | 'REVALIDATED';
2604
+ lambdaRegion?: string;
2605
+ };
2711
2606
  };
2712
- }))[];
2607
+ })[];
2713
2608
  type GetDeploymentEventsVariables = {
2714
2609
  pathParams: GetDeploymentEventsPathParams;
2715
2610
  queryParams?: GetDeploymentEventsQueryParams;
@@ -17603,7 +17498,7 @@ declare const operationsByPath: {
17603
17498
  'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
17604
17499
  'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
17605
17500
  'PATCH /v1/data-cache/projects/{projectId}': (variables: UpdateProjectDataCacheVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDataCacheResponse>;
17606
- 'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
17501
+ 'GET /v3/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
17607
17502
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
17608
17503
  build: {
17609
17504
  env: string[];
@@ -18824,7 +18719,7 @@ declare class VercelApi {
18824
18719
  'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
18825
18720
  'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
18826
18721
  'PATCH /v1/data-cache/projects/{projectId}': (variables: UpdateProjectDataCacheVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDataCacheResponse>;
18827
- 'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
18722
+ 'GET /v3/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
18828
18723
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
18829
18724
  build: {
18830
18725
  env: string[];
package/dist/index.mjs CHANGED
@@ -182,7 +182,7 @@ const updateProjectDataCache = (variables, signal) => fetch$1({ url: '/v1/data-c
182
182
  /**
183
183
  * Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
184
184
  */
185
- const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v2/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
185
+ const getDeploymentEvents = (variables, signal) => fetch$1({ url: '/v3/deployments/{idOrUrl}/events', method: 'get', ...variables, signal });
186
186
  /**
187
187
  * Retrieves information for a deployment either by supplying its ID (`id` property) or Hostname (`url` property). Additional details will be included when the authenticated user or team is an owner of the deployment.
188
188
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.6.4",
3
+ "version": "0.7.0",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",