@rudderhq/cli 0.2.0-canary.29 → 0.2.0-canary.30
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/index.js +3 -32
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -411,45 +411,16 @@ var init_workspace_backup = __esm({
|
|
|
411
411
|
|
|
412
412
|
// ../packages/shared/src/validators/instance.ts
|
|
413
413
|
import { z } from "zod";
|
|
414
|
-
var instanceLocaleSchema,
|
|
414
|
+
var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
|
|
415
415
|
var init_instance = __esm({
|
|
416
416
|
"../packages/shared/src/validators/instance.ts"() {
|
|
417
417
|
"use strict";
|
|
418
418
|
instanceLocaleSchema = z.enum(["en", "zh-CN"]);
|
|
419
|
-
instanceGitIdentitySourceSchema = z.enum(["detected_global", "override"]);
|
|
420
|
-
instanceGitIdentitySettingsSchema = z.object({
|
|
421
|
-
name: z.string().trim().min(1),
|
|
422
|
-
email: z.string().trim().min(1),
|
|
423
|
-
confirmed: z.boolean().default(true),
|
|
424
|
-
source: instanceGitIdentitySourceSchema,
|
|
425
|
-
lastDetectedAt: z.string().datetime().nullable().default(null)
|
|
426
|
-
}).strict();
|
|
427
|
-
instanceDetectedGitIdentitySchema = z.object({
|
|
428
|
-
name: z.string(),
|
|
429
|
-
email: z.string(),
|
|
430
|
-
source: z.literal("host_global"),
|
|
431
|
-
unsafe: z.boolean()
|
|
432
|
-
}).strict();
|
|
433
|
-
instanceGitIdentityStatusSchema = z.enum(["confirmed", "detected", "missing", "unsafe"]);
|
|
434
|
-
instanceGitIdentityStateSchema = z.object({
|
|
435
|
-
saved: instanceGitIdentitySettingsSchema.nullable(),
|
|
436
|
-
detected: instanceDetectedGitIdentitySchema.nullable(),
|
|
437
|
-
effective: z.union([instanceGitIdentitySettingsSchema, instanceDetectedGitIdentitySchema]).nullable(),
|
|
438
|
-
status: instanceGitIdentityStatusSchema,
|
|
439
|
-
warning: z.string().nullable()
|
|
440
|
-
}).strict();
|
|
441
|
-
patchInstanceGitIdentitySettingsSchema = z.object({
|
|
442
|
-
name: z.string().optional(),
|
|
443
|
-
email: z.string().optional(),
|
|
444
|
-
confirmDetected: z.boolean().optional(),
|
|
445
|
-
clear: z.boolean().optional()
|
|
446
|
-
}).strict();
|
|
447
419
|
instanceGeneralSettingsSchema = z.object({
|
|
448
420
|
censorUsernameInLogs: z.boolean().default(false),
|
|
449
|
-
locale: instanceLocaleSchema.default("en")
|
|
450
|
-
gitIdentity: instanceGitIdentitySettingsSchema.nullable().default(null)
|
|
421
|
+
locale: instanceLocaleSchema.default("en")
|
|
451
422
|
}).strict();
|
|
452
|
-
patchInstanceGeneralSettingsSchema = instanceGeneralSettingsSchema.
|
|
423
|
+
patchInstanceGeneralSettingsSchema = instanceGeneralSettingsSchema.partial();
|
|
453
424
|
instanceNotificationSettingsSchema = z.object({
|
|
454
425
|
desktopInboxNotifications: z.boolean().default(true),
|
|
455
426
|
desktopDockBadge: z.boolean().default(true),
|