@squidcloud/client 1.0.196 → 1.0.197
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.
|
@@ -18,6 +18,10 @@ export interface AiChatbotChatOptions {
|
|
|
18
18
|
responseFormat?: OpenAiResponseFormat;
|
|
19
19
|
/** Whether to response in a "smooth typing" way, beneficial when the chat result is displayed in a UI. Default to true */
|
|
20
20
|
smoothTyping?: boolean;
|
|
21
|
+
/** The temperature to use when sampling from the model. Default to 0.5 */
|
|
22
|
+
temperature?: number;
|
|
23
|
+
/** The model to use for this chat. If not provided, the profile model will be used */
|
|
24
|
+
overrideModel?: AiModelName;
|
|
21
25
|
}
|
|
22
26
|
export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
|
|
23
27
|
export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
|
|
@@ -39,6 +39,10 @@ export type TopLevelPropertySchema = PropertySchema & {
|
|
|
39
39
|
* would be 'integer'.
|
|
40
40
|
*/
|
|
41
41
|
dataType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* This indicates that although the field exists on the db, it should be ignored by squid.
|
|
44
|
+
*/
|
|
45
|
+
hidden?: boolean;
|
|
42
46
|
};
|
|
43
47
|
export type CollectionSchema = Omit<ConvertDeep<JSONSchema>, 'properties'> & {
|
|
44
48
|
properties?: Record<string, TopLevelPropertySchema>;
|
|
@@ -10,8 +10,20 @@ export declare function isNil(obj: unknown): obj is null | undefined;
|
|
|
10
10
|
export declare function isEqual(a: unknown, b: unknown): boolean;
|
|
11
11
|
export declare function isEmpty(a: unknown): boolean;
|
|
12
12
|
export declare function omit<T extends object, K extends PropertyKey[]>(object: T | null | undefined, ...fieldsToRemove: K): Pick<T, Exclude<keyof T, K[number]>>;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
export type CloneCustomizer = (value: unknown) => unknown | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a deep copy of the specified object, including all nested objects and specifically handling Date, Map, and
|
|
16
|
+
* Set fields.
|
|
17
|
+
*
|
|
18
|
+
* The customizer function can modify the cloning process for the object and its fields. If the customizer
|
|
19
|
+
* returns 'undefined' for any input, the function falls back to the standard cloning logic.
|
|
20
|
+
*
|
|
21
|
+
* The cloning process is recursive, ensuring deep cloning of all objects.
|
|
22
|
+
*
|
|
23
|
+
* Note: This function does not support cloning objects with circular dependencies and will throw a system stack
|
|
24
|
+
* overflow error if encountered.
|
|
25
|
+
*/
|
|
26
|
+
export declare function cloneDeep<R = unknown>(value: R, customizer?: CloneCustomizer): R;
|
|
15
27
|
/** Creates a shallow clone of the object. */
|
|
16
28
|
export declare function cloneShallow<T>(value: T): T;
|
|
17
29
|
/** Compares 2 values. 'null' and 'undefined' values are considered equal and are less than any other values. */
|
|
@@ -25,3 +37,5 @@ export declare function groupBy<T, K extends PropertyKey>(array: T[], getKey: (i
|
|
|
25
37
|
* The selected fields are assigned by reference (there is no cloning).
|
|
26
38
|
*/
|
|
27
39
|
export declare function pick<T extends object, K extends keyof T>(obj: T, keys: ReadonlyArray<K>): Pick<T, K>;
|
|
40
|
+
/** Inverts the record: swaps keys and values. */
|
|
41
|
+
export declare function invert<K extends string | number, V extends string | number>(record: Record<K, V>): Record<V, K>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.197",
|
|
4
4
|
"description": "A typescript implementation of the Squid client",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/typescript-client/src/index.d.ts",
|
|
@@ -44,9 +44,7 @@
|
|
|
44
44
|
"deep-diff": "^1.0.2",
|
|
45
45
|
"graphql": "^16.6.0",
|
|
46
46
|
"json-schema-typed": "^8.0.1",
|
|
47
|
-
"lodash": "^4.17.21",
|
|
48
47
|
"otrie": "1.1.2",
|
|
49
|
-
"rfdc": "^1.3.1",
|
|
50
48
|
"utf-8-validate": "^6.0.3",
|
|
51
49
|
"ws": "^8.13.0"
|
|
52
50
|
},
|
|
@@ -55,7 +53,6 @@
|
|
|
55
53
|
},
|
|
56
54
|
"devDependencies": {
|
|
57
55
|
"@types/deep-diff": "^1.0.2",
|
|
58
|
-
"@types/lodash": "^4.14.186",
|
|
59
56
|
"@types/uuid": "^9.0.0",
|
|
60
57
|
"@webpack-cli/generators": "^3.0.0",
|
|
61
58
|
"copy-webpack-plugin": "^11.0.0",
|