vercel-api-js 0.6.3 → 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.3 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.2s
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.9s
10
+ created dist/index.d.ts in 5.2s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
9
+ ## 0.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 1734501: Add new 'nodeVersion' field to CreateDeploymentRequestBody
14
+ - 7253391: [BREAKING] Add new type 'integration-store-secret' to UpdateProjectDataCacheResponse, GetProjectsResponse, CreateProjectResponse, GetProjectResponse, UpdateProjectResponse, filterProjectEnvs, getProjectEnv, CreateProjectEnvResponse, removeProjectEnv, EditProjectEnvResponse
15
+ - dc191cf: Add new fields skewProtectionBoundaryAt and skewProtectionMaxAge to UpdateProjectRequestBody
16
+ - e096156: [BREAKING] Add new oauth2Connection field to multiple project-related API responses
17
+ - 9d8632b: Change viewPreference order in activeDashboardViews type
18
+
3
19
  ## 0.6.3
4
20
 
5
21
  ### 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
@@ -882,7 +882,7 @@ type AuthUser = {
882
882
  */
883
883
  activeDashboardViews?: {
884
884
  scopeId: string;
885
- viewPreference?: 'cards' | 'list';
885
+ viewPreference?: 'list' | 'cards';
886
886
  favoritesViewPreference?: 'open' | 'closed';
887
887
  recentsViewPreference?: 'open' | 'closed';
888
888
  }[];
@@ -2028,7 +2028,10 @@ type UpdateProjectDataCacheResponse = {
2028
2028
  } | {
2029
2029
  type: 'postgres-url-no-ssl';
2030
2030
  storeId: string;
2031
- } | Record<string, any> | null;
2031
+ } | {
2032
+ type: 'integration-store-secret';
2033
+ storeId: string;
2034
+ } | null;
2032
2035
  /**
2033
2036
  * Whether `value` is decrypted.
2034
2037
  */
@@ -2292,6 +2295,7 @@ type UpdateProjectDataCacheResponse = {
2292
2295
  notificationUsageAlert?: ACLAction[];
2293
2296
  notificationCustomerBudget?: ACLAction[];
2294
2297
  notificationStatementOfReasons?: ACLAction[];
2298
+ oauth2Connection?: ACLAction[];
2295
2299
  openTelemetryEndpoint?: ACLAction[];
2296
2300
  paymentMethod?: ACLAction[];
2297
2301
  permissions?: ACLAction[];
@@ -2526,186 +2530,81 @@ type GetDeploymentEventsQueryParams = {
2526
2530
  };
2527
2531
  type GetDeploymentEventsError = ErrorWrapper<undefined>;
2528
2532
  type GetDeploymentEventsResponse = ({
2529
- type: 'command';
2530
- created: number;
2531
- payload: {
2532
- deploymentId: string;
2533
- text?: string;
2534
- id: string;
2535
- date: number;
2536
- serial: string;
2537
- };
2538
- } | {
2539
- type: 'deployment-state';
2540
- created: number;
2541
- payload: {
2542
- deploymentId: string;
2543
- info: {
2544
- type: string;
2545
- name: string;
2546
- entrypoint?: string;
2547
- path?: string;
2548
- step?: string;
2549
- };
2550
- id: string;
2551
- date: number;
2552
- serial: string;
2553
- };
2554
- } | {
2555
- type: 'delimiter';
2556
- created: number;
2557
- payload: {
2558
- deploymentId: string;
2559
- info: {
2560
- type: string;
2561
- name: string;
2562
- entrypoint?: string;
2563
- path?: string;
2564
- step?: string;
2565
- };
2566
- id: string;
2567
- date: number;
2568
- serial: string;
2569
- };
2570
- } | {
2571
- type: 'exit';
2572
- created: number;
2573
- payload: {
2574
- date: number;
2575
- text?: string;
2576
- id: string;
2577
- deploymentId: string;
2578
- created: number;
2579
- serial: string;
2580
- };
2581
- } | {
2582
- type: 'middleware';
2583
2533
  created: number;
2584
- payload: {
2585
- deploymentId: string;
2586
- info: {
2587
- type: string;
2588
- name: string;
2589
- entrypoint?: string;
2590
- path?: string;
2591
- step?: string;
2592
- };
2593
- text?: string;
2594
- id: string;
2595
- date: number;
2596
- serial: string;
2597
- 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;
2598
2544
  };
2599
- } | {
2600
- type: 'delimiter' | 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2601
- created: number;
2602
- payload: {
2603
- deploymentId: string;
2604
- info: {
2605
- type: string;
2606
- name: string;
2607
- entrypoint?: string;
2608
- path?: string;
2609
- step?: string;
2610
- };
2611
- text?: string;
2612
- id: string;
2613
- date: number;
2614
- serial: string;
2545
+ proxy?: {
2546
+ timestamp: number;
2547
+ method: string;
2548
+ host: string;
2549
+ path: string;
2615
2550
  statusCode?: number;
2616
- requestId?: string;
2617
- };
2618
- } | (Record<string, any> | {
2619
- type: 'command';
2620
- created: number;
2621
- payload: {
2622
- deploymentId: string;
2623
- text?: string;
2624
- id: string;
2625
- date: number;
2626
- serial: string;
2627
- };
2628
- } | {
2629
- type: 'deployment-state';
2630
- created: number;
2631
- payload: {
2632
- deploymentId: string;
2633
- info: {
2634
- type: string;
2635
- name: string;
2636
- entrypoint?: string;
2637
- path?: string;
2638
- step?: string;
2639
- };
2640
- id: string;
2641
- date: number;
2642
- serial: string;
2643
- };
2644
- } | {
2645
- type: 'delimiter';
2646
- created: number;
2647
- payload: {
2648
- deploymentId: string;
2649
- info: {
2650
- type: string;
2651
- name: string;
2652
- entrypoint?: string;
2653
- path?: string;
2654
- step?: string;
2655
- };
2656
- id: string;
2657
- date: number;
2658
- serial: string;
2659
- };
2660
- } | {
2661
- type: 'exit';
2662
- created: number;
2663
- payload: {
2664
- date: number;
2665
- text?: string;
2666
- id: string;
2667
- deploymentId: string;
2668
- created: number;
2669
- serial: string;
2670
- };
2671
- } | {
2672
- type: 'middleware';
2673
- created: number;
2674
- payload: {
2675
- deploymentId: string;
2676
- info: {
2677
- type: string;
2678
- name: string;
2679
- entrypoint?: string;
2680
- path?: string;
2681
- step?: string;
2682
- };
2683
- text?: string;
2684
- id: string;
2685
- date: number;
2686
- serial: string;
2687
- requestId?: 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;
2688
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';
2689
2568
  } | {
2690
- type: 'delimiter' | 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2569
+ type: 'command' | 'stdout' | 'stderr' | 'exit' | 'deployment-state' | 'delimiter' | 'middleware' | 'middleware-invocation' | 'edge-function-invocation' | 'fatal';
2691
2570
  created: number;
2692
2571
  payload: {
2693
2572
  deploymentId: string;
2694
- info: {
2573
+ info?: {
2695
2574
  type: string;
2696
2575
  name: string;
2697
2576
  entrypoint?: string;
2698
2577
  path?: string;
2699
2578
  step?: string;
2579
+ readyState?: string;
2700
2580
  };
2701
2581
  text?: string;
2702
2582
  id: string;
2703
2583
  date: number;
2704
2584
  serial: string;
2585
+ created?: number;
2705
2586
  statusCode?: number;
2706
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
+ };
2707
2606
  };
2708
- }))[];
2607
+ })[];
2709
2608
  type GetDeploymentEventsVariables = {
2710
2609
  pathParams: GetDeploymentEventsPathParams;
2711
2610
  queryParams?: GetDeploymentEventsQueryParams;
@@ -4064,6 +3963,10 @@ type CreateDeploymentRequestBody = {
4064
3963
  * @maxLength 256
4065
3964
  */
4066
3965
  installCommand?: string | null;
3966
+ /**
3967
+ * Override the Node.js version that should be used for this deployment
3968
+ */
3969
+ nodeVersion?: '20.x' | '18.x' | '16.x';
4067
3970
  /**
4068
3971
  * The output directory of the project. When `null` is used this value will be automatically detected
4069
3972
  *
@@ -7797,7 +7700,10 @@ type GetProjectsResponse = {
7797
7700
  } | {
7798
7701
  type: 'postgres-url-no-ssl';
7799
7702
  storeId: string;
7800
- } | Record<string, any> | null;
7703
+ } | {
7704
+ type: 'integration-store-secret';
7705
+ storeId: string;
7706
+ } | null;
7801
7707
  /**
7802
7708
  * Whether `value` is decrypted.
7803
7709
  */
@@ -8061,6 +7967,7 @@ type GetProjectsResponse = {
8061
7967
  notificationUsageAlert?: ACLAction[];
8062
7968
  notificationCustomerBudget?: ACLAction[];
8063
7969
  notificationStatementOfReasons?: ACLAction[];
7970
+ oauth2Connection?: ACLAction[];
8064
7971
  openTelemetryEndpoint?: ACLAction[];
8065
7972
  paymentMethod?: ACLAction[];
8066
7973
  permissions?: ACLAction[];
@@ -8351,7 +8258,10 @@ type CreateProjectResponse = {
8351
8258
  } | {
8352
8259
  type: 'postgres-url-no-ssl';
8353
8260
  storeId: string;
8354
- } | Record<string, any> | null;
8261
+ } | {
8262
+ type: 'integration-store-secret';
8263
+ storeId: string;
8264
+ } | null;
8355
8265
  /**
8356
8266
  * Whether `value` is decrypted.
8357
8267
  */
@@ -8615,6 +8525,7 @@ type CreateProjectResponse = {
8615
8525
  notificationUsageAlert?: ACLAction[];
8616
8526
  notificationCustomerBudget?: ACLAction[];
8617
8527
  notificationStatementOfReasons?: ACLAction[];
8528
+ oauth2Connection?: ACLAction[];
8618
8529
  openTelemetryEndpoint?: ACLAction[];
8619
8530
  paymentMethod?: ACLAction[];
8620
8531
  permissions?: ACLAction[];
@@ -9018,7 +8929,10 @@ type GetProjectResponse = {
9018
8929
  } | {
9019
8930
  type: 'postgres-url-no-ssl';
9020
8931
  storeId: string;
9021
- } | Record<string, any> | null;
8932
+ } | {
8933
+ type: 'integration-store-secret';
8934
+ storeId: string;
8935
+ } | null;
9022
8936
  /**
9023
8937
  * Whether `value` is decrypted.
9024
8938
  */
@@ -9282,6 +9196,7 @@ type GetProjectResponse = {
9282
9196
  notificationUsageAlert?: ACLAction[];
9283
9197
  notificationCustomerBudget?: ACLAction[];
9284
9198
  notificationStatementOfReasons?: ACLAction[];
9199
+ oauth2Connection?: ACLAction[];
9285
9200
  openTelemetryEndpoint?: ACLAction[];
9286
9201
  paymentMethod?: ACLAction[];
9287
9202
  permissions?: ACLAction[];
@@ -9579,7 +9494,10 @@ type UpdateProjectResponse = {
9579
9494
  } | {
9580
9495
  type: 'postgres-url-no-ssl';
9581
9496
  storeId: string;
9582
- } | Record<string, any> | null;
9497
+ } | {
9498
+ type: 'integration-store-secret';
9499
+ storeId: string;
9500
+ } | null;
9583
9501
  /**
9584
9502
  * Whether `value` is decrypted.
9585
9503
  */
@@ -9843,6 +9761,7 @@ type UpdateProjectResponse = {
9843
9761
  notificationUsageAlert?: ACLAction[];
9844
9762
  notificationCustomerBudget?: ACLAction[];
9845
9763
  notificationStatementOfReasons?: ACLAction[];
9764
+ oauth2Connection?: ACLAction[];
9846
9765
  openTelemetryEndpoint?: ACLAction[];
9847
9766
  paymentMethod?: ACLAction[];
9848
9767
  permissions?: ACLAction[];
@@ -10038,6 +9957,8 @@ type UpdateProjectRequestBody = {
10038
9957
  value: string;
10039
9958
  /**
10040
9959
  * An optional note explaining what the IP address or subnet is used for
9960
+ *
9961
+ * @maxLength 20
10041
9962
  */
10042
9963
  note?: string;
10043
9964
  }[];
@@ -10123,6 +10044,18 @@ type UpdateProjectRequestBody = {
10123
10044
  * Specifies whether Zero Config Failover is enabled for this project.
10124
10045
  */
10125
10046
  serverlessFunctionZeroConfigFailover?: boolean;
10047
+ /**
10048
+ * Deployments created before this absolute datetime have Skew Protection disabled. Value is in milliseconds since epoch to match \"createdAt\" fields.
10049
+ *
10050
+ * @minimum 0
10051
+ */
10052
+ skewProtectionBoundaryAt?: number;
10053
+ /**
10054
+ * Deployments created before this rolling window have Skew Protection disabled. Value is in seconds to match \"revalidate\" fields.
10055
+ *
10056
+ * @minimum 0
10057
+ */
10058
+ skewProtectionMaxAge?: number;
10126
10059
  /**
10127
10060
  * Opts-out of the message prompting a CLI user to connect a Git repository in `vercel link`.
10128
10061
  *
@@ -10635,7 +10568,10 @@ declare const filterProjectEnvs: (variables: FilterProjectEnvsVariables, signal?
10635
10568
  } | {
10636
10569
  type: 'postgres-url-no-ssl';
10637
10570
  storeId: string;
10638
- } | Record<string, any> | null;
10571
+ } | {
10572
+ type: 'integration-store-secret';
10573
+ storeId: string;
10574
+ } | null;
10639
10575
  /**
10640
10576
  * Whether `value` is decrypted.
10641
10577
  */
@@ -10696,7 +10632,10 @@ declare const filterProjectEnvs: (variables: FilterProjectEnvsVariables, signal?
10696
10632
  } | {
10697
10633
  type: 'postgres-url-no-ssl';
10698
10634
  storeId: string;
10699
- } | Record<string, any> | null;
10635
+ } | {
10636
+ type: 'integration-store-secret';
10637
+ storeId: string;
10638
+ } | null;
10700
10639
  /**
10701
10640
  * Whether `value` is decrypted.
10702
10641
  */
@@ -10759,7 +10698,10 @@ declare const filterProjectEnvs: (variables: FilterProjectEnvsVariables, signal?
10759
10698
  } | {
10760
10699
  type: 'postgres-url-no-ssl';
10761
10700
  storeId: string;
10762
- } | Record<string, any> | null;
10701
+ } | {
10702
+ type: 'integration-store-secret';
10703
+ storeId: string;
10704
+ } | null;
10763
10705
  /**
10764
10706
  * Whether `value` is decrypted.
10765
10707
  */
@@ -10847,7 +10789,10 @@ declare const getProjectEnv: (variables: GetProjectEnvVariables, signal?: AbortS
10847
10789
  } | {
10848
10790
  type: 'postgres-url-no-ssl';
10849
10791
  storeId: string;
10850
- } | Record<string, any> | null;
10792
+ } | {
10793
+ type: 'integration-store-secret';
10794
+ storeId: string;
10795
+ } | null;
10851
10796
  comment?: string;
10852
10797
  } | {
10853
10798
  target?: ('production' | 'preview' | 'development' | 'preview' | 'development' | 'preview' | 'development')[] | ('production' | 'preview' | 'development' | 'preview' | 'development' | 'preview' | 'development');
@@ -10902,7 +10847,10 @@ declare const getProjectEnv: (variables: GetProjectEnvVariables, signal?: AbortS
10902
10847
  } | {
10903
10848
  type: 'postgres-url-no-ssl';
10904
10849
  storeId: string;
10905
- } | Record<string, any> | null;
10850
+ } | {
10851
+ type: 'integration-store-secret';
10852
+ storeId: string;
10853
+ } | null;
10906
10854
  /**
10907
10855
  * Whether `value` is decrypted.
10908
10856
  */
@@ -10984,7 +10932,10 @@ type CreateProjectEnvResponse = {
10984
10932
  } | {
10985
10933
  type: 'postgres-url-no-ssl';
10986
10934
  storeId: string;
10987
- } | Record<string, any> | null;
10935
+ } | {
10936
+ type: 'integration-store-secret';
10937
+ storeId: string;
10938
+ } | null;
10988
10939
  /**
10989
10940
  * Whether `value` is decrypted.
10990
10941
  */
@@ -11044,7 +10995,10 @@ type CreateProjectEnvResponse = {
11044
10995
  } | {
11045
10996
  type: 'postgres-url-no-ssl';
11046
10997
  storeId: string;
11047
- } | Record<string, any> | null;
10998
+ } | {
10999
+ type: 'integration-store-secret';
11000
+ storeId: string;
11001
+ } | null;
11048
11002
  /**
11049
11003
  * Whether `value` is decrypted.
11050
11004
  */
@@ -11237,7 +11191,10 @@ declare const removeProjectEnv: (variables: RemoveProjectEnvVariables, signal?:
11237
11191
  } | {
11238
11192
  type: 'postgres-url-no-ssl';
11239
11193
  storeId: string;
11240
- } | Record<string, any> | null;
11194
+ } | {
11195
+ type: 'integration-store-secret';
11196
+ storeId: string;
11197
+ } | null;
11241
11198
  /**
11242
11199
  * Whether `value` is decrypted.
11243
11200
  */
@@ -11296,7 +11253,10 @@ declare const removeProjectEnv: (variables: RemoveProjectEnvVariables, signal?:
11296
11253
  } | {
11297
11254
  type: 'postgres-url-no-ssl';
11298
11255
  storeId: string;
11299
- } | Record<string, any> | null;
11256
+ } | {
11257
+ type: 'integration-store-secret';
11258
+ storeId: string;
11259
+ } | null;
11300
11260
  /**
11301
11261
  * Whether `value` is decrypted.
11302
11262
  */
@@ -11355,7 +11315,10 @@ declare const removeProjectEnv: (variables: RemoveProjectEnvVariables, signal?:
11355
11315
  } | {
11356
11316
  type: 'postgres-url-no-ssl';
11357
11317
  storeId: string;
11358
- } | Record<string, any> | null;
11318
+ } | {
11319
+ type: 'integration-store-secret';
11320
+ storeId: string;
11321
+ } | null;
11359
11322
  /**
11360
11323
  * Whether `value` is decrypted.
11361
11324
  */
@@ -11436,7 +11399,10 @@ type EditProjectEnvResponse = {
11436
11399
  } | {
11437
11400
  type: 'postgres-url-no-ssl';
11438
11401
  storeId: string;
11439
- } | Record<string, any> | null;
11402
+ } | {
11403
+ type: 'integration-store-secret';
11404
+ storeId: string;
11405
+ } | null;
11440
11406
  /**
11441
11407
  * Whether `value` is decrypted.
11442
11408
  */
@@ -14894,7 +14860,10 @@ declare const operationsByTag: {
14894
14860
  } | {
14895
14861
  type: 'postgres-url-no-ssl';
14896
14862
  storeId: string;
14897
- } | Record<string, any> | null;
14863
+ } | {
14864
+ type: 'integration-store-secret';
14865
+ storeId: string;
14866
+ } | null;
14898
14867
  /**
14899
14868
  * Whether `value` is decrypted.
14900
14869
  */
@@ -14955,7 +14924,10 @@ declare const operationsByTag: {
14955
14924
  } | {
14956
14925
  type: 'postgres-url-no-ssl';
14957
14926
  storeId: string;
14958
- } | Record<string, any> | null;
14927
+ } | {
14928
+ type: 'integration-store-secret';
14929
+ storeId: string;
14930
+ } | null;
14959
14931
  /**
14960
14932
  * Whether `value` is decrypted.
14961
14933
  */
@@ -15018,7 +14990,10 @@ declare const operationsByTag: {
15018
14990
  } | {
15019
14991
  type: 'postgres-url-no-ssl';
15020
14992
  storeId: string;
15021
- } | Record<string, any> | null;
14993
+ } | {
14994
+ type: 'integration-store-secret';
14995
+ storeId: string;
14996
+ } | null;
15022
14997
  /**
15023
14998
  * Whether `value` is decrypted.
15024
14999
  */
@@ -15080,7 +15055,10 @@ declare const operationsByTag: {
15080
15055
  } | {
15081
15056
  type: 'postgres-url-no-ssl';
15082
15057
  storeId: string;
15083
- } | Record<string, any> | null;
15058
+ } | {
15059
+ type: 'integration-store-secret';
15060
+ storeId: string;
15061
+ } | null;
15084
15062
  comment?: string;
15085
15063
  } | {
15086
15064
  target?: ('production' | 'preview' | 'development' | 'preview' | 'development' | 'preview' | 'development')[] | ('production' | 'preview' | 'development' | 'preview' | 'development' | 'preview' | 'development');
@@ -15135,7 +15113,10 @@ declare const operationsByTag: {
15135
15113
  } | {
15136
15114
  type: 'postgres-url-no-ssl';
15137
15115
  storeId: string;
15138
- } | Record<string, any> | null;
15116
+ } | {
15117
+ type: 'integration-store-secret';
15118
+ storeId: string;
15119
+ } | null;
15139
15120
  /**
15140
15121
  * Whether `value` is decrypted.
15141
15122
  */
@@ -15197,7 +15178,10 @@ declare const operationsByTag: {
15197
15178
  } | {
15198
15179
  type: 'postgres-url-no-ssl';
15199
15180
  storeId: string;
15200
- } | Record<string, any> | null;
15181
+ } | {
15182
+ type: 'integration-store-secret';
15183
+ storeId: string;
15184
+ } | null;
15201
15185
  /**
15202
15186
  * Whether `value` is decrypted.
15203
15187
  */
@@ -15256,7 +15240,10 @@ declare const operationsByTag: {
15256
15240
  } | {
15257
15241
  type: 'postgres-url-no-ssl';
15258
15242
  storeId: string;
15259
- } | Record<string, any> | null;
15243
+ } | {
15244
+ type: 'integration-store-secret';
15245
+ storeId: string;
15246
+ } | null;
15260
15247
  /**
15261
15248
  * Whether `value` is decrypted.
15262
15249
  */
@@ -15315,7 +15302,10 @@ declare const operationsByTag: {
15315
15302
  } | {
15316
15303
  type: 'postgres-url-no-ssl';
15317
15304
  storeId: string;
15318
- } | Record<string, any> | null;
15305
+ } | {
15306
+ type: 'integration-store-secret';
15307
+ storeId: string;
15308
+ } | null;
15319
15309
  /**
15320
15310
  * Whether `value` is decrypted.
15321
15311
  */
@@ -17508,7 +17498,7 @@ declare const operationsByPath: {
17508
17498
  'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
17509
17499
  'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
17510
17500
  'PATCH /v1/data-cache/projects/{projectId}': (variables: UpdateProjectDataCacheVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDataCacheResponse>;
17511
- '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>;
17512
17502
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
17513
17503
  build: {
17514
17504
  env: string[];
@@ -18144,7 +18134,7 @@ declare const operationsByPath: {
18144
18134
  gitBranch?: string;
18145
18135
  edgeConfigId?: string | null;
18146
18136
  edgeConfigTokenId?: string | null;
18147
- contentHint?: Record<string, any> | {
18137
+ contentHint?: {
18148
18138
  type: "redis-url";
18149
18139
  storeId: string;
18150
18140
  } | {
@@ -18183,6 +18173,9 @@ declare const operationsByPath: {
18183
18173
  } | {
18184
18174
  type: "postgres-url-no-ssl";
18185
18175
  storeId: string;
18176
+ } | {
18177
+ type: "integration-store-secret";
18178
+ storeId: string;
18186
18179
  } | null;
18187
18180
  decrypted?: boolean;
18188
18181
  comment?: string;
@@ -18202,7 +18195,7 @@ declare const operationsByPath: {
18202
18195
  gitBranch?: string;
18203
18196
  edgeConfigId?: string | null;
18204
18197
  edgeConfigTokenId?: string | null;
18205
- contentHint?: Record<string, any> | {
18198
+ contentHint?: {
18206
18199
  type: "redis-url";
18207
18200
  storeId: string;
18208
18201
  } | {
@@ -18241,6 +18234,9 @@ declare const operationsByPath: {
18241
18234
  } | {
18242
18235
  type: "postgres-url-no-ssl";
18243
18236
  storeId: string;
18237
+ } | {
18238
+ type: "integration-store-secret";
18239
+ storeId: string;
18244
18240
  } | null;
18245
18241
  decrypted?: boolean;
18246
18242
  comment?: string;
@@ -18262,7 +18258,7 @@ declare const operationsByPath: {
18262
18258
  gitBranch?: string;
18263
18259
  edgeConfigId?: string | null;
18264
18260
  edgeConfigTokenId?: string | null;
18265
- contentHint?: Record<string, any> | {
18261
+ contentHint?: {
18266
18262
  type: "redis-url";
18267
18263
  storeId: string;
18268
18264
  } | {
@@ -18301,6 +18297,9 @@ declare const operationsByPath: {
18301
18297
  } | {
18302
18298
  type: "postgres-url-no-ssl";
18303
18299
  storeId: string;
18300
+ } | {
18301
+ type: "integration-store-secret";
18302
+ storeId: string;
18304
18303
  } | null;
18305
18304
  decrypted?: boolean;
18306
18305
  comment?: string;
@@ -18321,7 +18320,7 @@ declare const operationsByPath: {
18321
18320
  gitBranch?: string;
18322
18321
  edgeConfigId?: string | null;
18323
18322
  edgeConfigTokenId?: string | null;
18324
- contentHint?: Record<string, any> | {
18323
+ contentHint?: {
18325
18324
  type: "redis-url";
18326
18325
  storeId: string;
18327
18326
  } | {
@@ -18360,6 +18359,9 @@ declare const operationsByPath: {
18360
18359
  } | {
18361
18360
  type: "postgres-url-no-ssl";
18362
18361
  storeId: string;
18362
+ } | {
18363
+ type: "integration-store-secret";
18364
+ storeId: string;
18363
18365
  } | null;
18364
18366
  comment?: string;
18365
18367
  } | {
@@ -18376,7 +18378,7 @@ declare const operationsByPath: {
18376
18378
  gitBranch?: string;
18377
18379
  edgeConfigId?: string | null;
18378
18380
  edgeConfigTokenId?: string | null;
18379
- contentHint?: Record<string, any> | {
18381
+ contentHint?: {
18380
18382
  type: "redis-url";
18381
18383
  storeId: string;
18382
18384
  } | {
@@ -18415,6 +18417,9 @@ declare const operationsByPath: {
18415
18417
  } | {
18416
18418
  type: "postgres-url-no-ssl";
18417
18419
  storeId: string;
18420
+ } | {
18421
+ type: "integration-store-secret";
18422
+ storeId: string;
18418
18423
  } | null;
18419
18424
  decrypted?: boolean;
18420
18425
  comment?: string;
@@ -18435,7 +18440,7 @@ declare const operationsByPath: {
18435
18440
  gitBranch?: string;
18436
18441
  edgeConfigId?: string | null;
18437
18442
  edgeConfigTokenId?: string | null;
18438
- contentHint?: Record<string, any> | {
18443
+ contentHint?: {
18439
18444
  type: "redis-url";
18440
18445
  storeId: string;
18441
18446
  } | {
@@ -18474,6 +18479,9 @@ declare const operationsByPath: {
18474
18479
  } | {
18475
18480
  type: "postgres-url-no-ssl";
18476
18481
  storeId: string;
18482
+ } | {
18483
+ type: "integration-store-secret";
18484
+ storeId: string;
18477
18485
  } | null;
18478
18486
  decrypted?: boolean;
18479
18487
  comment?: string;
@@ -18491,7 +18499,7 @@ declare const operationsByPath: {
18491
18499
  gitBranch?: string;
18492
18500
  edgeConfigId?: string | null;
18493
18501
  edgeConfigTokenId?: string | null;
18494
- contentHint?: Record<string, any> | {
18502
+ contentHint?: {
18495
18503
  type: "redis-url";
18496
18504
  storeId: string;
18497
18505
  } | {
@@ -18530,6 +18538,9 @@ declare const operationsByPath: {
18530
18538
  } | {
18531
18539
  type: "postgres-url-no-ssl";
18532
18540
  storeId: string;
18541
+ } | {
18542
+ type: "integration-store-secret";
18543
+ storeId: string;
18533
18544
  } | null;
18534
18545
  decrypted?: boolean;
18535
18546
  comment?: string;
@@ -18547,7 +18558,7 @@ declare const operationsByPath: {
18547
18558
  gitBranch?: string;
18548
18559
  edgeConfigId?: string | null;
18549
18560
  edgeConfigTokenId?: string | null;
18550
- contentHint?: Record<string, any> | {
18561
+ contentHint?: {
18551
18562
  type: "redis-url";
18552
18563
  storeId: string;
18553
18564
  } | {
@@ -18586,6 +18597,9 @@ declare const operationsByPath: {
18586
18597
  } | {
18587
18598
  type: "postgres-url-no-ssl";
18588
18599
  storeId: string;
18600
+ } | {
18601
+ type: "integration-store-secret";
18602
+ storeId: string;
18589
18603
  } | null;
18590
18604
  decrypted?: boolean;
18591
18605
  comment?: string;
@@ -18705,7 +18719,7 @@ declare class VercelApi {
18705
18719
  'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
18706
18720
  'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
18707
18721
  'PATCH /v1/data-cache/projects/{projectId}': (variables: UpdateProjectDataCacheVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDataCacheResponse>;
18708
- '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>;
18709
18723
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
18710
18724
  build: {
18711
18725
  env: string[];
@@ -19341,7 +19355,7 @@ declare class VercelApi {
19341
19355
  gitBranch?: string;
19342
19356
  edgeConfigId?: string | null;
19343
19357
  edgeConfigTokenId?: string | null;
19344
- contentHint?: Record<string, any> | {
19358
+ contentHint?: {
19345
19359
  type: "redis-url";
19346
19360
  storeId: string;
19347
19361
  } | {
@@ -19380,6 +19394,9 @@ declare class VercelApi {
19380
19394
  } | {
19381
19395
  type: "postgres-url-no-ssl";
19382
19396
  storeId: string;
19397
+ } | {
19398
+ type: "integration-store-secret";
19399
+ storeId: string;
19383
19400
  } | null;
19384
19401
  decrypted?: boolean;
19385
19402
  comment?: string;
@@ -19399,7 +19416,7 @@ declare class VercelApi {
19399
19416
  gitBranch?: string;
19400
19417
  edgeConfigId?: string | null;
19401
19418
  edgeConfigTokenId?: string | null;
19402
- contentHint?: Record<string, any> | {
19419
+ contentHint?: {
19403
19420
  type: "redis-url";
19404
19421
  storeId: string;
19405
19422
  } | {
@@ -19438,6 +19455,9 @@ declare class VercelApi {
19438
19455
  } | {
19439
19456
  type: "postgres-url-no-ssl";
19440
19457
  storeId: string;
19458
+ } | {
19459
+ type: "integration-store-secret";
19460
+ storeId: string;
19441
19461
  } | null;
19442
19462
  decrypted?: boolean;
19443
19463
  comment?: string;
@@ -19459,7 +19479,7 @@ declare class VercelApi {
19459
19479
  gitBranch?: string;
19460
19480
  edgeConfigId?: string | null;
19461
19481
  edgeConfigTokenId?: string | null;
19462
- contentHint?: Record<string, any> | {
19482
+ contentHint?: {
19463
19483
  type: "redis-url";
19464
19484
  storeId: string;
19465
19485
  } | {
@@ -19498,6 +19518,9 @@ declare class VercelApi {
19498
19518
  } | {
19499
19519
  type: "postgres-url-no-ssl";
19500
19520
  storeId: string;
19521
+ } | {
19522
+ type: "integration-store-secret";
19523
+ storeId: string;
19501
19524
  } | null;
19502
19525
  decrypted?: boolean;
19503
19526
  comment?: string;
@@ -19518,7 +19541,7 @@ declare class VercelApi {
19518
19541
  gitBranch?: string;
19519
19542
  edgeConfigId?: string | null;
19520
19543
  edgeConfigTokenId?: string | null;
19521
- contentHint?: Record<string, any> | {
19544
+ contentHint?: {
19522
19545
  type: "redis-url";
19523
19546
  storeId: string;
19524
19547
  } | {
@@ -19557,6 +19580,9 @@ declare class VercelApi {
19557
19580
  } | {
19558
19581
  type: "postgres-url-no-ssl";
19559
19582
  storeId: string;
19583
+ } | {
19584
+ type: "integration-store-secret";
19585
+ storeId: string;
19560
19586
  } | null;
19561
19587
  comment?: string;
19562
19588
  } | {
@@ -19573,7 +19599,7 @@ declare class VercelApi {
19573
19599
  gitBranch?: string;
19574
19600
  edgeConfigId?: string | null;
19575
19601
  edgeConfigTokenId?: string | null;
19576
- contentHint?: Record<string, any> | {
19602
+ contentHint?: {
19577
19603
  type: "redis-url";
19578
19604
  storeId: string;
19579
19605
  } | {
@@ -19612,6 +19638,9 @@ declare class VercelApi {
19612
19638
  } | {
19613
19639
  type: "postgres-url-no-ssl";
19614
19640
  storeId: string;
19641
+ } | {
19642
+ type: "integration-store-secret";
19643
+ storeId: string;
19615
19644
  } | null;
19616
19645
  decrypted?: boolean;
19617
19646
  comment?: string;
@@ -19632,7 +19661,7 @@ declare class VercelApi {
19632
19661
  gitBranch?: string;
19633
19662
  edgeConfigId?: string | null;
19634
19663
  edgeConfigTokenId?: string | null;
19635
- contentHint?: Record<string, any> | {
19664
+ contentHint?: {
19636
19665
  type: "redis-url";
19637
19666
  storeId: string;
19638
19667
  } | {
@@ -19671,6 +19700,9 @@ declare class VercelApi {
19671
19700
  } | {
19672
19701
  type: "postgres-url-no-ssl";
19673
19702
  storeId: string;
19703
+ } | {
19704
+ type: "integration-store-secret";
19705
+ storeId: string;
19674
19706
  } | null;
19675
19707
  decrypted?: boolean;
19676
19708
  comment?: string;
@@ -19688,7 +19720,7 @@ declare class VercelApi {
19688
19720
  gitBranch?: string;
19689
19721
  edgeConfigId?: string | null;
19690
19722
  edgeConfigTokenId?: string | null;
19691
- contentHint?: Record<string, any> | {
19723
+ contentHint?: {
19692
19724
  type: "redis-url";
19693
19725
  storeId: string;
19694
19726
  } | {
@@ -19727,6 +19759,9 @@ declare class VercelApi {
19727
19759
  } | {
19728
19760
  type: "postgres-url-no-ssl";
19729
19761
  storeId: string;
19762
+ } | {
19763
+ type: "integration-store-secret";
19764
+ storeId: string;
19730
19765
  } | null;
19731
19766
  decrypted?: boolean;
19732
19767
  comment?: string;
@@ -19744,7 +19779,7 @@ declare class VercelApi {
19744
19779
  gitBranch?: string;
19745
19780
  edgeConfigId?: string | null;
19746
19781
  edgeConfigTokenId?: string | null;
19747
- contentHint?: Record<string, any> | {
19782
+ contentHint?: {
19748
19783
  type: "redis-url";
19749
19784
  storeId: string;
19750
19785
  } | {
@@ -19783,6 +19818,9 @@ declare class VercelApi {
19783
19818
  } | {
19784
19819
  type: "postgres-url-no-ssl";
19785
19820
  storeId: string;
19821
+ } | {
19822
+ type: "integration-store-secret";
19823
+ storeId: string;
19786
19824
  } | null;
19787
19825
  decrypted?: boolean;
19788
19826
  comment?: 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.3",
3
+ "version": "0.7.0",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",