@inf-monkeys-tech/monkeys 1.0.6 → 1.0.8
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/contracts/tenant.d.ts +61 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +47 -1
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +34 -0
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +34 -0
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +33 -0
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +34 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +80 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +80 -0
- package/lib/schemas/index.d.ts +33 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +3 -2
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -11273,6 +11273,37 @@ var LoginPageSchema = z9.object({
|
|
|
11273
11273
|
}).strict().optional(),
|
|
11274
11274
|
customCss: z9.string().optional()
|
|
11275
11275
|
}).strict();
|
|
11276
|
+
var LandingPageDefaultConfigSchema = z9.object({
|
|
11277
|
+
mode: z9.literal("default")
|
|
11278
|
+
}).strict();
|
|
11279
|
+
var LandingPageMarkdownConfigSchema = z9.object({
|
|
11280
|
+
mode: z9.literal("markdown"),
|
|
11281
|
+
content: z9.string()
|
|
11282
|
+
}).strict();
|
|
11283
|
+
var LandingPageHtmlConfigSchema = z9.object({
|
|
11284
|
+
mode: z9.literal("html"),
|
|
11285
|
+
content: z9.string()
|
|
11286
|
+
}).strict();
|
|
11287
|
+
var LandingPageIframeConfigSchema = z9.object({
|
|
11288
|
+
mode: z9.literal("iframe"),
|
|
11289
|
+
url: z9.string().refine((value) => {
|
|
11290
|
+
if (/^\/(?!\/)/.test(value)) {
|
|
11291
|
+
return !value.includes("\\");
|
|
11292
|
+
}
|
|
11293
|
+
try {
|
|
11294
|
+
const url = new URL(value);
|
|
11295
|
+
return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
|
|
11296
|
+
} catch {
|
|
11297
|
+
return false;
|
|
11298
|
+
}
|
|
11299
|
+
}, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
|
|
11300
|
+
}).strict();
|
|
11301
|
+
var TenantLandingPageConfigSchema = z9.discriminatedUnion("mode", [
|
|
11302
|
+
LandingPageDefaultConfigSchema,
|
|
11303
|
+
LandingPageMarkdownConfigSchema,
|
|
11304
|
+
LandingPageHtmlConfigSchema,
|
|
11305
|
+
LandingPageIframeConfigSchema
|
|
11306
|
+
]);
|
|
11276
11307
|
var TenantApplicationConfigSchema = z9.object({
|
|
11277
11308
|
theme: z9.object({
|
|
11278
11309
|
id: z9.string().optional(),
|
|
@@ -11383,10 +11414,12 @@ var TenantApplicationConfigSchema = z9.object({
|
|
|
11383
11414
|
defaultPageKey: ContractIdentifierSchema.optional()
|
|
11384
11415
|
}).strict().optional(),
|
|
11385
11416
|
agent: z9.object({
|
|
11417
|
+
logo: AssetVariantsSchema.optional(),
|
|
11386
11418
|
brandDisplayMode: z9.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
11387
11419
|
density: z9.enum(["compact", "default", "comfortable"]).optional()
|
|
11388
11420
|
}).strict().optional()
|
|
11389
11421
|
}).strict(),
|
|
11422
|
+
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
11390
11423
|
auth: z9.object({
|
|
11391
11424
|
enabled: z9.array(ContractIdentifierSchema).default([]),
|
|
11392
11425
|
oidc: z9.object({ buttonText: z9.string().optional(), autoSignin: z9.boolean().optional() }).strict().optional(),
|