@rudderhq/cli 0.1.0-canary.48 → 0.1.0-canary.49

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
@@ -1717,7 +1717,7 @@ var init_automation = __esm({
1717
1717
 
1718
1718
  // ../packages/shared/src/validators/calendar.ts
1719
1719
  import { z as z19 } from "zod";
1720
- var nullableUuid, createCalendarSourceSchema, updateCalendarSourceSchema, calendarEventBaseSchema, createCalendarEventSchema, updateCalendarEventSchema, calendarEventListQuerySchema, googleCalendarSyncSchema;
1720
+ var nullableUuid, createCalendarSourceSchema, updateCalendarSourceSchema, calendarEventBaseSchema, createCalendarEventSchema, updateCalendarEventSchema, calendarEventListQuerySchema, googleCalendarSyncSchema, updateGoogleCalendarOAuthConfigSchema;
1721
1721
  var init_calendar = __esm({
1722
1722
  "../packages/shared/src/validators/calendar.ts"() {
1723
1723
  "use strict";
@@ -1787,6 +1787,14 @@ var init_calendar = __esm({
1787
1787
  googleCalendarSyncSchema = z19.object({
1788
1788
  sourceId: z19.string().uuid().optional().nullable()
1789
1789
  });
1790
+ updateGoogleCalendarOAuthConfigSchema = z19.object({
1791
+ clientId: z19.string().trim().min(1).max(512).optional(),
1792
+ clientSecret: z19.string().trim().min(1).max(2048).optional(),
1793
+ clear: z19.boolean().optional().default(false)
1794
+ }).refine(
1795
+ (value) => value.clear || value.clientId !== void 0 || value.clientSecret !== void 0,
1796
+ { message: "Provide credentials or clear the stored Google Calendar OAuth configuration" }
1797
+ );
1790
1798
  }
1791
1799
  });
1792
1800