@bettercms-ai/sdk 1.22.1 → 1.23.0

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.cts CHANGED
@@ -296,6 +296,8 @@ interface UpdateEntryInput {
296
296
  interface SetPageContentInput {
297
297
  data: Record<string, unknown>;
298
298
  status?: "draft" | "published";
299
+ /** true replaces the whole entry data; omitted/false merges `data` by top-level key. */
300
+ replace?: boolean;
299
301
  }
300
302
  /** Filter for listing content entries. */
301
303
  interface ListEntriesFilter {
@@ -741,6 +743,11 @@ interface ManagedComponentInput {
741
743
  description?: string;
742
744
  blockJson?: unknown[];
743
745
  props?: unknown[];
746
+ /**
747
+ * Make this a VARIANT of that component (id or slug, same project): it joins that component's
748
+ * variant family, which is started from it when it has none.
749
+ */
750
+ variantOf?: string;
744
751
  }
745
752
  /**
746
753
  * The catalogue shape: what each component IS, without its block trees.
package/dist/index.d.ts CHANGED
@@ -296,6 +296,8 @@ interface UpdateEntryInput {
296
296
  interface SetPageContentInput {
297
297
  data: Record<string, unknown>;
298
298
  status?: "draft" | "published";
299
+ /** true replaces the whole entry data; omitted/false merges `data` by top-level key. */
300
+ replace?: boolean;
299
301
  }
300
302
  /** Filter for listing content entries. */
301
303
  interface ListEntriesFilter {
@@ -741,6 +743,11 @@ interface ManagedComponentInput {
741
743
  description?: string;
742
744
  blockJson?: unknown[];
743
745
  props?: unknown[];
746
+ /**
747
+ * Make this a VARIANT of that component (id or slug, same project): it joins that component's
748
+ * variant family, which is started from it when it has none.
749
+ */
750
+ variantOf?: string;
744
751
  }
745
752
  /**
746
753
  * The catalogue shape: what each component IS, without its block trees.