@inf-monkeys-tech/monkeys 1.0.72 → 1.1.1
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/aggregate-commit.d.ts +155 -0
- package/lib/contracts/aggregate-commit.d.ts.map +1 -0
- package/lib/contracts/aggregate-commit.js +112 -0
- package/lib/contracts/aggregate-commit.js.map +1 -0
- package/lib/contracts/capability.d.ts +3 -0
- package/lib/contracts/capability.d.ts.map +1 -1
- package/lib/contracts/capability.js +1 -1
- package/lib/contracts/capability.js.map +1 -1
- package/lib/contracts/common.d.ts +2 -0
- package/lib/contracts/common.d.ts.map +1 -1
- package/lib/contracts/common.js +34 -1
- package/lib/contracts/common.js.map +1 -1
- package/lib/contracts/component-assembly.d.ts +118 -0
- package/lib/contracts/component-assembly.d.ts.map +1 -0
- package/lib/contracts/component-assembly.js +61 -0
- package/lib/contracts/component-assembly.js.map +1 -0
- package/lib/contracts/declarative-control-http.d.ts +80610 -41684
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +1596 -165
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +12525 -4613
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +3792 -422
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/index.d.ts +6 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +6 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/legacy-route.d.ts +15 -0
- package/lib/contracts/legacy-route.d.ts.map +1 -0
- package/lib/contracts/legacy-route.js +13 -0
- package/lib/contracts/legacy-route.js.map +1 -0
- package/lib/contracts/menu.d.ts +12 -0
- package/lib/contracts/menu.d.ts.map +1 -1
- package/lib/contracts/page-binding-dependencies.d.ts +25 -0
- package/lib/contracts/page-binding-dependencies.d.ts.map +1 -0
- package/lib/contracts/page-binding-dependencies.js +54 -0
- package/lib/contracts/page-binding-dependencies.js.map +1 -0
- package/lib/contracts/page-expression.d.ts +106 -0
- package/lib/contracts/page-expression.d.ts.map +1 -0
- package/lib/contracts/page-expression.js +136 -0
- package/lib/contracts/page-expression.js.map +1 -0
- package/lib/contracts/page-stream.d.ts +101 -0
- package/lib/contracts/page-stream.d.ts.map +1 -0
- package/lib/contracts/page-stream.js +66 -0
- package/lib/contracts/page-stream.js.map +1 -0
- package/lib/contracts/page.d.ts +24 -0
- package/lib/contracts/page.d.ts.map +1 -1
- package/lib/contracts/page.js +2 -0
- package/lib/contracts/page.js.map +1 -1
- package/lib/contracts/record-editor-draft.d.ts +95 -0
- package/lib/contracts/record-editor-draft.d.ts.map +1 -0
- package/lib/contracts/record-editor-draft.js +35 -0
- package/lib/contracts/record-editor-draft.js.map +1 -0
- package/lib/contracts/render.d.ts +607 -1
- package/lib/contracts/render.d.ts.map +1 -1
- package/lib/contracts/render.js +332 -133
- package/lib/contracts/render.js.map +1 -1
- package/lib/contracts/semantic.d.ts +48 -1
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/semantic.js +22 -19
- package/lib/contracts/semantic.js.map +1 -1
- package/lib/contracts/tenant.d.ts +115 -9
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +14 -1
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/contracts/theme.d.ts +1 -1
- package/lib/esm/contracts/index.mjs +8466 -3114
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +13809 -5067
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +13964 -4515
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +8779 -2614
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/aggregate-commit-request.schema.json +426 -0
- package/lib/json-schema/capability-manifest.schema.json +1 -0
- package/lib/json-schema/capability-registry.schema.json +1 -0
- package/lib/json-schema/declarative-route-owner-index.schema.json +1092 -0
- package/lib/json-schema/declarative-workbench-catalog.schema.json +769 -0
- package/lib/json-schema/design-capability-catalog-artifact.schema.json +2787 -0
- package/lib/json-schema/domain-command-definition.schema.json +18 -0
- package/lib/json-schema/domain-query-definition.schema.json +1406 -0
- package/lib/json-schema/index.json +7 -0
- package/lib/json-schema/legacy-route-takeover-authorization.schema.json +601 -0
- package/lib/json-schema/navigation-release.schema.json +296 -0
- package/lib/json-schema/navigation-runtime-bundle.schema.json +48 -8
- package/lib/json-schema/navigation.schema.json +47 -8
- package/lib/json-schema/overlay-node.schema.json +883 -0
- package/lib/json-schema/page-definition.schema.json +34 -0
- package/lib/json-schema/page-release.schema.json +1520 -626
- package/lib/json-schema/page-runtime-bundle.schema.json +7334 -1153
- package/lib/json-schema/page-runtime-descriptor.schema.json +34 -0
- package/lib/json-schema/page.schema.json +6329 -6602
- package/lib/json-schema/permission-alternative-policy.schema.json +60 -0
- package/lib/json-schema/product-declaration.schema.json +53 -0
- package/lib/json-schema/render-node.schema.json +883 -0
- package/lib/json-schema/render-tree.schema.json +883 -0
- package/lib/json-schema/tenant-product-config.schema.json +88 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +88 -0
- package/lib/json-schema/view-provider-descriptor.schema.json +1 -0
- package/lib/json-schema/workbench-release.schema.json +1520 -626
- package/lib/json-schema/workbench-runtime-bundle.schema.json +686 -20
- package/lib/json-schema/workbench.schema.json +1196 -0
- package/lib/runtime/component-assembly.d.ts +4 -0
- package/lib/runtime/component-assembly.d.ts.map +1 -0
- package/lib/runtime/component-assembly.js +126 -0
- package/lib/runtime/component-assembly.js.map +1 -0
- package/lib/runtime/declarative-control-compiler.d.ts +106 -20
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +1525 -280
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/index.d.ts +5 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +7 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/page-expression.d.ts +9 -0
- package/lib/runtime/page-expression.d.ts.map +1 -0
- package/lib/runtime/page-expression.js +257 -0
- package/lib/runtime/page-expression.js.map +1 -0
- package/lib/runtime/page-stream.d.ts +24 -0
- package/lib/runtime/page-stream.d.ts.map +1 -0
- package/lib/runtime/page-stream.js +65 -0
- package/lib/runtime/page-stream.js.map +1 -0
- package/lib/runtime/record-editor-draft.d.ts +29 -0
- package/lib/runtime/record-editor-draft.d.ts.map +1 -0
- package/lib/runtime/record-editor-draft.js +161 -0
- package/lib/runtime/record-editor-draft.js.map +1 -0
- package/lib/runtime/target-render-model.d.ts +4 -0
- package/lib/runtime/target-render-model.d.ts.map +1 -0
- package/lib/runtime/target-render-model.js +28 -0
- package/lib/runtime/target-render-model.js.map +1 -0
- package/lib/runtime/tenant-config.d.ts +2 -0
- package/lib/runtime/tenant-config.d.ts.map +1 -1
- package/lib/runtime/tenant-config.js +6 -1
- package/lib/runtime/tenant-config.js.map +1 -1
- package/lib/schemas/index.d.ts +5969 -2731
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +174 -95
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentAssembly, ComponentAssemblyDescriptor } from '../contracts/component-assembly';
|
|
2
|
+
/** Compile once per descriptor; runtime values still come from the owning props. */
|
|
3
|
+
export declare function compileComponentAssemblyValidator(descriptor: ComponentAssemblyDescriptor, definitions?: Record<string, unknown>): (value: unknown) => ComponentAssembly;
|
|
4
|
+
//# sourceMappingURL=component-assembly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-assembly.d.ts","sourceRoot":"","sources":["../../src/runtime/component-assembly.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAoDtG,oFAAoF;AACpF,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,2BAA2B,EACvC,WAAW,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACxC,CAAC,KAAK,EAAE,OAAO,KAAK,iBAAiB,CAoDvC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.compileComponentAssemblyValidator = void 0;
|
|
7
|
+
const ajv_1 = __importDefault(require("ajv"));
|
|
8
|
+
const component_assembly_1 = require("../contracts/component-assembly");
|
|
9
|
+
const validatorPools = new WeakMap();
|
|
10
|
+
const definitionId = 'https://monkeys.design/schemas/component-props/v1';
|
|
11
|
+
const schemaObject = (value) => value !== null && typeof value === 'object' && !Array.isArray(value) ? value : undefined;
|
|
12
|
+
/** Only declared text leaves are localizable; unrestricted objects do not declare text. */
|
|
13
|
+
const declaresTextPath = (schema, path, definitions, depth = 0) => {
|
|
14
|
+
if (depth > 48)
|
|
15
|
+
return false;
|
|
16
|
+
const node = schemaObject(schema);
|
|
17
|
+
if (!node)
|
|
18
|
+
return false;
|
|
19
|
+
if (node.const !== undefined || node.enum !== undefined || node.pattern !== undefined || node.format !== undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (Array.isArray(node.allOf) && node.allOf.some(variant => {
|
|
22
|
+
const constraint = schemaObject(variant);
|
|
23
|
+
return constraint && ['const', 'enum', 'pattern', 'format'].some(key => constraint[key] !== undefined);
|
|
24
|
+
}))
|
|
25
|
+
return false;
|
|
26
|
+
if (typeof node.$ref === 'string' && node.$ref.startsWith('#/$defs/')) {
|
|
27
|
+
const name = node.$ref.slice('#/$defs/'.length).replace(/~1/g, '/').replace(/~0/g, '~');
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(definitions, name) && declaresTextPath(definitions[name], path, definitions, depth + 1))
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
for (const kind of ['anyOf', 'oneOf', 'allOf']) {
|
|
32
|
+
const variants = node[kind];
|
|
33
|
+
if (Array.isArray(variants) && variants.some(variant => declaresTextPath(variant, path, definitions, depth + 1)))
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (path.length === 0) {
|
|
37
|
+
// Enums and discriminators describe structure, even when encoded as strings.
|
|
38
|
+
return node.type === 'string' || (Array.isArray(node.type) && node.type.includes('string'));
|
|
39
|
+
}
|
|
40
|
+
const [part, ...rest] = path;
|
|
41
|
+
if (typeof part === 'number') {
|
|
42
|
+
const tuple = Array.isArray(node.prefixItems) ? node.prefixItems : Array.isArray(node.items) ? node.items : undefined;
|
|
43
|
+
return declaresTextPath(tuple ? tuple[part] : node.items, rest, definitions, depth + 1);
|
|
44
|
+
}
|
|
45
|
+
const properties = schemaObject(node.properties);
|
|
46
|
+
const child = properties && Object.prototype.hasOwnProperty.call(properties, part) ? properties[part] : node.additionalProperties;
|
|
47
|
+
return declaresTextPath(child, rest, definitions, depth + 1);
|
|
48
|
+
};
|
|
49
|
+
const readOwnTextTarget = (props, path) => {
|
|
50
|
+
let current = props;
|
|
51
|
+
for (const part of path) {
|
|
52
|
+
if (current === null || typeof current !== 'object' ||
|
|
53
|
+
(Array.isArray(current) ? typeof part !== 'number' || part >= current.length : typeof part !== 'string') ||
|
|
54
|
+
!Object.prototype.hasOwnProperty.call(current, part))
|
|
55
|
+
throw new TypeError('Localized component path does not exist.');
|
|
56
|
+
current = current[part];
|
|
57
|
+
}
|
|
58
|
+
return current;
|
|
59
|
+
};
|
|
60
|
+
/** Compile once per descriptor; runtime values still come from the owning props. */
|
|
61
|
+
function compileComponentAssemblyValidator(descriptor, definitions = {}) {
|
|
62
|
+
let ajv = validatorPools.get(definitions);
|
|
63
|
+
if (!ajv) {
|
|
64
|
+
ajv = new ajv_1.default({ strict: false, allErrors: true, validateFormats: false });
|
|
65
|
+
ajv.addSchema({ $id: definitionId, $defs: definitions });
|
|
66
|
+
validatorPools.set(definitions, ajv);
|
|
67
|
+
}
|
|
68
|
+
const propertySchema = (schema) => {
|
|
69
|
+
if (Array.isArray(schema))
|
|
70
|
+
return schema.map(propertySchema);
|
|
71
|
+
if (schema && typeof schema === 'object')
|
|
72
|
+
return Object.fromEntries(Object.entries(schema).map(([key, value]) => [key, key === '$ref' && typeof value === 'string' && value.startsWith('#/$defs/') ? definitionId + value : propertySchema(value)]));
|
|
73
|
+
return schema ?? {};
|
|
74
|
+
};
|
|
75
|
+
const scalarSlot = { anyOf: [{ type: ['string', 'number', 'boolean', 'null'] }, { type: 'array', items: { $ref: '#/$defs/renderable' } }] };
|
|
76
|
+
const properties = Object.fromEntries(descriptor.props.filter((prop) => prop.kind === 'property' || prop.kind === 'slot' || prop.accepts?.includes('slot') || prop.accepts?.includes('property')).map((prop) => [prop.name, prop.schema === undefined ? scalarSlot : propertySchema(prop.schema)]));
|
|
77
|
+
const variants = descriptor.variants?.map((variant) => ({ ...variant, validate: ajv.compile({ type: 'object', properties: Object.fromEntries(Object.entries(variant.properties).map(([name, schema]) => [name, propertySchema(schema)])) }) }));
|
|
78
|
+
const validate = ajv.compile({ $defs: { renderable: scalarSlot }, type: 'object', properties, patternProperties: { '^(data-|aria-)[a-zA-Z0-9_-]+$': { type: ['string', 'number', 'boolean', 'null'] } }, additionalProperties: false });
|
|
79
|
+
const byName = new Map(descriptor.props.map((prop) => [prop.name, prop]));
|
|
80
|
+
return (value) => {
|
|
81
|
+
// Preserve explicit slot-name arrays in declaration order; RenderTree owns each slot.
|
|
82
|
+
const assembly = component_assembly_1.ComponentAssemblySchema.parse(value);
|
|
83
|
+
if (Object.prototype.hasOwnProperty.call(assembly.props, 'dangerouslySetInnerHTML'))
|
|
84
|
+
throw new TypeError('Executable HTML is not a component assembly prop.');
|
|
85
|
+
if (!validate(assembly.props))
|
|
86
|
+
throw new TypeError(`Invalid ${descriptor.id} props: ${ajv.errorsText(validate.errors)}`);
|
|
87
|
+
for (const [group, kind] of [['events', 'event'], ['slots', 'slot'], ['renderers', 'renderer']]) {
|
|
88
|
+
for (const name of Object.keys(assembly[group])) {
|
|
89
|
+
if (byName.get(name)?.kind !== kind && !byName.get(name)?.accepts?.includes(kind))
|
|
90
|
+
throw new TypeError(`Invalid ${descriptor.id} ${group} member: ${name}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
for (const name of Object.keys(assembly.hosts)) {
|
|
94
|
+
if (!byName.has(name))
|
|
95
|
+
throw new TypeError(`Unknown ${descriptor.id} host member: ${name}`);
|
|
96
|
+
}
|
|
97
|
+
for (const name of Object.keys(assembly.messages)) {
|
|
98
|
+
if (!byName.has(name) || !(['slot', 'property'].includes(byName.get(name).kind) || byName.get(name)?.accepts?.includes('slot')))
|
|
99
|
+
throw new TypeError(`Invalid ${descriptor.id} localized member: ${name}`);
|
|
100
|
+
}
|
|
101
|
+
for (const binding of assembly.messageBindings ?? []) {
|
|
102
|
+
const root = binding.path[0];
|
|
103
|
+
const prop = typeof root === 'string' ? byName.get(root) : undefined;
|
|
104
|
+
if (!prop || !['property', 'slot'].includes(prop.kind) || !Object.prototype.hasOwnProperty.call(assembly.props, root))
|
|
105
|
+
throw new TypeError(`Invalid ${descriptor.id} localized path root.`);
|
|
106
|
+
if (['id', 'type', 'key', 'contract', 'schemaVersion'].includes(String(binding.path[binding.path.length - 1])))
|
|
107
|
+
throw new TypeError(`Invalid ${descriptor.id} structural localization target.`);
|
|
108
|
+
const target = readOwnTextTarget(assembly.props, binding.path);
|
|
109
|
+
if ((typeof target !== 'string' && target !== null) || !declaresTextPath(prop.schema ?? scalarSlot, binding.path.slice(1), definitions))
|
|
110
|
+
throw new TypeError(`Invalid ${descriptor.id} localized text path.`);
|
|
111
|
+
}
|
|
112
|
+
for (const prop of descriptor.props) {
|
|
113
|
+
if (prop.required && !Object.values(assembly).some((group) => group && typeof group === 'object' && Object.prototype.hasOwnProperty.call(group, prop.name))) {
|
|
114
|
+
throw new TypeError(`Missing ${descriptor.id} prop: ${prop.name}`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (variants) {
|
|
118
|
+
const supplied = new Set(['props', 'events', 'slots', 'renderers', 'hosts', 'messages'].flatMap((group) => Object.keys(assembly[group])));
|
|
119
|
+
if (!variants.some((variant) => variant.required.every((name) => supplied.has(name)) && [...supplied].every((name) => variant.allowed.includes(name) || /^(data-|aria-)/.test(name)) && variant.validate(assembly.props)))
|
|
120
|
+
throw new TypeError(`Invalid ${descriptor.id} prop combination.`);
|
|
121
|
+
}
|
|
122
|
+
return assembly;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
exports.compileComponentAssemblyValidator = compileComponentAssemblyValidator;
|
|
126
|
+
//# sourceMappingURL=component-assembly.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-assembly.js","sourceRoot":"","sources":["../../src/runtime/component-assembly.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,wEAA0E;AAE1E,MAAM,cAAc,GAAG,IAAI,OAAO,EAAe,CAAC;AAClD,MAAM,YAAY,GAAG,mDAAmD,CAAC;AAEzE,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuC,EAAE,CAC3E,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAgC,CAAC,CAAC,CAAC,SAAS,CAAC;AAEtH,2FAA2F;AAC3F,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAAE,IAAkC,EAAE,WAAoC,EAAE,KAAK,GAAG,CAAC,EAAW,EAAE;IACzI,IAAI,KAAK,GAAG,EAAE;QAAE,OAAO,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI;QAAE,OA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,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAAE,MAAM,IAAI,SAAS,CAAC,WAAW,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC;QAC/R,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AAvDD,8EAuDC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type AccessPolicy, type CompiledRouteClaim, type DeclarativeRouteClaim, type Navigation, type NavigationRelease, type NavigationRuntimeBundle, type Page, type PageRelease, type PageRuntimeBundle, type RevisionRef, type RouteSpace, type StableRef, type Workbench, type WorkbenchRelease, type WorkbenchRuntimeBundle } from
|
|
3
|
-
|
|
1
|
+
import { type DeclarativeCreateTemplateRegistration, type DeclarativeProductResourceRegistration, type DeclarativeRouteSpaceRegistration, type DeclarativeSchemaDefinitionRegistration, type DesignCapabilityCatalogArtifact, type DesignCapabilityCatalogEntry, type ProductDeclarativeCapabilityRegistration } from "../contracts/declarative-control-http";
|
|
2
|
+
import { type AccessPolicy, type CompiledRouteClaim, type DeclarativeRouteOwnerIndex, type DeclarativeRouteOwnerIndexEntry, type DeclarativeRouteClaim, type DeclarativeWorkbenchCatalog, type DeclarativeWorkbenchCatalogEntry, type DomainQueryDefinition, type LegacyRouteTakeoverAuthorization, type PermissionAlternativePolicy, type Navigation, type NavigationRelease, type NavigationRuntimeBundle, type Page, type ResolvedPage, type PageRelease, type PageRuntimeBundle, type RevisionRef, type RouteClaim, type RouteSpace, type StableRef, type TenantScope, type Workbench, type WorkbenchRelease, type WorkbenchRuntimeBundle } from "../contracts/declarative-control";
|
|
3
|
+
import type { DomainCommandDefinition } from "../contracts/semantic";
|
|
4
|
+
export type DeclarativeControlCompilationErrorCode = "AUDIENCE_WIDER_THAN_TARGET" | "CAPABILITY_BINDING_MISMATCH" | "CAPABILITY_NOT_EDITOR_ELIGIBLE" | "COMMAND_DEFINITION_MISMATCH" | "CROSS_TENANT_REFERENCE" | "DEPENDENCY_MISSING" | "DESIGN_CATALOG_INVALID" | "HEAD_CONFLICT" | "NAV_DEPTH_EXCEEDED" | "NAV_ACTION_INPUT_INVALID" | "NAV_NODE_LIMIT_EXCEEDED" | "NAV_TARGET_UNRELEASED" | "PAGE_ENTRY_TARGET_UNRELEASED" | "PORT_TYPE_MISMATCH" | "PRODUCT_CAPABILITY_CATALOG_INVALID" | "QUERY_DEFINITION_MISMATCH" | "RENDER_DEPTH_EXCEEDED" | "RENDER_TREE_INVALID" | "RENDER_NODE_LIMIT_EXCEEDED" | "RELEASE_OPERATION_INVALID" | "RELEASE_VALIDATION_FAILED" | "REGISTRY_CONFLICT" | "REVISION_MISMATCH" | "ROUTE_CONFLICT" | "ROUTE_RESERVED" | "ROUTE_TAKEOVER_INVALID" | "SCHEMA_DEFINITION_MISMATCH" | "ROUTE_SPACE_MISSING" | "ROUTE_SPACE_MISMATCH" | "SHELL_CHROME_UNAVAILABLE" | "SHELL_REVISION_MISMATCH" | "SHELL_SURFACE_MISMATCH" | "WORKBENCH_INSTANCE_LIMIT_EXCEEDED" | "WORKBENCH_RELEASE_SET_INVALID" | "WORKBENCH_TEMPLATE_UNRELEASABLE";
|
|
4
5
|
export declare class DeclarativeControlCompilationError extends Error {
|
|
5
6
|
readonly code: DeclarativeControlCompilationErrorCode;
|
|
6
7
|
readonly path: string;
|
|
@@ -25,10 +26,39 @@ export interface CapabilityPortRegistration {
|
|
|
25
26
|
export interface DeclarativeCapabilityRegistration {
|
|
26
27
|
capabilityRevisionRef: RevisionRef;
|
|
27
28
|
providerRevisionRef: RevisionRef;
|
|
29
|
+
propertySchemaRevisionRef: RevisionRef;
|
|
30
|
+
accessPolicy: AccessPolicy;
|
|
28
31
|
editorEligible: boolean;
|
|
29
32
|
inputPorts: readonly CapabilityPortRegistration[];
|
|
30
33
|
outputPorts: readonly CapabilityPortRegistration[];
|
|
31
|
-
allowedSideEffects: readonly (
|
|
34
|
+
allowedSideEffects: readonly ("network" | "storage" | "navigation" | "clipboard" | "worker" | "websocket")[];
|
|
35
|
+
}
|
|
36
|
+
export interface DomainQueryRegistration {
|
|
37
|
+
definitionRevisionRef: RevisionRef;
|
|
38
|
+
definition: DomainQueryDefinition;
|
|
39
|
+
}
|
|
40
|
+
export interface DomainCommandRegistration {
|
|
41
|
+
definitionRevisionRef: RevisionRef;
|
|
42
|
+
definition: DomainCommandDefinition;
|
|
43
|
+
}
|
|
44
|
+
export interface ResolvePageDefaults {
|
|
45
|
+
routeSpace: RevisionRef;
|
|
46
|
+
shell: RevisionRef;
|
|
47
|
+
tokens: readonly RevisionRef[];
|
|
48
|
+
performanceBudget: RevisionRef;
|
|
49
|
+
observationPolicy: RevisionRef;
|
|
50
|
+
}
|
|
51
|
+
export interface ResolvePageInput {
|
|
52
|
+
page: Page;
|
|
53
|
+
pageOwnerRepo: string;
|
|
54
|
+
defaults: ResolvePageDefaults;
|
|
55
|
+
routeSpaces?: readonly RouteSpaceRegistration[];
|
|
56
|
+
productResources?: readonly DeclarativeProductResourceRegistration[];
|
|
57
|
+
capabilityRegistry: readonly DeclarativeCapabilityRegistration[];
|
|
58
|
+
domainQueryRegistry?: readonly DomainQueryRegistration[];
|
|
59
|
+
domainCommandRegistry?: readonly DomainCommandRegistration[];
|
|
60
|
+
schemaRegistry?: readonly DeclarativeSchemaDefinitionRegistration[];
|
|
61
|
+
targetRegistry?: readonly NavigationRouteTargetRegistration[];
|
|
32
62
|
}
|
|
33
63
|
export interface WorkbenchTargetRegistration {
|
|
34
64
|
stableTargetRef: StableRef;
|
|
@@ -36,14 +66,14 @@ export interface WorkbenchTargetRegistration {
|
|
|
36
66
|
accessPolicy: AccessPolicy;
|
|
37
67
|
}
|
|
38
68
|
export interface NavigationRouteTargetRegistration extends WorkbenchTargetRegistration {
|
|
39
|
-
kind:
|
|
69
|
+
kind: "route";
|
|
40
70
|
releaseRevisionRef?: RevisionRef;
|
|
41
|
-
surface:
|
|
71
|
+
surface: "studio" | "kernel";
|
|
42
72
|
routeClaim: CompiledRouteClaim;
|
|
43
73
|
}
|
|
44
74
|
export interface NavigationRegisteredMenuActionRegistration extends WorkbenchTargetRegistration {
|
|
45
|
-
kind:
|
|
46
|
-
surface:
|
|
75
|
+
kind: "registered-menu-action";
|
|
76
|
+
surface: "studio" | "kernel";
|
|
47
77
|
applicationId: string;
|
|
48
78
|
actionRef: string;
|
|
49
79
|
inputSchemaRef?: string;
|
|
@@ -51,16 +81,17 @@ export interface NavigationRegisteredMenuActionRegistration extends WorkbenchTar
|
|
|
51
81
|
sourceCatalogRevisionRef: RevisionRef;
|
|
52
82
|
}
|
|
53
83
|
export interface NavigationDomainCommandRegistration extends WorkbenchTargetRegistration {
|
|
54
|
-
kind:
|
|
55
|
-
surface:
|
|
84
|
+
kind: "governed-domain-command";
|
|
85
|
+
surface: "studio" | "kernel";
|
|
56
86
|
inputSchemaRevisionRef: RevisionRef;
|
|
57
87
|
resultSchemaRevisionRef?: RevisionRef;
|
|
58
88
|
}
|
|
59
89
|
export type NavigationTargetRegistration = NavigationRouteTargetRegistration | NavigationRegisteredMenuActionRegistration | NavigationDomainCommandRegistration;
|
|
60
90
|
export interface CompileRouteClaimsInput {
|
|
61
|
-
claims: readonly DeclarativeRouteClaim[];
|
|
91
|
+
claims: readonly (RouteClaim | DeclarativeRouteClaim | ResolvedPage["routeClaims"][number] | Workbench["routeClaims"][number])[];
|
|
62
92
|
routeSpaces: readonly RouteSpaceRegistration[];
|
|
63
|
-
surface:
|
|
93
|
+
surface: "studio" | "kernel";
|
|
94
|
+
legacyRouteTakeoverAuthorizations?: readonly LegacyRouteTakeoverAuthorization[];
|
|
64
95
|
}
|
|
65
96
|
export interface MaterializeRouteSpacePathInput {
|
|
66
97
|
routeSpace: RouteSpace;
|
|
@@ -68,7 +99,7 @@ export interface MaterializeRouteSpacePathInput {
|
|
|
68
99
|
parameters?: Readonly<Record<string, string | number>>;
|
|
69
100
|
}
|
|
70
101
|
export interface CompilePageRuntimeBundleInput {
|
|
71
|
-
page:
|
|
102
|
+
page: ResolvedPage;
|
|
72
103
|
pageRevisionRef: RevisionRef;
|
|
73
104
|
release: PageRelease;
|
|
74
105
|
releaseRevisionRef: RevisionRef;
|
|
@@ -77,6 +108,9 @@ export interface CompilePageRuntimeBundleInput {
|
|
|
77
108
|
generation: number;
|
|
78
109
|
limits: DeclarativeControlCompileLimits;
|
|
79
110
|
capabilityRegistry: readonly DeclarativeCapabilityRegistration[];
|
|
111
|
+
domainQueryRegistry?: readonly DomainQueryRegistration[];
|
|
112
|
+
targetRegistry?: readonly NavigationRouteTargetRegistration[];
|
|
113
|
+
shellRegistration: DeclarativeProductResourceRegistration;
|
|
80
114
|
}
|
|
81
115
|
export interface CompileWorkbenchRuntimeBundleInput {
|
|
82
116
|
workbench: Workbench;
|
|
@@ -104,33 +138,85 @@ export declare const revisionRefKey: (reference: RevisionRef) => string;
|
|
|
104
138
|
export declare const sameStableRef: (left: StableRef, right: StableRef) => boolean;
|
|
105
139
|
export declare const sameRevisionRef: (left: RevisionRef, right: RevisionRef) => boolean;
|
|
106
140
|
export declare const canonicalContentHash: (value: unknown) => string;
|
|
107
|
-
|
|
141
|
+
/**
|
|
142
|
+
* Names one immutable Runtime Bundle projection by its exact Release evidence.
|
|
143
|
+
* The fixed-size digest stays below Data Server's 256-byte projection id limit
|
|
144
|
+
* even when a governed release slot uses the maximum contract identifier size.
|
|
145
|
+
*/
|
|
146
|
+
export declare const declarativeRuntimeProjectionId: (resourceKind: "page" | "navigation" | "workbench", releaseSlotId: string, releaseRevisionRef: Pick<RevisionRef, "kind" | "id" | "ownerRepo" | "revision" | "schemaVersion" | "contentHash">) => string;
|
|
147
|
+
/** Names the rebuildable route-owner index for one tenant environment surface. */
|
|
148
|
+
export declare const declarativeRouteOwnerIndexProjectionId: (tenantScope: TenantScope, environmentRef: StableRef, surface: "studio" | "kernel") => string;
|
|
149
|
+
export declare const declarativeWorkbenchCatalogProjectionId: (tenantScope: TenantScope, environmentRef: StableRef, surface: "studio" | "kernel") => string;
|
|
150
|
+
export declare const compileLegacyRouteTakeoverAuthorization: (input: Omit<LegacyRouteTakeoverAuthorization, "contentHash">) => LegacyRouteTakeoverAuthorization;
|
|
151
|
+
export declare const legacyRouteTakeoverAuthorizationHash: (input: Omit<LegacyRouteTakeoverAuthorization, "contentHash">) => string;
|
|
152
|
+
export declare const parseExactLegacyRouteTakeoverAuthorization: (input: unknown) => LegacyRouteTakeoverAuthorization;
|
|
153
|
+
export declare const permissionAlternativePolicyAllows: (policyInput: PermissionAlternativePolicy, permissionCodes: ReadonlySet<string> | readonly string[]) => boolean;
|
|
154
|
+
export declare const compileDeclarativeRouteOwnerIndex: (input: {
|
|
155
|
+
tenantScope: TenantScope;
|
|
156
|
+
environmentRef: StableRef;
|
|
157
|
+
surface: "studio" | "kernel";
|
|
158
|
+
generation: number;
|
|
159
|
+
entries: readonly DeclarativeRouteOwnerIndexEntry[];
|
|
160
|
+
}) => DeclarativeRouteOwnerIndex;
|
|
161
|
+
export declare const compileDeclarativeWorkbenchCatalog: (input: {
|
|
162
|
+
tenantScope: TenantScope;
|
|
163
|
+
environmentRef: StableRef;
|
|
164
|
+
surface: "studio" | "kernel";
|
|
165
|
+
generation: number;
|
|
166
|
+
entries: readonly DeclarativeWorkbenchCatalogEntry[];
|
|
167
|
+
}) => DeclarativeWorkbenchCatalog;
|
|
168
|
+
export declare const declarativeCreateTemplateSourceHash: (document: DeclarativeCreateTemplateRegistration["document"]) => string;
|
|
108
169
|
export declare const declarativeCreateTemplateRevisionHash: (registration: DeclarativeCreateTemplateRegistration) => string;
|
|
109
|
-
export declare const declarativeRouteSpaceSourceHash: (routeSpace: DeclarativeRouteSpaceRegistration[
|
|
170
|
+
export declare const declarativeRouteSpaceSourceHash: (routeSpace: DeclarativeRouteSpaceRegistration["routeSpace"]) => string;
|
|
110
171
|
export declare const declarativeRouteSpaceRevisionHash: (registration: DeclarativeRouteSpaceRegistration) => string;
|
|
111
|
-
export declare const declarativeProductResourceSourceHash: (document: DeclarativeProductResourceRegistration[
|
|
172
|
+
export declare const declarativeProductResourceSourceHash: (document: DeclarativeProductResourceRegistration["document"]) => string;
|
|
112
173
|
export declare const declarativeProductResourceRevisionHash: (registration: DeclarativeProductResourceRegistration) => string;
|
|
174
|
+
export declare const designCapabilityCatalogArtifactHash: (input: {
|
|
175
|
+
sourceRef: string;
|
|
176
|
+
entries: readonly DesignCapabilityCatalogEntry[];
|
|
177
|
+
}) => string;
|
|
178
|
+
export declare const compileDesignCapabilityCatalogArtifact: (input: {
|
|
179
|
+
sourceRef: string;
|
|
180
|
+
revision: number;
|
|
181
|
+
entries: readonly DesignCapabilityCatalogEntry[];
|
|
182
|
+
}) => DesignCapabilityCatalogArtifact;
|
|
183
|
+
/** Validate immutable product-owned capability provenance from an application release. */
|
|
184
|
+
export declare const parseExactProductDeclarativeCapabilityRegistration: (input: unknown) => ProductDeclarativeCapabilityRegistration;
|
|
185
|
+
export declare const parseExactDesignCapabilityCatalogArtifact: (input: unknown) => DesignCapabilityCatalogArtifact;
|
|
113
186
|
export declare const accessPolicyChainImplies: (policyInputs: readonly AccessPolicy[], targetInput: AccessPolicy) => boolean;
|
|
187
|
+
export declare const compiledRouteClaimsOverlap: (leftInput: CompiledRouteClaim, rightInput: CompiledRouteClaim) => boolean;
|
|
114
188
|
export declare const compileRouteClaims: (input: CompileRouteClaimsInput) => readonly CompiledRouteClaim[];
|
|
189
|
+
export type CompiledRouteMatch = {
|
|
190
|
+
matched: boolean;
|
|
191
|
+
normalizedPath?: string;
|
|
192
|
+
parameters: Readonly<Record<string, string>>;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Matches an application-relative request path using only the policy frozen into
|
|
196
|
+
* a CompiledRouteClaim. Runtime consumers must not reconstruct RouteSpace policy
|
|
197
|
+
* from product ids or deployment configuration.
|
|
198
|
+
*/
|
|
199
|
+
export declare const matchCompiledRouteClaim: (claimInput: CompiledRouteClaim, pathInput: string) => CompiledRouteMatch;
|
|
115
200
|
/**
|
|
116
201
|
* Materializes the browser URL owned by a RouteSpace from an application-relative
|
|
117
202
|
* compiled route. Declarations and runtime resolution remain application-relative;
|
|
118
203
|
* only this boundary applies product bases such as /:teamId or /kernel.
|
|
119
204
|
*/
|
|
120
205
|
export declare const materializeRouteSpacePath: (input: MaterializeRouteSpacePathInput) => string;
|
|
206
|
+
export declare const resolvePage: (input: ResolvePageInput) => ResolvedPage;
|
|
121
207
|
export declare const compilePageRuntimeBundle: (input: CompilePageRuntimeBundleInput) => PageRuntimeBundle;
|
|
122
208
|
export declare const compileWorkbenchRuntimeBundle: (input: CompileWorkbenchRuntimeBundleInput) => WorkbenchRuntimeBundle;
|
|
123
209
|
export declare const compileNavigationRuntimeBundle: (input: CompileNavigationRuntimeBundleInput) => NavigationRuntimeBundle;
|
|
124
210
|
export declare const validateWorkbenchRuntimeSet: (bundleInputs: readonly WorkbenchRuntimeBundle[]) => readonly WorkbenchRuntimeBundle[];
|
|
125
211
|
export type WorkbenchEntryResolution = {
|
|
126
|
-
status:
|
|
212
|
+
status: "resolved";
|
|
127
213
|
bundle: WorkbenchRuntimeBundle;
|
|
128
|
-
source:
|
|
214
|
+
source: "explicit" | "default" | "first-accessible";
|
|
129
215
|
} | {
|
|
130
|
-
status:
|
|
216
|
+
status: "not-found";
|
|
131
217
|
workbenchId: string;
|
|
132
218
|
} | {
|
|
133
|
-
status:
|
|
219
|
+
status: "forbidden";
|
|
134
220
|
workbenchId: string;
|
|
135
221
|
};
|
|
136
222
|
export declare const resolveWorkbenchEntry: (input: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarative-control-compiler.d.ts","sourceRoot":"","sources":["../../src/runtime/declarative-control-compiler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"declarative-control-compiler.d.ts","sourceRoot":"","sources":["../../src/runtime/declarative-control-compiler.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,uCAAuC,EAC5C,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wCAAwC,EAC9C,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EA0BL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,IAAI,EACT,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EAEtB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,MAAM,MAAM,sCAAsC,GAC9C,4BAA4B,GAC5B,6BAA6B,GAC7B,gCAAgC,GAChC,6BAA6B,GAC7B,wBAAwB,GACxB,oBAAoB,GACpB,wBAAwB,GACxB,eAAe,GACf,oBAAoB,GACpB,0BAA0B,GAC1B,yBAAyB,GACzB,uBAAuB,GACvB,8BAA8B,GAC9B,oBAAoB,GACpB,oCAAoC,GACpC,2BAA2B,GAC3B,uBAAuB,GACvB,qBAAqB,GACrB,4BAA4B,GAC5B,2BAA2B,GAC3B,2B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