@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/esm/index.mjs CHANGED
@@ -10196,6 +10196,37 @@ var LoginPageSchema = z11.object({
10196
10196
  }).strict().optional(),
10197
10197
  customCss: z11.string().optional()
10198
10198
  }).strict();
10199
+ var LandingPageDefaultConfigSchema = z11.object({
10200
+ mode: z11.literal("default")
10201
+ }).strict();
10202
+ var LandingPageMarkdownConfigSchema = z11.object({
10203
+ mode: z11.literal("markdown"),
10204
+ content: z11.string()
10205
+ }).strict();
10206
+ var LandingPageHtmlConfigSchema = z11.object({
10207
+ mode: z11.literal("html"),
10208
+ content: z11.string()
10209
+ }).strict();
10210
+ var LandingPageIframeConfigSchema = z11.object({
10211
+ mode: z11.literal("iframe"),
10212
+ url: z11.string().refine((value) => {
10213
+ if (/^\/(?!\/)/.test(value)) {
10214
+ return !value.includes("\\");
10215
+ }
10216
+ try {
10217
+ const url = new URL(value);
10218
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
10219
+ } catch {
10220
+ return false;
10221
+ }
10222
+ }, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
10223
+ }).strict();
10224
+ var TenantLandingPageConfigSchema = z11.discriminatedUnion("mode", [
10225
+ LandingPageDefaultConfigSchema,
10226
+ LandingPageMarkdownConfigSchema,
10227
+ LandingPageHtmlConfigSchema,
10228
+ LandingPageIframeConfigSchema
10229
+ ]);
10199
10230
  var TenantApplicationConfigSchema = z11.object({
10200
10231
  theme: z11.object({
10201
10232
  id: z11.string().optional(),
@@ -10306,10 +10337,12 @@ var TenantApplicationConfigSchema = z11.object({
10306
10337
  defaultPageKey: ContractIdentifierSchema.optional()
10307
10338
  }).strict().optional(),
10308
10339
  agent: z11.object({
10340
+ logo: AssetVariantsSchema.optional(),
10309
10341
  brandDisplayMode: z11.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
10310
10342
  density: z11.enum(["compact", "default", "comfortable"]).optional()
10311
10343
  }).strict().optional()
10312
10344
  }).strict(),
10345
+ landingPage: TenantLandingPageConfigSchema.optional(),
10313
10346
  auth: z11.object({
10314
10347
  enabled: z11.array(ContractIdentifierSchema).default([]),
10315
10348
  oidc: z11.object({ buttonText: z11.string().optional(), autoSignin: z11.boolean().optional() }).strict().optional(),
@@ -12391,6 +12424,7 @@ export {
12391
12424
  TenantDataBindingsSchema,
12392
12425
  TenantDesignTokensConfigSchema,
12393
12426
  TenantHeadbarModuleItemSchema,
12427
+ TenantLandingPageConfigSchema,
12394
12428
  TenantProductConfigSchema,
12395
12429
  TenantRuntimeConfigSchema,
12396
12430
  TenantWorkbenchConfigSchema,