@inf-monkeys-tech/monkeys 1.1.4 → 1.1.5
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 +108182 -67435
- 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 +1106 -624
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +80 -6
- package/lib/contracts/declarative-control.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 +85 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +164 -59
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +158 -59
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +84 -8
- 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/page-release.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +1 -0
- 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/schemas/index.d.ts +251 -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
|
@@ -9472,6 +9472,7 @@ var ReleaseDependencyRoleSchema = z14.enum([
|
|
|
9472
9472
|
"capability",
|
|
9473
9473
|
"provider",
|
|
9474
9474
|
"ontology-definition",
|
|
9475
|
+
"projection-spec",
|
|
9475
9476
|
"query-definition",
|
|
9476
9477
|
"view",
|
|
9477
9478
|
"projection",
|
|
@@ -9501,6 +9502,7 @@ var DependencyKindByRole = {
|
|
|
9501
9502
|
capability: "capability",
|
|
9502
9503
|
provider: "view-provider",
|
|
9503
9504
|
"ontology-definition": "ontology-definition",
|
|
9505
|
+
"projection-spec": "projection-spec",
|
|
9504
9506
|
"query-definition": "domain-query-definition",
|
|
9505
9507
|
view: "view",
|
|
9506
9508
|
projection: "projection",
|
|
@@ -10685,6 +10687,58 @@ var OntologyBindingSchema = z14.object({
|
|
|
10685
10687
|
});
|
|
10686
10688
|
}
|
|
10687
10689
|
});
|
|
10690
|
+
var LegacyOntologyBindingSchema = z14.object({
|
|
10691
|
+
...OntologyBindingSchema.shape,
|
|
10692
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
10693
|
+
canonicalDataViewRevisionRef: z14.never().optional(),
|
|
10694
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
10695
|
+
}).strict().superRefine((value, context) => {
|
|
10696
|
+
if (Boolean(value.viewRevisionRef) === Boolean(value.projectionRevisionRef)) {
|
|
10697
|
+
context.addIssue({
|
|
10698
|
+
code: "custom",
|
|
10699
|
+
path: ["viewRevisionRef"],
|
|
10700
|
+
message: "Legacy bindings require exactly one View or projection revision."
|
|
10701
|
+
});
|
|
10702
|
+
}
|
|
10703
|
+
for (const [key, reference, kind] of [
|
|
10704
|
+
[
|
|
10705
|
+
"ontologyDefinitionRevisionRef",
|
|
10706
|
+
value.ontologyDefinitionRevisionRef,
|
|
10707
|
+
"ontology-definition"
|
|
10708
|
+
],
|
|
10709
|
+
["viewRevisionRef", value.viewRevisionRef, "view"],
|
|
10710
|
+
["projectionRevisionRef", value.projectionRevisionRef, "projection-spec"]
|
|
10711
|
+
]) {
|
|
10712
|
+
if (reference && reference.kind !== kind)
|
|
10713
|
+
context.addIssue({
|
|
10714
|
+
code: "custom",
|
|
10715
|
+
path: [key, "kind"],
|
|
10716
|
+
message: `Expected a ${kind} revision.`
|
|
10717
|
+
});
|
|
10718
|
+
}
|
|
10719
|
+
if (value.cursorWindow && value.pagination !== "cursor")
|
|
10720
|
+
context.addIssue({
|
|
10721
|
+
code: "custom",
|
|
10722
|
+
path: ["cursorWindow"],
|
|
10723
|
+
message: "Cursor-window navigation requires cursor pagination."
|
|
10724
|
+
});
|
|
10725
|
+
});
|
|
10726
|
+
var PersistedOntologyBindingSchema = z14.object({
|
|
10727
|
+
...OntologyBindingSchema.shape,
|
|
10728
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
10729
|
+
canonicalDataViewRevisionRef: RevisionRefSchema.optional(),
|
|
10730
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
10731
|
+
}).strict().superRefine((value, context) => {
|
|
10732
|
+
const schema2 = value.canonicalDataViewRevisionRef ? OntologyBindingSchema : LegacyOntologyBindingSchema;
|
|
10733
|
+
const parsed = schema2.safeParse(value);
|
|
10734
|
+
if (!parsed.success)
|
|
10735
|
+
for (const issue of parsed.error.issues)
|
|
10736
|
+
context.addIssue({
|
|
10737
|
+
code: "custom",
|
|
10738
|
+
path: issue.path,
|
|
10739
|
+
message: issue.message
|
|
10740
|
+
});
|
|
10741
|
+
});
|
|
10688
10742
|
var ActionResultBindingEffectSourceSchema = z14.discriminatedUnion(
|
|
10689
10743
|
"kind",
|
|
10690
10744
|
[
|
|
@@ -11227,7 +11281,7 @@ var ResolvedPageSchema = z14.object({
|
|
|
11227
11281
|
stateDefinitions: z14.array(PageStateDefinitionSchema).optional(),
|
|
11228
11282
|
entryTransitions: z14.array(PageEntryTransitionSchema).optional(),
|
|
11229
11283
|
interactionBindings: z14.array(InteractionBindingSchema).optional(),
|
|
11230
|
-
ontologyBindings: z14.array(
|
|
11284
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
11231
11285
|
queryBindings: z14.array(QueryBindingSchema).optional(),
|
|
11232
11286
|
actionBindings: z14.array(ActionBindingSchema),
|
|
11233
11287
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -13011,7 +13065,7 @@ var DeclarativeWorkbenchCatalogSchema = z14.object({
|
|
|
13011
13065
|
});
|
|
13012
13066
|
}
|
|
13013
13067
|
});
|
|
13014
|
-
var
|
|
13068
|
+
var CompatiblePageRuntimeBundleSchema = z14.object({
|
|
13015
13069
|
contract: z14.literal("PageRuntimeBundle"),
|
|
13016
13070
|
...RuntimeBundleBaseShape,
|
|
13017
13071
|
pageId: ContractIdentifierSchema,
|
|
@@ -13020,7 +13074,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13020
13074
|
routeClaims: z14.array(CompiledRouteClaimSchema),
|
|
13021
13075
|
routeStatePresentations: z14.array(PageRouteStatePresentationSchema).default([]),
|
|
13022
13076
|
shellRevisionRef: RevisionRefSchema,
|
|
13023
|
-
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
13077
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema.optional(),
|
|
13024
13078
|
renderTree: RenderTreeSchema,
|
|
13025
13079
|
capabilityInstances: z14.array(CapabilityInstanceSchema),
|
|
13026
13080
|
deniedCapabilityInstanceIds: z14.array(ContractIdentifierSchema).default([]),
|
|
@@ -13028,7 +13082,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13028
13082
|
stateDefinitions: z14.array(PageStateDefinitionSchema).default([]),
|
|
13029
13083
|
entryTransitions: z14.array(ResolvedPageEntryTransitionSchema).default([]),
|
|
13030
13084
|
interactionBindings: z14.array(InteractionBindingSchema).default([]),
|
|
13031
|
-
ontologyBindings: z14.array(
|
|
13085
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
13032
13086
|
queryBindings: z14.array(QueryBindingSchema).default([]),
|
|
13033
13087
|
actionBindings: z14.array(ActionBindingSchema),
|
|
13034
13088
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -13083,6 +13137,15 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13083
13137
|
var ResolvedWorkbenchAppInstanceSchema = WorkbenchAppInstanceSchema.extend({
|
|
13084
13138
|
targetAccessPolicy: AccessPolicySchema
|
|
13085
13139
|
}).strict();
|
|
13140
|
+
var PageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
13141
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
13142
|
+
ontologyBindings: z14.array(OntologyBindingSchema)
|
|
13143
|
+
});
|
|
13144
|
+
var LegacyPageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
13145
|
+
shellDescriptor: z14.never().optional(),
|
|
13146
|
+
ontologyBindings: z14.array(LegacyOntologyBindingSchema)
|
|
13147
|
+
});
|
|
13148
|
+
var ReadablePageRuntimeBundleSchema = z14.union([PageRuntimeBundleSchema, LegacyPageRuntimeBundleSchema]);
|
|
13086
13149
|
var WorkbenchRuntimeIdentitySchema = z14.object({
|
|
13087
13150
|
name: I18nTextSchema,
|
|
13088
13151
|
description: I18nTextSchema.optional()
|
|
@@ -13894,6 +13957,7 @@ var OntologyViewDefinitionSchema = z17.object({
|
|
|
13894
13957
|
renderModelSchemaRevisionRef: ExactRefKindSchema("schema"),
|
|
13895
13958
|
requiredPermissionCodes: z17.array(ContractIdentifierSchema).default([])
|
|
13896
13959
|
}).strict();
|
|
13960
|
+
var LegacyOntologyViewDefinitionSchema = OntologyViewDefinitionSchema.omit({ canonicalDataViewRevisionRef: true });
|
|
13897
13961
|
var ConceptRelationshipSchema = z17.object({
|
|
13898
13962
|
kind: ContractIdentifierSchema,
|
|
13899
13963
|
targetConceptId: ContractIdentifierSchema,
|
|
@@ -14171,6 +14235,7 @@ var DeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimePageTargetSc
|
|
|
14171
14235
|
routePath: DeclarativeRuntimeActionRoutePathSchema.optional(),
|
|
14172
14236
|
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
14173
14237
|
}).strict();
|
|
14238
|
+
var LegacyDeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimeActionExecuteIntentSchema.safeExtend({ pageState: DeclarativeRuntimeParametersSchema.default({}) });
|
|
14174
14239
|
var DeclarativeNativeDownloadSchema = z18.object({
|
|
14175
14240
|
url: z18.string().min(1).max(32768).refine((value) => {
|
|
14176
14241
|
try {
|
|
@@ -14558,7 +14623,12 @@ var DeclarativeCreateTemplateRegistrationSchema = z18.object({
|
|
|
14558
14623
|
description: I18nTextSchema,
|
|
14559
14624
|
supportedSurfaces: z18.array(ProductSurfaceSchema).min(1),
|
|
14560
14625
|
legacyMigrationSourcePageIds: z18.array(ContractIdentifierSchema).min(1).max(256).optional(),
|
|
14561
|
-
document: z18.union([
|
|
14626
|
+
document: z18.union([
|
|
14627
|
+
PageSchema,
|
|
14628
|
+
ResolvedPageSchema,
|
|
14629
|
+
NavigationSchema,
|
|
14630
|
+
WorkbenchSchema
|
|
14631
|
+
]),
|
|
14562
14632
|
sourceContentHash: Sha256Schema
|
|
14563
14633
|
}).strict().superRefine((value, context) => {
|
|
14564
14634
|
const expected = value.document.contract === "Page" ? "page" : value.document.contract === "Navigation" ? "navigation" : "workbench";
|
|
@@ -15054,6 +15124,7 @@ var DeclarativeCreateIntentSchema = z18.object({
|
|
|
15054
15124
|
});
|
|
15055
15125
|
var DeclarativeDocumentSchema = z18.union([
|
|
15056
15126
|
PageSchema,
|
|
15127
|
+
ResolvedPageSchema,
|
|
15057
15128
|
NavigationSchema,
|
|
15058
15129
|
WorkbenchSchema
|
|
15059
15130
|
]);
|
|
@@ -15360,7 +15431,7 @@ var DeclarativePreviewResultSchema = z18.object({
|
|
|
15360
15431
|
revision: z18.number().int().positive(),
|
|
15361
15432
|
contentHash: Sha256Schema,
|
|
15362
15433
|
bundle: z18.union([
|
|
15363
|
-
|
|
15434
|
+
ReadablePageRuntimeBundleSchema,
|
|
15364
15435
|
NavigationRuntimeBundleSchema,
|
|
15365
15436
|
WorkbenchRuntimeBundleSchema
|
|
15366
15437
|
]),
|
|
@@ -15377,7 +15448,7 @@ var DeclarativePublicationItemResultSchema = z18.object({
|
|
|
15377
15448
|
WorkbenchReleaseSchema
|
|
15378
15449
|
]),
|
|
15379
15450
|
bundle: z18.union([
|
|
15380
|
-
|
|
15451
|
+
ReadablePageRuntimeBundleSchema,
|
|
15381
15452
|
NavigationRuntimeBundleSchema,
|
|
15382
15453
|
WorkbenchRuntimeBundleSchema
|
|
15383
15454
|
]).optional()
|
|
@@ -15642,7 +15713,7 @@ var DeclarativeRuntimeResolvedSchema = z18.object({
|
|
|
15642
15713
|
surface: ProductSurfaceSchema,
|
|
15643
15714
|
normalizedPath: z18.string().trim().min(1),
|
|
15644
15715
|
routeParameters: z18.record(ContractIdentifierSchema, z18.string()),
|
|
15645
|
-
page:
|
|
15716
|
+
page: ReadablePageRuntimeBundleSchema.optional(),
|
|
15646
15717
|
workbench: WorkbenchRuntimeBundleSchema.optional(),
|
|
15647
15718
|
redirect: DeclarativeRuntimeRedirectSchema.optional(),
|
|
15648
15719
|
navigation: NavigationRuntimeBundleSchema.optional(),
|
|
@@ -20327,6 +20398,9 @@ export {
|
|
|
20327
20398
|
JsonObjectSchema,
|
|
20328
20399
|
JsonValueSchema,
|
|
20329
20400
|
LegacyBrowserPreferenceImportSchema,
|
|
20401
|
+
LegacyDeclarativeRuntimeActionExecuteIntentSchema,
|
|
20402
|
+
LegacyOntologyBindingSchema,
|
|
20403
|
+
LegacyPageRuntimeBundleSchema,
|
|
20330
20404
|
LegacyRouteClaimSchema,
|
|
20331
20405
|
LegacyRoutePolicySchema,
|
|
20332
20406
|
LegacyRouteTakeoverAuthorizationSchema,
|
|
@@ -20387,6 +20461,7 @@ export {
|
|
|
20387
20461
|
PermissionAlternativePolicySchema,
|
|
20388
20462
|
PermissionBundleSchema,
|
|
20389
20463
|
PermissionDefinitionSchema,
|
|
20464
|
+
PersistedOntologyBindingSchema,
|
|
20390
20465
|
ProductAccessDeclarationSchema,
|
|
20391
20466
|
ProductBodySchema,
|
|
20392
20467
|
ProductContextSchema,
|
|
@@ -20412,6 +20487,7 @@ export {
|
|
|
20412
20487
|
RadarScoreProjectionSchema,
|
|
20413
20488
|
RadarSelectionSchema,
|
|
20414
20489
|
RadarWritebackRecordSchema,
|
|
20490
|
+
ReadablePageRuntimeBundleSchema,
|
|
20415
20491
|
RecordEditorDraftOperationSchema,
|
|
20416
20492
|
RecordEditorDraftSchema,
|
|
20417
20493
|
RecordEditorFieldErrorSchema,
|