@vercel/cli-config 0.1.1 → 0.1.2

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.
package/dist/schema.d.ts CHANGED
@@ -6,8 +6,9 @@
6
6
  * passthrough behavior for unrecognized config keys.
7
7
  */
8
8
  import type { z } from 'zod';
9
- import type { AuthConfig, GlobalConfig, GuidanceConfig, TelemetryConfig } from './types';
9
+ import type { AuthConfig, GlobalConfig, GuidanceConfig, TelemetryConfig, UpdatesConfig } from './types';
10
10
  export declare const telemetryConfigSchema: z.ZodType<TelemetryConfig>;
11
11
  export declare const guidanceConfigSchema: z.ZodType<GuidanceConfig>;
12
+ export declare const updatesConfigSchema: z.ZodType<UpdatesConfig>;
12
13
  export declare const globalConfigSchema: z.ZodType<GlobalConfig>;
13
14
  export declare const authConfigSchema: z.ZodType<AuthConfig>;
package/dist/schema.js CHANGED
@@ -7,14 +7,16 @@
7
7
  * passthrough behavior for unrecognized config keys.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.authConfigSchema = exports.globalConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
10
+ exports.authConfigSchema = exports.globalConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
11
11
  const schema_zod_1 = require("./schema.zod");
12
12
  exports.telemetryConfigSchema = schema_zod_1.telemetryConfigSchema.passthrough();
13
13
  exports.guidanceConfigSchema = schema_zod_1.guidanceConfigSchema.passthrough();
14
+ exports.updatesConfigSchema = schema_zod_1.updatesConfigSchema.passthrough();
14
15
  exports.globalConfigSchema = schema_zod_1.globalConfigSchema
15
16
  .extend({
16
17
  telemetry: exports.telemetryConfigSchema.optional(),
17
18
  guidance: exports.guidanceConfigSchema.optional(),
19
+ updates: exports.updatesConfigSchema.optional(),
18
20
  })
19
21
  .passthrough();
20
22
  exports.authConfigSchema = schema_zod_1.authConfigSchema.passthrough();
@@ -5,6 +5,9 @@ export declare const telemetryConfigSchema: z.ZodObject<{
5
5
  export declare const guidanceConfigSchema: z.ZodObject<{
6
6
  enabled: z.ZodOptional<z.ZodBoolean>;
7
7
  }, z.core.$strip>;
8
+ export declare const updatesConfigSchema: z.ZodObject<{
9
+ auto: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
8
11
  export declare const authConfigSchema: z.ZodObject<{
9
12
  '// Note': z.ZodOptional<z.ZodString>;
10
13
  '// Docs': z.ZodOptional<z.ZodString>;
@@ -26,4 +29,7 @@ export declare const globalConfigSchema: z.ZodObject<{
26
29
  guidance: z.ZodOptional<z.ZodObject<{
27
30
  enabled: z.ZodOptional<z.ZodBoolean>;
28
31
  }, z.core.$strip>>;
32
+ updates: z.ZodOptional<z.ZodObject<{
33
+ auto: z.ZodOptional<z.ZodBoolean>;
34
+ }, z.core.$strip>>;
29
35
  }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.globalConfigSchema = exports.authConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
3
+ exports.globalConfigSchema = exports.authConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
4
4
  // Generated by ts-to-zod
5
5
  const zod_1 = require("zod");
6
6
  exports.telemetryConfigSchema = zod_1.z.object({
@@ -9,6 +9,9 @@ exports.telemetryConfigSchema = zod_1.z.object({
9
9
  exports.guidanceConfigSchema = zod_1.z.object({
10
10
  enabled: zod_1.z.boolean().optional(),
11
11
  });
12
+ exports.updatesConfigSchema = zod_1.z.object({
13
+ auto: zod_1.z.boolean().optional(),
14
+ });
12
15
  exports.authConfigSchema = zod_1.z.object({
13
16
  '// Note': zod_1.z.string().optional(),
14
17
  '// Docs': zod_1.z.string().optional(),
@@ -26,4 +29,5 @@ exports.globalConfigSchema = zod_1.z.object({
26
29
  api: zod_1.z.string().optional(),
27
30
  telemetry: exports.telemetryConfigSchema.optional(),
28
31
  guidance: exports.guidanceConfigSchema.optional(),
32
+ updates: exports.updatesConfigSchema.optional(),
29
33
  });
package/dist/types.d.ts CHANGED
@@ -10,6 +10,9 @@ export interface TelemetryConfig {
10
10
  export interface GuidanceConfig {
11
11
  enabled?: boolean;
12
12
  }
13
+ export interface UpdatesConfig {
14
+ auto?: boolean;
15
+ }
13
16
  export interface AuthConfig {
14
17
  '// Note'?: string;
15
18
  '// Docs'?: string;
@@ -27,4 +30,5 @@ export interface GlobalConfig {
27
30
  api?: string;
28
31
  telemetry?: TelemetryConfig;
29
32
  guidance?: GuidanceConfig;
33
+ updates?: UpdatesConfig;
30
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/cli-config",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Shared core utilities for Vercel global configuration",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/projects/project-configuration/global-configuration",