@personize/sdk 0.7.1 → 0.7.2
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/types.d.ts +29 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -981,6 +981,10 @@ export interface SmartDigestOptions {
|
|
|
981
981
|
deviceId?: string;
|
|
982
982
|
/** Content ID for entity scoping. */
|
|
983
983
|
contentId?: string;
|
|
984
|
+
/** Custom key name for custom entity types (e.g. 'linkedin_url', 'studentNumber'). */
|
|
985
|
+
customKeyName?: string;
|
|
986
|
+
/** Custom key value. Used with customKeyName to scope to a custom-keyed record. */
|
|
987
|
+
customKeyValue?: string;
|
|
984
988
|
}
|
|
985
989
|
export interface SmartDigestResponse {
|
|
986
990
|
success: boolean;
|
|
@@ -1058,6 +1062,27 @@ export interface MemoryItem {
|
|
|
1058
1062
|
score?: number;
|
|
1059
1063
|
metadata?: Record<string, PropertyValue>;
|
|
1060
1064
|
}
|
|
1065
|
+
/** CRM identifier keys for a record, returned in search responses. */
|
|
1066
|
+
export interface RecordCrmKeys {
|
|
1067
|
+
type?: string;
|
|
1068
|
+
email?: string;
|
|
1069
|
+
websiteUrl?: string;
|
|
1070
|
+
phoneNumber?: string;
|
|
1071
|
+
postalCode?: string;
|
|
1072
|
+
deviceId?: string;
|
|
1073
|
+
contentId?: string;
|
|
1074
|
+
customKeyName?: string;
|
|
1075
|
+
customKeyValue?: string;
|
|
1076
|
+
}
|
|
1077
|
+
/** AI extraction metadata aggregated per record, returned in search responses. */
|
|
1078
|
+
export interface RecordIndexMeta {
|
|
1079
|
+
entities?: string[];
|
|
1080
|
+
keywords?: string[];
|
|
1081
|
+
persons?: string[];
|
|
1082
|
+
topics?: string[];
|
|
1083
|
+
locations?: string[];
|
|
1084
|
+
sources?: string[];
|
|
1085
|
+
}
|
|
1061
1086
|
export interface SearchResultItem {
|
|
1062
1087
|
recordId?: string;
|
|
1063
1088
|
mainProperties?: Record<string, string>;
|
|
@@ -1099,6 +1124,10 @@ export interface SearchResponse extends Array<SearchResultItem> {
|
|
|
1099
1124
|
memories?: Record<string, MemoryItem[]>;
|
|
1100
1125
|
/** Compatibility flattened result list derived client-side when possible. */
|
|
1101
1126
|
results?: SearchResultItem[];
|
|
1127
|
+
/** CRM keys per record (email, phone, website, etc.). */
|
|
1128
|
+
crmKeys?: Record<string, RecordCrmKeys>;
|
|
1129
|
+
/** AI extraction metadata per record (entities, keywords, persons, etc.). */
|
|
1130
|
+
indexMeta?: Record<string, RecordIndexMeta>;
|
|
1102
1131
|
}
|
|
1103
1132
|
/** @deprecated Use SearchResponse instead. */
|
|
1104
1133
|
export type ExportResponse = SearchResponse;
|