@embeddable.com/sdk-core 3.9.8 → 3.9.10
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/lib/index.esm.js +11 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +11 -5
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/validate.ts +14 -8
package/package.json
CHANGED
package/src/validate.ts
CHANGED
|
@@ -247,15 +247,21 @@ const viewModelSchema = z.object({
|
|
|
247
247
|
});
|
|
248
248
|
|
|
249
249
|
const securityContextSchema = z.array(
|
|
250
|
-
z
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
z
|
|
251
|
+
.object({
|
|
252
|
+
name: z.string(),
|
|
253
|
+
securityContext: z.object({}), // can be any object
|
|
254
|
+
environment: z.string().optional(),
|
|
255
|
+
})
|
|
256
|
+
.strict(),
|
|
254
257
|
);
|
|
255
258
|
|
|
256
259
|
const clientContextSchema = z.array(
|
|
257
|
-
z
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
z
|
|
261
|
+
.object({
|
|
262
|
+
name: z.string(),
|
|
263
|
+
clientContext: z.object({}), // can be any object
|
|
264
|
+
canvas: z.object({}).optional(),
|
|
265
|
+
})
|
|
266
|
+
.strict(),
|
|
261
267
|
);
|