@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.
@@ -10126,6 +10126,37 @@ var LoginPageSchema = z11.object({
10126
10126
  }).strict().optional(),
10127
10127
  customCss: z11.string().optional()
10128
10128
  }).strict();
10129
+ var LandingPageDefaultConfigSchema = z11.object({
10130
+ mode: z11.literal("default")
10131
+ }).strict();
10132
+ var LandingPageMarkdownConfigSchema = z11.object({
10133
+ mode: z11.literal("markdown"),
10134
+ content: z11.string()
10135
+ }).strict();
10136
+ var LandingPageHtmlConfigSchema = z11.object({
10137
+ mode: z11.literal("html"),
10138
+ content: z11.string()
10139
+ }).strict();
10140
+ var LandingPageIframeConfigSchema = z11.object({
10141
+ mode: z11.literal("iframe"),
10142
+ url: z11.string().refine((value) => {
10143
+ if (/^\/(?!\/)/.test(value)) {
10144
+ return !value.includes("\\");
10145
+ }
10146
+ try {
10147
+ const url = new URL(value);
10148
+ return (url.protocol === "http:" || url.protocol === "https:") && !url.username && !url.password;
10149
+ } catch {
10150
+ return false;
10151
+ }
10152
+ }, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
10153
+ }).strict();
10154
+ var TenantLandingPageConfigSchema = z11.discriminatedUnion("mode", [
10155
+ LandingPageDefaultConfigSchema,
10156
+ LandingPageMarkdownConfigSchema,
10157
+ LandingPageHtmlConfigSchema,
10158
+ LandingPageIframeConfigSchema
10159
+ ]);
10129
10160
  var TenantApplicationConfigSchema = z11.object({
10130
10161
  theme: z11.object({
10131
10162
  id: z11.string().optional(),
@@ -10236,10 +10267,12 @@ var TenantApplicationConfigSchema = z11.object({
10236
10267
  defaultPageKey: ContractIdentifierSchema.optional()
10237
10268
  }).strict().optional(),
10238
10269
  agent: z11.object({
10270
+ logo: AssetVariantsSchema.optional(),
10239
10271
  brandDisplayMode: z11.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
10240
10272
  density: z11.enum(["compact", "default", "comfortable"]).optional()
10241
10273
  }).strict().optional()
10242
10274
  }).strict(),
10275
+ landingPage: TenantLandingPageConfigSchema.optional(),
10243
10276
  auth: z11.object({
10244
10277
  enabled: z11.array(ContractIdentifierSchema).default([]),
10245
10278
  oidc: z11.object({ buttonText: z11.string().optional(), autoSignin: z11.boolean().optional() }).strict().optional(),
@@ -11160,6 +11193,7 @@ export {
11160
11193
  SourceRecordRefSchema,
11161
11194
  StorageLocatorSchema,
11162
11195
  TenantApplicationConfigSchema,
11196
+ TenantLandingPageConfigSchema,
11163
11197
  TenantProductConfigSchema,
11164
11198
  TenantRuntimeConfigSchema,
11165
11199
  TenantWorkbenchConfigSchema,