@adobe/spacecat-shared-utils 1.68.0 → 1.69.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/schemas.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.69.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.68.0...@adobe/spacecat-shared-utils-v1.69.0) (2025-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update llmo schemas to store origin and status ([#1074](https://github.com/adobe/spacecat-shared/issues/1074)) ([a0a983c](https://github.com/adobe/spacecat-shared/commit/a0a983cc9f39c508498c0909336483c589e56068))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-utils-v1.68.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.67.0...@adobe/spacecat-shared-utils-v1.68.0) (2025-10-29)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/schemas.js
CHANGED
|
@@ -43,6 +43,7 @@ const prompt = z.object({
|
|
|
43
43
|
regions: z.array(region),
|
|
44
44
|
origin: z.union([z.literal('human'), z.literal('ai'), z.string()]),
|
|
45
45
|
source: z.union([z.literal('config'), z.literal('api'), z.string()]),
|
|
46
|
+
status: z.union([z.literal('completed'), z.literal('processing'), z.string()]).optional(),
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
const entity = z.object({
|
|
@@ -77,12 +78,14 @@ const topic = z.object({
|
|
|
77
78
|
name: nonEmptyString,
|
|
78
79
|
prompts: z.array(prompt).min(1),
|
|
79
80
|
category: z.union([z.uuid(), nonEmptyString]),
|
|
81
|
+
origin: z.union([z.literal('human'), z.literal('ai'), z.string()]).optional(),
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
const deletedPrompt = prompt.extend({
|
|
83
85
|
topic: nonEmptyString,
|
|
84
86
|
category: nonEmptyString,
|
|
85
87
|
regions: z.array(region).min(1),
|
|
88
|
+
origin: z.union([z.literal('human'), z.literal('ai'), z.string()]).optional(),
|
|
86
89
|
});
|
|
87
90
|
|
|
88
91
|
export const llmoConfig = z.object({
|