@inf-monkeys-tech/monkeys 1.1.4 → 1.1.6
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/README.md +7 -0
- package/lib/contracts/declarative-control-http.d.ts +109122 -68294
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +14 -6
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +2237 -1743
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +89 -6
- package/lib/contracts/declarative-control.js.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/semantic.d.ts +68 -0
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/semantic.js +3 -1
- package/lib/contracts/semantic.js.map +1 -1
- package/lib/esm/contracts/index.mjs +96 -9
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +184 -61
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +178 -61
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +95 -9
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/navigation-release.schema.json +1 -0
- package/lib/json-schema/navigation-runtime-bundle.schema.json +1 -0
- package/lib/json-schema/overlay-node.schema.json +2 -1
- package/lib/json-schema/page-release.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +22 -1
- package/lib/json-schema/page.schema.json +21 -1
- package/lib/json-schema/render-node.schema.json +2 -1
- package/lib/json-schema/render-tree.schema.json +2 -1
- package/lib/json-schema/workbench-release.schema.json +1 -0
- package/lib/json-schema/workbench-runtime-bundle.schema.json +1 -0
- package/lib/runtime/declarative-control-compiler.d.ts +6 -1
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +67 -39
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/runtime/page-expression.js +11 -1
- package/lib/runtime/page-expression.js.map +1 -1
- package/lib/schemas/index.d.ts +254 -245
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -5
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6838,7 +6838,8 @@ var PageOperatorSchema = z5.enum([
|
|
|
6838
6838
|
"slice",
|
|
6839
6839
|
"trim",
|
|
6840
6840
|
"fixed",
|
|
6841
|
-
"number-format"
|
|
6841
|
+
"number-format",
|
|
6842
|
+
"encode-uri-component"
|
|
6842
6843
|
]);
|
|
6843
6844
|
var RecursivePageExpressionSchema = z5.lazy(() => z5.discriminatedUnion("kind", [
|
|
6844
6845
|
z5.object({ kind: z5.literal("literal"), value: JsonValueSchema }).strict(),
|
|
@@ -9472,6 +9473,7 @@ var ReleaseDependencyRoleSchema = z14.enum([
|
|
|
9472
9473
|
"capability",
|
|
9473
9474
|
"provider",
|
|
9474
9475
|
"ontology-definition",
|
|
9476
|
+
"projection-spec",
|
|
9475
9477
|
"query-definition",
|
|
9476
9478
|
"view",
|
|
9477
9479
|
"projection",
|
|
@@ -9501,6 +9503,7 @@ var DependencyKindByRole = {
|
|
|
9501
9503
|
capability: "capability",
|
|
9502
9504
|
provider: "view-provider",
|
|
9503
9505
|
"ontology-definition": "ontology-definition",
|
|
9506
|
+
"projection-spec": "projection-spec",
|
|
9504
9507
|
"query-definition": "domain-query-definition",
|
|
9505
9508
|
view: "view",
|
|
9506
9509
|
projection: "projection",
|
|
@@ -10441,6 +10444,9 @@ var QueryBindingSchema = z14.object({
|
|
|
10441
10444
|
).max(32).optional(),
|
|
10442
10445
|
queryWhen: PageStateActivationSchema.optional(),
|
|
10443
10446
|
accessFailure: z14.literal("render-forbidden").optional(),
|
|
10447
|
+
draftRetention: z14.object({
|
|
10448
|
+
identityParameters: z14.array(ContractIdentifierSchema).min(1).max(32)
|
|
10449
|
+
}).strict().optional(),
|
|
10444
10450
|
resultStateBindings: z14.array(QueryResultStateBindingSchema).max(32).optional(),
|
|
10445
10451
|
execution: z14.enum(["server", "local-state"]).default("server"),
|
|
10446
10452
|
pagination: z14.enum(["none", "cursor", "offset"]),
|
|
@@ -10452,6 +10458,12 @@ var QueryBindingSchema = z14.object({
|
|
|
10452
10458
|
when: PageExpressionSchema.optional()
|
|
10453
10459
|
}).strict().optional()
|
|
10454
10460
|
}).strict().superRefine((value, context) => {
|
|
10461
|
+
if (value.draftRetention) {
|
|
10462
|
+
const names = value.draftRetention.identityParameters;
|
|
10463
|
+
if (value.execution !== "server" || new Set(names).size !== names.length || names.some((name) => !Object.prototype.hasOwnProperty.call(value.parameters, name))) {
|
|
10464
|
+
context.addIssue({ code: "custom", path: ["draftRetention"], message: "Draft retention requires distinct declared Server query identity parameters." });
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10455
10467
|
if (value.targetProjection) {
|
|
10456
10468
|
if (value.targetProjection.schemaRevisionRef.kind !== "schema")
|
|
10457
10469
|
context.addIssue({
|
|
@@ -10685,6 +10697,58 @@ var OntologyBindingSchema = z14.object({
|
|
|
10685
10697
|
});
|
|
10686
10698
|
}
|
|
10687
10699
|
});
|
|
10700
|
+
var LegacyOntologyBindingSchema = z14.object({
|
|
10701
|
+
...OntologyBindingSchema.shape,
|
|
10702
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
10703
|
+
canonicalDataViewRevisionRef: z14.never().optional(),
|
|
10704
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
10705
|
+
}).strict().superRefine((value, context) => {
|
|
10706
|
+
if (Boolean(value.viewRevisionRef) === Boolean(value.projectionRevisionRef)) {
|
|
10707
|
+
context.addIssue({
|
|
10708
|
+
code: "custom",
|
|
10709
|
+
path: ["viewRevisionRef"],
|
|
10710
|
+
message: "Legacy bindings require exactly one View or projection revision."
|
|
10711
|
+
});
|
|
10712
|
+
}
|
|
10713
|
+
for (const [key, reference, kind] of [
|
|
10714
|
+
[
|
|
10715
|
+
"ontologyDefinitionRevisionRef",
|
|
10716
|
+
value.ontologyDefinitionRevisionRef,
|
|
10717
|
+
"ontology-definition"
|
|
10718
|
+
],
|
|
10719
|
+
["viewRevisionRef", value.viewRevisionRef, "view"],
|
|
10720
|
+
["projectionRevisionRef", value.projectionRevisionRef, "projection-spec"]
|
|
10721
|
+
]) {
|
|
10722
|
+
if (reference && reference.kind !== kind)
|
|
10723
|
+
context.addIssue({
|
|
10724
|
+
code: "custom",
|
|
10725
|
+
path: [key, "kind"],
|
|
10726
|
+
message: `Expected a ${kind} revision.`
|
|
10727
|
+
});
|
|
10728
|
+
}
|
|
10729
|
+
if (value.cursorWindow && value.pagination !== "cursor")
|
|
10730
|
+
context.addIssue({
|
|
10731
|
+
code: "custom",
|
|
10732
|
+
path: ["cursorWindow"],
|
|
10733
|
+
message: "Cursor-window navigation requires cursor pagination."
|
|
10734
|
+
});
|
|
10735
|
+
});
|
|
10736
|
+
var PersistedOntologyBindingSchema = z14.object({
|
|
10737
|
+
...OntologyBindingSchema.shape,
|
|
10738
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
10739
|
+
canonicalDataViewRevisionRef: RevisionRefSchema.optional(),
|
|
10740
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
10741
|
+
}).strict().superRefine((value, context) => {
|
|
10742
|
+
const schema2 = value.canonicalDataViewRevisionRef ? OntologyBindingSchema : LegacyOntologyBindingSchema;
|
|
10743
|
+
const parsed = schema2.safeParse(value);
|
|
10744
|
+
if (!parsed.success)
|
|
10745
|
+
for (const issue of parsed.error.issues)
|
|
10746
|
+
context.addIssue({
|
|
10747
|
+
code: "custom",
|
|
10748
|
+
path: issue.path,
|
|
10749
|
+
message: issue.message
|
|
10750
|
+
});
|
|
10751
|
+
});
|
|
10688
10752
|
var ActionResultBindingEffectSourceSchema = z14.discriminatedUnion(
|
|
10689
10753
|
"kind",
|
|
10690
10754
|
[
|
|
@@ -11227,7 +11291,7 @@ var ResolvedPageSchema = z14.object({
|
|
|
11227
11291
|
stateDefinitions: z14.array(PageStateDefinitionSchema).optional(),
|
|
11228
11292
|
entryTransitions: z14.array(PageEntryTransitionSchema).optional(),
|
|
11229
11293
|
interactionBindings: z14.array(InteractionBindingSchema).optional(),
|
|
11230
|
-
ontologyBindings: z14.array(
|
|
11294
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
11231
11295
|
queryBindings: z14.array(QueryBindingSchema).optional(),
|
|
11232
11296
|
actionBindings: z14.array(ActionBindingSchema),
|
|
11233
11297
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -13011,7 +13075,7 @@ var DeclarativeWorkbenchCatalogSchema = z14.object({
|
|
|
13011
13075
|
});
|
|
13012
13076
|
}
|
|
13013
13077
|
});
|
|
13014
|
-
var
|
|
13078
|
+
var CompatiblePageRuntimeBundleSchema = z14.object({
|
|
13015
13079
|
contract: z14.literal("PageRuntimeBundle"),
|
|
13016
13080
|
...RuntimeBundleBaseShape,
|
|
13017
13081
|
pageId: ContractIdentifierSchema,
|
|
@@ -13020,7 +13084,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13020
13084
|
routeClaims: z14.array(CompiledRouteClaimSchema),
|
|
13021
13085
|
routeStatePresentations: z14.array(PageRouteStatePresentationSchema).default([]),
|
|
13022
13086
|
shellRevisionRef: RevisionRefSchema,
|
|
13023
|
-
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
13087
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema.optional(),
|
|
13024
13088
|
renderTree: RenderTreeSchema,
|
|
13025
13089
|
capabilityInstances: z14.array(CapabilityInstanceSchema),
|
|
13026
13090
|
deniedCapabilityInstanceIds: z14.array(ContractIdentifierSchema).default([]),
|
|
@@ -13028,7 +13092,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13028
13092
|
stateDefinitions: z14.array(PageStateDefinitionSchema).default([]),
|
|
13029
13093
|
entryTransitions: z14.array(ResolvedPageEntryTransitionSchema).default([]),
|
|
13030
13094
|
interactionBindings: z14.array(InteractionBindingSchema).default([]),
|
|
13031
|
-
ontologyBindings: z14.array(
|
|
13095
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
13032
13096
|
queryBindings: z14.array(QueryBindingSchema).default([]),
|
|
13033
13097
|
actionBindings: z14.array(ActionBindingSchema),
|
|
13034
13098
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -13083,6 +13147,15 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13083
13147
|
var ResolvedWorkbenchAppInstanceSchema = WorkbenchAppInstanceSchema.extend({
|
|
13084
13148
|
targetAccessPolicy: AccessPolicySchema
|
|
13085
13149
|
}).strict();
|
|
13150
|
+
var PageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
13151
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
13152
|
+
ontologyBindings: z14.array(OntologyBindingSchema)
|
|
13153
|
+
});
|
|
13154
|
+
var LegacyPageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
13155
|
+
shellDescriptor: z14.never().optional(),
|
|
13156
|
+
ontologyBindings: z14.array(LegacyOntologyBindingSchema)
|
|
13157
|
+
});
|
|
13158
|
+
var ReadablePageRuntimeBundleSchema = z14.union([PageRuntimeBundleSchema, LegacyPageRuntimeBundleSchema]);
|
|
13086
13159
|
var WorkbenchRuntimeIdentitySchema = z14.object({
|
|
13087
13160
|
name: I18nTextSchema,
|
|
13088
13161
|
description: I18nTextSchema.optional()
|
|
@@ -13894,6 +13967,7 @@ var OntologyViewDefinitionSchema = z17.object({
|
|
|
13894
13967
|
renderModelSchemaRevisionRef: ExactRefKindSchema("schema"),
|
|
13895
13968
|
requiredPermissionCodes: z17.array(ContractIdentifierSchema).default([])
|
|
13896
13969
|
}).strict();
|
|
13970
|
+
var LegacyOntologyViewDefinitionSchema = OntologyViewDefinitionSchema.omit({ canonicalDataViewRevisionRef: true });
|
|
13897
13971
|
var ConceptRelationshipSchema = z17.object({
|
|
13898
13972
|
kind: ContractIdentifierSchema,
|
|
13899
13973
|
targetConceptId: ContractIdentifierSchema,
|
|
@@ -14171,6 +14245,7 @@ var DeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimePageTargetSc
|
|
|
14171
14245
|
routePath: DeclarativeRuntimeActionRoutePathSchema.optional(),
|
|
14172
14246
|
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
14173
14247
|
}).strict();
|
|
14248
|
+
var LegacyDeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimeActionExecuteIntentSchema.safeExtend({ pageState: DeclarativeRuntimeParametersSchema.default({}) });
|
|
14174
14249
|
var DeclarativeNativeDownloadSchema = z18.object({
|
|
14175
14250
|
url: z18.string().min(1).max(32768).refine((value) => {
|
|
14176
14251
|
try {
|
|
@@ -14558,7 +14633,12 @@ var DeclarativeCreateTemplateRegistrationSchema = z18.object({
|
|
|
14558
14633
|
description: I18nTextSchema,
|
|
14559
14634
|
supportedSurfaces: z18.array(ProductSurfaceSchema).min(1),
|
|
14560
14635
|
legacyMigrationSourcePageIds: z18.array(ContractIdentifierSchema).min(1).max(256).optional(),
|
|
14561
|
-
document: z18.union([
|
|
14636
|
+
document: z18.union([
|
|
14637
|
+
PageSchema,
|
|
14638
|
+
ResolvedPageSchema,
|
|
14639
|
+
NavigationSchema,
|
|
14640
|
+
WorkbenchSchema
|
|
14641
|
+
]),
|
|
14562
14642
|
sourceContentHash: Sha256Schema
|
|
14563
14643
|
}).strict().superRefine((value, context) => {
|
|
14564
14644
|
const expected = value.document.contract === "Page" ? "page" : value.document.contract === "Navigation" ? "navigation" : "workbench";
|
|
@@ -15054,6 +15134,7 @@ var DeclarativeCreateIntentSchema = z18.object({
|
|
|
15054
15134
|
});
|
|
15055
15135
|
var DeclarativeDocumentSchema = z18.union([
|
|
15056
15136
|
PageSchema,
|
|
15137
|
+
ResolvedPageSchema,
|
|
15057
15138
|
NavigationSchema,
|
|
15058
15139
|
WorkbenchSchema
|
|
15059
15140
|
]);
|
|
@@ -15360,7 +15441,7 @@ var DeclarativePreviewResultSchema = z18.object({
|
|
|
15360
15441
|
revision: z18.number().int().positive(),
|
|
15361
15442
|
contentHash: Sha256Schema,
|
|
15362
15443
|
bundle: z18.union([
|
|
15363
|
-
|
|
15444
|
+
ReadablePageRuntimeBundleSchema,
|
|
15364
15445
|
NavigationRuntimeBundleSchema,
|
|
15365
15446
|
WorkbenchRuntimeBundleSchema
|
|
15366
15447
|
]),
|
|
@@ -15377,7 +15458,7 @@ var DeclarativePublicationItemResultSchema = z18.object({
|
|
|
15377
15458
|
WorkbenchReleaseSchema
|
|
15378
15459
|
]),
|
|
15379
15460
|
bundle: z18.union([
|
|
15380
|
-
|
|
15461
|
+
ReadablePageRuntimeBundleSchema,
|
|
15381
15462
|
NavigationRuntimeBundleSchema,
|
|
15382
15463
|
WorkbenchRuntimeBundleSchema
|
|
15383
15464
|
]).optional()
|
|
@@ -15642,7 +15723,7 @@ var DeclarativeRuntimeResolvedSchema = z18.object({
|
|
|
15642
15723
|
surface: ProductSurfaceSchema,
|
|
15643
15724
|
normalizedPath: z18.string().trim().min(1),
|
|
15644
15725
|
routeParameters: z18.record(ContractIdentifierSchema, z18.string()),
|
|
15645
|
-
page:
|
|
15726
|
+
page: ReadablePageRuntimeBundleSchema.optional(),
|
|
15646
15727
|
workbench: WorkbenchRuntimeBundleSchema.optional(),
|
|
15647
15728
|
redirect: DeclarativeRuntimeRedirectSchema.optional(),
|
|
15648
15729
|
navigation: NavigationRuntimeBundleSchema.optional(),
|
|
@@ -20327,6 +20408,9 @@ export {
|
|
|
20327
20408
|
JsonObjectSchema,
|
|
20328
20409
|
JsonValueSchema,
|
|
20329
20410
|
LegacyBrowserPreferenceImportSchema,
|
|
20411
|
+
LegacyDeclarativeRuntimeActionExecuteIntentSchema,
|
|
20412
|
+
LegacyOntologyBindingSchema,
|
|
20413
|
+
LegacyPageRuntimeBundleSchema,
|
|
20330
20414
|
LegacyRouteClaimSchema,
|
|
20331
20415
|
LegacyRoutePolicySchema,
|
|
20332
20416
|
LegacyRouteTakeoverAuthorizationSchema,
|
|
@@ -20387,6 +20471,7 @@ export {
|
|
|
20387
20471
|
PermissionAlternativePolicySchema,
|
|
20388
20472
|
PermissionBundleSchema,
|
|
20389
20473
|
PermissionDefinitionSchema,
|
|
20474
|
+
PersistedOntologyBindingSchema,
|
|
20390
20475
|
ProductAccessDeclarationSchema,
|
|
20391
20476
|
ProductBodySchema,
|
|
20392
20477
|
ProductContextSchema,
|
|
@@ -20412,6 +20497,7 @@ export {
|
|
|
20412
20497
|
RadarScoreProjectionSchema,
|
|
20413
20498
|
RadarSelectionSchema,
|
|
20414
20499
|
RadarWritebackRecordSchema,
|
|
20500
|
+
ReadablePageRuntimeBundleSchema,
|
|
20415
20501
|
RecordEditorDraftOperationSchema,
|
|
20416
20502
|
RecordEditorDraftSchema,
|
|
20417
20503
|
RecordEditorFieldErrorSchema,
|