@levo-so/core 0.1.108 → 0.1.109

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -27
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -183,7 +183,7 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
183
183
  signUpWithPassword: <T = import("./types").ILevoMembership.Account>(data: import("./types").ILevoMembership.Request.SignUpWithPassword, options?: WretchOptions) => Promise<T>;
184
184
  };
185
185
  readonly collection: {
186
- getAllCollections: (data?: import("./types").LevoQuery.FindQuery<"name" | "workspace_id" | "created_at" | "id" | "kind" | "description" | "updated_at" | "icon" | "key" | "readonly" | "hidden" | "on_submit" | "on_update" | "module_name" | "allow_public_submit" | "public_submit_set_by" | "sections" | "views" | "title_field" | "email_field" | "mobile_field" | "settings" | "allow_draft" | "allow_public_view" | "public_view_set_by" | "public_view_set_by_account" | "public_submit_set_by_account" | "entry_count">, options?: WretchOptions) => Promise<IResponseMultiple<ILemaCollection>>;
186
+ getAllCollections: (data?: import("./types").LevoQuery.FindQuery<"name" | "workspace_id" | "created_at" | "id" | "kind" | "description" | "updated_at" | "icon" | "key" | "readonly" | "hidden" | "on_submit" | "on_update" | "module_name" | "allow_public_submit" | "public_submit_set_by" | "sections" | "views" | "title_field" | "email_field" | "mobile_field" | "settings" | "allow_draft" | "allow_multiple" | "allow_public_view" | "public_view_set_by" | "public_view_set_by_account" | "public_submit_set_by_account" | "entry_count">, options?: WretchOptions) => Promise<IResponseMultiple<ILemaCollection>>;
187
187
  getCollectionByIDExpanded: <T = ILemaCollection>(id: string, options?: WretchOptions) => Promise<IResponseSingle<T>>;
188
188
  createCollection: (data: ILemaCollection) => Promise<IResponseSingle<ILemaCollection>>;
189
189
  saveCollectionData: ({ collection_id, data, options, }: {
@@ -652,7 +652,7 @@ export declare type IDelayUnit = "minutes" | "hours" | "days";
652
652
  export declare interface IDraftEntry {
653
653
  _id: string;
654
654
  _account: string;
655
- _status: "draft" | "submitted";
655
+ _status: "draft" | "published" | "archived";
656
656
  [x: string]: any;
657
657
  created_at: string;
658
658
  updated_at: string;
@@ -713,35 +713,16 @@ declare interface IFaviconSrcset {
713
713
 
714
714
  /**
715
715
  * Public surface of per-workspace feature flags exposed via the external SDK.
716
- * Only fields renderer/SDK consumers need at runtime belong here. A small,
717
- * runtime-facing subset of `studio_config` (currently `kb_chat` and
718
- * `kb_chat_preview_only`) is included so the published site can gate the
719
- * visitor AI chat widget; the full admin-only studio_config / blogs_config
720
- * shape remains in `@levo/types` `IFeatureFlags` and is not part of the SDK
721
- * contract.
716
+ * Only fields renderer/SDK consumers need at runtime belong here.
717
+ *
718
+ * The visitor AI chat widget is no longer gated by any `studio_config` flag
719
+ * it relies solely on `GET /v1/intelligence/site-agent/get-active` resolving an
720
+ * agent for the request host/surface. The old `kb_chat` / `kb_chat_preview_only`
721
+ * / `kb_chat_variant` flags have been dropped from the SDK contract.
722
722
  */
723
723
  export declare interface IFeatureFlags {
724
724
  /** Controls the "Powered by Levo" badge on rendered workspace sites. */
725
725
  branding?: boolean;
726
- /**
727
- * Only the subset of studio_config the public site renderer needs at
728
- * runtime. The full studio_config shape stays in `@levo/types`.
729
- */
730
- studio_config?: {
731
- /** Visitor-facing AI chat widget on the published site. Default off. */
732
- kb_chat?: boolean;
733
- /**
734
- * When true (default) the KB chat only mounts on preview deployments.
735
- * Flip to false per-workspace to release the widget to production.
736
- */
737
- kb_chat_preview_only?: boolean;
738
- /**
739
- * Launcher shape for the visitor AI chat. `"bar"` (default) renders the
740
- * centered morphing pill at the bottom of the viewport; `"fab"` renders
741
- * the bottom-right floating action button + popover panel.
742
- */
743
- kb_chat_variant?: "bar" | "fab";
744
- };
745
726
  }
746
727
 
747
728
  /**
@@ -817,6 +798,7 @@ export declare interface IForum {
817
798
  listing_page_url?: string;
818
799
  created_at: string;
819
800
  studio_config?: IModuleStudioConfig[];
801
+ icon?: IIcon | null;
820
802
  }
821
803
 
822
804
  export declare interface IForumCategory {
@@ -1037,6 +1019,8 @@ export declare interface ILemaCollection {
1037
1019
  updated_at?: Date | string;
1038
1020
  /** Whether the collection allows draft items. */
1039
1021
  allow_draft?: boolean;
1022
+ /** Whether a user can submit more than one entry. When false, each user is limited to a single submission. */
1023
+ allow_multiple?: boolean;
1040
1024
  /** Structural kind — read-only, derived server-side. Use getCollectionKind() if absent. */
1041
1025
  kind?: ICollectionKind;
1042
1026
  /** Collection-level public view access level. null = private/disabled. */
@@ -1876,6 +1860,10 @@ export declare interface IWorkspace {
1876
1860
  twitter?: string;
1877
1861
  linkedin?: string;
1878
1862
  instagram?: string;
1863
+ youtube?: string;
1864
+ tiktok?: string;
1865
+ pinterest?: string;
1866
+ threads?: string;
1879
1867
  };
1880
1868
  /** Whether user has an existing website or is creating new */
1881
1869
  website_status?: "existing" | "new";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
3
  "description": "Levo common utilities",
4
- "version": "0.1.108",
4
+ "version": "0.1.109",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "lodash-es": "4.18.1",