@inf-monkeys-tech/monkeys 1.1.53 → 1.1.54
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/action-program-http.d.ts +202 -0
- package/lib/contracts/action-program-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +44345 -12496
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +37 -4
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +1738 -246
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +166 -20
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-document-import.d.ts +640 -10
- package/lib/contracts/declarative-document-import.d.ts.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +3318 -578
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/contracts/menu.d.ts +329 -0
- package/lib/contracts/menu.d.ts.map +1 -1
- package/lib/contracts/page-expression.d.ts +1 -0
- package/lib/contracts/page-expression.d.ts.map +1 -1
- package/lib/contracts/page-expression.js +1 -1
- package/lib/contracts/page-expression.js.map +1 -1
- package/lib/contracts/page.d.ts +989 -0
- package/lib/contracts/page.d.ts.map +1 -1
- package/lib/contracts/page.js +24 -1
- package/lib/contracts/page.js.map +1 -1
- package/lib/contracts/semantic.d.ts +329 -0
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/tenant.d.ts +1645 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/esm/{chunk-EMZG7H6M.mjs → chunk-66A4GGOV.mjs} +2 -2
- package/lib/esm/{chunk-LQ72DLZI.mjs → chunk-DIIMDX7F.mjs} +220 -23
- package/lib/esm/chunk-DIIMDX7F.mjs.map +1 -0
- package/lib/esm/{chunk-E46Y3E7E.mjs → chunk-E6YPJ4DR.mjs} +2 -2
- package/lib/esm/{chunk-TFNKWLY6.mjs → chunk-ITGLKSCE.mjs} +295 -13
- package/lib/esm/chunk-ITGLKSCE.mjs.map +1 -0
- package/lib/esm/{chunk-BNFELJET.mjs → chunk-RMZW3SVL.mjs} +3 -3
- package/lib/esm/{chunk-CB4WTYNQ.mjs → chunk-TROZIHS4.mjs} +2 -2
- package/lib/esm/contracts/index.mjs +28 -4
- package/lib/esm/index.mjs +48 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +21 -3
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/json-schema/declarative-route-owner-index.schema.json +10 -2
- package/lib/json-schema/navigation-runtime-bundle.schema.json +21 -1
- package/lib/json-schema/navigation.schema.json +21 -1
- package/lib/json-schema/overlay-node.schema.json +2 -1
- package/lib/json-schema/page-definition.schema.json +1739 -3
- package/lib/json-schema/page-release.schema.json +80 -6
- package/lib/json-schema/page-runtime-bundle.schema.json +2453 -372
- package/lib/json-schema/page-runtime-descriptor.schema.json +1739 -3
- package/lib/json-schema/page.schema.json +958 -215
- package/lib/json-schema/product-declaration.schema.json +1736 -0
- package/lib/json-schema/render-node.schema.json +2 -1
- package/lib/json-schema/render-tree.schema.json +2 -1
- package/lib/json-schema/tenant-product-config.schema.json +1736 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +1736 -0
- package/lib/runtime/declarative-control-compiler.d.ts +5 -0
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +105 -12
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/index.d.ts +2 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +2 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/native-page-composition.d.ts +319 -0
- package/lib/runtime/native-page-composition.d.ts.map +1 -0
- package/lib/runtime/native-page-composition.js +19 -0
- package/lib/runtime/native-page-composition.js.map +1 -0
- package/lib/runtime/page-composition.js +1 -1
- package/lib/runtime/page-composition.js.map +1 -1
- package/lib/runtime/page-expression.d.ts +1 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/runtime/page-mount.d.ts +26 -0
- package/lib/runtime/page-mount.d.ts.map +1 -0
- package/lib/runtime/page-mount.js +203 -0
- package/lib/runtime/page-mount.js.map +1 -0
- package/lib/runtime/runtime-definition-wire.d.ts +6759 -357
- package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
- package/lib/schemas/index.d.ts +2544 -349
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-LQ72DLZI.mjs.map +0 -1
- package/lib/esm/chunk-TFNKWLY6.mjs.map +0 -1
- /package/lib/esm/{chunk-EMZG7H6M.mjs.map → chunk-66A4GGOV.mjs.map} +0 -0
- /package/lib/esm/{chunk-E46Y3E7E.mjs.map → chunk-E6YPJ4DR.mjs.map} +0 -0
- /package/lib/esm/{chunk-BNFELJET.mjs.map → chunk-RMZW3SVL.mjs.map} +0 -0
- /package/lib/esm/{chunk-CB4WTYNQ.mjs.map → chunk-TROZIHS4.mjs.map} +0 -0
|
@@ -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;AAmDxB,uEAAuE;AACvE,eAAO,MAAM,uBAAuB;;;;;;;;;4BAAyH,CAAC;AAE9J,eAAO,MAAM,8BAA8B;;;;;;;;;;;kBAKhC,CAAC;AAEZ,kFAAkF;AAClF,eAAO,MAAM,uBAAuB;;;;kBAMzB,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,uBAAuB;;;;;;;;4BAelC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;mBAA8D,CAAC;AAEpG,eAAO,MAAM,wBAAwB;;;;;;;;6BAA8D,CAAC;AAEpG,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;kBAK9B,CAAC;AAEZ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C,CAAC"}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RevisionRefSchema,
|
|
14
14
|
Sha256Schema,
|
|
15
15
|
TenantScopeSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DIIMDX7F.mjs";
|
|
17
17
|
|
|
18
18
|
// src/contracts/artifact.ts
|
|
19
19
|
import { z } from "zod";
|
|
@@ -1077,4 +1077,4 @@ export {
|
|
|
1077
1077
|
WorkflowCompletionCommitSchema,
|
|
1078
1078
|
WorkflowCompletionReceiptSchema
|
|
1079
1079
|
};
|
|
1080
|
-
//# sourceMappingURL=chunk-
|
|
1080
|
+
//# sourceMappingURL=chunk-66A4GGOV.mjs.map
|
|
@@ -7990,7 +7990,7 @@ var PageMemberSchema = z5.string().min(1).max(256).refine(
|
|
|
7990
7990
|
"Unsafe Page member."
|
|
7991
7991
|
);
|
|
7992
7992
|
var PageValuePathSchema = z5.array(PageMemberSchema).max(16);
|
|
7993
|
-
var PageExpressionRootSchema = z5.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions"]);
|
|
7993
|
+
var PageExpressionRootSchema = z5.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions", "parameters"]);
|
|
7994
7994
|
var PageOperatorSchema = z5.enum([
|
|
7995
7995
|
"add",
|
|
7996
7996
|
"subtract",
|
|
@@ -9944,6 +9944,7 @@ var validateReleaseGovernanceScope = (value, expectedKind, context) => {
|
|
|
9944
9944
|
);
|
|
9945
9945
|
};
|
|
9946
9946
|
var BindingSourceSchema = z13.discriminatedUnion("kind", [
|
|
9947
|
+
z13.object({ kind: z13.literal("page-parameter"), name: ContractIdentifierSchema }).strict(),
|
|
9947
9948
|
z13.object({
|
|
9948
9949
|
kind: z13.literal("scope-field"),
|
|
9949
9950
|
path: z13.string().trim().min(1).max(4096).regex(/^[A-Za-z0-9_.-]+$/).refine(
|
|
@@ -10177,7 +10178,7 @@ var PageStateDefinitionSchema = z13.object({
|
|
|
10177
10178
|
path: ["persistence"],
|
|
10178
10179
|
message: "Repeated instance state must not persist outside its instance."
|
|
10179
10180
|
});
|
|
10180
|
-
if (value.initialValue && !value.scopeNodeId && (value.persistence !== "none" || value.initialValue.kind !== "read" || value.initialValue.root
|
|
10181
|
+
if (value.initialValue && !value.scopeNodeId && (value.persistence !== "none" || value.initialValue.kind !== "read" || !["state", "parameters"].includes(value.initialValue.root) || value.initialValue.path.length !== 1))
|
|
10181
10182
|
context.addIssue({
|
|
10182
10183
|
code: "custom",
|
|
10183
10184
|
path: ["initialValue"],
|
|
@@ -10575,7 +10576,7 @@ var QueryBindingSchema = z13.object({
|
|
|
10575
10576
|
...effect.when ? [effect.when] : []
|
|
10576
10577
|
]) {
|
|
10577
10578
|
for (const read of collectPageExpressionReads(expression))
|
|
10578
|
-
if (!["model", "state", "scope"].includes(read.root))
|
|
10579
|
+
if (!["model", "state", "scope", "parameters"].includes(read.root))
|
|
10579
10580
|
context.addIssue({
|
|
10580
10581
|
code: "custom",
|
|
10581
10582
|
path: ["stateEffects", index],
|
|
@@ -10985,11 +10986,11 @@ var ActionBindingSchema = z13.object({
|
|
|
10985
10986
|
}
|
|
10986
10987
|
if (value.when)
|
|
10987
10988
|
for (const read of collectPageExpressionReads(value.when)) {
|
|
10988
|
-
if (!["intent", "state", "scope"].includes(read.root))
|
|
10989
|
+
if (!["intent", "state", "scope", "parameters"].includes(read.root))
|
|
10989
10990
|
context.addIssue({
|
|
10990
10991
|
code: "custom",
|
|
10991
10992
|
path: ["when"],
|
|
10992
|
-
message: "Action conditions may read only intent, declared Page state, and instance scope."
|
|
10993
|
+
message: "Action conditions may read only intent, declared Page state, parameters, and instance scope."
|
|
10993
10994
|
});
|
|
10994
10995
|
}
|
|
10995
10996
|
if (value.success.ephemeralResult) {
|
|
@@ -11550,14 +11551,96 @@ var validateSharedStateBindings = (bindings, states, queryIds, interactions, con
|
|
|
11550
11551
|
}
|
|
11551
11552
|
};
|
|
11552
11553
|
var InitialQueryPolicySchema = z13.enum(["auto", "explicit", "disabled"]);
|
|
11554
|
+
var PageProtocolVersionSchema = z13.union([z13.literal(1), z13.literal(2)]);
|
|
11555
|
+
var PageUsageSchema = z13.enum(["route", "embedded", "both"]);
|
|
11556
|
+
var PageParameterBindingSchema = z13.discriminatedUnion("kind", [
|
|
11557
|
+
z13.object({ kind: z13.literal("query-parameter"), name: ContractIdentifierSchema, codec: z13.enum(["string", "integer", "boolean", "json", "page-state"]).optional() }).strict(),
|
|
11558
|
+
z13.object({ kind: z13.literal("route-parameter"), name: ContractIdentifierSchema, codec: z13.enum(["string", "integer", "boolean"]).optional() }).strict(),
|
|
11559
|
+
z13.object({ kind: z13.literal("constant"), value: z13.union([z13.string(), z13.number().finite(), z13.boolean(), z13.null()]) }).strict(),
|
|
11560
|
+
z13.object({ kind: z13.literal("identity"), name: z13.enum(["tenantId", "teamId", "userId"]) }).strict()
|
|
11561
|
+
]);
|
|
11562
|
+
var PageOutputSchema = z13.object({
|
|
11563
|
+
name: ContractIdentifierSchema,
|
|
11564
|
+
nodeId: ContractIdentifierSchema,
|
|
11565
|
+
port: ContractIdentifierSchema,
|
|
11566
|
+
phase: z13.enum(["intent", "success"]).optional()
|
|
11567
|
+
}).strict();
|
|
11568
|
+
var PageMountRouteSchema = z13.object({
|
|
11569
|
+
path: z13.string().min(1).max(512).regex(/^[A-Za-z0-9:_-]+(?:\/[A-Za-z0-9:_-]+)*$/),
|
|
11570
|
+
pathParameters: z13.record(ContractIdentifierSchema, ContractIdentifierSchema),
|
|
11571
|
+
query: z13.record(ContractIdentifierSchema, z13.object({
|
|
11572
|
+
parameter: ContractIdentifierSchema,
|
|
11573
|
+
type: z13.enum(["string", "integer", "boolean", "json"])
|
|
11574
|
+
}).strict())
|
|
11575
|
+
}).strict().superRefine((route, context) => {
|
|
11576
|
+
const names = [...route.path.matchAll(/:([A-Za-z][A-Za-z0-9_-]*)/g)].map((match) => match[1]);
|
|
11577
|
+
if (new Set(names).size !== names.length || names.some((name) => !route.pathParameters[name]) || Object.keys(route.pathParameters).some((name) => !names.includes(name)))
|
|
11578
|
+
context.addIssue({ code: "custom", path: ["pathParameters"], message: "Map every child path parameter exactly once." });
|
|
11579
|
+
const inputs = [...Object.values(route.pathParameters), ...Object.values(route.query).map((item) => item.parameter)];
|
|
11580
|
+
if (new Set(inputs).size !== inputs.length)
|
|
11581
|
+
context.addIssue({ code: "custom", message: "A route input must have one URL owner." });
|
|
11582
|
+
});
|
|
11583
|
+
var PageMountSchema = z13.object({
|
|
11584
|
+
mountId: ContractIdentifierSchema,
|
|
11585
|
+
target: z13.object({ kind: z13.literal("page"), id: ContractIdentifierSchema }).strict(),
|
|
11586
|
+
slot: ContractIdentifierSchema,
|
|
11587
|
+
presentation: z13.enum(["inline", "panel", "drawer", "modal", "fullscreen"]),
|
|
11588
|
+
inputs: z13.record(ContractIdentifierSchema, BindingSourceSchema),
|
|
11589
|
+
instanceKey: z13.array(ContractIdentifierSchema).max(16).optional(),
|
|
11590
|
+
route: PageMountRouteSchema.optional(),
|
|
11591
|
+
activeWhen: PageStateActivationSchema.optional(),
|
|
11592
|
+
consumeStateIds: z13.array(ContractIdentifierSchema).max(32).optional(),
|
|
11593
|
+
on: z13.record(ContractIdentifierSchema, z13.discriminatedUnion("kind", [
|
|
11594
|
+
z13.object({ kind: z13.literal("close") }).strict(),
|
|
11595
|
+
z13.object({ kind: z13.literal("refresh"), bindingIds: z13.array(ContractIdentifierSchema).min(1).max(128) }).strict(),
|
|
11596
|
+
z13.object({ kind: z13.literal("state"), stateId: ContractIdentifierSchema, path: PageValuePathSchema }).strict()
|
|
11597
|
+
])),
|
|
11598
|
+
backgroundQueryPolicy: z13.enum(["when-active", "always"]).default("when-active")
|
|
11599
|
+
}).strict().superRefine((mount, context) => {
|
|
11600
|
+
if (!mount.route && !mount.activeWhen) context.addIssue({ code: "custom", message: "An inline mount requires an activation condition." });
|
|
11601
|
+
if (Object.keys(mount.route?.query ?? {}).some((key) => !key.startsWith(`${mount.mountId}.`) || key.startsWith(`${mount.mountId}.state.`)))
|
|
11602
|
+
context.addIssue({ code: "custom", path: ["route", "query"], message: "Child query keys must use the mount namespace and reserve .state. for local UI state." });
|
|
11603
|
+
});
|
|
11604
|
+
var ResolvedPageOutputSchema = PageOutputSchema.safeExtend({
|
|
11605
|
+
capabilityInstanceId: ContractIdentifierSchema,
|
|
11606
|
+
schemaRevisionRef: RevisionRefSchema
|
|
11607
|
+
});
|
|
11608
|
+
var ResolvedPageMountSchema = PageMountSchema.safeExtend({
|
|
11609
|
+
targetRevisionRef: RevisionRefSchema,
|
|
11610
|
+
targetReleaseRevisionRef: RevisionRefSchema,
|
|
11611
|
+
targetAccessPolicy: AccessPolicySchema,
|
|
11612
|
+
parametersSchemaRevisionRef: RevisionRefSchema.optional(),
|
|
11613
|
+
outputs: z13.array(ResolvedPageOutputSchema)
|
|
11614
|
+
});
|
|
11615
|
+
var validatePageProtocol = (value, context) => {
|
|
11616
|
+
if (value.schemaVersion === 1 && [value.usage, value.parametersSchema, value.parameterBindings, value.parametersSchemaRevisionRef, value.mounts, value.outputs, value.stateRetention].some((item) => item !== void 0))
|
|
11617
|
+
context.addIssue({ code: "custom", message: "Page composition requires protocol version 2." });
|
|
11618
|
+
if (value.schemaVersion === 2 && !value.usage) context.addIssue({ code: "custom", path: ["usage"], message: "Page v2 requires an explicit usage role." });
|
|
11619
|
+
if (value.schemaVersion === 1 && value.stateDefinitions?.some((state) => state.initialValue && collectPageExpressionReads(state.initialValue).some((read) => read.root === "parameters")))
|
|
11620
|
+
context.addIssue({ code: "custom", path: ["stateDefinitions"], message: "Parameter initialization requires Page v2." });
|
|
11621
|
+
const usesParameters = (input) => {
|
|
11622
|
+
if (!input || typeof input !== "object") return false;
|
|
11623
|
+
const item = input;
|
|
11624
|
+
if (item.kind === "literal" || item.kind === "constant") return false;
|
|
11625
|
+
if (item.kind === "page-parameter" || item.kind === "read" && item.root === "parameters") return true;
|
|
11626
|
+
return Object.entries(item).some(([key, child]) => !["model", "props", "properties", "renderModel", "document", "defaultValue"].includes(key) && usesParameters(child));
|
|
11627
|
+
};
|
|
11628
|
+
if (value.schemaVersion === 1 && usesParameters(value)) context.addIssue({ code: "custom", message: "Page parameters require protocol version 2." });
|
|
11629
|
+
};
|
|
11553
11630
|
var PageSchema = z13.object({
|
|
11554
11631
|
contract: z13.literal("Page"),
|
|
11555
|
-
schemaVersion:
|
|
11632
|
+
schemaVersion: PageProtocolVersionSchema,
|
|
11556
11633
|
pageId: ContractIdentifierSchema,
|
|
11557
11634
|
tenantScope: TenantScopeSchema,
|
|
11558
11635
|
identity: IdentitySchema,
|
|
11559
11636
|
surface: ProductSurfaceSchema,
|
|
11560
|
-
route: RoutePathTemplateSchema,
|
|
11637
|
+
route: RoutePathTemplateSchema.optional(),
|
|
11638
|
+
usage: PageUsageSchema.optional(),
|
|
11639
|
+
parametersSchema: ContractIdentifierSchema.optional(),
|
|
11640
|
+
parameterBindings: z13.record(ContractIdentifierSchema, PageParameterBindingSchema).optional(),
|
|
11641
|
+
outputs: z13.array(PageOutputSchema).max(32).optional(),
|
|
11642
|
+
mounts: z13.array(PageMountSchema).max(16).optional(),
|
|
11643
|
+
stateRetention: z13.literal("mounted-while-child-active").optional(),
|
|
11561
11644
|
routeSpace: ContractIdentifierSchema.optional(),
|
|
11562
11645
|
lifecycle: DeclarativeLifecycleSchema.default("active"),
|
|
11563
11646
|
routeStatePresentations: z13.array(PageRouteStatePresentationSchema).max(8).optional(),
|
|
@@ -11574,6 +11657,23 @@ var PageSchema = z13.object({
|
|
|
11574
11657
|
observationPolicy: ContractIdentifierSchema.optional(),
|
|
11575
11658
|
privacyClassification: z13.enum(["public", "internal", "confidential", "restricted"]).default("internal")
|
|
11576
11659
|
}).strict().superRefine((page, context) => {
|
|
11660
|
+
validatePageProtocol(page, context);
|
|
11661
|
+
const usesParameters = (value) => {
|
|
11662
|
+
if (!value || typeof value !== "object") return false;
|
|
11663
|
+
const item = value;
|
|
11664
|
+
if (item.kind === "literal" || item.kind === "constant") return false;
|
|
11665
|
+
if (item.kind === "page-parameter" || item.kind === "read" && item.root === "parameters") return true;
|
|
11666
|
+
return Object.entries(item).some(([key, child]) => !["model", "props"].includes(key) && usesParameters(child));
|
|
11667
|
+
};
|
|
11668
|
+
if (page.schemaVersion === 1 && (usesParameters(page.body) || usesParameters(page.state)))
|
|
11669
|
+
context.addIssue({ code: "custom", message: "Page parameters require protocol version 2." });
|
|
11670
|
+
if (page.usage === "embedded" ? page.route !== void 0 : !page.route)
|
|
11671
|
+
context.addIssue({ code: "custom", path: ["route"], message: "Routable Pages require a route; embedded Pages must not own a top-level route." });
|
|
11672
|
+
for (const field of ["mounts", "outputs"]) {
|
|
11673
|
+
const values = page[field] ?? [];
|
|
11674
|
+
const ids2 = values.map((value) => "mountId" in value ? value.mountId : value.name);
|
|
11675
|
+
if (new Set(ids2).size !== ids2.length) context.addIssue({ code: "custom", path: [field], message: "Page export and mount identities must be unique." });
|
|
11676
|
+
}
|
|
11577
11677
|
const ids = /* @__PURE__ */ new Set();
|
|
11578
11678
|
const dataIds = /* @__PURE__ */ new Set();
|
|
11579
11679
|
const actionIds = /* @__PURE__ */ new Set();
|
|
@@ -11619,7 +11719,13 @@ var PageSchema = z13.object({
|
|
|
11619
11719
|
});
|
|
11620
11720
|
var ResolvedPageSchema = z13.object({
|
|
11621
11721
|
contract: z13.literal("Page"),
|
|
11622
|
-
schemaVersion:
|
|
11722
|
+
schemaVersion: PageProtocolVersionSchema,
|
|
11723
|
+
usage: PageUsageSchema.optional(),
|
|
11724
|
+
parametersSchemaRevisionRef: RevisionRefSchema.optional(),
|
|
11725
|
+
parameterBindings: z13.record(ContractIdentifierSchema, PageParameterBindingSchema).optional(),
|
|
11726
|
+
outputs: z13.array(ResolvedPageOutputSchema).max(32).optional(),
|
|
11727
|
+
mounts: z13.array(ResolvedPageMountSchema).max(16).optional(),
|
|
11728
|
+
stateRetention: z13.literal("mounted-while-child-active").optional(),
|
|
11623
11729
|
pageId: ContractIdentifierSchema,
|
|
11624
11730
|
tenantScope: TenantScopeSchema,
|
|
11625
11731
|
identity: IdentitySchema,
|
|
@@ -11633,7 +11739,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
11633
11739
|
DeclarativeRouteClaimSchema,
|
|
11634
11740
|
LegacyDeclarativeRouteClaimSchema
|
|
11635
11741
|
])
|
|
11636
|
-
)
|
|
11742
|
+
),
|
|
11637
11743
|
shellRevisionRef: RevisionRefSchema,
|
|
11638
11744
|
renderTree: RenderTreeSchema,
|
|
11639
11745
|
capabilityInstances: z13.array(CapabilityInstanceSchema).min(1),
|
|
@@ -11658,8 +11764,11 @@ var ResolvedPageSchema = z13.object({
|
|
|
11658
11764
|
"restricted"
|
|
11659
11765
|
])
|
|
11660
11766
|
}).strict().superRefine((value, context) => {
|
|
11767
|
+
validatePageProtocol(value, context);
|
|
11768
|
+
if (value.usage === "embedded" ? value.routeClaims.length !== 0 : value.routeClaims.length === 0)
|
|
11769
|
+
context.addIssue({ code: "custom", path: ["routeClaims"], message: "Page usage and route ownership disagree." });
|
|
11661
11770
|
validateProgramBindingTargets(value, context);
|
|
11662
|
-
validateDeclaredRouteSurfaces(
|
|
11771
|
+
if (value.usage !== "embedded") validateDeclaredRouteSurfaces(
|
|
11663
11772
|
value.supportedSurfaces,
|
|
11664
11773
|
value.routeClaims,
|
|
11665
11774
|
context
|
|
@@ -11857,7 +11966,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
11857
11966
|
path: ["stateDefinitions", index, "scopeNodeId"],
|
|
11858
11967
|
message: "Instance state must reference an existing repeated RenderNode."
|
|
11859
11968
|
});
|
|
11860
|
-
if (definition.initialValue && !definition.scopeNodeId) {
|
|
11969
|
+
if (definition.initialValue && !definition.scopeNodeId && !(definition.initialValue.kind === "read" && definition.initialValue.root === "parameters" && value.schemaVersion === 2)) {
|
|
11861
11970
|
const expression = definition.initialValue;
|
|
11862
11971
|
const source = expression.kind === "read" ? stateDefinitions.find(
|
|
11863
11972
|
(state) => state.stateId === expression.path[0] && !state.scopeNodeId
|
|
@@ -11875,7 +11984,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
11875
11984
|
for (const read of collectPageExpressionReads(
|
|
11876
11985
|
definition.initialValue
|
|
11877
11986
|
)) {
|
|
11878
|
-
if (!["scope", "state"].includes(read.root) || read.root === "state" && !stateDefinitions.some(
|
|
11987
|
+
if (!["scope", "state", ...value.schemaVersion === 2 ? ["parameters"] : []].includes(read.root) || read.root === "state" && !stateDefinitions.some(
|
|
11879
11988
|
(state) => state.stateId === read.path[0] && !state.scopeNodeId
|
|
11880
11989
|
))
|
|
11881
11990
|
context.addIssue({
|
|
@@ -12811,20 +12920,24 @@ var ResolvedPageSchema = z13.object({
|
|
|
12811
12920
|
var PageReleaseSchema = z13.object({
|
|
12812
12921
|
contract: z13.literal("PageRelease"),
|
|
12813
12922
|
...ReleaseBaseShape,
|
|
12923
|
+
schemaVersion: PageProtocolVersionSchema,
|
|
12814
12924
|
pageRevisionRef: RevisionRefSchema,
|
|
12815
12925
|
target: z13.object({
|
|
12816
12926
|
environmentRef: StableRefSchema,
|
|
12817
12927
|
surface: ProductSurfaceSchema,
|
|
12818
|
-
|
|
12819
|
-
|
|
12928
|
+
mode: z13.enum(["route", "embedded"]).optional(),
|
|
12929
|
+
routeSpaceRevisionRef: RevisionRefSchema.optional(),
|
|
12930
|
+
normalizedPath: RoutePathTemplateSchema.optional(),
|
|
12820
12931
|
routeClaim: z13.union([
|
|
12821
12932
|
CompiledRouteClaimSchema,
|
|
12822
12933
|
LegacyCompiledRouteClaimSchema
|
|
12823
|
-
]),
|
|
12934
|
+
]).optional(),
|
|
12824
12935
|
legacyRouteTakeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema.optional()
|
|
12825
12936
|
}).strict()
|
|
12826
12937
|
}).strict().superRefine((value, context) => {
|
|
12827
12938
|
validateLegacyRestoration(value, "legacy-route-adapter", context);
|
|
12939
|
+
if (value.schemaVersion === 1 && value.target.mode !== void 0)
|
|
12940
|
+
context.addIssue({ code: "custom", path: ["target", "mode"], message: "Page publication modes require protocol version 2." });
|
|
12828
12941
|
validateDependencySnapshot(value.dependencySnapshot, context);
|
|
12829
12942
|
validateReleaseGovernanceScope(value, "page-release", context);
|
|
12830
12943
|
if (value.pageRevisionRef.kind !== "page")
|
|
@@ -12839,13 +12952,22 @@ var PageReleaseSchema = z13.object({
|
|
|
12839
12952
|
path: ["target", "environmentRef", "kind"],
|
|
12840
12953
|
message: "Page release target requires an environment reference."
|
|
12841
12954
|
});
|
|
12955
|
+
if (value.target.mode === "embedded") {
|
|
12956
|
+
if (value.schemaVersion !== 2 || value.target.routeClaim || value.target.routeSpaceRevisionRef || value.target.normalizedPath || value.target.legacyRouteTakeoverAuthorization || value.legacyRestoration)
|
|
12957
|
+
context.addIssue({ code: "custom", path: ["target"], message: "Embedded Page releases require v2 and cannot own or restore a route." });
|
|
12958
|
+
return;
|
|
12959
|
+
}
|
|
12960
|
+
if (!value.target.routeClaim || !value.target.routeSpaceRevisionRef || !value.target.normalizedPath) {
|
|
12961
|
+
context.addIssue({ code: "custom", path: ["target"], message: "A routable release requires an exact compiled route." });
|
|
12962
|
+
return;
|
|
12963
|
+
}
|
|
12842
12964
|
if (value.target.routeSpaceRevisionRef.kind !== "route-space")
|
|
12843
12965
|
context.addIssue({
|
|
12844
12966
|
code: "custom",
|
|
12845
12967
|
path: ["target", "routeSpaceRevisionRef", "kind"],
|
|
12846
12968
|
message: "Page release target requires a route-space revision."
|
|
12847
12969
|
});
|
|
12848
|
-
validateReleaseRouteSurface(value.target, context);
|
|
12970
|
+
validateReleaseRouteSurface({ ...value.target, routeClaim: value.target.routeClaim }, context);
|
|
12849
12971
|
if (value.target.normalizedPath !== value.target.routeClaim.normalizedPath || !exactRevisionRef(
|
|
12850
12972
|
value.target.routeSpaceRevisionRef,
|
|
12851
12973
|
value.target.routeClaim.routeSpaceRevisionRef
|
|
@@ -13435,7 +13557,7 @@ var DeclarativeRouteOwnerIndexEntrySchema = z13.object({
|
|
|
13435
13557
|
});
|
|
13436
13558
|
var DeclarativeRouteOwnerIndexSchema = z13.object({
|
|
13437
13559
|
contract: z13.literal("DeclarativeRouteOwnerIndex"),
|
|
13438
|
-
schemaVersion:
|
|
13560
|
+
schemaVersion: PageProtocolVersionSchema,
|
|
13439
13561
|
tenantScope: TenantScopeSchema,
|
|
13440
13562
|
environmentRef: StableRefSchema,
|
|
13441
13563
|
surface: ProductSurfaceSchema,
|
|
@@ -13445,7 +13567,7 @@ var DeclarativeRouteOwnerIndexSchema = z13.object({
|
|
|
13445
13567
|
rebuildable: z13.literal(true)
|
|
13446
13568
|
}).strict().superRefine((value, context) => {
|
|
13447
13569
|
const identities = value.entries.map(
|
|
13448
|
-
(entry) => `${entry.resourceKind}:${entry.releaseSlotId}`
|
|
13570
|
+
(entry) => `${entry.resourceKind}:${entry.releaseSlotId}${value.schemaVersion === 2 ? `:${entry.routeClaim.normalizedPath}` : ""}`
|
|
13449
13571
|
);
|
|
13450
13572
|
if (new Set(identities).size !== identities.length) {
|
|
13451
13573
|
context.addIssue({
|
|
@@ -13563,6 +13685,13 @@ var DeclarativeWorkbenchCatalogSchema = z13.object({
|
|
|
13563
13685
|
var CompatiblePageRuntimeBundleSchema = z13.object({
|
|
13564
13686
|
contract: z13.literal("PageRuntimeBundle"),
|
|
13565
13687
|
...RuntimeBundleBaseShape,
|
|
13688
|
+
schemaVersion: PageProtocolVersionSchema,
|
|
13689
|
+
usage: PageUsageSchema.optional(),
|
|
13690
|
+
parametersSchemaRevisionRef: RevisionRefSchema.optional(),
|
|
13691
|
+
parameterBindings: z13.record(ContractIdentifierSchema, PageParameterBindingSchema).optional(),
|
|
13692
|
+
outputs: z13.array(ResolvedPageOutputSchema).max(32).optional(),
|
|
13693
|
+
mounts: z13.array(ResolvedPageMountSchema).max(16).optional(),
|
|
13694
|
+
stateRetention: z13.literal("mounted-while-child-active").optional(),
|
|
13566
13695
|
pageId: ContractIdentifierSchema,
|
|
13567
13696
|
pageRevisionRef: RevisionRefSchema,
|
|
13568
13697
|
surface: ProductSurfaceSchema,
|
|
@@ -13594,6 +13723,11 @@ var CompatiblePageRuntimeBundleSchema = z13.object({
|
|
|
13594
13723
|
"restricted"
|
|
13595
13724
|
])
|
|
13596
13725
|
}).strict().superRefine((value, context) => {
|
|
13726
|
+
validatePageProtocol(value, context);
|
|
13727
|
+
if (value.usage === "embedded" && value.routeClaims.length)
|
|
13728
|
+
context.addIssue({ code: "custom", path: ["routeClaims"], message: "Embedded Page bundles cannot own routes." });
|
|
13729
|
+
if (value.schemaVersion === 2 && value.usage !== "embedded" && !value.routeClaims.length)
|
|
13730
|
+
context.addIssue({ code: "custom", path: ["routeClaims"], message: "Routable Page bundles require route authority." });
|
|
13597
13731
|
validateSharedStateBindings(value.sharedStateBindings, value.stateDefinitions, new Set([...value.queryBindings, ...value.ontologyBindings].map((binding) => binding.bindingId)), value.interactionBindings, context);
|
|
13598
13732
|
const instanceIds = new Set(
|
|
13599
13733
|
value.capabilityInstances.map((instance) => instance.instanceId)
|
|
@@ -13642,6 +13776,7 @@ var PageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
|
13642
13776
|
ontologyBindings: z13.array(OntologyBindingSchema)
|
|
13643
13777
|
});
|
|
13644
13778
|
var LegacyPageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
13779
|
+
schemaVersion: z13.literal(1),
|
|
13645
13780
|
shellDescriptor: z13.never().optional(),
|
|
13646
13781
|
ontologyBindings: z13.array(LegacyOntologyBindingSchema)
|
|
13647
13782
|
});
|
|
@@ -13878,6 +14013,23 @@ var DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS = Object.freeze([
|
|
|
13878
14013
|
|
|
13879
14014
|
// src/contracts/page.ts
|
|
13880
14015
|
import { z as z14 } from "zod";
|
|
14016
|
+
var NativePageCompositionSchema = z14.object({
|
|
14017
|
+
schemaVersion: z14.literal(1),
|
|
14018
|
+
surface: z14.literal("studio"),
|
|
14019
|
+
environmentRef: StableRefSchema,
|
|
14020
|
+
stateRetention: z14.literal("mounted-while-child-active"),
|
|
14021
|
+
mounts: z14.array(ResolvedPageMountSchema).min(1).max(16)
|
|
14022
|
+
}).strict().superRefine((value, context) => {
|
|
14023
|
+
const ids = /* @__PURE__ */ new Set();
|
|
14024
|
+
value.mounts.forEach((mount, index) => {
|
|
14025
|
+
if (ids.has(mount.mountId)) context.addIssue({ code: "custom", path: ["mounts", index], message: "Duplicate native mount." });
|
|
14026
|
+
ids.add(mount.mountId);
|
|
14027
|
+
if (!mount.route || !["fullscreen", "modal", "drawer"].includes(mount.presentation) || mount.activeWhen || mount.consumeStateIds?.length || Object.values(mount.inputs).some((source) => !["constant", "identity", "route-parameter", "query-parameter"].includes(source.kind)) || Object.values(mount.on).some((handler) => handler.kind === "state"))
|
|
14028
|
+
context.addIssue({ code: "custom", path: ["mounts", index], message: "Native adapters support routed overlays with location, identity or constant inputs and declared close/refresh handlers." });
|
|
14029
|
+
if (mount.targetRevisionRef.kind !== "page" || mount.targetReleaseRevisionRef.kind !== "page-release" || mount.targetRevisionRef.id !== mount.target.id)
|
|
14030
|
+
context.addIssue({ code: "custom", path: ["mounts", index], message: "Pin the exact child Page and publication." });
|
|
14031
|
+
});
|
|
14032
|
+
});
|
|
13881
14033
|
var PageTypeSchema = z14.enum([
|
|
13882
14034
|
"page",
|
|
13883
14035
|
"workspace",
|
|
@@ -13951,6 +14103,7 @@ var PageDefinitionSchema = z14.object({
|
|
|
13951
14103
|
routeId: ContractIdentifierSchema,
|
|
13952
14104
|
routePath: PageRoutePathSchema,
|
|
13953
14105
|
legacyRoutePolicy: LegacyRoutePolicySchema.optional(),
|
|
14106
|
+
composition: NativePageCompositionSchema.optional(),
|
|
13954
14107
|
rendererKey: ContractIdentifierSchema,
|
|
13955
14108
|
capabilityRef: EntityRefSchema,
|
|
13956
14109
|
capabilityRefs: z14.array(EntityRefSchema).default([]),
|
|
@@ -14608,9 +14761,20 @@ var DeclarativeErrorEnvelopeSchema = z17.object({
|
|
|
14608
14761
|
details: z17.unknown().optional(),
|
|
14609
14762
|
diagnostics: z17.array(z17.unknown()).optional()
|
|
14610
14763
|
}).passthrough();
|
|
14764
|
+
var PageInstanceLocationShape = {
|
|
14765
|
+
pathname: z17.string().min(1).max(2048).refine((value) => value.startsWith("/") && !value.startsWith("//") && !/[?#\\\u0000-\u0020]/.test(value)),
|
|
14766
|
+
search: z17.string().max(8192),
|
|
14767
|
+
mountPath: z17.array(ContractIdentifierSchema).max(8),
|
|
14768
|
+
parentState: z17.lazy(() => DeclarativeRuntimeParametersSchema).optional()
|
|
14769
|
+
};
|
|
14770
|
+
var PageInstanceInvocationSchema = z17.union([
|
|
14771
|
+
z17.object({ rootReleaseRevisionRef: RevisionRefSchema, rootPageRevisionRef: RevisionRefSchema, ...PageInstanceLocationShape }).strict(),
|
|
14772
|
+
z17.object({ rootNativePageRevisionRef: RevisionRefSchema, ...PageInstanceLocationShape }).strict().refine((value) => value.rootNativePageRevisionRef.kind === "legacy-route-adapter", "Native instances require an exact catalog adapter revision.")
|
|
14773
|
+
]);
|
|
14611
14774
|
var DeclarativeRuntimePageTargetSchema = z17.object({
|
|
14612
14775
|
activeReleaseRevisionRef: RevisionRefSchema,
|
|
14613
|
-
pageRevisionRef: RevisionRefSchema
|
|
14776
|
+
pageRevisionRef: RevisionRefSchema,
|
|
14777
|
+
instanceContext: PageInstanceInvocationSchema.optional()
|
|
14614
14778
|
}).strict().superRefine((value, context) => {
|
|
14615
14779
|
if (value.activeReleaseRevisionRef.kind !== "page-release") {
|
|
14616
14780
|
context.addIssue({
|
|
@@ -15779,11 +15943,15 @@ var DeclarativePageDocumentSummarySchema = z17.object({
|
|
|
15779
15943
|
resourceKind: z17.literal("page"),
|
|
15780
15944
|
title: I18nTextSchema,
|
|
15781
15945
|
supportedSurfaces: z17.array(ProductSurfaceSchema).min(1),
|
|
15782
|
-
|
|
15946
|
+
usage: z17.enum(["route", "embedded", "both"]).optional(),
|
|
15947
|
+
routeClaims: z17.array(RouteClaimSchema),
|
|
15783
15948
|
lifecycle: z17.enum(["active", "deprecated", "retired"]),
|
|
15784
15949
|
accessPolicy: AccessPolicySchema,
|
|
15785
15950
|
managementAccess: ManagementAccessSchema
|
|
15786
|
-
}).strict()
|
|
15951
|
+
}).strict().superRefine((value, context) => {
|
|
15952
|
+
if (value.usage === "embedded" ? value.routeClaims.length !== 0 : value.routeClaims.length === 0)
|
|
15953
|
+
context.addIssue({ code: "custom", path: ["routeClaims"], message: "Only embedded Pages have no top-level route." });
|
|
15954
|
+
});
|
|
15787
15955
|
var DeclarativeNavigationDocumentSummarySchema = z17.object({
|
|
15788
15956
|
resourceKind: z17.literal("navigation"),
|
|
15789
15957
|
title: I18nTextSchema,
|
|
@@ -16189,11 +16357,27 @@ var DeclarativeRuntimeRedirectSchema = z17.object({
|
|
|
16189
16357
|
normalizedPath: z17.string().trim().startsWith("/")
|
|
16190
16358
|
}).strict()
|
|
16191
16359
|
}).strict();
|
|
16360
|
+
var PageCompositionResolutionSchema = z17.object({
|
|
16361
|
+
rootPathname: z17.string().startsWith("/").max(2048),
|
|
16362
|
+
rootSearch: z17.string().max(8192),
|
|
16363
|
+
parameters: JsonObjectSchema,
|
|
16364
|
+
children: z17.array(z17.discriminatedUnion("status", [
|
|
16365
|
+
z17.object({ status: z17.literal("ready"), mountId: ContractIdentifierSchema, parameters: JsonObjectSchema, bundle: ReadablePageRuntimeBundleSchema }).strict(),
|
|
16366
|
+
z17.object({ status: z17.literal("error"), mountId: ContractIdentifierSchema, code: z17.enum(["PAGE_FORBIDDEN", "PAGE_UNAVAILABLE", "PAGE_PARAMETERS_INVALID"]) }).strict()
|
|
16367
|
+
])).max(16)
|
|
16368
|
+
}).strict();
|
|
16369
|
+
var PageInstanceResolutionSchema = z17.object({
|
|
16370
|
+
page: PageRuntimeBundleSchema,
|
|
16371
|
+
parameters: DeclarativeRuntimeParametersSchema,
|
|
16372
|
+
rootPathname: z17.string().startsWith("/").max(2048),
|
|
16373
|
+
rootSearch: z17.string().max(8192)
|
|
16374
|
+
}).strict();
|
|
16192
16375
|
var DeclarativeRuntimeResolvedSchema = z17.object({
|
|
16193
16376
|
surface: ProductSurfaceSchema,
|
|
16194
16377
|
normalizedPath: z17.string().trim().min(1),
|
|
16195
16378
|
routeParameters: z17.record(ContractIdentifierSchema, z17.string()),
|
|
16196
16379
|
page: ReadablePageRuntimeBundleSchema.optional(),
|
|
16380
|
+
composition: PageCompositionResolutionSchema.optional(),
|
|
16197
16381
|
workbench: WorkbenchRuntimeBundleSchema.optional(),
|
|
16198
16382
|
redirect: DeclarativeRuntimeRedirectSchema.optional(),
|
|
16199
16383
|
navigation: NavigationRuntimeBundleSchema.optional(),
|
|
@@ -16484,7 +16668,8 @@ var DeclarativeRuntimeResolveQuerySchema = z17.object({
|
|
|
16484
16668
|
environmentId: ContractIdentifierSchema.optional(),
|
|
16485
16669
|
surface: ProductSurfaceSchema,
|
|
16486
16670
|
path: z17.string().trim().min(1).max(2048),
|
|
16487
|
-
navigationPlacement: ContractIdentifierSchema.optional()
|
|
16671
|
+
navigationPlacement: ContractIdentifierSchema.optional(),
|
|
16672
|
+
search: z17.string().max(8192).optional()
|
|
16488
16673
|
}).strict();
|
|
16489
16674
|
var DeclarativeRuntimeRouteOwnerQuerySchema = z17.object({
|
|
16490
16675
|
// This tenant-scoped lookup is only called after authentication and team
|
|
@@ -20466,6 +20651,14 @@ export {
|
|
|
20466
20651
|
PageActionSchema,
|
|
20467
20652
|
PageNodeSchema,
|
|
20468
20653
|
PageSharedStateBindingSchema,
|
|
20654
|
+
PageProtocolVersionSchema,
|
|
20655
|
+
PageUsageSchema,
|
|
20656
|
+
PageParameterBindingSchema,
|
|
20657
|
+
PageOutputSchema,
|
|
20658
|
+
PageMountRouteSchema,
|
|
20659
|
+
PageMountSchema,
|
|
20660
|
+
ResolvedPageOutputSchema,
|
|
20661
|
+
ResolvedPageMountSchema,
|
|
20469
20662
|
PageSchema,
|
|
20470
20663
|
ResolvedPageSchema,
|
|
20471
20664
|
PageReleaseSchema,
|
|
@@ -20503,6 +20696,7 @@ export {
|
|
|
20503
20696
|
NavigationRuntimeBundleSchema,
|
|
20504
20697
|
DeclarativeControlOntologyDefinitionSchema,
|
|
20505
20698
|
DECLARATIVE_CONTROL_ONTOLOGY_DEFINITIONS,
|
|
20699
|
+
NativePageCompositionSchema,
|
|
20506
20700
|
PageTypeSchema,
|
|
20507
20701
|
PageVisibilitySchema,
|
|
20508
20702
|
PageRoutePathSchema,
|
|
@@ -20568,6 +20762,7 @@ export {
|
|
|
20568
20762
|
declarativeControlRoutes,
|
|
20569
20763
|
DeclarativeSuccessEnvelopeSchema,
|
|
20570
20764
|
DeclarativeErrorEnvelopeSchema,
|
|
20765
|
+
PageInstanceInvocationSchema,
|
|
20571
20766
|
DeclarativeRuntimeBindingQueryIntentSchema,
|
|
20572
20767
|
DeclarativeRuntimeBindingQueryResultSchema,
|
|
20573
20768
|
DeclarativeRuntimeActionRoutePathSchema,
|
|
@@ -20634,6 +20829,8 @@ export {
|
|
|
20634
20829
|
DeclarativeNavigationPlacementSchema,
|
|
20635
20830
|
DeclarativeAuthoringBootstrapSchema,
|
|
20636
20831
|
DeclarativeRuntimeRedirectSchema,
|
|
20832
|
+
PageCompositionResolutionSchema,
|
|
20833
|
+
PageInstanceResolutionSchema,
|
|
20637
20834
|
DeclarativeRuntimeResolvedSchema,
|
|
20638
20835
|
DeclarativeRuntimeResolveResultSchema,
|
|
20639
20836
|
DeclarativeNavigationRuntimeBootstrapSchema,
|
|
@@ -20744,4 +20941,4 @@ export {
|
|
|
20744
20941
|
RecordEditorValidationDetailsSchema,
|
|
20745
20942
|
RecordEditorSubmissionSnapshotSchema
|
|
20746
20943
|
};
|
|
20747
|
-
//# sourceMappingURL=chunk-
|
|
20944
|
+
//# sourceMappingURL=chunk-DIIMDX7F.mjs.map
|