@adobe/spacecat-shared-utils 1.98.1 → 1.100.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 +12 -0
- package/package.json +1 -1
- package/src/schemas.js +2 -0
- package/src/strategy-schema.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-utils-v1.100.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.99.0...@adobe/spacecat-shared-utils-v1.100.0) (2026-03-05)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add optional aws region to cdn bucket config ([#1404](https://github.com/adobe/spacecat-shared/issues/1404)) ([76a7051](https://github.com/adobe/spacecat-shared/commit/76a7051f465d0d43cb03875fcc77b3ff174c4317))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-utils-v1.99.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.98.1...@adobe/spacecat-shared-utils-v1.99.0) (2026-03-02)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* extend strategy schema to store prompts under strategy ([#1386](https://github.com/adobe/spacecat-shared/issues/1386)) ([4e29cc5](https://github.com/adobe/spacecat-shared/commit/4e29cc5a24141e224b366c50948b8dce00d49afd))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-utils-v1.98.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.98.0...@adobe/spacecat-shared-utils-v1.98.1) (2026-03-02)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/package.json
CHANGED
package/src/schemas.js
CHANGED
|
@@ -37,6 +37,7 @@ import * as z from 'zod';
|
|
|
37
37
|
const nonEmptyString = z.string().min(1);
|
|
38
38
|
|
|
39
39
|
const region = z.string().length(2).regex(/^[a-z][a-z]$/i);
|
|
40
|
+
const awsRegion = z.string().regex(/^[a-z]{2}(?:-[a-z]+)+-\d+$/i);
|
|
40
41
|
|
|
41
42
|
const auditFields = {
|
|
42
43
|
updatedBy: z.string().optional(),
|
|
@@ -136,6 +137,7 @@ export const llmoConfig = z.object({
|
|
|
136
137
|
bucketName: z.string().optional(),
|
|
137
138
|
allowedPaths: z.array(z.string()).optional(),
|
|
138
139
|
cdnProvider: z.string(),
|
|
140
|
+
region: awsRegion.optional(),
|
|
139
141
|
}).optional(),
|
|
140
142
|
ignored: z.object({
|
|
141
143
|
prompts: z.record(z.uuid(), ignoredPrompt).optional(),
|
package/src/strategy-schema.js
CHANGED
|
@@ -63,6 +63,12 @@ const strategyOpportunity = z.object({
|
|
|
63
63
|
completedAt: z.string().optional(), // ISO 8601 date string
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
const strategyPromptSelection = z.object({
|
|
67
|
+
id: z.uuid().optional(),
|
|
68
|
+
prompt: nonEmptyString,
|
|
69
|
+
regions: z.array(z.string()),
|
|
70
|
+
});
|
|
71
|
+
|
|
66
72
|
/**
|
|
67
73
|
* Strategy containing references to opportunities
|
|
68
74
|
*/
|
|
@@ -73,7 +79,9 @@ const strategy = z.object({
|
|
|
73
79
|
url: z.string(),
|
|
74
80
|
description: z.string(),
|
|
75
81
|
topic: z.string(),
|
|
76
|
-
|
|
82
|
+
topicId: z.uuid().optional(),
|
|
83
|
+
selectedPrompts: z.array(strategyPromptSelection).optional(),
|
|
84
|
+
platform: nonEmptyString.optional(),
|
|
77
85
|
opportunities: z.array(strategyOpportunity),
|
|
78
86
|
createdAt: z.string(), // ISO 8601 date string
|
|
79
87
|
createdBy: z.string().optional(), // Email of strategy creator/owner
|