@xpert-ai/chatkit-types 0.0.5 → 0.0.6

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 CHANGED
@@ -658,22 +658,22 @@ export declare type FileUploadStrategy = {
658
658
  };
659
659
 
660
660
  /**
661
- * Playground 复制的配置中过滤出允许的配置项
661
+ * Filter out only the allowed options from a Playground config
662
662
  *
663
- * @param options - playground 复制的完整配置
664
- * @returns 只包含白名单配置项的对象
663
+ * @param options - Full config copied from the playground
664
+ * @returns An object containing only whitelisted options
665
665
  *
666
666
  * @example
667
667
  * ```ts
668
- * // playground 复制的配置
668
+ * // Config copied from the playground
669
669
  * const playgroundConfig = {
670
670
  * theme: { colorScheme: 'light', radius: 'pill' },
671
- * threadItemActions: { feedback: true }, // 会被过滤掉
671
+ * threadItemActions: { feedback: true }, // will be filtered out
672
672
  * startScreen: { greeting: 'Hello!' },
673
673
  * };
674
674
  *
675
675
  * const filtered = filterPlaygroundOptions(playgroundConfig);
676
- * // 结果: { theme: { colorScheme: 'light', radius: 'pill' }, startScreen: { greeting: 'Hello!' } }
676
+ * // Result: { theme: { colorScheme: 'light', radius: 'pill' }, startScreen: { greeting: 'Hello!' } }
677
677
  * ```
678
678
  */
679
679
  export declare function filterPlaygroundOptions<T extends Partial<ChatKitOptions>>(options: T): PlaygroundAllowedOptions;
@@ -850,28 +850,28 @@ export declare type Markdown = {
850
850
  };
851
851
 
852
852
  /**
853
- * 合并 Playground 配置与本地配置
854
- * Playground 配置会覆盖本地配置中的对应项(只限白名单内的配置)
853
+ * Merge Playground config with local config
854
+ * Playground config overrides matching items in local config (whitelist only)
855
855
  *
856
- * @param localOptions - 本地项目中的基础配置(可包含 onClientTool, header 等)
857
- * @param playgroundOptions - playground 复制的配置
858
- * @returns 合并后的配置
856
+ * @param localOptions - Base config in the local project (can include onClientTool, header, etc.)
857
+ * @param playgroundOptions - Config copied from the playground
858
+ * @returns Merged config
859
859
  *
860
860
  * @example
861
861
  * ```ts
862
862
  * const localConfig = {
863
863
  * api: { getClientSecret: async () => '...' },
864
- * onClientTool: async () => { ... }, // 保留
865
- * header: { enabled: true }, // 保留
864
+ * onClientTool: async () => { ... }, // kept
865
+ * header: { enabled: true }, // kept
866
866
  * };
867
867
  *
868
868
  * const playgroundConfig = {
869
869
  * theme: { colorScheme: 'dark' },
870
- * threadItemActions: { feedback: true }, // 被过滤
870
+ * threadItemActions: { feedback: true }, // filtered out
871
871
  * };
872
872
  *
873
873
  * const merged = mergeWithPlaygroundOptions(localConfig, playgroundConfig);
874
- * // 结果: { api, onClientTool, header, theme }
874
+ * // Result: { api, onClientTool, header, theme }
875
875
  * ```
876
876
  */
877
877
  export declare function mergeWithPlaygroundOptions<T extends Partial<ChatKitOptions>>(localOptions: T, playgroundOptions: Partial<ChatKitOptions>): T & PlaygroundAllowedOptions;
@@ -903,11 +903,11 @@ export declare type ModelOption = {
903
903
  };
904
904
 
905
905
  /**
906
- * Playground 配置白名单 - 只允许这些配置项从 playground 复制过来生效
907
- * 过滤掉: locale, initialThread, header, history, threadItemActions, disclaimer, entities, widgets, onClientTool
906
+ * Playground configuration whitelist - only allow these options to take effect when copied from the playground
907
+ * Filters out: locale, initialThread, header, history, threadItemActions, disclaimer, entities, widgets, onClientTool
908
908
  */
909
909
  /**
910
- * 允许从 Playground 配置的选项类型
910
+ * Options allowed to be configured from Playground
911
911
  */
912
912
  export declare type PlaygroundAllowedOptions = {
913
913
  api?: ChatKitOptions['api'];