@rudderhq/cli 0.2.0-canary.20 → 0.2.0-canary.22

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 CHANGED
@@ -411,16 +411,45 @@ var init_workspace_backup = __esm({
411
411
 
412
412
  // ../packages/shared/src/validators/instance.ts
413
413
  import { z } from "zod";
414
- var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
414
+ var instanceLocaleSchema, instanceGitIdentitySourceSchema, instanceGitIdentitySettingsSchema, instanceDetectedGitIdentitySchema, instanceGitIdentityStatusSchema, instanceGitIdentityStateSchema, patchInstanceGitIdentitySettingsSchema, 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();
419
447
  instanceGeneralSettingsSchema = z.object({
420
448
  censorUsernameInLogs: z.boolean().default(false),
421
- locale: instanceLocaleSchema.default("en")
449
+ locale: instanceLocaleSchema.default("en"),
450
+ gitIdentity: instanceGitIdentitySettingsSchema.nullable().default(null)
422
451
  }).strict();
423
- patchInstanceGeneralSettingsSchema = instanceGeneralSettingsSchema.partial();
452
+ patchInstanceGeneralSettingsSchema = instanceGeneralSettingsSchema.omit({ gitIdentity: true }).partial();
424
453
  instanceNotificationSettingsSchema = z.object({
425
454
  desktopInboxNotifications: z.boolean().default(true),
426
455
  desktopDockBadge: z.boolean().default(true),