heartraite 1.0.199 → 1.0.200
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.
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import { LikeType } from "../enum";
|
|
2
2
|
import { UserProfile } from "./user.types";
|
|
3
|
+
export type CategoryInsight = {
|
|
4
|
+
/** Matches a `CompatibilityCategory.categoryId` (values | personality | communication | lifestyle | love). */
|
|
5
|
+
categoryId: string;
|
|
6
|
+
/** Match-specific, LLM-generated insight for this category, in the generation locale. */
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
3
9
|
export type CompatibilitySummary = {
|
|
4
10
|
summary: string;
|
|
5
11
|
highlights: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Per-category, match-specific insight text — one entry per compatibility
|
|
14
|
+
* category, grounded in that category's score. Optional so records
|
|
15
|
+
* generated before this field still parse; consumers fall back to the
|
|
16
|
+
* static per-category description when an entry is missing.
|
|
17
|
+
*/
|
|
18
|
+
categoryInsights?: CategoryInsight[];
|
|
19
|
+
/**
|
|
20
|
+
* Schema version of the generated summary. Absent on records generated
|
|
21
|
+
* before `categoryInsights` existed; lets callers tell text-less legacy
|
|
22
|
+
* summaries apart from freshly generated ones.
|
|
23
|
+
*/
|
|
24
|
+
version?: number;
|
|
6
25
|
};
|
|
7
26
|
export type MatchAttributes = {
|
|
8
27
|
distance?: number;
|
package/package.json
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { LikeType } from "../enum";
|
|
2
2
|
import { UserProfile } from "./user.types";
|
|
3
3
|
|
|
4
|
+
export type CategoryInsight = {
|
|
5
|
+
/** Matches a `CompatibilityCategory.categoryId` (values | personality | communication | lifestyle | love). */
|
|
6
|
+
categoryId: string;
|
|
7
|
+
/** Match-specific, LLM-generated insight for this category, in the generation locale. */
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
4
11
|
export type CompatibilitySummary = {
|
|
5
12
|
summary: string;
|
|
6
13
|
highlights: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Per-category, match-specific insight text — one entry per compatibility
|
|
16
|
+
* category, grounded in that category's score. Optional so records
|
|
17
|
+
* generated before this field still parse; consumers fall back to the
|
|
18
|
+
* static per-category description when an entry is missing.
|
|
19
|
+
*/
|
|
20
|
+
categoryInsights?: CategoryInsight[];
|
|
21
|
+
/**
|
|
22
|
+
* Schema version of the generated summary. Absent on records generated
|
|
23
|
+
* before `categoryInsights` existed; lets callers tell text-less legacy
|
|
24
|
+
* summaries apart from freshly generated ones.
|
|
25
|
+
*/
|
|
26
|
+
version?: number;
|
|
7
27
|
};
|
|
8
28
|
|
|
9
29
|
export type MatchAttributes = {
|