@supernova-studio/client 1.83.0 → 1.84.1

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.d.mts CHANGED
@@ -373767,24 +373767,24 @@ declare const DTOLoginScreenSettings: z$1.ZodObject<{
373767
373767
  }>;
373768
373768
  type DTOLoginScreenSettings = z$1.infer<typeof DTOLoginScreenSettings>;
373769
373769
  declare const DTOLoginScreenSettingsUpdate: z$1.ZodObject<{
373770
- title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
373771
- color: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
373770
+ title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
373771
+ color: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEffects<z$1.ZodString, string, string>>>>;
373772
373772
  isEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373773
373773
  isGoogleEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373774
373774
  isEmailEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373775
373775
  isSsoEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373776
373776
  logoFileId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
373777
373777
  }, "strip", z$1.ZodTypeAny, {
373778
- title?: string | undefined;
373779
- color?: string | undefined;
373778
+ title?: string | null | undefined;
373779
+ color?: string | null | undefined;
373780
373780
  isEnabled?: boolean | undefined;
373781
373781
  isGoogleEnabled?: boolean | undefined;
373782
373782
  isEmailEnabled?: boolean | undefined;
373783
373783
  isSsoEnabled?: boolean | undefined;
373784
373784
  logoFileId?: string | null | undefined;
373785
373785
  }, {
373786
- title?: string | undefined;
373787
- color?: string | undefined;
373786
+ title?: string | null | undefined;
373787
+ color?: string | null | undefined;
373788
373788
  isEnabled?: boolean | undefined;
373789
373789
  isGoogleEnabled?: boolean | undefined;
373790
373790
  isEmailEnabled?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -373767,24 +373767,24 @@ declare const DTOLoginScreenSettings: z$1.ZodObject<{
373767
373767
  }>;
373768
373768
  type DTOLoginScreenSettings = z$1.infer<typeof DTOLoginScreenSettings>;
373769
373769
  declare const DTOLoginScreenSettingsUpdate: z$1.ZodObject<{
373770
- title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
373771
- color: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodString>>;
373770
+ title: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
373771
+ color: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEffects<z$1.ZodString, string, string>>>>;
373772
373772
  isEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373773
373773
  isGoogleEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373774
373774
  isEmailEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373775
373775
  isSsoEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
373776
373776
  logoFileId: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
373777
373777
  }, "strip", z$1.ZodTypeAny, {
373778
- title?: string | undefined;
373779
- color?: string | undefined;
373778
+ title?: string | null | undefined;
373779
+ color?: string | null | undefined;
373780
373780
  isEnabled?: boolean | undefined;
373781
373781
  isGoogleEnabled?: boolean | undefined;
373782
373782
  isEmailEnabled?: boolean | undefined;
373783
373783
  isSsoEnabled?: boolean | undefined;
373784
373784
  logoFileId?: string | null | undefined;
373785
373785
  }, {
373786
- title?: string | undefined;
373787
- color?: string | undefined;
373786
+ title?: string | null | undefined;
373787
+ color?: string | null | undefined;
373788
373788
  isEnabled?: boolean | undefined;
373789
373789
  isGoogleEnabled?: boolean | undefined;
373790
373790
  isEmailEnabled?: boolean | undefined;
package/dist/index.js CHANGED
@@ -8067,7 +8067,12 @@ var DTOLoginScreenSettings = _zod2.default.object({
8067
8067
  // Flag for SSO login
8068
8068
  });
8069
8069
  var DTOLoginScreenSettingsUpdate = DTOLoginScreenSettings.extend({
8070
- logoFileId: _zod2.default.string().nullish()
8070
+ logoFileId: _zod2.default.string().nullish(),
8071
+ title: _zod2.default.string().nullish(),
8072
+ color: _zod2.default.string().refine(
8073
+ (val) => val === null || /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(val),
8074
+ "Must be a valid hex color (e.g. #FF0000) or null"
8075
+ ).nullish()
8071
8076
  }).omit({ logoUrl: true }).partial();
8072
8077
  var DTOLoginScreenSettingsResponse = _zod2.default.object({
8073
8078
  loginScreenSettings: DTOLoginScreenSettings
@@ -13059,14 +13064,10 @@ var DesignSystemCodeSnapshotsEndpoint = class {
13059
13064
  });
13060
13065
  }
13061
13066
  finalize(snapshotId, body) {
13062
- return this.requestExecutor.json(
13063
- `/code-snapshots/${snapshotId}/finalize`,
13064
- DTOCodeSnapshotFinalizeResponse,
13065
- {
13066
- method: "POST",
13067
- body
13068
- }
13069
- );
13067
+ return this.requestExecutor.json(`/code-snapshots/${snapshotId}/finalize`, DTOCodeSnapshotFinalizeResponse, {
13068
+ method: "POST",
13069
+ body
13070
+ });
13070
13071
  }
13071
13072
  startProcessingRun(body) {
13072
13073
  return this.requestExecutor.json(`/code-snapshots/process-run`, DTOCodeSnapshotProcessingRunResponse, {