@inf-monkeys-tech/monkeys 1.0.34 → 1.0.36
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 +337 -4
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +125 -2
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +112 -1
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +112 -1
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +99 -1
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +107 -1
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +194 -2
- package/lib/json-schema/tenant-runtime-config.schema.json +194 -2
- package/lib/schemas/index.d.ts +91 -3
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +11 -2
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/current-user-menu-profile.v1.json +22 -0
- package/test/fixtures/tenant-product-config.public.json +10 -0
|
@@ -52,6 +52,165 @@ export declare const TenantDataBindingsSchema: z.ZodRecord<z.ZodString, z.ZodDis
|
|
|
52
52
|
projectionRef: z.ZodString;
|
|
53
53
|
domainRef: z.ZodOptional<z.ZodString>;
|
|
54
54
|
}, z.core.$strict>], "kind">>;
|
|
55
|
+
/** Browser-safe identity of one governed Ontology View used by Trend Radar. */
|
|
56
|
+
export declare const TenantTrendRadarSourceSchema: z.ZodObject<{
|
|
57
|
+
ontologyId: z.ZodString;
|
|
58
|
+
viewId: z.ZodString;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
/** Page-group source registry; roles are optional to support staged deployment. */
|
|
61
|
+
export declare const TenantTrendRadarSourcesSchema: z.ZodObject<{
|
|
62
|
+
hotwords: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
ontologyId: z.ZodString;
|
|
64
|
+
viewId: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
brands: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
ontologyId: z.ZodString;
|
|
68
|
+
viewId: z.ZodString;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
export declare const LEGACY_CURRENT_USER_MENU_ITEM_IDS: readonly ["dark-mode", "language", "settings", "logout"];
|
|
72
|
+
export declare const CURRENT_USER_MENU_CONTROL_REFS: readonly ["dark-mode", "language"];
|
|
73
|
+
export declare const CURRENT_USER_MENU_ACTION_REFS: readonly ["logout"];
|
|
74
|
+
export declare const CurrentUserMenuDisplayTextSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
75
|
+
export declare const CurrentUserMenuNavigationItemSchema: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
kind: z.ZodLiteral<"navigation">;
|
|
78
|
+
ref: z.ZodString;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
export declare const CurrentUserMenuControlItemSchema: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
kind: z.ZodLiteral<"control">;
|
|
83
|
+
ref: z.ZodEnum<{
|
|
84
|
+
"dark-mode": "dark-mode";
|
|
85
|
+
language: "language";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
export declare const CurrentUserMenuActionItemSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
kind: z.ZodLiteral<"action">;
|
|
91
|
+
ref: z.ZodEnum<{
|
|
92
|
+
logout: "logout";
|
|
93
|
+
}>;
|
|
94
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
default: "default";
|
|
96
|
+
danger: "danger";
|
|
97
|
+
}>>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export declare const CurrentUserMenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
kind: z.ZodLiteral<"navigation">;
|
|
102
|
+
ref: z.ZodString;
|
|
103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
kind: z.ZodLiteral<"control">;
|
|
106
|
+
ref: z.ZodEnum<{
|
|
107
|
+
"dark-mode": "dark-mode";
|
|
108
|
+
language: "language";
|
|
109
|
+
}>;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
kind: z.ZodLiteral<"action">;
|
|
113
|
+
ref: z.ZodEnum<{
|
|
114
|
+
logout: "logout";
|
|
115
|
+
}>;
|
|
116
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
default: "default";
|
|
118
|
+
danger: "danger";
|
|
119
|
+
}>>;
|
|
120
|
+
}, z.core.$strict>], "kind">;
|
|
121
|
+
export declare const CurrentUserMenuSectionSchema: z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
124
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
kind: z.ZodLiteral<"navigation">;
|
|
128
|
+
ref: z.ZodString;
|
|
129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
kind: z.ZodLiteral<"control">;
|
|
132
|
+
ref: z.ZodEnum<{
|
|
133
|
+
"dark-mode": "dark-mode";
|
|
134
|
+
language: "language";
|
|
135
|
+
}>;
|
|
136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
kind: z.ZodLiteral<"action">;
|
|
139
|
+
ref: z.ZodEnum<{
|
|
140
|
+
logout: "logout";
|
|
141
|
+
}>;
|
|
142
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
default: "default";
|
|
144
|
+
danger: "danger";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strict>], "kind">>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
export declare const CurrentUserMenuConfigSchema: z.ZodObject<{
|
|
149
|
+
version: z.ZodLiteral<1>;
|
|
150
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
153
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
kind: z.ZodLiteral<"navigation">;
|
|
157
|
+
ref: z.ZodString;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
kind: z.ZodLiteral<"control">;
|
|
161
|
+
ref: z.ZodEnum<{
|
|
162
|
+
"dark-mode": "dark-mode";
|
|
163
|
+
language: "language";
|
|
164
|
+
}>;
|
|
165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
kind: z.ZodLiteral<"action">;
|
|
168
|
+
ref: z.ZodEnum<{
|
|
169
|
+
logout: "logout";
|
|
170
|
+
}>;
|
|
171
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
default: "default";
|
|
173
|
+
danger: "danger";
|
|
174
|
+
}>>;
|
|
175
|
+
}, z.core.$strict>], "kind">>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
/** Backward-compatible current-user menu composition stored under theme.headbar.profile. */
|
|
179
|
+
export declare const CurrentUserMenuProfileSchema: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodEnum<{
|
|
180
|
+
"dark-mode": "dark-mode";
|
|
181
|
+
language: "language";
|
|
182
|
+
settings: "settings";
|
|
183
|
+
logout: "logout";
|
|
184
|
+
}>>, z.ZodObject<{
|
|
185
|
+
version: z.ZodLiteral<1>;
|
|
186
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
189
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
kind: z.ZodLiteral<"navigation">;
|
|
193
|
+
ref: z.ZodString;
|
|
194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
kind: z.ZodLiteral<"control">;
|
|
197
|
+
ref: z.ZodEnum<{
|
|
198
|
+
"dark-mode": "dark-mode";
|
|
199
|
+
language: "language";
|
|
200
|
+
}>;
|
|
201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
kind: z.ZodLiteral<"action">;
|
|
204
|
+
ref: z.ZodEnum<{
|
|
205
|
+
logout: "logout";
|
|
206
|
+
}>;
|
|
207
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
default: "default";
|
|
209
|
+
danger: "danger";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strict>], "kind">>;
|
|
212
|
+
}, z.core.$strict>>;
|
|
213
|
+
}, z.core.$strict>]>;
|
|
55
214
|
export declare const ThemeHeadbarSchema: z.ZodObject<{
|
|
56
215
|
theme: z.ZodOptional<z.ZodEnum<{
|
|
57
216
|
card: "card";
|
|
@@ -64,7 +223,41 @@ export declare const ThemeHeadbarSchema: z.ZodObject<{
|
|
|
64
223
|
right: "right";
|
|
65
224
|
}>>;
|
|
66
225
|
actions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
67
|
-
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.
|
|
226
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodEnum<{
|
|
227
|
+
"dark-mode": "dark-mode";
|
|
228
|
+
language: "language";
|
|
229
|
+
settings: "settings";
|
|
230
|
+
logout: "logout";
|
|
231
|
+
}>>, z.ZodObject<{
|
|
232
|
+
version: z.ZodLiteral<1>;
|
|
233
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
236
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
kind: z.ZodLiteral<"navigation">;
|
|
240
|
+
ref: z.ZodString;
|
|
241
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
kind: z.ZodLiteral<"control">;
|
|
244
|
+
ref: z.ZodEnum<{
|
|
245
|
+
"dark-mode": "dark-mode";
|
|
246
|
+
language: "language";
|
|
247
|
+
}>;
|
|
248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
kind: z.ZodLiteral<"action">;
|
|
251
|
+
ref: z.ZodEnum<{
|
|
252
|
+
logout: "logout";
|
|
253
|
+
}>;
|
|
254
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
255
|
+
default: "default";
|
|
256
|
+
danger: "danger";
|
|
257
|
+
}>>;
|
|
258
|
+
}, z.core.$strict>], "kind">>;
|
|
259
|
+
}, z.core.$strict>>;
|
|
260
|
+
}, z.core.$strict>]>>;
|
|
68
261
|
showTeamQuota: z.ZodOptional<z.ZodBoolean>;
|
|
69
262
|
}, z.core.$strict>;
|
|
70
263
|
/**
|
|
@@ -629,7 +822,41 @@ export declare const TenantApplicationConfigSchema: z.ZodObject<{
|
|
|
629
822
|
right: "right";
|
|
630
823
|
}>>;
|
|
631
824
|
actions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
632
|
-
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.
|
|
825
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodEnum<{
|
|
826
|
+
"dark-mode": "dark-mode";
|
|
827
|
+
language: "language";
|
|
828
|
+
settings: "settings";
|
|
829
|
+
logout: "logout";
|
|
830
|
+
}>>, z.ZodObject<{
|
|
831
|
+
version: z.ZodLiteral<1>;
|
|
832
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
833
|
+
id: z.ZodString;
|
|
834
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
835
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
837
|
+
id: z.ZodString;
|
|
838
|
+
kind: z.ZodLiteral<"navigation">;
|
|
839
|
+
ref: z.ZodString;
|
|
840
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
841
|
+
id: z.ZodString;
|
|
842
|
+
kind: z.ZodLiteral<"control">;
|
|
843
|
+
ref: z.ZodEnum<{
|
|
844
|
+
"dark-mode": "dark-mode";
|
|
845
|
+
language: "language";
|
|
846
|
+
}>;
|
|
847
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
848
|
+
id: z.ZodString;
|
|
849
|
+
kind: z.ZodLiteral<"action">;
|
|
850
|
+
ref: z.ZodEnum<{
|
|
851
|
+
logout: "logout";
|
|
852
|
+
}>;
|
|
853
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
854
|
+
default: "default";
|
|
855
|
+
danger: "danger";
|
|
856
|
+
}>>;
|
|
857
|
+
}, z.core.$strict>], "kind">>;
|
|
858
|
+
}, z.core.$strict>>;
|
|
859
|
+
}, z.core.$strict>]>>;
|
|
633
860
|
showTeamQuota: z.ZodOptional<z.ZodBoolean>;
|
|
634
861
|
}, z.core.$strict>>;
|
|
635
862
|
kernelLayout: z.ZodOptional<z.ZodObject<{
|
|
@@ -1073,6 +1300,16 @@ export declare const TenantApplicationConfigSchema: z.ZodObject<{
|
|
|
1073
1300
|
tepCookieConfigured: z.ZodBoolean;
|
|
1074
1301
|
}, z.core.$strict>>;
|
|
1075
1302
|
}, z.core.$strict>>;
|
|
1303
|
+
trendRadar: z.ZodOptional<z.ZodObject<{
|
|
1304
|
+
hotwords: z.ZodOptional<z.ZodObject<{
|
|
1305
|
+
ontologyId: z.ZodString;
|
|
1306
|
+
viewId: z.ZodString;
|
|
1307
|
+
}, z.core.$strict>>;
|
|
1308
|
+
brands: z.ZodOptional<z.ZodObject<{
|
|
1309
|
+
ontologyId: z.ZodString;
|
|
1310
|
+
viewId: z.ZodString;
|
|
1311
|
+
}, z.core.$strict>>;
|
|
1312
|
+
}, z.core.$strict>>;
|
|
1076
1313
|
sharing: z.ZodOptional<z.ZodObject<{
|
|
1077
1314
|
silentViewLinks: z.ZodOptional<z.ZodObject<{
|
|
1078
1315
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1378,7 +1615,41 @@ export declare const TenantProductConfigSchema: z.ZodObject<{
|
|
|
1378
1615
|
right: "right";
|
|
1379
1616
|
}>>;
|
|
1380
1617
|
actions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
1381
|
-
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.
|
|
1618
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodEnum<{
|
|
1619
|
+
"dark-mode": "dark-mode";
|
|
1620
|
+
language: "language";
|
|
1621
|
+
settings: "settings";
|
|
1622
|
+
logout: "logout";
|
|
1623
|
+
}>>, z.ZodObject<{
|
|
1624
|
+
version: z.ZodLiteral<1>;
|
|
1625
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1626
|
+
id: z.ZodString;
|
|
1627
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
1628
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
1629
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1630
|
+
id: z.ZodString;
|
|
1631
|
+
kind: z.ZodLiteral<"navigation">;
|
|
1632
|
+
ref: z.ZodString;
|
|
1633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1634
|
+
id: z.ZodString;
|
|
1635
|
+
kind: z.ZodLiteral<"control">;
|
|
1636
|
+
ref: z.ZodEnum<{
|
|
1637
|
+
"dark-mode": "dark-mode";
|
|
1638
|
+
language: "language";
|
|
1639
|
+
}>;
|
|
1640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1641
|
+
id: z.ZodString;
|
|
1642
|
+
kind: z.ZodLiteral<"action">;
|
|
1643
|
+
ref: z.ZodEnum<{
|
|
1644
|
+
logout: "logout";
|
|
1645
|
+
}>;
|
|
1646
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
1647
|
+
default: "default";
|
|
1648
|
+
danger: "danger";
|
|
1649
|
+
}>>;
|
|
1650
|
+
}, z.core.$strict>], "kind">>;
|
|
1651
|
+
}, z.core.$strict>>;
|
|
1652
|
+
}, z.core.$strict>]>>;
|
|
1382
1653
|
showTeamQuota: z.ZodOptional<z.ZodBoolean>;
|
|
1383
1654
|
}, z.core.$strict>>;
|
|
1384
1655
|
kernelLayout: z.ZodOptional<z.ZodObject<{
|
|
@@ -1822,6 +2093,16 @@ export declare const TenantProductConfigSchema: z.ZodObject<{
|
|
|
1822
2093
|
tepCookieConfigured: z.ZodBoolean;
|
|
1823
2094
|
}, z.core.$strict>>;
|
|
1824
2095
|
}, z.core.$strict>>;
|
|
2096
|
+
trendRadar: z.ZodOptional<z.ZodObject<{
|
|
2097
|
+
hotwords: z.ZodOptional<z.ZodObject<{
|
|
2098
|
+
ontologyId: z.ZodString;
|
|
2099
|
+
viewId: z.ZodString;
|
|
2100
|
+
}, z.core.$strict>>;
|
|
2101
|
+
brands: z.ZodOptional<z.ZodObject<{
|
|
2102
|
+
ontologyId: z.ZodString;
|
|
2103
|
+
viewId: z.ZodString;
|
|
2104
|
+
}, z.core.$strict>>;
|
|
2105
|
+
}, z.core.$strict>>;
|
|
1825
2106
|
sharing: z.ZodOptional<z.ZodObject<{
|
|
1826
2107
|
silentViewLinks: z.ZodOptional<z.ZodObject<{
|
|
1827
2108
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2118,7 +2399,41 @@ export declare const TenantRuntimeConfigSchema: z.ZodObject<{
|
|
|
2118
2399
|
right: "right";
|
|
2119
2400
|
}>>;
|
|
2120
2401
|
actions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
2121
|
-
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.
|
|
2402
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodEnum<{
|
|
2403
|
+
"dark-mode": "dark-mode";
|
|
2404
|
+
language: "language";
|
|
2405
|
+
settings: "settings";
|
|
2406
|
+
logout: "logout";
|
|
2407
|
+
}>>, z.ZodObject<{
|
|
2408
|
+
version: z.ZodLiteral<1>;
|
|
2409
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
2410
|
+
id: z.ZodString;
|
|
2411
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
2412
|
+
dividerBefore: z.ZodOptional<z.ZodBoolean>;
|
|
2413
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2414
|
+
id: z.ZodString;
|
|
2415
|
+
kind: z.ZodLiteral<"navigation">;
|
|
2416
|
+
ref: z.ZodString;
|
|
2417
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2418
|
+
id: z.ZodString;
|
|
2419
|
+
kind: z.ZodLiteral<"control">;
|
|
2420
|
+
ref: z.ZodEnum<{
|
|
2421
|
+
"dark-mode": "dark-mode";
|
|
2422
|
+
language: "language";
|
|
2423
|
+
}>;
|
|
2424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2425
|
+
id: z.ZodString;
|
|
2426
|
+
kind: z.ZodLiteral<"action">;
|
|
2427
|
+
ref: z.ZodEnum<{
|
|
2428
|
+
logout: "logout";
|
|
2429
|
+
}>;
|
|
2430
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
2431
|
+
default: "default";
|
|
2432
|
+
danger: "danger";
|
|
2433
|
+
}>>;
|
|
2434
|
+
}, z.core.$strict>], "kind">>;
|
|
2435
|
+
}, z.core.$strict>>;
|
|
2436
|
+
}, z.core.$strict>]>>;
|
|
2122
2437
|
showTeamQuota: z.ZodOptional<z.ZodBoolean>;
|
|
2123
2438
|
}, z.core.$strict>>;
|
|
2124
2439
|
kernelLayout: z.ZodOptional<z.ZodObject<{
|
|
@@ -2562,6 +2877,16 @@ export declare const TenantRuntimeConfigSchema: z.ZodObject<{
|
|
|
2562
2877
|
tepCookieConfigured: z.ZodBoolean;
|
|
2563
2878
|
}, z.core.$strict>>;
|
|
2564
2879
|
}, z.core.$strict>>;
|
|
2880
|
+
trendRadar: z.ZodOptional<z.ZodObject<{
|
|
2881
|
+
hotwords: z.ZodOptional<z.ZodObject<{
|
|
2882
|
+
ontologyId: z.ZodString;
|
|
2883
|
+
viewId: z.ZodString;
|
|
2884
|
+
}, z.core.$strict>>;
|
|
2885
|
+
brands: z.ZodOptional<z.ZodObject<{
|
|
2886
|
+
ontologyId: z.ZodString;
|
|
2887
|
+
viewId: z.ZodString;
|
|
2888
|
+
}, z.core.$strict>>;
|
|
2889
|
+
}, z.core.$strict>>;
|
|
2565
2890
|
sharing: z.ZodOptional<z.ZodObject<{
|
|
2566
2891
|
silentViewLinks: z.ZodOptional<z.ZodObject<{
|
|
2567
2892
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2686,6 +3011,14 @@ export declare const TenantRuntimeConfigSchema: z.ZodObject<{
|
|
|
2686
3011
|
export type TenantProductConfig = z.infer<typeof TenantProductConfigSchema>;
|
|
2687
3012
|
export type TenantRuntimeConfig = z.infer<typeof TenantRuntimeConfigSchema>;
|
|
2688
3013
|
export type TenantApplicationConfig = z.infer<typeof TenantApplicationConfigSchema>;
|
|
3014
|
+
export type CurrentUserMenuDisplayText = z.infer<typeof CurrentUserMenuDisplayTextSchema>;
|
|
3015
|
+
export type CurrentUserMenuNavigationItem = z.infer<typeof CurrentUserMenuNavigationItemSchema>;
|
|
3016
|
+
export type CurrentUserMenuControlItem = z.infer<typeof CurrentUserMenuControlItemSchema>;
|
|
3017
|
+
export type CurrentUserMenuActionItem = z.infer<typeof CurrentUserMenuActionItemSchema>;
|
|
3018
|
+
export type CurrentUserMenuItem = z.infer<typeof CurrentUserMenuItemSchema>;
|
|
3019
|
+
export type CurrentUserMenuSection = z.infer<typeof CurrentUserMenuSectionSchema>;
|
|
3020
|
+
export type CurrentUserMenuConfig = z.infer<typeof CurrentUserMenuConfigSchema>;
|
|
3021
|
+
export type CurrentUserMenuProfile = z.infer<typeof CurrentUserMenuProfileSchema>;
|
|
2689
3022
|
export type TenantLandingPageConfig = z.infer<typeof TenantLandingPageConfigSchema>;
|
|
2690
3023
|
export type TenantWorkbenchConfig = z.infer<typeof TenantWorkbenchConfigSchema>;
|
|
2691
3024
|
export type TenantWorkbenchPageContext = z.infer<typeof TenantWorkbenchPageContextSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6CxB,uEAAuE;AACvE,eAAO,MAAM,uBAAuB;;;;;;;;;4BAIlC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;kBAKhC,CAAC;AAEZ,kFAAkF;AAClF,eAAO,MAAM,uBAAuB;;;;kBAMzB,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,uBAAuB;;;;;;;;4BAgBhC,CAAC;AAEL,eAAO,MAAM,wBAAwB;;;;mBAGpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;6BAGpC,CAAC;
|
|
1
|
+
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6CxB,uEAAuE;AACvE,eAAO,MAAM,uBAAuB;;;;;;;;;4BAIlC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;kBAKhC,CAAC;AAEZ,kFAAkF;AAClF,eAAO,MAAM,uBAAuB;;;;kBAMzB,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,uBAAuB;;;;;;;;4BAgBhC,CAAC;AAEL,eAAO,MAAM,wBAAwB;;;;mBAGpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;6BAGpC,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;kBAK9B,CAAC;AAEZ,mFAAmF;AACnF,eAAO,MAA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M,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/lib/contracts/tenant.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TenantRuntimeConfigSchema = exports.TenantProductConfigSchema = exports.TenantApplicationConfigSchema = exports.TenantLandingPageConfigSchema = exports.TenantWorkbenchConfigSchema = exports.TenantWorkbenchPageGroupSchema = exports.TenantWorkbenchPageEnvelopeSchema = exports.TenantWorkbenchPageContextSchema = exports.TenantHeadbarModuleItemSchema = exports.ThemeHeadbarSchema = exports.TenantDataBindingsSchema = exports.TenantAuthBindingsSchema = exports.TenantDataBindingSchema = exports.TenantAuthBindingSchema = exports.TenantDesignTokensConfigSchema = exports.DesignTokenSourceSchema = void 0;
|
|
3
|
+
exports.TenantRuntimeConfigSchema = exports.TenantProductConfigSchema = exports.TenantApplicationConfigSchema = exports.TenantLandingPageConfigSchema = exports.TenantWorkbenchConfigSchema = exports.TenantWorkbenchPageGroupSchema = exports.TenantWorkbenchPageEnvelopeSchema = exports.TenantWorkbenchPageContextSchema = exports.TenantHeadbarModuleItemSchema = exports.ThemeHeadbarSchema = exports.CurrentUserMenuProfileSchema = exports.CurrentUserMenuConfigSchema = exports.CurrentUserMenuSectionSchema = exports.CurrentUserMenuItemSchema = exports.CurrentUserMenuActionItemSchema = exports.CurrentUserMenuControlItemSchema = exports.CurrentUserMenuNavigationItemSchema = exports.CurrentUserMenuDisplayTextSchema = exports.CURRENT_USER_MENU_ACTION_REFS = exports.CURRENT_USER_MENU_CONTROL_REFS = exports.LEGACY_CURRENT_USER_MENU_ITEM_IDS = exports.TenantTrendRadarSourcesSchema = exports.TenantTrendRadarSourceSchema = exports.TenantDataBindingsSchema = exports.TenantAuthBindingsSchema = exports.TenantDataBindingSchema = exports.TenantAuthBindingSchema = exports.TenantDesignTokensConfigSchema = exports.DesignTokenSourceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const page_1 = require("./page");
|
|
@@ -77,18 +77,140 @@ exports.TenantDataBindingSchema = zod_1.z
|
|
|
77
77
|
]);
|
|
78
78
|
exports.TenantAuthBindingsSchema = zod_1.z.record(common_1.ContractIdentifierSchema, exports.TenantAuthBindingSchema);
|
|
79
79
|
exports.TenantDataBindingsSchema = zod_1.z.record(common_1.ContractIdentifierSchema, exports.TenantDataBindingSchema);
|
|
80
|
+
/** Browser-safe identity of one governed Ontology View used by Trend Radar. */
|
|
81
|
+
exports.TenantTrendRadarSourceSchema = zod_1.z
|
|
82
|
+
.object({
|
|
83
|
+
ontologyId: common_1.ContractIdentifierSchema,
|
|
84
|
+
viewId: common_1.ContractIdentifierSchema,
|
|
85
|
+
})
|
|
86
|
+
.strict();
|
|
87
|
+
/** Page-group source registry; roles are optional to support staged deployment. */
|
|
88
|
+
exports.TenantTrendRadarSourcesSchema = zod_1.z
|
|
89
|
+
.object({
|
|
90
|
+
hotwords: exports.TenantTrendRadarSourceSchema.optional(),
|
|
91
|
+
brands: exports.TenantTrendRadarSourceSchema.optional(),
|
|
92
|
+
})
|
|
93
|
+
.strict();
|
|
80
94
|
const AssetVariantsSchema = zod_1.z
|
|
81
95
|
.object({
|
|
82
96
|
light: zod_1.z.string().optional(),
|
|
83
97
|
dark: zod_1.z.string().optional(),
|
|
84
98
|
})
|
|
85
99
|
.strict();
|
|
100
|
+
exports.LEGACY_CURRENT_USER_MENU_ITEM_IDS = ['dark-mode', 'language', 'settings', 'logout'];
|
|
101
|
+
exports.CURRENT_USER_MENU_CONTROL_REFS = ['dark-mode', 'language'];
|
|
102
|
+
exports.CURRENT_USER_MENU_ACTION_REFS = ['logout'];
|
|
103
|
+
const CurrentUserMenuIdentifierSchema = zod_1.z
|
|
104
|
+
.string()
|
|
105
|
+
.trim()
|
|
106
|
+
.regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/, 'Expected a stable current-user menu identifier.');
|
|
107
|
+
exports.CurrentUserMenuDisplayTextSchema = zod_1.z.union([
|
|
108
|
+
zod_1.z.string().trim().min(1),
|
|
109
|
+
zod_1.z
|
|
110
|
+
.record(zod_1.z.string().trim().min(1), zod_1.z.string().trim().min(1))
|
|
111
|
+
.refine((value) => Object.keys(value).length > 0, 'Localized menu text must contain at least one locale.'),
|
|
112
|
+
]);
|
|
113
|
+
exports.CurrentUserMenuNavigationItemSchema = zod_1.z
|
|
114
|
+
.object({
|
|
115
|
+
id: CurrentUserMenuIdentifierSchema,
|
|
116
|
+
kind: zod_1.z.literal('navigation'),
|
|
117
|
+
ref: CurrentUserMenuIdentifierSchema,
|
|
118
|
+
})
|
|
119
|
+
.strict();
|
|
120
|
+
exports.CurrentUserMenuControlItemSchema = zod_1.z
|
|
121
|
+
.object({
|
|
122
|
+
id: CurrentUserMenuIdentifierSchema,
|
|
123
|
+
kind: zod_1.z.literal('control'),
|
|
124
|
+
ref: zod_1.z.enum(exports.CURRENT_USER_MENU_CONTROL_REFS),
|
|
125
|
+
})
|
|
126
|
+
.strict();
|
|
127
|
+
exports.CurrentUserMenuActionItemSchema = zod_1.z
|
|
128
|
+
.object({
|
|
129
|
+
id: CurrentUserMenuIdentifierSchema,
|
|
130
|
+
kind: zod_1.z.literal('action'),
|
|
131
|
+
ref: zod_1.z.enum(exports.CURRENT_USER_MENU_ACTION_REFS),
|
|
132
|
+
tone: zod_1.z.enum(['default', 'danger']).optional(),
|
|
133
|
+
})
|
|
134
|
+
.strict();
|
|
135
|
+
exports.CurrentUserMenuItemSchema = zod_1.z.discriminatedUnion('kind', [
|
|
136
|
+
exports.CurrentUserMenuNavigationItemSchema,
|
|
137
|
+
exports.CurrentUserMenuControlItemSchema,
|
|
138
|
+
exports.CurrentUserMenuActionItemSchema,
|
|
139
|
+
]);
|
|
140
|
+
exports.CurrentUserMenuSectionSchema = zod_1.z
|
|
141
|
+
.object({
|
|
142
|
+
id: CurrentUserMenuIdentifierSchema,
|
|
143
|
+
label: exports.CurrentUserMenuDisplayTextSchema.optional(),
|
|
144
|
+
dividerBefore: zod_1.z.boolean().optional(),
|
|
145
|
+
items: zod_1.z.array(exports.CurrentUserMenuItemSchema),
|
|
146
|
+
})
|
|
147
|
+
.strict();
|
|
148
|
+
exports.CurrentUserMenuConfigSchema = zod_1.z
|
|
149
|
+
.object({
|
|
150
|
+
version: zod_1.z.literal(1),
|
|
151
|
+
sections: zod_1.z.array(exports.CurrentUserMenuSectionSchema).max(20),
|
|
152
|
+
})
|
|
153
|
+
.strict()
|
|
154
|
+
.superRefine((value, context) => {
|
|
155
|
+
const sectionIds = new Set();
|
|
156
|
+
const itemIds = new Set();
|
|
157
|
+
let itemCount = 0;
|
|
158
|
+
value.sections.forEach((section, sectionIndex) => {
|
|
159
|
+
if (sectionIds.has(section.id)) {
|
|
160
|
+
context.addIssue({
|
|
161
|
+
code: 'custom',
|
|
162
|
+
message: `Duplicate current-user menu section id ${section.id}.`,
|
|
163
|
+
path: ['sections', sectionIndex, 'id'],
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
sectionIds.add(section.id);
|
|
167
|
+
itemCount += section.items.length;
|
|
168
|
+
section.items.forEach((item, itemIndex) => {
|
|
169
|
+
if (itemIds.has(item.id)) {
|
|
170
|
+
context.addIssue({
|
|
171
|
+
code: 'custom',
|
|
172
|
+
message: `Duplicate current-user menu item id ${item.id}.`,
|
|
173
|
+
path: ['sections', sectionIndex, 'items', itemIndex, 'id'],
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
itemIds.add(item.id);
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
if (itemCount > 100) {
|
|
180
|
+
context.addIssue({
|
|
181
|
+
code: 'custom',
|
|
182
|
+
message: 'Current-user menu supports at most 100 items.',
|
|
183
|
+
path: ['sections'],
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
const LegacyCurrentUserMenuProfileSchema = zod_1.z
|
|
188
|
+
.array(zod_1.z.enum(exports.LEGACY_CURRENT_USER_MENU_ITEM_IDS))
|
|
189
|
+
.superRefine((value, context) => {
|
|
190
|
+
const seen = new Set();
|
|
191
|
+
value.forEach((item, index) => {
|
|
192
|
+
if (seen.has(item)) {
|
|
193
|
+
context.addIssue({
|
|
194
|
+
code: 'custom',
|
|
195
|
+
message: `Duplicate legacy current-user menu item ${item}.`,
|
|
196
|
+
path: [index],
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
seen.add(item);
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
/** Backward-compatible current-user menu composition stored under theme.headbar.profile. */
|
|
203
|
+
exports.CurrentUserMenuProfileSchema = zod_1.z.union([
|
|
204
|
+
zod_1.z.literal('*'),
|
|
205
|
+
LegacyCurrentUserMenuProfileSchema,
|
|
206
|
+
exports.CurrentUserMenuConfigSchema,
|
|
207
|
+
]);
|
|
86
208
|
exports.ThemeHeadbarSchema = zod_1.z
|
|
87
209
|
.object({
|
|
88
210
|
theme: zod_1.z.enum(['card', 'glassy', 'ghost']).optional(),
|
|
89
211
|
navPosition: zod_1.z.enum(['left', 'center', 'right']).optional(),
|
|
90
212
|
actions: zod_1.z.union([zod_1.z.literal('*'), zod_1.z.array(common_1.ContractIdentifierSchema)]).optional(),
|
|
91
|
-
profile:
|
|
213
|
+
profile: exports.CurrentUserMenuProfileSchema.optional(),
|
|
92
214
|
showTeamQuota: zod_1.z.boolean().optional(),
|
|
93
215
|
})
|
|
94
216
|
.strict();
|
|
@@ -542,6 +664,7 @@ exports.TenantApplicationConfigSchema = zod_1.z
|
|
|
542
664
|
tep: zod_1.z.object({ baseUrl: zod_1.z.string().optional(), timeoutMs: zod_1.z.number().int().positive().optional() }).strict().optional(),
|
|
543
665
|
runtime: zod_1.z.object({ appId: common_1.ContractIdentifierSchema, tepBaseUrlConfigured: zod_1.z.boolean(), tepAuthorizationConfigured: zod_1.z.boolean(), tepCookieConfigured: zod_1.z.boolean() }).strict().optional(),
|
|
544
666
|
}).strict().optional(),
|
|
667
|
+
trendRadar: exports.TenantTrendRadarSourcesSchema.optional(),
|
|
545
668
|
sharing: zod_1.z.object({
|
|
546
669
|
silentViewLinks: zod_1.z.object({ enabled: zod_1.z.boolean().optional(), placement: zod_1.z.object({ mode: zod_1.z.enum(['sourceOntology', 'ontology']).optional(), ontologyId: common_1.ContractIdentifierSchema.optional(), parentId: common_1.ContractIdentifierSchema.optional(), navId: common_1.ContractIdentifierSchema.optional() }).strict().optional() }).strict().optional(),
|
|
547
670
|
shareAccess: zod_1.z.object({ publicLinksEnabled: zod_1.z.boolean().optional(), passwordGateEnabled: zod_1.z.boolean().optional(), passwordAccessTtlSeconds: zod_1.z.number().int().positive().optional(), defaultViewTreeDelivery: zod_1.z.enum(['manual', 'auto']).optional() }).strict().optional(),
|