@levo-so/core 0.1.108 → 0.1.111
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.ts +16 -31
- 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" | "
|
|
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.
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
*
|
|
720
|
-
*
|
|
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. */
|
|
@@ -1170,9 +1154,6 @@ export declare namespace ILevoAudience {
|
|
|
1170
1154
|
resource: string;
|
|
1171
1155
|
identifier: string;
|
|
1172
1156
|
};
|
|
1173
|
-
export interface BlockProperties {
|
|
1174
|
-
id: string;
|
|
1175
|
-
}
|
|
1176
1157
|
export interface ActivityProperties {
|
|
1177
1158
|
seconds_idle?: number;
|
|
1178
1159
|
seconds_active?: number;
|
|
@@ -1180,7 +1161,7 @@ export declare namespace ILevoAudience {
|
|
|
1180
1161
|
export interface ScrollProperties {
|
|
1181
1162
|
percent: number;
|
|
1182
1163
|
}
|
|
1183
|
-
export type Properties = Partial<BaseProperties &
|
|
1164
|
+
export type Properties = Partial<BaseProperties & ActivityProperties & ScrollProperties> & Partial<Omit<BaseInput, "workspace_id" | "tab_count" | "tab_id">> & Record<string, any>;
|
|
1184
1165
|
export type EventProperties = {
|
|
1185
1166
|
properties: Properties;
|
|
1186
1167
|
traits: Traits;
|
|
@@ -1876,6 +1857,10 @@ export declare interface IWorkspace {
|
|
|
1876
1857
|
twitter?: string;
|
|
1877
1858
|
linkedin?: string;
|
|
1878
1859
|
instagram?: string;
|
|
1860
|
+
youtube?: string;
|
|
1861
|
+
tiktok?: string;
|
|
1862
|
+
pinterest?: string;
|
|
1863
|
+
threads?: string;
|
|
1879
1864
|
};
|
|
1880
1865
|
/** Whether user has an existing website or is creating new */
|
|
1881
1866
|
website_status?: "existing" | "new";
|